From bb96386aea4f839033c9c008e1c67c56642f1e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Thu, 18 Dec 2025 16:05:34 +0100 Subject: [PATCH 01/15] chore: remove warning on every call There is `enable-pre-post-scripts` option which is set to true and is true by default, but it throws a warning, so I am removing it: npm warn Unknown project config "enable-pre-post-scripts". This will stop working in the next major version of npm. --- .npmrc | 1 - 1 file changed, 1 deletion(-) diff --git a/.npmrc b/.npmrc index 1b9c11fa..94a06c21 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1 @@ access=public -enable-pre-post-scripts=true From b772218da41e33f57e1d3e31dbfc102f912b830e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Thu, 18 Dec 2025 16:45:28 +0100 Subject: [PATCH 02/15] docs: add left out preposition --- HACKING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HACKING.md b/HACKING.md index 029c1975..849d4998 100644 --- a/HACKING.md +++ b/HACKING.md @@ -14,7 +14,7 @@ These are the runnable scripts with `npm run`: General: -- `run-dev`: Run the CLI (with [`tsx`](https://github.com/privatenumber/tsx)). Use `--` to pass arguments to the CLI rather than NPM: \ +- `run-dev`: Run the CLI (with [`tsx`](https://github.com/privatenumber/tsx)). Use `--` to pass arguments to the CLI rather than to NPM: \ `npm run run-dev -- extract print --extractor react src/**/*.tsx` - `build`: Build the CLI. - `eslint`: Run ESLint. From edbd918e745059d24f9f31cb2d946e9f14694cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Thu, 18 Dec 2025 16:51:47 +0100 Subject: [PATCH 03/15] feat: add --branch to push and pull commands --- schema.json | 5 + src/cli.ts | 2 + src/client/internal/schema.generated.ts | 52331 +++++++--------- src/commands/pull.ts | 9 +- src/commands/push.ts | 6 +- src/config/tolgeerc.ts | 26 +- src/options.ts | 6 + src/schema.d.ts | 4 + src/utils/branch.ts | 3 + .../validTolgeeRc/withBranch.json | 5 + test/unit/config.test.ts | 10 + 11 files changed, 22184 insertions(+), 30223 deletions(-) create mode 100644 src/utils/branch.ts create mode 100644 test/__fixtures__/validTolgeeRc/withBranch.json diff --git a/schema.json b/schema.json index 17abee8e..3511a87f 100644 --- a/schema.json +++ b/schema.json @@ -5,6 +5,11 @@ "description": "Project ID. Only required when using a Personal Access Token.", "type": ["number", "string"] }, + "branch": { + "description": "Project branch. Use when branching enabled for the project.", + "type": "string", + "minLength": 1 + }, "apiUrl": { "description": "The url of Tolgee API.", "type": "string" diff --git a/src/cli.ts b/src/cli.ts index bac4a04b..f7441513 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -19,6 +19,7 @@ import { STRICT_NAMESPACE, PARSER, PROJECT_ID_OPT, + PROJECT_BRANCH, STRICT_NAMESPACE_NEGATION, VERBOSE, } from './options.js'; @@ -180,6 +181,7 @@ async function run() { program.addOption(API_URL_OPT.default(config.apiUrl ?? DEFAULT_API_URL)); program.addOption(API_KEY_OPT.default(config.apiKey)); program.addOption(PROJECT_ID_OPT.default(config.projectId ?? -1)); + program.addOption(PROJECT_BRANCH.default(config.branch)); program.addOption(FORMAT_OPT.default(config.format ?? 'JSON_TOLGEE')); program.addOption(EXTRACTOR.default(config.extractor)); program.addOption(FILE_PATTERNS.default(config.patterns)); diff --git a/src/client/internal/schema.generated.ts b/src/client/internal/schema.generated.ts index 5ce6d1b3..f175a87a 100644 --- a/src/client/internal/schema.generated.ts +++ b/src/client/internal/schema.generated.ts @@ -4,30276 +4,22183 @@ */ export interface paths { - "/api/project/{projectId}/export/jsonZip": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Export to ZIP of jsons - * @deprecated - * @description Exports data as ZIP of jsons - */ - get: operations["doExportJsonZip"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/authorize_oauth/sso/authentication-url": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Generate authentication url (third-party, SSO) - * @description Returns URL which can be used to authenticate user using third party SSO service - */ - post: operations["getAuthenticationUrl"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/authorize_oauth/{serviceType}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Authenticate user (third-part, oAuth) - * @description Authenticates user using third party oAuth service - */ - get: operations["authenticateUser_1"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/configuration": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get server configuration */ - get: operations["getPublicConfiguration"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/generatetoken": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Generate JWT token */ - post: operations["authenticateUser"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/invitation_info/{code}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Info about invitation */ - get: operations["invitationInfo"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/reset_password_request": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Request password reset */ - post: operations["resetPasswordRequest"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/reset_password_set": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Set a new password - * @description Checks the password reset code from e-mail - */ - post: operations["resetPasswordSet"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/reset_password_validate/{email}/{code}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Validate password-resetting key */ - get: operations["resetPasswordValidate"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/sign_up": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Create new user account (Sign Up) - * @description When E-mail verification is enabled, null is returned. Otherwise JWT token is provided. - */ - post: operations["signUp"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/validate_email": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Validate if email is not in use */ - post: operations["validateEmail"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/public/verify_email/{userId}/{code}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Set user account as verified - * @description It checks whether the code from email is valid - */ - get: operations["verifyEmail"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/administration/organizations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all server organizations */ - get: operations["getOrganizations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/administration/users": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all server users */ - get: operations["getUsers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/administration/users/{userId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete user */ - delete: operations["deleteUser"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/administration/users/{userId}/disable": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Disable user - * @description Disables user account. User will not be able to log in, but their user data will be preserved, so you can enable the user later using the `enable` endpoint. - */ - put: operations["disableUser"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/administration/users/{userId}/enable": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Enable user - * @description Enables previously disabled user. - */ - put: operations["enableUser"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/administration/users/{userId}/generate-token": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Geneate user's JWT token - * @description Generates a JWT token for the user with provided ID. This is useful, when need to debug of the user's account. Or when an operation is required to be executed on behalf of the user. - */ - get: operations["generateUserToken"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/administration/users/{userId}/set-role/{role}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Set Role - * @description Set's the global role on the Tolgee Platform server. - */ - put: operations["setRole"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/announcement": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get announcement - * @description Returns the latest announcement for the currently authenticated user - */ - get: operations["getLatest"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/announcement/dismiss": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Dismiss announcement - * @description Dismisses the latest announcement for the currently authenticated user - */ - post: operations["dismiss"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/api-keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all user's API keys */ - get: operations["allByUser"]; - put?: never; - /** - * Create API key - * @description Creates new API key with provided scopes - */ - post: operations["create_15"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/api-keys/availableScopes": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns API key scopes for every permission type */ - get: operations["getScopes"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/api-keys/current": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get current API key info - * @description Returns info the API key which user currently authenticated with. Otherwise responds with 400 status code. - */ - get: operations["getCurrent_1"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/api-keys/current-permissions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get current permission info - * @description Returns current PAK or PAT permissions for current user, api-key and project - */ - get: operations["getCurrentPermissions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/api-keys/{apiKeyId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Update API key */ - put: operations["update_11"]; - post?: never; - /** Delete API key */ - delete: operations["delete_15"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/api-keys/{apiKeyId}/regenerate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Regenerates API key. It generates new API key value and updates its time of expiration. */ - put: operations["regenerate_1"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/api-keys/{keyId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get one API key - * @description Returns specific API key info - */ - get: operations["get_24"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/auth-provider": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get current third party authentication provider */ - get: operations["getCurrentAuthProvider"]; - put?: never; - post?: never; - /** Initiate provider change to remove current third party authentication provider */ - delete: operations["deleteCurrentAuthProvider"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/auth-provider/change": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get info about authentication provider which can replace the current one */ - get: operations["getChangedAuthProvider"]; - put?: never; - /** Accept change of the third party authentication provider */ - post: operations["acceptChangeAuthProvider"]; - /** Reject change of the third party authentication provider */ - delete: operations["rejectChangeAuthProvider"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/ee-current-subscription-usage": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get current usage for the current EE subscription */ - get: operations["getUsage_1"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/ee-license/info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get the info about the current EE subscription */ - get: operations["getInfo_5"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/ee-license/prepare-set-license-key": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Get info before applying the license key - * @description Get info about the upcoming EE subscription. This will show, how much the subscription will cost when key is applied. - */ - post: operations["prepareSetLicenseKey"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/ee-license/refresh": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Refresh the EE subscription - * @description This will refresh the subscription information from the license server and update the subscription info. - */ - put: operations["refreshSubscription"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/ee-license/release-license-key": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Remove the EE licence key - * @description This will remove the licence key from the instance. - */ - put: operations["release"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/ee-license/set-license-key": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Sets the EE licence key */ - put: operations["setLicenseKey"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/image-upload": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Upload an image for later use */ - post: operations["upload"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/image-upload/{ids}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete uploaded images */ - delete: operations["delete_14"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/invitations/{code}/accept": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Accepts invitation to project or organization */ - get: operations["acceptInvitation"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/invitations/{invitationId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Deletes invitation by ID */ - delete: operations["deleteInvitation"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/notification": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Gets notifications of the currently logged in user, newest is first. */ - get: operations["getNotifications"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/notification-settings": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get notification settings - * @description Returns notification settings of the currently logged in user - */ - get: operations["getNotificationsSettings"]; - /** - * Save notification setting - * @description Saves new value for given parameters - */ - put: operations["putNotificationSetting"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/notifications-mark-seen": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Marks notifications of the currently logged in user with given IDs as seen. */ - put: operations["markNotificationsAsSeen"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all permitted organizations - * @description Returns all organizations, which is current user allowed to view - */ - get: operations["getAll_12"]; - put?: never; - /** Create organization */ - post: operations["create_12"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one organization */ - get: operations["get_23"]; - /** Update organization data */ - put: operations["update_10"]; - post?: never; - /** - * Delete organization - * @description Deletes organization and all its data including projects - */ - delete: operations["delete_13"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{id}/avatar": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Upload organizations avatar */ - put: operations["uploadAvatar_2"]; - post?: never; - /** Delete organization avatar */ - delete: operations["removeAvatar_2"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{id}/invite": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Generate invitation link for organization - * @description Generates invitation link for organization, so users can join organization. The invitation can also be sent to an e-mail address. - */ - put: operations["inviteUser_1"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{id}/leave": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Leave organization - * @description Remove current user from organization - */ - put: operations["leaveOrganization"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{id}/projects": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all accessible projects (by ID) - * @description Returns all organization projects the user has access to - */ - get: operations["getAllProjects_1"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{id}/users": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all users in organization - * @description Returns all users in organization. The result also contains users who are only members of projects in the organization. - */ - get: operations["getAllUsers_1"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/base-languages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all base languages in use by projects owned by specified organization - * @description Returns all base languages in use by projects owned by specified organization - */ - get: operations["getAllBaseLanguagesInUse"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all organization glossaries */ - get: operations["getAll_14"]; - put?: never; - /** Create glossary */ - post: operations["create_13"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries-with-stats": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all organization glossaries with some additional statistics */ - get: operations["getAllWithStats"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get glossary */ - get: operations["get_20"]; - /** Update glossary */ - put: operations["update_8"]; - post?: never; - /** Delete glossary */ - delete: operations["delete_11"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/assigned-projects": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all projects assigned to glossary */ - get: operations["getAssignedProjects"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/languages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all languages in use by the glossary */ - get: operations["getLanguages"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all glossary terms */ - get: operations["getAll_15"]; - put?: never; - /** Create a new glossary term */ - post: operations["create_14"]; - /** Batch delete multiple terms */ - delete: operations["deleteMultiple"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get glossary term */ - get: operations["get_21"]; - /** Update glossary term */ - put: operations["update_9"]; - post?: never; - /** Delete glossary term */ - delete: operations["delete_12"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}/translations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Set a new glossary term translation for language */ - post: operations["update_12"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}/translations/{languageTag}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get glossary term translation for language */ - get: operations["get_22"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/termsIds": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all glossary terms ids */ - get: operations["getAllIds"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/termsWithTranslations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all glossary terms with translations */ - get: operations["getAllWithTranslations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/invitations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all invitations to organization */ - get: operations["getInvitations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/languages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all languages in use by projects owned by specified organization - * @description Returns all languages in use by projects owned by specified organization - */ - get: operations["getAllLanguagesInUse"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/llm-providers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: operations["getAll_13"]; - put?: never; - post: operations["createProvider"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/llm-providers/all-available": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: operations["getAvailableProviders"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/llm-providers/server-providers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: operations["getServerProviders"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/llm-providers/{providerId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: operations["updateProvider"]; - post?: never; - delete: operations["deleteProvider"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/machine-translation-credit-balance": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get credit balance for organization - * @description Returns machine translation credit balance for organization - */ - get: operations["getOrganizationCredits"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/projects-with-stats": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all projects with stats - * @description Returns all projects (including statistics) where current user has any permission (except none) - */ - get: operations["getAllWithStatistics_2"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/set-base-permissions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Set organization base permission - * @description Set default granular (scope-based) permissions for organization users, who don't have direct project permissions set. - */ - put: operations["setBasePermissions"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/set-base-permissions/{permissionType}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Set organization base permission - * @description Sets default (level-based) permission for organization - */ - put: operations["setBasePermissions_1"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/slack/connect": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Connect Slack workspace to organization - * @description This endpoint allows the owner of an organization to connect a Slack workspace to their organization. - * Checks if the Slack integration feature is enabled for the organization and proceeds with the connection. - */ - post: operations["connectWorkspace"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/slack/get-connect-url": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get connect URL for Slack authentication - * @description Returns URL to which user should be redirected to connect Slack workspace - */ - get: operations["connectToSlack"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/slack/workspaces": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get connected workspaces - * @description Returns a list of workspaces connected to the organization - */ - get: operations["getConnectedWorkspaces"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/slack/workspaces/{workspaceId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** - * Disconnect workspace - * @description Disconnects a workspace from the organization - */ - delete: operations["disconnectWorkspace"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/sso": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get SSO Tenant configuration for organization */ - get: operations["findProvider"]; - /** Set SSO Tenant configuration for organization */ - put: operations["setProvider"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/usage": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get current organization usage */ - get: operations["getUsage"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/users/{userId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Remove user from organization */ - delete: operations["removeUser"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{organizationId}/users/{userId}/set-role": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Set user role - * @description Sets user role in organization. Owner or Member. - */ - put: operations["setUserRole"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{slug}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get organization by slug */ - get: operations["get_19"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{slug}/projects": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all accessible projects (by slug) - * @description Returns all organization projects the user has access to - */ - get: operations["getAllProjects"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/organizations/{slug}/projects-with-stats": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all projects with stats - * @description Returns all projects (including statistics) where current user has any permission (except none) - */ - get: operations["getAllWithStatistics_1"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/pats": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get PAKs */ - get: operations["getAll_11"]; - put?: never; - /** Create PAK */ - post: operations["create_11"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/pats/current": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Return current PAK - * @description Returns current Personal Access Token. If the request is not authenticated with a Personal Access Token, it will return 400 response status. - */ - get: operations["getCurrent"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/pats/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one PAK */ - get: operations["get_18"]; - /** - * Update PAK - * @description Updates Personal Access Token - */ - put: operations["update_7"]; - post?: never; - /** - * Delete PAK - * @description Deletes Personal Access Token - */ - delete: operations["delete_10"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/pats/{id}/regenerate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Regenerate PAK - * @description Regenerates Personal Access Token. It generates new token value and updates its time of expiration. - */ - put: operations["regenerate"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/preferred-organization": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Returns preferred organization. If server allows users to create organization, preferred organization is automatically created if user doesn't have access to any organization. */ - get: operations["getPreferred"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all permitted - * @description Returns all projects where current user has any permission - */ - get: operations["getAll"]; - put?: never; - /** - * Create project - * @description Creates a new project with languages and initial settings. - */ - post: operations["createProject"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/with-stats": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all with stats - * @description Returns all projects (including statistics) where current user has any permission - */ - get: operations["getAllWithStatistics"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one project */ - get: operations["get_8"]; - /** Update project settings */ - put: operations["editProject"]; - post?: never; - /** Delete project */ - delete: operations["deleteProject"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/activity": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get project activity */ - get: operations["getActivity"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/activity/revisions/{revisionId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one revision data */ - get: operations["getSingleRevision"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/activity/revisions/{revisionId}/modified-entities": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get modified entities in revision */ - get: operations["getModifiedEntitiesByRevision"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/ai-playground-result": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: operations["getAiPlaygroundResult"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/ai-prompt-customization": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns project level prompt customization */ - get: operations["getPromptProjectCustomization"]; - /** Sets project level prompt customization */ - put: operations["setPromptProjectCustomization"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/all-keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all keys in project */ - get: operations["getAllKeys"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/all-keys-with-disabled-languages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; + "/api/project/{projectId}/export/jsonZip": { + /** Exports data as ZIP of jsons */ + get: operations["doExportJsonZip"]; + }; + "/api/public/authorize_oauth/sso/authentication-url": { + /** Returns URL which can be used to authenticate user using third party SSO service */ + post: operations["getAuthenticationUrl"]; + }; + "/api/public/authorize_oauth/{serviceType}": { + /** Authenticates user using third party oAuth service */ + get: operations["authenticateUser_1"]; + }; + "/api/public/configuration": { + get: operations["getPublicConfiguration"]; + }; + "/api/public/generatetoken": { + post: operations["authenticateUser"]; + }; + "/api/public/invitation_info/{code}": { + get: operations["invitationInfo"]; + }; + "/api/public/reset_password_request": { + post: operations["resetPasswordRequest"]; + }; + "/api/public/reset_password_set": { + /** Checks the password reset code from e-mail */ + post: operations["resetPasswordSet"]; + }; + "/api/public/reset_password_validate/{email}/{code}": { + get: operations["resetPasswordValidate"]; + }; + "/api/public/sign_up": { + /** When E-mail verification is enabled, null is returned. Otherwise JWT token is provided. */ + post: operations["signUp"]; + }; + "/api/public/validate_email": { + post: operations["validateEmail"]; + }; + "/api/public/verify_email/{userId}/{code}": { + /** It checks whether the code from email is valid */ + get: operations["verifyEmail"]; + }; + "/v2/administration/batch-job-queue": { + /** Returns all chunk execution items currently in the batch job queue */ + get: operations["getBatchJobQueue"]; + }; + "/v2/administration/organizations": { + get: operations["getOrganizations"]; + }; + "/v2/administration/project-batch-locks": { + /** Returns current project batch job locks from Redis or local storage based on configuration */ + get: operations["getProjectLocks"]; + }; + "/v2/administration/users": { + get: operations["getUsers"]; + }; + "/v2/administration/users/{userId}": { + delete: operations["deleteUser"]; + }; + "/v2/administration/users/{userId}/disable": { + /** Disables user account. User will not be able to log in, but their user data will be preserved, so you can enable the user later using the `enable` endpoint. */ + put: operations["disableUser"]; + }; + "/v2/administration/users/{userId}/enable": { + /** Enables previously disabled user. */ + put: operations["enableUser"]; + }; + "/v2/administration/users/{userId}/generate-token": { + /** Generates a JWT token for the user with provided ID. This is useful, when need to debug of the user's account. Or when an operation is required to be executed on behalf of the user. */ + get: operations["generateUserToken"]; + }; + "/v2/administration/users/{userId}/set-role/{role}": { + /** Set's the global role on the Tolgee Platform server. */ + put: operations["setRole"]; + }; + "/v2/announcement": { + /** Returns the latest announcement for the currently authenticated user */ + get: operations["getLatest"]; + }; + "/v2/announcement/dismiss": { + /** Dismisses the latest announcement for the currently authenticated user */ + post: operations["dismiss"]; + }; + "/v2/api-keys": { + get: operations["allByUser"]; + /** Creates new API key with provided scopes */ + post: operations["create_16"]; + }; + "/v2/api-keys/availableScopes": { + get: operations["getScopes"]; + }; + "/v2/api-keys/current": { + /** Returns info the API key which user currently authenticated with. Otherwise responds with 400 status code. */ + get: operations["getCurrent_1"]; + }; + "/v2/api-keys/current-permissions": { + /** Returns current PAK or PAT permissions for current user, api-key and project */ + get: operations["getCurrentPermissions"]; + }; + "/v2/api-keys/{apiKeyId}": { + put: operations["update_11"]; + delete: operations["delete_10"]; + }; + "/v2/api-keys/{apiKeyId}/regenerate": { + put: operations["regenerate_1"]; + }; + "/v2/api-keys/{keyId}": { + /** Returns specific API key info */ + get: operations["get_24"]; + }; + "/v2/auth-provider": { + get: operations["getCurrentAuthProvider"]; + delete: operations["deleteCurrentAuthProvider"]; + }; + "/v2/auth-provider/change": { + get: operations["getChangedAuthProvider"]; + post: operations["acceptChangeAuthProvider"]; + delete: operations["rejectChangeAuthProvider"]; + }; + "/v2/ee-current-subscription-usage": { + get: operations["getUsage_1"]; + }; + "/v2/ee-license/info": { + get: operations["getInfo_5"]; + }; + "/v2/ee-license/prepare-set-license-key": { + /** Get info about the upcoming EE subscription. This will show, how much the subscription will cost when key is applied. */ + post: operations["prepareSetLicenseKey"]; + }; + "/v2/ee-license/refresh": { + /** This will refresh the subscription information from the license server and update the subscription info. */ + put: operations["refreshSubscription"]; + }; + "/v2/ee-license/release-license-key": { + /** This will remove the licence key from the instance. */ + put: operations["release"]; + }; + "/v2/ee-license/set-license-key": { + put: operations["setLicenseKey"]; + }; + "/v2/image-upload": { + post: operations["upload"]; + }; + "/v2/image-upload/{ids}": { + delete: operations["delete_16"]; + }; + "/v2/invitations/{code}/accept": { + get: operations["acceptInvitation"]; + put: operations["acceptInvitationPut"]; + }; + "/v2/invitations/{invitationId}": { + delete: operations["deleteInvitation"]; + }; + "/v2/notification": { + get: operations["getNotifications"]; + }; + "/v2/notification-settings": { + /** Returns notification settings of the currently logged in user */ + get: operations["getNotificationsSettings"]; + /** Saves new value for given parameters */ + put: operations["putNotificationSetting"]; + }; + "/v2/notifications-mark-seen": { + put: operations["markNotificationsAsSeen"]; + }; + "/v2/organizations": { + /** Returns all organizations, which is current user allowed to view */ + get: operations["getAll_10"]; + post: operations["create_13"]; + }; + "/v2/organizations/{id}": { + get: operations["get_15"]; + put: operations["update_10"]; + /** Deletes organization and all its data including projects */ + delete: operations["delete_9"]; + }; + "/v2/organizations/{id}/avatar": { + put: operations["uploadAvatar_2"]; + delete: operations["removeAvatar_2"]; + }; + "/v2/organizations/{id}/invite": { + /** Generates invitation link for organization, so users can join organization. The invitation can also be sent to an e-mail address. */ + put: operations["inviteUser_1"]; + }; + "/v2/organizations/{id}/leave": { + /** Remove current user from organization */ + put: operations["leaveOrganization"]; + }; + "/v2/organizations/{id}/projects": { + /** Returns all organization projects the user has access to */ + get: operations["getAllProjects_1"]; + }; + "/v2/organizations/{id}/users": { + /** Returns all users in organization. The result also contains users who are only members of projects in the organization. */ + get: operations["getAllUsers_1"]; + }; + "/v2/organizations/{organizationId}/base-languages": { + /** Returns all base languages in use by projects owned by specified organization */ + get: operations["getAllBaseLanguagesInUse"]; + }; + "/v2/organizations/{organizationId}/glossaries": { + get: operations["getAll_12"]; + post: operations["create_14"]; + }; + "/v2/organizations/{organizationId}/glossaries-with-stats": { + get: operations["getAllWithStats"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}": { + get: operations["get_13"]; + put: operations["update_8"]; + delete: operations["delete_7"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/assigned-projects": { + get: operations["getAssignedProjects"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/export": { + get: operations["export"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/import": { + post: operations["importCsv"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/languages": { + get: operations["getLanguages"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms": { + get: operations["getAll_13"]; + post: operations["create_15"]; + delete: operations["deleteMultiple"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}": { + get: operations["get_14"]; + put: operations["update_9"]; + delete: operations["delete_8"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}/translations": { + post: operations["update_12"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}/translations/{languageTag}": { + get: operations["get_23"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/termsIds": { + get: operations["getAllIds"]; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/termsWithTranslations": { + get: operations["getAllWithTranslations"]; + }; + "/v2/organizations/{organizationId}/invitations": { + get: operations["getInvitations"]; + }; + "/v2/organizations/{organizationId}/languages": { + /** Returns all languages in use by projects owned by specified organization */ + get: operations["getAllLanguagesInUse"]; + }; + "/v2/organizations/{organizationId}/llm-providers": { + get: operations["getAll_11"]; + post: operations["createProvider"]; + }; + "/v2/organizations/{organizationId}/llm-providers/all-available": { + /** Combines llm providers from organization-specific and server-configured */ + get: operations["getAvailableProviders"]; + }; + "/v2/organizations/{organizationId}/llm-providers/server-providers": { + get: operations["getServerProviders"]; + }; + "/v2/organizations/{organizationId}/llm-providers/{providerId}": { + put: operations["updateProvider"]; + delete: operations["deleteProvider"]; + }; + "/v2/organizations/{organizationId}/machine-translation-credit-balance": { + /** Returns machine translation credit balance for organization */ + get: operations["getOrganizationCredits"]; + }; + "/v2/organizations/{organizationId}/projects-with-stats": { + /** Returns all projects (including statistics) where current user has any permission (except none) */ + get: operations["getAllWithStatistics_2"]; + }; + "/v2/organizations/{organizationId}/set-base-permissions": { + /** Set default granular (scope-based) permissions for organization users, who don't have direct project permissions set. */ + put: operations["setBasePermissions"]; + }; + "/v2/organizations/{organizationId}/set-base-permissions/{permissionType}": { + /** Sets default (level-based) permission for organization */ + put: operations["setBasePermissions_1"]; + }; + "/v2/organizations/{organizationId}/slack/connect": { + /** + * This endpoint allows the owner of an organization to connect a Slack workspace to their organization. + * Checks if the Slack integration feature is enabled for the organization and proceeds with the connection. + */ + post: operations["connectWorkspace"]; + }; + "/v2/organizations/{organizationId}/slack/get-connect-url": { + /** Returns URL to which user should be redirected to connect Slack workspace */ + get: operations["connectToSlack"]; + }; + "/v2/organizations/{organizationId}/slack/workspaces": { + /** Returns a list of workspaces connected to the organization */ + get: operations["getConnectedWorkspaces"]; + }; + "/v2/organizations/{organizationId}/slack/workspaces/{workspaceId}": { + /** Disconnects a workspace from the organization */ + delete: operations["disconnectWorkspace"]; + }; + "/v2/organizations/{organizationId}/sso": { + get: operations["findProvider"]; + put: operations["setProvider"]; + }; + "/v2/organizations/{organizationId}/usage": { + get: operations["getUsage"]; + }; + "/v2/organizations/{organizationId}/users/{userId}": { + /** Remove user from organization. If user is managed by the organization, their account is disabled instead. */ + delete: operations["removeUser"]; + }; + "/v2/organizations/{organizationId}/users/{userId}/set-role": { + /** Sets user role in organization. Owner or Member. */ + put: operations["setUserRole"]; + }; + "/v2/organizations/{slug}": { + get: operations["get_22"]; + }; + "/v2/organizations/{slug}/projects": { + /** Returns all organization projects the user has access to */ + get: operations["getAllProjects"]; + }; + "/v2/organizations/{slug}/projects-with-stats": { + /** Returns all projects (including statistics) where current user has any permission (except none) */ + get: operations["getAllWithStatistics_1"]; + }; + "/v2/pats": { + get: operations["getAll_9"]; + post: operations["create_12"]; + }; + "/v2/pats/current": { + /** Returns current Personal Access Token. If the request is not authenticated with a Personal Access Token, it will return 400 response status. */ + get: operations["getCurrent"]; + }; + "/v2/pats/{id}": { + get: operations["get_12"]; + /** Updates Personal Access Token */ + put: operations["update_7"]; + /** Deletes Personal Access Token */ + delete: operations["delete_6"]; + }; + "/v2/pats/{id}/regenerate": { + /** Regenerates Personal Access Token. It generates new token value and updates its time of expiration. */ + put: operations["regenerate"]; + }; + "/v2/preferred-organization": { + /** Returns preferred organization. If server allows users to create organization, preferred organization is automatically created if user doesn't have access to any organization. */ + get: operations["getPreferred"]; + }; + "/v2/projects": { + /** Returns all projects where current user has any permission */ + get: operations["getAll"]; + /** Creates a new project with languages and initial settings. */ + post: operations["createProject"]; + }; + "/v2/projects/with-stats": { + /** Returns all projects (including statistics) where current user has any permission */ + get: operations["getAllWithStatistics"]; + }; + "/v2/projects/{projectId}": { + get: operations["get_2"]; + put: operations["editProject"]; + delete: operations["deleteProject"]; + }; + "/v2/projects/{projectId}/activity": { + get: operations["getActivity"]; + }; + "/v2/projects/{projectId}/activity/revisions/{revisionId}": { + get: operations["getSingleRevision"]; + }; + "/v2/projects/{projectId}/activity/revisions/{revisionId}/modified-entities": { + get: operations["getModifiedEntitiesByRevision"]; + }; + "/v2/projects/{projectId}/ai-playground-result": { + post: operations["getAiPlaygroundResult"]; + }; + "/v2/projects/{projectId}/ai-prompt-customization": { + get: operations["getPromptProjectCustomization"]; + put: operations["setPromptProjectCustomization"]; + }; + "/v2/projects/{projectId}/all-keys": { + get: operations["getAllKeys"]; + }; + "/v2/projects/{projectId}/all-keys-with-disabled-languages": { + /** + * Returns all project key with any disabled language. + * + * If key has no disabled language, it is not returned. + */ + get: operations["getDisabledLanguages_2"]; + }; + "/v2/projects/{projectId}/api-keys": { + /** Returns all API keys for specified project */ + get: operations["allByProject"]; + }; + "/v2/projects/{projectId}/auto-translation-settings": { + /** Returns default auto translation settings for project (deprecated: use per language config with null language id) */ + get: operations["getAutoTranslationSettings"]; + /** Sets default auto-translation settings for project (deprecated: use per language config with null language id) */ + put: operations["setAutoTranslationSettings"]; + }; + "/v2/projects/{projectId}/avatar": { + put: operations["uploadAvatar_1"]; + delete: operations["removeAvatar_1"]; + }; + "/v2/projects/{projectId}/batch-jobs": { + get: operations["list_3"]; + }; + "/v2/projects/{projectId}/batch-jobs/{id}": { + get: operations["get_20"]; + }; + "/v2/projects/{projectId}/batch-jobs/{id}/cancel": { + /** Stops batch operation if possible. */ + put: operations["cancel"]; + }; + "/v2/projects/{projectId}/big-meta": { + /** Stores a bigMeta for a project */ + post: operations["store_2"]; + }; + "/v2/projects/{projectId}/branches": { + get: operations["all"]; + post: operations["create_11"]; + }; + "/v2/projects/{projectId}/branches/merge": { + get: operations["getBranchMerges"]; + }; + "/v2/projects/{projectId}/branches/merge/preview": { + post: operations["dryRunMerge"]; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}": { + delete: operations["deleteBranchMerge"]; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/apply": { + post: operations["merge"]; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/changes": { + get: operations["getBranchMergeSessionChanges"]; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/conflicts": { + get: operations["getBranchMergeSessionConflicts"]; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/preview": { + get: operations["getBranchMergeSessionPreview"]; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/refresh": { + post: operations["refreshBranchMerge"]; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/resolve": { + put: operations["resolveConflict"]; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/resolve-all": { + put: operations["resolveAllConflicts"]; + }; + "/v2/projects/{projectId}/branches/{branchId}": { + delete: operations["delete_15"]; + }; + "/v2/projects/{projectId}/content-delivery-configs": { + get: operations["list_2"]; + post: operations["create_10"]; + }; + "/v2/projects/{projectId}/content-delivery-configs/{id}": { + get: operations["get_11"]; + put: operations["update_6"]; + /** Immediately publishes content to the configured Content Delivery */ + post: operations["post"]; + delete: operations["delete_5"]; + }; + "/v2/projects/{projectId}/content-storages": { + get: operations["list_1"]; + post: operations["create_9"]; + }; + "/v2/projects/{projectId}/content-storages/test": { + post: operations["test_1"]; + }; + "/v2/projects/{projectId}/content-storages/{contentStorageId}": { + get: operations["get_10"]; + put: operations["update_5"]; + delete: operations["delete_4"]; + }; + "/v2/projects/{projectId}/content-storages/{id}/test": { + /** Tests existing Content Storage with new configuration. (Uses existing secrets, if nulls provided) */ + post: operations["testExisting"]; + }; + "/v2/projects/{projectId}/current-batch-jobs": { + /** Returns all running and pending batch operations. Completed batch operations are returned only if they are not older than 1 hour. If user doesn't have permission to view all batch operations, only their operations are returned. */ + get: operations["currentJobs"]; + }; + "/v2/projects/{projectId}/export": { + /** + * Exports project data in various formats (JSON, properties, YAML, etc.). + * + * ## HTTP Conditional Requests Support + * + * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: + * + * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date + * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value + * - **Data not modified**: Returns HTTP 304 Not Modified with empty body + * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header + * + * The Last-Modified header in the response contains the timestamp of the last project modification, + * and the ETag header contains a unique identifier for the current project state. Both can be used + * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. + * + * Cache-Control header is set to max-age=0 to ensure validation on each request. + */ + get: operations["exportData"]; + /** + * Exports project data in various formats (JSON, properties, YAML, etc.). + * Useful when exceeding allowed URL size with GET requests. + * + * ## HTTP Conditional Requests Support + * + * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: + * + * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date + * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value + * - **Data not modified**: Returns HTTP 304 Not Modified with empty body + * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header + * + * Note: This endpoint uses a custom implementation that returns 304 Not Modified for all HTTP methods + * (including POST) when conditional headers indicate the data hasn't changed. This differs from Spring's + * default behavior which returns 412 for POST requests, but is appropriate here since POST is used only + * to accommodate large request parameters, not to modify data. + * + * The Last-Modified header in the response contains the timestamp of the last project modification, + * and the ETag header contains a unique identifier for the current project state. Both can be used + * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. + * + * Cache-Control header is set to max-age=0 to ensure validation on each request. + */ + post: operations["exportPost"]; + }; + "/v2/projects/{projectId}/glossary-highlights": { + post: operations["getHighlights"]; + }; + "/v2/projects/{projectId}/import": { + /** Prepares provided files to import. */ + post: operations["addFiles"]; + /** Deletes prepared import data. */ + delete: operations["cancelImport"]; + }; + "/v2/projects/{projectId}/import-settings": { + /** Returns import settings for the authenticated user and the project. */ + get: operations["get"]; + /** Stores import settings for the authenticated user and the project. */ + put: operations["store"]; + }; + "/v2/projects/{projectId}/import/all-namespaces": { + /** Returns all existing and imported namespaces */ + get: operations["getAllNamespaces"]; + }; + "/v2/projects/{projectId}/import/apply": { + /** Imports the data prepared in previous step */ + put: operations["applyImport"]; + }; + "/v2/projects/{projectId}/import/apply-streaming": { + /** Imports the data prepared in previous step. Streams current status. */ + put: operations["applyImportStreaming"]; + }; + "/v2/projects/{projectId}/import/result": { + /** Returns the result of preparation. */ + get: operations["getImportResult"]; + }; + "/v2/projects/{projectId}/import/result/files/{fileId}/select-namespace": { + /** Sets namespace for file to import. */ + put: operations["selectNamespace"]; + }; + "/v2/projects/{projectId}/import/result/files/{importFileId}/issues": { + /** Returns issues for uploaded file. */ + get: operations["getImportFileIssues"]; + }; + "/v2/projects/{projectId}/import/result/languages/{importLanguageId}/reset-existing": { + /** Resets existing language paired with language to import. */ + put: operations["resetExistingLanguage"]; + }; + "/v2/projects/{projectId}/import/result/languages/{importLanguageId}/select-existing/{existingLanguageId}": { + /** Sets existing language to pair with language to import. Data will be imported to selected existing language when applied. */ + put: operations["selectExistingLanguage"]; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}": { + /** Returns language prepared to import. */ + get: operations["getImportLanguage"]; + /** Deletes language prepared to import. */ + delete: operations["deleteLanguage_2"]; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/resolve-all/set-keep-existing": { + /** Resolves all translation conflicts for provided language. The old translations will be kept. */ + put: operations["resolveTranslationSetKeepExisting_2"]; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/resolve-all/set-override": { + /** Resolves all translation conflicts for provided language. The old translations will be overridden. */ + put: operations["resolveTranslationSetOverride_2"]; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/translations": { + /** Returns translations prepared to import. */ + get: operations["getImportTranslations"]; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/translations/{translationId}/resolve/set-keep-existing": { + /** Resolves translation conflict. The old translation will be kept. */ + put: operations["resolveTranslationSetKeepExisting"]; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/translations/{translationId}/resolve/set-override": { + /** Resolves translation conflict. The old translation will be overridden. */ + put: operations["resolveTranslationSetOverride"]; + }; + "/v2/projects/{projectId}/invitations": { + get: operations["getProjectInvitations"]; + }; + "/v2/projects/{projectId}/invite": { + put: operations["inviteUser"]; + }; + "/v2/projects/{projectId}/keys": { + get: operations["getAll_7"]; + post: operations["create_6"]; + /** Delete one or multiple keys by their IDs in request body. Useful for larger requests esxceeding allowed URL length. */ + delete: operations["delete_11"]; + }; + "/v2/projects/{projectId}/keys/create": { + post: operations["create_5"]; + }; + "/v2/projects/{projectId}/keys/import": { + /** Imports new keys with translations. If key already exists, its translations and tags are not updated. */ + post: operations["importKeys_2"]; + }; + "/v2/projects/{projectId}/keys/import-resolvable": { + /** + * Import's new keys with translations. Translations can be updated, when specified.\n\n + * DEPRECATED: Use /v2/projects/{projectId}/single-step-import-resolvable instead. + */ + post: operations["importKeys"]; + }; + "/v2/projects/{projectId}/keys/info": { + /** Returns information about keys. (KeyData, Screenshots, Translation in specified language)If key is not found, it's not included in the response. */ + post: operations["getInfo_1"]; + }; + "/v2/projects/{projectId}/keys/search": { + /** + * This endpoint helps you to find desired key by keyName, base translation or translation in specified language. + * + * Sort is ignored for this request. + */ + get: operations["searchForKey"]; + }; + "/v2/projects/{projectId}/keys/select": { + /** Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. */ + get: operations["selectKeys_2"]; + }; + "/v2/projects/{projectId}/keys/{ids}": { + delete: operations["delete_13"]; + }; + "/v2/projects/{projectId}/keys/{id}": { + get: operations["get_8"]; + put: operations["edit"]; + }; + "/v2/projects/{projectId}/keys/{id}/big-meta": { + get: operations["getBigMeta"]; + }; + "/v2/projects/{projectId}/keys/{id}/complex-update": { + /** Edits key name, translations, tags, screenshots, and other data */ + put: operations["complexEdit"]; + }; + "/v2/projects/{projectId}/keys/{id}/disabled-languages": { + /** Returns languages, in which key is disabled */ + get: operations["getDisabledLanguages"]; + /** Sets languages, in which key is disabled */ + put: operations["setDisabledLanguages"]; + }; + "/v2/projects/{projectId}/keys/{keyId}/auto-translate": { + /** + * Uses enabled auto-translation methods. + * You need to set at least one of useMachineTranslation or useTranslationMemory to true. + * + * This will replace the the existing translation with the result obtained from specified source! + */ + put: operations["autoTranslate"]; + }; + "/v2/projects/{projectId}/keys/{keyId}/screenshots": { + get: operations["getKeyScreenshots_1"]; + post: operations["uploadScreenshot_1"]; + }; + "/v2/projects/{projectId}/keys/{keyId}/screenshots/{ids}": { + delete: operations["deleteScreenshots_1"]; + }; + "/v2/projects/{projectId}/keys/{keyId}/tags": { + /** Tags a key with tag. If tag with provided name doesn't exist, it is created */ + put: operations["tagKey"]; + }; + "/v2/projects/{projectId}/keys/{keyId}/tags/{tagId}": { + /** Removes tag with provided id from key with provided id */ + delete: operations["removeTag"]; + }; + "/v2/projects/{projectId}/labels": { + get: operations["getAll_1"]; + post: operations["createLabel"]; + }; + "/v2/projects/{projectId}/labels/ids": { + get: operations["getLabelsByIds"]; + }; + "/v2/projects/{projectId}/labels/{labelId}": { + put: operations["updateLabel"]; + delete: operations["deleteLabel"]; + }; + "/v2/projects/{projectId}/language-ai-prompt-customizations": { + get: operations["getLanguagePromptCustomizations"]; + }; + "/v2/projects/{projectId}/languages": { + get: operations["getAll_5"]; + post: operations["createLanguage"]; + }; + "/v2/projects/{projectId}/languages/{languageId}": { + get: operations["get_6"]; + put: operations["editLanguage"]; + delete: operations["deleteLanguage"]; + }; + "/v2/projects/{projectId}/languages/{languageId}/ai-prompt-customization": { + put: operations["setLanguagePromptCustomization"]; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion": { + get: operations["getSuggestions"]; + post: operations["createSuggestion"]; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}": { + /** User can only delete suggestion created by them */ + delete: operations["deleteSuggestion"]; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/accept": { + put: operations["acceptSuggestion"]; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/decline": { + put: operations["declineSuggestion"]; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/set-active": { + put: operations["suggestionSetActive"]; + }; + "/v2/projects/{projectId}/leave": { + put: operations["leaveProject"]; + }; + "/v2/projects/{projectId}/machine-translation-credit-balance": { + /** Returns machine translation credit balance for specified project */ + get: operations["getProjectCredits"]; + }; + "/v2/projects/{projectId}/machine-translation-language-info": { + /** Get enabled services and configured formality for each language */ + get: operations["getMachineTranslationLanguageInfo"]; + }; + "/v2/projects/{projectId}/machine-translation-service-settings": { + get: operations["getMachineTranslationSettings"]; + put: operations["setMachineTranslationSettings"]; + }; + "/v2/projects/{projectId}/machine-translation-service-settings/set-default-prompt/{promptId}": { + put: operations["setMachineTranslationSettings_1"]; + }; + "/v2/projects/{projectId}/my-batch-jobs": { + /** List all batch operations started by current user */ + get: operations["myList"]; + }; + "/v2/projects/{projectId}/namespace-by-name/{name}": { + /** Returns information about a namespace by its name */ + get: operations["getByName"]; + }; + "/v2/projects/{projectId}/namespaces": { + get: operations["getAllNamespaces_2"]; + }; + "/v2/projects/{projectId}/namespaces/{id}": { + put: operations["update_3"]; + }; + "/v2/projects/{projectId}/per-language-auto-translation-settings": { + get: operations["getPerLanguageAutoTranslationSettings"]; + put: operations["setPerLanguageAutoTranslationSettings"]; + }; + "/v2/projects/{projectId}/prompts": { + get: operations["getAllPaged"]; + post: operations["createPrompt"]; + }; + "/v2/projects/{projectId}/prompts/default": { + get: operations["getDefaultPrompt"]; + }; + "/v2/projects/{projectId}/prompts/get-variables": { + get: operations["variables"]; + }; + "/v2/projects/{projectId}/prompts/run": { + post: operations["run"]; + }; + "/v2/projects/{projectId}/prompts/{promptId}": { + get: operations["getPrompt"]; + put: operations["updatePrompt"]; + delete: operations["deletePrompt"]; + }; + "/v2/projects/{projectId}/single-step-import": { + /** Unlike the /v2/projects/{projectId}/import endpoint, imports the data in single request by provided files and parameters. This is useful for automated importing via API or CLI. */ + post: operations["singleStepFromFiles"]; + }; + "/v2/projects/{projectId}/single-step-import-resolvable": { + post: operations["singleStepResolvableImport"]; + }; + "/v2/projects/{projectId}/start-batch-job/ai-playground-translate": { + post: operations["aiPlaygroundTranslate"]; + }; + "/v2/projects/{projectId}/start-batch-job/assign-translation-label": { + post: operations["assignTranslationLabel"]; + }; + "/v2/projects/{projectId}/start-batch-job/clear-translations": { + /** Clear translation values for provided keys in selected languages. */ + post: operations["clearTranslations"]; + }; + "/v2/projects/{projectId}/start-batch-job/copy-translations": { + /** Copy translation values from one language to other languages. */ + post: operations["copyTranslations"]; + }; + "/v2/projects/{projectId}/start-batch-job/delete-keys": { + post: operations["deleteKeys"]; + }; + "/v2/projects/{projectId}/start-batch-job/machine-translate": { + /** Translate provided keys to provided languages through primary MT provider. */ + post: operations["machineTranslation"]; + }; + "/v2/projects/{projectId}/start-batch-job/pre-translate-by-tm": { + /** Pre-translate provided keys to provided languages by TM. */ + post: operations["translate"]; + }; + "/v2/projects/{projectId}/start-batch-job/set-keys-namespace": { + post: operations["setKeysNamespace"]; + }; + "/v2/projects/{projectId}/start-batch-job/set-translation-state": { + post: operations["setTranslationState_2"]; + }; + "/v2/projects/{projectId}/start-batch-job/tag-keys": { + post: operations["tagKeys"]; + }; + "/v2/projects/{projectId}/start-batch-job/unassign-translation-label": { + post: operations["unassignTranslationLabel"]; + }; + "/v2/projects/{projectId}/start-batch-job/untag-keys": { + post: operations["untagKeys"]; + }; + "/v2/projects/{projectId}/stats": { + get: operations["getProjectStats"]; + }; + "/v2/projects/{projectId}/stats/daily-activity": { + get: operations["getProjectDailyActivity"]; + }; + "/v2/projects/{projectId}/suggest/machine-translations": { + /** Suggests machine translations from enabled services */ + post: operations["suggestMachineTranslations"]; + }; + "/v2/projects/{projectId}/suggest/machine-translations-streaming": { + /** Suggests machine translations from enabled services. The results are streamed to the output in ndjson format. If an error occurs when for any service provider used, the error information is returned as a part of the result item, while the response has 200 status code. */ + post: operations["suggestMachineTranslationsStreaming"]; + }; + "/v2/projects/{projectId}/suggest/translation-memory": { + /** Suggests machine translations from translation memory. The result is always sorted by similarity, so sorting is not supported. */ + post: operations["suggestTranslationMemory"]; + }; + "/v2/projects/{projectId}/tag-complex": { + put: operations["executeComplexTagOperation"]; + }; + "/v2/projects/{projectId}/tags": { + get: operations["getAll_14"]; + }; + "/v2/projects/{projectId}/tasks": { + get: operations["getTasks"]; + post: operations["createTask"]; + }; + "/v2/projects/{projectId}/tasks/calculate-scope": { + post: operations["calculateScope"]; + }; + "/v2/projects/{projectId}/tasks/create-multiple-tasks": { + post: operations["createTasks"]; + }; + "/v2/projects/{projectId}/tasks/possible-assignees": { + get: operations["getPossibleAssignees"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}": { + get: operations["getTask"]; + put: operations["updateTask"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/blocking-tasks": { + /** If the tasks is blocked by other tasks, it returns numbers of these tasks. */ + get: operations["getBlockingTasks"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/cancel": { + put: operations["cancelTask"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/close": { + put: operations["closeTask"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/finish": { + put: operations["finishTask"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/keys": { + get: operations["getTaskKeys"]; + put: operations["updateTaskKeys"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/keys/{keyId}": { + /** Mark key as done, which updates task progress. */ + put: operations["updateTaskKey"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/per-user-report": { + /** Detailed statistics for every assignee */ + get: operations["getPerUserReport"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/reopen": { + put: operations["reopenTask"]; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/xlsx-report": { + /** Detailed statistics about the task results */ + get: operations["getXlsxReport"]; + }; + "/v2/projects/{projectId}/transfer-options": { + /** Returns organizations to which project can be transferred */ + get: operations["getTransferOptions"]; + }; + "/v2/projects/{projectId}/transfer-to-organization/{organizationId}": { + /** Transfers project's ownership to organization */ + put: operations["transferProjectToOrganization"]; + }; + "/v2/projects/{projectId}/translations": { + get: operations["getTranslations"]; + /** Sets translations for existing key */ + put: operations["setTranslations"]; + /** Sets translations for existing key or creates new key and sets the translations to it. */ + post: operations["createOrUpdateTranslations"]; + }; + "/v2/projects/{projectId}/translations/create-comment": { + /** Creates a translation comment. Empty translation is stored, when not exists. */ + post: operations["create_3"]; + }; + "/v2/projects/{projectId}/translations/label": { + put: operations["assignLabel_2"]; + }; + "/v2/projects/{projectId}/translations/select-all": { + /** Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. */ + get: operations["selectKeys"]; + }; + "/v2/projects/{projectId}/translations/{languages}": { + /** Returns all translations for specified languages */ + get: operations["getAllTranslations"]; + }; + "/v2/projects/{projectId}/translations/{translationId}/comments": { + /** Returns translation comments of translation */ + get: operations["getAll_3"]; + post: operations["create_1"]; + }; + "/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}": { + get: operations["get_4"]; + put: operations["update_1"]; + delete: operations["delete_2"]; + }; + "/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}/set-state/{state}": { + put: operations["setState"]; + }; + "/v2/projects/{projectId}/translations/{translationId}/dismiss-auto-translated-state": { + /** Removes "auto translated" indication */ + put: operations["dismissAutoTranslatedState"]; + }; + "/v2/projects/{projectId}/translations/{translationId}/history": { + /** Sorting is not supported for supported. It is automatically sorted from newest to oldest. */ + get: operations["getTranslationHistory"]; + }; + "/v2/projects/{projectId}/translations/{translationId}/label/{labelId}": { + put: operations["assignLabel"]; + delete: operations["unassignLabel"]; + }; + "/v2/projects/{projectId}/translations/{translationId}/set-outdated-flag/{state}": { + /** Set's "outdated" flag indicating the base translation was changed without updating current translation. */ + put: operations["setOutdated"]; + }; + "/v2/projects/{projectId}/translations/{translationId}/set-state/{state}": { + put: operations["setTranslationState"]; + }; + "/v2/projects/{projectId}/used-namespaces": { + /** Returns all used project namespaces. Response contains default (null) namespace if used. */ + get: operations["getUsedNamespaces"]; + }; + "/v2/projects/{projectId}/users": { + /** Returns all project users, who have permission to access project */ + get: operations["getAllUsers"]; + }; + "/v2/projects/{projectId}/users/{userId}/revoke-access": { + put: operations["revokePermission"]; + }; + "/v2/projects/{projectId}/users/{userId}/set-by-organization": { + /** Removes user's direct project permission, explicitly set for the project. User will have now base permissions from organization or no permission if they're not organization member. */ + put: operations["removeDirectProjectPermissions"]; + }; + "/v2/projects/{projectId}/users/{userId}/set-permissions": { + /** Set user's granular (scope-based) direct project permission */ + put: operations["setUsersPermissions"]; + }; + "/v2/projects/{projectId}/users/{userId}/set-permissions/{permissionType}": { + put: operations["setUsersPermissions_1"]; + }; + "/v2/projects/{projectId}/webhook-configs": { + get: operations["list"]; + post: operations["create"]; + }; + "/v2/projects/{projectId}/webhook-configs/{id}": { + get: operations["get_3"]; + put: operations["update"]; + delete: operations["delete_1"]; + }; + "/v2/projects/{projectId}/webhook-configs/{id}/test": { + /** Sends a test request to the webhook */ + post: operations["test"]; + }; + "/v2/public/business-events/identify": { + post: operations["identify"]; + }; + "/v2/public/business-events/report": { + post: operations["report"]; + }; + "/v2/public/configuration-properties": { + /** Return server configuration properties documentation */ + get: operations["get_19"]; + }; + "/v2/public/export-info/formats": { + get: operations["get_18"]; + }; + "/v2/public/initial-data": { + /** Returns initial data required by the UI to load */ + get: operations["get_17"]; + }; + "/v2/public/machine-translation-providers": { + /** Get machine translation providers */ + get: operations["getInfo_4"]; + }; + "/v2/public/scope-info/hierarchy": { + get: operations["getHierarchy"]; + }; + "/v2/public/scope-info/roles": { + get: operations["getRoles"]; + }; + "/v2/public/slack": { + post: operations["slackCommand"]; + }; + "/v2/public/slack/on-bot-event": { + /** + * This is triggered when bot event is triggered. E.g., when app is uninstalled from workspace. + * + * Heads up! The events have to be configured via Slack App configuration in Event Subscription section. + */ + post: operations["fetchBotEvent"]; + }; + "/v2/public/slack/on-event": { + /** This is triggered when interactivity event is triggered. E.g., when user clicks button provided in previous messages. */ + post: operations["onInteractivityEvent"]; + }; + "/v2/quick-start/set-finished/{finished}": { + /** Sets finished state of the quick start guide */ + put: operations["setFinishedState"]; + }; + "/v2/quick-start/set-open/{open}": { + /** Sets open state of the quick start guide */ + put: operations["setOpenState"]; + }; + "/v2/quick-start/steps/{step}/complete": { + /** Marks guide step as completed */ + put: operations["completeGuideStep"]; + }; + "/v2/slack/user-login": { + /** Pairs user account with slack account. */ + post: operations["userLogin"]; + }; + "/v2/slack/user-login-info": { + /** + * Returns information about the connection between Slack account and Tolgee account which user is performing. The flow is the following. + * + * 1. User executes slash command in Slack and gets link with encrypted Slack user ID, workspace ID and the Channel ID (to send success response to) + * + * 2. User gets opens the link and the Tolgee Platform frontend and it uses this endpoint to get the data info about the future connection + */ + get: operations["getInfo_3"]; + }; + "/v2/slug/generate-organization": { + post: operations["generateOrganizationSlug"]; + }; + "/v2/slug/generate-project": { + post: operations["generateProjectSlug"]; + }; + "/v2/slug/validate-organization/{slug}": { + get: operations["validateOrganizationSlug"]; + }; + "/v2/slug/validate-project/{slug}": { + get: operations["validateProjectSlug"]; + }; + "/v2/user": { + /** Returns information about currently authenticated user. */ + get: operations["getInfo"]; + /** Updates current user's profile information. */ + put: operations["updateUser"]; + post: operations["updateUserOld"]; + delete: operations["delete"]; + }; + "/v2/user-preferences": { + get: operations["get_16"]; + }; + "/v2/user-preferences/set-language/{languageTag}": { + put: operations["setLanguage"]; + }; + "/v2/user-preferences/set-preferred-organization/{organizationId}": { + put: operations["setPreferredOrganization"]; + }; + "/v2/user-tasks": { + get: operations["getTasks_2"]; + }; + "/v2/user/avatar": { + put: operations["uploadAvatar"]; + delete: operations["removeAvatar"]; + }; + "/v2/user/generate-super-token": { + /** Generates new JWT token permitted to sensitive operations */ + post: operations["getSuperToken"]; + }; + "/v2/user/managed-by": { + /** Returns the organization that manages a given user or null */ + get: operations["getManagedBy"]; + }; + "/v2/user/mfa/recovery": { + /** Regenerates multi-factor authentication recovery codes */ + put: operations["regenerateRecoveryCodes"]; + }; + "/v2/user/mfa/totp": { + /** Enables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. */ + put: operations["enableMfa"]; + /** Disables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. */ + delete: operations["disableMfa"]; + }; + "/v2/user/password": { + /** Updates current user's password. Invalidates all previous sessions upon success. */ + put: operations["updateUserPassword"]; + }; + "/v2/user/send-email-verification": { + /** Resends email verification email to currently authenticated user. */ + post: operations["sendEmailVerification"]; + }; + "/v2/user/single-owned-organizations": { + /** Returns all organizations owned only by current user */ + get: operations["getAllSingleOwnedOrganizations"]; + }; + "/v2/user/sso": { + /** Returns information about sso configuration affecting the user. */ + get: operations["getSso"]; + }; +} + +export interface components { + schemas: { + AcceptAuthProviderChangeRequest: { + id: string; + }; + AiPlaygroundResultModel: { + contextDescription?: string; + /** Format: int64 */ + keyId: number; + /** Format: int64 */ + languageId: number; + translation?: string; + }; + AiPlaygroundResultRequest: { + keys: number[]; + languages: number[]; + }; + AnnouncementDto: { + /** @enum {string} */ + type: + | "FEATURE_BATCH_OPERATIONS" + | "FEATURE_MT_FORMALITY" + | "FEATURE_CONTENT_DELIVERY_AND_WEBHOOKS" + | "NEW_PRICING" + | "FEATURE_AI_CUSTOMIZATION" + | "FEATURE_VISUAL_EDITOR" + | "FEATURE_CLI_2" + | "FEATURE_TASKS" + | "FEATURE_LLM_PROVIDERS_AND_PLAYGROUND" + | "FEATURE_GLOSSARIES_AND_PLAYGROUND" + | "FEATURE_LABELS" + | "FEATURE_SUGGESTIONS_AND_LABELS" + | "FEATURE_IMPROVED_FIGMA_ANDROID_AND_IOS"; + }; + ApiKeyModel: { + /** @description Description */ + description: string; + /** + * Format: int64 + * @description Timestamp of API key expiraion + */ + expiresAt?: number; + /** + * Format: int64 + * @description ID of the API key + */ + id: number; + /** + * Format: int64 + * @description Timestamp of API key last usage + */ + lastUsedAt?: number; + /** + * Format: int64 + * @description Api key's project ID + */ + projectId: number; + /** @description Api key's project name */ + projectName: string; + /** + * @description Api key's permission scopes + * @example [ + * "screenshots.upload", + * "screenshots.delete", + * "translations.edit", + * "screenshots.view", + * "translations.view", + * "keys.edit" + * ] + */ + scopes: string[]; + /** @description Full name of user owner */ + userFullName?: string; + /** @description Username of user owner */ + username?: string; + }; + ApiKeyPermissionsModel: { + project: components["schemas"]["SimpleProjectModel"]; + /** + * Format: int64 + * @description The API key's project id or the one provided as query param + */ + projectId: number; + /** + * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. + * @example [ + * "KEYS_EDIT", + * "TRANSLATIONS_VIEW" + * ] + */ + scopes: ( + | "translations.view" + | "translations.edit" + | "translations.suggest" + | "keys.edit" + | "screenshots.upload" + | "screenshots.delete" + | "screenshots.view" + | "activity.view" + | "languages.edit" + | "admin" + | "project.edit" + | "members.view" + | "members.edit" + | "translation-comments.add" + | "translation-comments.edit" + | "translation-comments.set-state" + | "translations.state-edit" + | "keys.view" + | "keys.delete" + | "keys.create" + | "batch-jobs.view" + | "batch-jobs.cancel" + | "translations.batch-by-tm" + | "translations.batch-machine" + | "content-delivery.manage" + | "content-delivery.publish" + | "webhooks.manage" + | "tasks.view" + | "tasks.edit" + | "prompts.view" + | "prompts.edit" + | "translation-labels.manage" + | "translation-labels.assign" + | "all.view" + )[]; + /** + * @description List of languages user can change state to. If null, changing state of all language values is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + stateChangeLanguageIds?: number[]; + /** + * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + suggestLanguageIds?: number[]; + /** + * @description List of languages user can translate to. If null, all languages editing is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + translateLanguageIds?: number[]; + /** + * @description The user's permission type. This field is null if user has assigned granular permissions or if returning API key's permissions + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** + * @description List of languages user can view. If null, all languages view is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + viewLanguageIds?: number[]; + }; + ApiKeyWithLanguagesModel: { + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** Format: int64 */ + lastUsedAt?: number; + /** + * @deprecated + * @description Languages for which user has translate permission. + */ + permittedLanguageIds?: number[]; + /** Format: int64 */ + projectId: number; + projectName: string; + scopes: string[]; + userFullName?: string; + username?: string; + }; + AuthInfoModel: { + isReadOnly: boolean; + }; + AuthMethodsDTO: { + github: components["schemas"]["OAuthPublicConfigDTO"]; + google: components["schemas"]["OAuthPublicConfigDTO"]; + oauth2: components["schemas"]["OAuthPublicExtendsConfigDTO"]; + ssoGlobal: components["schemas"]["SsoGlobalPublicConfigDTO"]; + ssoOrganizations: components["schemas"]["SsoOrganizationsPublicConfigDTO"]; + }; + AuthProviderDto: { + /** @enum {string} */ + authType?: "GOOGLE" | "GITHUB" | "OAUTH2" | "SSO" | "SSO_GLOBAL"; + id?: string; + ssoDomain?: string; + }; + AutoTranslationConfigModel: { + /** + * @description If true, import will trigger batch operation to translate the new new keys. + * It includes also the data imported via CLI, Figma, or other integrations using batch key import. + */ + enableForImport: boolean; + /** Format: int64 */ + languageId?: number; + /** @description If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first. */ + usingMachineTranslation: boolean; + /** @description If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found */ + usingTranslationMemory: boolean; + }; + AutoTranslationSettingsDto: { + /** + * @description If true, import will trigger batch operation to translate the new new keys. + * It includes also the data imported via CLI, Figma, or other integrations using batch key import. + */ + enableForImport: boolean; + /** Format: int64 */ + languageId?: number; + /** @description If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first. */ + usingMachineTranslation: boolean; + /** @description If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found */ + usingTranslationMemory: boolean; + }; + Avatar: { + large: string; + thumbnail: string; + }; + AverageProportionalUsageItemModel: { + total: number; + unusedQuantity: number; + usedQuantity: number; + usedQuantityOverPlan: number; + }; + AzureContentStorageConfigDto: { + connectionString?: string; + containerName: string; + }; + AzureContentStorageConfigModel: { + containerName?: string; + }; + BatchJobModel: { + /** + * Format: int64 + * @description The activity revision id, that stores the activity details of the job + */ + activityRevisionId?: number; + /** @description The user who started the job */ + author?: components["schemas"]["SimpleUserAccountModel"]; + /** + * Format: int64 + * @description The time when the job created + */ + createdAt: number; + /** @description If the job failed, this is the error message */ + errorMessage?: string; + /** + * Format: int64 + * @description Batch job id + */ + id: number; + /** + * Format: int32 + * @description Total items, that have been processed so far + */ + progress: number; + /** + * @description Status of the batch job + * @enum {string} + */ + status: + | "PENDING" + | "RUNNING" + | "SUCCESS" + | "FAILED" + | "CANCELLED" + | "DEBOUNCED"; + /** + * Format: int32 + * @description Total items + */ + totalItems: number; + /** + * @description Type of the batch job + * @enum {string} + */ + type: + | "AI_PLAYGROUND_TRANSLATE" + | "PRE_TRANSLATE_BT_TM" + | "MACHINE_TRANSLATE" + | "AUTO_TRANSLATE" + | "DELETE_KEYS" + | "SET_TRANSLATIONS_STATE" + | "CLEAR_TRANSLATIONS" + | "COPY_TRANSLATIONS" + | "TAG_KEYS" + | "UNTAG_KEYS" + | "SET_KEYS_NAMESPACE" + | "AUTOMATION" + | "BILLING_TRIAL_EXPIRATION_NOTICE" + | "ASSIGN_TRANSLATION_LABEL" + | "UNASSIGN_TRANSLATION_LABEL"; + /** + * Format: int64 + * @description The time when the job was last updated (status change) + */ + updatedAt: number; + }; + BigMetaDto: { + /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ + relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; + }; + BranchMergeChangeModel: { + /** + * Format: int64 + * @description Branch merge change id + */ + id: number; + /** + * @description Type of key conflict resolution + * @enum {string} + */ + resolution?: "SOURCE" | "TARGET"; + /** @description Source branch key */ + sourceKey?: components["schemas"]["KeyWithTranslationsModel"]; + /** @description Target branch key */ + targetKey?: components["schemas"]["KeyWithTranslationsModel"]; + /** + * @description Change type + * @enum {string} + */ + type: "ADD" | "UPDATE" | "DELETE" | "CONFLICT"; + }; + BranchMergeConflictModel: { + /** + * Format: int64 + * @description Branch merge session id + */ + id: number; + /** + * @description Type of key conflict resolution + * @enum {string} + */ + resolution?: "SOURCE" | "TARGET"; + /** @description Source branch key */ + sourceKey: components["schemas"]["KeyWithTranslationsModel"]; + /** @description Target branch key */ + targetKey: components["schemas"]["KeyWithTranslationsModel"]; + }; + BranchMergeModel: { + /** + * Format: int64 + * @description Branch merge id + */ + id: number; + /** + * Format: int32 + * @description Key additions count + */ + keyAdditionsCount: number; + /** + * Format: int32 + * @description Key deletions count + */ + keyDeletionsCount: number; + /** + * Format: int32 + * @description Key updates count + */ + keyModificationsCount: number; + /** + * Format: int32 + * @description Key resolved conflicts count + */ + keyResolvedConflictsCount: number; + /** + * Format: int32 + * @description Key unresoled conflicts count + */ + keyUnresolvedConflictsCount: number; + /** + * Format: int64 + * @description Date of merge. If null, merge was not applied yet + */ + mergedAt?: number; + /** @description Is merge outdated. If true, it means, that either source or target branch data were changed */ + outdated: boolean; + /** + * Format: int64 + * @description Source branch id + */ + sourceBranchId: number; + /** @description Source branch name */ + sourceBranchName: string; + /** + * Format: int64 + * @description Target branch id + */ + targetBranchId: number; + /** @description Target branch name */ + targetBranchName: string; + }; + BranchMergeRefModel: { + /** + * Format: int64 + * @description Branch merge ID + */ + id: number; + /** + * Format: int64 + * @description Date of merge. If null, merge was not applied yet + */ + mergedAt?: number; + /** @description Target branch name */ + targetBranchName: string; + }; + BranchModel: { + /** @description Indicates whether this branch is currently active (visible and usable for editing translations and keys). Inactive branches are hidden but still stored in the project. */ + active: boolean; + /** @description User who created or owns this branch. Can be null for system-generated branches. */ + author?: components["schemas"]["SimpleUserAccountModel"]; + /** + * Format: int64 + * @description Date of branch creation + */ + createdAt?: number; + /** + * Format: int64 + * @description Unique identifier of the branch + */ + id: number; + /** @description Is branch default */ + isDefault: boolean; + /** @description Is branch protected */ + isProtected: boolean; + /** @description Ongoing (or applied) merge operation related to this branch. Null when the branch is not being merged yet */ + merge?: components["schemas"]["BranchMergeRefModel"]; + /** @description Human-readable name of the branch. Similar to Git branch names, it identifies the feature or purpose of this branch (e.g. 'feature-login-page') */ + name: string; + }; + BusinessEventReportRequest: { + anonymousUserId?: string; + data?: { [key: string]: unknown }; + eventName: string; + /** Format: int64 */ + organizationId?: number; + /** Format: int64 */ + projectId?: number; + }; + CalculateScopeRequest: { + keys: number[]; + /** Format: int64 */ + languageId: number; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + }; + ClearTranslationsRequest: { + keyIds: number[]; + languageIds: number[]; + }; + CollectionModelAiPlaygroundResultModel: { + _embedded?: { + results?: components["schemas"]["AiPlaygroundResultModel"][]; + }; + }; + CollectionModelAutoTranslationConfigModel: { + _embedded?: { + configs?: components["schemas"]["AutoTranslationConfigModel"][]; + }; + }; + CollectionModelBatchJobModel: { + _embedded?: { + batchJobs?: components["schemas"]["BatchJobModel"][]; + }; + }; + CollectionModelExportFormatModel: { + _embedded?: { + exportFormats?: components["schemas"]["ExportFormatModel"][]; + }; + }; + CollectionModelGlossaryLanguageDto: { + _embedded?: { + glossaryLanguageDtoList?: components["schemas"]["GlossaryLanguageDto"][]; + }; + }; + CollectionModelGlossaryTermHighlightModel: { + _embedded?: { + glossaryHighlights?: components["schemas"]["GlossaryTermHighlightModel"][]; + }; + }; + CollectionModelImportNamespaceModel: { + _embedded?: { + namespaces?: components["schemas"]["ImportNamespaceModel"][]; + }; + }; + CollectionModelKeyDisabledLanguagesModel: { + _embedded?: { + keys?: components["schemas"]["KeyDisabledLanguagesModel"][]; + }; + }; + CollectionModelKeyModel: { + _embedded?: { + keys?: components["schemas"]["KeyModel"][]; + }; + }; + CollectionModelKeyWithBaseTranslationModel: { + _embedded?: { + keys?: components["schemas"]["KeyWithBaseTranslationModel"][]; + }; + }; + CollectionModelKeyWithDataModel: { + _embedded?: { + keys?: components["schemas"]["KeyWithDataModel"][]; + }; + }; + CollectionModelLanguageAiPromptCustomizationModel: { + _embedded?: { + promptCustomizations?: components["schemas"]["LanguageAiPromptCustomizationModel"][]; + }; + }; + CollectionModelLanguageConfigItemModel: { + _embedded?: { + languageConfigs?: components["schemas"]["LanguageConfigItemModel"][]; + }; + }; + CollectionModelLanguageInfoModel: { + _embedded?: { + languageInfos?: components["schemas"]["LanguageInfoModel"][]; + }; + }; + CollectionModelLanguageModel: { + _embedded?: { + languages?: components["schemas"]["LanguageModel"][]; + }; + }; + CollectionModelLlmProviderModel: { + _embedded?: { + providers?: components["schemas"]["LlmProviderModel"][]; + }; + }; + CollectionModelLlmProviderSimpleModel: { + _embedded?: { + providers?: components["schemas"]["LlmProviderSimpleModel"][]; + }; + }; + CollectionModelLong: { + _embedded?: { + longList?: number[]; + }; + }; + CollectionModelOrganizationInvitationModel: { + _embedded?: { + organizationInvitations?: components["schemas"]["OrganizationInvitationModel"][]; + }; + }; + CollectionModelProjectInvitationModel: { + _embedded?: { + invitations?: components["schemas"]["ProjectInvitationModel"][]; + }; + }; + CollectionModelProjectLockModel: { + _embedded?: { + projectLockModelList?: components["schemas"]["ProjectLockModel"][]; + }; + }; + CollectionModelProjectTransferOptionModel: { + _embedded?: { + transferOptions?: components["schemas"]["ProjectTransferOptionModel"][]; + }; + }; + CollectionModelQueueItemModel: { + _embedded?: { + queueItemModelList?: components["schemas"]["QueueItemModel"][]; + }; + }; + CollectionModelScreenshotModel: { + _embedded?: { + screenshots?: components["schemas"]["ScreenshotModel"][]; + }; + }; + CollectionModelSimpleOrganizationModel: { + _embedded?: { + organizations?: components["schemas"]["SimpleOrganizationModel"][]; + }; + }; + CollectionModelSimpleProjectModel: { + _embedded?: { + projects?: components["schemas"]["SimpleProjectModel"][]; + }; + }; + CollectionModelUsedNamespaceModel: { + _embedded?: { + namespaces?: components["schemas"]["UsedNamespaceModel"][]; + }; + }; + CollectionModelWorkspaceModel: { + _embedded?: { + workspaces?: components["schemas"]["WorkspaceModel"][]; + }; + }; + ComplexEditKeyDto: { + /** @description Branch of the key. If not provided, default branch will be used */ + branch?: string; + /** @description Custom values of the key. If not provided, custom values won't be modified */ + custom?: { [key: string]: unknown }; + /** @description Description of the key. It's also used as a context for Tolgee AI translator */ + description?: string; + /** @description If key is pluralized. If it will be reflected in the editor. If null, value won't be modified. */ + isPlural?: boolean; + /** @description Name of the key */ + name: string; + namespace?: string; + /** @description The argument name for the plural. If null, value won't be modified. If isPlural is false, this value will be ignored. */ + pluralArgName?: string; + /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ + relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; + /** @description IDs of screenshots to delete */ + screenshotIdsToDelete?: number[]; + /** + * @deprecated + * @description Ids of screenshots uploaded with /v2/image-upload endpoint + */ + screenshotUploadedImageIds?: number[]; + screenshotsToAdd?: components["schemas"]["KeyScreenshotDto"][]; + /** @description Translation states to update, if not provided states won't be modified */ + states?: { [key: string]: "TRANSLATED" | "REVIEWED" }; + /** @description Tags of the key. If not provided tags won't be modified */ + tags?: string[]; + /** @description Translations to update */ + translations?: { [key: string]: string }; + /** @description If true, it will fail with 400 (with code plural_forms_data_loss) if plural is disabled and there are plural forms, which would be lost by the action. You can get rid of this warning by setting this value to false. */ + warnOnDataLoss?: boolean; + }; + ComplexTagKeysRequest: { + /** @description Include keys filtered by the provided key information */ + filterKeys?: components["schemas"]["KeyId"][]; + /** @description Exclude keys filtered by the provided key information */ + filterKeysNot?: components["schemas"]["KeyId"][]; + /** @description Include keys filtered by the provided tag information. This filter supports wildcards. For example, `draft-*` will match all tags starting with `draft-`. */ + filterTag?: string[]; + /** @description Exclude keys filtered by the provided tag information. This filter supports wildcards. For example, `draft-*` will match all tags starting with `draft-`. */ + filterTagNot?: string[]; + /** @description Specified tags will be added to filtered keys */ + tagFiltered?: string[]; + /** @description Specified tags will be added to keys not filtered by any of the specified filters. */ + tagOther?: string[]; + /** @description Specified tags will be removed from filtered keys. It supports wildcards. For example, `draft-*` will remove all tags starting with `draft-`. */ + untagFiltered?: string[]; + /** @description Specified tags will be removed from keys not filtered by any of the specified filters. It supports wildcards. For example, `draft-*` will remove all tags starting with `draft-`. */ + untagOther?: string[]; + }; + ComputedPermissionModel: { + /** @enum {string} */ + origin: + | "ORGANIZATION_BASE" + | "DIRECT" + | "ORGANIZATION_OWNER" + | "NONE" + | "SERVER_ADMIN" + | "SERVER_SUPPORTER"; + permissionModel?: components["schemas"]["PermissionModel"]; + /** + * @deprecated + * @description Deprecated (use translateLanguageIds). + * + * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + permittedLanguageIds?: number[]; + /** + * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. + * @example [ + * "KEYS_EDIT", + * "TRANSLATIONS_VIEW" + * ] + */ + scopes: ( + | "translations.view" + | "translations.edit" + | "translations.suggest" + | "keys.edit" + | "screenshots.upload" + | "screenshots.delete" + | "screenshots.view" + | "activity.view" + | "languages.edit" + | "admin" + | "project.edit" + | "members.view" + | "members.edit" + | "translation-comments.add" + | "translation-comments.edit" + | "translation-comments.set-state" + | "translations.state-edit" + | "keys.view" + | "keys.delete" + | "keys.create" + | "batch-jobs.view" + | "batch-jobs.cancel" + | "translations.batch-by-tm" + | "translations.batch-machine" + | "content-delivery.manage" + | "content-delivery.publish" + | "webhooks.manage" + | "tasks.view" + | "tasks.edit" + | "prompts.view" + | "prompts.edit" + | "translation-labels.manage" + | "translation-labels.assign" + | "all.view" + )[]; + /** + * @description List of languages user can change state to. If null, changing state of all language values is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + stateChangeLanguageIds?: number[]; + /** + * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + suggestLanguageIds?: number[]; + /** + * @description List of languages user can translate to. If null, all languages editing is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + translateLanguageIds?: number[]; + /** + * @description The user's permission type. This field is null if uses granular permissions + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** + * @description List of languages user can view. If null, all languages view is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + viewLanguageIds?: number[]; + }; + ConnectToSlackDto: { + code: string; + }; + ConnectToSlackUrlModel: { + url: string; + }; + ContentDeliveryConfigModel: { + autoPublish: boolean; + /** + * @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). + * + * e.g. Key hello will be exported as <b>hello</b> + */ + escapeHtml?: boolean; + /** + * @description This is a template that defines the structure of the resulting .zip file content. + * + * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, + * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * + * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, + * the English translations of the `home` namespace will be stored in `home/en.json`. + * + * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * + * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` + * but in Android format. (e.g., en-rUS) + */ + fileStructureTemplate?: string; + /** + * @description Filter translations with branch. + * + * By default, default branch is exported. + */ + filterBranch?: string; + /** @description Filter key IDs to be contained in export */ + filterKeyId?: number[]; + /** @description Filter key IDs not to be contained in export */ + filterKeyIdNot?: number[]; + /** @description Filter keys with prefix */ + filterKeyPrefix?: string; + /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ + filterNamespace?: string[]; + /** @description Filter translations with state. By default, all states except untranslated is exported. */ + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + /** + * @description Filter keys tagged by. + * + * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. + */ + filterTag?: string; + /** @description Filter keys tagged by one of provided tags */ + filterTagIn?: string[]; + /** @description Filter keys not tagged by one of provided tags */ + filterTagNotIn?: string[]; + /** + * @description Format to export to + * @enum {string} + */ + format: + | "JSON" + | "JSON_TOLGEE" + | "XLIFF" + | "PO" + | "APPLE_STRINGS_STRINGSDICT" + | "APPLE_XLIFF" + | "ANDROID_XML" + | "COMPOSE_XML" + | "FLUTTER_ARB" + | "PROPERTIES" + | "YAML_RUBY" + | "YAML" + | "JSON_I18NEXT" + | "CSV" + | "RESX_ICU" + | "XLSX" + | "APPLE_XCSTRINGS" + | "ANDROID_SDK" + | "APPLE_SDK"; + /** Format: int64 */ + id: number; + /** + * @description Languages to be contained in export. + * + * If null, all languages are exported + * @example en + */ + languages?: string[]; + /** Format: int64 */ + lastPublished?: number; + lastPublishedFiles: string[]; + /** + * @description Message format to be used for export. + * + * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * + * This property is honored only for generic formats like JSON or YAML. + * For specific formats like `YAML_RUBY` it's ignored. + * @enum {string} + */ + messageFormat?: + | "C_SPRINTF" + | "PHP_SPRINTF" + | "JAVA_STRING_FORMAT" + | "APPLE_SPRINTF" + | "RUBY_SPRINTF" + | "I18NEXT" + | "ICU" + | "PYTHON_PERCENT"; + name: string; + pruneBeforePublish: boolean; + publicUrl?: string; + slug: string; + storage?: components["schemas"]["ContentStorageModel"]; + /** + * @description Delimiter to structure file content. + * + * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. + * + * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), + * specific formats like `YAML_RUBY` don't honor this parameter. + */ + structureDelimiter?: string; + /** + * @description If true, for structured formats (like JSON) arrays are supported. + * + * e.g. Key hello[0] will be exported as {"hello": ["..."]} + */ + supportArrays: boolean; + }; + ContentDeliveryConfigRequest: { + /** @description If true, data are published to the content delivery automatically after each change. */ + autoPublish: boolean; + /** + * Format: int64 + * @description Id of custom storage to use for content delivery. If null, default server storage is used. Tolgee Cloud provides default Content Storage. + */ + contentStorageId?: number; + /** + * @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). + * + * e.g. Key hello will be exported as <b>hello</b> + */ + escapeHtml?: boolean; + /** + * @description This is a template that defines the structure of the resulting .zip file content. + * + * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, + * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * + * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, + * the English translations of the `home` namespace will be stored in `home/en.json`. + * + * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * + * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` + * but in Android format. (e.g., en-rUS) + */ + fileStructureTemplate?: string; + /** + * @description Filter translations with branch. + * + * By default, default branch is exported. + */ + filterBranch?: string; + /** @description Filter key IDs to be contained in export */ + filterKeyId?: number[]; + /** @description Filter key IDs not to be contained in export */ + filterKeyIdNot?: number[]; + /** @description Filter keys with prefix */ + filterKeyPrefix?: string; + /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ + filterNamespace?: string[]; + /** @description Filter translations with state. By default, all states except untranslated is exported. */ + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + /** + * @description Filter keys tagged by. + * + * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. + */ + filterTag?: string; + /** @description Filter keys tagged by one of provided tags */ + filterTagIn?: string[]; + /** @description Filter keys not tagged by one of provided tags */ + filterTagNotIn?: string[]; + /** + * @description Format to export to + * @enum {string} + */ + format: + | "JSON" + | "JSON_TOLGEE" + | "XLIFF" + | "PO" + | "APPLE_STRINGS_STRINGSDICT" + | "APPLE_XLIFF" + | "ANDROID_XML" + | "COMPOSE_XML" + | "FLUTTER_ARB" + | "PROPERTIES" + | "YAML_RUBY" + | "YAML" + | "JSON_I18NEXT" + | "CSV" + | "RESX_ICU" + | "XLSX" + | "APPLE_XCSTRINGS" + | "ANDROID_SDK" + | "APPLE_SDK"; + /** + * @description Languages to be contained in export. + * + * If null, all languages are exported + * @example en + */ + languages?: string[]; + /** + * @description Message format to be used for export. + * + * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * + * This property is honored only for generic formats like JSON or YAML. + * For specific formats like `YAML_RUBY` it's ignored. + * @enum {string} + */ + messageFormat?: + | "C_SPRINTF" + | "PHP_SPRINTF" + | "JAVA_STRING_FORMAT" + | "APPLE_SPRINTF" + | "RUBY_SPRINTF" + | "I18NEXT" + | "ICU" + | "PYTHON_PERCENT"; + name: string; + /** + * @description Whether the data in the CDN should be pruned before publishing new data. + * + * In some cases, you might want to keep the data in the storage and only replace the files created by following publish operation. + */ + pruneBeforePublish: boolean; + /** + * @description Tolgee uses a custom slug as a directory name for content storage and public content delivery URL. It is only applicable for custom storage. This field needs to be kept null for Tolgee Cloud content storage or global server storage on self-hosted instances. + * + * Slag has to match following regular expression: `^[a-z0-9]+(?:-[a-z0-9]+)*$`. + * + * If null is provided for update operation, slug will be assigned with generated value. + */ + slug?: string; + /** + * @description Delimiter to structure file content. + * + * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. + * + * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), + * specific formats like `YAML_RUBY` don't honor this parameter. + */ + structureDelimiter?: string; + /** + * @description If true, for structured formats (like JSON) arrays are supported. + * + * e.g. Key hello[0] will be exported as {"hello": ["..."]} + */ + supportArrays: boolean; + }; + ContentStorageModel: { + azureContentStorageConfig?: components["schemas"]["AzureContentStorageConfigModel"]; + /** Format: int64 */ + id: number; + name: string; + publicUrlPrefix?: string; + s3ContentStorageConfig?: components["schemas"]["S3ContentStorageConfigModel"]; + }; + ContentStorageRequest: { + azureContentStorageConfig?: components["schemas"]["AzureContentStorageConfigDto"]; + name: string; + publicUrlPrefix?: string; + s3ContentStorageConfig?: components["schemas"]["S3ContentStorageConfigDto"]; + }; + CopyTranslationRequest: { + keyIds: number[]; + /** Format: int64 */ + sourceLanguageId: number; + targetLanguageIds: number[]; + }; + CreateApiKeyDto: { + /** @description Description of the project API key */ + description?: string; + /** + * Format: int64 + * @description Expiration date in epoch format (milliseconds). When null key never expires. + * @example 1661172869000 + */ + expiresAt?: number; + /** Format: int64 */ + projectId: number; + scopes: string[]; + }; + CreateBranchModel: { + /** @description Branch name, example = feature/new-feature */ + name: string; + /** + * Format: int64 + * @description Origin branch id + */ + originBranchId: number; + }; + CreateGlossaryRequest: { + /** @description IDs of projects to be assigned to glossary */ + assignedProjectIds: number[]; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + baseLanguageTag: string; + /** + * @description Glossary name + * @example My glossary + */ + name: string; + }; + CreateGlossaryTermWithTranslationRequest: { + /** + * @description A detailed explanation or definition of the glossary term + * @example It's trademark + */ + description: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm: boolean; + /** @description When true, this term will have the same translation across all target languages */ + flagNonTranslatable: boolean; + text: string; + }; + CreateKeyDto: { + branch?: string; + /** + * @description Description of the key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + /** @description If key is pluralized. If it will be reflected in the editor */ + isPlural: boolean; + /** @description Name of the key */ + name: string; + namespace?: string; + /** @description The argument name for the plural. If null, value will be guessed from the values provided in translations. */ + pluralArgName?: string; + /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ + relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; + /** + * @deprecated + * @description Ids of screenshots uploaded with /v2/image-upload endpoint + */ + screenshotUploadedImageIds?: number[]; + screenshots?: components["schemas"]["KeyScreenshotDto"][]; + /** @description Translation states to update, if not provided states won't be modified */ + states?: { [key: string]: "TRANSLATED" | "REVIEWED" }; + tags?: string[]; + translations?: { [key: string]: string }; + }; + CreateMultipleTasksRequest: { + tasks: components["schemas"]["CreateTaskRequest"][]; + }; + CreatePatDto: { + /** @description Description of the PAT */ + description: string; + /** + * Format: int64 + * @description Expiration date in epoch format (milliseconds). When null, token never expires. + * @example 1661172869000 + */ + expiresAt?: number; + }; + CreateProjectRequest: { + /** @description Tag of one of created languages, to select it as base language. If not provided, first language will be selected as base. */ + baseLanguageTag?: string; + /** @description Whether to use ICU placeholder visualization in the editor and it's support. */ + icuPlaceholders: boolean; + languages: components["schemas"]["LanguageRequest"][]; + name: string; + /** + * Format: int64 + * @description Organization to create the project in + */ + organizationId: number; + /** @description Slug of your project used in url e.g. "/v2/projects/what-a-project". If not provided, it will be generated */ + slug?: string; + }; + CreateProviderRequest: { + authorizationUri: string; + clientId: string; + clientSecret: string; + domain: string; + enabled: boolean; + force: boolean; + tokenUri: string; + }; + CreateTaskRequest: { + assignees: number[]; + description: string; + /** + * Format: int64 + * @description Due to date in epoch format (milliseconds). + * @example 1661172869000 + */ + dueDate?: number; + keys: number[]; + /** + * Format: int64 + * @description Id of language, this task is attached to. + * @example 1 + */ + languageId: number; + name?: string; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + }; + CreateTranslationSuggestionRequest: { + translation: string; + }; + CreateUpdateGlossaryTermResponse: { + term: components["schemas"]["SimpleGlossaryTermModel"]; + translation?: components["schemas"]["GlossaryTermTranslationModel"]; + }; + CreditBalanceModel: { + /** Format: int64 */ + bucketSize: number; + /** Format: int64 */ + creditBalance: number; + /** + * Format: int64 + * @deprecated + * @description Customers were able to buy extra credits separately in the past. + * + * This option is not available anymore and this field is kept only for backward compatibility purposes and is always 0. + */ + extraCreditBalance: number; + }; + CurrentUsageItemModel: { + /** Format: int64 */ + current: number; + /** Format: int64 */ + included: number; + /** Format: int64 */ + limit: number; + }; + CurrentUsageModel: { + /** @description For MT credits, the values are in full credits. Not Cents. */ + credits: components["schemas"]["CurrentUsageItemModel"]; + isPayAsYouGo: boolean; + keys: components["schemas"]["CurrentUsageItemModel"]; + seats: components["schemas"]["CurrentUsageItemModel"]; + strings: components["schemas"]["CurrentUsageItemModel"]; + }; + DeleteKeysDto: { + /** @description IDs of keys to delete */ + ids: number[]; + }; + DeleteKeysRequest: { + keyIds: number[]; + }; + DeleteMultipleGlossaryTermsRequest: { + termIds: number[]; + }; + DocItem: { + description?: string; + displayName?: string; + name: string; + }; + DomainRequest: { + domain: string; + state: string; + }; + DryRunMergeBranchRequest: { + /** + * Format: int64 + * @description Source branch id + */ + sourceBranchId: number; + /** + * Format: int64 + * @description Target branch id + */ + targetBranchId: number; + }; + EditKeyDto: { + /** @description The branch of the key. (When empty or null default branch will be used) */ + branch?: string; + /** + * @description Description of the key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + name: string; + namespace?: string; + }; + EditProjectRequest: { + /** Format: int64 */ + baseLanguageId?: number; + /** Format: int64 */ + defaultNamespaceId?: number; + description?: string; + /** @description Whether to use ICU placeholder visualization in the editor and it's support. */ + icuPlaceholders: boolean; + name: string; + slug?: string; + /** + * @description Suggestions can be DISABLED (hidden from UI) or ENABLED (visible in the UI) + * @enum {string} + */ + suggestionsMode: "DISABLED" | "ENABLED"; + /** + * @description Protects reviewed translations, so translators can't change them by default and others will receive warning. + * @enum {string} + */ + translationProtection: "NONE" | "PROTECT_REVIEWED"; + useNamespaces: boolean; + }; + EeSubscriptionModel: { + cancelAtPeriodEnd: boolean; + /** Format: int64 */ + currentPeriodEnd?: number; + /** Format: int64 */ + currentUserCount: number; + enabledFeatures: ( + | "GRANULAR_PERMISSIONS" + | "PRIORITIZED_FEATURE_REQUESTS" + | "PREMIUM_SUPPORT" + | "DEDICATED_SLACK_CHANNEL" + | "ASSISTED_UPDATES" + | "DEPLOYMENT_ASSISTANCE" + | "BACKUP_CONFIGURATION" + | "TEAM_TRAINING" + | "ACCOUNT_MANAGER" + | "STANDARD_SUPPORT" + | "PROJECT_LEVEL_CONTENT_STORAGES" + | "WEBHOOKS" + | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" + | "AI_PROMPT_CUSTOMIZATION" + | "SLACK_INTEGRATION" + | "TASKS" + | "SSO" + | "ORDER_TRANSLATION" + | "GLOSSARY" + | "TRANSLATION_LABELS" + )[]; + isPayAsYouGo: boolean; + /** Format: date-time */ + lastValidCheck?: string; + licenseKey: string; + name: string; + nonCommerical: boolean; + /** @enum {string} */ + status: + | "ACTIVE" + | "CANCELED" + | "PAST_DUE" + | "UNPAID" + | "ERROR" + | "TRIALING" + | "KEY_USED_BY_ANOTHER_INSTANCE" + | "UNKNOWN"; + }; + EntityDescriptionWithRelations: { + data: { [key: string]: unknown }; + entityClass: string; + /** Format: int64 */ + entityId: number; + }; + ErrorResponseBody: { + code: string; + params?: unknown[]; + }; + ErrorResponseTyped: { + /** @enum {string} */ + code: + | "unauthenticated" + | "api_access_forbidden" + | "api_key_not_found" + | "invalid_api_key" + | "invalid_project_api_key" + | "project_api_key_expired" + | "bad_credentials" + | "mfa_enabled" + | "invalid_otp_code" + | "mfa_not_enabled" + | "can_not_revoke_own_permissions" + | "data_corrupted" + | "invitation_code_does_not_exist_or_expired" + | "language_tag_exists" + | "language_name_exists" + | "language_not_found" + | "operation_not_permitted" + | "registrations_not_allowed" + | "project_not_found" + | "resource_not_found" + | "scope_not_found" + | "key_exists" + | "third_party_auth_error_message" + | "third_party_auth_no_email" + | "third_party_auth_non_matching_email" + | "third_party_auth_no_sub" + | "third_party_auth_unknown_error" + | "email_already_verified" + | "third_party_unauthorized" + | "third_party_google_workspace_mismatch" + | "third_party_switch_initiated" + | "third_party_switch_conflict" + | "username_already_exists" + | "username_or_password_invalid" + | "user_already_has_permissions" + | "user_already_has_role" + | "user_not_found" + | "file_not_image" + | "file_too_big" + | "invalid_timestamp" + | "email_not_verified" + | "missing_callback_url" + | "invalid_jwt_token" + | "expired_jwt_token" + | "general_jwt_error" + | "cannot_find_suitable_address_part" + | "slug_not_unique" + | "user_is_not_member_of_organization" + | "organization_has_no_other_owner" + | "user_has_no_project_access" + | "user_is_organization_owner" + | "cannot_set_your_own_permissions" + | "user_is_organization_member" + | "property_not_mutable" + | "import_language_not_from_project" + | "existing_language_not_selected" + | "conflict_is_not_resolved" + | "language_already_selected" + | "cannot_parse_file" + | "could_not_resolve_property" + | "cannot_add_more_then_100_languages" + | "no_languages_provided" + | "language_with_base_language_tag_not_found" + | "language_not_from_project" + | "namespace_not_from_project" + | "cannot_delete_base_language" + | "key_not_from_project" + | "max_screenshots_exceeded" + | "translation_not_from_project" + | "can_edit_only_own_comment" + | "request_parse_error" + | "filter_by_value_state_not_valid" + | "import_has_expired" + | "tag_not_from_project" + | "translation_text_too_long" + | "invalid_recaptcha_token" + | "cannot_leave_owning_project" + | "cannot_leave_project_with_organization_role" + | "dont_have_direct_permissions" + | "tag_too_log" + | "too_many_uploaded_images" + | "one_or_more_images_not_found" + | "screenshot_not_of_key" + | "service_not_found" + | "too_many_requests" + | "translation_not_found" + | "out_of_credits" + | "key_not_found" + | "organization_not_found" + | "cannot_find_base_language" + | "base_language_not_found" + | "no_exported_result" + | "cannot_set_your_own_role" + | "only_translate_review_or_view_permission_accepts_view_languages" + | "oauth2_token_url_not_set" + | "oauth2_user_url_not_set" + | "email_already_invited_or_member" + | "price_not_found" + | "invoice_not_from_organization" + | "invoice_not_found" + | "plan_not_found" + | "plan_not_available_any_more" + | "no_auto_translation_method" + | "cannot_translate_base_language" + | "pat_not_found" + | "invalid_pat" + | "pat_expired" + | "operation_unavailable_for_account_type" + | "validation_email_is_not_valid" + | "current_password_required" + | "cannot_create_organization" + | "wrong_current_password" + | "wrong_param_type" + | "user_missing_password" + | "expired_super_jwt_token" + | "cannot_delete_your_own_account" + | "cannot_sort_by_this_column" + | "namespace_not_found" + | "namespace_exists" + | "invalid_authentication_method" + | "unknown_sort_property" + | "only_review_permission_accepts_state_change_languages" + | "only_translate_or_review_permission_accepts_translate_languages" + | "cannot_set_language_permissions_for_admin_scope" + | "cannot_set_view_languages_without_translations_view_scope" + | "cannot_set_translate_languages_without_translations_edit_scope" + | "cannot_set_state_change_languages_without_translations_state_edit_scope" + | "language_not_permitted" + | "scopes_has_to_be_set" + | "set_exactly_one_of_scopes_or_type" + | "translation_exists" + | "import_keys_error" + | "provide_only_one_of_screenshots_and_screenshot_uploaded_image_ids" + | "multiple_projects_not_supported" + | "plan_translation_limit_exceeded" + | "feature_not_enabled" + | "license_key_not_found" + | "cannot_set_view_languages_without_for_level_based_permissions" + | "cannot_set_different_translate_and_state_change_languages_for_level_based_permissions" + | "cannot_disable_your_own_account" + | "subscription_not_found" + | "invoice_does_not_have_usage" + | "customer_not_found" + | "subscription_not_active" + | "organization_already_subscribed" + | "organization_not_subscribed" + | "license_key_used_by_another_instance" + | "translation_spending_limit_exceeded" + | "credit_spending_limit_exceeded" + | "seats_spending_limit_exceeded" + | "this_instance_is_already_licensed" + | "big_meta_not_from_project" + | "mt_service_not_enabled" + | "project_not_selected" + | "organization_not_selected" + | "plan_has_subscribers" + | "translation_failed" + | "batch_job_not_found" + | "key_exists_in_namespace" + | "tag_is_blank" + | "execution_failed_on_management_error" + | "translation_api_rate_limit" + | "cannot_finalize_activity" + | "formality_not_supported_by_service" + | "language_not_supported_by_service" + | "rate_limited" + | "pat_access_not_allowed" + | "pak_access_not_allowed" + | "cannot_modify_disabled_translation" + | "azure_config_required" + | "s3_config_required" + | "content_storage_config_required" + | "content_storage_test_failed" + | "content_storage_config_invalid" + | "invalid_connection_string" + | "cannot_create_azure_storage_client" + | "s3_access_key_required" + | "azure_connection_string_required" + | "s3_secret_key_required" + | "cannot_store_file_to_content_storage" + | "unexpected_error_while_publishing_to_content_storage" + | "webhook_responded_with_non_200_status" + | "unexpected_error_while_executing_webhook" + | "content_storage_is_in_use" + | "cannot_set_state_for_missing_translation" + | "no_project_id_provided" + | "license_key_not_provided" + | "subscription_already_canceled" + | "user_is_subscribed_to_paid_plan" + | "cannot_create_free_plan_without_fixed_type" + | "cannot_modify_plan_free_status" + | "key_id_not_provided" + | "free_self_hosted_seat_limit_exceeded" + | "advanced_params_not_supported" + | "plural_forms_not_found_for_language" + | "nested_plurals_not_supported" + | "message_is_not_plural" + | "content_outside_plural_forms" + | "invalid_plural_form" + | "multiple_plurals_not_supported" + | "custom_values_json_too_long" + | "unsupported_po_message_format" + | "plural_forms_data_loss" + | "current_user_does_not_own_image" + | "user_cannot_view_this_organization" + | "user_is_not_owner_of_organization" + | "user_is_not_owner_or_maintainer_of_organization" + | "pak_created_for_different_project" + | "custom_slug_is_only_applicable_for_custom_storage" + | "invalid_slug_format" + | "batch_job_cancellation_timeout" + | "import_failed" + | "cannot_add_more_then_1000_languages" + | "no_data_to_import" + | "multiple_namespaces_mapped_to_single_file" + | "multiple_mappings_for_same_file_language_name" + | "multiple_mappings_for_null_file_language_name" + | "too_many_mappings_for_file" + | "missing_placeholder_in_template" + | "tag_not_found" + | "cannot_parse_encrypted_slack_login_data" + | "slack_workspace_not_found" + | "cannot_fetch_user_details_from_slack" + | "slack_missing_scope" + | "slack_not_connected_to_your_account" + | "slack_invalid_command" + | "slack_not_subscribed_yet" + | "slack_connection_failed" + | "tolgee_account_already_connected" + | "slack_not_configured" + | "slack_workspace_already_connected" + | "slack_connection_error" + | "email_verification_code_not_valid" + | "cannot_subscribe_to_free_plan" + | "plan_auto_assignment_only_for_free_plans" + | "plan_auto_assignment_only_for_private_plans" + | "task_not_found" + | "task_not_finished" + | "task_not_open" + | "translation_agency_not_found" + | "this_feature_is_not_implemented_in_oss" + | "sso_token_exchange_failed" + | "sso_user_info_retrieval_failed" + | "sso_id_token_expired" + | "sso_user_cannot_create_organization" + | "sso_cant_verify_user" + | "sso_auth_missing_domain" + | "sso_domain_not_found_or_disabled" + | "authentication_method_disabled" + | "native_authentication_disabled" + | "invitation_organization_mismatch" + | "user_is_managed_by_organization" + | "cannot_set_sso_provider_missing_fields" + | "namespaces_cannot_be_disabled_when_namespace_exists" + | "namespace_cannot_be_used_when_feature_is_disabled" + | "sso_domain_not_allowed" + | "sso_login_forced_for_this_account" + | "use_sso_for_authentication_instead" + | "date_has_to_be_in_the_future" + | "custom_plan_and_plan_id_cannot_be_set_together" + | "specify_plan_id_or_custom_plan" + | "custom_plans_has_to_be_private" + | "cannot_create_free_plan_with_prices" + | "subscription_not_scheduled_for_cancellation" + | "cannot_cancel_trial" + | "cannot_update_without_modification" + | "current_subscription_is_not_trialing" + | "sorting_and_paging_is_not_supported_when_using_cursor" + | "strings_metric_are_not_supported" + | "plan_key_limit_exceeded" + | "keys_spending_limit_exceeded" + | "plan_seat_limit_exceeded" + | "instance_not_using_license_key" + | "invalid_path" + | "llm_provider_not_found" + | "llm_provider_error" + | "prompt_not_found" + | "llm_provider_not_returned_json" + | "llm_template_parsing_error" + | "llm_rate_limited" + | "llm_provider_timeout" + | "no_llm_provider_configured" + | "glossary_not_found" + | "glossary_term_not_found" + | "glossary_term_translation_not_found" + | "glossary_non_translatable_term_cannot_be_translated" + | "llm_content_filter" + | "llm_provider_empty_response" + | "label_not_found" + | "label_not_from_project" + | "label_already_exists" + | "filter_by_value_label_not_valid" + | "suggestion_not_found" + | "user_can_only_delete_his_suggestions" + | "cannot_modify_reviewed_translation" + | "cannot_modify_keys" + | "expect_no_conflict_failed" + | "suggestion_cant_be_plural" + | "suggestion_must_be_plural" + | "duplicate_suggestion" + | "unsupported_media_type" + | "impersonation_of_admin_by_supporter_not_allowed" + | "already_impersonating_user" + | "operation_not_permitted_in_read_only_mode" + | "file_processing_failed" + | "branch_not_found" + | "cannot_delete_default_branch" + | "branch_already_exists" + | "origin_branch_not_found" + | "branch_merge_not_found" + | "branch_merge_change_not_found" + | "branch_merge_revision_not_valid" + | "branch_merge_conflicts_not_resolved" + | "branch_merge_already_merged"; + params?: unknown[]; + }; + ExistenceEntityDescription: { + data: { [key: string]: unknown }; + entityClass: string; + /** Format: int64 */ + entityId: number; + exists?: boolean; + relations: { + [key: string]: components["schemas"]["EntityDescriptionWithRelations"]; + }; + }; + ExportFormatModel: { + defaultFileStructureTemplate: string; + extension: string; + /** @enum {string} */ + format: + | "JSON" + | "JSON_TOLGEE" + | "XLIFF" + | "PO" + | "APPLE_STRINGS_STRINGSDICT" + | "APPLE_XLIFF" + | "ANDROID_XML" + | "COMPOSE_XML" + | "FLUTTER_ARB" + | "PROPERTIES" + | "YAML_RUBY" + | "YAML" + | "JSON_I18NEXT" + | "CSV" + | "RESX_ICU" + | "XLSX" + | "APPLE_XCSTRINGS" + | "ANDROID_SDK" + | "APPLE_SDK"; + mediaType: string; + }; + ExportParams: { + /** + * @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). + * + * e.g. Key hello will be exported as <b>hello</b> + */ + escapeHtml?: boolean; + /** + * @description This is a template that defines the structure of the resulting .zip file content. + * + * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, + * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * + * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, + * the English translations of the `home` namespace will be stored in `home/en.json`. + * + * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * + * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` + * but in Android format. (e.g., en-rUS) + */ + fileStructureTemplate?: string; + /** + * @description Filter translations with branch. + * + * By default, default branch is exported. + */ + filterBranch?: string; + /** @description Filter key IDs to be contained in export */ + filterKeyId?: number[]; + /** @description Filter key IDs not to be contained in export */ + filterKeyIdNot?: number[]; + /** @description Filter keys with prefix */ + filterKeyPrefix?: string; + /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ + filterNamespace?: string[]; + /** @description Filter translations with state. By default, all states except untranslated is exported. */ + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + /** + * @description Filter keys tagged by. + * + * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. + */ + filterTag?: string; + /** @description Filter keys tagged by one of provided tags */ + filterTagIn?: string[]; + /** @description Filter keys not tagged by one of provided tags */ + filterTagNotIn?: string[]; + /** + * @description Format to export to + * @enum {string} + */ + format: + | "JSON" + | "JSON_TOLGEE" + | "XLIFF" + | "PO" + | "APPLE_STRINGS_STRINGSDICT" + | "APPLE_XLIFF" + | "ANDROID_XML" + | "COMPOSE_XML" + | "FLUTTER_ARB" + | "PROPERTIES" + | "YAML_RUBY" + | "YAML" + | "JSON_I18NEXT" + | "CSV" + | "RESX_ICU" + | "XLSX" + | "APPLE_XCSTRINGS" + | "ANDROID_SDK" + | "APPLE_SDK"; + /** + * @description Languages to be contained in export. + * + * If null, all languages are exported + * @example en + */ + languages?: string[]; + /** + * @description Message format to be used for export. + * + * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * + * This property is honored only for generic formats like JSON or YAML. + * For specific formats like `YAML_RUBY` it's ignored. + * @enum {string} + */ + messageFormat?: + | "C_SPRINTF" + | "PHP_SPRINTF" + | "JAVA_STRING_FORMAT" + | "APPLE_SPRINTF" + | "RUBY_SPRINTF" + | "I18NEXT" + | "ICU" + | "PYTHON_PERCENT"; + /** + * @description Delimiter to structure file content. + * + * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. + * + * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), + * specific formats like `YAML_RUBY` don't honor this parameter. + */ + structureDelimiter?: string; + /** + * @description If true, for structured formats (like JSON) arrays are supported. + * + * e.g. Key hello[0] will be exported as {"hello": ["..."]} + */ + supportArrays: boolean; + zip: boolean; + }; + GenerateSlugDto: { + name: string; + oldSlug?: string; + }; + GetKeysRequestDto: { + keys: components["schemas"]["KeyDefinitionDto"][]; + /** @description Tags to return language translations in */ + languageTags: string[]; + }; + GlossaryHighlightsRequest: { + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + languageTag: string; + text: string; + }; + GlossaryImportResult: { + /** + * Format: int32 + * @description Number of imported terms + * @example 42 + */ + imported: number; + }; + GlossaryLanguageDto: { + /** + * @description Indicates if this is the base (main) language of the glossary + * @example true + */ + base: boolean; + /** + * @description The language code (e.g., 'en' for English) + * @example en + */ + tag: string; + }; + GlossaryModel: { + /** + * @description Language tag for default translations for terms + * @example en + */ + baseLanguageTag: string; + /** Format: int64 */ + id: number; + name: string; + organizationOwner: components["schemas"]["SimpleOrganizationModel"]; + }; + GlossaryTermHighlightModel: { + position: components["schemas"]["PositionModel"]; + value: components["schemas"]["GlossaryTermModel"]; + }; + GlossaryTermModel: { + description: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm: boolean; + /** @description When true, this term has the same translation across all target languages */ + flagNonTranslatable: boolean; + glossary: components["schemas"]["GlossaryModel"]; + /** Format: int64 */ + id: number; + translations: components["schemas"]["GlossaryTermTranslationModel"][]; + }; + GlossaryTermTranslationModel: { + languageTag: string; + text: string; + }; + HierarchyItem: { + requires: components["schemas"]["HierarchyItem"][]; + /** @enum {string} */ + scope: + | "translations.view" + | "translations.edit" + | "translations.suggest" + | "keys.edit" + | "screenshots.upload" + | "screenshots.delete" + | "screenshots.view" + | "activity.view" + | "languages.edit" + | "admin" + | "project.edit" + | "members.view" + | "members.edit" + | "translation-comments.add" + | "translation-comments.edit" + | "translation-comments.set-state" + | "translations.state-edit" + | "keys.view" + | "keys.delete" + | "keys.create" + | "batch-jobs.view" + | "batch-jobs.cancel" + | "translations.batch-by-tm" + | "translations.batch-machine" + | "content-delivery.manage" + | "content-delivery.publish" + | "webhooks.manage" + | "tasks.view" + | "tasks.edit" + | "prompts.view" + | "prompts.edit" + | "translation-labels.manage" + | "translation-labels.assign" + | "all.view"; + }; + IdentifyRequest: { + anonymousUserId: string; + }; + ImageUploadInfoDto: { + location?: string; + }; + ImportAddFilesResultModel: { + errors: components["schemas"]["ErrorResponseBody"][]; + result?: components["schemas"]["PagedModelImportLanguageModel"]; + warnings: components["schemas"]["ErrorResponseBody"][]; + }; + ImportFileIssueModel: { + /** Format: int64 */ + id: number; + params: components["schemas"]["ImportFileIssueParamModel"][]; + /** @enum {string} */ + type: + | "KEY_IS_NOT_STRING" + | "MULTIPLE_VALUES_FOR_KEY_AND_LANGUAGE" + | "VALUE_IS_NOT_STRING" + | "KEY_IS_EMPTY" + | "VALUE_IS_EMPTY" + | "PO_MSGCTXT_NOT_SUPPORTED" + | "ID_ATTRIBUTE_NOT_PROVIDED" + | "TARGET_NOT_PROVIDED" + | "TRANSLATION_TOO_LONG" + | "KEY_IS_BLANK" + | "TRANSLATION_DEFINED_IN_ANOTHER_FILE" + | "INVALID_CUSTOM_VALUES" + | "DESCRIPTION_TOO_LONG"; + }; + ImportFileIssueParamModel: { + /** @enum {string} */ + type: + | "KEY_NAME" + | "KEY_ID" + | "LANGUAGE_ID" + | "KEY_INDEX" + | "VALUE" + | "LINE" + | "FILE_NODE_ORIGINAL" + | "LANGUAGE_NAME"; + value?: string; + }; + ImportFileMapping: { + /** @description Name of the file to import. This is the name of the file provided in `files` request part or in uploaded archive. */ + fileName: string; + /** + * @description Format of the file. If not provided, Tolgee will try to guess the format from the file name or file contents. + * + * It is recommended to provide these values to prevent any issues with format detection. + * @enum {string} + */ + format?: + | "CSV_ICU" + | "CSV_JAVA" + | "CSV_PHP" + | "CSV_RUBY" + | "JSON_I18NEXT" + | "JSON_ICU" + | "JSON_JAVA" + | "JSON_PHP" + | "JSON_RUBY" + | "JSON_C" + | "PO_PHP" + | "PO_C" + | "PO_JAVA" + | "PO_ICU" + | "PO_RUBY" + | "PO_PYTHON" + | "STRINGS" + | "STRINGSDICT" + | "APPLE_XLIFF" + | "APPLE_XCSTRINGS" + | "PROPERTIES_ICU" + | "PROPERTIES_JAVA" + | "PROPERTIES_UNKNOWN" + | "ANDROID_XML" + | "COMPOSE_XML" + | "FLUTTER_ARB" + | "YAML_RUBY" + | "YAML_JAVA" + | "YAML_ICU" + | "YAML_PHP" + | "YAML_UNKNOWN" + | "XLIFF_ICU" + | "XLIFF_JAVA" + | "XLIFF_PHP" + | "XLIFF_RUBY" + | "RESX_ICU" + | "XLSX_ICU" + | "XLSX_JAVA" + | "XLSX_PHP" + | "XLSX_RUBY"; + /** + * @description The existing language tag in the Tolgee platform to which the imported language should be mapped. + * + * When null, Tolgee will try to guess the language from the file contents or file name. + */ + languageTag?: string; + /** + * @description Tags of languages to be imported. When null, all languages from will be imported. + * + * This field is useful when the file contains multiple languages and you want to import only some of them. For example when importing Apple String Catalog (APPLE_XCSTRINGS), you might want only to import the base language. + */ + languageTagsToImport?: string[]; + /** @description Namespace to import the file to. If not provided, the key will be imported without namespace. */ + namespace?: string; + }; + ImportKeysDto: { + keys: components["schemas"]["ImportKeysItemDto"][]; + }; + ImportKeysItemDto: { + /** + * @description Description of key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + /** + * @description Key name to set translations for + * @example what_a_key_to_translate + */ + name: string; + /** @description The namespace of the key. (When empty or null default namespace will be used) */ + namespace?: string; + /** + * @description Tags of the key + * @example [ + * "homepage", + * "user-profile" + * ] + */ + tags?: string[]; + /** + * @description Object mapping language tag to translation + * @example { + * "en": "What a translated value!", + * "cs": "Jaká to přeložená hodnota!" + * } + */ + translations: { [key: string]: string }; + }; + ImportKeysResolvableDto: { + keys: components["schemas"]["ImportKeysResolvableItemDto"][]; + }; + ImportKeysResolvableItemDto: { + branch?: string; + /** + * @description Key name to set translations for + * @example what_a_key_to_translate + */ + name: string; + /** @description The namespace of the key. (When empty or null default namespace will be used) */ + namespace?: string; + screenshots?: components["schemas"]["KeyScreenshotDto"][]; + /** @description Object mapping language tag to translation */ + translations: { + [key: string]: components["schemas"]["ImportTranslationResolvableDto"]; + }; + }; + ImportLanguageModel: { + /** Format: int32 */ + conflictCount: number; + /** + * @deprecated + * @description Use existingLanguageTag + */ + existingLanguageAbbreviation?: string; + /** Format: int64 */ + existingLanguageId?: number; + existingLanguageName?: string; + existingLanguageTag?: string; + /** Format: int64 */ + id: number; + /** Format: int64 */ + importFileId: number; + /** Format: int32 */ + importFileIssueCount: number; + importFileName: string; + name: string; + namespace?: string; + /** Format: int32 */ + resolvedCount: number; + /** Format: int32 */ + totalCount: number; + }; + ImportNamespaceModel: { + /** + * Format: int64 + * @description The id of namespace. When null, namespace doesn't exist and will be created by import. + * @example 10000048 + */ + id?: number; + /** @example homepage */ + name: string; + }; + ImportResult: { + unresolvedConflicts?: components["schemas"]["SimpleImportConflictResult"][]; + }; + ImportSettingsModel: { + /** @description If true, placeholders from other formats will be converted to ICU when possible */ + convertPlaceholdersToIcu: boolean; + /** @description If false, only updates keys, skipping the creation of new keys */ + createNewKeys: boolean; + /** @description If true, key descriptions will be overridden by the import */ + overrideKeyDescriptions: boolean; + }; + ImportSettingsRequest: { + /** @description If true, placeholders from other formats will be converted to ICU when possible */ + convertPlaceholdersToIcu: boolean; + /** @description If false, only updates keys, skipping the creation of new keys */ + createNewKeys: boolean; + /** @description If true, key descriptions will be overridden by the import */ + overrideKeyDescriptions: boolean; + }; + ImportTranslationModel: { + /** Format: int64 */ + conflictId?: number; + conflictText?: string; + /** @enum {string} */ + conflictType?: + | "SHOULD_NOT_EDIT_REVIEWED" + | "CANNOT_EDIT_REVIEWED" + | "CANNOT_EDIT_DISABLED"; + existingKeyIsPlural: boolean; + /** Format: int64 */ + id: number; + isOverridable: boolean; + isPlural: boolean; + keyDescription?: string; + /** Format: int64 */ + keyId: number; + keyName: string; + override: boolean; + resolved: boolean; + text?: string; + }; + ImportTranslationResolvableDto: { + /** + * @description Determines, how conflict is resolved. + * - KEEP: Translation is not changed + * - OVERRIDE: Translation is overridden + * - NEW: New translation is created + * - FORCE_OVERRIDE: Translation is updated, created or kept. + * + * @example OVERRIDE + * @enum {string} + */ + resolution: "KEEP" | "OVERRIDE" | "NEW" | "FORCE_OVERRIDE"; + /** + * @description Translation text + * @example Hello! I am a translation! + */ + text: string; + }; + InitialDataEeSubscriptionModel: { + /** @enum {string} */ + status: + | "ACTIVE" + | "CANCELED" + | "PAST_DUE" + | "UNPAID" + | "ERROR" + | "TRIALING" + | "KEY_USED_BY_ANOTHER_INSTANCE" + | "UNKNOWN"; + }; + InitialDataModel: { + announcement?: components["schemas"]["AnnouncementDto"]; + authInfo?: components["schemas"]["AuthInfoModel"]; + eeSubscription?: components["schemas"]["InitialDataEeSubscriptionModel"]; + languageTag?: string; + preferredOrganization?: components["schemas"]["PrivateOrganizationModel"]; + serverConfiguration: components["schemas"]["PublicConfigurationDTO"]; + ssoInfo?: components["schemas"]["PublicSsoTenantModel"]; + userInfo?: components["schemas"]["PrivateUserAccountModel"]; + }; + JobInfo: { + /** Format: int64 */ + createdAt?: number; + /** Format: int64 */ + jobId: number; + /** @enum {string} */ + status: + | "PENDING" + | "RUNNING" + | "SUCCESS" + | "FAILED" + | "CANCELLED" + | "DEBOUNCED"; + /** @enum {string} */ + type: + | "AI_PLAYGROUND_TRANSLATE" + | "PRE_TRANSLATE_BT_TM" + | "MACHINE_TRANSLATE" + | "AUTO_TRANSLATE" + | "DELETE_KEYS" + | "SET_TRANSLATIONS_STATE" + | "CLEAR_TRANSLATIONS" + | "COPY_TRANSLATIONS" + | "TAG_KEYS" + | "UNTAG_KEYS" + | "SET_KEYS_NAMESPACE" + | "AUTOMATION" + | "BILLING_TRIAL_EXPIRATION_NOTICE" + | "ASSIGN_TRANSLATION_LABEL" + | "UNASSIGN_TRANSLATION_LABEL"; + }; + JsonNode: unknown; + JwtAuthenticationResponse: { + accessToken?: string; + tokenType?: string; + }; + KeyDefinitionDto: { + name: string; + namespace?: string; + }; + KeyDisabledLanguageModel: { + /** Format: int64 */ + id: number; + tag: string; + }; + KeyDisabledLanguagesModel: { + /** @description Disabled languages */ + disabledLanguages: components["schemas"]["KeyDisabledLanguageModel"][]; + /** + * Format: int64 + * @description Id of key record + */ + id: number; + /** + * @description Name of key + * @example this_is_super_key + */ + name: string; + /** + * @description Namespace of key + * @example homepage + */ + namespace?: string; + }; + KeyId: { + /** + * Format: int64 + * @description If key id is provided, name and namespace are ignored. + */ + id?: number; + name?: string; + namespace?: string; + }; + KeyImportResolvableResultModel: { + /** @description List of keys */ + keys: components["schemas"]["KeyModel"][]; + /** @description Map uploadedImageId to screenshot */ + screenshots: { [key: string]: components["schemas"]["ScreenshotModel"] }; + }; + KeyInScreenshotModel: { + /** Format: int64 */ + keyId: number; + keyName: string; + keyNamespace?: string; + originalText?: string; + position?: components["schemas"]["KeyInScreenshotPosition"]; + }; + KeyInScreenshotPosition: { + /** Format: int32 */ + height: number; + /** Format: int32 */ + width: number; + /** Format: int32 */ + x: number; + /** Format: int32 */ + y: number; + }; + KeyInScreenshotPositionDto: { + /** Format: int32 */ + height: number; + /** Format: int32 */ + width: number; + /** Format: int32 */ + x: number; + /** Format: int32 */ + y: number; + }; + KeyModel: { + /** + * @description Branch of key + * @example dev + */ + branch?: string; + /** @description Custom values of the key */ + custom?: { [key: string]: unknown }; + /** + * @description Description of key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + /** + * Format: int64 + * @description Id of key record + */ + id: number; + /** + * @description Name of key + * @example this_is_super_key + */ + name: string; + /** + * @description Namespace of key + * @example homepage + */ + namespace?: string; + }; + KeyScreenshotDto: { + positions?: components["schemas"]["KeyInScreenshotPositionDto"][]; + text?: string; + /** + * Format: int64 + * @description Ids of screenshot uploaded with /v2/image-upload endpoint + */ + uploadedImageId: number; + }; + KeySearchResultView: { + baseTranslation?: string; + description?: string; + /** Format: int64 */ + id: number; + name: string; + namespace?: string; + translation?: string; + }; + KeySearchSearchResultModel: { + baseTranslation?: string; + description?: string; + /** Format: int64 */ + id: number; + name: string; + namespace?: string; + translation?: string; + view?: components["schemas"]["KeySearchResultView"]; + }; + KeyTaskViewModel: { + done: boolean; + /** Format: int64 */ + languageId: number; + languageTag: string; + /** Format: int64 */ + number: number; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + userAssigned: boolean; + }; + KeyWithBaseTranslationModel: { + /** + * @description Base translation + * @example This is translation + */ + baseTranslation?: string; + /** + * Format: int64 + * @description Id of key record + */ + id: number; + /** + * @description Name of key + * @example this_is_super_key + */ + name: string; + /** + * @description Namespace of key + * @example homepage + */ + namespace?: string; + }; + KeyWithDataModel: { + /** @description Branch of the key */ + branch?: string; + /** @description Custom values of the key */ + custom: { [key: string]: unknown }; + /** + * @description Description of key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + /** + * Format: int64 + * @description Id of key record + */ + id: number; + /** @description If key is pluralized. If it will be reflected in the editor */ + isPlural: boolean; + /** + * @description Name of key + * @example this_is_super_key + */ + name: string; + /** + * @description Namespace of key + * @example homepage + */ + namespace?: string; + /** @description The argument name for the plural */ + pluralArgName?: string; + /** @description Screenshots of the key */ + screenshots: components["schemas"]["ScreenshotModel"][]; + /** @description Tags of key */ + tags: components["schemas"]["TagModel"][]; + /** + * @description Translations object containing values updated in this request + * @example { + * "en": { + * "id": 100000003, + * "text": "This is super translation!" + * } + * } + */ + translations: { + [key: string]: components["schemas"]["TranslationModel"]; + }; + }; + KeyWithTranslationsModel: { + /** @description There is a context available for this key */ + contextPresent: boolean; + /** + * Format: int64 + * @description The time when the key was created + */ + createdAt: number; + /** + * @description The namespace of the key + * @example homepage + */ + keyDescription?: string; + /** + * Format: int64 + * @description Id of key record + */ + keyId: number; + /** + * @description Is this key a plural? + * @example true + */ + keyIsPlural: boolean; + /** + * @description Name of key + * @example this_is_super_key + */ + keyName: string; + /** + * @description The namespace of the key + * @example homepage + */ + keyNamespace?: string; + /** + * Format: int64 + * @description The namespace id of the key + * @example 100000282 + */ + keyNamespaceId?: number; + /** + * @description The placeholder name for plural parameter + * @example value + */ + keyPluralArgName?: string; + /** @description Tags of key */ + keyTags: components["schemas"]["TagModel"][]; + /** + * Format: int64 + * @description Count of screenshots provided for the key + * @example 1 + */ + screenshotCount: number; + /** @description Key screenshots. Not provided when API key hasn't screenshots.view scope permission. */ + screenshots?: components["schemas"]["ScreenshotModel"][]; + /** @description Tasks related to this key */ + tasks?: components["schemas"]["KeyTaskViewModel"][]; + /** + * @description Translations object + * @example + * { + * "en": { + * "id": 100000003, + * "text": "This is super translation!" + * "state": "TRANSLATED", + * "commentCount": 1 + * } + * } + */ + translations: { + [key: string]: components["schemas"]["TranslationViewModel"]; + }; + }; + KeysScopeView: { + /** Format: int64 */ + characterCount: number; + /** Format: int64 */ + keyCount: number; + /** Format: int64 */ + keyCountIncludingConflicts: number; + /** Format: int64 */ + wordCount: number; + }; + KeysWithTranslationsPageModel: { + _embedded?: { + keys?: components["schemas"]["KeyWithTranslationsModel"][]; + }; + /** + * @description Cursor to get next data + * @example eyJrZXlJZCI6eyJkaXJlY3Rpb24iOiJBU0MiLCJ2YWx1ZSI6IjEwMDAwMDAxMjAifX0= + */ + nextCursor?: string; + page?: components["schemas"]["PageMetadata"]; + pagedModel?: components["schemas"]["PagedModelKeyWithTranslationsModel"]; + /** @description Provided languages data */ + selectedLanguages: components["schemas"]["LanguageModel"][]; + }; + LabelModel: { + color: string; + description?: string; + /** Format: int64 */ + id: number; + name: string; + }; + LabelRequest: { + /** + * @description Hex color in format #RRGGBB. + * @example #FF5733 + */ + color: string; + description?: string; + name: string; + }; + LabelTranslationsRequest: { + keyIds: number[]; + labelIds: number[]; + languageIds: number[]; + }; + LanguageAiPromptCustomizationModel: { + /** + * @description The language description used in the prompt that helps AI translator to fine tune results for specific language + * @example For arabic language, we are super formal. Always use these translations: + * Paper -> ورقة + * Office -> مكتب + */ + description?: string; + language: components["schemas"]["LanguageModel"]; + }; + LanguageConfigItemModel: { + /** + * @deprecated + * @description Services to be used for suggesting (deprecated: use enabledServicesInfo) + */ + enabledServices: ( + | "GOOGLE" + | "AWS" + | "DEEPL" + | "AZURE" + | "BAIDU" + | "PROMPT" + )[]; + /** @description Info about enabled services */ + enabledServicesInfo: components["schemas"]["MtServiceInfo"][]; + /** + * @deprecated + * @description Service used for automated translating (deprecated: use primaryServiceInfo) + * @enum {string} + */ + primaryService?: + | "GOOGLE" + | "AWS" + | "DEEPL" + | "AZURE" + | "BAIDU" + | "PROMPT"; + /** @description Service info used for automated translating */ + primaryServiceInfo?: components["schemas"]["MtServiceInfo"]; + /** + * Format: int64 + * @description When null, its a default configuration applied to not configured languages + */ + targetLanguageId?: number; + /** @description When null, its a default configuration applied to not configured languages */ + targetLanguageName?: string; + /** @description When null, its a default configuration applied to not configured languages */ + targetLanguageTag?: string; + }; + LanguageInfoModel: { + /** Format: int64 */ + languageId?: number; + languageTag?: string; + supportedServices: components["schemas"]["MtSupportedService"][]; + }; + LanguageMapping: { + /** + * @description The language from the imported file. + * + * For xliff files, this is the `source-language` or the `target-language` attribute value of `file` element. + * @example en-US + */ + importLanguage: string; + /** + * @description The tag of language existing in the Tolgee platform to which the imported language should be mapped. + * @example en-US + */ + platformLanguageTag: string; + }; + LanguageModel: { + /** + * @description Whether is base language of project + * @example false + */ + base: boolean; + /** + * @description Language flag emoji as UTF-8 emoji + * @example 🇨🇿 + */ + flagEmoji?: string; + /** Format: int64 */ + id: number; + /** + * @description Language name in english + * @example Czech + */ + name: string; + /** + * @description Language name in this language + * @example čeština + */ + originalName?: string; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + tag: string; + }; + LanguageRequest: { + /** + * @description Language flag emoji as UTF-8 emoji + * @example 🇨🇿 + */ + flagEmoji?: string; + /** + * @description Language name in english + * @example Czech + */ + name: string; + /** + * @description Language name in this language + * @example čeština + */ + originalName: string; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + tag: string; + }; + LanguageStatsModel: { + languageFlagEmoji?: string; + /** Format: int64 */ + languageId?: number; + languageName?: string; + languageOriginalName?: string; + languageTag?: string; + /** Format: int64 */ + reviewedKeyCount: number; + /** Format: double */ + reviewedPercentage: number; + /** Format: int64 */ + reviewedWordCount: number; + /** Format: int64 */ + translatedKeyCount: number; + /** Format: double */ + translatedPercentage: number; + /** Format: int64 */ + translatedWordCount: number; + /** Format: date-time */ + translationsUpdatedAt?: string; + /** Format: int64 */ + untranslatedKeyCount: number; + /** Format: double */ + untranslatedPercentage: number; + /** Format: int64 */ + untranslatedWordCount: number; + }; + LlmProviderModel: { + apiKey?: string; + apiUrl?: string; + deployment?: string; + format?: string; + /** Format: int64 */ + id: number; + model?: string; + name: string; + /** @enum {string} */ + priority?: "LOW" | "HIGH"; + reasoningEffort?: string; + /** @enum {string} */ + type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; + }; + LlmProviderRequest: { + apiKey?: string; + apiUrl: string; + deployment?: string; + format?: string; + keepAlive?: string; + model?: string; + name: string; + /** @enum {string} */ + priority?: "LOW" | "HIGH"; + reasoningEffort?: string; + /** @enum {string} */ + type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; + }; + LlmProviderSimpleModel: { + name: string; + source?: string; + /** @enum {string} */ + type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; + }; + LoginRequest: { + otp?: string; + password: string; + username: string; + }; + MachineTranslationLanguagePropsDto: { + /** + * @deprecated + * @description List of enabled services (deprecated: use enabledServicesInfo) + */ + enabledServices?: ( + | "GOOGLE" + | "AWS" + | "DEEPL" + | "AZURE" + | "BAIDU" + | "PROMPT" + )[]; + /** @description Info about enabled services */ + enabledServicesInfo?: components["schemas"]["MtServiceInfo"][]; + /** + * @deprecated + * @description This service will be used for automated translation + * @enum {string} + */ + primaryService?: + | "GOOGLE" + | "AWS" + | "DEEPL" + | "AZURE" + | "BAIDU" + | "PROMPT"; + /** @description This service info will be used for automated translation */ + primaryServiceInfo?: components["schemas"]["MtServiceInfo"]; + /** + * Format: int64 + * @description The language to apply those rules. If null, then this settings are default. + */ + targetLanguageId?: number; + }; + MachineTranslationProviderModel: { + /** + * @description BCP 47 tags of languages supported by the translation service. When null, all possible languages are supported. + * + * Please note that Tolgee tries to fall back to a higher subtag if the subtag is not supported. + * + * E.g., if `pt-BR` is not supported. Tolgee fallbacks to `pt`. + */ + supportedLanguages?: string[]; + }; + MachineTranslationRequest: { + keyIds: number[]; + llmPrompt?: components["schemas"]["PromptDto"]; + targetLanguageIds: number[]; + }; + ModifiedEntityModel: { + description?: { [key: string]: unknown }; + entityClass: string; + /** Format: int64 */ + entityId: number; + exists?: boolean; + modifications?: { + [key: string]: components["schemas"]["PropertyModification"]; + }; + relations?: { + [key: string]: components["schemas"]["ExistenceEntityDescription"]; + }; + }; + MtServiceDTO: { + defaultEnabledForProject: boolean; + enabled: boolean; + }; + MtServiceInfo: { + /** @enum {string} */ + formality?: "FORMAL" | "INFORMAL" | "DEFAULT"; + /** Format: int64 */ + promptId?: number; + /** @enum {string} */ + serviceType: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + }; + MtServicesDTO: { + services: { [key: string]: components["schemas"]["MtServiceDTO"] }; + }; + MtSupportedService: { + formalitySupported: boolean; + /** @enum {string} */ + serviceType: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + }; + NamespaceModel: { + /** + * Format: int64 + * @description The id of namespace + * @example 10000048 + */ + id: number; + /** @example homepage */ + name: string; + }; + NotificationModel: { + /** Format: date-time */ + createdAt?: string; + /** Format: int64 */ + id: number; + linkedTask?: components["schemas"]["TaskModel"]; + originatingUser?: components["schemas"]["SimpleUserAccountModel"]; + project?: components["schemas"]["SimpleProjectModel"]; + /** @enum {string} */ + type: + | "TASK_ASSIGNED" + | "TASK_FINISHED" + | "TASK_CANCELED" + | "MFA_ENABLED" + | "MFA_DISABLED" + | "PASSWORD_CHANGED"; + }; + NotificationSettingGroupModel: { + email: boolean; + inApp: boolean; + }; + NotificationSettingModel: { + accountSecurity: components["schemas"]["NotificationSettingGroupModel"]; + tasks: components["schemas"]["NotificationSettingGroupModel"]; + }; + NotificationSettingsRequest: { + /** + * @example IN_APP + * @enum {string} + */ + channel: "IN_APP" | "EMAIL"; + /** + * @description True if the setting should be enabled, false for disabled + * @example false + */ + enabled: boolean; + /** + * @example TASKS + * @enum {string} + */ + group: "ACCOUNT_SECURITY" | "TASKS"; + }; + NotificationsMarkSeenRequest: { + /** + * @description Notification IDs to be marked as seen + * @example [ + * 1, + * 2, + * 3 + * ] + */ + notificationIds: number[]; + }; + OAuthPublicConfigDTO: { + clientId?: string; + enabled: boolean; + }; + OAuthPublicExtendsConfigDTO: { + authorizationUrl?: string; + clientId?: string; + enabled: boolean; + scopes?: string[]; + }; + OrganizationDto: { + /** @example This is a beautiful organization full of beautiful and clever people */ + description?: string; + /** @example Beautiful organization */ + name: string; + /** @example btforg */ + slug?: string; + }; + OrganizationInvitationModel: { + code: string; + /** Format: date-time */ + createdAt: string; + createdBy?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + id: number; + invitedUserEmail?: string; + invitedUserName?: string; + /** @enum {string} */ + type: "MEMBER" | "OWNER" | "MAINTAINER"; + }; + OrganizationInviteUserDto: { + /** @description Email to send invitation to */ + email?: string; + /** @description Name of invited user */ + name?: string; + /** @enum {string} */ + roleType: "MEMBER" | "OWNER" | "MAINTAINER"; + }; + OrganizationLanguageModel: { + /** + * @description Whether is base language of any project + * @example false + */ + base: boolean; + /** + * @description Language flag emoji as UTF-8 emoji + * @example 🇨🇿 + */ + flagEmoji?: string; + /** + * @description Language name in english + * @example Czech + */ + name: string; + /** + * @description Language name in this language + * @example čeština + */ + originalName?: string; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + tag: string; + }; + OrganizationModel: { + /** @example Links to avatar images */ + avatar?: components["schemas"]["Avatar"]; + basePermissions: components["schemas"]["PermissionModel"]; + /** + * @description The role of currently authorized user. + * + * Can be null when user has direct access to one of the projects owned by the organization. + * @enum {string} + */ + currentUserRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + /** @example This is a beautiful organization full of beautiful and clever people */ + description?: string; + /** Format: int64 */ + id: number; + /** @example Beautiful organization */ + name: string; + /** @example btforg */ + slug: string; + }; + PageMetadata: { + /** Format: int64 */ + number?: number; + /** Format: int64 */ + size?: number; + /** Format: int64 */ + totalElements?: number; + /** Format: int64 */ + totalPages?: number; + }; + Pageable: { + /** Format: int32 */ + page?: number; + /** Format: int32 */ + size?: number; + sort?: string[]; + }; + PagedModelApiKeyModel: { + _embedded?: { + apiKeys?: components["schemas"]["ApiKeyModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBatchJobModel: { + _embedded?: { + batchJobs?: components["schemas"]["BatchJobModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBranchMergeChangeModel: { + _embedded?: { + branchMergeChanges?: components["schemas"]["BranchMergeChangeModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBranchMergeConflictModel: { + _embedded?: { + branchMergeConflicts?: components["schemas"]["BranchMergeConflictModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBranchMergeModel: { + _embedded?: { + branchMerges?: components["schemas"]["BranchMergeModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBranchModel: { + _embedded?: { + branches?: components["schemas"]["BranchModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelContentDeliveryConfigModel: { + _embedded?: { + contentDeliveryConfigs?: components["schemas"]["ContentDeliveryConfigModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelContentStorageModel: { + _embedded?: { + contentStorages?: components["schemas"]["ContentStorageModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelImportFileIssueModel: { + _embedded?: { + importFileIssues?: components["schemas"]["ImportFileIssueModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelImportLanguageModel: { + _embedded?: { + languages?: components["schemas"]["ImportLanguageModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelImportTranslationModel: { + _embedded?: { + translations?: components["schemas"]["ImportTranslationModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelKeyModel: { + _embedded?: { + keys?: components["schemas"]["KeyModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelKeySearchSearchResultModel: { + _embedded?: { + keys?: components["schemas"]["KeySearchSearchResultModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelKeyWithTranslationsModel: { + _embedded?: { + keys?: components["schemas"]["KeyWithTranslationsModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelLabelModel: { + _embedded?: { + labels?: components["schemas"]["LabelModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelLanguageModel: { + _embedded?: { + languages?: components["schemas"]["LanguageModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelModifiedEntityModel: { + _embedded?: { + modifiedEntities?: components["schemas"]["ModifiedEntityModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelNamespaceModel: { + _embedded?: { + namespaces?: components["schemas"]["NamespaceModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelNotificationModel: { + _embedded?: { + notificationModelList?: components["schemas"]["NotificationModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelOrganizationLanguageModel: { + _embedded?: { + languages?: components["schemas"]["OrganizationLanguageModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelOrganizationModel: { + _embedded?: { + organizations?: components["schemas"]["OrganizationModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelPatModel: { + _embedded?: { + pats?: components["schemas"]["PatModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelProjectActivityModel: { + _embedded?: { + activities?: components["schemas"]["ProjectActivityModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelProjectModel: { + _embedded?: { + projects?: components["schemas"]["ProjectModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelProjectWithStatsModel: { + _embedded?: { + projects?: components["schemas"]["ProjectWithStatsModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelPromptModel: { + _embedded?: { + prompts?: components["schemas"]["PromptModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleGlossaryModel: { + _embedded?: { + glossaries?: components["schemas"]["SimpleGlossaryModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleGlossaryTermModel: { + _embedded?: { + glossaryTerms?: components["schemas"]["SimpleGlossaryTermModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleGlossaryTermWithTranslationsModel: { + _embedded?: { + glossaryTerms?: components["schemas"]["SimpleGlossaryTermWithTranslationsModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleGlossaryWithStatsModel: { + _embedded?: { + glossaries?: components["schemas"]["SimpleGlossaryWithStatsModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleUserAccountModel: { + _embedded?: { + users?: components["schemas"]["SimpleUserAccountModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTagModel: { + _embedded?: { + tags?: components["schemas"]["TagModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTaskModel: { + _embedded?: { + tasks?: components["schemas"]["TaskModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTaskWithProjectModel: { + _embedded?: { + tasks?: components["schemas"]["TaskWithProjectModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTranslationCommentModel: { + _embedded?: { + translationComments?: components["schemas"]["TranslationCommentModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTranslationHistoryModel: { + _embedded?: { + revisions?: components["schemas"]["TranslationHistoryModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTranslationMemoryItemModel: { + _embedded?: { + translationMemoryItems?: components["schemas"]["TranslationMemoryItemModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTranslationSuggestionModel: { + _embedded?: { + suggestions?: components["schemas"]["TranslationSuggestionModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelUserAccountInProjectModel: { + _embedded?: { + users?: components["schemas"]["UserAccountInProjectModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelUserAccountModel: { + _embedded?: { + users?: components["schemas"]["UserAccountModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelUserAccountWithOrganizationRoleModel: { + _embedded?: { + usersInOrganization?: components["schemas"]["UserAccountWithOrganizationRoleModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelWebhookConfigModel: { + _embedded?: { + webhookConfigs?: components["schemas"]["WebhookConfigModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelWithNextCursorNotificationModel: { + _embedded?: { + notificationModelList?: components["schemas"]["NotificationModel"][]; + }; + /** + * @description Cursor to get next data + * @example eyJrZXlJZCI6eyJkaXJlY3Rpb24iOiJBU0MiLCJ2YWx1ZSI6IjEwMDAwMDAxMjAifX0= + */ + nextCursor?: string; + page?: components["schemas"]["PageMetadata"]; + pagedModel?: components["schemas"]["PagedModelNotificationModel"]; + }; + PatModel: { + /** Format: int64 */ + createdAt: number; + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** Format: int64 */ + lastUsedAt?: number; + /** Format: int64 */ + updatedAt: number; + }; + PatWithUserModel: { + /** Format: int64 */ + createdAt: number; + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** Format: int64 */ + lastUsedAt?: number; + /** Format: int64 */ + updatedAt: number; + user: components["schemas"]["SimpleUserAccountModel"]; + }; + PermissionModel: { + /** + * @deprecated + * @description Deprecated (use translateLanguageIds). + * + * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + permittedLanguageIds?: number[]; + /** + * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. + * @example [ + * "KEYS_EDIT", + * "TRANSLATIONS_VIEW" + * ] + */ + scopes: ( + | "translations.view" + | "translations.edit" + | "translations.suggest" + | "keys.edit" + | "screenshots.upload" + | "screenshots.delete" + | "screenshots.view" + | "activity.view" + | "languages.edit" + | "admin" + | "project.edit" + | "members.view" + | "members.edit" + | "translation-comments.add" + | "translation-comments.edit" + | "translation-comments.set-state" + | "translations.state-edit" + | "keys.view" + | "keys.delete" + | "keys.create" + | "batch-jobs.view" + | "batch-jobs.cancel" + | "translations.batch-by-tm" + | "translations.batch-machine" + | "content-delivery.manage" + | "content-delivery.publish" + | "webhooks.manage" + | "tasks.view" + | "tasks.edit" + | "prompts.view" + | "prompts.edit" + | "translation-labels.manage" + | "translation-labels.assign" + | "all.view" + )[]; + /** + * @description List of languages user can change state to. If null, changing state of all language values is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + stateChangeLanguageIds?: number[]; + /** + * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + suggestLanguageIds?: number[]; + /** + * @description List of languages user can translate to. If null, all languages editing is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + translateLanguageIds?: number[]; + /** + * @description The user's permission type. This field is null if uses granular permissions + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** + * @description List of languages user can view. If null, all languages view is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + viewLanguageIds?: number[]; + }; + PermissionWithAgencyModel: { + agency?: components["schemas"]["TranslationAgencySimpleModel"]; + /** + * @deprecated + * @description Deprecated (use translateLanguageIds). + * + * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + permittedLanguageIds?: number[]; + /** + * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. + * @example [ + * "KEYS_EDIT", + * "TRANSLATIONS_VIEW" + * ] + */ + scopes: ( + | "translations.view" + | "translations.edit" + | "translations.suggest" + | "keys.edit" + | "screenshots.upload" + | "screenshots.delete" + | "screenshots.view" + | "activity.view" + | "languages.edit" + | "admin" + | "project.edit" + | "members.view" + | "members.edit" + | "translation-comments.add" + | "translation-comments.edit" + | "translation-comments.set-state" + | "translations.state-edit" + | "keys.view" + | "keys.delete" + | "keys.create" + | "batch-jobs.view" + | "batch-jobs.cancel" + | "translations.batch-by-tm" + | "translations.batch-machine" + | "content-delivery.manage" + | "content-delivery.publish" + | "webhooks.manage" + | "tasks.view" + | "tasks.edit" + | "prompts.view" + | "prompts.edit" + | "translation-labels.manage" + | "translation-labels.assign" + | "all.view" + )[]; + /** + * @description List of languages user can change state to. If null, changing state of all language values is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + stateChangeLanguageIds?: number[]; + /** + * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + suggestLanguageIds?: number[]; + /** + * @description List of languages user can translate to. If null, all languages editing is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + translateLanguageIds?: number[]; + /** + * @description The user's permission type. This field is null if uses granular permissions + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** + * @description List of languages user can view. If null, all languages view is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + viewLanguageIds?: number[]; + }; + PlanIncludedUsageModel: { + /** Format: int64 */ + keys: number; + /** Format: int64 */ + mtCredits: number; + /** Format: int64 */ + seats: number; + /** Format: int64 */ + translations: number; + }; + PlanPricesModel: { + perSeat: number; + perThousandKeys: number; + perThousandMtCredits?: number; + perThousandTranslations?: number; + subscriptionMonthly: number; + subscriptionYearly: number; + }; + PlausibleDto: { + domain?: string; + scriptUrl: string; + url: string; + }; + PositionModel: { + /** Format: int32 */ + end: number; + /** Format: int32 */ + start: number; + }; + PreTranslationByTmRequest: { + keyIds: number[]; + targetLanguageIds: number[]; + }; + PrepareSetEeLicenceKeyModel: { + plan: components["schemas"]["SelfHostedEePlanModel"]; + usage: components["schemas"]["UsageModel"]; + }; + PrivateOrganizationModel: { + /** @example Current active subscription info */ + activeCloudSubscription?: components["schemas"]["PublicCloudSubscriptionModel"]; + /** @example Links to avatar images */ + avatar?: components["schemas"]["Avatar"]; + basePermissions: components["schemas"]["PermissionModel"]; + /** + * @description The role of currently authorized user. + * + * Can be null when user has direct access to one of the projects owned by the organization. + * @enum {string} + */ + currentUserRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + /** @example This is a beautiful organization full of beautiful and clever people */ + description?: string; + /** @example Features organization has enabled */ + enabledFeatures: ( + | "GRANULAR_PERMISSIONS" + | "PRIORITIZED_FEATURE_REQUESTS" + | "PREMIUM_SUPPORT" + | "DEDICATED_SLACK_CHANNEL" + | "ASSISTED_UPDATES" + | "DEPLOYMENT_ASSISTANCE" + | "BACKUP_CONFIGURATION" + | "TEAM_TRAINING" + | "ACCOUNT_MANAGER" + | "STANDARD_SUPPORT" + | "PROJECT_LEVEL_CONTENT_STORAGES" + | "WEBHOOKS" + | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" + | "AI_PROMPT_CUSTOMIZATION" + | "SLACK_INTEGRATION" + | "TASKS" + | "SSO" + | "ORDER_TRANSLATION" + | "GLOSSARY" + | "TRANSLATION_LABELS" + )[]; + /** Format: int64 */ + id: number; + /** @example Beautiful organization */ + name: string; + organizationModel?: components["schemas"]["OrganizationModel"]; + /** @example Quick start data for current user */ + quickStart?: components["schemas"]["QuickStartModel"]; + /** @example btforg */ + slug: string; + }; + PrivateUserAccountModel: { + /** @enum {string} */ + accountType: "LOCAL" | "MANAGED" | "THIRD_PARTY"; + avatar?: components["schemas"]["Avatar"]; + deletable: boolean; + domain?: string; + emailAwaitingVerification?: string; + /** @enum {string} */ + globalServerRole: "USER" | "ADMIN" | "SUPPORTER"; + /** Format: int64 */ + id: number; + mfaEnabled: boolean; + name?: string; + needsSuperJwtToken: boolean; + /** @enum {string} */ + thirdPartyAuthType?: + | "GOOGLE" + | "GITHUB" + | "OAUTH2" + | "SSO" + | "SSO_GLOBAL"; + username: string; + }; + ProjectActivityAuthorModel: { + avatar?: components["schemas"]["Avatar"]; + deleted: boolean; + /** Format: int64 */ + id: number; + name?: string; + username?: string; + }; + ProjectActivityModel: { + author?: components["schemas"]["ProjectActivityAuthorModel"]; + counts?: { [key: string]: number }; + meta?: { [key: string]: unknown }; + modifiedEntities?: { + [key: string]: components["schemas"]["ModifiedEntityModel"][]; + }; + params?: unknown; + /** Format: int64 */ + revisionId: number; + /** Format: int64 */ + timestamp: number; + /** @enum {string} */ + type: + | "UNKNOWN" + | "SET_TRANSLATION_STATE" + | "SET_TRANSLATIONS" + | "DISMISS_AUTO_TRANSLATED_STATE" + | "SET_OUTDATED_FLAG" + | "TRANSLATION_COMMENT_ADD" + | "TRANSLATION_COMMENT_DELETE" + | "TRANSLATION_COMMENT_EDIT" + | "TRANSLATION_COMMENT_SET_STATE" + | "SCREENSHOT_DELETE" + | "SCREENSHOT_ADD" + | "KEY_TAGS_EDIT" + | "KEY_NAME_EDIT" + | "KEY_DELETE" + | "CREATE_KEY" + | "COMPLEX_EDIT" + | "IMPORT" + | "CREATE_LANGUAGE" + | "EDIT_LANGUAGE" + | "DELETE_LANGUAGE" + | "HARD_DELETE_LANGUAGE" + | "CREATE_PROJECT" + | "EDIT_PROJECT" + | "NAMESPACE_EDIT" + | "BATCH_PRE_TRANSLATE_BY_TM" + | "BATCH_MACHINE_TRANSLATE" + | "AUTO_TRANSLATE" + | "BATCH_CLEAR_TRANSLATIONS" + | "BATCH_COPY_TRANSLATIONS" + | "BATCH_SET_TRANSLATION_STATE" + | "BATCH_TAG_KEYS" + | "BATCH_UNTAG_KEYS" + | "BATCH_SET_KEYS_NAMESPACE" + | "BATCH_ASSIGN_TRANSLATION_LABEL" + | "BATCH_UNASSIGN_TRANSLATION_LABEL" + | "AUTOMATION" + | "CONTENT_DELIVERY_CONFIG_CREATE" + | "CONTENT_DELIVERY_CONFIG_UPDATE" + | "CONTENT_DELIVERY_CONFIG_DELETE" + | "CONTENT_STORAGE_CREATE" + | "CONTENT_STORAGE_UPDATE" + | "CONTENT_STORAGE_DELETE" + | "WEBHOOK_CONFIG_CREATE" + | "WEBHOOK_CONFIG_UPDATE" + | "WEBHOOK_CONFIG_DELETE" + | "COMPLEX_TAG_OPERATION" + | "TASKS_CREATE" + | "TASK_CREATE" + | "TASK_UPDATE" + | "TASK_KEYS_UPDATE" + | "TASK_FINISH" + | "TASK_CLOSE" + | "TASK_REOPEN" + | "TASK_KEY_UPDATE" + | "ORDER_TRANSLATION" + | "GLOSSARY_CREATE" + | "GLOSSARY_UPDATE" + | "GLOSSARY_DELETE" + | "GLOSSARY_IMPORT" + | "GLOSSARY_TERM_CREATE" + | "GLOSSARY_TERM_UPDATE" + | "GLOSSARY_TERM_DELETE" + | "GLOSSARY_TERM_TRANSLATION_UPDATE" + | "TRANSLATION_LABELS_EDIT" + | "TRANSLATION_LABEL_ASSIGN" + | "TRANSLATION_LABEL_CREATE" + | "TRANSLATION_LABEL_UPDATE" + | "TRANSLATION_LABEL_DELETE" + | "CREATE_SUGGESTION" + | "DECLINE_SUGGESTION" + | "ACCEPT_SUGGESTION" + | "REVERSE_SUGGESTION" + | "DELETE_SUGGESTION" + | "SUGGESTION_SET_ACTIVE" + | "AI_PROMPT_CREATE" + | "AI_PROMPT_UPDATE" + | "AI_PROMPT_DELETE"; + }; + ProjectAiPromptCustomizationModel: { + /** + * @description The project description used in the prompt that helps AI translator to understand the context of your project. + * @example We are Dunder Mifflin, a paper company. We sell paper. This is an project of translations for out paper selling app. + */ + description?: string; + }; + ProjectInvitationModel: { + code?: string; + /** Format: date-time */ + createdAt: string; + createdBy?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + id: number; + invitedUserEmail?: string; + invitedUserName?: string; + permission: components["schemas"]["PermissionWithAgencyModel"]; + /** + * @deprecated + * @description Use permission object instead + */ + permittedLanguageIds?: number[]; + /** + * @deprecated + * @description Use permission object instead + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + }; + ProjectInviteUserDto: { + /** + * Format: int64 + * @description Id of invited agency + */ + agencyId?: number; + /** @description Email to send invitation to */ + email?: string; + /** + * @deprecated + * @description Deprecated -> use translate languages + */ + languages?: number[]; + /** @description Name of invited user */ + name?: string; + /** + * @description Granted scopes for the invited user + * @example [ + * "translations.view", + * "translations.edit" + * ] + */ + scopes?: string[]; + /** @description Languages user can change translation state (review) */ + stateChangeLanguages?: number[]; + /** @description Languages user can suggest translation */ + suggestLanguages?: number[]; + /** @description Languages user can translate to */ + translateLanguages?: number[]; + /** @enum {string} */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** @description Languages user can view */ + viewLanguages?: number[]; + }; + ProjectLockModel: { + jobInfo?: components["schemas"]["JobInfo"]; + /** @enum {string} */ + lockStatus: "UNLOCKED" | "UNINITIALIZED" | "LOCKED"; + /** Format: int64 */ + lockedJobId?: number; + /** Format: int64 */ + projectId: number; + }; + ProjectModel: { + avatar?: components["schemas"]["Avatar"]; + baseLanguage?: components["schemas"]["LanguageModel"]; + computedPermission: components["schemas"]["ComputedPermissionModel"]; + defaultNamespace?: components["schemas"]["NamespaceModel"]; + description?: string; + /** + * @description Current user's direct permission + * @example MANAGE + */ + directPermission?: components["schemas"]["PermissionModel"]; + /** @description Whether to disable ICU placeholder visualization in the editor and it's support. */ + icuPlaceholders: boolean; + /** Format: int64 */ + id: number; + name: string; + organizationOwner?: components["schemas"]["SimpleOrganizationModel"]; + /** @enum {string} */ + organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + slug?: string; + /** + * @description Suggestions for translations + * @enum {string} + */ + suggestionsMode: "DISABLED" | "ENABLED"; + /** + * @description Level of protection of translations + * @enum {string} + */ + translationProtection: "NONE" | "PROTECT_REVIEWED"; + useNamespaces: boolean; + }; + ProjectStatistics: { + /** Format: int64 */ + keyCount: number; + /** Format: int64 */ + languageCount: number; + /** Format: int64 */ + projectId: number; + translationStatePercentages: { [key: string]: number }; + }; + ProjectStatsModel: { + /** Format: int64 */ + baseWordsCount: number; + /** Format: int64 */ + keyCount: number; + /** Format: int32 */ + languageCount: number; + languageStats: components["schemas"]["LanguageStatsModel"][]; + /** Format: int64 */ + membersCount: number; + /** Format: int64 */ + projectId: number; + /** Format: double */ + reviewedPercentage: number; + /** Format: int64 */ + tagCount: number; + /** Format: int64 */ + taskCount: number; + /** Format: double */ + translatedPercentage: number; + }; + ProjectTransferOptionModel: { + /** Format: int64 */ + id: number; + name: string; + slug: string; + }; + ProjectWithStatsModel: { + avatar?: components["schemas"]["Avatar"]; + baseLanguage?: components["schemas"]["LanguageModel"]; + /** + * @description Actual current user's permissions on this project. You can not sort data by this column! + * @example EDIT + */ + computedPermission: components["schemas"]["ComputedPermissionModel"]; + description?: string; + /** + * @description Current user's direct permission + * @example MANAGE + */ + directPermission?: components["schemas"]["PermissionModel"]; + /** @description Whether to disable ICU placeholder visualization in the editor and it's support. */ + icuPlaceholders: boolean; + /** Format: int64 */ + id: number; + languages: components["schemas"]["LanguageModel"][]; + name: string; + organizationOwner?: components["schemas"]["SimpleOrganizationModel"]; + /** @enum {string} */ + organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + slug?: string; + stats: components["schemas"]["ProjectStatistics"]; + }; + PromptDto: { + basicPromptOptions?: ( + | "KEY_NAME" + | "KEY_DESCRIPTION" + | "KEY_CONTEXT" + | "PROJECT_DESCRIPTION" + | "LANGUAGE_NOTES" + | "TM_SUGGESTIONS" + | "SCREENSHOT" + | "GLOSSARY" + )[]; + name: string; + providerName: string; + template?: string; + }; + PromptModel: { + basicPromptOptions?: ( + | "KEY_NAME" + | "KEY_DESCRIPTION" + | "KEY_CONTEXT" + | "PROJECT_DESCRIPTION" + | "LANGUAGE_NOTES" + | "TM_SUGGESTIONS" + | "SCREENSHOT" + | "GLOSSARY" + )[]; + /** Format: int64 */ + id: number; + name: string; + /** Format: int64 */ + projectId: number; + providerName: string; + template?: string; + }; + PromptResponseModel: { + parsedJson?: components["schemas"]["JsonNode"]; + /** Format: int32 */ + price?: number; + prompt: string; + result: string; + usage?: components["schemas"]["PromptResponseUsageModel"]; + }; + PromptResponseUsageModel: { + /** Format: int64 */ + cachedTokens?: number; + /** Format: int64 */ + inputTokens?: number; + /** Format: int64 */ + outputTokens?: number; + }; + PromptRunDto: { + basicPromptOptions?: ( + | "KEY_NAME" + | "KEY_DESCRIPTION" + | "KEY_CONTEXT" + | "PROJECT_DESCRIPTION" + | "LANGUAGE_NOTES" + | "TM_SUGGESTIONS" + | "SCREENSHOT" + | "GLOSSARY" + )[]; + /** Format: int64 */ + keyId: number; + provider: string; + /** Format: int64 */ + targetLanguageId: number; + template?: string; + }; + PromptVariableDto: { + description?: string; + name: string; + props?: components["schemas"]["PromptVariableDto"][]; + /** @enum {string} */ + type: "FRAGMENT" | "OBJECT" | "STRING"; + value?: string; + }; + PropertyModification: { + new?: unknown; + old?: unknown; + }; + PublicBillingConfigurationDTO: { + enabled: boolean; + }; + PublicCloudPlanModel: { + /** Format: date-time */ + archivedAt?: string; + enabledFeatures: ( + | "GRANULAR_PERMISSIONS" + | "PRIORITIZED_FEATURE_REQUESTS" + | "PREMIUM_SUPPORT" + | "DEDICATED_SLACK_CHANNEL" + | "ASSISTED_UPDATES" + | "DEPLOYMENT_ASSISTANCE" + | "BACKUP_CONFIGURATION" + | "TEAM_TRAINING" + | "ACCOUNT_MANAGER" + | "STANDARD_SUPPORT" + | "PROJECT_LEVEL_CONTENT_STORAGES" + | "WEBHOOKS" + | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" + | "AI_PROMPT_CUSTOMIZATION" + | "SLACK_INTEGRATION" + | "TASKS" + | "SSO" + | "ORDER_TRANSLATION" + | "GLOSSARY" + | "TRANSLATION_LABELS" + )[]; + free: boolean; + /** Format: int64 */ + id: number; + includedUsage: components["schemas"]["PlanIncludedUsageModel"]; + /** @enum {string} */ + metricType: "KEYS_SEATS" | "STRINGS"; + name: string; + nonCommercial: boolean; + public: boolean; + /** @enum {string} */ + type: "PAY_AS_YOU_GO" | "FIXED"; + }; + PublicCloudSubscriptionModel: { + cancelAtPeriodEnd: boolean; + /** @enum {string} */ + currentBillingPeriod?: "MONTHLY" | "YEARLY"; + plan: components["schemas"]["PublicCloudPlanModel"]; + /** @enum {string} */ + status: + | "ACTIVE" + | "CANCELED" + | "PAST_DUE" + | "UNPAID" + | "ERROR" + | "TRIALING" + | "KEY_USED_BY_ANOTHER_INSTANCE" + | "UNKNOWN"; + /** Format: int64 */ + trialEnd?: number; + }; + PublicConfigurationDTO: { + allowRegistrations: boolean; + appName: string; + authMethods?: components["schemas"]["AuthMethodsDTO"]; + authentication: boolean; + billing: components["schemas"]["PublicBillingConfigurationDTO"]; + capterraTracker?: string; + chatwootToken?: string; + clientSentryDsn?: string; + contentDeliveryConfigured: boolean; + ga4Tag?: string; + intercomAppId?: string; + internalControllerEnabled: boolean; + llm: components["schemas"]["PublicLlmConfigurationDTO"]; + machineTranslationServices: components["schemas"]["MtServicesDTO"]; + /** Format: int64 */ + maxTranslationTextLength: number; + /** Format: int32 */ + maxUploadFileSize: number; + nativeEnabled: boolean; + needsEmailVerification: boolean; + /** + * @deprecated + * @description Use nativeEnabled instead + */ + passwordResettable: boolean; + plausible: components["schemas"]["PlausibleDto"]; + postHogApiKey?: string; + postHogHost?: string; + recaptchaSiteKey?: string; + screenshotsUrl: string; + showVersion: boolean; + slack: components["schemas"]["SlackDTO"]; + /** Format: int32 */ + translationsViewLanguagesLimit: number; + userCanCreateOrganizations: boolean; + userSourceField: boolean; + version: string; + }; + PublicInvitationModel: { + code: string; + createdBy?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + id: number; + organizationName?: string; + projectName?: string; + }; + PublicLlmConfigurationDTO: { + enabled: boolean; + }; + PublicSsoTenantModel: { + domain: string; + force: boolean; + global: boolean; + }; + PublicUsageModel: { + /** + * Format: int64 + * @description The maximum amount organization can spend on MT credit usage before they reach the spending limit + */ + availablePayAsYouGoMtCredits: number; + /** + * Format: int64 + * @description Current balance of standard credits. Standard credits are refilled every month + */ + creditBalance: number; + /** + * Format: int64 + * @description Date when credits will be refilled. (In epoch format) + */ + creditBalanceNextRefillAt: number; + /** + * Format: int64 + * @description Date when credits were refilled. (In epoch format) + */ + creditBalanceRefilledAt: number; + /** + * Format: int64 + * @description How many keys are currently stored by organization + */ + currentKeys: number; + /** + * Format: int64 + * @description Currently used credits over credits included in plan and extra credits + */ + currentPayAsYouGoMtCredits: number; + /** + * Format: int64 + * @description How seats are currently used by organization + */ + currentSeats: number; + /** + * Format: int64 + * @description How many non-empty translations are currently stored by organization + */ + currentTranslations: number; + /** + * Format: int64 + * @deprecated + * @description Customers were able to buy extra credits separately in the past. + * + * This option is not available anymore and this field is kept only for backward compatibility purposes and is always 0. + */ + extraCreditBalance: number; + /** + * Format: int64 + * @description How many keys are included in current subscription plan. How many keys can organization use without additional costs. + */ + includedKeys: number; + /** + * Format: int64 + * @description How many credits are included in your current plan + */ + includedMtCredits: number; + /** + * Format: int64 + * @description How many seats are included in current subscription plan. How many seats can organization use without additional costs. + */ + includedSeats: number; + /** + * Format: int64 + * @description How many translations are included in current subscription plan. How many translations can organization use without additional costs + */ + includedTranslations: number; + /** @description Whether the current plan is pay-as-you-go of fixed. For pay-as-you-go plans, the spending limit is the top limit. */ + isPayAsYouGo: boolean; + /** + * Format: int64 + * @description How many keys can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) + */ + keysLimit: number; + /** Format: int64 */ + organizationId: number; + /** + * Format: int64 + * @description How many seats can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) + */ + seatsLimit: number; + /** + * Format: int64 + * @description How many translations can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) + */ + translationsLimit: number; + /** + * Format: int64 + * @description Currently used credits including credits used over the limit + */ + usedMtCredits: number; + }; + QueueItemModel: { + /** Format: int64 */ + chunkExecutionId: number; + /** Format: int64 */ + executeAfter?: number; + /** @enum {string} */ + jobCharacter: "SLOW" | "FAST"; + /** Format: int64 */ + jobId: number; + /** Format: int32 */ + managementErrorRetrials: number; + }; + QuickStartModel: { + completedSteps: string[]; + finished: boolean; + open: boolean; + }; + RegenerateApiKeyDto: { + /** + * Format: int64 + * @description Expiration date in epoch format (milliseconds). When null key never expires. + * @example 1661172869000 + */ + expiresAt?: number; + }; + RegeneratePatDto: { + /** + * Format: int64 + * @description Expiration date in epoch format (milliseconds). When null key never expires. + * @example 1661172869000 + */ + expiresAt?: number; + }; + RelatedKeyDto: { + branch?: string; + keyName: string; + namespace?: string; + }; + ResetPassword: { + code: string; + email: string; + password?: string; + }; + ResetPasswordRequest: { + callbackUrl: string; + email: string; + }; + ResolveAllBranchMergeConflictsRequest: { + /** @enum {string} */ + resolve: "SOURCE" | "TARGET"; + }; + ResolveBranchMergeConflictRequest: { + /** + * Format: int64 + * @description Merge change id + */ + changeId: number; + /** + * @description Type of resolution + * @enum {string} + */ + resolve: "SOURCE" | "TARGET"; + }; + RevealedApiKeyModel: { + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** @description Resulting user's api key */ + key: string; + /** Format: int64 */ + lastUsedAt?: number; + /** Format: int64 */ + projectId: number; + projectName: string; + scopes: string[]; + userFullName?: string; + username?: string; + }; + RevealedPatModel: { + /** Format: int64 */ + createdAt: number; + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** Format: int64 */ + lastUsedAt?: number; + token: string; + /** Format: int64 */ + updatedAt: number; + }; + S3ContentStorageConfigDto: { + accessKey?: string; + bucketName: string; + /** @enum {string} */ + contentStorageType?: "S3" | "AZURE"; + enabled?: boolean; + endpoint: string; + /** @description Specifies an optional subfolder structure within s3 bucket to which content will be stored */ + path: string; + secretKey?: string; + signingRegion: string; + }; + S3ContentStorageConfigModel: { + bucketName: string; + endpoint: string; + path: string; + signingRegion: string; + }; + ScreenshotInfoDto: { + location?: string; + positions?: components["schemas"]["KeyInScreenshotPositionDto"][]; + text?: string; + }; + ScreenshotModel: { + /** Format: date-time */ + createdAt?: string; + fileUrl: string; + /** + * @description File name, which may be downloaded from the screenshot path. + * + * When images are secured. Encrypted timestamp is appended to the filename. + */ + filename: string; + /** Format: int32 */ + height?: number; + /** Format: int64 */ + id: number; + keyReferences: components["schemas"]["KeyInScreenshotModel"][]; + location?: string; + middleSized?: string; + middleSizedUrl?: string; + /** + * @description Thumbnail file name, which may be downloaded from the screenshot path. + * + * When images are secured. Encrypted timestamp is appended to the filename. + */ + thumbnail: string; + thumbnailUrl: string; + /** Format: int32 */ + width?: number; + }; + SelectAllResponse: { + ids: number[]; + }; + SelfHostedEePlanModel: { + /** Format: date-time */ + archivedAt?: string; + enabledFeatures: ( + | "GRANULAR_PERMISSIONS" + | "PRIORITIZED_FEATURE_REQUESTS" + | "PREMIUM_SUPPORT" + | "DEDICATED_SLACK_CHANNEL" + | "ASSISTED_UPDATES" + | "DEPLOYMENT_ASSISTANCE" + | "BACKUP_CONFIGURATION" + | "TEAM_TRAINING" + | "ACCOUNT_MANAGER" + | "STANDARD_SUPPORT" + | "PROJECT_LEVEL_CONTENT_STORAGES" + | "WEBHOOKS" + | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" + | "AI_PROMPT_CUSTOMIZATION" + | "SLACK_INTEGRATION" + | "TASKS" + | "SSO" + | "ORDER_TRANSLATION" + | "GLOSSARY" + | "TRANSLATION_LABELS" + )[]; + free: boolean; + hasYearlyPrice: boolean; + /** Format: int64 */ + id: number; + includedUsage: components["schemas"]["PlanIncludedUsageModel"]; + isPayAsYouGo: boolean; + name: string; + nonCommercial: boolean; + prices: components["schemas"]["PlanPricesModel"]; + public: boolean; + }; + SetDisabledLanguagesRequest: { + languageIds: number[]; + }; + SetFileNamespaceRequest: { + namespace?: string; + }; + SetKeysNamespaceRequest: { + keyIds: number[]; + namespace?: string; + }; + SetLanguagePromptCustomizationRequest: { + /** + * @description The language description used in the prompt that helps AI translator to fine tune results for specific language + * @example For arabic language, we are super formal. Always use these translations: + * Paper -> ورقة + * Office -> مكتب + */ + description?: string; + }; + SetLicenseKeyDto: { + licenseKey: string; + }; + SetMachineTranslationSettingsDto: { + settings: components["schemas"]["MachineTranslationLanguagePropsDto"][]; + }; + SetOrganizationRoleDto: { + /** @enum {string} */ + roleType: "MEMBER" | "OWNER" | "MAINTAINER"; + }; + SetProjectPromptCustomizationRequest: { + /** + * @description The project description used in the prompt that helps AI translator to understand the context of your project. + * @example We are Dunder Mifflin, a paper company. We sell paper. This is an project of translations for out paper selling app. + */ + description?: string; + }; + SetTranslationsResponseModel: { + /** + * Format: int64 + * @description Id of key record + */ + keyId: number; + keyIsPlural: boolean; + /** + * @description Name of key + * @example this_is_super_key + */ + keyName: string; + /** + * @description The namespace of the key + * @example homepage + */ + keyNamespace?: string; + /** + * @description Translations object containing values updated in this request + * @example { + * "en": { + * "id": 100000003, + * "text": "This is super translation!" + * } + * } + */ + translations: { + [key: string]: components["schemas"]["TranslationModel"]; + }; + }; + SetTranslationsStateStateRequest: { + keyIds: number[]; + languageIds: number[]; + /** @enum {string} */ + state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; + }; + SetTranslationsWithKeyDto: { + /** @description Branch name to set translations for */ + branch?: string; + /** + * @description Key name to set translations for + * @example what_a_key_to_translate + */ + key: string; + /** + * @description List of languages to return translations for. + * + * If not provided, only modified translation will be provided. + * + * @example [ + * "en", + * "de", + * "fr" + * ] + */ + languagesToReturn?: string[]; + /** @description The namespace of the key. (When empty or null default namespace will be used) */ + namespace?: string; + /** + * @description Object mapping language tag to translation + * @example { + * "en": "What a translated value!", + * "cs": "Jaká to přeložená hodnota!" + * } + */ + translations: { [key: string]: string }; + }; + SignUpDto: { + callbackUrl?: string; + email: string; + invitationCode?: string; + name: string; + organizationName?: string; + password: string; + recaptchaToken?: string; + /** @description Where did the user find us? */ + userSource?: string; + }; + SimpleGlossaryModel: { + /** + * @description Language tag for default translations for terms + * @example en + */ + baseLanguageTag: string; + /** Format: int64 */ + id: number; + name: string; + }; + SimpleGlossaryTermModel: { + description: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm: boolean; + /** @description When true, this term has the same translation across all target languages */ + flagNonTranslatable: boolean; + /** Format: int64 */ + id: number; + }; + SimpleGlossaryTermWithTranslationsModel: { + /** + * @description A detailed explanation or definition of the glossary term + * @example It's trademark + */ + description: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm: boolean; + /** @description When true, this term has the same translation across all target languages */ + flagNonTranslatable: boolean; + /** Format: int64 */ + id: number; + translations: components["schemas"]["GlossaryTermTranslationModel"][]; + }; + SimpleGlossaryWithStatsModel: { + /** + * Format: int64 + * @description Total number of projects currently using this glossary + * @example 69 + */ + assignedProjectsCount: number; + /** + * @description The primary language code used for terms (e.g., 'en' for English) + * @example en + */ + baseLanguageTag: string; + /** + * @description The name of one project using this glossary (can be shown as a preview) + * @example My Project + */ + firstAssignedProjectName?: string; + /** Format: int64 */ + id: number; + name: string; + }; + SimpleImportConflictResult: { + isOverridable: boolean; + keyName: string; + keyNamespace?: string; + language: string; + }; + SimpleOrganizationModel: { + /** @example Links to avatar images */ + avatar?: components["schemas"]["Avatar"]; + basePermissions: components["schemas"]["PermissionModel"]; + /** @example This is a beautiful organization full of beautiful and clever people */ + description?: string; + /** Format: int64 */ + id: number; + /** @example Beautiful organization */ + name: string; + /** @example btforg */ + slug: string; + }; + SimpleProjectModel: { + avatar?: components["schemas"]["Avatar"]; + baseLanguage?: components["schemas"]["LanguageModel"]; + description?: string; + icuPlaceholders: boolean; + /** Format: int64 */ + id: number; + name: string; + slug?: string; + }; + SimpleUserAccountModel: { + avatar?: components["schemas"]["Avatar"]; + deleted: boolean; + /** Format: int64 */ + id: number; + name?: string; + username: string; + }; + SingleStepImportRequest: { + /** + * @description Branch to which files will be imported + * @example main + */ + branch?: string; + /** @description If true, placeholders from other formats will be converted to ICU when possible */ + convertPlaceholdersToIcu: boolean; + /** @description If false, only updates keys, skipping the creation of new keys */ + createNewKeys: boolean; + /** + * @description If `false`, import will apply all `non-failed` overrides and reports `unresolvedConflict` + * .If `true`, import will fail completely on unresolved conflict and won't apply any changes. Unresolved conflicts are reported in the `params` of the error response + */ + errorOnUnresolvedConflict?: boolean; + /** @description Definition of mapping for each file to import. */ + fileMappings: components["schemas"]["ImportFileMapping"][]; + /** + * @description Whether to override existing translation data. + * + * When set to `KEEP`, existing translations will be kept. + * When set to `NO_FORCE`, error will be thrown on conflict. + * When set to `OVERRIDE`, existing translations will be overwritten + * @enum {string} + */ + forceMode: "OVERRIDE" | "KEEP" | "NO_FORCE"; + /** + * @description Maps the languages from imported files to languages existing in the Tolgee platform. + * + * Use this field only when your files contain multiple languages (e.g., XLIFF files). + * + * Otherwise, use the `languageTag` property of `fileMappings`. + * + * Example: In xliff files, there are `source-language` and `target-language` attributes defined on `file` element. Using this field you can map source and target values to languages stored in the Tolgee Platform. + */ + languageMappings?: components["schemas"]["LanguageMapping"][]; + /** @description If true, key descriptions will be overridden by the import */ + overrideKeyDescriptions: boolean; + /** + * @description Some translations are forbidden or protected: + * + * When set to `RECOMMENDED` it will fail for DISABLED translations and protected REVIEWED translations. + * When set to `ALL` it will fail for DISABLED translations, but will try to update protected REVIEWED translations (fails only if user has no permission) + * + * @enum {string} + */ + overrideMode?: "RECOMMENDED" | "ALL"; + /** @description If yes, keys from project that were not included in import will be deleted (only within namespaces which are included in the import). */ + removeOtherKeys?: boolean; + /** + * @description When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys. + * @example . + */ + structureDelimiter?: string; + /** @description Keys created by this import will be tagged with these tags. It add tags only to new keys. The keys that already exist will not be tagged. */ + tagNewKeys: string[]; + }; + SingleStepImportResolvableItemRequest: { + /** + * @description Key name to set translations for + * @example what_a_key_to_translate + */ + name: string; + /** @description The namespace of the key. (When empty or null default namespace will be used) */ + namespace?: string; + screenshots?: components["schemas"]["KeyScreenshotDto"][]; + /** @description Object mapping language tag to translation */ + translations: { + [ + key: string + ]: components["schemas"]["SingleStepImportResolvableTranslationRequest"]; + }; + }; + SingleStepImportResolvableRequest: { + /** + * @description If `false`, import will apply all `non-failed` overrides and reports `unresolvedConflict` + * .If `true`, import will fail completely on unresolved conflict and won't apply any changes. Unresolved conflicts are reported in the `params` of the error response + */ + errorOnUnresolvedConflict?: boolean; + /** @description List of keys to import */ + keys: components["schemas"]["SingleStepImportResolvableItemRequest"][]; + /** + * @description Some translations are forbidden or protected: + * + * When set to `RECOMMENDED` it will fail for DISABLED translations and protected REVIEWED translations. + * When set to `ALL` it will fail for DISABLED translations, but will try to update protected REVIEWED translations (fails only if user has no permission) + * + * @enum {string} + */ + overrideMode?: "RECOMMENDED" | "ALL"; + }; + SingleStepImportResolvableTranslationRequest: { + /** + * @description + * To ensure the import doesn't override something that should not be (in case data have changed unexpectedly), + * you can specify what do you "expect": + * - EXPECT_NO_CONFLICT: There should be no conflict, if there is, import fails + * - OVERRIDE: New translation is applied over the existing in every case (Default) + * + * @example OVERRIDE + * @enum {string} + */ + resolution?: "EXPECT_NO_CONFLICT" | "OVERRIDE"; + /** + * @description Translation text + * @example Hello! I am a translation! + */ + text: string; + }; + SlackCommandDto: { + channel_id: string; + channel_name: string; + command: string; + team_domain: string; + team_id: string; + text: string; + token?: string; + trigger_id?: string; + user_id: string; + user_name: string; + }; + SlackDTO: { + connected: boolean; + enabled: boolean; + }; + SlackUserInfoModel: { + slackAvatar: string; + slackId: string; + slackName?: string; + slackRealName?: string; + teamName: string; + }; + SsoGlobalPublicConfigDTO: { + clientId?: string; + customLoginText?: string; + customLogoUrl?: string; + domain?: string; + enabled: boolean; + }; + SsoOrganizationsPublicConfigDTO: { + enabled: boolean; + }; + SsoTenantModel: { + authorizationUri: string; + clientId: string; + clientSecret: string; + domain: string; + enabled: boolean; + force: boolean; + global: boolean; + tokenUri: string; + }; + SsoUrlResponse: { + redirectUrl: string; + }; + StorageTestResult: { + /** @enum {string} */ + message?: + | "unauthenticated" + | "api_access_forbidden" + | "api_key_not_found" + | "invalid_api_key" + | "invalid_project_api_key" + | "project_api_key_expired" + | "bad_credentials" + | "mfa_enabled" + | "invalid_otp_code" + | "mfa_not_enabled" + | "can_not_revoke_own_permissions" + | "data_corrupted" + | "invitation_code_does_not_exist_or_expired" + | "language_tag_exists" + | "language_name_exists" + | "language_not_found" + | "operation_not_permitted" + | "registrations_not_allowed" + | "project_not_found" + | "resource_not_found" + | "scope_not_found" + | "key_exists" + | "third_party_auth_error_message" + | "third_party_auth_no_email" + | "third_party_auth_non_matching_email" + | "third_party_auth_no_sub" + | "third_party_auth_unknown_error" + | "email_already_verified" + | "third_party_unauthorized" + | "third_party_google_workspace_mismatch" + | "third_party_switch_initiated" + | "third_party_switch_conflict" + | "username_already_exists" + | "username_or_password_invalid" + | "user_already_has_permissions" + | "user_already_has_role" + | "user_not_found" + | "file_not_image" + | "file_too_big" + | "invalid_timestamp" + | "email_not_verified" + | "missing_callback_url" + | "invalid_jwt_token" + | "expired_jwt_token" + | "general_jwt_error" + | "cannot_find_suitable_address_part" + | "slug_not_unique" + | "user_is_not_member_of_organization" + | "organization_has_no_other_owner" + | "user_has_no_project_access" + | "user_is_organization_owner" + | "cannot_set_your_own_permissions" + | "user_is_organization_member" + | "property_not_mutable" + | "import_language_not_from_project" + | "existing_language_not_selected" + | "conflict_is_not_resolved" + | "language_already_selected" + | "cannot_parse_file" + | "could_not_resolve_property" + | "cannot_add_more_then_100_languages" + | "no_languages_provided" + | "language_with_base_language_tag_not_found" + | "language_not_from_project" + | "namespace_not_from_project" + | "cannot_delete_base_language" + | "key_not_from_project" + | "max_screenshots_exceeded" + | "translation_not_from_project" + | "can_edit_only_own_comment" + | "request_parse_error" + | "filter_by_value_state_not_valid" + | "import_has_expired" + | "tag_not_from_project" + | "translation_text_too_long" + | "invalid_recaptcha_token" + | "cannot_leave_owning_project" + | "cannot_leave_project_with_organization_role" + | "dont_have_direct_permissions" + | "tag_too_log" + | "too_many_uploaded_images" + | "one_or_more_images_not_found" + | "screenshot_not_of_key" + | "service_not_found" + | "too_many_requests" + | "translation_not_found" + | "out_of_credits" + | "key_not_found" + | "organization_not_found" + | "cannot_find_base_language" + | "base_language_not_found" + | "no_exported_result" + | "cannot_set_your_own_role" + | "only_translate_review_or_view_permission_accepts_view_languages" + | "oauth2_token_url_not_set" + | "oauth2_user_url_not_set" + | "email_already_invited_or_member" + | "price_not_found" + | "invoice_not_from_organization" + | "invoice_not_found" + | "plan_not_found" + | "plan_not_available_any_more" + | "no_auto_translation_method" + | "cannot_translate_base_language" + | "pat_not_found" + | "invalid_pat" + | "pat_expired" + | "operation_unavailable_for_account_type" + | "validation_email_is_not_valid" + | "current_password_required" + | "cannot_create_organization" + | "wrong_current_password" + | "wrong_param_type" + | "user_missing_password" + | "expired_super_jwt_token" + | "cannot_delete_your_own_account" + | "cannot_sort_by_this_column" + | "namespace_not_found" + | "namespace_exists" + | "invalid_authentication_method" + | "unknown_sort_property" + | "only_review_permission_accepts_state_change_languages" + | "only_translate_or_review_permission_accepts_translate_languages" + | "cannot_set_language_permissions_for_admin_scope" + | "cannot_set_view_languages_without_translations_view_scope" + | "cannot_set_translate_languages_without_translations_edit_scope" + | "cannot_set_state_change_languages_without_translations_state_edit_scope" + | "language_not_permitted" + | "scopes_has_to_be_set" + | "set_exactly_one_of_scopes_or_type" + | "translation_exists" + | "import_keys_error" + | "provide_only_one_of_screenshots_and_screenshot_uploaded_image_ids" + | "multiple_projects_not_supported" + | "plan_translation_limit_exceeded" + | "feature_not_enabled" + | "license_key_not_found" + | "cannot_set_view_languages_without_for_level_based_permissions" + | "cannot_set_different_translate_and_state_change_languages_for_level_based_permissions" + | "cannot_disable_your_own_account" + | "subscription_not_found" + | "invoice_does_not_have_usage" + | "customer_not_found" + | "subscription_not_active" + | "organization_already_subscribed" + | "organization_not_subscribed" + | "license_key_used_by_another_instance" + | "translation_spending_limit_exceeded" + | "credit_spending_limit_exceeded" + | "seats_spending_limit_exceeded" + | "this_instance_is_already_licensed" + | "big_meta_not_from_project" + | "mt_service_not_enabled" + | "project_not_selected" + | "organization_not_selected" + | "plan_has_subscribers" + | "translation_failed" + | "batch_job_not_found" + | "key_exists_in_namespace" + | "tag_is_blank" + | "execution_failed_on_management_error" + | "translation_api_rate_limit" + | "cannot_finalize_activity" + | "formality_not_supported_by_service" + | "language_not_supported_by_service" + | "rate_limited" + | "pat_access_not_allowed" + | "pak_access_not_allowed" + | "cannot_modify_disabled_translation" + | "azure_config_required" + | "s3_config_required" + | "content_storage_config_required" + | "content_storage_test_failed" + | "content_storage_config_invalid" + | "invalid_connection_string" + | "cannot_create_azure_storage_client" + | "s3_access_key_required" + | "azure_connection_string_required" + | "s3_secret_key_required" + | "cannot_store_file_to_content_storage" + | "unexpected_error_while_publishing_to_content_storage" + | "webhook_responded_with_non_200_status" + | "unexpected_error_while_executing_webhook" + | "content_storage_is_in_use" + | "cannot_set_state_for_missing_translation" + | "no_project_id_provided" + | "license_key_not_provided" + | "subscription_already_canceled" + | "user_is_subscribed_to_paid_plan" + | "cannot_create_free_plan_without_fixed_type" + | "cannot_modify_plan_free_status" + | "key_id_not_provided" + | "free_self_hosted_seat_limit_exceeded" + | "advanced_params_not_supported" + | "plural_forms_not_found_for_language" + | "nested_plurals_not_supported" + | "message_is_not_plural" + | "content_outside_plural_forms" + | "invalid_plural_form" + | "multiple_plurals_not_supported" + | "custom_values_json_too_long" + | "unsupported_po_message_format" + | "plural_forms_data_loss" + | "current_user_does_not_own_image" + | "user_cannot_view_this_organization" + | "user_is_not_owner_of_organization" + | "user_is_not_owner_or_maintainer_of_organization" + | "pak_created_for_different_project" + | "custom_slug_is_only_applicable_for_custom_storage" + | "invalid_slug_format" + | "batch_job_cancellation_timeout" + | "import_failed" + | "cannot_add_more_then_1000_languages" + | "no_data_to_import" + | "multiple_namespaces_mapped_to_single_file" + | "multiple_mappings_for_same_file_language_name" + | "multiple_mappings_for_null_file_language_name" + | "too_many_mappings_for_file" + | "missing_placeholder_in_template" + | "tag_not_found" + | "cannot_parse_encrypted_slack_login_data" + | "slack_workspace_not_found" + | "cannot_fetch_user_details_from_slack" + | "slack_missing_scope" + | "slack_not_connected_to_your_account" + | "slack_invalid_command" + | "slack_not_subscribed_yet" + | "slack_connection_failed" + | "tolgee_account_already_connected" + | "slack_not_configured" + | "slack_workspace_already_connected" + | "slack_connection_error" + | "email_verification_code_not_valid" + | "cannot_subscribe_to_free_plan" + | "plan_auto_assignment_only_for_free_plans" + | "plan_auto_assignment_only_for_private_plans" + | "task_not_found" + | "task_not_finished" + | "task_not_open" + | "translation_agency_not_found" + | "this_feature_is_not_implemented_in_oss" + | "sso_token_exchange_failed" + | "sso_user_info_retrieval_failed" + | "sso_id_token_expired" + | "sso_user_cannot_create_organization" + | "sso_cant_verify_user" + | "sso_auth_missing_domain" + | "sso_domain_not_found_or_disabled" + | "authentication_method_disabled" + | "native_authentication_disabled" + | "invitation_organization_mismatch" + | "user_is_managed_by_organization" + | "cannot_set_sso_provider_missing_fields" + | "namespaces_cannot_be_disabled_when_namespace_exists" + | "namespace_cannot_be_used_when_feature_is_disabled" + | "sso_domain_not_allowed" + | "sso_login_forced_for_this_account" + | "use_sso_for_authentication_instead" + | "date_has_to_be_in_the_future" + | "custom_plan_and_plan_id_cannot_be_set_together" + | "specify_plan_id_or_custom_plan" + | "custom_plans_has_to_be_private" + | "cannot_create_free_plan_with_prices" + | "subscription_not_scheduled_for_cancellation" + | "cannot_cancel_trial" + | "cannot_update_without_modification" + | "current_subscription_is_not_trialing" + | "sorting_and_paging_is_not_supported_when_using_cursor" + | "strings_metric_are_not_supported" + | "plan_key_limit_exceeded" + | "keys_spending_limit_exceeded" + | "plan_seat_limit_exceeded" + | "instance_not_using_license_key" + | "invalid_path" + | "llm_provider_not_found" + | "llm_provider_error" + | "prompt_not_found" + | "llm_provider_not_returned_json" + | "llm_template_parsing_error" + | "llm_rate_limited" + | "llm_provider_timeout" + | "no_llm_provider_configured" + | "glossary_not_found" + | "glossary_term_not_found" + | "glossary_term_translation_not_found" + | "glossary_non_translatable_term_cannot_be_translated" + | "llm_content_filter" + | "llm_provider_empty_response" + | "label_not_found" + | "label_not_from_project" + | "label_already_exists" + | "filter_by_value_label_not_valid" + | "suggestion_not_found" + | "user_can_only_delete_his_suggestions" + | "cannot_modify_reviewed_translation" + | "cannot_modify_keys" + | "expect_no_conflict_failed" + | "suggestion_cant_be_plural" + | "suggestion_must_be_plural" + | "duplicate_suggestion" + | "unsupported_media_type" + | "impersonation_of_admin_by_supporter_not_allowed" + | "already_impersonating_user" + | "operation_not_permitted_in_read_only_mode" + | "file_processing_failed" + | "branch_not_found" + | "cannot_delete_default_branch" + | "branch_already_exists" + | "origin_branch_not_found" + | "branch_merge_not_found" + | "branch_merge_change_not_found" + | "branch_merge_revision_not_valid" + | "branch_merge_conflicts_not_resolved" + | "branch_merge_already_merged"; + params?: unknown[]; + success: boolean; + }; + StreamingResponseBody: unknown; + SuggestRequestDto: { + /** @description Text value of base translation. Useful, when base translation is not stored yet. */ + baseText?: string; + /** @description Whether base text is plural. This value is ignored if baseText is null. */ + isPlural?: boolean; + /** + * Format: int64 + * @description Key Id to get results for. Use when key is stored already. + */ + keyId?: number; + plural?: boolean; + /** @description List of services to use. If null, then all enabled services are used. */ + services?: ("GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT")[]; + /** Format: int64 */ + targetLanguageId: number; + }; + SuggestResultModel: { + /** @description If true, the base translation was empty and no translation was provided. */ + baseBlank: boolean; + /** + * @deprecated + * @description String translations provided by enabled services. (deprecated, use `result` instead) + * @example + * { + * "GOOGLE": "This was translated by Google", + * "TOLGEE": "This was translated by Tolgee Translator", + * } + */ + machineTranslations?: { [key: string]: string }; + /** + * @description Results provided by enabled services. + * @example { + * "GOOGLE": { + * "output": "This was translated by Google", + * "contextDescription": null + * }, + * "TOLGEE": { + * "output": "This was translated by Tolgee Translator", + * "contextDescription": "This is an example in swagger" + * } + * } + */ + result?: { [key: string]: components["schemas"]["TranslationItemModel"] }; + }; + SumUsageItemModel: { + total: number; + /** Format: int64 */ + unusedQuantity: number; + /** Format: int64 */ + usedQuantity: number; + /** Format: int64 */ + usedQuantityOverPlan: number; + }; + SuperTokenRequest: { + /** @description Has to be provided when TOTP enabled */ + otp?: string; + /** @description Has to be provided when TOTP not enabled */ + password?: string; + }; + TagKeyDto: { + name: string; + }; + TagKeysRequest: { + keyIds: number[]; + tags: string[]; + }; + TagModel: { + /** Format: int64 */ + id: number; + name: string; + }; + TaskKeysResponse: { + keys: number[]; + }; + TaskModel: { + agency?: components["schemas"]["TranslationAgencySimpleModel"]; + assignees: components["schemas"]["SimpleUserAccountModel"][]; + author?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + baseCharacterCount: number; + /** Format: int64 */ + baseWordCount: number; + /** Format: int64 */ + closedAt?: number; + /** Format: int64 */ + createdAt?: number; + description: string; + /** Format: int64 */ + doneItems: number; + /** Format: int64 */ + dueDate?: number; + language: components["schemas"]["LanguageModel"]; + name?: string; + /** Format: int64 */ + number: number; + /** @enum {string} */ + state: "NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED"; + /** Format: int64 */ + totalItems: number; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + }; + TaskPerUserReportModel: { + /** Format: int64 */ + baseCharacterCount: number; + /** Format: int64 */ + baseWordCount: number; + /** Format: int64 */ + doneItems: number; + user: components["schemas"]["SimpleUserAccountModel"]; + }; + TaskWithProjectModel: { + agency?: components["schemas"]["TranslationAgencySimpleModel"]; + assignees: components["schemas"]["SimpleUserAccountModel"][]; + author?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + baseCharacterCount: number; + /** Format: int64 */ + baseWordCount: number; + /** Format: int64 */ + closedAt?: number; + /** Format: int64 */ + createdAt?: number; + description: string; + /** Format: int64 */ + doneItems: number; + /** Format: int64 */ + dueDate?: number; + language: components["schemas"]["LanguageModel"]; + name?: string; + /** Format: int64 */ + number: number; + project: components["schemas"]["SimpleProjectModel"]; + /** @enum {string} */ + state: "NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED"; + /** Format: int64 */ + totalItems: number; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + }; + TextNode: unknown; + TranslationAgencySimpleModel: { + avatar?: components["schemas"]["Avatar"]; + /** Format: int64 */ + id: number; + name: string; + url?: string; + }; + TranslationCommentDto: { + /** @enum {string} */ + state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; + text: string; + }; + TranslationCommentModel: { + /** @description User who created the comment */ + author: components["schemas"]["SimpleUserAccountModel"]; + /** + * Format: date-time + * @description Date when it was created + */ + createdAt: string; + /** + * Format: int64 + * @description Id of translation comment record + */ + id: number; + /** + * @description State of translation + * @enum {string} + */ + state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; + /** @description Text of comment */ + text: string; + /** + * Format: date-time + * @description Date when it was updated + */ + updatedAt: string; + }; + TranslationCommentWithLangKeyDto: { + /** Format: int64 */ + keyId: number; + /** Format: int64 */ + languageId: number; + /** @enum {string} */ + state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; + text: string; + }; + TranslationHistoryModel: { + /** @description Author of the change */ + author?: components["schemas"]["SimpleUserAccountModel"]; + /** @description Modified fields */ + modifications?: { + [key: string]: components["schemas"]["PropertyModification"]; + }; + /** @enum {string} */ + revisionType: "ADD" | "MOD" | "DEL"; + /** + * Format: int64 + * @description Unix timestamp of the revision + */ + timestamp: number; + }; + TranslationItemModel: { + contextDescription?: string; + output: string; + }; + TranslationLabelRequest: { + /** Format: int64 */ + keyId: number; + /** Format: int64 */ + labelId: number; + /** Format: int64 */ + languageId: number; + }; + TranslationMemoryItemModel: { + baseText: string; + keyName: string; + /** Format: float */ + similarity: number; + targetText: string; + }; + TranslationModel: { + /** @description Was translated using Translation Memory or Machine translation service? */ + auto: boolean; + /** + * Format: int64 + * @description Id of translation record + */ + id: number; + /** + * @description Which machine translation service was used to auto translate this + * @enum {string} + */ + mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + /** @description Whether base language translation was changed after this translation was updated */ + outdated: boolean; + /** + * @description State of translation + * @enum {string} + */ + state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; + /** @description Translation text */ + text?: string; + }; + TranslationSuggestionAcceptResponse: { + accepted: components["schemas"]["TranslationSuggestionModel"]; + declined: number[]; + }; + TranslationSuggestionModel: { + author: components["schemas"]["SimpleUserAccountModel"]; + /** Format: date-time */ + createdAt: string; + /** Format: int64 */ + id: number; + isPlural: boolean; + /** Format: int64 */ + keyId: number; + /** Format: int64 */ + languageId: number; + /** @enum {string} */ + state: "ACTIVE" | "ACCEPTED" | "DECLINED"; + translation?: string; + /** Format: date-time */ + updatedAt: string; + }; + TranslationSuggestionSimpleModel: { + author: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + id: number; + isPlural: boolean; + /** @enum {string} */ + state: "ACTIVE" | "ACCEPTED" | "DECLINED"; + translation?: string; + }; + TranslationViewModel: { + /** + * Format: int64 + * @description Number of active suggestions + */ + activeSuggestionCount: number; + /** @description Was translated using Translation Memory or Machine translation service? */ + auto: boolean; + /** + * Format: int64 + * @description Count of translation comments + */ + commentCount: number; + /** @description Was translation memory used to translate this? */ + fromTranslationMemory: boolean; + /** + * Format: int64 + * @description Id of translation record + */ + id?: number; + /** @description Labels assigned to this translation */ + labels?: components["schemas"]["LabelModel"][]; + /** + * @description Which machine translation service was used to auto translate this + * @enum {string} + */ + mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + /** @description Whether base language translation was changed after this translation was updated */ + outdated: boolean; + /** + * @description State of translation + * @enum {string} + */ + state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; + /** @description First suggestion */ + suggestions?: components["schemas"]["TranslationSuggestionSimpleModel"][]; + /** @description Translation text */ + text?: string; + /** + * Format: int64 + * @description Number of all suggestions + */ + totalSuggestionCount: number; + /** + * Format: int64 + * @description Count of unresolved translation comments + */ + unresolvedCommentCount: number; + }; + TranslationWithCommentModel: { + comment: components["schemas"]["TranslationCommentModel"]; + translation: components["schemas"]["TranslationModel"]; + }; + UntagKeysRequest: { + keyIds: number[]; + tags: string[]; + }; + UpdateGlossaryRequest: { + /** @description Projects assigned to glossary; when null, assigned projects will be kept unchanged. */ + assignedProjectIds?: number[]; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + baseLanguageTag: string; + /** + * @description Glossary name + * @example My glossary + */ + name: string; + }; + UpdateGlossaryTermTranslationRequest: { + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + languageTag: string; + /** + * @description Translation text + * @example Translated text to language of languageTag + */ + text: string; + }; + UpdateGlossaryTermWithTranslationRequest: { + description?: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation?: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive?: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm?: boolean; + /** @description When true, this term will have the same translation across all target languages */ + flagNonTranslatable?: boolean; + text?: string; + }; + UpdateNamespaceDto: { + name: string; + }; + UpdatePatDto: { + /** @description New description of the PAT */ + description: string; + }; + UpdateTaskKeyRequest: { + done: boolean; + }; + UpdateTaskKeyResponse: { + /** @description Task key is marked as done */ + done: boolean; + /** @description Task progress is 100% */ + taskFinished: boolean; + }; + UpdateTaskKeysRequest: { + /** @description Keys to add to task */ + addKeys?: number[]; + /** @description Keys to remove from task */ + removeKeys?: number[]; + }; + UpdateTaskRequest: { + assignees: number[]; + description: string; + /** + * Format: int64 + * @description Due to date in epoch format (milliseconds). + * @example 1661172869000 + */ + dueDate?: number; + name?: string; + }; + UploadedImageModel: { + /** Format: date-time */ + createdAt: string; + fileUrl: string; + filename: string; + /** Format: int64 */ + id: number; + location?: string; + requestFilename: string; + }; + UsageModel: { + /** @description Relevant for invoices only. When there are applied stripe credits, we need to reduce the total price by this amount. */ + appliedStripeCredits?: number; + credits?: components["schemas"]["SumUsageItemModel"]; + keys: components["schemas"]["AverageProportionalUsageItemModel"]; + seats: components["schemas"]["AverageProportionalUsageItemModel"]; + subscriptionPrice?: number; + total: number; + translations: components["schemas"]["AverageProportionalUsageItemModel"]; + }; + UsedNamespaceModel: { + /** + * Format: int64 + * @description The id of namespace. Null for default namespace. + * @example 10000048 + */ + id?: number; + /** + * @description Name of namespace. Null if default. + * @example homepage + */ + name?: string; + }; + UserAccountInProjectModel: { + avatar?: components["schemas"]["Avatar"]; + /** + * @description Actual user's permissions on selected project. You can not sort data by this column! + * @example EDIT + */ + computedPermission: components["schemas"]["ComputedPermissionModel"]; + directPermission?: components["schemas"]["PermissionWithAgencyModel"]; + /** Format: int64 */ + id: number; + mfaEnabled: boolean; + name?: string; + organizationBasePermission: components["schemas"]["PermissionModel"]; + /** @enum {string} */ + organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + username: string; + }; + UserAccountModel: { + avatar?: components["schemas"]["Avatar"]; + deleted: boolean; + disabled: boolean; + emailAwaitingVerification?: string; + /** @enum {string} */ + globalServerRole: "USER" | "ADMIN" | "SUPPORTER"; + /** Format: int64 */ + id: number; + mfaEnabled: boolean; + name?: string; + username: string; + }; + UserAccountWithOrganizationRoleModel: { + avatar?: components["schemas"]["Avatar"]; + /** Format: int64 */ + id: number; + mfaEnabled: boolean; + name: string; + /** @enum {string} */ + organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + projectsWithDirectPermission: components["schemas"]["SimpleProjectModel"][]; + username: string; + }; + UserMfaRecoveryRequestDto: { + password: string; + }; + UserPreferencesModel: { + language?: string; + /** Format: int64 */ + preferredOrganizationId?: number; + }; + UserTotpDisableRequestDto: { + password: string; + }; + UserTotpEnableRequestDto: { + otp: string; + password: string; + totpKey: string; + }; + UserUpdatePasswordRequestDto: { + currentPassword: string; + password: string; + }; + UserUpdateRequestDto: { + /** @description Callback url for link sent in e-mail. This may be omitted, when server has set frontEndUrl in properties. */ + callbackUrl?: string; + currentPassword?: string; + email: string; + name: string; + }; + V2EditApiKeyDto: { + description?: string; + scopes: string[]; + }; + VariablesResponseDto: { + data: components["schemas"]["PromptVariableDto"][]; + }; + WebhookConfigModel: { + /** + * Format: int64 + * @description Date of the first failed webhook request. If the last webhook request is successful, this value is set to null. + */ + firstFailed?: number; + /** Format: int64 */ + id: number; + /** + * Format: int64 + * @description Date of the last webhook request. + */ + lastExecuted?: number; + url: string; + webhookSecret: string; + }; + WebhookConfigRequest: { + url: string; + }; + WebhookTestResponse: { + success: boolean; + }; + WorkspaceModel: { + /** Format: int64 */ + id: number; + slackTeamId: string; + slackTeamName: string; + }; + }; +} + +export interface operations { + /** Exports data as ZIP of jsons */ + doExportJsonZip: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/zip": components["schemas"]["StreamingResponseBody"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns URL which can be used to authenticate user using third party SSO service */ + getAuthenticationUrl: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SsoUrlResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DomainRequest"]; + }; + }; + }; + /** Authenticates user using third party oAuth service */ + authenticateUser_1: { + parameters: { + path: { + serviceType: string; + }; + query: { + code?: string; + redirect_uri?: string; + invitationCode?: string; + domain?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getPublicConfiguration: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PublicConfigurationDTO"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + authenticateUser: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LoginRequest"]; + }; + }; + }; + invitationInfo: { + parameters: { + path: { + code: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PublicInvitationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + resetPasswordRequest: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResetPasswordRequest"]; + }; + }; + }; + /** Checks the password reset code from e-mail */ + resetPasswordSet: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResetPassword"]; + }; + }; + }; + resetPasswordValidate: { + parameters: { + path: { + code: string; + email: string; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** When E-mail verification is enabled, null is returned. Otherwise JWT token is provided. */ + signUp: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SignUpDto"]; + }; + }; + }; + validateEmail: { + responses: { + /** OK */ + 200: { + content: { + "application/json": boolean; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TextNode"]; + }; + }; + }; + /** It checks whether the code from email is valid */ + verifyEmail: { + parameters: { + path: { + userId: number; + code: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all chunk execution items currently in the batch job queue */ + getBatchJobQueue: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelQueueItemModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getOrganizations: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelOrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns current project batch job locks from Redis or local storage based on configuration */ + getProjectLocks: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelProjectLockModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getUsers: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelUserAccountModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + deleteUser: { + parameters: { + path: { + userId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Disables user account. User will not be able to log in, but their user data will be preserved, so you can enable the user later using the `enable` endpoint. */ + disableUser: { + parameters: { + path: { + userId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Enables previously disabled user. */ + enableUser: { + parameters: { + path: { + userId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Generates a JWT token for the user with provided ID. This is useful, when need to debug of the user's account. Or when an operation is required to be executed on behalf of the user. */ + generateUserToken: { + parameters: { + path: { + userId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": string; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Set's the global role on the Tolgee Platform server. */ + setRole: { + parameters: { + path: { + userId: number; + role: "USER" | "ADMIN" | "SUPPORTER"; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns the latest announcement for the currently authenticated user */ + getLatest: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["AnnouncementDto"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Dismisses the latest announcement for the currently authenticated user */ + dismiss: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + allByUser: { + parameters: { + query: { + pageable: components["schemas"]["Pageable"]; + filterProjectId?: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelApiKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Creates new API key with provided scopes */ + create_16: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["RevealedApiKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateApiKeyDto"]; + }; + }; + }; + getScopes: { + responses: { + /** OK */ + 200: { + content: { + "application/json": string; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns info the API key which user currently authenticated with. Otherwise responds with 400 status code. */ + getCurrent_1: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ApiKeyWithLanguagesModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns current PAK or PAT permissions for current user, api-key and project */ + getCurrentPermissions: { + parameters: { + query: { + /** Required when using with PAT */ + projectId?: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ApiKeyPermissionsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_11: { + parameters: { + path: { + apiKeyId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ApiKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["V2EditApiKeyDto"]; + }; + }; + }; + delete_10: { + parameters: { + path: { + apiKeyId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + regenerate_1: { + parameters: { + path: { + apiKeyId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["RevealedApiKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["RegenerateApiKeyDto"]; + }; + }; + }; + /** Returns specific API key info */ + get_24: { + parameters: { + path: { + keyId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ApiKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getCurrentAuthProvider: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["AuthProviderDto"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + deleteCurrentAuthProvider: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getChangedAuthProvider: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["AuthProviderDto"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + acceptChangeAuthProvider: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AcceptAuthProviderChangeRequest"]; + }; + }; + }; + rejectChangeAuthProvider: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getUsage_1: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CurrentUsageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getInfo_5: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["EeSubscriptionModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Get info about the upcoming EE subscription. This will show, how much the subscription will cost when key is applied. */ + prepareSetLicenseKey: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PrepareSetEeLicenceKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetLicenseKeyDto"]; + }; + }; + }; + /** This will refresh the subscription information from the license server and update the subscription info. */ + refreshSubscription: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["EeSubscriptionModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** This will remove the licence key from the instance. */ + release: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setLicenseKey: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["EeSubscriptionModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetLicenseKeyDto"]; + }; + }; + }; + upload: { + responses: { + /** Created */ + 201: { + content: { + "*/*": components["schemas"]["UploadedImageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "multipart/form-data": { + /** Format: binary */ + image: string; + info?: components["schemas"]["ImageUploadInfoDto"]; + }; + }; + }; + }; + delete_16: { + parameters: { + path: { + ids: number[]; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + acceptInvitation: { + parameters: { + path: { + code: string; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + acceptInvitationPut: { + parameters: { + path: { + code: string; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + deleteInvitation: { + parameters: { + path: { + invitationId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getNotifications: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; /** - * Get disabled languages for all keys in project - * @description Returns all project key with any disabled language. + * Filter by the `seen` parameter. * - * If key has no disabled language, it is not returned. - */ - get: operations["getDisabledLanguages_2"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/api-keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all project API keys - * @description Returns all API keys for specified project - */ - get: operations["allByProject"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/auto-translation-settings": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get default auto-translation settings for project - * @deprecated - * @description Returns default auto translation settings for project (deprecated: use per language config with null language id) - */ - get: operations["getAutoTranslationSettings"]; - /** - * Set default auto translation settings for project - * @deprecated - * @description Sets default auto-translation settings for project (deprecated: use per language config with null language id) - */ - put: operations["setAutoTranslationSettings"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/avatar": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Upload project avatar */ - put: operations["uploadAvatar_1"]; - post?: never; - /** Delete project avatar */ - delete: operations["removeAvatar_1"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/batch-jobs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List batch operations */ - get: operations["list"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/batch-jobs/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get batch operation */ - get: operations["get_6"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/batch-jobs/{id}/cancel": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Stop batch operation - * @description Stops batch operation if possible. - */ - put: operations["cancel"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/big-meta": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Store Big Meta - * @description Stores a bigMeta for a project - */ - post: operations["store_2"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/content-delivery-configs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List existing Content Delivery Configs */ - get: operations["list_4"]; - put?: never; - /** Create Content Delivery Config */ - post: operations["create_10"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/content-delivery-configs/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one Content Delivery Config */ - get: operations["get_17"]; - /** Update Content Delivery Config */ - put: operations["update_6"]; - /** - * Publish to Content Delivery - * @description Immediately publishes content to the configured Content Delivery - */ - post: operations["post"]; - /** Delete Content Delivery Config */ - delete: operations["delete_9"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/content-storages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List Content Storages */ - get: operations["list_3"]; - put?: never; - /** Create Content Storage */ - post: operations["create_9"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/content-storages/test": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Test Content Storage settings */ - post: operations["test_1"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/content-storages/{contentStorageId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get Content Storage */ - get: operations["get_16"]; - /** Update Content Storage */ - put: operations["update_5"]; - post?: never; - /** Delete Content Storage */ - delete: operations["delete_8"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/content-storages/{id}/test": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Test existing Content Storage - * @description Tests existing Content Storage with new configuration. (Uses existing secrets, if nulls provided) - */ - post: operations["testExisting"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/current-batch-jobs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all running and pending batch operations - * @description Returns all running and pending batch operations. Completed batch operations are returned only if they are not older than 1 hour. If user doesn't have permission to view all batch operations, only their operations are returned. - */ - get: operations["currentJobs"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/export": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Export data */ - get: operations["exportData"]; - put?: never; - /** - * Export data (post) - * @description Exports data (post). Useful when exceeding allowed URL size. - */ - post: operations["exportPost"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/glossary-highlights": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Returns glossary term highlights for specified text */ - post: operations["getHighlights"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Add files - * @description Prepares provided files to import. - */ - post: operations["addFiles"]; - /** - * Delete - * @description Deletes prepared import data. - */ - delete: operations["cancelImport"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import-settings": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get Import Settings - * @description Returns import settings for the authenticated user and the project. - */ - get: operations["get_4"]; - /** - * Set Import Settings - * @description Stores import settings for the authenticated user and the project. - */ - put: operations["store"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/all-namespaces": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get namespaces - * @description Returns all existing and imported namespaces - */ - get: operations["getAllNamespaces"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/apply": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Apply import - * @description Imports the data prepared in previous step - */ - put: operations["applyImport"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/apply-streaming": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Apply import (streaming) - * @description Imports the data prepared in previous step. Streams current status. - */ - put: operations["applyImportStreaming"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get result - * @description Returns the result of preparation. - */ - get: operations["getImportResult"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/files/{fileId}/select-namespace": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Select namespace - * @description Sets namespace for file to import. - */ - put: operations["selectNamespace"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/files/{importFileId}/issues": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get file issues - * @description Returns issues for uploaded file. - */ - get: operations["getImportFileIssues"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/languages/{importLanguageId}/reset-existing": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Reset existing language pairing - * @description Resets existing language paired with language to import. - */ - put: operations["resetExistingLanguage"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/languages/{importLanguageId}/select-existing/{existingLanguageId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Pair existing language - * @description Sets existing language to pair with language to import. Data will be imported to selected existing language when applied. - */ - put: operations["selectExistingLanguage"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get import language - * @description Returns language prepared to import. - */ - get: operations["getImportLanguage"]; - put?: never; - post?: never; - /** - * Delete language - * @description Deletes language prepared to import. - */ - delete: operations["deleteLanguage"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/resolve-all/set-keep-existing": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Resolve all translation conflicts (keep existing) - * @description Resolves all translation conflicts for provided language. The old translations will be kept. - */ - put: operations["resolveTranslationSetKeepExisting_2"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/resolve-all/set-override": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Resolve all translation conflicts (override) - * @description Resolves all translation conflicts for provided language. The old translations will be overridden. - */ - put: operations["resolveTranslationSetOverride_2"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/translations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get translations - * @description Returns translations prepared to import. - */ - get: operations["getImportTranslations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/translations/{translationId}/resolve/set-keep-existing": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Resolve conflict (keep existing) - * @description Resolves translation conflict. The old translation will be kept. - */ - put: operations["resolveTranslationSetKeepExisting"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/translations/{translationId}/resolve/set-override": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Resolve conflict (override) - * @description Resolves translation conflict. The old translation will be overridden. - */ - put: operations["resolveTranslationSetOverride"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/invitations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get project invitations */ - get: operations["getProjectInvitations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/invite": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Generate user invitation link for project */ - put: operations["inviteUser"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all keys */ - get: operations["getAll_9"]; - put?: never; - /** Create new key */ - post: operations["create_6"]; - /** - * Delete one or multiple keys (post) - * @description Delete one or multiple keys by their IDs in request body. Useful for larger requests esxceeding allowed URL length. - */ - delete: operations["delete_6"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/create": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Create new key */ - post: operations["create_5"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/import": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Import keys - * @description Imports new keys with translations. If key already exists, its translations and tags are not updated. - */ - post: operations["importKeys_2"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/import-resolvable": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Import keys (resolvable) - * @deprecated - * @description - * Import's new keys with translations. Translations can be updated, when specified. - * DEPRECATED: Use /v2/projects/single-step-import-resolvable instead. + * no value = request everything * - */ - post: operations["importKeys"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Get key info - * @description Returns information about keys. (KeyData, Screenshots, Translation in specified language)If key is not found, it's not included in the response. - */ - post: operations["getInfo"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/search": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Search for keys - * @description This endpoint helps you to find desired key by keyName, base translation or translation in specified language. + * true = only seen * - * Sort is ignored for this request. + * false = only unseen */ - get: operations["searchForKey"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/select": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; + filterSeen?: boolean; + cursor?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelWithNextCursorNotificationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns notification settings of the currently logged in user */ + getNotificationsSettings: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["NotificationSettingModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Saves new value for given parameters */ + putNotificationSetting: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["NotificationSettingsRequest"]; + }; + }; + }; + markNotificationsAsSeen: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["NotificationsMarkSeenRequest"]; + }; + }; + }; + /** Returns all organizations, which is current user allowed to view */ + getAll_10: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + filterCurrentUserOwner: boolean; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelOrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_13: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["OrganizationDto"]; + }; + }; + }; + get_15: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_10: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["OrganizationDto"]; + }; + }; + }; + /** Deletes organization and all its data including projects */ + delete_9: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + uploadAvatar_2: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "multipart/form-data": { + /** Format: binary */ + avatar: string; + }; + }; + }; + }; + removeAvatar_2: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Generates invitation link for organization, so users can join organization. The invitation can also be sent to an e-mail address. */ + inviteUser_1: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["OrganizationInvitationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["OrganizationInviteUserDto"]; + }; + }; + }; + /** Remove current user from organization */ + leaveOrganization: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all organization projects the user has access to */ + getAllProjects_1: { + parameters: { + path: { + id: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all users in organization. The result also contains users who are only members of projects in the organization. */ + getAllUsers_1: { + parameters: { + path: { + id: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelUserAccountWithOrganizationRoleModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all base languages in use by projects owned by specified organization */ + getAllBaseLanguagesInUse: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + projectIds?: number[]; + }; + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelOrganizationLanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAll_12: { + parameters: { + path: { + organizationId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelSimpleGlossaryModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_14: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["GlossaryModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateGlossaryRequest"]; + }; + }; + }; + getAllWithStats: { + parameters: { + path: { + organizationId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelSimpleGlossaryWithStatsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + get_13: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["GlossaryModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_8: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["GlossaryModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateGlossaryRequest"]; + }; + }; + }; + delete_7: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAssignedProjects: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelSimpleProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + export: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["StreamingResponseBody"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + importCsv: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + query: { + removeExistingTerms?: boolean; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["GlossaryImportResult"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "multipart/form-data": { + /** Format: binary */ + file: string; + }; + }; + }; + }; + getLanguages: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelGlossaryLanguageDto"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAll_13: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + languageTags?: string[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelSimpleGlossaryTermModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_15: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CreateUpdateGlossaryTermResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateGlossaryTermWithTranslationRequest"]; + }; + }; + }; + deleteMultiple: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DeleteMultipleGlossaryTermsRequest"]; + }; + }; + }; + get_14: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + termId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["GlossaryTermModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_9: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + termId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CreateUpdateGlossaryTermResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateGlossaryTermWithTranslationRequest"]; + }; + }; + }; + delete_8: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + termId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_12: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + termId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["GlossaryTermTranslationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateGlossaryTermTranslationRequest"]; + }; + }; + }; + get_23: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + termId: number; + languageTag: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["GlossaryTermTranslationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAllIds: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + query: { + search?: string; + languageTags?: string[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLong"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAllWithTranslations: { + parameters: { + path: { + organizationId: number; + glossaryId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + languageTags?: string[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelSimpleGlossaryTermWithTranslationsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getInvitations: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelOrganizationInvitationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all languages in use by projects owned by specified organization */ + getAllLanguagesInUse: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + projectIds?: number[]; + }; + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelOrganizationLanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAll_11: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLlmProviderModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + createProvider: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LlmProviderModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LlmProviderRequest"]; + }; + }; + }; + /** Combines llm providers from organization-specific and server-configured */ + getAvailableProviders: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLlmProviderSimpleModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getServerProviders: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLlmProviderSimpleModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + updateProvider: { + parameters: { + path: { + organizationId: number; + providerId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LlmProviderModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LlmProviderRequest"]; + }; + }; + }; + deleteProvider: { + parameters: { + path: { + organizationId: number; + providerId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns machine translation credit balance for organization */ + getOrganizationCredits: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CreditBalanceModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all projects (including statistics) where current user has any permission (except none) */ + getAllWithStatistics_2: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Set default granular (scope-based) permissions for organization users, who don't have direct project permissions set. */ + setBasePermissions: { + parameters: { + path: { + organizationId: number; + }; + query: { + /** Granted scopes to all projects for all organization users without direct project permissions set. */ + scopes: string[]; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sets default (level-based) permission for organization */ + setBasePermissions_1: { + parameters: { + path: { + organizationId: number; + permissionType: + | "NONE" + | "VIEW" + | "TRANSLATE" + | "REVIEW" + | "EDIT" + | "MANAGE"; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** + * This endpoint allows the owner of an organization to connect a Slack workspace to their organization. + * Checks if the Slack integration feature is enabled for the organization and proceeds with the connection. + */ + connectWorkspace: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ConnectToSlackDto"]; + }; + }; + }; + /** Returns URL to which user should be redirected to connect Slack workspace */ + connectToSlack: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ConnectToSlackUrlModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns a list of workspaces connected to the organization */ + getConnectedWorkspaces: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelWorkspaceModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Disconnects a workspace from the organization */ + disconnectWorkspace: { + parameters: { + path: { + workspaceId: number; + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + findProvider: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SsoTenantModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setProvider: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SsoTenantModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateProviderRequest"]; + }; + }; + }; + getUsage: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PublicUsageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Remove user from organization. If user is managed by the organization, their account is disabled instead. */ + removeUser: { + parameters: { + path: { + organizationId: number; + userId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sets user role in organization. Owner or Member. */ + setUserRole: { + parameters: { + path: { + organizationId: number; + userId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetOrganizationRoleDto"]; + }; + }; + }; + get_22: { + parameters: { + path: { + slug: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all organization projects the user has access to */ + getAllProjects: { + parameters: { + path: { + slug: string; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all projects (including statistics) where current user has any permission (except none) */ + getAllWithStatistics_1: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + path: { + slug: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAll_9: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelPatModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_12: { + responses: { + /** Created */ + 201: { + content: { + "*/*": components["schemas"]["RevealedPatModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreatePatDto"]; + }; + }; + }; + /** Returns current Personal Access Token. If the request is not authenticated with a Personal Access Token, it will return 400 response status. */ + getCurrent: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PatWithUserModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + get_12: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PatModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Updates Personal Access Token */ + update_7: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PatModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdatePatDto"]; + }; + }; + }; + /** Deletes Personal Access Token */ + delete_6: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Regenerates Personal Access Token. It generates new token value and updates its time of expiration. */ + regenerate: { + parameters: { + path: { + id: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["RevealedPatModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["RegeneratePatDto"]; + }; + }; + }; + /** Returns preferred organization. If server allows users to create organization, preferred organization is automatically created if user doesn't have access to any organization. */ + getPreferred: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PrivateOrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all projects where current user has any permission */ + getAll: { + parameters: { + query: { + /** Filter projects by id */ + filterId?: number[]; + /** Filter projects without id */ + filterNotId?: number[]; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Creates a new project with languages and initial settings. */ + createProject: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateProjectRequest"]; + }; + }; + }; + /** Returns all projects (including statistics) where current user has any permission */ + getAllWithStatistics: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + get_2: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + editProject: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["EditProjectRequest"]; + }; + }; + }; + deleteProject: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getActivity: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelProjectActivityModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getSingleRevision: { + parameters: { + path: { + revisionId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectActivityModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getModifiedEntitiesByRevision: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + /** Filters results by specific entity class */ + filterEntityClass?: string[]; + }; + path: { + revisionId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelModifiedEntityModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAiPlaygroundResult: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelAiPlaygroundResultModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AiPlaygroundResultRequest"]; + }; + }; + }; + getPromptProjectCustomization: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectAiPromptCustomizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setPromptProjectCustomization: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectAiPromptCustomizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetProjectPromptCustomizationRequest"]; + }; + }; + }; + getAllKeys: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** + * Returns all project key with any disabled language. + * + * If key has no disabled language, it is not returned. + */ + getDisabledLanguages_2: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelKeyDisabledLanguagesModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all API keys for specified project */ + allByProject: { + parameters: { + query: { + pageable: components["schemas"]["Pageable"]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelApiKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns default auto translation settings for project (deprecated: use per language config with null language id) */ + getAutoTranslationSettings: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["AutoTranslationConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sets default auto-translation settings for project (deprecated: use per language config with null language id) */ + setAutoTranslationSettings: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["AutoTranslationConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AutoTranslationSettingsDto"]; + }; + }; + }; + uploadAvatar_1: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "multipart/form-data": { + /** Format: binary */ + avatar: string; + }; + }; + }; + }; + removeAvatar_1: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + list_3: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelBatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + get_20: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Stops batch operation if possible. */ + cancel: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Stores a bigMeta for a project */ + store_2: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["BigMetaDto"]; + }; + }; + }; + all: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + activeOnly?: boolean; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelBranchModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_11: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BranchModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateBranchModel"]; + }; + }; + }; + getBranchMerges: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelBranchMergeModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + dryRunMerge: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BranchMergeRefModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DryRunMergeBranchRequest"]; + }; + }; + }; + deleteBranchMerge: { + parameters: { + path: { + mergeId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + merge: { + parameters: { + path: { + mergeId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getBranchMergeSessionChanges: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + type?: "ADD" | "UPDATE" | "DELETE" | "CONFLICT"; + }; + path: { + mergeId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelBranchMergeChangeModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getBranchMergeSessionConflicts: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + mergeId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelBranchMergeConflictModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getBranchMergeSessionPreview: { + parameters: { + path: { + mergeId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BranchMergeModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + refreshBranchMerge: { + parameters: { + path: { + mergeId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BranchMergeModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + resolveConflict: { + parameters: { + path: { + mergeId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResolveBranchMergeConflictRequest"]; + }; + }; + }; + resolveAllConflicts: { + parameters: { + path: { + mergeId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResolveAllBranchMergeConflictsRequest"]; + }; + }; + }; + delete_15: { + parameters: { + path: { + branchId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + list_2: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelContentDeliveryConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_10: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ContentDeliveryConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentDeliveryConfigRequest"]; + }; + }; + }; + get_11: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ContentDeliveryConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_6: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ContentDeliveryConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentDeliveryConfigRequest"]; + }; + }; + }; + /** Immediately publishes content to the configured Content Delivery */ + post: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + delete_5: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + list_1: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelContentStorageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_9: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ContentStorageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentStorageRequest"]; + }; + }; + }; + test_1: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["StorageTestResult"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentStorageRequest"]; + }; + }; + }; + get_10: { + parameters: { + path: { + contentStorageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ContentStorageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_5: { + parameters: { + path: { + contentStorageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ContentStorageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentStorageRequest"]; + }; + }; + }; + delete_4: { + parameters: { + path: { + contentStorageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Tests existing Content Storage with new configuration. (Uses existing secrets, if nulls provided) */ + testExisting: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["StorageTestResult"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentStorageRequest"]; + }; + }; + }; + /** Returns all running and pending batch operations. Completed batch operations are returned only if they are not older than 1 hour. If user doesn't have permission to view all batch operations, only their operations are returned. */ + currentJobs: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelBatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** + * Exports project data in various formats (JSON, properties, YAML, etc.). + * + * ## HTTP Conditional Requests Support + * + * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: + * + * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date + * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value + * - **Data not modified**: Returns HTTP 304 Not Modified with empty body + * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header + * + * The Last-Modified header in the response contains the timestamp of the last project modification, + * and the ETag header contains a unique identifier for the current project state. Both can be used + * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. + * + * Cache-Control header is set to max-age=0 to ensure validation on each request. + */ + exportData: { + parameters: { + query: { /** - * Select keys - * @description Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. - */ - get: operations["selectKeys_2"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{ids}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete one or multiple keys */ - delete: operations["delete_4"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one key */ - get: operations["get_14"]; - /** Edit key name */ - put: operations["edit"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{id}/big-meta": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get Big Meta for key */ - get: operations["getBigMeta"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{id}/complex-update": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Edit key and related data - * @description Edits key name, translations, tags, screenshots, and other data - */ - put: operations["complexEdit"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{id}/disabled-languages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get disabled languages - * @description Returns languages, in which key is disabled - */ - get: operations["getDisabledLanguages"]; - /** - * Set disabled languages - * @description Sets languages, in which key is disabled + * Languages to be contained in export. + * + * If null, all languages are exported */ - put: operations["setDisabledLanguages"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{keyId}/auto-translate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + languages?: string[]; + /** Format to export to */ + format: + | "JSON" + | "JSON_TOLGEE" + | "XLIFF" + | "PO" + | "APPLE_STRINGS_STRINGSDICT" + | "APPLE_XLIFF" + | "ANDROID_XML" + | "COMPOSE_XML" + | "FLUTTER_ARB" + | "PROPERTIES" + | "YAML_RUBY" + | "YAML" + | "JSON_I18NEXT" + | "CSV" + | "RESX_ICU" + | "XLSX" + | "APPLE_XCSTRINGS" + | "ANDROID_SDK" + | "APPLE_SDK"; /** - * Auto translates keys - * @description Uses enabled auto-translation methods. - * You need to set at least one of useMachineTranslation or useTranslationMemory to true. + * Delimiter to structure file content. * - * This will replace the the existing translation with the result obtained from specified source! + * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. * + * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), + * specific formats like `YAML_RUBY` don't honor this parameter. */ - put: operations["autoTranslate"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{keyId}/screenshots": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get screenshots */ - get: operations["getKeyScreenshots_1"]; - put?: never; - /** Upload screenshot */ - post: operations["uploadScreenshot_1"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{keyId}/screenshots/{ids}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete screenshots */ - delete: operations["deleteScreenshots_1"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{keyId}/tags": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Tag key - * @description Tags a key with tag. If tag with provided name doesn't exist, it is created - */ - put: operations["tagKey"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/keys/{keyId}/tags/{tagId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** - * Remove tag - * @description Removes tag with provided id from key with provided id - */ - delete: operations["removeTag"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/labels": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get available project labels */ - get: operations["getAll_3"]; - put?: never; - /** Create label */ - post: operations["createLabel"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/labels/ids": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get labels by ids */ - get: operations["getLabelsByIds"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/labels/{labelId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Update label */ - put: operations["updateLabel"]; - post?: never; - /** Delete label */ - delete: operations["deleteLabel"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/language-ai-prompt-customizations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Sets project level prompt customization */ - get: operations["getLanguagePromptCustomizations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/language/{languageTag}/key/{keyId}/suggestion": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get suggestions */ - get: operations["getSuggestions"]; - put?: never; - /** Create translation suggestion */ - post: operations["createSuggestion"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/language/{languageTag}/key/{keyId}/suggestion/{suggestionId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** Delete suggestion */ - delete: operations["deleteSuggestion"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/language/{languageTag}/key/{keyId}/suggestion/{suggestionId}/accept": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Accept suggestion */ - put: operations["acceptSuggestion"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/language/{languageTag}/key/{keyId}/suggestion/{suggestionId}/decline": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Decline suggestion */ - put: operations["declineSuggestion"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/language/{languageTag}/key/{keyId}/suggestion/{suggestionId}/reverse": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Reverse suggestion */ - put: operations["reverseSuggestion"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/languages": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get all languages */ - get: operations["getAll_7"]; - put?: never; - /** Create language */ - post: operations["createLanguage"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/languages/{languageId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one language */ - get: operations["get_12"]; - /** Update language */ - put: operations["editLanguage"]; - post?: never; - /** Delete specific language */ - delete: operations["deleteLanguage_2"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/languages/{languageId}/ai-prompt-customization": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Sets language level prompt customization */ - put: operations["setLanguagePromptCustomization"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/leave": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Leave project */ - put: operations["leaveProject"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/machine-translation-credit-balance": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get credit balance for project - * @description Returns machine translation credit balance for specified project - */ - get: operations["getProjectCredits"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/machine-translation-language-info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Machine translation info - * @description Get enabled services and configured formality for each language - */ - get: operations["getMachineTranslationLanguageInfo"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/machine-translation-service-settings": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get machine translation settings */ - get: operations["getMachineTranslationSettings"]; - /** Sets machine translation settings */ - put: operations["setMachineTranslationSettings"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/machine-translation-service-settings/set-default-prompt/{promptId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Sets machine translation default prompt for all languages */ - put: operations["setMachineTranslationSettings_1"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/my-batch-jobs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * List user batch operations - * @description List all batch operations started by current user - */ - get: operations["myList"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/namespace-by-name/{name}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get namespace by name - * @description Returns information about a namespace by its name - */ - get: operations["getByName"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/namespaces": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get namespaces */ - get: operations["getAllNamespaces_2"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/namespaces/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Update namespace */ - put: operations["update_3"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/per-language-auto-translation-settings": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get per-language auto-translation settings */ - get: operations["getPerLanguageAutoTranslationSettings"]; - /** Set per-language auto-translation settings */ - put: operations["setPerLanguageAutoTranslationSettings"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/prompts": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: operations["getAllPaged"]; - put?: never; - post: operations["createPrompt"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/prompts/default": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: operations["getDefaultPrompt"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/prompts/get-variables": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get variables */ - get: operations["variables"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/prompts/run": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: operations["run"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/prompts/{promptId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: operations["getPrompt"]; - put: operations["updatePrompt"]; - post?: never; - delete: operations["deletePrompt"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/single-step-import": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Single step import - * @description Unlike the /v2/projects/{projectId}/import endpoint, imports the data in single request by provided files and parameters. This is useful for automated importing via API or CLI. - */ - post: operations["singleStepFromFiles"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/single-step-import-resolvable": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Single step import from body */ - post: operations["singleStepResolvableImport"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/ai-playground-translate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Translates via llm and stores result in AiPlaygroundResult */ - post: operations["aiPlaygroundTranslate"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/assign-translation-label": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Assign labels to translations */ - post: operations["assignTranslationLabel"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/clear-translations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Clear translation values - * @description Clear translation values for provided keys in selected languages. - */ - post: operations["clearTranslations"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/copy-translations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Copy translation values - * @description Copy translation values from one language to other languages. - */ - post: operations["copyTranslations"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/delete-keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Delete keys */ - post: operations["deleteKeys"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/machine-translate": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Machine Translation - * @description Translate provided keys to provided languages through primary MT provider. - */ - post: operations["machineTranslation"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/pre-translate-by-tm": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Pre-translate by TM - * @description Pre-translate provided keys to provided languages by TM. - */ - post: operations["translate"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/set-keys-namespace": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Set keys namespace */ - post: operations["setKeysNamespace"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/set-translation-state": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Set translation state */ - post: operations["setTranslationState_2"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/tag-keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Add tags */ - post: operations["tagKeys"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/unassign-translation-label": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Unassign labels from translations */ - post: operations["unassignTranslationLabel"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/start-batch-job/untag-keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Remove tags */ - post: operations["untagKeys"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/stats": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get project stats */ - get: operations["getProjectStats"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/stats/daily-activity": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get project daily amount of events */ - get: operations["getProjectDailyActivity"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/suggest/machine-translations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Get machine translation suggestions - * @description Suggests machine translations from enabled services - */ - post: operations["suggestMachineTranslations"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/suggest/machine-translations-streaming": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Get machine translation suggestions (streaming) - * @description Suggests machine translations from enabled services. The results are streamed to the output in ndjson format. If an error occurs when for any service provider used, the error information is returned as a part of the result item, while the response has 200 status code. - */ - post: operations["suggestMachineTranslationsStreaming"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/suggest/translation-memory": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Get suggestions from translation memory - * @description Suggests machine translations from translation memory. The result is always sorted by similarity, so sorting is not supported. - */ - post: operations["suggestTranslationMemory"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tag-complex": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Execute complex tag operation */ - put: operations["executeComplexTagOperation"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tags": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get tags */ - get: operations["getAll_1"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get tasks */ - get: operations["getTasks_1"]; - put?: never; - /** Create task */ - post: operations["createTask"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/calculate-scope": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Calculate scope */ - post: operations["calculateScope"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/create-multiple-tasks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Create multiple tasks */ - post: operations["createTasks"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/possible-assignees": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: operations["getPossibleAssignees"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get task */ - get: operations["getTask"]; - /** Update task */ - put: operations["updateTask"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/blocking-tasks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get blocking task numbers - * @description If the tasks is blocked by other tasks, it returns numbers of these tasks. - */ - get: operations["getBlockingTasks"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/cancel": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Close task */ - put: operations["cancelTask"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/close": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Close task - * @deprecated - */ - put: operations["closeTask"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/finish": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Finish task */ - put: operations["finishTask"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get task keys */ - get: operations["getTaskKeys"]; - /** Add or remove task keys */ - put: operations["updateTaskKeys"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/keys/{keyId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Update task key - * @description Mark key as done, which updates task progress. - */ - put: operations["updateTaskKey"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/per-user-report": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get report - * @description Detailed statistics for every assignee - */ - get: operations["getPerUserReport"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/reopen": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Reopen task */ - put: operations["reopenTask"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/xlsx-report": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get report in XLSX - * @description Detailed statistics about the task results - */ - get: operations["getXlsxReport"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/transfer-options": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get transfer to organization options - * @description Returns organizations to which project can be transferred - */ - get: operations["getTransferOptions"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/transfer-to-organization/{organizationId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Transfer project - * @description Transfers project's ownership to organization - */ - put: operations["transferProjectToOrganization"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get translations in project */ - get: operations["getTranslations"]; - /** - * Update translations for existing key - * @description Sets translations for existing key - */ - put: operations["setTranslations"]; - /** - * Create key or update translations - * @description Sets translations for existing key or creates new key and sets the translations to it. - */ - post: operations["createOrUpdateTranslations"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/create-comment": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Create translation comment - * @description Creates a translation comment. Empty translation is stored, when not exists. - */ - post: operations["create_3"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/label": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Add label to translation by key and language id */ - put: operations["assignLabel_2"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/select-all": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Select keys - * @description Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. - */ - get: operations["selectKeys"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{languages}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get all translations - * @description Returns all translations for specified languages - */ - get: operations["getAllTranslations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{translationId}/comments": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get translation comments - * @description Returns translation comments of translation - */ - get: operations["getAll_5"]; - put?: never; - /** Create translation comment */ - post: operations["create_1"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one translation comment */ - get: operations["get_10"]; - /** Update translation comment */ - put: operations["update_1"]; - post?: never; - /** Delete translation comment */ - delete: operations["delete_2"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}/set-state/{state}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Set state of translation comment */ - put: operations["setState"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{translationId}/dismiss-auto-translated-state": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + structureDelimiter?: string; + /** Filter key IDs to be contained in export */ + filterKeyId?: number[]; + /** Filter key IDs not to be contained in export */ + filterKeyIdNot?: number[]; /** - * Dismiss auto-translated - * @description Removes "auto translated" indication - */ - put: operations["dismissAutoTranslatedState"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{translationId}/history": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get translation history - * @description Sorting is not supported for supported. It is automatically sorted from newest to oldest. - */ - get: operations["getTranslationHistory"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{translationId}/label/{labelId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Add label to translation */ - put: operations["assignLabel"]; - post?: never; - /** Remove label from translation */ - delete: operations["unassignLabel"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{translationId}/set-outdated-flag/{state}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** - * Set outdated value - * @description Set's "outdated" flag indicating the base translation was changed without updating current translation. - */ - put: operations["setOutdated"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/translations/{translationId}/set-state/{state}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Set translation state */ - put: operations["setTranslationState"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/used-namespaces": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get used namespaces - * @description Returns all used project namespaces. Response contains default (null) namespace if used. - */ - get: operations["getUsedNamespaces"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/users": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get users with project access - * @description Returns all project users, who have permission to access project + * Filter keys tagged by. + * + * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ - get: operations["getAllUsers"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/users/{userId}/revoke-access": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Revoke project access */ - put: operations["revokePermission"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/users/{userId}/set-by-organization": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + filterTag?: string; + /** Filter keys tagged by one of provided tags */ + filterTagIn?: string[]; + /** Filter keys not tagged by one of provided tags */ + filterTagNotIn?: string[]; + /** Filter keys with prefix */ + filterKeyPrefix?: string; + /** Filter translations with state. By default, all states except untranslated is exported. */ + filterState?: ( + | "UNTRANSLATED" + | "TRANSLATED" + | "REVIEWED" + | "DISABLED" + )[]; + /** Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ + filterNamespace?: string[]; /** - * Remove direct project permission - * @description Removes user's direct project permission, explicitly set for the project. User will have now base permissions from organization or no permission if they're not organization member. + * If false, it doesn't return zip of files, but it returns single file. + * + * This is possible only when single language is exported. Otherwise it returns "400 - Bad Request" response. */ - put: operations["setOrganizationBase"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/users/{userId}/set-permissions": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + zip: boolean; /** - * Set user's project permission - * @description Set user's granular (scope-based) direct project permission + * Message format to be used for export. + * + * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * + * This property is honored only for generic formats like JSON or YAML. + * For specific formats like `YAML_RUBY` it's ignored. */ - put: operations["setUsersPermissions"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/users/{userId}/set-permissions/{permissionType}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Set direct permission to user */ - put: operations["setUsersPermissions_1"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/webhook-configs": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** List webhook configurations */ - get: operations["list_2"]; - put?: never; - /** Create new webhook configuration */ - post: operations["create"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/webhook-configs/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get one webhook configuration */ - get: operations["get_9"]; - /** Update webhook configuration */ - put: operations["update"]; - post?: never; - /** Delete webhook configuration */ - delete: operations["delete_1"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/projects/{projectId}/webhook-configs/{id}/test": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; + messageFormat?: + | "C_SPRINTF" + | "PHP_SPRINTF" + | "JAVA_STRING_FORMAT" + | "APPLE_SPRINTF" + | "RUBY_SPRINTF" + | "I18NEXT" + | "ICU" + | "PYTHON_PERCENT"; /** - * Test webhook configuration - * @description Sends a test request to the webhook + * This is a template that defines the structure of the resulting .zip file content. + * + * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, + * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * + * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, + * the English translations of the `home` namespace will be stored in `home/en.json`. + * + * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * + * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` + * but in Android format. (e.g., en-rUS) */ - post: operations["test"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/business-events/identify": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Identifies user */ - post: operations["identify"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/business-events/report": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Reports business event */ - post: operations["report"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/configuration-properties": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** @description Return server configuration properties documentation */ - get: operations["get_3"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/export-info/formats": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: operations["get_2"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/initial-data": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; + fileStructureTemplate?: string; /** - * Get initial data - * @description Returns initial data required by the UI to load + * If true, for structured formats (like JSON) arrays are supported. + * + * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ - get: operations["get_1"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/llm/prompt": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: operations["prompt"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/machine-translation-providers": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; + supportArrays: boolean; /** - * Returns information about supported translation providers - * @description Get machine translation providers + * If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). + * + * e.g. Key hello will be exported as <b>hello</b> */ - get: operations["getInfo_4"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/scope-info/hierarchy": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns hierarchy of scopes */ - get: operations["getHierarchy"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/scope-info/roles": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Returns user roles and their scopes */ - get: operations["getRoles"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/slack": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: operations["slackCommand"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/slack/on-bot-event": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; + escapeHtml?: boolean; /** - * On bot event - * @description This is triggered when bot event is triggered. E.g., when app is uninstalled from workspace. + * Filter translations with branch. * - * Heads up! The events have to be configured via Slack App configuration in Event Subscription section. + * By default, default branch is exported. */ - post: operations["fetchBotEvent"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/public/slack/on-event": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; + filterBranch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** + * When multiple files are exported, they are zipped and returned as a single zip file. + * When a single file is exported, it is returned directly. + */ + 200: { + content: { + "application/*": unknown; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** + * Exports project data in various formats (JSON, properties, YAML, etc.). + * Useful when exceeding allowed URL size with GET requests. + * + * ## HTTP Conditional Requests Support + * + * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: + * + * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date + * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value + * - **Data not modified**: Returns HTTP 304 Not Modified with empty body + * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header + * + * Note: This endpoint uses a custom implementation that returns 304 Not Modified for all HTTP methods + * (including POST) when conditional headers indicate the data hasn't changed. This differs from Spring's + * default behavior which returns 412 for POST requests, but is appropriate here since POST is used only + * to accommodate large request parameters, not to modify data. + * + * The Last-Modified header in the response contains the timestamp of the last project modification, + * and the ETag header contains a unique identifier for the current project state. Both can be used + * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. + * + * Cache-Control header is set to max-age=0 to ensure validation on each request. + */ + exportPost: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** + * When multiple files are exported, they are zipped and returned as a single zip file. + * When a single file is exported, it is returned directly. + */ + 200: { + content: { + "application/*": unknown; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ExportParams"]; + }; + }; + }; + getHighlights: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelGlossaryTermHighlightModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GlossaryHighlightsRequest"]; + }; + }; + }; + /** Prepares provided files to import. */ + addFiles: { + parameters: { + query: { + /** When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys. */ + structureDelimiter?: string; + /** Branch to which files will be imported */ + branch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ImportAddFilesResultModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "multipart/form-data": { + files: string[]; + }; + }; + }; + }; + /** Deletes prepared import data. */ + cancelImport: { + parameters: { + query: { + branch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns import settings for the authenticated user and the project. */ + get: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ImportSettingsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Stores import settings for the authenticated user and the project. */ + store: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ImportSettingsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ImportSettingsRequest"]; + }; + }; + }; + /** Returns all existing and imported namespaces */ + getAllNamespaces: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelImportNamespaceModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Imports the data prepared in previous step */ + applyImport: { + parameters: { + query: { + /** Whether override or keep all translations with unresolved conflicts */ + forceMode?: "OVERRIDE" | "KEEP" | "NO_FORCE"; + branch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Imports the data prepared in previous step. Streams current status. */ + applyImportStreaming: { + parameters: { + query: { + /** Whether override or keep all translations with unresolved conflicts */ + forceMode?: "OVERRIDE" | "KEEP" | "NO_FORCE"; + branch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/x-ndjson": components["schemas"]["StreamingResponseBody"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns the result of preparation. */ + getImportResult: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + branch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelImportLanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sets namespace for file to import. */ + selectNamespace: { + parameters: { + path: { + fileId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetFileNamespaceRequest"]; + }; + }; + }; + /** Returns issues for uploaded file. */ + getImportFileIssues: { + parameters: { + path: { + importFileId: number; + projectId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelImportFileIssueModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Resets existing language paired with language to import. */ + resetExistingLanguage: { + parameters: { + path: { + importLanguageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sets existing language to pair with language to import. Data will be imported to selected existing language when applied. */ + selectExistingLanguage: { + parameters: { + path: { + importLanguageId: number; + existingLanguageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns language prepared to import. */ + getImportLanguage: { + parameters: { + path: { + languageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ImportLanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Deletes language prepared to import. */ + deleteLanguage_2: { + parameters: { + path: { + languageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Resolves all translation conflicts for provided language. The old translations will be kept. */ + resolveTranslationSetKeepExisting_2: { + parameters: { + path: { + languageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Resolves all translation conflicts for provided language. The old translations will be overridden. */ + resolveTranslationSetOverride_2: { + parameters: { + path: { + languageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns translations prepared to import. */ + getImportTranslations: { + parameters: { + path: { + projectId: number; + languageId: number; + }; + query: { + /** Whether only translations, which are in conflict with existing translations should be returned */ + onlyConflicts?: boolean; + /** Whether only translations with unresolved conflictswith existing translations should be returned */ + onlyUnresolved?: boolean; + /** String to search in translation text or key */ + search?: string; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelImportTranslationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Resolves translation conflict. The old translation will be kept. */ + resolveTranslationSetKeepExisting: { + parameters: { + path: { + languageId: number; + translationId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Resolves translation conflict. The old translation will be overridden. */ + resolveTranslationSetOverride: { + parameters: { + path: { + languageId: number; + translationId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getProjectInvitations: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelProjectInvitationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + inviteUser: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectInvitationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ProjectInviteUserDto"]; + }; + }; + }; + getAll_7: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + branch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelKeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_6: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** Created */ + 201: { + content: { + "*/*": components["schemas"]["KeyWithDataModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateKeyDto"]; + }; + }; + }; + /** Delete one or multiple keys by their IDs in request body. Useful for larger requests esxceeding allowed URL length. */ + delete_11: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DeleteKeysDto"]; + }; + }; + }; + create_5: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** Created */ + 201: { + content: { + "*/*": components["schemas"]["KeyWithDataModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateKeyDto"]; + }; + }; + }; + /** Imports new keys with translations. If key already exists, its translations and tags are not updated. */ + importKeys_2: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ImportKeysDto"]; + }; + }; + }; + /** + * Import's new keys with translations. Translations can be updated, when specified.\n\n + * DEPRECATED: Use /v2/projects/{projectId}/single-step-import-resolvable instead. + */ + importKeys: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["KeyImportResolvableResultModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ImportKeysResolvableDto"]; + }; + }; + }; + /** Returns information about keys. (KeyData, Screenshots, Translation in specified language)If key is not found, it's not included in the response. */ + getInfo_1: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelKeyWithDataModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GetKeysRequestDto"]; + }; + }; + }; + /** + * This endpoint helps you to find desired key by keyName, base translation or translation in specified language. + * + * Sort is ignored for this request. + */ + searchForKey: { + parameters: { + query: { + /** Search query */ + search: string; + /** Language to search in */ + languageTag?: string; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelKeySearchSearchResultModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. */ + selectKeys_2: { + parameters: { + query: { /** - * On interactivity event - * @description This is triggered when interactivity event is triggered. E.g., when user clicks button provided in previous messages. + * Translation state in the format: languageTag,state. You can use this parameter multiple times. + * + * When used with multiple states for same language it is applied with logical OR. + * + * When used with multiple languages, it is applied with logical AND. */ - post: operations["onInteractivityEvent"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/quick-start/set-finished/{finished}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + filterState?: string[]; /** - * Set finished state - * @description Sets finished state of the quick start guide + * Languages to be contained in response. + * + * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) */ - put: operations["setFinishedState"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/quick-start/set-open/{open}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + languages?: string[]; + /** String to search in key name or translation text */ + search?: string; + /** Selects key with provided names. Use this param multiple times to fetch more keys. */ + filterKeyName?: string[]; + /** Selects key with provided ID. Use this param multiple times to fetch more keys. */ + filterKeyId?: number[]; + /** Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ + filterUntranslatedAny?: boolean; + /** Selects only keys, where translation is provided in any language */ + filterTranslatedAny?: boolean; + /** Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. */ + filterUntranslatedInLang?: string; + /** Selects only keys, where translation is provided in specified language */ + filterTranslatedInLang?: string; + /** Selects only keys, where translation was auto translated for specified languages. */ + filterAutoTranslatedInLang?: string[]; + /** Selects only keys with screenshots */ + filterHasScreenshot?: boolean; + /** Selects only keys without screenshots */ + filterHasNoScreenshot?: boolean; /** - * Set open state - * @description Sets open state of the quick start guide + * Selects only keys with provided namespaces. + * + * To filter default namespace, set to empty string. */ - put: operations["setOpenState"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/quick-start/steps/{step}/complete": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + filterNamespace?: string[]; /** - * Complete guide step - * @description Marks guide step as completed + * Selects only keys without provided namespaces. + * + * To filter default namespace, set to empty string. */ - put: operations["completeGuideStep"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/slack/user-login": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; + filterNoNamespace?: string[]; + /** Selects only keys with provided tag */ + filterTag?: string[]; + /** Selects only keys without provided tag */ + filterNoTag?: string[]; + /** Selects only keys, where translation in provided langs is in outdated state */ + filterOutdatedLanguage?: string[]; + /** Selects only keys, where translation in provided langs is not in outdated state */ + filterNotOutdatedLanguage?: string[]; + /** Selects only key affected by activity with specidfied revision ID */ + filterRevisionId?: number[]; + /** Select only keys which were not successfully translated by batch job with provided id */ + filterFailedKeysOfJob?: number; + /** Select only keys which are in specified task */ + filterTaskNumber?: number[]; + /** Filter task keys which are `not done` */ + filterTaskKeysNotDone?: boolean; + /** Filter task keys which are `done` */ + filterTaskKeysDone?: boolean; + /** Filter keys with unresolved comments in lang */ + filterHasUnresolvedCommentsInLang?: string[]; + /** Filter keys with any comments in lang */ + filterHasCommentsInLang?: string[]; + /** Filter key translations with labels */ + filterLabel?: string[]; + /** Filter keys with any suggestions in lang */ + filterHasSuggestionsInLang?: string[]; + /** Filter keys with no suggestions in lang */ + filterHasNoSuggestionsInLang?: string[]; + /** Selects only keys from specified branch */ + branch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SelectAllResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + delete_13: { + parameters: { + path: { + ids: number[]; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + get_8: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["KeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + edit: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["KeyModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["EditKeyDto"]; + }; + }; + }; + getBigMeta: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelKeyWithBaseTranslationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Edits key name, translations, tags, screenshots, and other data */ + complexEdit: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["KeyWithDataModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ComplexEditKeyDto"]; + }; + }; + }; + /** Returns languages, in which key is disabled */ + getDisabledLanguages: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sets languages, in which key is disabled */ + setDisabledLanguages: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetDisabledLanguagesRequest"]; + }; + }; + }; + /** + * Uses enabled auto-translation methods. + * You need to set at least one of useMachineTranslation or useTranslationMemory to true. + * + * This will replace the the existing translation with the result obtained from specified source! + */ + autoTranslate: { + parameters: { + path: { + keyId: number; + projectId: number; + }; + query: { /** - * User login - * @description Pairs user account with slack account. + * Tags of languages to auto-translate. + * When no languages provided, it translates only untranslated languages. */ - post: operations["userLogin"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/slack/user-login-info": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; + languages?: string[]; + useMachineTranslation?: boolean; + useTranslationMemory?: boolean; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getKeyScreenshots_1: { + parameters: { + path: { + keyId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelScreenshotModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + uploadScreenshot_1: { + parameters: { + path: { + keyId: number; + projectId: number; + }; + }; + responses: { + /** Created */ + 201: { + content: { + "*/*": components["schemas"]["ScreenshotModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "multipart/form-data": { + /** Format: binary */ + screenshot: string; + info?: components["schemas"]["ScreenshotInfoDto"]; + }; + }; + }; + }; + deleteScreenshots_1: { + parameters: { + path: { + ids: number[]; + keyId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Tags a key with tag. If tag with provided name doesn't exist, it is created */ + tagKey: { + parameters: { + path: { + keyId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TagModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TagKeyDto"]; + }; + }; + }; + /** Removes tag with provided id from key with provided id */ + removeTag: { + parameters: { + path: { + keyId: number; + tagId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAll_1: { + parameters: { + query: { + search?: string; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelLabelModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + createLabel: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LabelModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LabelRequest"]; + }; + }; + }; + getLabelsByIds: { + parameters: { + query: { + id: number[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LabelModel"][]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + updateLabel: { + parameters: { + path: { + labelId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LabelModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LabelRequest"]; + }; + }; + }; + deleteLabel: { + parameters: { + path: { + labelId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getLanguagePromptCustomizations: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLanguageAiPromptCustomizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAll_5: { + parameters: { + path: { + projectId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + /** Filter languages by id */ + filterId?: number[]; + /** Filter languages without id */ + filterNotId?: number[]; + /** Filter languages by name or tag */ + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelLanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + createLanguage: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LanguageRequest"]; + }; + }; + }; + get_6: { + parameters: { + path: { + languageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + editLanguage: { + parameters: { + path: { + languageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LanguageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LanguageRequest"]; + }; + }; + }; + deleteLanguage: { + parameters: { + path: { + languageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setLanguagePromptCustomization: { + parameters: { + path: { + languageId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LanguageAiPromptCustomizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetLanguagePromptCustomizationRequest"]; + }; + }; + }; + getSuggestions: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + /** Filter by suggestion state */ + filterState?: ("ACTIVE" | "ACCEPTED" | "DECLINED")[]; + }; + path: { + languageId: number; + keyId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelTranslationSuggestionModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + createSuggestion: { + parameters: { + path: { + languageId: number; + keyId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationSuggestionModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateTranslationSuggestionRequest"]; + }; + }; + }; + /** User can only delete suggestion created by them */ + deleteSuggestion: { + parameters: { + path: { + languageId: number; + keyId: number; + suggestionId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + acceptSuggestion: { + parameters: { + path: { + languageId: number; + keyId: number; + suggestionId: number; + projectId: number; + }; + query: { + declineOther?: boolean; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationSuggestionAcceptResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + declineSuggestion: { + parameters: { + path: { + languageId: number; + keyId: number; + suggestionId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationSuggestionModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + suggestionSetActive: { + parameters: { + path: { + languageId: number; + keyId: number; + suggestionId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationSuggestionModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + leaveProject: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns machine translation credit balance for specified project */ + getProjectCredits: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CreditBalanceModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Get enabled services and configured formality for each language */ + getMachineTranslationLanguageInfo: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLanguageInfoModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getMachineTranslationSettings: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLanguageConfigItemModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setMachineTranslationSettings: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelLanguageConfigItemModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetMachineTranslationSettingsDto"]; + }; + }; + }; + setMachineTranslationSettings_1: { + parameters: { + path: { + promptId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** List all batch operations started by current user */ + myList: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelBatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns information about a namespace by its name */ + getByName: { + parameters: { + path: { + name: string; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["NamespaceModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getAllNamespaces_2: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelNamespaceModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_3: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["NamespaceModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateNamespaceDto"]; + }; + }; + }; + getPerLanguageAutoTranslationSettings: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelAutoTranslationConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setPerLanguageAutoTranslationSettings: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelAutoTranslationConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AutoTranslationSettingsDto"][]; + }; + }; + }; + getAllPaged: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelPromptModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + createPrompt: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PromptModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PromptDto"]; + }; + }; + }; + getDefaultPrompt: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PromptDto"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + variables: { + parameters: { + query: { + keyId?: number; + targetLanguageId?: number; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["VariablesResponseDto"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + run: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PromptResponseModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PromptRunDto"]; + }; + }; + }; + getPrompt: { + parameters: { + path: { + promptId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PromptModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + updatePrompt: { + parameters: { + path: { + promptId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PromptModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PromptDto"]; + }; + }; + }; + deletePrompt: { + parameters: { + path: { + promptId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Unlike the /v2/projects/{projectId}/import endpoint, imports the data in single request by provided files and parameters. This is useful for automated importing via API or CLI. */ + singleStepFromFiles: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ImportResult"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "multipart/form-data": { + files: string[]; + params: components["schemas"]["SingleStepImportRequest"]; + }; + }; + }; + }; + singleStepResolvableImport: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ImportResult"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SingleStepImportResolvableRequest"]; + }; + }; + }; + aiPlaygroundTranslate: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["MachineTranslationRequest"]; + }; + }; + }; + assignTranslationLabel: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LabelTranslationsRequest"]; + }; + }; + }; + /** Clear translation values for provided keys in selected languages. */ + clearTranslations: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ClearTranslationsRequest"]; + }; + }; + }; + /** Copy translation values from one language to other languages. */ + copyTranslations: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CopyTranslationRequest"]; + }; + }; + }; + deleteKeys: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DeleteKeysRequest"]; + }; + }; + }; + /** Translate provided keys to provided languages through primary MT provider. */ + machineTranslation: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["MachineTranslationRequest"]; + }; + }; + }; + /** Pre-translate provided keys to provided languages by TM. */ + translate: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PreTranslationByTmRequest"]; + }; + }; + }; + setKeysNamespace: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetKeysNamespaceRequest"]; + }; + }; + }; + setTranslationState_2: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetTranslationsStateStateRequest"]; + }; + }; + }; + tagKeys: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TagKeysRequest"]; + }; + }; + }; + unassignTranslationLabel: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LabelTranslationsRequest"]; + }; + }; + }; + untagKeys: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UntagKeysRequest"]; + }; + }; + }; + getProjectStats: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["ProjectStatsModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getProjectDailyActivity: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": { [key: string]: number }; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Suggests machine translations from enabled services */ + suggestMachineTranslations: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SuggestResultModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SuggestRequestDto"]; + }; + }; + }; + /** Suggests machine translations from enabled services. The results are streamed to the output in ndjson format. If an error occurs when for any service provider used, the error information is returned as a part of the result item, while the response has 200 status code. */ + suggestMachineTranslationsStreaming: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/x-ndjson": components["schemas"]["StreamingResponseBody"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SuggestRequestDto"]; + }; + }; + }; + /** Suggests machine translations from translation memory. The result is always sorted by similarity, so sorting is not supported. */ + suggestTranslationMemory: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelTranslationMemoryItemModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SuggestRequestDto"]; + }; + }; + }; + executeComplexTagOperation: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ComplexTagKeysRequest"]; + }; + }; + }; + getAll_14: { + parameters: { + query: { + search?: string; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelTagModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getTasks: { + parameters: { + query: { + /** Filter tasks by state */ + filterState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; + /** Filter tasks without state */ + filterNotState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; + /** Filter tasks by assignee */ + filterAssignee?: number[]; + /** Filter tasks by type */ + filterType?: ("TRANSLATE" | "REVIEW")[]; + /** Filter tasks by id */ + filterId?: number[]; + /** Filter tasks without id */ + filterNotId?: number[]; + /** Filter tasks by project */ + filterProject?: number[]; + /** Filter tasks without project */ + filterNotProject?: number[]; + /** Filter tasks by language */ + filterLanguage?: number[]; + /** Filter tasks by key */ + filterKey?: number[]; + /** Filter tasks by agency */ + filterAgency?: number[]; + /** Exclude tasks which were closed before specified timestamp */ + filterNotClosedBefore?: number; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelTaskModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + createTask: { + parameters: { + query: { + filterState?: ( + | "UNTRANSLATED" + | "TRANSLATED" + | "REVIEWED" + | "DISABLED" + )[]; + filterOutdated?: boolean; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateTaskRequest"]; + }; + }; + }; + calculateScope: { + parameters: { + query: { + filterState?: ( + | "UNTRANSLATED" + | "TRANSLATED" + | "REVIEWED" + | "DISABLED" + )[]; + filterOutdated?: boolean; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["KeysScopeView"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CalculateScopeRequest"]; + }; + }; + }; + createTasks: { + parameters: { + query: { + filterState?: ( + | "UNTRANSLATED" + | "TRANSLATED" + | "REVIEWED" + | "DISABLED" + )[]; + filterOutdated?: boolean; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateMultipleTasksRequest"]; + }; + }; + }; + getPossibleAssignees: { + parameters: { + query: { + /** Filter users by id */ + filterId?: number[]; + /** Filter only users that have at least following scopes */ + filterMinimalScope?: string; + /** Filter only users that can view language */ + filterViewLanguageId?: number; + /** Filter only users that can edit language */ + filterEditLanguageId?: number; + /** Filter only users that can edit state of language */ + filterStateLanguageId?: number; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelSimpleUserAccountModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getTask: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + updateTask: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateTaskRequest"]; + }; + }; + }; + /** If the tasks is blocked by other tasks, it returns numbers of these tasks. */ + getBlockingTasks: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": number[]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + cancelTask: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + closeTask: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + finishTask: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getTaskKeys: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskKeysResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + updateTaskKeys: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateTaskKeysRequest"]; + }; + }; + }; + /** Mark key as done, which updates task progress. */ + updateTaskKey: { + parameters: { + path: { + taskNumber: number; + keyId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["UpdateTaskKeyResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateTaskKeyRequest"]; + }; + }; + }; + /** Detailed statistics for every assignee */ + getPerUserReport: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskPerUserReportModel"][]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + reopenTask: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Detailed statistics about the task results */ + getXlsxReport: { + parameters: { + path: { + taskNumber: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": string; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns organizations to which project can be transferred */ + getTransferOptions: { + parameters: { + query: { + search?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelProjectTransferOptionModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Transfers project's ownership to organization */ + transferProjectToOrganization: { + parameters: { + path: { + projectId: number; + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getTranslations: { + parameters: { + query: { + /** Cursor to get next data */ + cursor?: string; /** - * Returns connection info - * @description Returns information about the connection between Slack account and Tolgee account which user is performing. The flow is the following. + * Translation state in the format: languageTag,state. You can use this parameter multiple times. * - * 1. User executes slash command in Slack and gets link with encrypted Slack user ID, workspace ID and the Channel ID (to send success response to) + * When used with multiple states for same language it is applied with logical OR. * - * 2. User gets opens the link and the Tolgee Platform frontend and it uses this endpoint to get the data info about the future connection - */ - get: operations["getInfo_3"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/slug/generate-organization": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Generate organization slug */ - post: operations["generateOrganizationSlug"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/slug/generate-project": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** Generate project slug */ - post: operations["generateProjectSlug"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/slug/validate-organization/{slug}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Validate organization slug */ - get: operations["validateOrganizationSlug"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/slug/validate-project/{slug}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Validate project slug */ - get: operations["validateProjectSlug"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get user info - * @description Returns information about currently authenticated user. + * When used with multiple languages, it is applied with logical AND. */ - get: operations["getInfo_2"]; + filterState?: string[]; /** - * Update user - * @description Updates current user's profile information. - */ - put: operations["updateUser"]; - /** - * Updates current user's data. - * @deprecated - */ - post: operations["updateUserOld"]; - /** Delete user */ - delete: operations["delete"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user-preferences": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get user's preferences */ - get: operations["get"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user-preferences/set-language/{languageTag}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Set user's UI language */ - put: operations["setLanguage"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user-preferences/set-preferred-organization/{organizationId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Set user preferred organization */ - put: operations["setPreferredOrganization"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user-tasks": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** Get user tasks */ - get: operations["getTasks"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/avatar": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - /** Upload avatar */ - put: operations["uploadAvatar"]; - post?: never; - /** Delete avatar */ - delete: operations["removeAvatar"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/generate-super-token": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - /** - * Get super JWT - * @description Generates new JWT token permitted to sensitive operations - */ - post: operations["getSuperToken"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/managed-by": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * Get organization which manages user - * @description Returns the organization that manages a given user or null + * Languages to be contained in response. + * + * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) */ - get: operations["getManagedBy"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/mfa/recovery": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + languages?: string[]; + /** String to search in key name or translation text */ + search?: string; + /** Selects key with provided names. Use this param multiple times to fetch more keys. */ + filterKeyName?: string[]; + /** Selects key with provided ID. Use this param multiple times to fetch more keys. */ + filterKeyId?: number[]; + /** Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ + filterUntranslatedAny?: boolean; + /** Selects only keys, where translation is provided in any language */ + filterTranslatedAny?: boolean; + /** Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. */ + filterUntranslatedInLang?: string; + /** Selects only keys, where translation is provided in specified language */ + filterTranslatedInLang?: string; + /** Selects only keys, where translation was auto translated for specified languages. */ + filterAutoTranslatedInLang?: string[]; + /** Selects only keys with screenshots */ + filterHasScreenshot?: boolean; + /** Selects only keys without screenshots */ + filterHasNoScreenshot?: boolean; /** - * Regenerate Codes - * @description Regenerates multi-factor authentication recovery codes + * Selects only keys with provided namespaces. + * + * To filter default namespace, set to empty string. */ - put: operations["regenerateRecoveryCodes"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/mfa/totp": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + filterNamespace?: string[]; /** - * Enable TOTP - * @description Enables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. + * Selects only keys without provided namespaces. + * + * To filter default namespace, set to empty string. */ - put: operations["enableMfa"]; - post?: never; + filterNoNamespace?: string[]; + /** Selects only keys with provided tag */ + filterTag?: string[]; + /** Selects only keys without provided tag */ + filterNoTag?: string[]; + /** Selects only keys, where translation in provided langs is in outdated state */ + filterOutdatedLanguage?: string[]; + /** Selects only keys, where translation in provided langs is not in outdated state */ + filterNotOutdatedLanguage?: string[]; + /** Selects only key affected by activity with specidfied revision ID */ + filterRevisionId?: number[]; + /** Select only keys which were not successfully translated by batch job with provided id */ + filterFailedKeysOfJob?: number; + /** Select only keys which are in specified task */ + filterTaskNumber?: number[]; + /** Filter task keys which are `not done` */ + filterTaskKeysNotDone?: boolean; + /** Filter task keys which are `done` */ + filterTaskKeysDone?: boolean; + /** Filter keys with unresolved comments in lang */ + filterHasUnresolvedCommentsInLang?: string[]; + /** Filter keys with any comments in lang */ + filterHasCommentsInLang?: string[]; + /** Filter key translations with labels */ + filterLabel?: string[]; + /** Filter keys with any suggestions in lang */ + filterHasSuggestionsInLang?: string[]; + /** Filter keys with no suggestions in lang */ + filterHasNoSuggestionsInLang?: string[]; + /** Selects only keys from specified branch */ + branch?: string; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["KeysWithTranslationsPageModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sets translations for existing key */ + setTranslations: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SetTranslationsResponseModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetTranslationsWithKeyDto"]; + }; + }; + }; + /** Sets translations for existing key or creates new key and sets the translations to it. */ + createOrUpdateTranslations: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SetTranslationsResponseModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetTranslationsWithKeyDto"]; + }; + }; + }; + /** Creates a translation comment. Empty translation is stored, when not exists. */ + create_3: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** Created */ + 201: { + content: { + "*/*": components["schemas"]["TranslationWithCommentModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TranslationCommentWithLangKeyDto"]; + }; + }; + }; + assignLabel_2: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LabelModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TranslationLabelRequest"]; + }; + }; + }; + /** Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. */ + selectKeys: { + parameters: { + query: { /** - * Disable TOTP - * @description Disables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. + * Translation state in the format: languageTag,state. You can use this parameter multiple times. + * + * When used with multiple states for same language it is applied with logical OR. + * + * When used with multiple languages, it is applied with logical AND. */ - delete: operations["disableMfa"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/password": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; + filterState?: string[]; /** - * Update password - * @description Updates current user's password. Invalidates all previous sessions upon success. + * Languages to be contained in response. + * + * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) */ - put: operations["updateUserPassword"]; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/send-email-verification": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; + languages?: string[]; + /** String to search in key name or translation text */ + search?: string; + /** Selects key with provided names. Use this param multiple times to fetch more keys. */ + filterKeyName?: string[]; + /** Selects key with provided ID. Use this param multiple times to fetch more keys. */ + filterKeyId?: number[]; + /** Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ + filterUntranslatedAny?: boolean; + /** Selects only keys, where translation is provided in any language */ + filterTranslatedAny?: boolean; + /** Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. */ + filterUntranslatedInLang?: string; + /** Selects only keys, where translation is provided in specified language */ + filterTranslatedInLang?: string; + /** Selects only keys, where translation was auto translated for specified languages. */ + filterAutoTranslatedInLang?: string[]; + /** Selects only keys with screenshots */ + filterHasScreenshot?: boolean; + /** Selects only keys without screenshots */ + filterHasNoScreenshot?: boolean; /** - * Resend email verification - * @description Resends email verification email to currently authenticated user. + * Selects only keys with provided namespaces. + * + * To filter default namespace, set to empty string. */ - post: operations["sendEmailVerification"]; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/single-owned-organizations": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; + filterNamespace?: string[]; /** - * Get all single owned organizations - * @description Returns all organizations owned only by current user + * Selects only keys without provided namespaces. + * + * To filter default namespace, set to empty string. */ - get: operations["getAllSingleOwnedOrganizations"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/v2/user/sso": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; + filterNoNamespace?: string[]; + /** Selects only keys with provided tag */ + filterTag?: string[]; + /** Selects only keys without provided tag */ + filterNoTag?: string[]; + /** Selects only keys, where translation in provided langs is in outdated state */ + filterOutdatedLanguage?: string[]; + /** Selects only keys, where translation in provided langs is not in outdated state */ + filterNotOutdatedLanguage?: string[]; + /** Selects only key affected by activity with specidfied revision ID */ + filterRevisionId?: number[]; + /** Select only keys which were not successfully translated by batch job with provided id */ + filterFailedKeysOfJob?: number; + /** Select only keys which are in specified task */ + filterTaskNumber?: number[]; + /** Filter task keys which are `not done` */ + filterTaskKeysNotDone?: boolean; + /** Filter task keys which are `done` */ + filterTaskKeysDone?: boolean; + /** Filter keys with unresolved comments in lang */ + filterHasUnresolvedCommentsInLang?: string[]; + /** Filter keys with any comments in lang */ + filterHasCommentsInLang?: string[]; + /** Filter key translations with labels */ + filterLabel?: string[]; + /** Filter keys with any suggestions in lang */ + filterHasSuggestionsInLang?: string[]; + /** Filter keys with no suggestions in lang */ + filterHasNoSuggestionsInLang?: string[]; + /** Selects only keys from specified branch */ + branch?: string; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SelectAllResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all translations for specified languages */ + getAllTranslations: { + parameters: { + path: { + /** Comma-separated language tags to return translations in. Languages you are not permitted to see will be silently dropped and not returned. */ + languages: string[]; + projectId: number; + }; + query: { + /** Namespace to return */ + ns?: string; /** - * Get information about SSO configuration - * @description Returns information about sso configuration affecting the user. - */ - get: operations["getSso"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; -} -export type webhooks = Record; -export interface components { - schemas: { - AcceptAuthProviderChangeRequest: { - id: string; - }; - AiPlaygroundResultModel: { - contextDescription?: string; - /** Format: int64 */ - keyId: number; - /** Format: int64 */ - languageId: number; - translation?: string; - }; - AiPlaygroundResultRequest: { - keys: number[]; - languages: number[]; - }; - AnnouncementDto: { - /** @enum {string} */ - type: "FEATURE_BATCH_OPERATIONS" | "FEATURE_MT_FORMALITY" | "FEATURE_CONTENT_DELIVERY_AND_WEBHOOKS" | "NEW_PRICING" | "FEATURE_AI_CUSTOMIZATION" | "FEATURE_VISUAL_EDITOR" | "FEATURE_CLI_2" | "FEATURE_TASKS" | "FEATURE_LLM_PROVIDERS_AND_PLAYGROUND" | "FEATURE_GLOSSARIES_AND_PLAYGROUND" | "FEATURE_LABELS"; - }; - ApiKeyModel: { - /** @description Description */ - description: string; - /** - * Format: int64 - * @description Timestamp of API key expiraion - */ - expiresAt?: number; - /** - * Format: int64 - * @description ID of the API key - */ - id: number; - /** - * Format: int64 - * @description Timestamp of API key last usage - */ - lastUsedAt?: number; - /** - * Format: int64 - * @description Api key's project ID - */ - projectId: number; - /** @description Api key's project name */ - projectName: string; - /** - * @description Api key's permission scopes - * @example [ - * "screenshots.upload", - * "screenshots.delete", - * "translations.edit", - * "screenshots.view", - * "translations.view", - * "keys.edit" - * ] - */ - scopes: string[]; - /** @description Full name of user owner */ - userFullName?: string; - /** @description Username of user owner */ - username?: string; - }; - ApiKeyPermissionsModel: { - project: components["schemas"]["SimpleProjectModel"]; - /** - * Format: int64 - * @description The API key's project id or the one provided as query param - */ - projectId: number; - /** - * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. - * @example [ - * "KEYS_EDIT", - * "TRANSLATIONS_VIEW" - * ] - */ - scopes: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign")[]; - /** - * @description List of languages user can change state to. If null, changing state of all language values is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - stateChangeLanguageIds?: number[]; - /** - * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - suggestLanguageIds?: number[]; - /** - * @description List of languages user can translate to. If null, all languages editing is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - translateLanguageIds?: number[]; - /** - * @description The user's permission type. This field is null if user has assigned granular permissions or if returning API key's permissions - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** - * @description List of languages user can view. If null, all languages view is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - viewLanguageIds?: number[]; - }; - ApiKeyWithLanguagesModel: { - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** Format: int64 */ - lastUsedAt?: number; - /** - * @deprecated - * @description Languages for which user has translate permission. - */ - permittedLanguageIds?: number[]; - /** Format: int64 */ - projectId: number; - projectName: string; - scopes: string[]; - userFullName?: string; - username?: string; - }; - AuthMethodsDTO: { - github: components["schemas"]["OAuthPublicConfigDTO"]; - google: components["schemas"]["OAuthPublicConfigDTO"]; - oauth2: components["schemas"]["OAuthPublicExtendsConfigDTO"]; - ssoGlobal: components["schemas"]["SsoGlobalPublicConfigDTO"]; - ssoOrganizations: components["schemas"]["SsoOrganizationsPublicConfigDTO"]; - }; - AuthProviderDto: { - /** @enum {string} */ - authType?: "GOOGLE" | "GITHUB" | "OAUTH2" | "SSO" | "SSO_GLOBAL"; - id?: string; - ssoDomain?: string; - }; - AutoTranslationConfigModel: { - /** @description If true, import will trigger batch operation to translate the new new keys. - * It includes also the data imported via CLI, Figma, or other integrations using batch key import. */ - enableForImport: boolean; - /** Format: int64 */ - languageId?: number; - /** @description If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first. */ - usingMachineTranslation: boolean; - /** @description If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found */ - usingTranslationMemory: boolean; - }; - AutoTranslationSettingsDto: { - /** @description If true, import will trigger batch operation to translate the new new keys. - * It includes also the data imported via CLI, Figma, or other integrations using batch key import. */ - enableForImport: boolean; - /** Format: int64 */ - languageId?: number; - /** @description If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first. */ - usingMachineTranslation: boolean; - /** @description If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found */ - usingTranslationMemory: boolean; - }; - /** @example Links to avatar images */ - Avatar: { - large: string; - thumbnail: string; - }; - AverageProportionalUsageItemModel: { - total: number; - unusedQuantity: number; - usedQuantity: number; - usedQuantityOverPlan: number; - }; - AzureContentStorageConfigDto: { - connectionString?: string; - containerName: string; - }; - AzureContentStorageConfigModel: { - containerName?: string; - }; - BatchJobModel: { - /** - * Format: int64 - * @description The activity revision id, that stores the activity details of the job - */ - activityRevisionId?: number; - author?: components["schemas"]["SimpleUserAccountModel"]; - /** - * Format: int64 - * @description The time when the job created - */ - createdAt: number; - /** @description If the job failed, this is the error message */ - errorMessage?: string; - /** - * Format: int64 - * @description Batch job id - */ - id: number; - /** - * Format: int32 - * @description Total items, that have been processed so far - */ - progress: number; - /** - * @description Status of the batch job - * @enum {string} - */ - status: "PENDING" | "RUNNING" | "SUCCESS" | "FAILED" | "CANCELLED" | "DEBOUNCED"; - /** - * Format: int32 - * @description Total items - */ - totalItems: number; - /** - * @description Type of the batch job - * @enum {string} - */ - type: "AI_PLAYGROUND_TRANSLATE" | "PRE_TRANSLATE_BT_TM" | "MACHINE_TRANSLATE" | "AUTO_TRANSLATE" | "DELETE_KEYS" | "SET_TRANSLATIONS_STATE" | "CLEAR_TRANSLATIONS" | "COPY_TRANSLATIONS" | "TAG_KEYS" | "UNTAG_KEYS" | "SET_KEYS_NAMESPACE" | "AUTOMATION" | "BILLING_TRIAL_EXPIRATION_NOTICE" | "ASSIGN_TRANSLATION_LABEL" | "UNASSIGN_TRANSLATION_LABEL"; - /** - * Format: int64 - * @description The time when the job was last updated (status change) - */ - updatedAt: number; - }; - BigMetaDto: { - /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ - relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; - }; - BusinessEventReportRequest: { - anonymousUserId?: string; - data?: { - [key: string]: Record; - }; - eventName: string; - /** Format: int64 */ - organizationId?: number; - /** Format: int64 */ - projectId?: number; - }; - CalculateScopeRequest: { - keys: number[]; - /** Format: int64 */ - languageId: number; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - }; - ClearTranslationsRequest: { - keyIds: number[]; - languageIds: number[]; - }; - CollectionModelAiPlaygroundResultModel: { - _embedded?: { - results?: components["schemas"]["AiPlaygroundResultModel"][]; - }; - }; - CollectionModelAutoTranslationConfigModel: { - _embedded?: { - configs?: components["schemas"]["AutoTranslationConfigModel"][]; - }; - }; - CollectionModelBatchJobModel: { - _embedded?: { - batchJobs?: components["schemas"]["BatchJobModel"][]; - }; - }; - CollectionModelExportFormatModel: { - _embedded?: { - exportFormats?: components["schemas"]["ExportFormatModel"][]; - }; - }; - CollectionModelGlossaryLanguageDto: { - _embedded?: { - glossaryLanguageDtoList?: components["schemas"]["GlossaryLanguageDto"][]; - }; - }; - CollectionModelGlossaryTermHighlightModel: { - _embedded?: { - glossaryHighlights?: components["schemas"]["GlossaryTermHighlightModel"][]; - }; - }; - CollectionModelImportNamespaceModel: { - _embedded?: { - namespaces?: components["schemas"]["ImportNamespaceModel"][]; - }; - }; - CollectionModelKeyDisabledLanguagesModel: { - _embedded?: { - keys?: components["schemas"]["KeyDisabledLanguagesModel"][]; - }; - }; - CollectionModelKeyModel: { - _embedded?: { - keys?: components["schemas"]["KeyModel"][]; - }; - }; - CollectionModelKeyWithBaseTranslationModel: { - _embedded?: { - keys?: components["schemas"]["KeyWithBaseTranslationModel"][]; - }; - }; - CollectionModelKeyWithDataModel: { - _embedded?: { - keys?: components["schemas"]["KeyWithDataModel"][]; - }; - }; - CollectionModelLanguageAiPromptCustomizationModel: { - _embedded?: { - promptCustomizations?: components["schemas"]["LanguageAiPromptCustomizationModel"][]; - }; - }; - CollectionModelLanguageConfigItemModel: { - _embedded?: { - languageConfigs?: components["schemas"]["LanguageConfigItemModel"][]; - }; - }; - CollectionModelLanguageInfoModel: { - _embedded?: { - languageInfos?: components["schemas"]["LanguageInfoModel"][]; - }; - }; - CollectionModelLanguageModel: { - _embedded?: { - languages?: components["schemas"]["LanguageModel"][]; - }; - }; - CollectionModelLlmProviderModel: { - _embedded?: { - providers?: components["schemas"]["LlmProviderModel"][]; - }; - }; - CollectionModelLlmProviderSimpleModel: { - _embedded?: { - providers?: components["schemas"]["LlmProviderSimpleModel"][]; - }; - }; - CollectionModelLong: { - _embedded?: { - longList?: number[]; - }; - }; - CollectionModelOrganizationInvitationModel: { - _embedded?: { - organizationInvitations?: components["schemas"]["OrganizationInvitationModel"][]; - }; - }; - CollectionModelProjectInvitationModel: { - _embedded?: { - invitations?: components["schemas"]["ProjectInvitationModel"][]; - }; - }; - CollectionModelProjectTransferOptionModel: { - _embedded?: { - transferOptions?: components["schemas"]["ProjectTransferOptionModel"][]; - }; - }; - CollectionModelScreenshotModel: { - _embedded?: { - screenshots?: components["schemas"]["ScreenshotModel"][]; - }; - }; - CollectionModelSimpleOrganizationModel: { - _embedded?: { - organizations?: components["schemas"]["SimpleOrganizationModel"][]; - }; - }; - CollectionModelSimpleProjectModel: { - _embedded?: { - projects?: components["schemas"]["SimpleProjectModel"][]; - }; - }; - CollectionModelUsedNamespaceModel: { - _embedded?: { - namespaces?: components["schemas"]["UsedNamespaceModel"][]; - }; - }; - CollectionModelWorkspaceModel: { - _embedded?: { - workspaces?: components["schemas"]["WorkspaceModel"][]; - }; - }; - ComplexEditKeyDto: { - /** @description Custom values of the key. If not provided, custom values won't be modified */ - custom?: { - [key: string]: Record; - }; - /** @description Description of the key. It's also used as a context for Tolgee AI translator */ - description?: string; - /** @description If key is pluralized. If it will be reflected in the editor. If null, value won't be modified. */ - isPlural?: boolean; - /** @description Name of the key */ - name: string; - namespace?: string; - /** @description The argument name for the plural. If null, value won't be modified. If isPlural is false, this value will be ignored. */ - pluralArgName?: string; - /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ - relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; - /** @description IDs of screenshots to delete */ - screenshotIdsToDelete?: number[]; - /** @description Ids of screenshots uploaded with /v2/image-upload endpoint */ - screenshotUploadedImageIds?: number[]; - screenshotsToAdd?: components["schemas"]["KeyScreenshotDto"][]; - /** @description Translation states to update, if not provided states won't be modified */ - states?: { - [key: string]: "TRANSLATED" | "REVIEWED"; - }; - /** @description Tags of the key. If not provided tags won't be modified */ - tags?: string[]; - /** @description Translations to update */ - translations?: { - [key: string]: string; - }; - /** @description If true, it will fail with 400 (with code plural_forms_data_loss) if plural is disabled and there are plural forms, which would be lost by the action. You can get rid of this warning by setting this value to false. */ - warnOnDataLoss?: boolean; - }; - ComplexTagKeysRequest: { - /** @description Include keys filtered by the provided key information */ - filterKeys?: components["schemas"]["KeyId"][]; - /** @description Exclude keys filtered by the provided key information */ - filterKeysNot?: components["schemas"]["KeyId"][]; - /** @description Include keys filtered by the provided tag information. This filter supports wildcards. For example, `draft-*` will match all tags starting with `draft-`. */ - filterTag?: string[]; - /** @description Exclude keys filtered by the provided tag information. This filter supports wildcards. For example, `draft-*` will match all tags starting with `draft-`. */ - filterTagNot?: string[]; - /** @description Specified tags will be added to filtered keys */ - tagFiltered?: string[]; - /** @description Specified tags will be added to keys not filtered by any of the specified filters. */ - tagOther?: string[]; - /** @description Specified tags will be removed from filtered keys. It supports wildcards. For example, `draft-*` will remove all tags starting with `draft-`. */ - untagFiltered?: string[]; - /** @description Specified tags will be removed from keys not filtered by any of the specified filters. It supports wildcards. For example, `draft-*` will remove all tags starting with `draft-`. */ - untagOther?: string[]; - }; - ComputedPermissionModel: { - /** @enum {string} */ - origin: "ORGANIZATION_BASE" | "DIRECT" | "ORGANIZATION_OWNER" | "NONE" | "SERVER_ADMIN"; - permissionModel?: components["schemas"]["PermissionModel"]; - /** - * @deprecated - * @description Deprecated (use translateLanguageIds). - * - * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - permittedLanguageIds?: number[]; - /** - * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. - * @example [ - * "KEYS_EDIT", - * "TRANSLATIONS_VIEW" - * ] - */ - scopes: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign")[]; - /** - * @description List of languages user can change state to. If null, changing state of all language values is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - stateChangeLanguageIds?: number[]; - /** - * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - suggestLanguageIds?: number[]; - /** - * @description List of languages user can translate to. If null, all languages editing is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - translateLanguageIds?: number[]; - /** - * @description The user's permission type. This field is null if uses granular permissions - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** - * @description List of languages user can view. If null, all languages view is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - viewLanguageIds?: number[]; - }; - ConnectToSlackDto: { - code: string; - }; - ConnectToSlackUrlModel: { - url: string; - }; - ContentDeliveryConfigModel: { - autoPublish: boolean; - /** @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). - * - * e.g. Key hello will be exported as <b>hello</b> */ - escapeHtml: boolean; - /** @description This is a template that defines the structure of the resulting .zip file content. - * - * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, - * {androidLanguageTag}, {snakeLanguageTag}, {extension}. - * - * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, - * the English translations of the `home` namespace will be stored in `home/en.json`. - * - * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). - * - * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` - * but in Android format. (e.g., en-rUS) - * */ - fileStructureTemplate?: string; - /** @description Filter key IDs to be contained in export */ - filterKeyId?: number[]; - /** @description Filter key IDs not to be contained in export */ - filterKeyIdNot?: number[]; - /** @description Filter keys with prefix */ - filterKeyPrefix?: string; - /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ - filterNamespace?: string[]; - /** @description Filter translations with state. By default, all states except untranslated is exported. */ - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - /** @description Filter keys tagged by. - * - * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ - filterTag?: string; - /** @description Filter keys tagged by one of provided tags */ - filterTagIn?: string[]; - /** @description Filter keys not tagged by one of provided tags */ - filterTagNotIn?: string[]; - /** - * @description Format to export to - * @enum {string} - */ - format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS"; - /** Format: int64 */ - id: number; - /** - * @description Languages to be contained in export. - * - * If null, all languages are exported - * @example en - */ - languages?: string[]; - /** Format: int64 */ - lastPublished?: number; - lastPublishedFiles: string[]; - /** - * @description Message format to be used for export. - * - * e.g. PHP_PO: Hello %s, ICU: Hello {name}. - * - * This property is honored only for generic formats like JSON or YAML. - * For specific formats like `YAML_RUBY` it's ignored. - * @enum {string} - */ - messageFormat?: "C_SPRINTF" | "PHP_SPRINTF" | "JAVA_STRING_FORMAT" | "APPLE_SPRINTF" | "RUBY_SPRINTF" | "I18NEXT" | "ICU" | "PYTHON_PERCENT"; - name: string; - pruneBeforePublish: boolean; - publicUrl?: string; - slug: string; - storage?: components["schemas"]["ContentStorageModel"]; - /** @description Delimiter to structure file content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. - * - * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), - * specific formats like `YAML_RUBY` don't honor this parameter. */ - structureDelimiter?: string; - /** @description If true, for structured formats (like JSON) arrays are supported. - * - * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ - supportArrays: boolean; - }; - ContentDeliveryConfigRequest: { - /** @description If true, data are published to the content delivery automatically after each change. */ - autoPublish: boolean; - /** - * Format: int64 - * @description Id of custom storage to use for content delivery. If null, default server storage is used. Tolgee Cloud provides default Content Storage. - */ - contentStorageId?: number; - /** @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). - * - * e.g. Key hello will be exported as <b>hello</b> */ - escapeHtml: boolean; - /** @description This is a template that defines the structure of the resulting .zip file content. - * - * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, - * {androidLanguageTag}, {snakeLanguageTag}, {extension}. - * - * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, - * the English translations of the `home` namespace will be stored in `home/en.json`. - * - * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). - * - * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` - * but in Android format. (e.g., en-rUS) - * */ - fileStructureTemplate?: string; - /** @description Filter key IDs to be contained in export */ - filterKeyId?: number[]; - /** @description Filter key IDs not to be contained in export */ - filterKeyIdNot?: number[]; - /** @description Filter keys with prefix */ - filterKeyPrefix?: string; - /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ - filterNamespace?: string[]; - /** @description Filter translations with state. By default, all states except untranslated is exported. */ - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - /** @description Filter keys tagged by. - * - * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ - filterTag?: string; - /** @description Filter keys tagged by one of provided tags */ - filterTagIn?: string[]; - /** @description Filter keys not tagged by one of provided tags */ - filterTagNotIn?: string[]; - /** - * @description Format to export to - * @enum {string} - */ - format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS"; - /** - * @description Languages to be contained in export. - * - * If null, all languages are exported - * @example en - */ - languages?: string[]; - /** - * @description Message format to be used for export. - * - * e.g. PHP_PO: Hello %s, ICU: Hello {name}. - * - * This property is honored only for generic formats like JSON or YAML. - * For specific formats like `YAML_RUBY` it's ignored. - * @enum {string} - */ - messageFormat?: "C_SPRINTF" | "PHP_SPRINTF" | "JAVA_STRING_FORMAT" | "APPLE_SPRINTF" | "RUBY_SPRINTF" | "I18NEXT" | "ICU" | "PYTHON_PERCENT"; - name: string; - /** @description Whether the data in the CDN should be pruned before publishing new data. - * - * In some cases, you might want to keep the data in the storage and only replace the files created by following publish operation. */ - pruneBeforePublish: boolean; - /** @description Tolgee uses a custom slug as a directory name for content storage and public content delivery URL. It is only applicable for custom storage. This field needs to be kept null for Tolgee Cloud content storage or global server storage on self-hosted instances. - * - * Slag has to match following regular expression: `^[a-z0-9]+(?:-[a-z0-9]+)*$`. - * - * If null is provided for update operation, slug will be assigned with generated value. */ - slug?: string; - /** @description Delimiter to structure file content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. - * - * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), - * specific formats like `YAML_RUBY` don't honor this parameter. */ - structureDelimiter?: string; - /** @description If true, for structured formats (like JSON) arrays are supported. - * - * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ - supportArrays: boolean; - }; - ContentStorageModel: { - azureContentStorageConfig?: components["schemas"]["AzureContentStorageConfigModel"]; - /** Format: int64 */ - id: number; - name: string; - publicUrlPrefix?: string; - s3ContentStorageConfig?: components["schemas"]["S3ContentStorageConfigModel"]; - }; - ContentStorageRequest: { - azureContentStorageConfig?: components["schemas"]["AzureContentStorageConfigDto"]; - name: string; - publicUrlPrefix?: string; - s3ContentStorageConfig?: components["schemas"]["S3ContentStorageConfigDto"]; - }; - CopyTranslationRequest: { - keyIds: number[]; - /** Format: int64 */ - sourceLanguageId: number; - targetLanguageIds: number[]; - }; - CreateApiKeyDto: { - /** @description Description of the project API key */ - description?: string; - /** - * Format: int64 - * @description Expiration date in epoch format (milliseconds). When null key never expires. - * @example 1661172869000 - */ - expiresAt?: number; - /** Format: int64 */ - projectId: number; - scopes: string[]; - }; - CreateGlossaryRequest: { - /** @description IDs of projects to be assigned to glossary */ - assignedProjectIds: number[]; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - baseLanguageTag: string; - /** - * @description Glossary name - * @example My glossary - */ - name: string; - }; - CreateGlossaryTermWithTranslationRequest: { - /** - * @description A detailed explanation or definition of the glossary term - * @example It's trademark - */ - description: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm: boolean; - /** @description When true, this term will have the same translation across all target languages */ - flagNonTranslatable: boolean; - text: string; - }; - CreateKeyDto: { - /** - * @description Description of the key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - /** @description If key is pluralized. If it will be reflected in the editor */ - isPlural: boolean; - /** @description Name of the key */ - name: string; - namespace?: string; - /** @description The argument name for the plural. If null, value will be guessed from the values provided in translations. */ - pluralArgName?: string; - /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ - relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; - /** @description Ids of screenshots uploaded with /v2/image-upload endpoint */ - screenshotUploadedImageIds?: number[]; - screenshots?: components["schemas"]["KeyScreenshotDto"][]; - /** @description Translation states to update, if not provided states won't be modified */ - states?: { - [key: string]: "TRANSLATED" | "REVIEWED"; - }; - tags?: string[]; - translations?: { - [key: string]: string; - }; - }; - CreateMultipleTasksRequest: { - tasks: components["schemas"]["CreateTaskRequest"][]; - }; - CreatePatDto: { - /** @description Description of the PAT */ - description: string; - /** - * Format: int64 - * @description Expiration date in epoch format (milliseconds). When null, token never expires. - * @example 1661172869000 - */ - expiresAt?: number; - }; - CreateProjectRequest: { - /** @description Tag of one of created languages, to select it as base language. If not provided, first language will be selected as base. */ - baseLanguageTag?: string; - /** @description Whether to use ICU placeholder visualization in the editor and it's support. */ - icuPlaceholders: boolean; - languages: components["schemas"]["LanguageRequest"][]; - name: string; - /** - * Format: int64 - * @description Organization to create the project in - */ - organizationId: number; - /** @description Slug of your project used in url e.g. "/v2/projects/what-a-project". If not provided, it will be generated */ - slug?: string; - }; - CreateProviderRequest: { - authorizationUri: string; - clientId: string; - clientSecret: string; - domain: string; - enabled: boolean; - force: boolean; - tokenUri: string; - }; - CreateTaskRequest: { - assignees: number[]; - description: string; - /** - * Format: int64 - * @description Due to date in epoch format (milliseconds). - * @example 1661172869000 - */ - dueDate?: number; - keys: number[]; - /** - * Format: int64 - * @description Id of language, this task is attached to. - * @example 1 - */ - languageId: number; - name?: string; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - }; - CreateTranslationSuggestionRequest: { - translation: string; - }; - CreateUpdateGlossaryTermResponse: { - term: components["schemas"]["SimpleGlossaryTermModel"]; - translation?: components["schemas"]["GlossaryTermTranslationModel"]; - }; - CreditBalanceModel: { - /** Format: int64 */ - bucketSize: number; - /** Format: int64 */ - creditBalance: number; - /** - * Format: int64 - * @deprecated - * @description Customers were able to buy extra credits separately in the past. - * - * This option is not available anymore and this field is kept only for backward compatibility purposes and is always 0. - */ - extraCreditBalance: number; - }; - /** @description For MT credits, the values are in full credits. Not Cents. */ - CurrentUsageItemModel: { - /** Format: int64 */ - current: number; - /** Format: int64 */ - included: number; - /** Format: int64 */ - limit: number; - }; - CurrentUsageModel: { - credits: components["schemas"]["CurrentUsageItemModel"]; - isPayAsYouGo: boolean; - keys: components["schemas"]["CurrentUsageItemModel"]; - seats: components["schemas"]["CurrentUsageItemModel"]; - strings: components["schemas"]["CurrentUsageItemModel"]; - }; - DeleteKeysDto: { - /** @description IDs of keys to delete */ - ids: number[]; - }; - DeleteKeysRequest: { - keyIds: number[]; - }; - DeleteMultipleGlossaryTermsRequest: { - termIds: number[]; - }; - DocItem: { - description?: string; - displayName?: string; - name: string; - }; - DomainRequest: { - domain: string; - state: string; - }; - EditKeyDto: { - /** - * @description Description of the key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - name: string; - namespace?: string; - }; - EditProjectRequest: { - /** Format: int64 */ - baseLanguageId?: number; - /** Format: int64 */ - defaultNamespaceId?: number; - description?: string; - /** @description Whether to use ICU placeholder visualization in the editor and it's support. */ - icuPlaceholders: boolean; - name: string; - slug?: string; - /** - * @description Suggestions can be disabled (hidden from UI) or optional (visible in the UI) or enforced (force user to use them instead of editing reviewed translations) - * @enum {string} - */ - suggestionsMode: "DISABLED" | "ENABLED"; - /** - * @description Protects reviewed translations, so translators can't change them by default and others will receive warning. - * @enum {string} - */ - translationProtection: "NONE" | "PROTECT_REVIEWED"; - useNamespaces: boolean; - }; - EeSubscriptionModel: { - cancelAtPeriodEnd: boolean; - /** Format: int64 */ - currentPeriodEnd?: number; - /** Format: int64 */ - currentUserCount: number; - enabledFeatures: ("GRANULAR_PERMISSIONS" | "PRIORITIZED_FEATURE_REQUESTS" | "PREMIUM_SUPPORT" | "DEDICATED_SLACK_CHANNEL" | "ASSISTED_UPDATES" | "DEPLOYMENT_ASSISTANCE" | "BACKUP_CONFIGURATION" | "TEAM_TRAINING" | "ACCOUNT_MANAGER" | "STANDARD_SUPPORT" | "PROJECT_LEVEL_CONTENT_STORAGES" | "WEBHOOKS" | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" | "AI_PROMPT_CUSTOMIZATION" | "SLACK_INTEGRATION" | "TASKS" | "SSO" | "ORDER_TRANSLATION" | "GLOSSARY" | "TRANSLATION_LABELS")[]; - isPayAsYouGo: boolean; - /** Format: date-time */ - lastValidCheck?: string; - licenseKey: string; - name: string; - nonCommerical: boolean; - /** @enum {string} */ - status: "ACTIVE" | "CANCELED" | "PAST_DUE" | "UNPAID" | "ERROR" | "TRIALING" | "KEY_USED_BY_ANOTHER_INSTANCE" | "UNKNOWN"; - }; - EntityDescriptionWithRelations: { - data: { - [key: string]: Record; - }; - entityClass: string; - /** Format: int64 */ - entityId: number; - }; - ErrorResponseBody: { - code: string; - params?: Record[]; - }; - ErrorResponseTyped: { - /** @enum {string} */ - code: "unauthenticated" | "api_access_forbidden" | "api_key_not_found" | "invalid_api_key" | "invalid_project_api_key" | "project_api_key_expired" | "bad_credentials" | "mfa_enabled" | "invalid_otp_code" | "mfa_not_enabled" | "can_not_revoke_own_permissions" | "data_corrupted" | "invitation_code_does_not_exist_or_expired" | "language_tag_exists" | "language_name_exists" | "language_not_found" | "operation_not_permitted" | "registrations_not_allowed" | "project_not_found" | "resource_not_found" | "scope_not_found" | "key_exists" | "third_party_auth_error_message" | "third_party_auth_no_email" | "third_party_auth_non_matching_email" | "third_party_auth_no_sub" | "third_party_auth_unknown_error" | "email_already_verified" | "third_party_unauthorized" | "third_party_google_workspace_mismatch" | "third_party_switch_initiated" | "third_party_switch_conflict" | "username_already_exists" | "username_or_password_invalid" | "user_already_has_permissions" | "user_already_has_role" | "user_not_found" | "file_not_image" | "file_too_big" | "invalid_timestamp" | "email_not_verified" | "missing_callback_url" | "invalid_jwt_token" | "expired_jwt_token" | "general_jwt_error" | "cannot_find_suitable_address_part" | "slug_not_unique" | "user_is_not_member_of_organization" | "organization_has_no_other_owner" | "user_has_no_project_access" | "user_is_organization_owner" | "cannot_set_your_own_permissions" | "user_is_organization_member" | "property_not_mutable" | "import_language_not_from_project" | "existing_language_not_selected" | "conflict_is_not_resolved" | "language_already_selected" | "cannot_parse_file" | "could_not_resolve_property" | "cannot_add_more_then_100_languages" | "no_languages_provided" | "language_with_base_language_tag_not_found" | "language_not_from_project" | "namespace_not_from_project" | "cannot_delete_base_language" | "key_not_from_project" | "max_screenshots_exceeded" | "translation_not_from_project" | "can_edit_only_own_comment" | "request_parse_error" | "filter_by_value_state_not_valid" | "import_has_expired" | "tag_not_from_project" | "translation_text_too_long" | "invalid_recaptcha_token" | "cannot_leave_owning_project" | "cannot_leave_project_with_organization_role" | "dont_have_direct_permissions" | "tag_too_log" | "too_many_uploaded_images" | "one_or_more_images_not_found" | "screenshot_not_of_key" | "service_not_found" | "too_many_requests" | "translation_not_found" | "out_of_credits" | "key_not_found" | "organization_not_found" | "cannot_find_base_language" | "base_language_not_found" | "no_exported_result" | "cannot_set_your_own_role" | "only_translate_review_or_view_permission_accepts_view_languages" | "oauth2_token_url_not_set" | "oauth2_user_url_not_set" | "email_already_invited_or_member" | "price_not_found" | "invoice_not_from_organization" | "invoice_not_found" | "plan_not_found" | "plan_not_available_any_more" | "no_auto_translation_method" | "cannot_translate_base_language" | "pat_not_found" | "invalid_pat" | "pat_expired" | "operation_unavailable_for_account_type" | "validation_email_is_not_valid" | "current_password_required" | "cannot_create_organization" | "wrong_current_password" | "wrong_param_type" | "user_missing_password" | "expired_super_jwt_token" | "cannot_delete_your_own_account" | "cannot_sort_by_this_column" | "namespace_not_found" | "namespace_exists" | "invalid_authentication_method" | "unknown_sort_property" | "only_review_permission_accepts_state_change_languages" | "only_translate_or_review_permission_accepts_translate_languages" | "cannot_set_language_permissions_for_admin_scope" | "cannot_set_view_languages_without_translations_view_scope" | "cannot_set_translate_languages_without_translations_edit_scope" | "cannot_set_state_change_languages_without_translations_state_edit_scope" | "language_not_permitted" | "scopes_has_to_be_set" | "set_exactly_one_of_scopes_or_type" | "translation_exists" | "import_keys_error" | "provide_only_one_of_screenshots_and_screenshot_uploaded_image_ids" | "multiple_projects_not_supported" | "plan_translation_limit_exceeded" | "feature_not_enabled" | "license_key_not_found" | "cannot_set_view_languages_without_for_level_based_permissions" | "cannot_set_different_translate_and_state_change_languages_for_level_based_permissions" | "cannot_disable_your_own_account" | "subscription_not_found" | "invoice_does_not_have_usage" | "customer_not_found" | "subscription_not_active" | "organization_already_subscribed" | "organization_not_subscribed" | "license_key_used_by_another_instance" | "translation_spending_limit_exceeded" | "credit_spending_limit_exceeded" | "seats_spending_limit_exceeded" | "this_instance_is_already_licensed" | "big_meta_not_from_project" | "mt_service_not_enabled" | "project_not_selected" | "organization_not_selected" | "plan_has_subscribers" | "translation_failed" | "batch_job_not_found" | "key_exists_in_namespace" | "tag_is_blank" | "execution_failed_on_management_error" | "translation_api_rate_limit" | "cannot_finalize_activity" | "formality_not_supported_by_service" | "language_not_supported_by_service" | "rate_limited" | "pat_access_not_allowed" | "pak_access_not_allowed" | "cannot_modify_disabled_translation" | "azure_config_required" | "s3_config_required" | "content_storage_config_required" | "content_storage_test_failed" | "content_storage_config_invalid" | "invalid_connection_string" | "cannot_create_azure_storage_client" | "s3_access_key_required" | "azure_connection_string_required" | "s3_secret_key_required" | "cannot_store_file_to_content_storage" | "unexpected_error_while_publishing_to_content_storage" | "webhook_responded_with_non_200_status" | "unexpected_error_while_executing_webhook" | "content_storage_is_in_use" | "cannot_set_state_for_missing_translation" | "no_project_id_provided" | "license_key_not_provided" | "subscription_already_canceled" | "user_is_subscribed_to_paid_plan" | "cannot_create_free_plan_without_fixed_type" | "cannot_modify_plan_free_status" | "key_id_not_provided" | "free_self_hosted_seat_limit_exceeded" | "advanced_params_not_supported" | "plural_forms_not_found_for_language" | "nested_plurals_not_supported" | "message_is_not_plural" | "content_outside_plural_forms" | "invalid_plural_form" | "multiple_plurals_not_supported" | "custom_values_json_too_long" | "unsupported_po_message_format" | "plural_forms_data_loss" | "current_user_does_not_own_image" | "user_cannot_view_this_organization" | "user_is_not_owner_of_organization" | "user_is_not_owner_or_maintainer_of_organization" | "pak_created_for_different_project" | "custom_slug_is_only_applicable_for_custom_storage" | "invalid_slug_format" | "batch_job_cancellation_timeout" | "import_failed" | "cannot_add_more_then_1000_languages" | "no_data_to_import" | "multiple_namespaces_mapped_to_single_file" | "multiple_mappings_for_same_file_language_name" | "multiple_mappings_for_null_file_language_name" | "too_many_mappings_for_file" | "missing_placeholder_in_template" | "tag_not_found" | "cannot_parse_encrypted_slack_login_data" | "slack_workspace_not_found" | "cannot_fetch_user_details_from_slack" | "slack_missing_scope" | "slack_not_connected_to_your_account" | "slack_invalid_command" | "slack_not_subscribed_yet" | "slack_connection_failed" | "tolgee_account_already_connected" | "slack_not_configured" | "slack_workspace_already_connected" | "slack_connection_error" | "email_verification_code_not_valid" | "cannot_subscribe_to_free_plan" | "plan_auto_assignment_only_for_free_plans" | "plan_auto_assignment_only_for_private_plans" | "task_not_found" | "task_not_finished" | "task_not_open" | "translation_agency_not_found" | "this_feature_is_not_implemented_in_oss" | "sso_token_exchange_failed" | "sso_user_info_retrieval_failed" | "sso_id_token_expired" | "sso_user_cannot_create_organization" | "sso_cant_verify_user" | "sso_auth_missing_domain" | "sso_domain_not_found_or_disabled" | "authentication_method_disabled" | "native_authentication_disabled" | "invitation_organization_mismatch" | "user_is_managed_by_organization" | "cannot_set_sso_provider_missing_fields" | "namespaces_cannot_be_disabled_when_namespace_exists" | "namespace_cannot_be_used_when_feature_is_disabled" | "sso_domain_not_allowed" | "sso_login_forced_for_this_account" | "use_sso_for_authentication_instead" | "date_has_to_be_in_the_future" | "custom_plan_and_plan_id_cannot_be_set_together" | "specify_plan_id_or_custom_plan" | "custom_plans_has_to_be_private" | "cannot_create_free_plan_with_prices" | "subscription_not_scheduled_for_cancellation" | "cannot_cancel_trial" | "cannot_update_without_modification" | "current_subscription_is_not_trialing" | "sorting_and_paging_is_not_supported_when_using_cursor" | "strings_metric_are_not_supported" | "plan_key_limit_exceeded" | "keys_spending_limit_exceeded" | "plan_seat_limit_exceeded" | "instance_not_using_license_key" | "invalid_path" | "llm_provider_not_found" | "llm_provider_error" | "prompt_not_found" | "llm_provider_not_returned_json" | "llm_template_parsing_error" | "llm_rate_limited" | "llm_provider_timeout" | "no_llm_provider_configured" | "glossary_not_found" | "glossary_term_not_found" | "glossary_term_translation_not_found" | "glossary_non_translatable_term_cannot_be_translated" | "llm_content_filter" | "llm_provider_empty_response" | "label_not_found" | "label_not_from_project" | "label_already_exists" | "filter_by_value_label_not_valid" | "suggestion_not_found" | "user_can_only_delete_his_suggestions" | "cannot_modify_reviewed_translation" | "cannot_modify_keys" | "expect_no_conflict_failed" | "suggestion_cant_be_plural" | "suggestion_must_be_plural" | "duplicate_suggestion"; - params?: Record[]; - }; - ExistenceEntityDescription: { - data: { - [key: string]: Record; - }; - entityClass: string; - /** Format: int64 */ - entityId: number; - exists?: boolean; - relations: { - [key: string]: components["schemas"]["EntityDescriptionWithRelations"]; - }; - }; - ExportFormatModel: { - defaultFileStructureTemplate: string; - extension: string; - /** @enum {string} */ - format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS"; - mediaType: string; - }; - ExportParams: { - /** @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). - * - * e.g. Key hello will be exported as <b>hello</b> */ - escapeHtml: boolean; - /** @description This is a template that defines the structure of the resulting .zip file content. - * - * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, - * {androidLanguageTag}, {snakeLanguageTag}, {extension}. - * - * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, - * the English translations of the `home` namespace will be stored in `home/en.json`. - * - * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). - * - * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` - * but in Android format. (e.g., en-rUS) - * */ - fileStructureTemplate?: string; - /** @description Filter key IDs to be contained in export */ - filterKeyId?: number[]; - /** @description Filter key IDs not to be contained in export */ - filterKeyIdNot?: number[]; - /** @description Filter keys with prefix */ - filterKeyPrefix?: string; - /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ - filterNamespace?: string[]; - /** @description Filter translations with state. By default, all states except untranslated is exported. */ - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - /** @description Filter keys tagged by. - * - * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ - filterTag?: string; - /** @description Filter keys tagged by one of provided tags */ - filterTagIn?: string[]; - /** @description Filter keys not tagged by one of provided tags */ - filterTagNotIn?: string[]; - /** - * @description Format to export to - * @enum {string} - */ - format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS"; - /** - * @description Languages to be contained in export. - * - * If null, all languages are exported - * @example en - */ - languages?: string[]; - /** - * @description Message format to be used for export. - * - * e.g. PHP_PO: Hello %s, ICU: Hello {name}. - * - * This property is honored only for generic formats like JSON or YAML. - * For specific formats like `YAML_RUBY` it's ignored. - * @enum {string} - */ - messageFormat?: "C_SPRINTF" | "PHP_SPRINTF" | "JAVA_STRING_FORMAT" | "APPLE_SPRINTF" | "RUBY_SPRINTF" | "I18NEXT" | "ICU" | "PYTHON_PERCENT"; - /** @description Delimiter to structure file content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. - * - * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), - * specific formats like `YAML_RUBY` don't honor this parameter. */ - structureDelimiter?: string; - /** @description If true, for structured formats (like JSON) arrays are supported. - * - * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ - supportArrays: boolean; - zip: boolean; - }; - GenerateSlugDto: { - name: string; - oldSlug?: string; - }; - GetKeysRequestDto: { - keys: components["schemas"]["KeyDefinitionDto"][]; - /** @description Tags to return language translations in */ - languageTags: string[]; - }; - GlossaryHighlightsRequest: { - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - languageTag: string; - text: string; - }; - GlossaryLanguageDto: { - /** - * @description Indicates if this is the base (main) language of the glossary - * @example true - */ - base: boolean; - /** - * @description The language code (e.g., 'en' for English) - * @example en - */ - tag: string; - }; - GlossaryModel: { - /** - * @description Language tag for default translations for terms - * @example en - */ - baseLanguageTag: string; - /** Format: int64 */ - id: number; - name: string; - organizationOwner: components["schemas"]["SimpleOrganizationModel"]; - }; - GlossaryTermHighlightModel: { - position: components["schemas"]["PositionModel"]; - value: components["schemas"]["GlossaryTermModel"]; - }; - GlossaryTermModel: { - description: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm: boolean; - /** @description When true, this term has the same translation across all target languages */ - flagNonTranslatable: boolean; - glossary: components["schemas"]["GlossaryModel"]; - /** Format: int64 */ - id: number; - translations: components["schemas"]["GlossaryTermTranslationModel"][]; - }; - GlossaryTermTranslationModel: { - languageTag: string; - text: string; - }; - HierarchyItem: { - requires: components["schemas"]["HierarchyItem"][]; - /** @enum {string} */ - scope: "translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign"; - }; - IdentifyRequest: { - anonymousUserId: string; - }; - ImageUploadInfoDto: { - location?: string; - }; - ImportAddFilesResultModel: { - errors: components["schemas"]["ErrorResponseBody"][]; - result?: components["schemas"]["PagedModelImportLanguageModel"]; - warnings: components["schemas"]["ErrorResponseBody"][]; - }; - ImportFileIssueModel: { - /** Format: int64 */ - id: number; - params: components["schemas"]["ImportFileIssueParamModel"][]; - /** @enum {string} */ - type: "KEY_IS_NOT_STRING" | "MULTIPLE_VALUES_FOR_KEY_AND_LANGUAGE" | "VALUE_IS_NOT_STRING" | "KEY_IS_EMPTY" | "VALUE_IS_EMPTY" | "PO_MSGCTXT_NOT_SUPPORTED" | "ID_ATTRIBUTE_NOT_PROVIDED" | "TARGET_NOT_PROVIDED" | "TRANSLATION_TOO_LONG" | "KEY_IS_BLANK" | "TRANSLATION_DEFINED_IN_ANOTHER_FILE" | "INVALID_CUSTOM_VALUES" | "DESCRIPTION_TOO_LONG"; - }; - ImportFileIssueParamModel: { - /** @enum {string} */ - type: "KEY_NAME" | "KEY_ID" | "LANGUAGE_ID" | "KEY_INDEX" | "VALUE" | "LINE" | "FILE_NODE_ORIGINAL" | "LANGUAGE_NAME"; - value?: string; - }; - /** @description Definition of mapping for each file to import. */ - ImportFileMapping: { - /** @description Name of the file to import. This is the name of the file provided in `files` request part or in uploaded archive. */ - fileName: string; - /** - * @description Format of the file. If not provided, Tolgee will try to guess the format from the file name or file contents. - * - * It is recommended to provide these values to prevent any issues with format detection. - * @enum {string} - */ - format?: "CSV_ICU" | "CSV_JAVA" | "CSV_PHP" | "CSV_RUBY" | "JSON_I18NEXT" | "JSON_ICU" | "JSON_JAVA" | "JSON_PHP" | "JSON_RUBY" | "JSON_C" | "PO_PHP" | "PO_C" | "PO_JAVA" | "PO_ICU" | "PO_RUBY" | "PO_PYTHON" | "STRINGS" | "STRINGSDICT" | "APPLE_XLIFF" | "APPLE_XCSTRINGS" | "PROPERTIES_ICU" | "PROPERTIES_JAVA" | "PROPERTIES_UNKNOWN" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "YAML_RUBY" | "YAML_JAVA" | "YAML_ICU" | "YAML_PHP" | "YAML_UNKNOWN" | "XLIFF_ICU" | "XLIFF_JAVA" | "XLIFF_PHP" | "XLIFF_RUBY" | "RESX_ICU" | "XLSX_ICU" | "XLSX_JAVA" | "XLSX_PHP" | "XLSX_RUBY"; - /** @description The existing language tag in the Tolgee platform to which the imported language should be mapped. - * - * When null, Tolgee will try to guess the language from the file contents or file name. */ - languageTag?: string; - /** @description Tags of languages to be imported. When null, all languages from will be imported. - * - * This field is useful when the file contains multiple languages and you want to import only some of them. For example when importing Apple String Catalog (APPLE_XCSTRINGS), you might want only to import the base language. */ - languageTagsToImport?: string[]; - /** @description Namespace to import the file to. If not provided, the key will be imported without namespace. */ - namespace?: string; - }; - ImportKeysDto: { - keys: components["schemas"]["ImportKeysItemDto"][]; - }; - ImportKeysItemDto: { - /** - * @description Description of key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - /** - * @description Key name to set translations for - * @example what_a_key_to_translate - */ - name: string; - /** @description The namespace of the key. (When empty or null default namespace will be used) */ - namespace?: string; - /** - * @description Tags of the key - * @example [ - * "homepage", - * "user-profile" - * ] - */ - tags?: string[]; - /** - * @description Object mapping language tag to translation - * @example { - * "en": "What a translated value!", - * "cs": "Jaká to přeložená hodnota!" - * } - */ - translations: { - [key: string]: string; - }; - }; - ImportKeysResolvableDto: { - keys: components["schemas"]["ImportKeysResolvableItemDto"][]; - }; - ImportKeysResolvableItemDto: { - /** - * @description Key name to set translations for - * @example what_a_key_to_translate - */ - name: string; - /** @description The namespace of the key. (When empty or null default namespace will be used) */ - namespace?: string; - screenshots?: components["schemas"]["KeyScreenshotDto"][]; - /** @description Object mapping language tag to translation */ - translations: { - [key: string]: components["schemas"]["ImportTranslationResolvableDto"]; - }; - }; - ImportLanguageModel: { - /** Format: int32 */ - conflictCount: number; - existingLanguageAbbreviation?: string; - /** Format: int64 */ - existingLanguageId?: number; - existingLanguageName?: string; - existingLanguageTag?: string; - /** Format: int64 */ - id: number; - /** Format: int64 */ - importFileId: number; - /** Format: int32 */ - importFileIssueCount: number; - importFileName: string; - name: string; - namespace?: string; - /** Format: int32 */ - resolvedCount: number; - /** Format: int32 */ - totalCount: number; - }; - ImportNamespaceModel: { - /** - * Format: int64 - * @description The id of namespace. When null, namespace doesn't exist and will be created by import. - * @example 10000048 - */ - id?: number; - /** @example homepage */ - name: string; - }; - ImportResult: { - unresolvedConflicts?: components["schemas"]["SimpleImportConflictResult"][]; - }; - ImportSettingsModel: { - /** @description If true, placeholders from other formats will be converted to ICU when possible */ - convertPlaceholdersToIcu: boolean; - /** @description If false, only updates keys, skipping the creation of new keys */ - createNewKeys: boolean; - /** @description If true, key descriptions will be overridden by the import */ - overrideKeyDescriptions: boolean; - }; - ImportSettingsRequest: { - /** @description If true, placeholders from other formats will be converted to ICU when possible */ - convertPlaceholdersToIcu: boolean; - /** @description If false, only updates keys, skipping the creation of new keys */ - createNewKeys: boolean; - /** @description If true, key descriptions will be overridden by the import */ - overrideKeyDescriptions: boolean; - }; - ImportTranslationModel: { - /** Format: int64 */ - conflictId?: number; - conflictText?: string; - /** @enum {string} */ - conflictType?: "CANNOT_EDIT_REVIEWED" | "CANNOT_EDIT_DISABLED" | "SHOULD_NOT_EDIT_REVIEWED"; - existingKeyIsPlural: boolean; - /** Format: int64 */ - id: number; - isOverridable: boolean; - isPlural: boolean; - keyDescription?: string; - /** Format: int64 */ - keyId: number; - keyName: string; - override: boolean; - resolved: boolean; - text?: string; - }; - /** @description Object mapping language tag to translation */ - ImportTranslationResolvableDto: { - /** - * @description Determines, how conflict is resolved. - * - KEEP: Translation is not changed - * - OVERRIDE: Translation is overridden - * - NEW: New translation is created - * - FORCE_OVERRIDE: Translation is updated, created or kept. - * - * @example OVERRIDE - * @enum {string} - */ - resolution: "KEEP" | "OVERRIDE" | "NEW" | "FORCE_OVERRIDE"; - /** - * @description Translation text - * @example Hello! I am a translation! - */ - text: string; - }; - InitialDataEeSubscriptionModel: { - /** @enum {string} */ - status: "ACTIVE" | "CANCELED" | "PAST_DUE" | "UNPAID" | "ERROR" | "TRIALING" | "KEY_USED_BY_ANOTHER_INSTANCE" | "UNKNOWN"; - }; - InitialDataModel: { - announcement?: components["schemas"]["AnnouncementDto"]; - eeSubscription?: components["schemas"]["InitialDataEeSubscriptionModel"]; - languageTag?: string; - preferredOrganization?: components["schemas"]["PrivateOrganizationModel"]; - serverConfiguration: components["schemas"]["PublicConfigurationDTO"]; - ssoInfo?: components["schemas"]["PublicSsoTenantModel"]; - userInfo?: components["schemas"]["PrivateUserAccountModel"]; - }; - JsonNode: Record; - JwtAuthenticationResponse: { - accessToken?: string; - tokenType?: string; - }; - KeyDefinitionDto: { - name: string; - namespace?: string; - }; - /** @description Disabled languages */ - KeyDisabledLanguageModel: { - /** Format: int64 */ - id: number; - tag: string; - }; - KeyDisabledLanguagesModel: { - /** @description Disabled languages */ - disabledLanguages: components["schemas"]["KeyDisabledLanguageModel"][]; - /** - * Format: int64 - * @description Id of key record - */ - id: number; - /** - * @description Name of key - * @example this_is_super_key - */ - name: string; - /** - * @description Namespace of key - * @example homepage - */ - namespace?: string; - }; - /** @description Exclude keys filtered by the provided key information */ - KeyId: { - /** - * Format: int64 - * @description If key id is provided, name and namespace are ignored. - */ - id?: number; - name?: string; - namespace?: string; - }; - KeyImportResolvableResultModel: { - /** @description List of keys */ - keys: components["schemas"]["KeyModel"][]; - /** @description Map uploadedImageId to screenshot */ - screenshots: { - [key: string]: components["schemas"]["ScreenshotModel"]; - }; - }; - KeyInScreenshotModel: { - /** Format: int64 */ - keyId: number; - keyName: string; - keyNamespace?: string; - originalText?: string; - position?: components["schemas"]["KeyInScreenshotPosition"]; - }; - KeyInScreenshotPosition: { - /** Format: int32 */ - height: number; - /** Format: int32 */ - width: number; - /** Format: int32 */ - x: number; - /** Format: int32 */ - y: number; - }; - KeyInScreenshotPositionDto: { - /** Format: int32 */ - height: number; - /** Format: int32 */ - width: number; - /** Format: int32 */ - x: number; - /** Format: int32 */ - y: number; - }; - KeyModel: { - /** @description Custom values of the key */ - custom?: { - [key: string]: Record; - }; - /** - * @description Description of key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - /** - * Format: int64 - * @description Id of key record - */ - id: number; - /** - * @description Name of key - * @example this_is_super_key - */ - name: string; - /** - * @description Namespace of key - * @example homepage - */ - namespace?: string; - }; - KeyScreenshotDto: { - positions?: components["schemas"]["KeyInScreenshotPositionDto"][]; - text?: string; - /** - * Format: int64 - * @description Ids of screenshot uploaded with /v2/image-upload endpoint - */ - uploadedImageId: number; - }; - KeySearchResultView: { - baseTranslation?: string; - description?: string; - /** Format: int64 */ - id: number; - name: string; - namespace?: string; - translation?: string; - }; - KeySearchSearchResultModel: { - baseTranslation?: string; - description?: string; - /** Format: int64 */ - id: number; - name: string; - namespace?: string; - translation?: string; - view?: components["schemas"]["KeySearchResultView"]; - }; - /** @description Tasks related to this key */ - KeyTaskViewModel: { - done: boolean; - /** Format: int64 */ - languageId: number; - languageTag: string; - /** Format: int64 */ - number: number; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - userAssigned: boolean; - }; - KeyWithBaseTranslationModel: { - /** - * @description Base translation - * @example This is translation - */ - baseTranslation?: string; - /** - * Format: int64 - * @description Id of key record - */ - id: number; - /** - * @description Name of key - * @example this_is_super_key - */ - name: string; - /** - * @description Namespace of key - * @example homepage - */ - namespace?: string; - }; - KeyWithDataModel: { - /** @description Custom values of the key */ - custom: { - [key: string]: Record; - }; - /** - * @description Description of key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - /** - * Format: int64 - * @description Id of key record - */ - id: number; - /** @description If key is pluralized. If it will be reflected in the editor */ - isPlural: boolean; - /** - * @description Name of key - * @example this_is_super_key - */ - name: string; - /** - * @description Namespace of key - * @example homepage - */ - namespace?: string; - /** @description The argument name for the plural */ - pluralArgName?: string; - /** @description Screenshots of the key */ - screenshots: components["schemas"]["ScreenshotModel"][]; - /** @description Tags of key */ - tags: components["schemas"]["TagModel"][]; - /** - * @description Translations object containing values updated in this request - * @example { - * "en": { - * "id": 100000003, - * "text": "This is super translation!" - * } - * } - */ - translations: { - [key: string]: components["schemas"]["TranslationModel"]; - }; - }; - KeyWithTranslationsModel: { - /** @description There is a context available for this key */ - contextPresent: boolean; - /** - * Format: int64 - * @description The time when the key was created - */ - createdAt: number; - /** - * @description The namespace of the key - * @example homepage - */ - keyDescription?: string; - /** - * Format: int64 - * @description Id of key record - */ - keyId: number; - /** - * @description Is this key a plural? - * @example true - */ - keyIsPlural: boolean; - /** - * @description Name of key - * @example this_is_super_key - */ - keyName: string; - /** - * @description The namespace of the key - * @example homepage - */ - keyNamespace?: string; - /** - * Format: int64 - * @description The namespace id of the key - * @example 100000282 - */ - keyNamespaceId?: number; - /** - * @description The placeholder name for plural parameter - * @example value - */ - keyPluralArgName?: string; - /** @description Tags of key */ - keyTags: components["schemas"]["TagModel"][]; - /** - * Format: int64 - * @description Count of screenshots provided for the key - * @example 1 - */ - screenshotCount: number; - /** @description Key screenshots. Not provided when API key hasn't screenshots.view scope permission. */ - screenshots?: components["schemas"]["ScreenshotModel"][]; - /** @description Tasks related to this key */ - tasks?: components["schemas"]["KeyTaskViewModel"][]; - /** - * @description Translations object - * @example - * { - * "en": { - * "id": 100000003, - * "text": "This is super translation!" - * "state": "TRANSLATED", - * "commentCount": 1 - * } - * } - * - */ - translations: { - [key: string]: components["schemas"]["TranslationViewModel"]; - }; - }; - KeysScopeView: { - /** Format: int64 */ - characterCount: number; - /** Format: int64 */ - keyCount: number; - /** Format: int64 */ - keyCountIncludingConflicts: number; - /** Format: int64 */ - wordCount: number; - }; - KeysWithTranslationsPageModel: { - _embedded?: { - keys?: components["schemas"]["KeyWithTranslationsModel"][]; - }; - /** - * @description Cursor to get next data - * @example eyJrZXlJZCI6eyJkaXJlY3Rpb24iOiJBU0MiLCJ2YWx1ZSI6IjEwMDAwMDAxMjAifX0= - */ - nextCursor?: string; - page?: components["schemas"]["PageMetadata"]; - pagedModel?: components["schemas"]["PagedModelKeyWithTranslationsModel"]; - /** @description Provided languages data */ - selectedLanguages: components["schemas"]["LanguageModel"][]; - }; - LabelModel: { - color: string; - description?: string; - /** Format: int64 */ - id: number; - name: string; - }; - LabelRequest: { - /** - * @description Hex color in format #RRGGBB. - * @example #FF5733 - */ - color: string; - description?: string; - name: string; - }; - LabelTranslationsRequest: { - keyIds: number[]; - labelIds: number[]; - languageIds: number[]; - }; - LanguageAiPromptCustomizationModel: { - /** - * @description The language description used in the prompt that helps AI translator to fine tune results for specific language - * @example For arabic language, we are super formal. Always use these translations: - * Paper -> ورقة - * Office -> مكتب - * - */ - description?: string; - language: components["schemas"]["LanguageModel"]; - }; - LanguageConfigItemModel: { - /** - * @deprecated - * @description Services to be used for suggesting (deprecated: use enabledServicesInfo) - */ - enabledServices: ("GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT")[]; - /** @description Info about enabled services */ - enabledServicesInfo: components["schemas"]["MtServiceInfo"][]; - /** - * @deprecated - * @description Service used for automated translating (deprecated: use primaryServiceInfo) - * @enum {string} - */ - primaryService?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - primaryServiceInfo?: components["schemas"]["MtServiceInfo"]; - /** - * Format: int64 - * @description When null, its a default configuration applied to not configured languages - */ - targetLanguageId?: number; - /** @description When null, its a default configuration applied to not configured languages */ - targetLanguageName?: string; - /** @description When null, its a default configuration applied to not configured languages */ - targetLanguageTag?: string; - }; - LanguageInfoModel: { - /** Format: int64 */ - languageId?: number; - languageTag?: string; - supportedServices: components["schemas"]["MtSupportedService"][]; - }; - /** @description Maps the languages from imported files to languages existing in the Tolgee platform. + * Delimiter to structure response content. * - * Use this field only when your files contain multiple languages (e.g., XLIFF files). + * e.g. For key "home.header.title" would result in {"home": {"header": {"title": "Hello"}}} structure. * - * Otherwise, use the `languageTag` property of `fileMappings`. - * - * Example: In xliff files, there are `source-language` and `target-language` attributes defined on `file` element. Using this field you can map source and target values to languages stored in the Tolgee Platform. */ - LanguageMapping: { - /** - * @description The language from the imported file. - * - * For xliff files, this is the `source-language` or the `target-language` attribute value of `file` element. - * @example en-US - */ - importLanguage: string; - /** - * @description The tag of language existing in the Tolgee platform to which the imported language should be mapped. - * @example en-US - */ - platformLanguageTag: string; - }; - LanguageModel: { - /** - * @description Whether is base language of project - * @example false - */ - base: boolean; - /** - * @description Language flag emoji as UTF-8 emoji - * @example 🇨🇿 - */ - flagEmoji?: string; - /** Format: int64 */ - id: number; - /** - * @description Language name in english - * @example Czech - */ - name: string; - /** - * @description Language name in this language - * @example čeština - */ - originalName?: string; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - tag: string; - }; - LanguageRequest: { - /** - * @description Language flag emoji as UTF-8 emoji - * @example 🇨🇿 - */ - flagEmoji?: string; - /** - * @description Language name in english - * @example Czech - */ - name: string; - /** - * @description Language name in this language - * @example čeština - */ - originalName: string; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - tag: string; - }; - LanguageStatsModel: { - languageFlagEmoji?: string; - /** Format: int64 */ - languageId?: number; - languageName?: string; - languageOriginalName?: string; - languageTag?: string; - /** Format: int64 */ - reviewedKeyCount: number; - /** Format: double */ - reviewedPercentage: number; - /** Format: int64 */ - reviewedWordCount: number; - /** Format: int64 */ - translatedKeyCount: number; - /** Format: double */ - translatedPercentage: number; - /** Format: int64 */ - translatedWordCount: number; - /** Format: date-time */ - translationsUpdatedAt?: string; - /** Format: int64 */ - untranslatedKeyCount: number; - /** Format: double */ - untranslatedPercentage: number; - /** Format: int64 */ - untranslatedWordCount: number; - }; - LlmMessage: { - image?: string; - text?: string; - /** @enum {string} */ - type: "TEXT" | "IMAGE"; - }; - LlmParams: { - messages: components["schemas"]["LlmMessage"][]; - /** @enum {string} */ - priority: "LOW" | "HIGH"; - shouldOutputJson: boolean; - }; - LlmProviderModel: { - apiKey?: string; - apiUrl?: string; - deployment?: string; - format?: string; - /** Format: int64 */ - id: number; - model?: string; - name: string; - /** @enum {string} */ - priority?: "LOW" | "HIGH"; - /** @enum {string} */ - type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; - }; - LlmProviderRequest: { - apiKey?: string; - apiUrl: string; - deployment?: string; - format?: string; - keepAlive?: string; - model?: string; - name: string; - /** @enum {string} */ - priority?: "LOW" | "HIGH"; - /** @enum {string} */ - type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; - }; - LlmProviderSimpleModel: { - name: string; - source?: string; - /** @enum {string} */ - type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; - }; - LoginRequest: { - otp?: string; - password: string; - username: string; - }; - MachineTranslationLanguagePropsDto: { - /** - * @deprecated - * @description List of enabled services (deprecated: use enabledServicesInfo) - */ - enabledServices?: ("GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT")[]; - /** @description Info about enabled services */ - enabledServicesInfo?: components["schemas"]["MtServiceInfo"][]; - /** - * @deprecated - * @description This service will be used for automated translation - * @enum {string} - */ - primaryService?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - primaryServiceInfo?: components["schemas"]["MtServiceInfo"]; - /** - * Format: int64 - * @description The language to apply those rules. If null, then this settings are default. - */ - targetLanguageId?: number; - }; - MachineTranslationProviderModel: { - /** @description BCP 47 tags of languages supported by the translation service. When null, all possible languages are supported. - * - * Please note that Tolgee tries to fall back to a higher subtag if the subtag is not supported. - * - * E.g., if `pt-BR` is not supported. Tolgee fallbacks to `pt`. */ - supportedLanguages?: string[]; - }; - MachineTranslationRequest: { - keyIds: number[]; - llmPrompt?: components["schemas"]["PromptDto"]; - targetLanguageIds: number[]; - }; - ModifiedEntityModel: { - description?: { - [key: string]: Record; - }; - entityClass: string; - /** Format: int64 */ - entityId: number; - exists?: boolean; - modifications?: { - [key: string]: components["schemas"]["PropertyModification"]; - }; - relations?: { - [key: string]: components["schemas"]["ExistenceEntityDescription"]; - }; - }; - MtServiceDTO: { - defaultEnabledForProject: boolean; - enabled: boolean; - }; - /** @description Info about enabled services */ - MtServiceInfo: { - /** @enum {string} */ - formality?: "FORMAL" | "INFORMAL" | "DEFAULT"; - /** Format: int64 */ - promptId?: number; - /** @enum {string} */ - serviceType: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - }; - MtServicesDTO: { - services: { - [key: string]: components["schemas"]["MtServiceDTO"]; - }; - }; - MtSupportedService: { - formalitySupported: boolean; - /** @enum {string} */ - serviceType: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - }; - NamespaceModel: { - /** - * Format: int64 - * @description The id of namespace - * @example 10000048 - */ - id: number; - /** @example homepage */ - name: string; - }; - NotificationModel: { - /** Format: date-time */ - createdAt?: string; - /** Format: int64 */ - id: number; - linkedTask?: components["schemas"]["TaskModel"]; - originatingUser?: components["schemas"]["SimpleUserAccountModel"]; - project?: components["schemas"]["SimpleProjectModel"]; - /** @enum {string} */ - type: "TASK_ASSIGNED" | "TASK_FINISHED" | "TASK_CANCELED" | "MFA_ENABLED" | "MFA_DISABLED" | "PASSWORD_CHANGED"; - }; - NotificationSettingGroupModel: { - email: boolean; - inApp: boolean; - }; - NotificationSettingModel: { - accountSecurity: components["schemas"]["NotificationSettingGroupModel"]; - tasks: components["schemas"]["NotificationSettingGroupModel"]; - }; - NotificationSettingsRequest: { - /** - * @example IN_APP - * @enum {string} - */ - channel: "IN_APP" | "EMAIL"; - /** - * @description True if the setting should be enabled, false for disabled - * @example false - */ - enabled: boolean; - /** - * @example TASKS - * @enum {string} - */ - group: "ACCOUNT_SECURITY" | "TASKS"; - }; - NotificationsMarkSeenRequest: { - /** - * @description Notification IDs to be marked as seen - * @example [ - * 1, - * 2, - * 3 - * ] - */ - notificationIds: number[]; - }; - OAuthPublicConfigDTO: { - clientId?: string; - enabled: boolean; - }; - OAuthPublicExtendsConfigDTO: { - authorizationUrl?: string; - clientId?: string; - enabled: boolean; - scopes?: string[]; - }; - OrganizationDto: { - /** @example This is a beautiful organization full of beautiful and clever people */ - description?: string; - /** @example Beautiful organization */ - name: string; - /** @example btforg */ - slug?: string; - }; - OrganizationInvitationModel: { - code: string; - /** Format: date-time */ - createdAt: string; - createdBy?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - id: number; - invitedUserEmail?: string; - invitedUserName?: string; - /** @enum {string} */ - type: "MEMBER" | "OWNER" | "MAINTAINER"; - }; - OrganizationInviteUserDto: { - /** @description Email to send invitation to */ - email?: string; - /** @description Name of invited user */ - name?: string; - /** @enum {string} */ - roleType: "MEMBER" | "OWNER" | "MAINTAINER"; - }; - OrganizationLanguageModel: { - /** - * @description Whether is base language of any project - * @example false - */ - base: boolean; - /** - * @description Language flag emoji as UTF-8 emoji - * @example 🇨🇿 - */ - flagEmoji?: string; - /** - * @description Language name in english - * @example Czech - */ - name: string; - /** - * @description Language name in this language - * @example čeština - */ - originalName?: string; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - tag: string; - }; - OrganizationModel: { - avatar?: components["schemas"]["Avatar"]; - basePermissions: components["schemas"]["PermissionModel"]; - /** - * @description The role of currently authorized user. - * - * Can be null when user has direct access to one of the projects owned by the organization. - * @enum {string} - */ - currentUserRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - /** @example This is a beautiful organization full of beautiful and clever people */ - description?: string; - /** Format: int64 */ - id: number; - /** @example Beautiful organization */ - name: string; - /** @example btforg */ - slug: string; - }; - PageMetadata: { - /** Format: int64 */ - number?: number; - /** Format: int64 */ - size?: number; - /** Format: int64 */ - totalElements?: number; - /** Format: int64 */ - totalPages?: number; - }; - Pageable: { - /** Format: int32 */ - page?: number; - /** Format: int32 */ - size?: number; - sort?: string[]; - }; - PagedModelApiKeyModel: { - _embedded?: { - apiKeys?: components["schemas"]["ApiKeyModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelBatchJobModel: { - _embedded?: { - batchJobs?: components["schemas"]["BatchJobModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelContentDeliveryConfigModel: { - _embedded?: { - contentDeliveryConfigs?: components["schemas"]["ContentDeliveryConfigModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelContentStorageModel: { - _embedded?: { - contentStorages?: components["schemas"]["ContentStorageModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelImportFileIssueModel: { - _embedded?: { - importFileIssues?: components["schemas"]["ImportFileIssueModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelImportLanguageModel: { - _embedded?: { - languages?: components["schemas"]["ImportLanguageModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelImportTranslationModel: { - _embedded?: { - translations?: components["schemas"]["ImportTranslationModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelKeyModel: { - _embedded?: { - keys?: components["schemas"]["KeyModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelKeySearchSearchResultModel: { - _embedded?: { - keys?: components["schemas"]["KeySearchSearchResultModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelKeyWithTranslationsModel: { - _embedded?: { - keys?: components["schemas"]["KeyWithTranslationsModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelLabelModel: { - _embedded?: { - labels?: components["schemas"]["LabelModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelLanguageModel: { - _embedded?: { - languages?: components["schemas"]["LanguageModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelModifiedEntityModel: { - _embedded?: { - modifiedEntities?: components["schemas"]["ModifiedEntityModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelNamespaceModel: { - _embedded?: { - namespaces?: components["schemas"]["NamespaceModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelNotificationModel: { - _embedded?: { - notificationModelList?: components["schemas"]["NotificationModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelOrganizationLanguageModel: { - _embedded?: { - languages?: components["schemas"]["OrganizationLanguageModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelOrganizationModel: { - _embedded?: { - organizations?: components["schemas"]["OrganizationModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelPatModel: { - _embedded?: { - pats?: components["schemas"]["PatModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelProjectActivityModel: { - _embedded?: { - activities?: components["schemas"]["ProjectActivityModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelProjectModel: { - _embedded?: { - projects?: components["schemas"]["ProjectModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelProjectWithStatsModel: { - _embedded?: { - projects?: components["schemas"]["ProjectWithStatsModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelPromptModel: { - _embedded?: { - prompts?: components["schemas"]["PromptModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleGlossaryModel: { - _embedded?: { - glossaries?: components["schemas"]["SimpleGlossaryModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleGlossaryTermModel: { - _embedded?: { - glossaryTerms?: components["schemas"]["SimpleGlossaryTermModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleGlossaryTermWithTranslationsModel: { - _embedded?: { - glossaryTerms?: components["schemas"]["SimpleGlossaryTermWithTranslationsModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleGlossaryWithStatsModel: { - _embedded?: { - glossaries?: components["schemas"]["SimpleGlossaryWithStatsModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleUserAccountModel: { - _embedded?: { - users?: components["schemas"]["SimpleUserAccountModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTagModel: { - _embedded?: { - tags?: components["schemas"]["TagModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTaskModel: { - _embedded?: { - tasks?: components["schemas"]["TaskModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTaskWithProjectModel: { - _embedded?: { - tasks?: components["schemas"]["TaskWithProjectModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTranslationCommentModel: { - _embedded?: { - translationComments?: components["schemas"]["TranslationCommentModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTranslationHistoryModel: { - _embedded?: { - revisions?: components["schemas"]["TranslationHistoryModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTranslationMemoryItemModel: { - _embedded?: { - translationMemoryItems?: components["schemas"]["TranslationMemoryItemModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTranslationSuggestionModel: { - _embedded?: { - suggestions?: components["schemas"]["TranslationSuggestionModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelUserAccountInProjectModel: { - _embedded?: { - users?: components["schemas"]["UserAccountInProjectModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelUserAccountModel: { - _embedded?: { - users?: components["schemas"]["UserAccountModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelUserAccountWithOrganizationRoleModel: { - _embedded?: { - usersInOrganization?: components["schemas"]["UserAccountWithOrganizationRoleModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelWebhookConfigModel: { - _embedded?: { - webhookConfigs?: components["schemas"]["WebhookConfigModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelWithNextCursorNotificationModel: { - _embedded?: { - notificationModelList?: components["schemas"]["NotificationModel"][]; - }; - /** - * @description Cursor to get next data - * @example eyJrZXlJZCI6eyJkaXJlY3Rpb24iOiJBU0MiLCJ2YWx1ZSI6IjEwMDAwMDAxMjAifX0= - */ - nextCursor?: string; - page?: components["schemas"]["PageMetadata"]; - pagedModel?: components["schemas"]["PagedModelNotificationModel"]; - }; - PatModel: { - /** Format: int64 */ - createdAt: number; - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** Format: int64 */ - lastUsedAt?: number; - /** Format: int64 */ - updatedAt: number; - }; - PatWithUserModel: { - /** Format: int64 */ - createdAt: number; - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** Format: int64 */ - lastUsedAt?: number; - /** Format: int64 */ - updatedAt: number; - user: components["schemas"]["SimpleUserAccountModel"]; - }; - PermissionModel: { - /** - * @deprecated - * @description Deprecated (use translateLanguageIds). - * - * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - permittedLanguageIds?: number[]; - /** - * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. - * @example [ - * "KEYS_EDIT", - * "TRANSLATIONS_VIEW" - * ] - */ - scopes: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign")[]; - /** - * @description List of languages user can change state to. If null, changing state of all language values is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - stateChangeLanguageIds?: number[]; - /** - * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - suggestLanguageIds?: number[]; - /** - * @description List of languages user can translate to. If null, all languages editing is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - translateLanguageIds?: number[]; - /** - * @description The user's permission type. This field is null if uses granular permissions - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** - * @description List of languages user can view. If null, all languages view is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - viewLanguageIds?: number[]; - }; - PermissionWithAgencyModel: { - agency?: components["schemas"]["TranslationAgencySimpleModel"]; - /** - * @deprecated - * @description Deprecated (use translateLanguageIds). - * - * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - permittedLanguageIds?: number[]; - /** - * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. - * @example [ - * "KEYS_EDIT", - * "TRANSLATIONS_VIEW" - * ] - */ - scopes: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign")[]; - /** - * @description List of languages user can change state to. If null, changing state of all language values is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - stateChangeLanguageIds?: number[]; - /** - * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - suggestLanguageIds?: number[]; - /** - * @description List of languages user can translate to. If null, all languages editing is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - translateLanguageIds?: number[]; - /** - * @description The user's permission type. This field is null if uses granular permissions - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** - * @description List of languages user can view. If null, all languages view is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - viewLanguageIds?: number[]; - }; - PlanIncludedUsageModel: { - /** Format: int64 */ - keys: number; - /** Format: int64 */ - mtCredits: number; - /** Format: int64 */ - seats: number; - /** Format: int64 */ - translations: number; - }; - PlanPricesModel: { - perSeat: number; - perThousandKeys: number; - perThousandMtCredits?: number; - perThousandTranslations?: number; - subscriptionMonthly: number; - subscriptionYearly: number; - }; - PlausibleDto: { - domain?: string; - scriptUrl: string; - url: string; - }; - PositionModel: { - /** Format: int32 */ - end: number; - /** Format: int32 */ - start: number; - }; - PreTranslationByTmRequest: { - keyIds: number[]; - targetLanguageIds: number[]; - }; - PrepareSetEeLicenceKeyModel: { - plan: components["schemas"]["SelfHostedEePlanModel"]; - usage: components["schemas"]["UsageModel"]; - }; - PrivateOrganizationModel: { - activeCloudSubscription?: components["schemas"]["PublicCloudSubscriptionModel"]; - avatar?: components["schemas"]["Avatar"]; - basePermissions: components["schemas"]["PermissionModel"]; - /** - * @description The role of currently authorized user. - * - * Can be null when user has direct access to one of the projects owned by the organization. - * @enum {string} - */ - currentUserRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - /** @example This is a beautiful organization full of beautiful and clever people */ - description?: string; - /** @example Features organization has enabled */ - enabledFeatures: ("GRANULAR_PERMISSIONS" | "PRIORITIZED_FEATURE_REQUESTS" | "PREMIUM_SUPPORT" | "DEDICATED_SLACK_CHANNEL" | "ASSISTED_UPDATES" | "DEPLOYMENT_ASSISTANCE" | "BACKUP_CONFIGURATION" | "TEAM_TRAINING" | "ACCOUNT_MANAGER" | "STANDARD_SUPPORT" | "PROJECT_LEVEL_CONTENT_STORAGES" | "WEBHOOKS" | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" | "AI_PROMPT_CUSTOMIZATION" | "SLACK_INTEGRATION" | "TASKS" | "SSO" | "ORDER_TRANSLATION" | "GLOSSARY" | "TRANSLATION_LABELS")[]; - /** Format: int64 */ - id: number; - /** @example Beautiful organization */ - name: string; - organizationModel?: components["schemas"]["OrganizationModel"]; - quickStart?: components["schemas"]["QuickStartModel"]; - /** @example btforg */ - slug: string; - }; - PrivateUserAccountModel: { - /** @enum {string} */ - accountType: "LOCAL" | "MANAGED" | "THIRD_PARTY"; - avatar?: components["schemas"]["Avatar"]; - deletable: boolean; - domain?: string; - emailAwaitingVerification?: string; - /** @enum {string} */ - globalServerRole: "USER" | "ADMIN"; - /** Format: int64 */ - id: number; - mfaEnabled: boolean; - name?: string; - needsSuperJwtToken: boolean; - /** @enum {string} */ - thirdPartyAuthType?: "GOOGLE" | "GITHUB" | "OAUTH2" | "SSO" | "SSO_GLOBAL"; - username: string; - }; - ProjectActivityAuthorModel: { - avatar?: components["schemas"]["Avatar"]; - deleted: boolean; - /** Format: int64 */ - id: number; - name?: string; - username?: string; - }; - ProjectActivityModel: { - author?: components["schemas"]["ProjectActivityAuthorModel"]; - counts?: { - [key: string]: number; - }; - meta?: { - [key: string]: Record; - }; - modifiedEntities?: { - [key: string]: components["schemas"]["ModifiedEntityModel"][]; - }; - params?: Record; - /** Format: int64 */ - revisionId: number; - /** Format: int64 */ - timestamp: number; - /** @enum {string} */ - type: "UNKNOWN" | "SET_TRANSLATION_STATE" | "SET_TRANSLATIONS" | "DISMISS_AUTO_TRANSLATED_STATE" | "SET_OUTDATED_FLAG" | "TRANSLATION_COMMENT_ADD" | "TRANSLATION_COMMENT_DELETE" | "TRANSLATION_COMMENT_EDIT" | "TRANSLATION_COMMENT_SET_STATE" | "SCREENSHOT_DELETE" | "SCREENSHOT_ADD" | "KEY_TAGS_EDIT" | "KEY_NAME_EDIT" | "KEY_DELETE" | "CREATE_KEY" | "COMPLEX_EDIT" | "IMPORT" | "CREATE_LANGUAGE" | "EDIT_LANGUAGE" | "DELETE_LANGUAGE" | "HARD_DELETE_LANGUAGE" | "CREATE_PROJECT" | "EDIT_PROJECT" | "NAMESPACE_EDIT" | "BATCH_PRE_TRANSLATE_BY_TM" | "BATCH_MACHINE_TRANSLATE" | "AUTO_TRANSLATE" | "BATCH_CLEAR_TRANSLATIONS" | "BATCH_COPY_TRANSLATIONS" | "BATCH_SET_TRANSLATION_STATE" | "BATCH_TAG_KEYS" | "BATCH_UNTAG_KEYS" | "BATCH_SET_KEYS_NAMESPACE" | "BATCH_ASSIGN_TRANSLATION_LABEL" | "BATCH_UNASSIGN_TRANSLATION_LABEL" | "AUTOMATION" | "CONTENT_DELIVERY_CONFIG_CREATE" | "CONTENT_DELIVERY_CONFIG_UPDATE" | "CONTENT_DELIVERY_CONFIG_DELETE" | "CONTENT_STORAGE_CREATE" | "CONTENT_STORAGE_UPDATE" | "CONTENT_STORAGE_DELETE" | "WEBHOOK_CONFIG_CREATE" | "WEBHOOK_CONFIG_UPDATE" | "WEBHOOK_CONFIG_DELETE" | "COMPLEX_TAG_OPERATION" | "TASKS_CREATE" | "TASK_CREATE" | "TASK_UPDATE" | "TASK_KEYS_UPDATE" | "TASK_FINISH" | "TASK_CLOSE" | "TASK_REOPEN" | "TASK_KEY_UPDATE" | "ORDER_TRANSLATION" | "GLOSSARY_CREATE" | "GLOSSARY_UPDATE" | "GLOSSARY_DELETE" | "GLOSSARY_TERM_CREATE" | "GLOSSARY_TERM_UPDATE" | "GLOSSARY_TERM_DELETE" | "GLOSSARY_TERM_TRANSLATION_UPDATE" | "TRANSLATION_LABELS_EDIT" | "TRANSLATION_LABEL_ASSIGN" | "TRANSLATION_LABEL_CREATE" | "TRANSLATION_LABEL_UPDATE" | "TRANSLATION_LABEL_DELETE" | "CREATE_SUGGESTION" | "DECLINE_SUGGESTION" | "ACCEPT_SUGGESTION" | "REVERSE_SUGGESTION" | "DELETE_SUGGESTION"; - }; - ProjectAiPromptCustomizationModel: { - /** - * @description The project description used in the prompt that helps AI translator to understand the context of your project. - * @example We are Dunder Mifflin, a paper company. We sell paper. This is an project of translations for out paper selling app. - */ - description?: string; - }; - ProjectInvitationModel: { - code?: string; - /** Format: date-time */ - createdAt: string; - createdBy?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - id: number; - invitedUserEmail?: string; - invitedUserName?: string; - permission: components["schemas"]["PermissionWithAgencyModel"]; - permittedLanguageIds?: number[]; - /** @enum {string} */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - }; - ProjectInviteUserDto: { - /** - * Format: int64 - * @description Id of invited agency - */ - agencyId?: number; - /** @description Email to send invitation to */ - email?: string; - /** - * @deprecated - * @description Deprecated -> use translate languages - */ - languages?: number[]; - /** @description Name of invited user */ - name?: string; - /** - * @description Granted scopes for the invited user - * @example [ - * "translations.view", - * "translations.edit" - * ] - */ - scopes?: string[]; - /** @description Languages user can change translation state (review) */ - stateChangeLanguages?: number[]; - /** @description Languages user can suggest translation */ - suggestLanguages?: number[]; - /** @description Languages user can translate to */ - translateLanguages?: number[]; - /** @enum {string} */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** @description Languages user can view */ - viewLanguages?: number[]; - }; - ProjectModel: { - avatar?: components["schemas"]["Avatar"]; - baseLanguage?: components["schemas"]["LanguageModel"]; - computedPermission: components["schemas"]["ComputedPermissionModel"]; - defaultNamespace?: components["schemas"]["NamespaceModel"]; - description?: string; - directPermission?: components["schemas"]["PermissionModel"]; - /** @description Whether to disable ICU placeholder visualization in the editor and it's support. */ - icuPlaceholders: boolean; - /** Format: int64 */ - id: number; - name: string; - organizationOwner?: components["schemas"]["SimpleOrganizationModel"]; - /** @enum {string} */ - organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - slug?: string; - /** - * @description Suggestions for translations - * @enum {string} - */ - suggestionsMode: "DISABLED" | "ENABLED"; - /** - * @description Level of protection of translations - * @enum {string} - */ - translationProtection: "NONE" | "PROTECT_REVIEWED"; - useNamespaces: boolean; - }; - ProjectStatistics: { - /** Format: int64 */ - keyCount: number; - /** Format: int64 */ - languageCount: number; - /** Format: int64 */ - projectId: number; - translationStatePercentages: { - [key: string]: number; - }; - }; - ProjectStatsModel: { - /** Format: int64 */ - baseWordsCount: number; - /** Format: int64 */ - keyCount: number; - /** Format: int32 */ - languageCount: number; - languageStats: components["schemas"]["LanguageStatsModel"][]; - /** Format: int64 */ - membersCount: number; - /** Format: int64 */ - projectId: number; - /** Format: double */ - reviewedPercentage: number; - /** Format: int64 */ - tagCount: number; - /** Format: int64 */ - taskCount: number; - /** Format: double */ - translatedPercentage: number; - }; - ProjectTransferOptionModel: { - /** Format: int64 */ - id: number; - name: string; - slug: string; - }; - ProjectWithStatsModel: { - avatar?: components["schemas"]["Avatar"]; - baseLanguage?: components["schemas"]["LanguageModel"]; - computedPermission: components["schemas"]["ComputedPermissionModel"]; - description?: string; - directPermission?: components["schemas"]["PermissionModel"]; - /** @description Whether to disable ICU placeholder visualization in the editor and it's support. */ - icuPlaceholders: boolean; - /** Format: int64 */ - id: number; - languages: components["schemas"]["LanguageModel"][]; - name: string; - organizationOwner?: components["schemas"]["SimpleOrganizationModel"]; - /** @enum {string} */ - organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - slug?: string; - stats: components["schemas"]["ProjectStatistics"]; - }; - PromptDto: { - basicPromptOptions?: ("KEY_NAME" | "KEY_DESCRIPTION" | "KEY_CONTEXT" | "PROJECT_DESCRIPTION" | "LANGUAGE_NOTES" | "TM_SUGGESTIONS" | "SCREENSHOT" | "GLOSSARY")[]; - name: string; - providerName: string; - template?: string; - }; - PromptModel: { - basicPromptOptions?: ("KEY_NAME" | "KEY_DESCRIPTION" | "KEY_CONTEXT" | "PROJECT_DESCRIPTION" | "LANGUAGE_NOTES" | "TM_SUGGESTIONS" | "SCREENSHOT" | "GLOSSARY")[]; - /** Format: int64 */ - id: number; - name: string; - /** Format: int64 */ - projectId: number; - providerName: string; - template?: string; - }; - PromptResponseDto: { - parsedJson?: components["schemas"]["JsonNode"]; - /** Format: int32 */ - price?: number; - prompt: string; - result: string; - usage?: components["schemas"]["PromptResponseUsageDto"]; - }; - PromptResponseUsageDto: { - /** Format: int64 */ - cachedTokens?: number; - /** Format: int64 */ - inputTokens?: number; - /** Format: int64 */ - outputTokens?: number; - }; - PromptResult: { - parsedJson?: components["schemas"]["JsonNode"]; - /** Format: int32 */ - price: number; - response: string; - usage?: components["schemas"]["PromptResponseUsageDto"]; - }; - PromptRunDto: { - basicPromptOptions?: ("KEY_NAME" | "KEY_DESCRIPTION" | "KEY_CONTEXT" | "PROJECT_DESCRIPTION" | "LANGUAGE_NOTES" | "TM_SUGGESTIONS" | "SCREENSHOT" | "GLOSSARY")[]; - /** Format: int64 */ - keyId: number; - provider: string; - /** Format: int64 */ - targetLanguageId: number; - template?: string; - }; - PromptVariableDto: { - description?: string; - name: string; - /** @description List of nested properties for this variable, allowing hierarchical structuring. */ - props?: components["schemas"]["PromptVariableDto"][] | null; - /** @enum {string} */ - type: "FRAGMENT" | "OBJECT" | "STRING"; - value?: string; - }; - /** @description Modified fields */ - PropertyModification: { - new?: Record; - old?: Record; - }; - PublicBillingConfigurationDTO: { - enabled: boolean; - }; - PublicCloudPlanModel: { - enabledFeatures: ("GRANULAR_PERMISSIONS" | "PRIORITIZED_FEATURE_REQUESTS" | "PREMIUM_SUPPORT" | "DEDICATED_SLACK_CHANNEL" | "ASSISTED_UPDATES" | "DEPLOYMENT_ASSISTANCE" | "BACKUP_CONFIGURATION" | "TEAM_TRAINING" | "ACCOUNT_MANAGER" | "STANDARD_SUPPORT" | "PROJECT_LEVEL_CONTENT_STORAGES" | "WEBHOOKS" | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" | "AI_PROMPT_CUSTOMIZATION" | "SLACK_INTEGRATION" | "TASKS" | "SSO" | "ORDER_TRANSLATION" | "GLOSSARY" | "TRANSLATION_LABELS")[]; - free: boolean; - /** Format: int64 */ - id: number; - includedUsage: components["schemas"]["PlanIncludedUsageModel"]; - /** @enum {string} */ - metricType: "KEYS_SEATS" | "STRINGS"; - name: string; - nonCommercial: boolean; - public: boolean; - /** @enum {string} */ - type: "PAY_AS_YOU_GO" | "FIXED"; - }; - /** @example Current active subscription info */ - PublicCloudSubscriptionModel: { - cancelAtPeriodEnd: boolean; - /** @enum {string} */ - currentBillingPeriod?: "MONTHLY" | "YEARLY"; - plan: components["schemas"]["PublicCloudPlanModel"]; - /** @enum {string} */ - status: "ACTIVE" | "CANCELED" | "PAST_DUE" | "UNPAID" | "ERROR" | "TRIALING" | "KEY_USED_BY_ANOTHER_INSTANCE" | "UNKNOWN"; - /** Format: int64 */ - trialEnd?: number; - }; - PublicConfigurationDTO: { - allowRegistrations: boolean; - appName: string; - authMethods?: components["schemas"]["AuthMethodsDTO"]; - authentication: boolean; - billing: components["schemas"]["PublicBillingConfigurationDTO"]; - capterraTracker?: string; - chatwootToken?: string; - clientSentryDsn?: string; - contentDeliveryConfigured: boolean; - ga4Tag?: string; - internalControllerEnabled: boolean; - llm: components["schemas"]["PublicLlmConfigurationDTO"]; - machineTranslationServices: components["schemas"]["MtServicesDTO"]; - /** Format: int64 */ - maxTranslationTextLength: number; - /** Format: int32 */ - maxUploadFileSize: number; - nativeEnabled: boolean; - needsEmailVerification: boolean; - passwordResettable: boolean; - plausible: components["schemas"]["PlausibleDto"]; - postHogApiKey?: string; - postHogHost?: string; - recaptchaSiteKey?: string; - screenshotsUrl: string; - showVersion: boolean; - slack: components["schemas"]["SlackDTO"]; - /** Format: int32 */ - translationsViewLanguagesLimit: number; - userCanCreateOrganizations: boolean; - userSourceField: boolean; - version: string; - }; - PublicInvitationModel: { - code: string; - createdBy?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - id: number; - organizationName?: string; - projectName?: string; - }; - PublicLlmConfigurationDTO: { - enabled: boolean; - }; - PublicSsoTenantModel: { - domain: string; - force: boolean; - global: boolean; - }; - PublicUsageModel: { - /** - * Format: int64 - * @description The maximum amount organization can spend on MT credit usage before they reach the spending limit - */ - availablePayAsYouGoMtCredits: number; - /** - * Format: int64 - * @description Current balance of standard credits. Standard credits are refilled every month - */ - creditBalance: number; - /** - * Format: int64 - * @description Date when credits will be refilled. (In epoch format) - */ - creditBalanceNextRefillAt: number; - /** - * Format: int64 - * @description Date when credits were refilled. (In epoch format) - */ - creditBalanceRefilledAt: number; - /** - * Format: int64 - * @description How many keys are currently stored by organization - */ - currentKeys: number; - /** - * Format: int64 - * @description Currently used credits over credits included in plan and extra credits - */ - currentPayAsYouGoMtCredits: number; - /** - * Format: int64 - * @description How seats are currently used by organization - */ - currentSeats: number; - /** - * Format: int64 - * @description How many non-empty translations are currently stored by organization - */ - currentTranslations: number; - /** - * Format: int64 - * @deprecated - * @description Customers were able to buy extra credits separately in the past. - * - * This option is not available anymore and this field is kept only for backward compatibility purposes and is always 0. - */ - extraCreditBalance: number; - /** - * Format: int64 - * @description How many keys are included in current subscription plan. How many keys can organization use without additional costs. - */ - includedKeys: number; - /** - * Format: int64 - * @description How many credits are included in your current plan - */ - includedMtCredits: number; - /** - * Format: int64 - * @description How many seats are included in current subscription plan. How many seats can organization use without additional costs. - */ - includedSeats: number; - /** - * Format: int64 - * @description How many translations are included in current subscription plan. How many translations can organization use without additional costs - */ - includedTranslations: number; - /** @description Whether the current plan is pay-as-you-go of fixed. For pay-as-you-go plans, the spending limit is the top limit. */ - isPayAsYouGo: boolean; - /** - * Format: int64 - * @description How many keys can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) - */ - keysLimit: number; - /** Format: int64 */ - organizationId: number; - /** - * Format: int64 - * @description How many seats can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) - */ - seatsLimit: number; - /** - * Format: int64 - * @description How many translations can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) - */ - translationsLimit: number; - /** - * Format: int64 - * @description Currently used credits including credits used over the limit - */ - usedMtCredits: number; - }; - /** @example Quick start data for current user */ - QuickStartModel: { - completedSteps: string[]; - finished: boolean; - open: boolean; - }; - RegenerateApiKeyDto: { - /** - * Format: int64 - * @description Expiration date in epoch format (milliseconds). When null key never expires. - * @example 1661172869000 - */ - expiresAt?: number; - }; - RegeneratePatDto: { - /** - * Format: int64 - * @description Expiration date in epoch format (milliseconds). When null key never expires. - * @example 1661172869000 - */ - expiresAt?: number; - }; - /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ - RelatedKeyDto: { - keyName: string; - namespace?: string; - }; - ResetPassword: { - code: string; - email: string; - password?: string; - }; - ResetPasswordRequest: { - callbackUrl: string; - email: string; - }; - RevealedApiKeyModel: { - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** @description Resulting user's api key */ - key: string; - /** Format: int64 */ - lastUsedAt?: number; - /** Format: int64 */ - projectId: number; - projectName: string; - scopes: string[]; - userFullName?: string; - username?: string; - }; - RevealedPatModel: { - /** Format: int64 */ - createdAt: number; - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** Format: int64 */ - lastUsedAt?: number; - token: string; - /** Format: int64 */ - updatedAt: number; - }; - S3ContentStorageConfigDto: { - accessKey?: string; - bucketName: string; - /** @enum {string} */ - contentStorageType?: "S3" | "AZURE"; - enabled?: boolean; - endpoint: string; - /** @description Specifies an optional subfolder structure within s3 bucket to which content will be stored */ - path: string; - secretKey?: string; - signingRegion: string; - }; - S3ContentStorageConfigModel: { - bucketName: string; - endpoint: string; - path: string; - signingRegion: string; - }; - ScreenshotInfoDto: { - location?: string; - positions?: components["schemas"]["KeyInScreenshotPositionDto"][]; - text?: string; - }; - /** @description Screenshots of the key */ - ScreenshotModel: { - /** Format: date-time */ - createdAt?: string; - fileUrl: string; - /** @description File name, which may be downloaded from the screenshot path. - * - * When images are secured. Encrypted timestamp is appended to the filename. - * */ - filename: string; - /** Format: int32 */ - height?: number; - /** Format: int64 */ - id: number; - keyReferences: components["schemas"]["KeyInScreenshotModel"][]; - location?: string; - middleSized?: string; - middleSizedUrl?: string; - /** @description Thumbnail file name, which may be downloaded from the screenshot path. - * - * When images are secured. Encrypted timestamp is appended to the filename. - * */ - thumbnail: string; - thumbnailUrl: string; - /** Format: int32 */ - width?: number; - }; - SelectAllResponse: { - ids: number[]; - }; - SelfHostedEePlanModel: { - enabledFeatures: ("GRANULAR_PERMISSIONS" | "PRIORITIZED_FEATURE_REQUESTS" | "PREMIUM_SUPPORT" | "DEDICATED_SLACK_CHANNEL" | "ASSISTED_UPDATES" | "DEPLOYMENT_ASSISTANCE" | "BACKUP_CONFIGURATION" | "TEAM_TRAINING" | "ACCOUNT_MANAGER" | "STANDARD_SUPPORT" | "PROJECT_LEVEL_CONTENT_STORAGES" | "WEBHOOKS" | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" | "AI_PROMPT_CUSTOMIZATION" | "SLACK_INTEGRATION" | "TASKS" | "SSO" | "ORDER_TRANSLATION" | "GLOSSARY" | "TRANSLATION_LABELS")[]; - free: boolean; - hasYearlyPrice: boolean; - /** Format: int64 */ - id: number; - includedUsage: components["schemas"]["PlanIncludedUsageModel"]; - isPayAsYouGo: boolean; - name: string; - nonCommercial: boolean; - prices: components["schemas"]["PlanPricesModel"]; - public: boolean; - }; - SetDisabledLanguagesRequest: { - languageIds: number[]; - }; - SetFileNamespaceRequest: { - namespace?: string; - }; - SetKeysNamespaceRequest: { - keyIds: number[]; - namespace?: string; - }; - SetLanguagePromptCustomizationRequest: { - /** - * @description The language description used in the prompt that helps AI translator to fine tune results for specific language - * @example For arabic language, we are super formal. Always use these translations: - * Paper -> ورقة - * Office -> مكتب - * - */ - description?: string; - }; - SetLicenseKeyDto: { - licenseKey: string; - }; - SetMachineTranslationSettingsDto: { - settings: components["schemas"]["MachineTranslationLanguagePropsDto"][]; - }; - SetOrganizationRoleDto: { - /** @enum {string} */ - roleType: "MEMBER" | "OWNER" | "MAINTAINER"; - }; - SetProjectPromptCustomizationRequest: { - /** - * @description The project description used in the prompt that helps AI translator to understand the context of your project. - * @example We are Dunder Mifflin, a paper company. We sell paper. This is an project of translations for out paper selling app. - */ - description?: string; - }; - SetTranslationsResponseModel: { - /** - * Format: int64 - * @description Id of key record - */ - keyId: number; - keyIsPlural: boolean; - /** - * @description Name of key - * @example this_is_super_key - */ - keyName: string; - /** - * @description The namespace of the key - * @example homepage - */ - keyNamespace?: string; - /** - * @description Translations object containing values updated in this request - * @example { - * "en": { - * "id": 100000003, - * "text": "This is super translation!" - * } - * } - */ - translations: { - [key: string]: components["schemas"]["TranslationModel"]; - }; - }; - SetTranslationsStateStateRequest: { - keyIds: number[]; - languageIds: number[]; - /** @enum {string} */ - state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; - }; - SetTranslationsWithKeyDto: { - /** - * @description Key name to set translations for - * @example what_a_key_to_translate - */ - key: string; - /** - * @description List of languages to return translations for. - * - * If not provided, only modified translation will be provided. - * - * @example [ - * "en", - * "de", - * "fr" - * ] - */ - languagesToReturn?: string[]; - /** @description The namespace of the key. (When empty or null default namespace will be used) */ - namespace?: string; - /** - * @description Object mapping language tag to translation - * @example { - * "en": "What a translated value!", - * "cs": "Jaká to přeložená hodnota!" - * } - */ - translations: { - [key: string]: string; - }; - }; - SignUpDto: { - callbackUrl?: string; - email: string; - invitationCode?: string; - name: string; - organizationName?: string; - password: string; - recaptchaToken?: string; - /** @description Where did the user find us? */ - userSource?: string; - }; - SimpleGlossaryModel: { - /** - * @description Language tag for default translations for terms - * @example en - */ - baseLanguageTag: string; - /** Format: int64 */ - id: number; - name: string; - }; - SimpleGlossaryTermModel: { - description: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm: boolean; - /** @description When true, this term has the same translation across all target languages */ - flagNonTranslatable: boolean; - /** Format: int64 */ - id: number; - }; - SimpleGlossaryTermWithTranslationsModel: { - /** - * @description A detailed explanation or definition of the glossary term - * @example It's trademark - */ - description: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm: boolean; - /** @description When true, this term has the same translation across all target languages */ - flagNonTranslatable: boolean; - /** Format: int64 */ - id: number; - translations: components["schemas"]["GlossaryTermTranslationModel"][]; - }; - SimpleGlossaryWithStatsModel: { - /** - * Format: int64 - * @description Total number of projects currently using this glossary - * @example 69 - */ - assignedProjectsCount: number; - /** - * @description The primary language code used for terms (e.g., 'en' for English) - * @example en - */ - baseLanguageTag: string; - /** - * @description The name of one project using this glossary (can be shown as a preview) - * @example My Project - */ - firstAssignedProjectName?: string; - /** Format: int64 */ - id: number; - name: string; - }; - SimpleImportConflictResult: { - isOverridable: boolean; - keyName: string; - keyNamespace?: string; - language: string; - }; - SimpleOrganizationModel: { - avatar?: components["schemas"]["Avatar"]; - basePermissions: components["schemas"]["PermissionModel"]; - /** @example This is a beautiful organization full of beautiful and clever people */ - description?: string; - /** Format: int64 */ - id: number; - /** @example Beautiful organization */ - name: string; - /** @example btforg */ - slug: string; - }; - SimpleProjectModel: { - avatar?: components["schemas"]["Avatar"]; - baseLanguage?: components["schemas"]["LanguageModel"]; - description?: string; - icuPlaceholders: boolean; - /** Format: int64 */ - id: number; - name: string; - slug?: string; - }; - /** @description User who created the comment */ - SimpleUserAccountModel: { - avatar?: components["schemas"]["Avatar"]; - deleted: boolean; - /** Format: int64 */ - id: number; - name?: string; - username: string; - }; - SingleStepImportRequest: { - /** @description If true, placeholders from other formats will be converted to ICU when possible */ - convertPlaceholdersToIcu: boolean; - /** @description If false, only updates keys, skipping the creation of new keys */ - createNewKeys: boolean; - /** @description If `false`, import will apply all `non-failed` overrides and reports `unresolvedConflict` - * .If `true`, import will fail completely on unresolved conflict and won't apply any changes. Unresolved conflicts are reported in the `params` of the error response */ - errorOnUnresolvedConflict?: boolean; - /** @description Definition of mapping for each file to import. */ - fileMappings: components["schemas"]["ImportFileMapping"][]; - /** - * @description Whether to override existing translation data. - * - * When set to `KEEP`, existing translations will be kept. - * When set to `NO_FORCE`, error will be thrown on conflict. - * When set to `OVERRIDE`, existing translations will be overwritten - * @enum {string} - */ - forceMode: "OVERRIDE" | "KEEP" | "NO_FORCE"; - /** @description Maps the languages from imported files to languages existing in the Tolgee platform. - * - * Use this field only when your files contain multiple languages (e.g., XLIFF files). - * - * Otherwise, use the `languageTag` property of `fileMappings`. - * - * Example: In xliff files, there are `source-language` and `target-language` attributes defined on `file` element. Using this field you can map source and target values to languages stored in the Tolgee Platform. */ - languageMappings?: components["schemas"]["LanguageMapping"][]; - /** @description If true, key descriptions will be overridden by the import */ - overrideKeyDescriptions: boolean; - /** - * @description Some translations are forbidden or protected: - * - * When set to `RECOMMENDED` it will fail for DISABLED translations and protected REVIEWED translations. - * When set to `ALL` it will fail for DISABLED translations, but will try to update protected REVIEWED translations (fails only if user has no permission) - * - * @enum {string} - */ - overrideMode?: "RECOMMENDED" | "ALL"; - /** @description If yes, keys from project that were not included in import will be deleted (only within namespaces which are included in the import). */ - removeOtherKeys?: boolean; - /** - * @description When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys. - * @example . - */ - structureDelimiter?: string; - /** @description Keys created by this import will be tagged with these tags. It add tags only to new keys. The keys that already exist will not be tagged. */ - tagNewKeys: string[]; - }; - /** @description List of keys to import */ - SingleStepImportResolvableItemRequest: { - /** - * @description Key name to set translations for - * @example what_a_key_to_translate - */ - name: string; - /** @description The namespace of the key. (When empty or null default namespace will be used) */ - namespace?: string; - screenshots?: components["schemas"]["KeyScreenshotDto"][]; - /** @description Object mapping language tag to translation */ - translations: { - [key: string]: components["schemas"]["SingleStepImportResolvableTranslationRequest"]; - }; - }; - SingleStepImportResolvableRequest: { - /** @description If `false`, import will apply all `non-failed` overrides and reports `unresolvedConflict` - * .If `true`, import will fail completely on unresolved conflict and won't apply any changes. Unresolved conflicts are reported in the `params` of the error response */ - errorOnUnresolvedConflict?: boolean; - /** @description List of keys to import */ - keys: components["schemas"]["SingleStepImportResolvableItemRequest"][]; - /** - * @description Some translations are forbidden or protected: - * - * When set to `RECOMMENDED` it will fail for DISABLED translations and protected REVIEWED translations. - * When set to `ALL` it will fail for DISABLED translations, but will try to update protected REVIEWED translations (fails only if user has no permission) - * - * @enum {string} - */ - overrideMode?: "RECOMMENDED" | "ALL"; - }; - /** @description Object mapping language tag to translation */ - SingleStepImportResolvableTranslationRequest: { - /** - * @description - * To ensure the import doesn't override something that should not be (in case data have changed unexpectedly), - * you can specify what do you "expect": - * - EXPECT_NO_CONFLICT: There should be no conflict, if there is, import fails - * - OVERRIDE: New translation is applied over the existing in every case (Default) - * - * @example OVERRIDE - * @enum {string} - */ - resolution?: "EXPECT_NO_CONFLICT" | "OVERRIDE"; - /** - * @description Translation text - * @example Hello! I am a translation! - */ - text: string; - }; - SlackCommandDto: { - channel_id: string; - channel_name: string; - command: string; - team_domain: string; - team_id: string; - text: string; - token?: string; - trigger_id?: string; - user_id: string; - user_name: string; - }; - SlackDTO: { - connected: boolean; - enabled: boolean; - }; - SlackUserInfoModel: { - slackAvatar: string; - slackId: string; - slackName?: string; - slackRealName?: string; - teamName: string; - }; - SsoGlobalPublicConfigDTO: { - clientId?: string; - customLoginText?: string; - customLogoUrl?: string; - domain?: string; - enabled: boolean; - }; - SsoOrganizationsPublicConfigDTO: { - enabled: boolean; - }; - SsoTenantModel: { - authorizationUri: string; - clientId: string; - clientSecret: string; - domain: string; - enabled: boolean; - force: boolean; - global: boolean; - tokenUri: string; - }; - SsoUrlResponse: { - redirectUrl: string; - }; - StorageTestResult: { - /** @enum {string} */ - message?: "unauthenticated" | "api_access_forbidden" | "api_key_not_found" | "invalid_api_key" | "invalid_project_api_key" | "project_api_key_expired" | "bad_credentials" | "mfa_enabled" | "invalid_otp_code" | "mfa_not_enabled" | "can_not_revoke_own_permissions" | "data_corrupted" | "invitation_code_does_not_exist_or_expired" | "language_tag_exists" | "language_name_exists" | "language_not_found" | "operation_not_permitted" | "registrations_not_allowed" | "project_not_found" | "resource_not_found" | "scope_not_found" | "key_exists" | "third_party_auth_error_message" | "third_party_auth_no_email" | "third_party_auth_non_matching_email" | "third_party_auth_no_sub" | "third_party_auth_unknown_error" | "email_already_verified" | "third_party_unauthorized" | "third_party_google_workspace_mismatch" | "third_party_switch_initiated" | "third_party_switch_conflict" | "username_already_exists" | "username_or_password_invalid" | "user_already_has_permissions" | "user_already_has_role" | "user_not_found" | "file_not_image" | "file_too_big" | "invalid_timestamp" | "email_not_verified" | "missing_callback_url" | "invalid_jwt_token" | "expired_jwt_token" | "general_jwt_error" | "cannot_find_suitable_address_part" | "slug_not_unique" | "user_is_not_member_of_organization" | "organization_has_no_other_owner" | "user_has_no_project_access" | "user_is_organization_owner" | "cannot_set_your_own_permissions" | "user_is_organization_member" | "property_not_mutable" | "import_language_not_from_project" | "existing_language_not_selected" | "conflict_is_not_resolved" | "language_already_selected" | "cannot_parse_file" | "could_not_resolve_property" | "cannot_add_more_then_100_languages" | "no_languages_provided" | "language_with_base_language_tag_not_found" | "language_not_from_project" | "namespace_not_from_project" | "cannot_delete_base_language" | "key_not_from_project" | "max_screenshots_exceeded" | "translation_not_from_project" | "can_edit_only_own_comment" | "request_parse_error" | "filter_by_value_state_not_valid" | "import_has_expired" | "tag_not_from_project" | "translation_text_too_long" | "invalid_recaptcha_token" | "cannot_leave_owning_project" | "cannot_leave_project_with_organization_role" | "dont_have_direct_permissions" | "tag_too_log" | "too_many_uploaded_images" | "one_or_more_images_not_found" | "screenshot_not_of_key" | "service_not_found" | "too_many_requests" | "translation_not_found" | "out_of_credits" | "key_not_found" | "organization_not_found" | "cannot_find_base_language" | "base_language_not_found" | "no_exported_result" | "cannot_set_your_own_role" | "only_translate_review_or_view_permission_accepts_view_languages" | "oauth2_token_url_not_set" | "oauth2_user_url_not_set" | "email_already_invited_or_member" | "price_not_found" | "invoice_not_from_organization" | "invoice_not_found" | "plan_not_found" | "plan_not_available_any_more" | "no_auto_translation_method" | "cannot_translate_base_language" | "pat_not_found" | "invalid_pat" | "pat_expired" | "operation_unavailable_for_account_type" | "validation_email_is_not_valid" | "current_password_required" | "cannot_create_organization" | "wrong_current_password" | "wrong_param_type" | "user_missing_password" | "expired_super_jwt_token" | "cannot_delete_your_own_account" | "cannot_sort_by_this_column" | "namespace_not_found" | "namespace_exists" | "invalid_authentication_method" | "unknown_sort_property" | "only_review_permission_accepts_state_change_languages" | "only_translate_or_review_permission_accepts_translate_languages" | "cannot_set_language_permissions_for_admin_scope" | "cannot_set_view_languages_without_translations_view_scope" | "cannot_set_translate_languages_without_translations_edit_scope" | "cannot_set_state_change_languages_without_translations_state_edit_scope" | "language_not_permitted" | "scopes_has_to_be_set" | "set_exactly_one_of_scopes_or_type" | "translation_exists" | "import_keys_error" | "provide_only_one_of_screenshots_and_screenshot_uploaded_image_ids" | "multiple_projects_not_supported" | "plan_translation_limit_exceeded" | "feature_not_enabled" | "license_key_not_found" | "cannot_set_view_languages_without_for_level_based_permissions" | "cannot_set_different_translate_and_state_change_languages_for_level_based_permissions" | "cannot_disable_your_own_account" | "subscription_not_found" | "invoice_does_not_have_usage" | "customer_not_found" | "subscription_not_active" | "organization_already_subscribed" | "organization_not_subscribed" | "license_key_used_by_another_instance" | "translation_spending_limit_exceeded" | "credit_spending_limit_exceeded" | "seats_spending_limit_exceeded" | "this_instance_is_already_licensed" | "big_meta_not_from_project" | "mt_service_not_enabled" | "project_not_selected" | "organization_not_selected" | "plan_has_subscribers" | "translation_failed" | "batch_job_not_found" | "key_exists_in_namespace" | "tag_is_blank" | "execution_failed_on_management_error" | "translation_api_rate_limit" | "cannot_finalize_activity" | "formality_not_supported_by_service" | "language_not_supported_by_service" | "rate_limited" | "pat_access_not_allowed" | "pak_access_not_allowed" | "cannot_modify_disabled_translation" | "azure_config_required" | "s3_config_required" | "content_storage_config_required" | "content_storage_test_failed" | "content_storage_config_invalid" | "invalid_connection_string" | "cannot_create_azure_storage_client" | "s3_access_key_required" | "azure_connection_string_required" | "s3_secret_key_required" | "cannot_store_file_to_content_storage" | "unexpected_error_while_publishing_to_content_storage" | "webhook_responded_with_non_200_status" | "unexpected_error_while_executing_webhook" | "content_storage_is_in_use" | "cannot_set_state_for_missing_translation" | "no_project_id_provided" | "license_key_not_provided" | "subscription_already_canceled" | "user_is_subscribed_to_paid_plan" | "cannot_create_free_plan_without_fixed_type" | "cannot_modify_plan_free_status" | "key_id_not_provided" | "free_self_hosted_seat_limit_exceeded" | "advanced_params_not_supported" | "plural_forms_not_found_for_language" | "nested_plurals_not_supported" | "message_is_not_plural" | "content_outside_plural_forms" | "invalid_plural_form" | "multiple_plurals_not_supported" | "custom_values_json_too_long" | "unsupported_po_message_format" | "plural_forms_data_loss" | "current_user_does_not_own_image" | "user_cannot_view_this_organization" | "user_is_not_owner_of_organization" | "user_is_not_owner_or_maintainer_of_organization" | "pak_created_for_different_project" | "custom_slug_is_only_applicable_for_custom_storage" | "invalid_slug_format" | "batch_job_cancellation_timeout" | "import_failed" | "cannot_add_more_then_1000_languages" | "no_data_to_import" | "multiple_namespaces_mapped_to_single_file" | "multiple_mappings_for_same_file_language_name" | "multiple_mappings_for_null_file_language_name" | "too_many_mappings_for_file" | "missing_placeholder_in_template" | "tag_not_found" | "cannot_parse_encrypted_slack_login_data" | "slack_workspace_not_found" | "cannot_fetch_user_details_from_slack" | "slack_missing_scope" | "slack_not_connected_to_your_account" | "slack_invalid_command" | "slack_not_subscribed_yet" | "slack_connection_failed" | "tolgee_account_already_connected" | "slack_not_configured" | "slack_workspace_already_connected" | "slack_connection_error" | "email_verification_code_not_valid" | "cannot_subscribe_to_free_plan" | "plan_auto_assignment_only_for_free_plans" | "plan_auto_assignment_only_for_private_plans" | "task_not_found" | "task_not_finished" | "task_not_open" | "translation_agency_not_found" | "this_feature_is_not_implemented_in_oss" | "sso_token_exchange_failed" | "sso_user_info_retrieval_failed" | "sso_id_token_expired" | "sso_user_cannot_create_organization" | "sso_cant_verify_user" | "sso_auth_missing_domain" | "sso_domain_not_found_or_disabled" | "authentication_method_disabled" | "native_authentication_disabled" | "invitation_organization_mismatch" | "user_is_managed_by_organization" | "cannot_set_sso_provider_missing_fields" | "namespaces_cannot_be_disabled_when_namespace_exists" | "namespace_cannot_be_used_when_feature_is_disabled" | "sso_domain_not_allowed" | "sso_login_forced_for_this_account" | "use_sso_for_authentication_instead" | "date_has_to_be_in_the_future" | "custom_plan_and_plan_id_cannot_be_set_together" | "specify_plan_id_or_custom_plan" | "custom_plans_has_to_be_private" | "cannot_create_free_plan_with_prices" | "subscription_not_scheduled_for_cancellation" | "cannot_cancel_trial" | "cannot_update_without_modification" | "current_subscription_is_not_trialing" | "sorting_and_paging_is_not_supported_when_using_cursor" | "strings_metric_are_not_supported" | "plan_key_limit_exceeded" | "keys_spending_limit_exceeded" | "plan_seat_limit_exceeded" | "instance_not_using_license_key" | "invalid_path" | "llm_provider_not_found" | "llm_provider_error" | "prompt_not_found" | "llm_provider_not_returned_json" | "llm_template_parsing_error" | "llm_rate_limited" | "llm_provider_timeout" | "no_llm_provider_configured" | "glossary_not_found" | "glossary_term_not_found" | "glossary_term_translation_not_found" | "glossary_non_translatable_term_cannot_be_translated" | "llm_content_filter" | "llm_provider_empty_response" | "label_not_found" | "label_not_from_project" | "label_already_exists" | "filter_by_value_label_not_valid" | "suggestion_not_found" | "user_can_only_delete_his_suggestions" | "cannot_modify_reviewed_translation" | "cannot_modify_keys" | "expect_no_conflict_failed" | "suggestion_cant_be_plural" | "suggestion_must_be_plural" | "duplicate_suggestion"; - params?: Record[]; - success: boolean; - }; - StreamingResponseBody: Record; - SuggestRequestDto: { - /** @description Text value of base translation. Useful, when base translation is not stored yet. */ - baseText?: string; - /** @description Whether base text is plural. This value is ignored if baseText is null. */ - isPlural?: boolean; - /** - * Format: int64 - * @description Key Id to get results for. Use when key is stored already. - */ - keyId?: number; - plural?: boolean; - /** @description List of services to use. If null, then all enabled services are used. */ - services?: ("GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT")[]; - /** Format: int64 */ - targetLanguageId: number; - }; - SuggestResultModel: { - /** @description If true, the base translation was empty and no translation was provided. */ - baseBlank: boolean; - /** - * @deprecated - * @description String translations provided by enabled services. (deprecated, use `result` instead) - * @example - * { - * "GOOGLE": "This was translated by Google", - * "TOLGEE": "This was translated by Tolgee Translator", - * } - * - */ - machineTranslations?: { - [key: string]: string; - }; - /** - * @description Results provided by enabled services. - * @example { - * "GOOGLE": { - * "output": "This was translated by Google", - * "contextDescription": null - * }, - * "TOLGEE": { - * "output": "This was translated by Tolgee Translator", - * "contextDescription": "This is an example in swagger" - * } - * } - */ - result?: { - [key: string]: components["schemas"]["TranslationItemModel"]; - }; - }; - SumUsageItemModel: { - total: number; - /** Format: int64 */ - unusedQuantity: number; - /** Format: int64 */ - usedQuantity: number; - /** Format: int64 */ - usedQuantityOverPlan: number; - }; - SuperTokenRequest: { - /** @description Has to be provided when TOTP enabled */ - otp?: string; - /** @description Has to be provided when TOTP not enabled */ - password?: string; - }; - TagKeyDto: { - name: string; - }; - TagKeysRequest: { - keyIds: number[]; - tags: string[]; - }; - TagModel: { - /** Format: int64 */ - id: number; - name: string; - }; - TaskKeysResponse: { - keys: number[]; - }; - TaskModel: { - agency?: components["schemas"]["TranslationAgencySimpleModel"]; - assignees: components["schemas"]["SimpleUserAccountModel"][]; - author?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - baseCharacterCount: number; - /** Format: int64 */ - baseWordCount: number; - /** Format: int64 */ - closedAt?: number; - /** Format: int64 */ - createdAt?: number; - description: string; - /** Format: int64 */ - doneItems: number; - /** Format: int64 */ - dueDate?: number; - language: components["schemas"]["LanguageModel"]; - name?: string; - /** Format: int64 */ - number: number; - /** @enum {string} */ - state: "NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED"; - /** Format: int64 */ - totalItems: number; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - }; - TaskPerUserReportModel: { - /** Format: int64 */ - baseCharacterCount: number; - /** Format: int64 */ - baseWordCount: number; - /** Format: int64 */ - doneItems: number; - user: components["schemas"]["SimpleUserAccountModel"]; - }; - TaskWithProjectModel: { - agency?: components["schemas"]["TranslationAgencySimpleModel"]; - assignees: components["schemas"]["SimpleUserAccountModel"][]; - author?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - baseCharacterCount: number; - /** Format: int64 */ - baseWordCount: number; - /** Format: int64 */ - closedAt?: number; - /** Format: int64 */ - createdAt?: number; - description: string; - /** Format: int64 */ - doneItems: number; - /** Format: int64 */ - dueDate?: number; - language: components["schemas"]["LanguageModel"]; - name?: string; - /** Format: int64 */ - number: number; - project: components["schemas"]["SimpleProjectModel"]; - /** @enum {string} */ - state: "NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED"; - /** Format: int64 */ - totalItems: number; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - }; - TextNode: Record; - TranslationAgencySimpleModel: { - avatar?: components["schemas"]["Avatar"]; - /** Format: int64 */ - id: number; - name: string; - url?: string; - }; - TranslationCommentDto: { - /** @enum {string} */ - state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; - text: string; - }; - TranslationCommentModel: { - author: components["schemas"]["SimpleUserAccountModel"]; - /** - * Format: date-time - * @description Date when it was created - */ - createdAt: string; - /** - * Format: int64 - * @description Id of translation comment record - */ - id: number; - /** - * @description State of translation - * @enum {string} - */ - state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; - /** @description Text of comment */ - text: string; - /** - * Format: date-time - * @description Date when it was updated - */ - updatedAt: string; - }; - TranslationCommentWithLangKeyDto: { - /** Format: int64 */ - keyId: number; - /** Format: int64 */ - languageId: number; - /** @enum {string} */ - state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; - text: string; - }; - TranslationHistoryModel: { - author?: components["schemas"]["SimpleUserAccountModel"]; - /** @description Modified fields */ - modifications?: { - [key: string]: components["schemas"]["PropertyModification"]; - }; - /** @enum {string} */ - revisionType: "ADD" | "MOD" | "DEL"; - /** - * Format: int64 - * @description Unix timestamp of the revision - */ - timestamp: number; - }; - /** - * @description Results provided by enabled services. - * @example { - * "GOOGLE": { - * "output": "This was translated by Google", - * "contextDescription": null - * }, - * "TOLGEE": { - * "output": "This was translated by Tolgee Translator", - * "contextDescription": "This is an example in swagger" - * } - * } + * When null, resulting file will be a flat key-value object. */ - TranslationItemModel: { - contextDescription?: string; - output: string; - }; - TranslationLabelRequest: { - /** Format: int64 */ - keyId: number; - /** Format: int64 */ - labelId: number; - /** Format: int64 */ - languageId: number; - }; - TranslationMemoryItemModel: { - baseText: string; - keyName: string; - /** Format: float */ - similarity: number; - targetText: string; - }; - TranslationModel: { - /** @description Was translated using Translation Memory or Machine translation service? */ - auto: boolean; - /** - * Format: int64 - * @description Id of translation record - */ - id: number; - /** - * @description Which machine translation service was used to auto translate this - * @enum {string} - */ - mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - /** @description Whether base language translation was changed after this translation was updated */ - outdated: boolean; - /** - * @description State of translation - * @enum {string} - */ - state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; - /** @description Translation text */ - text?: string; - }; - TranslationSuggestionAcceptResponse: { - accepted: components["schemas"]["TranslationSuggestionModel"]; - declined: number[]; - }; - TranslationSuggestionModel: { - author: components["schemas"]["SimpleUserAccountModel"]; - /** Format: date-time */ - createdAt: string; - /** Format: int64 */ - id: number; - isPlural: boolean; - /** Format: int64 */ - keyId: number; - /** Format: int64 */ - languageId: number; - /** @enum {string} */ - state: "ACTIVE" | "ACCEPTED" | "DECLINED"; - translation?: string; - /** Format: date-time */ - updatedAt: string; - }; - /** @description First suggestion */ - TranslationSuggestionSimpleModel: { - author: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - id: number; - isPlural: boolean; - /** @enum {string} */ - state: "ACTIVE" | "ACCEPTED" | "DECLINED"; - translation?: string; - }; + structureDelimiter?: string; /** - * @description Translations object - * @example - * { - * "en": { - * "id": 100000003, - * "text": "This is super translation!" - * "state": "TRANSLATED", - * "commentCount": 1 - * } - * } - * + * Enables filtering of returned keys by their tags. + * Only keys with at least one provided tag will be returned. + * Optional, filtering is not applied if not specified. */ - TranslationViewModel: { - /** - * Format: int64 - * @description Number of active suggestions - */ - activeSuggestionCount: number; - /** @description Was translated using Translation Memory or Machine translation service? */ - auto: boolean; - /** - * Format: int64 - * @description Count of translation comments - */ - commentCount: number; - /** @description Was translation memory used to translate this? */ - fromTranslationMemory: boolean; - /** - * Format: int64 - * @description Id of translation record - */ - id?: number; - /** @description Labels assigned to this translation */ - labels?: components["schemas"]["LabelModel"][]; - /** - * @description Which machine translation service was used to auto translate this - * @enum {string} - */ - mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - /** @description Whether base language translation was changed after this translation was updated */ - outdated: boolean; - /** - * @description State of translation - * @enum {string} - */ - state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; - /** @description First suggestion */ - suggestions?: components["schemas"]["TranslationSuggestionSimpleModel"][]; - /** @description Translation text */ - text?: string; - /** - * Format: int64 - * @description Number of all suggestions - */ - totalSuggestionCount: number; - /** - * Format: int64 - * @description Count of unresolved translation comments - */ - unresolvedCommentCount: number; - }; - TranslationWithCommentModel: { - comment: components["schemas"]["TranslationCommentModel"]; - translation: components["schemas"]["TranslationModel"]; - }; - UntagKeysRequest: { - keyIds: number[]; - tags: string[]; - }; - UpdateGlossaryRequest: { - /** @description Projects assigned to glossary; when null, assigned projects will be kept unchanged. */ - assignedProjectIds?: number[]; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - baseLanguageTag: string; - /** - * @description Glossary name - * @example My glossary - */ - name: string; - }; - UpdateGlossaryTermTranslationRequest: { - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - languageTag: string; - /** - * @description Translation text - * @example Translated text to language of languageTag - */ - text: string; - }; - UpdateGlossaryTermWithTranslationRequest: { - description?: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation?: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive?: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm?: boolean; - /** @description When true, this term will have the same translation across all target languages */ - flagNonTranslatable?: boolean; - text?: string; - }; - UpdateNamespaceDto: { - name: string; - }; - UpdatePatDto: { - /** @description New description of the PAT */ - description: string; - }; - UpdateTaskKeyRequest: { - done: boolean; - }; - UpdateTaskKeyResponse: { - /** @description Task key is marked as done */ - done: boolean; - /** @description Task progress is 100% */ - taskFinished: boolean; - }; - UpdateTaskKeysRequest: { - /** @description Keys to add to task */ - addKeys?: number[]; - /** @description Keys to remove from task */ - removeKeys?: number[]; - }; - UpdateTaskRequest: { - assignees: number[]; - description: string; - /** - * Format: int64 - * @description Due to date in epoch format (milliseconds). - * @example 1661172869000 - */ - dueDate?: number; - name?: string; - }; - UploadedImageModel: { - /** Format: date-time */ - createdAt: string; - fileUrl: string; - filename: string; - /** Format: int64 */ - id: number; - location?: string; - requestFilename: string; - }; - UsageModel: { - /** @description Relevant for invoices only. When there are applied stripe credits, we need to reduce the total price by this amount. */ - appliedStripeCredits?: number; - credits?: components["schemas"]["SumUsageItemModel"]; - keys: components["schemas"]["AverageProportionalUsageItemModel"]; - seats: components["schemas"]["AverageProportionalUsageItemModel"]; - subscriptionPrice?: number; - total: number; - translations: components["schemas"]["AverageProportionalUsageItemModel"]; - }; - UsedNamespaceModel: { - /** - * Format: int64 - * @description The id of namespace. Null for default namespace. - * @example 10000048 - */ - id?: number; - /** - * @description Name of namespace. Null if default. - * @example homepage - */ - name?: string; - }; - UserAccountInProjectModel: { - avatar?: components["schemas"]["Avatar"]; - computedPermission: components["schemas"]["ComputedPermissionModel"]; - directPermission?: components["schemas"]["PermissionWithAgencyModel"]; - /** Format: int64 */ - id: number; - name?: string; - organizationBasePermission: components["schemas"]["PermissionModel"]; - /** @enum {string} */ - organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - username: string; - }; - UserAccountModel: { - avatar?: components["schemas"]["Avatar"]; - deleted: boolean; - disabled: boolean; - emailAwaitingVerification?: string; - /** @enum {string} */ - globalServerRole: "USER" | "ADMIN"; - /** Format: int64 */ - id: number; - name?: string; - username: string; - }; - UserAccountWithOrganizationRoleModel: { - avatar?: components["schemas"]["Avatar"]; - /** Format: int64 */ - id: number; - name: string; - /** @enum {string} */ - organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - projectsWithDirectPermission: components["schemas"]["SimpleProjectModel"][]; - username: string; - }; - UserMfaRecoveryRequestDto: { - password: string; - }; - UserPreferencesModel: { - language?: string; - /** Format: int64 */ - preferredOrganizationId?: number; - }; - UserTotpDisableRequestDto: { - password: string; - }; - UserTotpEnableRequestDto: { - otp: string; - password: string; - totpKey: string; - }; - UserUpdatePasswordRequestDto: { - currentPassword: string; - password: string; - }; - UserUpdateRequestDto: { - /** @description Callback url for link sent in e-mail. This may be omitted, when server has set frontEndUrl in properties. */ - callbackUrl?: string; - currentPassword?: string; - email: string; - name: string; - }; - V2EditApiKeyDto: { - description?: string; - scopes: string[]; - }; - VariablesResponseDto: { - data: components["schemas"]["PromptVariableDto"][]; - }; - WebhookConfigModel: { - /** - * Format: int64 - * @description Date of the first failed webhook request. If the last webhook request is successful, this value is set to null. - */ - firstFailed?: number; - /** Format: int64 */ - id: number; - /** - * Format: int64 - * @description Date of the last webhook request. - */ - lastExecuted?: number; - url: string; - webhookSecret: string; - }; - WebhookConfigRequest: { - url: string; - }; - WebhookTestResponse: { - success: boolean; - }; - WorkspaceModel: { - /** Format: int64 */ - id: number; - slackTeamId: string; - slackTeamName: string; - }; - }; - responses: never; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export interface operations { - doExportJsonZip: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/zip": components["schemas"]["StreamingResponseBody"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAuthenticationUrl: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DomainRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SsoUrlResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - authenticateUser_1: { - parameters: { - query?: { - code?: string; - redirect_uri?: string; - invitationCode?: string; - domain?: string; - }; - header?: never; - path: { - serviceType: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getPublicConfiguration: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PublicConfigurationDTO"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - authenticateUser: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LoginRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - invitationInfo: { - parameters: { - query?: never; - header?: never; - path: { - code: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PublicInvitationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - resetPasswordRequest: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ResetPasswordRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - resetPasswordSet: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ResetPassword"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - resetPasswordValidate: { - parameters: { - query?: never; - header?: never; - path: { - code: string; - email: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - signUp: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SignUpDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - validateEmail: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TextNode"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": boolean; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - verifyEmail: { - parameters: { - query?: never; - header?: never; - path: { - userId: number; - code: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getOrganizations: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelOrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getUsers: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelUserAccountModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteUser: { - parameters: { - query?: never; - header?: never; - path: { - userId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - disableUser: { - parameters: { - query?: never; - header?: never; - path: { - userId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - enableUser: { - parameters: { - query?: never; - header?: never; - path: { - userId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - generateUserToken: { - parameters: { - query?: never; - header?: never; - path: { - userId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setRole: { - parameters: { - query?: never; - header?: never; - path: { - userId: number; - role: "USER" | "ADMIN"; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getLatest: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AnnouncementDto"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - dismiss: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - allByUser: { - parameters: { - query: { - pageable: components["schemas"]["Pageable"]; - filterProjectId?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelApiKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_15: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateApiKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["RevealedApiKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getScopes: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getCurrent_1: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ApiKeyWithLanguagesModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getCurrentPermissions: { - parameters: { - query?: { - /** @description Required when using with PAT */ - projectId?: number; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ApiKeyPermissionsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_11: { - parameters: { - query?: never; - header?: never; - path: { - apiKeyId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["V2EditApiKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ApiKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_15: { - parameters: { - query?: never; - header?: never; - path: { - apiKeyId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - regenerate_1: { - parameters: { - query?: never; - header?: never; - path: { - apiKeyId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["RegenerateApiKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["RevealedApiKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_24: { - parameters: { - query?: never; - header?: never; - path: { - keyId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ApiKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getCurrentAuthProvider: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AuthProviderDto"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteCurrentAuthProvider: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getChangedAuthProvider: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AuthProviderDto"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - acceptChangeAuthProvider: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["AcceptAuthProviderChangeRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - rejectChangeAuthProvider: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getUsage_1: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CurrentUsageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getInfo_5: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["EeSubscriptionModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - prepareSetLicenseKey: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetLicenseKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PrepareSetEeLicenceKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - refreshSubscription: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["EeSubscriptionModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - release: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setLicenseKey: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetLicenseKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["EeSubscriptionModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - upload: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - image: string; - info?: components["schemas"]["ImageUploadInfoDto"]; - }; - }; - }; - responses: { - /** @description Created */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "*/*": components["schemas"]["UploadedImageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_14: { - parameters: { - query?: never; - header?: never; - path: { - ids: number[]; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - acceptInvitation: { - parameters: { - query?: never; - header?: never; - path: { - code: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteInvitation: { - parameters: { - query?: never; - header?: never; - path: { - invitationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getNotifications: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - /** @description Filter by the `seen` parameter. - * - * no value = request everything - * - * true = only seen - * - * false = only unseen */ - filterSeen?: boolean; - cursor?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelWithNextCursorNotificationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getNotificationsSettings: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["NotificationSettingModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - putNotificationSetting: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["NotificationSettingsRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - markNotificationsAsSeen: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["NotificationsMarkSeenRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_12: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - filterCurrentUserOwner?: boolean; - search?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelOrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_12: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["OrganizationDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_23: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_10: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["OrganizationDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_13: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - uploadAvatar_2: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - avatar: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - removeAvatar_2: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - inviteUser_1: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["OrganizationInviteUserDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OrganizationInvitationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - leaveOrganization: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllProjects_1: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllUsers_1: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelUserAccountWithOrganizationRoleModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllBaseLanguagesInUse: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - projectIds?: number[]; - }; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelOrganizationLanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_14: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelSimpleGlossaryModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_13: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateGlossaryRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GlossaryModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllWithStats: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelSimpleGlossaryWithStatsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_20: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GlossaryModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_8: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateGlossaryRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GlossaryModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_11: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAssignedProjects: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelSimpleProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getLanguages: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelGlossaryLanguageDto"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_15: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - languageTags?: string[]; - }; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelSimpleGlossaryTermModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_14: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateGlossaryTermWithTranslationRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CreateUpdateGlossaryTermResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteMultiple: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DeleteMultipleGlossaryTermsRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_21: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - termId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GlossaryTermModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_9: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - termId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateGlossaryTermWithTranslationRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CreateUpdateGlossaryTermResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_12: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - termId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_12: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - termId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateGlossaryTermTranslationRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GlossaryTermTranslationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_22: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - glossaryId: number; - termId: number; - languageTag: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["GlossaryTermTranslationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllIds: { - parameters: { - query?: { - search?: string; - languageTags?: string[]; - }; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLong"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllWithTranslations: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - languageTags?: string[]; - }; - header?: never; - path: { - organizationId: number; - glossaryId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelSimpleGlossaryTermWithTranslationsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getInvitations: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelOrganizationInvitationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllLanguagesInUse: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - projectIds?: number[]; - }; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelOrganizationLanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_13: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLlmProviderModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createProvider: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LlmProviderRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LlmProviderModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAvailableProviders: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLlmProviderSimpleModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getServerProviders: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLlmProviderSimpleModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updateProvider: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - providerId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LlmProviderRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LlmProviderModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteProvider: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - providerId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getOrganizationCredits: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CreditBalanceModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllWithStatistics_2: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setBasePermissions: { - parameters: { - query: { - /** - * @description Granted scopes to all projects for all organization users without direct project permissions set. - * @example [ - * "translations.view", - * "translations.edit" - * ] - */ - scopes: string[]; - }; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setBasePermissions_1: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - permissionType: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - connectWorkspace: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ConnectToSlackDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - connectToSlack: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ConnectToSlackUrlModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getConnectedWorkspaces: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelWorkspaceModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - disconnectWorkspace: { - parameters: { - query?: never; - header?: never; - path: { - workspaceId: number; - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - findProvider: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SsoTenantModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setProvider: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateProviderRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SsoTenantModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getUsage: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PublicUsageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - removeUser: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - userId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setUserRole: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - userId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetOrganizationRoleDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_19: { - parameters: { - query?: never; - header?: never; - path: { - slug: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllProjects: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - slug: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllWithStatistics_1: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - slug: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_11: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelPatModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_11: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreatePatDto"]; - }; - }; - responses: { - /** @description Created */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "*/*": components["schemas"]["RevealedPatModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getCurrent: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PatWithUserModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_18: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PatModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_7: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdatePatDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PatModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_10: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - regenerate: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["RegeneratePatDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["RevealedPatModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getPreferred: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PrivateOrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll: { - parameters: { - query?: { - /** @description Filter projects by id */ - filterId?: number[]; - /** @description Filter projects without id */ - filterNotId?: number[]; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createProject: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateProjectRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllWithStatistics: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_8: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - editProject: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["EditProjectRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteProject: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getActivity: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelProjectActivityModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getSingleRevision: { - parameters: { - query?: never; - header?: never; - path: { - revisionId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectActivityModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getModifiedEntitiesByRevision: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - /** @description Filters results by specific entity class */ - filterEntityClass?: string[]; - }; - header?: never; - path: { - revisionId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelModifiedEntityModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAiPlaygroundResult: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["AiPlaygroundResultRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelAiPlaygroundResultModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getPromptProjectCustomization: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectAiPromptCustomizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setPromptProjectCustomization: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetProjectPromptCustomizationRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectAiPromptCustomizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllKeys: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getDisabledLanguages_2: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelKeyDisabledLanguagesModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - allByProject: { - parameters: { - query: { - pageable: components["schemas"]["Pageable"]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelApiKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAutoTranslationSettings: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AutoTranslationConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setAutoTranslationSettings: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["AutoTranslationSettingsDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["AutoTranslationConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - uploadAvatar_1: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - avatar: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - removeAvatar_1: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - list: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelBatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_6: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - cancel: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - store_2: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["BigMetaDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - list_4: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelContentDeliveryConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_10: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentDeliveryConfigRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ContentDeliveryConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_17: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ContentDeliveryConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_6: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentDeliveryConfigRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ContentDeliveryConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - post: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_9: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - list_3: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelContentStorageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_9: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentStorageRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ContentStorageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - test_1: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentStorageRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["StorageTestResult"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_16: { - parameters: { - query?: never; - header?: never; - path: { - contentStorageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ContentStorageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_5: { - parameters: { - query?: never; - header?: never; - path: { - contentStorageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentStorageRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ContentStorageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_8: { - parameters: { - query?: never; - header?: never; - path: { - contentStorageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - testExisting: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentStorageRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["StorageTestResult"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - currentJobs: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelBatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - exportData: { - parameters: { - query?: { - /** - * @description Languages to be contained in export. - * - * If null, all languages are exported - * @example en - */ - languages?: string[]; - /** @description Format to export to */ - format?: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS"; - /** @description Delimiter to structure file content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. - * - * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), - * specific formats like `YAML_RUBY` don't honor this parameter. */ - structureDelimiter?: string; - /** @description Filter key IDs to be contained in export */ - filterKeyId?: number[]; - /** @description Filter key IDs not to be contained in export */ - filterKeyIdNot?: number[]; - /** @description Filter keys tagged by. - * - * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ - filterTag?: string; - /** @description Filter keys tagged by one of provided tags */ - filterTagIn?: string[]; - /** @description Filter keys not tagged by one of provided tags */ - filterTagNotIn?: string[]; - /** @description Filter keys with prefix */ - filterKeyPrefix?: string; - /** @description Filter translations with state. By default, all states except untranslated is exported. */ - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ - filterNamespace?: string[]; - /** @description If false, it doesn't return zip of files, but it returns single file. - * - * This is possible only when single language is exported. Otherwise it returns "400 - Bad Request" response. */ - zip?: boolean; - /** @description Message format to be used for export. - * - * e.g. PHP_PO: Hello %s, ICU: Hello {name}. - * - * This property is honored only for generic formats like JSON or YAML. - * For specific formats like `YAML_RUBY` it's ignored. */ - messageFormat?: "C_SPRINTF" | "PHP_SPRINTF" | "JAVA_STRING_FORMAT" | "APPLE_SPRINTF" | "RUBY_SPRINTF" | "I18NEXT" | "ICU" | "PYTHON_PERCENT"; - /** @description This is a template that defines the structure of the resulting .zip file content. - * - * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, - * {androidLanguageTag}, {snakeLanguageTag}, {extension}. - * - * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, - * the English translations of the `home` namespace will be stored in `home/en.json`. - * - * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). - * - * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` - * but in Android format. (e.g., en-rUS) - * */ - fileStructureTemplate?: string; - /** @description If true, for structured formats (like JSON) arrays are supported. - * - * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ - supportArrays?: boolean; - /** @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). - * - * e.g. Key hello will be exported as <b>hello</b> */ - escapeHtml?: boolean; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description When multiple files are exported, they are zipped and returned as a single zip file. - * When a single file is exported, it is returned directly. */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/*": unknown; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - exportPost: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ExportParams"]; - }; - }; - responses: { - /** @description When multiple files are exported, they are zipped and returned as a single zip file. - * When a single file is exported, it is returned directly. */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/*": unknown; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getHighlights: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GlossaryHighlightsRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelGlossaryTermHighlightModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - addFiles: { - parameters: { - query?: { - /** - * @description When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys. - * @example . - */ - structureDelimiter?: string; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - files: string[]; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ImportAddFilesResultModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - cancelImport: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_4: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ImportSettingsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - store: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ImportSettingsRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ImportSettingsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllNamespaces: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelImportNamespaceModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - applyImport: { - parameters: { - query?: { - /** @description Whether override or keep all translations with unresolved conflicts */ - forceMode?: "OVERRIDE" | "KEEP" | "NO_FORCE"; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - applyImportStreaming: { - parameters: { - query?: { - /** @description Whether override or keep all translations with unresolved conflicts */ - forceMode?: "OVERRIDE" | "KEEP" | "NO_FORCE"; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/x-ndjson": components["schemas"]["StreamingResponseBody"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getImportResult: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelImportLanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - selectNamespace: { - parameters: { - query?: never; - header?: never; - path: { - fileId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetFileNamespaceRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getImportFileIssues: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - importFileId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelImportFileIssueModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - resetExistingLanguage: { - parameters: { - query?: never; - header?: never; - path: { - importLanguageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - selectExistingLanguage: { - parameters: { - query?: never; - header?: never; - path: { - importLanguageId: number; - existingLanguageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getImportLanguage: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ImportLanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteLanguage: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - resolveTranslationSetKeepExisting_2: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - resolveTranslationSetOverride_2: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getImportTranslations: { - parameters: { - query?: { - /** @description Whether only translations, which are in conflict with existing translations should be returned */ - onlyConflicts?: boolean; - /** @description Whether only translations with unresolved conflictswith existing translations should be returned */ - onlyUnresolved?: boolean; - /** @description String to search in translation text or key */ - search?: string; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - languageId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelImportTranslationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - resolveTranslationSetKeepExisting: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - translationId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - resolveTranslationSetOverride: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - translationId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getProjectInvitations: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelProjectInvitationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - inviteUser: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ProjectInviteUserDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectInvitationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_9: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelKeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_6: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateKeyDto"]; - }; - }; - responses: { - /** @description Created */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "*/*": components["schemas"]["KeyWithDataModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_6: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DeleteKeysDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_5: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateKeyDto"]; - }; - }; - responses: { - /** @description Created */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "*/*": components["schemas"]["KeyWithDataModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - importKeys_2: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ImportKeysDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - importKeys: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ImportKeysResolvableDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["KeyImportResolvableResultModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getInfo: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GetKeysRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelKeyWithDataModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - searchForKey: { - parameters: { - query: { - /** @description Search query */ - search: string; - /** @description Language to search in */ - languageTag?: string; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelKeySearchSearchResultModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - selectKeys_2: { - parameters: { - query?: { - /** @description Translation state in the format: languageTag,state. You can use this parameter multiple times. - * - * When used with multiple states for same language it is applied with logical OR. - * - * When used with multiple languages, it is applied with logical AND. - * */ - filterState?: string[]; - /** - * @description Languages to be contained in response. - * - * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) - * @example en - */ - languages?: string[]; - /** @description String to search in key name or translation text */ - search?: string; - /** @description Selects key with provided names. Use this param multiple times to fetch more keys. */ - filterKeyName?: string[]; - /** @description Selects key with provided ID. Use this param multiple times to fetch more keys. */ - filterKeyId?: number[]; - /** @description Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ - filterUntranslatedAny?: boolean; - /** @description Selects only keys, where translation is provided in any language */ - filterTranslatedAny?: boolean; - /** - * @description Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. - * @example en-US - */ - filterUntranslatedInLang?: string; - /** - * @description Selects only keys, where translation is provided in specified language - * @example en-US - */ - filterTranslatedInLang?: string; - /** - * @description Selects only keys, where translation was auto translated for specified languages. - * @example en-US - */ - filterAutoTranslatedInLang?: string[]; - /** @description Selects only keys with screenshots */ - filterHasScreenshot?: boolean; - /** @description Selects only keys without screenshots */ - filterHasNoScreenshot?: boolean; - /** @description Selects only keys with provided namespaces. - * - * To filter default namespace, set to empty string. - * */ - filterNamespace?: string[]; - /** @description Selects only keys without provided namespaces. - * - * To filter default namespace, set to empty string. - * */ - filterNoNamespace?: string[]; - /** @description Selects only keys with provided tag */ - filterTag?: string[]; - /** @description Selects only keys without provided tag */ - filterNoTag?: string[]; - /** - * @description Selects only keys, where translation in provided langs is in outdated state - * @example en-US - */ - filterOutdatedLanguage?: string[]; - /** - * @description Selects only keys, where translation in provided langs is not in outdated state - * @example en-US - */ - filterNotOutdatedLanguage?: string[]; - /** - * @description Selects only key affected by activity with specidfied revision ID - * @example 1234567 - */ - filterRevisionId?: number[]; - /** @description Select only keys which were not successfully translated by batch job with provided id */ - filterFailedKeysOfJob?: number; - /** @description Select only keys which are in specified task */ - filterTaskNumber?: number[]; - /** @description Filter task keys which are `not done` */ - filterTaskKeysNotDone?: boolean; - /** @description Filter task keys which are `done` */ - filterTaskKeysDone?: boolean; - /** @description Filter keys with unresolved comments in lang */ - filterHasUnresolvedCommentsInLang?: string[]; - /** @description Filter keys with any comments in lang */ - filterHasCommentsInLang?: string[]; - /** - * @description Filter key translations with labels - * @example labelId1,labelId2 - */ - filterLabel?: string[]; - /** @description Filter keys with any suggestions in lang */ - filterHasSuggestionsInLang?: string[]; - /** @description Filter keys with no suggestions in lang */ - filterHasNoSuggestionsInLang?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SelectAllResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_4: { - parameters: { - query?: never; - header?: never; - path: { - ids: number[]; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_14: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["KeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - edit: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["EditKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["KeyModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getBigMeta: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelKeyWithBaseTranslationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - complexEdit: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ComplexEditKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["KeyWithDataModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getDisabledLanguages: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setDisabledLanguages: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetDisabledLanguagesRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - autoTranslate: { - parameters: { - query?: { - /** @description Tags of languages to auto-translate. - * When no languages provided, it translates only untranslated languages. */ - languages?: string[]; - useMachineTranslation?: boolean; - useTranslationMemory?: boolean; - }; - header?: never; - path: { - keyId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getKeyScreenshots_1: { - parameters: { - query?: never; - header?: never; - path: { - keyId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelScreenshotModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - uploadScreenshot_1: { - parameters: { - query?: never; - header?: never; - path: { - keyId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - screenshot: string; - info?: components["schemas"]["ScreenshotInfoDto"]; - }; - }; - }; - responses: { - /** @description Created */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "*/*": components["schemas"]["ScreenshotModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteScreenshots_1: { - parameters: { - query?: never; - header?: never; - path: { - ids: number[]; - keyId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - tagKey: { - parameters: { - query?: never; - header?: never; - path: { - keyId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TagKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TagModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - removeTag: { - parameters: { - query?: never; - header?: never; - path: { - keyId: number; - tagId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_3: { - parameters: { - query?: { - search?: string; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelLabelModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createLabel: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LabelRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LabelModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getLabelsByIds: { - parameters: { - query: { - id: number[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LabelModel"][]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updateLabel: { - parameters: { - query?: never; - header?: never; - path: { - labelId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LabelRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LabelModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteLabel: { - parameters: { - query?: never; - header?: never; - path: { - labelId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getLanguagePromptCustomizations: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLanguageAiPromptCustomizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getSuggestions: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - /** @description Filter by suggestion state */ - filterState?: ("ACTIVE" | "ACCEPTED" | "DECLINED")[]; - }; - header?: never; - path: { - languageTag: string; - keyId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelTranslationSuggestionModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createSuggestion: { - parameters: { - query?: never; - header?: never; - path: { - languageTag: string; - keyId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateTranslationSuggestionRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationSuggestionModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteSuggestion: { - parameters: { - query?: never; - header?: never; - path: { - languageTag: string; - keyId: number; - suggestionId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - acceptSuggestion: { - parameters: { - query?: { - declineOther?: boolean; - }; - header?: never; - path: { - languageTag: string; - keyId: number; - suggestionId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationSuggestionAcceptResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - declineSuggestion: { - parameters: { - query?: never; - header?: never; - path: { - languageTag: string; - keyId: number; - suggestionId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationSuggestionModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - reverseSuggestion: { - parameters: { - query?: never; - header?: never; - path: { - languageTag: string; - keyId: number; - suggestionId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationSuggestionModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_7: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - /** @description Filter languages by id */ - filterId?: number[]; - /** @description Filter languages without id */ - filterNotId?: number[]; - /** @description Filter languages by name or tag */ - search?: string; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelLanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createLanguage: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LanguageRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_12: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - editLanguage: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LanguageRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LanguageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteLanguage_2: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setLanguagePromptCustomization: { - parameters: { - query?: never; - header?: never; - path: { - languageId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetLanguagePromptCustomizationRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LanguageAiPromptCustomizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - leaveProject: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getProjectCredits: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CreditBalanceModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getMachineTranslationLanguageInfo: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLanguageInfoModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getMachineTranslationSettings: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLanguageConfigItemModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setMachineTranslationSettings: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetMachineTranslationSettingsDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelLanguageConfigItemModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setMachineTranslationSettings_1: { - parameters: { - query?: never; - header?: never; - path: { - promptId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - myList: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelBatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getByName: { - parameters: { - query?: never; - header?: never; - path: { - name: string; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["NamespaceModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllNamespaces_2: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelNamespaceModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_3: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateNamespaceDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["NamespaceModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getPerLanguageAutoTranslationSettings: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelAutoTranslationConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setPerLanguageAutoTranslationSettings: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["AutoTranslationSettingsDto"][]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelAutoTranslationConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllPaged: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelPromptModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createPrompt: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PromptDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PromptModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getDefaultPrompt: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PromptDto"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - variables: { - parameters: { - query?: { - keyId?: number; - targetLanguageId?: number; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["VariablesResponseDto"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - run: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PromptRunDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PromptResponseDto"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getPrompt: { - parameters: { - query?: never; - header?: never; - path: { - promptId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PromptModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updatePrompt: { - parameters: { - query?: never; - header?: never; - path: { - promptId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PromptDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PromptModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deletePrompt: { - parameters: { - query?: never; - header?: never; - path: { - promptId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - singleStepFromFiles: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - files: string[]; - params: components["schemas"]["SingleStepImportRequest"]; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ImportResult"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - singleStepResolvableImport: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SingleStepImportResolvableRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ImportResult"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - aiPlaygroundTranslate: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["MachineTranslationRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - assignTranslationLabel: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LabelTranslationsRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - clearTranslations: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ClearTranslationsRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - copyTranslations: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CopyTranslationRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - deleteKeys: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DeleteKeysRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - machineTranslation: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["MachineTranslationRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - translate: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PreTranslationByTmRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setKeysNamespace: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetKeysNamespaceRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setTranslationState_2: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetTranslationsStateStateRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - tagKeys: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TagKeysRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - unassignTranslationLabel: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LabelTranslationsRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - untagKeys: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UntagKeysRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getProjectStats: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProjectStatsModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getProjectDailyActivity: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - [key: string]: number; - }; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - suggestMachineTranslations: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SuggestRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SuggestResultModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - suggestMachineTranslationsStreaming: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SuggestRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/x-ndjson": components["schemas"]["StreamingResponseBody"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - suggestTranslationMemory: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SuggestRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelTranslationMemoryItemModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - executeComplexTagOperation: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ComplexTagKeysRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_1: { - parameters: { - query?: { - search?: string; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelTagModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getTasks_1: { - parameters: { - query?: { - /** @description Filter tasks by state */ - filterState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; - /** @description Filter tasks without state */ - filterNotState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; - /** @description Filter tasks by assignee */ - filterAssignee?: number[]; - /** @description Filter tasks by type */ - filterType?: ("TRANSLATE" | "REVIEW")[]; - /** @description Filter tasks by id */ - filterId?: number[]; - /** @description Filter tasks without id */ - filterNotId?: number[]; - /** @description Filter tasks by project */ - filterProject?: number[]; - /** @description Filter tasks without project */ - filterNotProject?: number[]; - /** @description Filter tasks by language */ - filterLanguage?: number[]; - /** @description Filter tasks by key */ - filterKey?: number[]; - /** @description Filter tasks by agency */ - filterAgency?: number[]; - /** @description Exclude tasks which were closed before specified timestamp */ - filterNotClosedBefore?: number; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelTaskModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createTask: { - parameters: { - query?: { - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - filterOutdated?: boolean; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateTaskRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - calculateScope: { - parameters: { - query?: { - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - filterOutdated?: boolean; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CalculateScopeRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["KeysScopeView"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createTasks: { - parameters: { - query?: { - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - filterOutdated?: boolean; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateMultipleTasksRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getPossibleAssignees: { - parameters: { - query?: { - /** @description Filter users by id */ - filterId?: number[]; - /** @description Filter only users that have at least following scopes */ - filterMinimalScope?: string; - /** @description Filter only users that can view language */ - filterViewLanguageId?: number; - /** @description Filter only users that can edit language */ - filterEditLanguageId?: number; - /** @description Filter only users that can edit state of language */ - filterStateLanguageId?: number; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelSimpleUserAccountModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getTask: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updateTask: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateTaskRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getBlockingTasks: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": number[]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - cancelTask: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - closeTask: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - finishTask: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getTaskKeys: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskKeysResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updateTaskKeys: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateTaskKeysRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updateTaskKey: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - keyId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateTaskKeyRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["UpdateTaskKeyResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getPerUserReport: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskPerUserReportModel"][]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - reopenTask: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getXlsxReport: { - parameters: { - query?: never; - header?: never; - path: { - taskNumber: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getTransferOptions: { - parameters: { - query?: { - search?: string; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelProjectTransferOptionModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - transferProjectToOrganization: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getTranslations: { - parameters: { - query?: { - /** @description Cursor to get next data */ - cursor?: string; - /** @description Translation state in the format: languageTag,state. You can use this parameter multiple times. - * - * When used with multiple states for same language it is applied with logical OR. - * - * When used with multiple languages, it is applied with logical AND. - * */ - filterState?: string[]; - /** - * @description Languages to be contained in response. - * - * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) - * @example en - */ - languages?: string[]; - /** @description String to search in key name or translation text */ - search?: string; - /** @description Selects key with provided names. Use this param multiple times to fetch more keys. */ - filterKeyName?: string[]; - /** @description Selects key with provided ID. Use this param multiple times to fetch more keys. */ - filterKeyId?: number[]; - /** @description Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ - filterUntranslatedAny?: boolean; - /** @description Selects only keys, where translation is provided in any language */ - filterTranslatedAny?: boolean; - /** - * @description Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. - * @example en-US - */ - filterUntranslatedInLang?: string; - /** - * @description Selects only keys, where translation is provided in specified language - * @example en-US - */ - filterTranslatedInLang?: string; - /** - * @description Selects only keys, where translation was auto translated for specified languages. - * @example en-US - */ - filterAutoTranslatedInLang?: string[]; - /** @description Selects only keys with screenshots */ - filterHasScreenshot?: boolean; - /** @description Selects only keys without screenshots */ - filterHasNoScreenshot?: boolean; - /** @description Selects only keys with provided namespaces. - * - * To filter default namespace, set to empty string. - * */ - filterNamespace?: string[]; - /** @description Selects only keys without provided namespaces. - * - * To filter default namespace, set to empty string. - * */ - filterNoNamespace?: string[]; - /** @description Selects only keys with provided tag */ - filterTag?: string[]; - /** @description Selects only keys without provided tag */ - filterNoTag?: string[]; - /** - * @description Selects only keys, where translation in provided langs is in outdated state - * @example en-US - */ - filterOutdatedLanguage?: string[]; - /** - * @description Selects only keys, where translation in provided langs is not in outdated state - * @example en-US - */ - filterNotOutdatedLanguage?: string[]; - /** - * @description Selects only key affected by activity with specidfied revision ID - * @example 1234567 - */ - filterRevisionId?: number[]; - /** @description Select only keys which were not successfully translated by batch job with provided id */ - filterFailedKeysOfJob?: number; - /** @description Select only keys which are in specified task */ - filterTaskNumber?: number[]; - /** @description Filter task keys which are `not done` */ - filterTaskKeysNotDone?: boolean; - /** @description Filter task keys which are `done` */ - filterTaskKeysDone?: boolean; - /** @description Filter keys with unresolved comments in lang */ - filterHasUnresolvedCommentsInLang?: string[]; - /** @description Filter keys with any comments in lang */ - filterHasCommentsInLang?: string[]; - /** - * @description Filter key translations with labels - * @example labelId1,labelId2 - */ - filterLabel?: string[]; - /** @description Filter keys with any suggestions in lang */ - filterHasSuggestionsInLang?: string[]; - /** @description Filter keys with no suggestions in lang */ - filterHasNoSuggestionsInLang?: string[]; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["KeysWithTranslationsPageModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setTranslations: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetTranslationsWithKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SetTranslationsResponseModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - createOrUpdateTranslations: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetTranslationsWithKeyDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SetTranslationsResponseModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_3: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TranslationCommentWithLangKeyDto"]; - }; - }; - responses: { - /** @description Created */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "*/*": components["schemas"]["TranslationWithCommentModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - assignLabel_2: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TranslationLabelRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LabelModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - selectKeys: { - parameters: { - query?: { - /** @description Translation state in the format: languageTag,state. You can use this parameter multiple times. - * - * When used with multiple states for same language it is applied with logical OR. - * - * When used with multiple languages, it is applied with logical AND. - * */ - filterState?: string[]; - /** - * @description Languages to be contained in response. - * - * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) - * @example en - */ - languages?: string[]; - /** @description String to search in key name or translation text */ - search?: string; - /** @description Selects key with provided names. Use this param multiple times to fetch more keys. */ - filterKeyName?: string[]; - /** @description Selects key with provided ID. Use this param multiple times to fetch more keys. */ - filterKeyId?: number[]; - /** @description Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ - filterUntranslatedAny?: boolean; - /** @description Selects only keys, where translation is provided in any language */ - filterTranslatedAny?: boolean; - /** - * @description Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. - * @example en-US - */ - filterUntranslatedInLang?: string; - /** - * @description Selects only keys, where translation is provided in specified language - * @example en-US - */ - filterTranslatedInLang?: string; - /** - * @description Selects only keys, where translation was auto translated for specified languages. - * @example en-US - */ - filterAutoTranslatedInLang?: string[]; - /** @description Selects only keys with screenshots */ - filterHasScreenshot?: boolean; - /** @description Selects only keys without screenshots */ - filterHasNoScreenshot?: boolean; - /** @description Selects only keys with provided namespaces. - * - * To filter default namespace, set to empty string. - * */ - filterNamespace?: string[]; - /** @description Selects only keys without provided namespaces. - * - * To filter default namespace, set to empty string. - * */ - filterNoNamespace?: string[]; - /** @description Selects only keys with provided tag */ - filterTag?: string[]; - /** @description Selects only keys without provided tag */ - filterNoTag?: string[]; - /** - * @description Selects only keys, where translation in provided langs is in outdated state - * @example en-US - */ - filterOutdatedLanguage?: string[]; - /** - * @description Selects only keys, where translation in provided langs is not in outdated state - * @example en-US - */ - filterNotOutdatedLanguage?: string[]; - /** - * @description Selects only key affected by activity with specidfied revision ID - * @example 1234567 - */ - filterRevisionId?: number[]; - /** @description Select only keys which were not successfully translated by batch job with provided id */ - filterFailedKeysOfJob?: number; - /** @description Select only keys which are in specified task */ - filterTaskNumber?: number[]; - /** @description Filter task keys which are `not done` */ - filterTaskKeysNotDone?: boolean; - /** @description Filter task keys which are `done` */ - filterTaskKeysDone?: boolean; - /** @description Filter keys with unresolved comments in lang */ - filterHasUnresolvedCommentsInLang?: string[]; - /** @description Filter keys with any comments in lang */ - filterHasCommentsInLang?: string[]; - /** - * @description Filter key translations with labels - * @example labelId1,labelId2 - */ - filterLabel?: string[]; - /** @description Filter keys with any suggestions in lang */ - filterHasSuggestionsInLang?: string[]; - /** @description Filter keys with no suggestions in lang */ - filterHasNoSuggestionsInLang?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SelectAllResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllTranslations: { - parameters: { - query?: { - /** @description Namespace to return */ - ns?: string; - /** @description Delimiter to structure response content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": {"title": "Hello"}}} structure. - * - * When null, resulting file will be a flat key-value object. - * */ - structureDelimiter?: string; - /** - * @description Enables filtering of returned keys by their tags. - * Only keys with at least one provided tag will be returned. - * Optional, filtering is not applied if not specified. - * @example [ - * "productionReady", - * "nextRelease" - * ] - */ - filterTag?: string[]; - }; - header?: never; - path: { - /** - * @description Comma-separated language tags to return translations in. Languages you are not permitted to see will be silently dropped and not returned. - * @example [ - * "en", - * "de", - * "fr" - * ] - */ - languages: string[]; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAll_5: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - translationId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelTranslationCommentModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create_1: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TranslationCommentDto"]; - }; - }; - responses: { - /** @description Created */ - 201: { - headers: { - [name: string]: unknown; - }; - content: { - "*/*": components["schemas"]["TranslationCommentModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_10: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - commentId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationCommentModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update_1: { - parameters: { - query?: never; - header?: never; - path: { - commentId: number; - translationId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TranslationCommentDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationCommentModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_2: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - commentId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setState: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - commentId: number; - state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationCommentModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - dismissAutoTranslatedState: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getTranslationHistory: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - translationId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelTranslationHistoryModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - assignLabel: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - labelId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["LabelModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - unassignLabel: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - labelId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setOutdated: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - state: boolean; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setTranslationState: { - parameters: { - query?: never; - header?: never; - path: { - translationId: number; - state: "TRANSLATED" | "REVIEWED"; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["TranslationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getUsedNamespaces: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelUsedNamespaceModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllUsers: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - /** @description Filter users by id */ - filterId?: number[]; - /** @description Filter users without id */ - filterNotId?: number[]; - /** @description Filter users from agency */ - filterAgency?: number[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelUserAccountInProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - revokePermission: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - userId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setOrganizationBase: { - parameters: { - query?: never; - header?: never; - path: { - userId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setUsersPermissions: { - parameters: { - query?: { - /** - * @description Granted scopes - * @example [ - * "translations.view", - * "translations.edit" - * ] - */ - scopes?: string[]; - languages?: number[]; - translateLanguages?: number[]; - viewLanguages?: number[]; - stateChangeLanguages?: number[]; - suggestLanguages?: number[]; - }; - header?: never; - path: { - userId: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setUsersPermissions_1: { - parameters: { - query?: { - languages?: number[]; - translateLanguages?: number[]; - viewLanguages?: number[]; - stateChangeLanguages?: number[]; - suggestLanguages?: number[]; - }; - header?: never; - path: { - userId: number; - permissionType: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - list_2: { - parameters: { - query?: { - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelWebhookConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - create: { - parameters: { - query?: never; - header?: never; - path: { - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["WebhookConfigRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["WebhookConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_9: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["WebhookConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - update: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["WebhookConfigRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["WebhookConfigModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete_1: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - test: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - projectId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["WebhookTestResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - identify: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["IdentifyRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - report: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["BusinessEventReportRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_3: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["DocItem"][]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_2: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelExportFormatModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get_1: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["InitialDataModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - prompt: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LlmParams"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PromptResult"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getInfo_4: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - [key: string]: components["schemas"]["MachineTranslationProviderModel"]; - }; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getHierarchy: { - parameters: { - query?: { - search?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["HierarchyItem"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getRoles: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - [key: string]: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign")[]; - }; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - slackCommand: { - parameters: { - query?: never; - header: { - "X-Slack-Signature": string; - "X-Slack-Request-Timestamp": string; - }; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": { - payload?: components["schemas"]["SlackCommandDto"]; - body?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - fetchBotEvent: { - parameters: { - query?: never; - header: { - "X-Slack-Signature": string; - "X-Slack-Request-Timestamp": string; - }; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": string; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": Record; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - onInteractivityEvent: { - parameters: { - query?: never; - header: { - "X-Slack-Signature": string; - "X-Slack-Request-Timestamp": string; - }; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": string; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setFinishedState: { - parameters: { - query?: never; - header?: never; - path: { - finished: boolean; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["QuickStartModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setOpenState: { - parameters: { - query?: never; - header?: never; - path: { - open: boolean; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["QuickStartModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - completeGuideStep: { - parameters: { - query?: never; - header?: never; - path: { - step: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["QuickStartModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - userLogin: { - parameters: { - query: { - /** @description The encrypted data about the desired connection between Slack account and Tolgee account */ - data: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getInfo_3: { - parameters: { - query: { - /** @description The encrypted data */ - data: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["SlackUserInfoModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - generateOrganizationSlug: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GenerateSlugDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - generateProjectSlug: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GenerateSlugDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - validateOrganizationSlug: { - parameters: { - query?: never; - header?: never; - path: { - slug: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": boolean; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - validateProjectSlug: { - parameters: { - query?: never; - header?: never; - path: { - slug: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": boolean; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getInfo_2: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updateUser: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UserUpdateRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updateUserOld: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UserUpdateRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - delete: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - get: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["UserPreferencesModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setLanguage: { - parameters: { - query?: never; - header?: never; - path: { - languageTag: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - setPreferredOrganization: { - parameters: { - query?: never; - header?: never; - path: { - organizationId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getTasks: { - parameters: { - query?: { - /** @description Filter tasks by state */ - filterState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; - /** @description Filter tasks without state */ - filterNotState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; - /** @description Filter tasks by assignee */ - filterAssignee?: number[]; - /** @description Filter tasks by type */ - filterType?: ("TRANSLATE" | "REVIEW")[]; - /** @description Filter tasks by id */ - filterId?: number[]; - /** @description Filter tasks without id */ - filterNotId?: number[]; - /** @description Filter tasks by project */ - filterProject?: number[]; - /** @description Filter tasks without project */ - filterNotProject?: number[]; - /** @description Filter tasks by language */ - filterLanguage?: number[]; - /** @description Filter tasks by key */ - filterKey?: number[]; - /** @description Filter tasks by agency */ - filterAgency?: number[]; - /** @description Exclude tasks which were closed before specified timestamp */ - filterNotClosedBefore?: number; - /** @description Zero-based page index (0..N) */ - page?: number; - /** @description The size of the page to be returned */ - size?: number; - /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PagedModelTaskWithProjectModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - uploadAvatar: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - avatar: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - removeAvatar: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getSuperToken: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SuperTokenRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getManagedBy: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PrivateOrganizationModel"]; - }; - }; - /** @description No SSO configuration available for this user */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - regenerateRecoveryCodes: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserMfaRecoveryRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": string[]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - enableMfa: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserTotpEnableRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - disableMfa: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserTotpDisableRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - updateUserPassword: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["UserUpdatePasswordRequestDto"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - sendEmailVerification: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getAllSingleOwnedOrganizations: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["CollectionModelSimpleOrganizationModel"]; - }; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; - getSso: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["PublicSsoTenantModel"]; - }; - }; - /** @description No SSO configuration available for this user */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Bad Request */ - 400: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Forbidden */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - /** @description Not Found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]; - }; - }; - }; - }; + filterTag?: string[]; + /** Branch name to return translations from */ + branch?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": string; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns translation comments of translation */ + getAll_3: { + parameters: { + path: { + translationId: number; + projectId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelTranslationCommentModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create_1: { + parameters: { + path: { + translationId: number; + projectId: number; + }; + }; + responses: { + /** Created */ + 201: { + content: { + "*/*": components["schemas"]["TranslationCommentModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TranslationCommentDto"]; + }; + }; + }; + get_4: { + parameters: { + path: { + translationId: number; + commentId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationCommentModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update_1: { + parameters: { + path: { + commentId: number; + translationId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationCommentModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TranslationCommentDto"]; + }; + }; + }; + delete_2: { + parameters: { + path: { + translationId: number; + commentId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setState: { + parameters: { + path: { + translationId: number; + commentId: number; + state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationCommentModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Removes "auto translated" indication */ + dismissAutoTranslatedState: { + parameters: { + path: { + translationId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sorting is not supported for supported. It is automatically sorted from newest to oldest. */ + getTranslationHistory: { + parameters: { + path: { + translationId: number; + projectId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelTranslationHistoryModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + assignLabel: { + parameters: { + path: { + translationId: number; + labelId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["LabelModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + unassignLabel: { + parameters: { + path: { + translationId: number; + labelId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Set's "outdated" flag indicating the base translation was changed without updating current translation. */ + setOutdated: { + parameters: { + path: { + translationId: number; + state: boolean; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setTranslationState: { + parameters: { + path: { + translationId: number; + state: "TRANSLATED" | "REVIEWED"; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["TranslationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all used project namespaces. Response contains default (null) namespace if used. */ + getUsedNamespaces: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelUsedNamespaceModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all project users, who have permission to access project */ + getAllUsers: { + parameters: { + path: { + projectId: number; + }; + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + /** Filter users by id */ + filterId?: number[]; + /** Filter users without id */ + filterNotId?: number[]; + /** Filter users from agency */ + filterAgency?: number[]; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelUserAccountInProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + revokePermission: { + parameters: { + path: { + projectId: number; + userId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Removes user's direct project permission, explicitly set for the project. User will have now base permissions from organization or no permission if they're not organization member. */ + removeDirectProjectPermissions: { + parameters: { + path: { + userId: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Set user's granular (scope-based) direct project permission */ + setUsersPermissions: { + parameters: { + path: { + userId: number; + projectId: number; + }; + query: { + /** Granted scopes */ + scopes?: string[]; + languages?: number[]; + translateLanguages?: number[]; + viewLanguages?: number[]; + stateChangeLanguages?: number[]; + suggestLanguages?: number[]; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setUsersPermissions_1: { + parameters: { + path: { + userId: number; + permissionType: + | "NONE" + | "VIEW" + | "TRANSLATE" + | "REVIEW" + | "EDIT" + | "MANAGE"; + projectId: number; + }; + query: { + languages?: number[]; + translateLanguages?: number[]; + viewLanguages?: number[]; + stateChangeLanguages?: number[]; + suggestLanguages?: number[]; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + list: { + parameters: { + query: { + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelWebhookConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + create: { + parameters: { + path: { + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["WebhookConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["WebhookConfigRequest"]; + }; + }; + }; + get_3: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["WebhookConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + update: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["WebhookConfigModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["WebhookConfigRequest"]; + }; + }; + }; + delete_1: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sends a test request to the webhook */ + test: { + parameters: { + path: { + id: number; + projectId: number; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["WebhookTestResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + identify: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["IdentifyRequest"]; + }; + }; + }; + report: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["BusinessEventReportRequest"]; + }; + }; + }; + /** Return server configuration properties documentation */ + get_19: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["DocItem"][]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + get_18: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelExportFormatModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns initial data required by the UI to load */ + get_17: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["InitialDataModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Get machine translation providers */ + getInfo_4: { + responses: { + /** OK */ + 200: { + content: { + "application/json": { + [ + key: string + ]: components["schemas"]["MachineTranslationProviderModel"]; + }; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getHierarchy: { + parameters: { + query: { + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["HierarchyItem"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getRoles: { + responses: { + /** OK */ + 200: { + content: { + "application/json": { + [key: string]: ( + | "translations.view" + | "translations.edit" + | "translations.suggest" + | "keys.edit" + | "screenshots.upload" + | "screenshots.delete" + | "screenshots.view" + | "activity.view" + | "languages.edit" + | "admin" + | "project.edit" + | "members.view" + | "members.edit" + | "translation-comments.add" + | "translation-comments.edit" + | "translation-comments.set-state" + | "translations.state-edit" + | "keys.view" + | "keys.delete" + | "keys.create" + | "batch-jobs.view" + | "batch-jobs.cancel" + | "translations.batch-by-tm" + | "translations.batch-machine" + | "content-delivery.manage" + | "content-delivery.publish" + | "webhooks.manage" + | "tasks.view" + | "tasks.edit" + | "prompts.view" + | "prompts.edit" + | "translation-labels.manage" + | "translation-labels.assign" + | "all.view" + )[]; + }; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + slackCommand: { + parameters: { + query: { + payload: components["schemas"]["SlackCommandDto"]; + }; + header: { + "X-Slack-Signature": string; + "X-Slack-Request-Timestamp": string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": string; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": string; + }; + }; + }; + /** + * This is triggered when bot event is triggered. E.g., when app is uninstalled from workspace. + * + * Heads up! The events have to be configured via Slack App configuration in Event Subscription section. + */ + fetchBotEvent: { + parameters: { + header: { + "X-Slack-Signature": string; + "X-Slack-Request-Timestamp": string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": { [key: string]: unknown }; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": string; + }; + }; + }; + /** This is triggered when interactivity event is triggered. E.g., when user clicks button provided in previous messages. */ + onInteractivityEvent: { + parameters: { + header: { + "X-Slack-Signature": string; + "X-Slack-Request-Timestamp": string; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": string; + }; + }; + }; + /** Sets finished state of the quick start guide */ + setFinishedState: { + parameters: { + path: { + finished: boolean; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["QuickStartModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Sets open state of the quick start guide */ + setOpenState: { + parameters: { + path: { + open: boolean; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["QuickStartModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Marks guide step as completed */ + completeGuideStep: { + parameters: { + path: { + step: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["QuickStartModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Pairs user account with slack account. */ + userLogin: { + parameters: { + query: { + /** The encrypted data about the desired connection between Slack account and Tolgee account */ + data: string; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** + * Returns information about the connection between Slack account and Tolgee account which user is performing. The flow is the following. + * + * 1. User executes slash command in Slack and gets link with encrypted Slack user ID, workspace ID and the Channel ID (to send success response to) + * + * 2. User gets opens the link and the Tolgee Platform frontend and it uses this endpoint to get the data info about the future connection + */ + getInfo_3: { + parameters: { + query: { + /** The encrypted data */ + data: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["SlackUserInfoModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + generateOrganizationSlug: { + responses: { + /** OK */ + 200: { + content: { + "application/json": string; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GenerateSlugDto"]; + }; + }; + }; + generateProjectSlug: { + responses: { + /** OK */ + 200: { + content: { + "application/json": string; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GenerateSlugDto"]; + }; + }; + }; + validateOrganizationSlug: { + parameters: { + path: { + slug: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": boolean; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + validateProjectSlug: { + parameters: { + path: { + slug: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": boolean; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns information about currently authenticated user. */ + getInfo: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Updates current user's profile information. */ + updateUser: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserUpdateRequestDto"]; + }; + }; + }; + updateUserOld: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserUpdateRequestDto"]; + }; + }; + }; + delete: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + get_16: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["UserPreferencesModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setLanguage: { + parameters: { + path: { + languageTag: string; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + setPreferredOrganization: { + parameters: { + path: { + organizationId: number; + }; + }; + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + getTasks_2: { + parameters: { + query: { + /** Filter tasks by state */ + filterState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; + /** Filter tasks without state */ + filterNotState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; + /** Filter tasks by assignee */ + filterAssignee?: number[]; + /** Filter tasks by type */ + filterType?: ("TRANSLATE" | "REVIEW")[]; + /** Filter tasks by id */ + filterId?: number[]; + /** Filter tasks without id */ + filterNotId?: number[]; + /** Filter tasks by project */ + filterProject?: number[]; + /** Filter tasks without project */ + filterNotProject?: number[]; + /** Filter tasks by language */ + filterLanguage?: number[]; + /** Filter tasks by key */ + filterKey?: number[]; + /** Filter tasks by agency */ + filterAgency?: number[]; + /** Exclude tasks which were closed before specified timestamp */ + filterNotClosedBefore?: number; + /** Zero-based page index (0..N) */ + page?: number; + /** The size of the page to be returned */ + size?: number; + /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + }; + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PagedModelTaskWithProjectModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + uploadAvatar: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "multipart/form-data": { + /** Format: binary */ + avatar: string; + }; + }; + }; + }; + removeAvatar: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Generates new JWT token permitted to sensitive operations */ + getSuperToken: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SuperTokenRequest"]; + }; + }; + }; + /** Returns the organization that manages a given user or null */ + getManagedBy: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PrivateOrganizationModel"]; + }; + }; + /** No SSO configuration available for this user */ + 204: never; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Regenerates multi-factor authentication recovery codes */ + regenerateRecoveryCodes: { + responses: { + /** OK */ + 200: { + content: { + "application/json": string[]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserMfaRecoveryRequestDto"]; + }; + }; + }; + /** Enables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. */ + enableMfa: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserTotpEnableRequestDto"]; + }; + }; + }; + /** Disables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. */ + disableMfa: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserTotpDisableRequestDto"]; + }; + }; + }; + /** Updates current user's password. Invalidates all previous sessions upon success. */ + updateUserPassword: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserUpdatePasswordRequestDto"]; + }; + }; + }; + /** Resends email verification email to currently authenticated user. */ + sendEmailVerification: { + responses: { + /** OK */ + 200: unknown; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns all organizations owned only by current user */ + getAllSingleOwnedOrganizations: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["CollectionModelSimpleOrganizationModel"]; + }; + }; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; + /** Returns information about sso configuration affecting the user. */ + getSso: { + responses: { + /** OK */ + 200: { + content: { + "application/json": components["schemas"]["PublicSsoTenantModel"]; + }; + }; + /** No SSO configuration available for this user */ + 204: never; + /** Bad Request */ + 400: { + content: { + "application/json": string; + }; + }; + /** Unauthorized */ + 401: { + content: { + "application/json": string; + }; + }; + /** Forbidden */ + 403: { + content: { + "application/json": string; + }; + }; + /** Not Found */ + 404: { + content: { + "application/json": string; + }; + }; + }; + }; } + +export interface external {} diff --git a/src/commands/pull.ts b/src/commands/pull.ts index 8724b9d8..6c3bbead 100644 --- a/src/commands/pull.ts +++ b/src/commands/pull.ts @@ -9,6 +9,7 @@ import { Schema } from '../schema.js'; import { checkPathNotAFile } from '../utils/checkPathNotAFile.js'; import { mapExportFormat } from '../utils/mapExportFormat.js'; import { handleLoadableError } from '../client/TolgeeClient.js'; +import { appendBranch } from '../utils/branch.js'; import { startWatching } from '../utils/pullWatch/watchHandler.js'; import { getETag } from '../utils/eTagStorage.js'; @@ -121,7 +122,7 @@ const pullHandler = () => const doPull = async (opts: PullOptions) => { const result = await loading( - 'Fetching strings from Tolgee...', + `Fetching strings from Tolgee${appendBranch(opts.branch)}...`, fetchZipBlob(opts, getETag(opts.projectId)) ); if (result.notModified) { @@ -129,7 +130,10 @@ const doPull = async (opts: PullOptions) => { return; } await prepareDir(opts.path!, opts.emptyDir); - await loading('Extracting strings...', unzipBuffer(result.data, opts.path!)); + await loading( + `Extracting strings${appendBranch(opts.branch)}...`, + unzipBuffer(result.data, opts.path!) + ); // Store ETag after a successful pull if (result.etag) { const { setETag } = await import('../utils/eTagStorage.js'); @@ -154,6 +158,7 @@ async function fetchZipBlob(opts: PullOptions, ifNoneMatch?: string) { fileStructureTemplate: opts.fileStructureTemplate, escapeHtml: false, ifNoneMatch, + filterBranch: opts.branch, }); handleLoadableError(loadable); diff --git a/src/commands/push.ts b/src/commands/push.ts index 7ccac6d3..d0d36711 100644 --- a/src/commands/push.ts +++ b/src/commands/push.ts @@ -29,6 +29,7 @@ import { components } from '../client/internal/schema.generated.js'; import { findFilesByTemplate } from '../utils/filesTemplate.js'; import { valueToArray } from '../utils/valueToArray.js'; import { printUnresolvedConflicts } from '../utils/printFailedKeys.js'; +import { appendBranch } from '../utils/branch.js'; type ImportRequest = BodyOf< '/v2/projects/{projectId}/single-step-import', @@ -221,6 +222,7 @@ const pushHandler = (config: Schema) => overrideKeyDescriptions: opts.overrideKeyDescriptions, convertPlaceholdersToIcu: opts.convertPlaceholdersToIcu, tagNewKeys: opts.tagNewKeys ?? [], + branch: opts.branch, overrideMode: opts.overrideMode ?? 'RECOMMENDED', fileMappings: files.map((f) => { const format = mapImportFormat(opts.format, extname(f.name)); @@ -242,7 +244,7 @@ const pushHandler = (config: Schema) => }; let attempt = await loading( - 'Importing...', + `Importing${appendBranch(opts.branch)}...`, importData(opts.client, { files, params, @@ -258,7 +260,7 @@ const pushHandler = (config: Schema) => } const forceMode = await promptConflicts(opts); attempt = await loading( - 'Overriding...', + `Overriding${appendBranch(opts.branch)}...`, importData(opts.client, { files, params: { ...params, forceMode }, diff --git a/src/config/tolgeerc.ts b/src/config/tolgeerc.ts index e7ac36b1..2bfa2c81 100644 --- a/src/config/tolgeerc.ts +++ b/src/config/tolgeerc.ts @@ -1,12 +1,15 @@ -import { cosmiconfig, defaultLoaders } from 'cosmiconfig'; -import { readFile } from 'fs/promises'; -import { fileURLToPath } from 'url'; -import { dirname, join, resolve } from 'path'; +import { + cosmiconfig, + defaultLoaders, + type CosmiconfigResult, +} from 'cosmiconfig'; +import { existsSync } from 'node:fs'; +import { readFile } from 'node:fs/promises'; +import { fileURLToPath } from 'node:url'; +import { dirname, join, resolve } from 'node:path'; -import { CosmiconfigResult } from 'cosmiconfig/dist/types.js'; import { error, exitWithError } from '../utils/logger.js'; -import { existsSync } from 'fs'; -import { Schema } from '../schema.js'; +import type { Schema } from '../schema.js'; import { valueToArray } from '../utils/valueToArray.js'; import { Ajv } from 'ajv'; @@ -36,6 +39,15 @@ function parseConfig(input: Schema, configDir: string) { } } + if (rc.branch !== undefined) { + if (typeof rc.branch !== 'string' || !rc.branch.trim().length) { + throw new Error( + "Invalid config: 'branch' should be a non-empty string representing your project branch" + ); + } + rc.branch = rc.branch.trim(); + } + // convert relative paths in config to absolute if (rc.extractor !== undefined) { rc.extractor = resolve(configDir, rc.extractor).replace(/\\/g, '/'); diff --git a/src/options.ts b/src/options.ts index cf72be4e..7708c333 100644 --- a/src/options.ts +++ b/src/options.ts @@ -33,6 +33,7 @@ export type BaseOptions = { apiUrl: URL; apiKey: string; projectId: number; + branch?: string; client: ReturnType; extractor: string | undefined; patterns: string[] | undefined; @@ -55,6 +56,11 @@ export const API_URL_OPT = new Option( 'The url of Tolgee API.' ).argParser(parseUrlArgument); +export const PROJECT_BRANCH = new Option( + '-b, --branch ', + 'Project branch. Use when branching enabled for the project.' +).env('TOLGEE_BRANCH'); + export const EXTRACTOR = new Option( '-e, --extractor ', `A path to a custom extractor to use instead of the default one.` diff --git a/src/schema.d.ts b/src/schema.d.ts index 086f3dbd..638af8f8 100644 --- a/src/schema.d.ts +++ b/src/schema.d.ts @@ -80,6 +80,10 @@ export interface Schema { * Project ID. Only required when using a Personal Access Token. */ projectId?: number | string; + /** + * Project branch. Use when branching enabled for the project. + */ + branch?: string; /** * The url of Tolgee API. */ diff --git a/src/utils/branch.ts b/src/utils/branch.ts new file mode 100644 index 00000000..db04445f --- /dev/null +++ b/src/utils/branch.ts @@ -0,0 +1,3 @@ +export function appendBranch(branch?: string) { + return branch ? ` (branch "${branch}")` : ' (no or default branch)'; +} diff --git a/test/__fixtures__/validTolgeeRc/withBranch.json b/test/__fixtures__/validTolgeeRc/withBranch.json new file mode 100644 index 00000000..7da0ec1c --- /dev/null +++ b/test/__fixtures__/validTolgeeRc/withBranch.json @@ -0,0 +1,5 @@ +{ + "apiUrl": "https://app.tolgee.io", + "projectId": 1337, + "branch": "config-branch" +} diff --git a/test/unit/config.test.ts b/test/unit/config.test.ts index e4e652b3..9d382cfa 100644 --- a/test/unit/config.test.ts +++ b/test/unit/config.test.ts @@ -93,4 +93,14 @@ describe('.tolgeerc', () => { expect(cfg.projectId).toBe(1337); }); + + it('loads config with branch', async () => { + const path = fileURLToPath( + new URL('./validTolgeeRc/withBranch.json', FIXTURES_PATH) + ); + + const cfg = await loadTolgeeRc(path); + + expect(cfg?.branch).toBe('config-branch'); + }); }); From 49ca2554ca84a2d3e161eff7dbec63798fa688e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Fri, 19 Dec 2025 17:56:30 +0100 Subject: [PATCH 04/15] feat: add --branch to compare command --- src/commands/sync/compare.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/commands/sync/compare.ts b/src/commands/sync/compare.ts index 160bac8a..18d7188a 100644 --- a/src/commands/sync/compare.ts +++ b/src/commands/sync/compare.ts @@ -11,6 +11,7 @@ import { loading } from '../../utils/logger.js'; import { Schema } from '../../schema.js'; import { BaseOptions } from '../../options.js'; import { handleLoadableError } from '../../client/TolgeeClient.js'; +import { appendBranch } from '../../utils/branch.js'; type Options = BaseOptions; @@ -25,9 +26,16 @@ const asyncHandler = (config: Schema) => dumpWarnings(rawKeys); const localKeys = filterExtractionResult(rawKeys); - const loadable = await opts.client.GET( - '/v2/projects/{projectId}/all-keys', - { params: { path: { projectId: opts.client.getProjectId() } } } + const loadable = await loading( + `Fetching Tolgee keys${appendBranch(opts.branch)}...`, + opts.client.GET('/v2/projects/{projectId}/all-keys', { + params: { + path: { + projectId: opts.client.getProjectId(), + query: { branch: opts.branch }, + }, + }, + }) ); handleLoadableError(loadable); From 00a07d7316d1685e0b3fad11f5cc7e2dffcd202e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Wed, 31 Dec 2025 02:41:57 +0100 Subject: [PATCH 05/15] fix: update schema properly --- src/client/internal/schema.generated.ts | 54107 +++++++++++++--------- 1 file changed, 31992 insertions(+), 22115 deletions(-) diff --git a/src/client/internal/schema.generated.ts b/src/client/internal/schema.generated.ts index f175a87a..7e460d63 100644 --- a/src/client/internal/schema.generated.ts +++ b/src/client/internal/schema.generated.ts @@ -4,22183 +4,32060 @@ */ export interface paths { - "/api/project/{projectId}/export/jsonZip": { - /** Exports data as ZIP of jsons */ - get: operations["doExportJsonZip"]; - }; - "/api/public/authorize_oauth/sso/authentication-url": { - /** Returns URL which can be used to authenticate user using third party SSO service */ - post: operations["getAuthenticationUrl"]; - }; - "/api/public/authorize_oauth/{serviceType}": { - /** Authenticates user using third party oAuth service */ - get: operations["authenticateUser_1"]; - }; - "/api/public/configuration": { - get: operations["getPublicConfiguration"]; - }; - "/api/public/generatetoken": { - post: operations["authenticateUser"]; - }; - "/api/public/invitation_info/{code}": { - get: operations["invitationInfo"]; - }; - "/api/public/reset_password_request": { - post: operations["resetPasswordRequest"]; - }; - "/api/public/reset_password_set": { - /** Checks the password reset code from e-mail */ - post: operations["resetPasswordSet"]; - }; - "/api/public/reset_password_validate/{email}/{code}": { - get: operations["resetPasswordValidate"]; - }; - "/api/public/sign_up": { - /** When E-mail verification is enabled, null is returned. Otherwise JWT token is provided. */ - post: operations["signUp"]; - }; - "/api/public/validate_email": { - post: operations["validateEmail"]; - }; - "/api/public/verify_email/{userId}/{code}": { - /** It checks whether the code from email is valid */ - get: operations["verifyEmail"]; - }; - "/v2/administration/batch-job-queue": { - /** Returns all chunk execution items currently in the batch job queue */ - get: operations["getBatchJobQueue"]; - }; - "/v2/administration/organizations": { - get: operations["getOrganizations"]; - }; - "/v2/administration/project-batch-locks": { - /** Returns current project batch job locks from Redis or local storage based on configuration */ - get: operations["getProjectLocks"]; - }; - "/v2/administration/users": { - get: operations["getUsers"]; - }; - "/v2/administration/users/{userId}": { - delete: operations["deleteUser"]; - }; - "/v2/administration/users/{userId}/disable": { - /** Disables user account. User will not be able to log in, but their user data will be preserved, so you can enable the user later using the `enable` endpoint. */ - put: operations["disableUser"]; - }; - "/v2/administration/users/{userId}/enable": { - /** Enables previously disabled user. */ - put: operations["enableUser"]; - }; - "/v2/administration/users/{userId}/generate-token": { - /** Generates a JWT token for the user with provided ID. This is useful, when need to debug of the user's account. Or when an operation is required to be executed on behalf of the user. */ - get: operations["generateUserToken"]; - }; - "/v2/administration/users/{userId}/set-role/{role}": { - /** Set's the global role on the Tolgee Platform server. */ - put: operations["setRole"]; - }; - "/v2/announcement": { - /** Returns the latest announcement for the currently authenticated user */ - get: operations["getLatest"]; - }; - "/v2/announcement/dismiss": { - /** Dismisses the latest announcement for the currently authenticated user */ - post: operations["dismiss"]; - }; - "/v2/api-keys": { - get: operations["allByUser"]; - /** Creates new API key with provided scopes */ - post: operations["create_16"]; - }; - "/v2/api-keys/availableScopes": { - get: operations["getScopes"]; - }; - "/v2/api-keys/current": { - /** Returns info the API key which user currently authenticated with. Otherwise responds with 400 status code. */ - get: operations["getCurrent_1"]; - }; - "/v2/api-keys/current-permissions": { - /** Returns current PAK or PAT permissions for current user, api-key and project */ - get: operations["getCurrentPermissions"]; - }; - "/v2/api-keys/{apiKeyId}": { - put: operations["update_11"]; - delete: operations["delete_10"]; - }; - "/v2/api-keys/{apiKeyId}/regenerate": { - put: operations["regenerate_1"]; - }; - "/v2/api-keys/{keyId}": { - /** Returns specific API key info */ - get: operations["get_24"]; - }; - "/v2/auth-provider": { - get: operations["getCurrentAuthProvider"]; - delete: operations["deleteCurrentAuthProvider"]; - }; - "/v2/auth-provider/change": { - get: operations["getChangedAuthProvider"]; - post: operations["acceptChangeAuthProvider"]; - delete: operations["rejectChangeAuthProvider"]; - }; - "/v2/ee-current-subscription-usage": { - get: operations["getUsage_1"]; - }; - "/v2/ee-license/info": { - get: operations["getInfo_5"]; - }; - "/v2/ee-license/prepare-set-license-key": { - /** Get info about the upcoming EE subscription. This will show, how much the subscription will cost when key is applied. */ - post: operations["prepareSetLicenseKey"]; - }; - "/v2/ee-license/refresh": { - /** This will refresh the subscription information from the license server and update the subscription info. */ - put: operations["refreshSubscription"]; - }; - "/v2/ee-license/release-license-key": { - /** This will remove the licence key from the instance. */ - put: operations["release"]; - }; - "/v2/ee-license/set-license-key": { - put: operations["setLicenseKey"]; - }; - "/v2/image-upload": { - post: operations["upload"]; - }; - "/v2/image-upload/{ids}": { - delete: operations["delete_16"]; - }; - "/v2/invitations/{code}/accept": { - get: operations["acceptInvitation"]; - put: operations["acceptInvitationPut"]; - }; - "/v2/invitations/{invitationId}": { - delete: operations["deleteInvitation"]; - }; - "/v2/notification": { - get: operations["getNotifications"]; - }; - "/v2/notification-settings": { - /** Returns notification settings of the currently logged in user */ - get: operations["getNotificationsSettings"]; - /** Saves new value for given parameters */ - put: operations["putNotificationSetting"]; - }; - "/v2/notifications-mark-seen": { - put: operations["markNotificationsAsSeen"]; - }; - "/v2/organizations": { - /** Returns all organizations, which is current user allowed to view */ - get: operations["getAll_10"]; - post: operations["create_13"]; - }; - "/v2/organizations/{id}": { - get: operations["get_15"]; - put: operations["update_10"]; - /** Deletes organization and all its data including projects */ - delete: operations["delete_9"]; - }; - "/v2/organizations/{id}/avatar": { - put: operations["uploadAvatar_2"]; - delete: operations["removeAvatar_2"]; - }; - "/v2/organizations/{id}/invite": { - /** Generates invitation link for organization, so users can join organization. The invitation can also be sent to an e-mail address. */ - put: operations["inviteUser_1"]; - }; - "/v2/organizations/{id}/leave": { - /** Remove current user from organization */ - put: operations["leaveOrganization"]; - }; - "/v2/organizations/{id}/projects": { - /** Returns all organization projects the user has access to */ - get: operations["getAllProjects_1"]; - }; - "/v2/organizations/{id}/users": { - /** Returns all users in organization. The result also contains users who are only members of projects in the organization. */ - get: operations["getAllUsers_1"]; - }; - "/v2/organizations/{organizationId}/base-languages": { - /** Returns all base languages in use by projects owned by specified organization */ - get: operations["getAllBaseLanguagesInUse"]; - }; - "/v2/organizations/{organizationId}/glossaries": { - get: operations["getAll_12"]; - post: operations["create_14"]; - }; - "/v2/organizations/{organizationId}/glossaries-with-stats": { - get: operations["getAllWithStats"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}": { - get: operations["get_13"]; - put: operations["update_8"]; - delete: operations["delete_7"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/assigned-projects": { - get: operations["getAssignedProjects"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/export": { - get: operations["export"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/import": { - post: operations["importCsv"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/languages": { - get: operations["getLanguages"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms": { - get: operations["getAll_13"]; - post: operations["create_15"]; - delete: operations["deleteMultiple"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}": { - get: operations["get_14"]; - put: operations["update_9"]; - delete: operations["delete_8"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}/translations": { - post: operations["update_12"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}/translations/{languageTag}": { - get: operations["get_23"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/termsIds": { - get: operations["getAllIds"]; - }; - "/v2/organizations/{organizationId}/glossaries/{glossaryId}/termsWithTranslations": { - get: operations["getAllWithTranslations"]; - }; - "/v2/organizations/{organizationId}/invitations": { - get: operations["getInvitations"]; - }; - "/v2/organizations/{organizationId}/languages": { - /** Returns all languages in use by projects owned by specified organization */ - get: operations["getAllLanguagesInUse"]; - }; - "/v2/organizations/{organizationId}/llm-providers": { - get: operations["getAll_11"]; - post: operations["createProvider"]; - }; - "/v2/organizations/{organizationId}/llm-providers/all-available": { - /** Combines llm providers from organization-specific and server-configured */ - get: operations["getAvailableProviders"]; - }; - "/v2/organizations/{organizationId}/llm-providers/server-providers": { - get: operations["getServerProviders"]; - }; - "/v2/organizations/{organizationId}/llm-providers/{providerId}": { - put: operations["updateProvider"]; - delete: operations["deleteProvider"]; - }; - "/v2/organizations/{organizationId}/machine-translation-credit-balance": { - /** Returns machine translation credit balance for organization */ - get: operations["getOrganizationCredits"]; - }; - "/v2/organizations/{organizationId}/projects-with-stats": { - /** Returns all projects (including statistics) where current user has any permission (except none) */ - get: operations["getAllWithStatistics_2"]; - }; - "/v2/organizations/{organizationId}/set-base-permissions": { - /** Set default granular (scope-based) permissions for organization users, who don't have direct project permissions set. */ - put: operations["setBasePermissions"]; - }; - "/v2/organizations/{organizationId}/set-base-permissions/{permissionType}": { - /** Sets default (level-based) permission for organization */ - put: operations["setBasePermissions_1"]; - }; - "/v2/organizations/{organizationId}/slack/connect": { - /** - * This endpoint allows the owner of an organization to connect a Slack workspace to their organization. - * Checks if the Slack integration feature is enabled for the organization and proceeds with the connection. - */ - post: operations["connectWorkspace"]; - }; - "/v2/organizations/{organizationId}/slack/get-connect-url": { - /** Returns URL to which user should be redirected to connect Slack workspace */ - get: operations["connectToSlack"]; - }; - "/v2/organizations/{organizationId}/slack/workspaces": { - /** Returns a list of workspaces connected to the organization */ - get: operations["getConnectedWorkspaces"]; - }; - "/v2/organizations/{organizationId}/slack/workspaces/{workspaceId}": { - /** Disconnects a workspace from the organization */ - delete: operations["disconnectWorkspace"]; - }; - "/v2/organizations/{organizationId}/sso": { - get: operations["findProvider"]; - put: operations["setProvider"]; - }; - "/v2/organizations/{organizationId}/usage": { - get: operations["getUsage"]; - }; - "/v2/organizations/{organizationId}/users/{userId}": { - /** Remove user from organization. If user is managed by the organization, their account is disabled instead. */ - delete: operations["removeUser"]; - }; - "/v2/organizations/{organizationId}/users/{userId}/set-role": { - /** Sets user role in organization. Owner or Member. */ - put: operations["setUserRole"]; - }; - "/v2/organizations/{slug}": { - get: operations["get_22"]; - }; - "/v2/organizations/{slug}/projects": { - /** Returns all organization projects the user has access to */ - get: operations["getAllProjects"]; - }; - "/v2/organizations/{slug}/projects-with-stats": { - /** Returns all projects (including statistics) where current user has any permission (except none) */ - get: operations["getAllWithStatistics_1"]; - }; - "/v2/pats": { - get: operations["getAll_9"]; - post: operations["create_12"]; - }; - "/v2/pats/current": { - /** Returns current Personal Access Token. If the request is not authenticated with a Personal Access Token, it will return 400 response status. */ - get: operations["getCurrent"]; - }; - "/v2/pats/{id}": { - get: operations["get_12"]; - /** Updates Personal Access Token */ - put: operations["update_7"]; - /** Deletes Personal Access Token */ - delete: operations["delete_6"]; - }; - "/v2/pats/{id}/regenerate": { - /** Regenerates Personal Access Token. It generates new token value and updates its time of expiration. */ - put: operations["regenerate"]; - }; - "/v2/preferred-organization": { - /** Returns preferred organization. If server allows users to create organization, preferred organization is automatically created if user doesn't have access to any organization. */ - get: operations["getPreferred"]; - }; - "/v2/projects": { - /** Returns all projects where current user has any permission */ - get: operations["getAll"]; - /** Creates a new project with languages and initial settings. */ - post: operations["createProject"]; - }; - "/v2/projects/with-stats": { - /** Returns all projects (including statistics) where current user has any permission */ - get: operations["getAllWithStatistics"]; - }; - "/v2/projects/{projectId}": { - get: operations["get_2"]; - put: operations["editProject"]; - delete: operations["deleteProject"]; - }; - "/v2/projects/{projectId}/activity": { - get: operations["getActivity"]; - }; - "/v2/projects/{projectId}/activity/revisions/{revisionId}": { - get: operations["getSingleRevision"]; - }; - "/v2/projects/{projectId}/activity/revisions/{revisionId}/modified-entities": { - get: operations["getModifiedEntitiesByRevision"]; - }; - "/v2/projects/{projectId}/ai-playground-result": { - post: operations["getAiPlaygroundResult"]; - }; - "/v2/projects/{projectId}/ai-prompt-customization": { - get: operations["getPromptProjectCustomization"]; - put: operations["setPromptProjectCustomization"]; - }; - "/v2/projects/{projectId}/all-keys": { - get: operations["getAllKeys"]; - }; - "/v2/projects/{projectId}/all-keys-with-disabled-languages": { - /** - * Returns all project key with any disabled language. - * - * If key has no disabled language, it is not returned. - */ - get: operations["getDisabledLanguages_2"]; - }; - "/v2/projects/{projectId}/api-keys": { - /** Returns all API keys for specified project */ - get: operations["allByProject"]; - }; - "/v2/projects/{projectId}/auto-translation-settings": { - /** Returns default auto translation settings for project (deprecated: use per language config with null language id) */ - get: operations["getAutoTranslationSettings"]; - /** Sets default auto-translation settings for project (deprecated: use per language config with null language id) */ - put: operations["setAutoTranslationSettings"]; - }; - "/v2/projects/{projectId}/avatar": { - put: operations["uploadAvatar_1"]; - delete: operations["removeAvatar_1"]; - }; - "/v2/projects/{projectId}/batch-jobs": { - get: operations["list_3"]; - }; - "/v2/projects/{projectId}/batch-jobs/{id}": { - get: operations["get_20"]; - }; - "/v2/projects/{projectId}/batch-jobs/{id}/cancel": { - /** Stops batch operation if possible. */ - put: operations["cancel"]; - }; - "/v2/projects/{projectId}/big-meta": { - /** Stores a bigMeta for a project */ - post: operations["store_2"]; - }; - "/v2/projects/{projectId}/branches": { - get: operations["all"]; - post: operations["create_11"]; - }; - "/v2/projects/{projectId}/branches/merge": { - get: operations["getBranchMerges"]; - }; - "/v2/projects/{projectId}/branches/merge/preview": { - post: operations["dryRunMerge"]; - }; - "/v2/projects/{projectId}/branches/merge/{mergeId}": { - delete: operations["deleteBranchMerge"]; - }; - "/v2/projects/{projectId}/branches/merge/{mergeId}/apply": { - post: operations["merge"]; - }; - "/v2/projects/{projectId}/branches/merge/{mergeId}/changes": { - get: operations["getBranchMergeSessionChanges"]; - }; - "/v2/projects/{projectId}/branches/merge/{mergeId}/conflicts": { - get: operations["getBranchMergeSessionConflicts"]; - }; - "/v2/projects/{projectId}/branches/merge/{mergeId}/preview": { - get: operations["getBranchMergeSessionPreview"]; - }; - "/v2/projects/{projectId}/branches/merge/{mergeId}/refresh": { - post: operations["refreshBranchMerge"]; - }; - "/v2/projects/{projectId}/branches/merge/{mergeId}/resolve": { - put: operations["resolveConflict"]; - }; - "/v2/projects/{projectId}/branches/merge/{mergeId}/resolve-all": { - put: operations["resolveAllConflicts"]; - }; - "/v2/projects/{projectId}/branches/{branchId}": { - delete: operations["delete_15"]; - }; - "/v2/projects/{projectId}/content-delivery-configs": { - get: operations["list_2"]; - post: operations["create_10"]; - }; - "/v2/projects/{projectId}/content-delivery-configs/{id}": { - get: operations["get_11"]; - put: operations["update_6"]; - /** Immediately publishes content to the configured Content Delivery */ - post: operations["post"]; - delete: operations["delete_5"]; - }; - "/v2/projects/{projectId}/content-storages": { - get: operations["list_1"]; - post: operations["create_9"]; - }; - "/v2/projects/{projectId}/content-storages/test": { - post: operations["test_1"]; - }; - "/v2/projects/{projectId}/content-storages/{contentStorageId}": { - get: operations["get_10"]; - put: operations["update_5"]; - delete: operations["delete_4"]; - }; - "/v2/projects/{projectId}/content-storages/{id}/test": { - /** Tests existing Content Storage with new configuration. (Uses existing secrets, if nulls provided) */ - post: operations["testExisting"]; - }; - "/v2/projects/{projectId}/current-batch-jobs": { - /** Returns all running and pending batch operations. Completed batch operations are returned only if they are not older than 1 hour. If user doesn't have permission to view all batch operations, only their operations are returned. */ - get: operations["currentJobs"]; - }; - "/v2/projects/{projectId}/export": { - /** - * Exports project data in various formats (JSON, properties, YAML, etc.). - * - * ## HTTP Conditional Requests Support - * - * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: - * - * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date - * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value - * - **Data not modified**: Returns HTTP 304 Not Modified with empty body - * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header - * - * The Last-Modified header in the response contains the timestamp of the last project modification, - * and the ETag header contains a unique identifier for the current project state. Both can be used - * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. - * - * Cache-Control header is set to max-age=0 to ensure validation on each request. - */ - get: operations["exportData"]; - /** - * Exports project data in various formats (JSON, properties, YAML, etc.). - * Useful when exceeding allowed URL size with GET requests. - * - * ## HTTP Conditional Requests Support - * - * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: - * - * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date - * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value - * - **Data not modified**: Returns HTTP 304 Not Modified with empty body - * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header - * - * Note: This endpoint uses a custom implementation that returns 304 Not Modified for all HTTP methods - * (including POST) when conditional headers indicate the data hasn't changed. This differs from Spring's - * default behavior which returns 412 for POST requests, but is appropriate here since POST is used only - * to accommodate large request parameters, not to modify data. - * - * The Last-Modified header in the response contains the timestamp of the last project modification, - * and the ETag header contains a unique identifier for the current project state. Both can be used - * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. - * - * Cache-Control header is set to max-age=0 to ensure validation on each request. - */ - post: operations["exportPost"]; - }; - "/v2/projects/{projectId}/glossary-highlights": { - post: operations["getHighlights"]; - }; - "/v2/projects/{projectId}/import": { - /** Prepares provided files to import. */ - post: operations["addFiles"]; - /** Deletes prepared import data. */ - delete: operations["cancelImport"]; - }; - "/v2/projects/{projectId}/import-settings": { - /** Returns import settings for the authenticated user and the project. */ - get: operations["get"]; - /** Stores import settings for the authenticated user and the project. */ - put: operations["store"]; - }; - "/v2/projects/{projectId}/import/all-namespaces": { - /** Returns all existing and imported namespaces */ - get: operations["getAllNamespaces"]; - }; - "/v2/projects/{projectId}/import/apply": { - /** Imports the data prepared in previous step */ - put: operations["applyImport"]; - }; - "/v2/projects/{projectId}/import/apply-streaming": { - /** Imports the data prepared in previous step. Streams current status. */ - put: operations["applyImportStreaming"]; - }; - "/v2/projects/{projectId}/import/result": { - /** Returns the result of preparation. */ - get: operations["getImportResult"]; - }; - "/v2/projects/{projectId}/import/result/files/{fileId}/select-namespace": { - /** Sets namespace for file to import. */ - put: operations["selectNamespace"]; - }; - "/v2/projects/{projectId}/import/result/files/{importFileId}/issues": { - /** Returns issues for uploaded file. */ - get: operations["getImportFileIssues"]; - }; - "/v2/projects/{projectId}/import/result/languages/{importLanguageId}/reset-existing": { - /** Resets existing language paired with language to import. */ - put: operations["resetExistingLanguage"]; - }; - "/v2/projects/{projectId}/import/result/languages/{importLanguageId}/select-existing/{existingLanguageId}": { - /** Sets existing language to pair with language to import. Data will be imported to selected existing language when applied. */ - put: operations["selectExistingLanguage"]; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}": { - /** Returns language prepared to import. */ - get: operations["getImportLanguage"]; - /** Deletes language prepared to import. */ - delete: operations["deleteLanguage_2"]; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/resolve-all/set-keep-existing": { - /** Resolves all translation conflicts for provided language. The old translations will be kept. */ - put: operations["resolveTranslationSetKeepExisting_2"]; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/resolve-all/set-override": { - /** Resolves all translation conflicts for provided language. The old translations will be overridden. */ - put: operations["resolveTranslationSetOverride_2"]; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/translations": { - /** Returns translations prepared to import. */ - get: operations["getImportTranslations"]; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/translations/{translationId}/resolve/set-keep-existing": { - /** Resolves translation conflict. The old translation will be kept. */ - put: operations["resolveTranslationSetKeepExisting"]; - }; - "/v2/projects/{projectId}/import/result/languages/{languageId}/translations/{translationId}/resolve/set-override": { - /** Resolves translation conflict. The old translation will be overridden. */ - put: operations["resolveTranslationSetOverride"]; - }; - "/v2/projects/{projectId}/invitations": { - get: operations["getProjectInvitations"]; - }; - "/v2/projects/{projectId}/invite": { - put: operations["inviteUser"]; - }; - "/v2/projects/{projectId}/keys": { - get: operations["getAll_7"]; - post: operations["create_6"]; - /** Delete one or multiple keys by their IDs in request body. Useful for larger requests esxceeding allowed URL length. */ - delete: operations["delete_11"]; - }; - "/v2/projects/{projectId}/keys/create": { - post: operations["create_5"]; - }; - "/v2/projects/{projectId}/keys/import": { - /** Imports new keys with translations. If key already exists, its translations and tags are not updated. */ - post: operations["importKeys_2"]; - }; - "/v2/projects/{projectId}/keys/import-resolvable": { - /** - * Import's new keys with translations. Translations can be updated, when specified.\n\n - * DEPRECATED: Use /v2/projects/{projectId}/single-step-import-resolvable instead. - */ - post: operations["importKeys"]; - }; - "/v2/projects/{projectId}/keys/info": { - /** Returns information about keys. (KeyData, Screenshots, Translation in specified language)If key is not found, it's not included in the response. */ - post: operations["getInfo_1"]; - }; - "/v2/projects/{projectId}/keys/search": { - /** - * This endpoint helps you to find desired key by keyName, base translation or translation in specified language. - * - * Sort is ignored for this request. - */ - get: operations["searchForKey"]; - }; - "/v2/projects/{projectId}/keys/select": { - /** Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. */ - get: operations["selectKeys_2"]; - }; - "/v2/projects/{projectId}/keys/{ids}": { - delete: operations["delete_13"]; - }; - "/v2/projects/{projectId}/keys/{id}": { - get: operations["get_8"]; - put: operations["edit"]; - }; - "/v2/projects/{projectId}/keys/{id}/big-meta": { - get: operations["getBigMeta"]; - }; - "/v2/projects/{projectId}/keys/{id}/complex-update": { - /** Edits key name, translations, tags, screenshots, and other data */ - put: operations["complexEdit"]; - }; - "/v2/projects/{projectId}/keys/{id}/disabled-languages": { - /** Returns languages, in which key is disabled */ - get: operations["getDisabledLanguages"]; - /** Sets languages, in which key is disabled */ - put: operations["setDisabledLanguages"]; - }; - "/v2/projects/{projectId}/keys/{keyId}/auto-translate": { - /** - * Uses enabled auto-translation methods. - * You need to set at least one of useMachineTranslation or useTranslationMemory to true. - * - * This will replace the the existing translation with the result obtained from specified source! - */ - put: operations["autoTranslate"]; - }; - "/v2/projects/{projectId}/keys/{keyId}/screenshots": { - get: operations["getKeyScreenshots_1"]; - post: operations["uploadScreenshot_1"]; - }; - "/v2/projects/{projectId}/keys/{keyId}/screenshots/{ids}": { - delete: operations["deleteScreenshots_1"]; - }; - "/v2/projects/{projectId}/keys/{keyId}/tags": { - /** Tags a key with tag. If tag with provided name doesn't exist, it is created */ - put: operations["tagKey"]; - }; - "/v2/projects/{projectId}/keys/{keyId}/tags/{tagId}": { - /** Removes tag with provided id from key with provided id */ - delete: operations["removeTag"]; - }; - "/v2/projects/{projectId}/labels": { - get: operations["getAll_1"]; - post: operations["createLabel"]; - }; - "/v2/projects/{projectId}/labels/ids": { - get: operations["getLabelsByIds"]; - }; - "/v2/projects/{projectId}/labels/{labelId}": { - put: operations["updateLabel"]; - delete: operations["deleteLabel"]; - }; - "/v2/projects/{projectId}/language-ai-prompt-customizations": { - get: operations["getLanguagePromptCustomizations"]; - }; - "/v2/projects/{projectId}/languages": { - get: operations["getAll_5"]; - post: operations["createLanguage"]; - }; - "/v2/projects/{projectId}/languages/{languageId}": { - get: operations["get_6"]; - put: operations["editLanguage"]; - delete: operations["deleteLanguage"]; - }; - "/v2/projects/{projectId}/languages/{languageId}/ai-prompt-customization": { - put: operations["setLanguagePromptCustomization"]; - }; - "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion": { - get: operations["getSuggestions"]; - post: operations["createSuggestion"]; - }; - "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}": { - /** User can only delete suggestion created by them */ - delete: operations["deleteSuggestion"]; - }; - "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/accept": { - put: operations["acceptSuggestion"]; - }; - "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/decline": { - put: operations["declineSuggestion"]; - }; - "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/set-active": { - put: operations["suggestionSetActive"]; - }; - "/v2/projects/{projectId}/leave": { - put: operations["leaveProject"]; - }; - "/v2/projects/{projectId}/machine-translation-credit-balance": { - /** Returns machine translation credit balance for specified project */ - get: operations["getProjectCredits"]; - }; - "/v2/projects/{projectId}/machine-translation-language-info": { - /** Get enabled services and configured formality for each language */ - get: operations["getMachineTranslationLanguageInfo"]; - }; - "/v2/projects/{projectId}/machine-translation-service-settings": { - get: operations["getMachineTranslationSettings"]; - put: operations["setMachineTranslationSettings"]; - }; - "/v2/projects/{projectId}/machine-translation-service-settings/set-default-prompt/{promptId}": { - put: operations["setMachineTranslationSettings_1"]; - }; - "/v2/projects/{projectId}/my-batch-jobs": { - /** List all batch operations started by current user */ - get: operations["myList"]; - }; - "/v2/projects/{projectId}/namespace-by-name/{name}": { - /** Returns information about a namespace by its name */ - get: operations["getByName"]; - }; - "/v2/projects/{projectId}/namespaces": { - get: operations["getAllNamespaces_2"]; - }; - "/v2/projects/{projectId}/namespaces/{id}": { - put: operations["update_3"]; - }; - "/v2/projects/{projectId}/per-language-auto-translation-settings": { - get: operations["getPerLanguageAutoTranslationSettings"]; - put: operations["setPerLanguageAutoTranslationSettings"]; - }; - "/v2/projects/{projectId}/prompts": { - get: operations["getAllPaged"]; - post: operations["createPrompt"]; - }; - "/v2/projects/{projectId}/prompts/default": { - get: operations["getDefaultPrompt"]; - }; - "/v2/projects/{projectId}/prompts/get-variables": { - get: operations["variables"]; - }; - "/v2/projects/{projectId}/prompts/run": { - post: operations["run"]; - }; - "/v2/projects/{projectId}/prompts/{promptId}": { - get: operations["getPrompt"]; - put: operations["updatePrompt"]; - delete: operations["deletePrompt"]; - }; - "/v2/projects/{projectId}/single-step-import": { - /** Unlike the /v2/projects/{projectId}/import endpoint, imports the data in single request by provided files and parameters. This is useful for automated importing via API or CLI. */ - post: operations["singleStepFromFiles"]; - }; - "/v2/projects/{projectId}/single-step-import-resolvable": { - post: operations["singleStepResolvableImport"]; - }; - "/v2/projects/{projectId}/start-batch-job/ai-playground-translate": { - post: operations["aiPlaygroundTranslate"]; - }; - "/v2/projects/{projectId}/start-batch-job/assign-translation-label": { - post: operations["assignTranslationLabel"]; - }; - "/v2/projects/{projectId}/start-batch-job/clear-translations": { - /** Clear translation values for provided keys in selected languages. */ - post: operations["clearTranslations"]; - }; - "/v2/projects/{projectId}/start-batch-job/copy-translations": { - /** Copy translation values from one language to other languages. */ - post: operations["copyTranslations"]; - }; - "/v2/projects/{projectId}/start-batch-job/delete-keys": { - post: operations["deleteKeys"]; - }; - "/v2/projects/{projectId}/start-batch-job/machine-translate": { - /** Translate provided keys to provided languages through primary MT provider. */ - post: operations["machineTranslation"]; - }; - "/v2/projects/{projectId}/start-batch-job/pre-translate-by-tm": { - /** Pre-translate provided keys to provided languages by TM. */ - post: operations["translate"]; - }; - "/v2/projects/{projectId}/start-batch-job/set-keys-namespace": { - post: operations["setKeysNamespace"]; - }; - "/v2/projects/{projectId}/start-batch-job/set-translation-state": { - post: operations["setTranslationState_2"]; - }; - "/v2/projects/{projectId}/start-batch-job/tag-keys": { - post: operations["tagKeys"]; - }; - "/v2/projects/{projectId}/start-batch-job/unassign-translation-label": { - post: operations["unassignTranslationLabel"]; - }; - "/v2/projects/{projectId}/start-batch-job/untag-keys": { - post: operations["untagKeys"]; - }; - "/v2/projects/{projectId}/stats": { - get: operations["getProjectStats"]; - }; - "/v2/projects/{projectId}/stats/daily-activity": { - get: operations["getProjectDailyActivity"]; - }; - "/v2/projects/{projectId}/suggest/machine-translations": { - /** Suggests machine translations from enabled services */ - post: operations["suggestMachineTranslations"]; - }; - "/v2/projects/{projectId}/suggest/machine-translations-streaming": { - /** Suggests machine translations from enabled services. The results are streamed to the output in ndjson format. If an error occurs when for any service provider used, the error information is returned as a part of the result item, while the response has 200 status code. */ - post: operations["suggestMachineTranslationsStreaming"]; - }; - "/v2/projects/{projectId}/suggest/translation-memory": { - /** Suggests machine translations from translation memory. The result is always sorted by similarity, so sorting is not supported. */ - post: operations["suggestTranslationMemory"]; - }; - "/v2/projects/{projectId}/tag-complex": { - put: operations["executeComplexTagOperation"]; - }; - "/v2/projects/{projectId}/tags": { - get: operations["getAll_14"]; - }; - "/v2/projects/{projectId}/tasks": { - get: operations["getTasks"]; - post: operations["createTask"]; - }; - "/v2/projects/{projectId}/tasks/calculate-scope": { - post: operations["calculateScope"]; - }; - "/v2/projects/{projectId}/tasks/create-multiple-tasks": { - post: operations["createTasks"]; - }; - "/v2/projects/{projectId}/tasks/possible-assignees": { - get: operations["getPossibleAssignees"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}": { - get: operations["getTask"]; - put: operations["updateTask"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/blocking-tasks": { - /** If the tasks is blocked by other tasks, it returns numbers of these tasks. */ - get: operations["getBlockingTasks"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/cancel": { - put: operations["cancelTask"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/close": { - put: operations["closeTask"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/finish": { - put: operations["finishTask"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/keys": { - get: operations["getTaskKeys"]; - put: operations["updateTaskKeys"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/keys/{keyId}": { - /** Mark key as done, which updates task progress. */ - put: operations["updateTaskKey"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/per-user-report": { - /** Detailed statistics for every assignee */ - get: operations["getPerUserReport"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/reopen": { - put: operations["reopenTask"]; - }; - "/v2/projects/{projectId}/tasks/{taskNumber}/xlsx-report": { - /** Detailed statistics about the task results */ - get: operations["getXlsxReport"]; - }; - "/v2/projects/{projectId}/transfer-options": { - /** Returns organizations to which project can be transferred */ - get: operations["getTransferOptions"]; - }; - "/v2/projects/{projectId}/transfer-to-organization/{organizationId}": { - /** Transfers project's ownership to organization */ - put: operations["transferProjectToOrganization"]; - }; - "/v2/projects/{projectId}/translations": { - get: operations["getTranslations"]; - /** Sets translations for existing key */ - put: operations["setTranslations"]; - /** Sets translations for existing key or creates new key and sets the translations to it. */ - post: operations["createOrUpdateTranslations"]; - }; - "/v2/projects/{projectId}/translations/create-comment": { - /** Creates a translation comment. Empty translation is stored, when not exists. */ - post: operations["create_3"]; - }; - "/v2/projects/{projectId}/translations/label": { - put: operations["assignLabel_2"]; - }; - "/v2/projects/{projectId}/translations/select-all": { - /** Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. */ - get: operations["selectKeys"]; - }; - "/v2/projects/{projectId}/translations/{languages}": { - /** Returns all translations for specified languages */ - get: operations["getAllTranslations"]; - }; - "/v2/projects/{projectId}/translations/{translationId}/comments": { - /** Returns translation comments of translation */ - get: operations["getAll_3"]; - post: operations["create_1"]; - }; - "/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}": { - get: operations["get_4"]; - put: operations["update_1"]; - delete: operations["delete_2"]; - }; - "/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}/set-state/{state}": { - put: operations["setState"]; - }; - "/v2/projects/{projectId}/translations/{translationId}/dismiss-auto-translated-state": { - /** Removes "auto translated" indication */ - put: operations["dismissAutoTranslatedState"]; - }; - "/v2/projects/{projectId}/translations/{translationId}/history": { - /** Sorting is not supported for supported. It is automatically sorted from newest to oldest. */ - get: operations["getTranslationHistory"]; - }; - "/v2/projects/{projectId}/translations/{translationId}/label/{labelId}": { - put: operations["assignLabel"]; - delete: operations["unassignLabel"]; - }; - "/v2/projects/{projectId}/translations/{translationId}/set-outdated-flag/{state}": { - /** Set's "outdated" flag indicating the base translation was changed without updating current translation. */ - put: operations["setOutdated"]; - }; - "/v2/projects/{projectId}/translations/{translationId}/set-state/{state}": { - put: operations["setTranslationState"]; - }; - "/v2/projects/{projectId}/used-namespaces": { - /** Returns all used project namespaces. Response contains default (null) namespace if used. */ - get: operations["getUsedNamespaces"]; - }; - "/v2/projects/{projectId}/users": { - /** Returns all project users, who have permission to access project */ - get: operations["getAllUsers"]; - }; - "/v2/projects/{projectId}/users/{userId}/revoke-access": { - put: operations["revokePermission"]; - }; - "/v2/projects/{projectId}/users/{userId}/set-by-organization": { - /** Removes user's direct project permission, explicitly set for the project. User will have now base permissions from organization or no permission if they're not organization member. */ - put: operations["removeDirectProjectPermissions"]; - }; - "/v2/projects/{projectId}/users/{userId}/set-permissions": { - /** Set user's granular (scope-based) direct project permission */ - put: operations["setUsersPermissions"]; - }; - "/v2/projects/{projectId}/users/{userId}/set-permissions/{permissionType}": { - put: operations["setUsersPermissions_1"]; - }; - "/v2/projects/{projectId}/webhook-configs": { - get: operations["list"]; - post: operations["create"]; - }; - "/v2/projects/{projectId}/webhook-configs/{id}": { - get: operations["get_3"]; - put: operations["update"]; - delete: operations["delete_1"]; - }; - "/v2/projects/{projectId}/webhook-configs/{id}/test": { - /** Sends a test request to the webhook */ - post: operations["test"]; - }; - "/v2/public/business-events/identify": { - post: operations["identify"]; - }; - "/v2/public/business-events/report": { - post: operations["report"]; - }; - "/v2/public/configuration-properties": { - /** Return server configuration properties documentation */ - get: operations["get_19"]; - }; - "/v2/public/export-info/formats": { - get: operations["get_18"]; - }; - "/v2/public/initial-data": { - /** Returns initial data required by the UI to load */ - get: operations["get_17"]; - }; - "/v2/public/machine-translation-providers": { - /** Get machine translation providers */ - get: operations["getInfo_4"]; - }; - "/v2/public/scope-info/hierarchy": { - get: operations["getHierarchy"]; - }; - "/v2/public/scope-info/roles": { - get: operations["getRoles"]; - }; - "/v2/public/slack": { - post: operations["slackCommand"]; - }; - "/v2/public/slack/on-bot-event": { - /** - * This is triggered when bot event is triggered. E.g., when app is uninstalled from workspace. - * - * Heads up! The events have to be configured via Slack App configuration in Event Subscription section. - */ - post: operations["fetchBotEvent"]; - }; - "/v2/public/slack/on-event": { - /** This is triggered when interactivity event is triggered. E.g., when user clicks button provided in previous messages. */ - post: operations["onInteractivityEvent"]; - }; - "/v2/quick-start/set-finished/{finished}": { - /** Sets finished state of the quick start guide */ - put: operations["setFinishedState"]; - }; - "/v2/quick-start/set-open/{open}": { - /** Sets open state of the quick start guide */ - put: operations["setOpenState"]; - }; - "/v2/quick-start/steps/{step}/complete": { - /** Marks guide step as completed */ - put: operations["completeGuideStep"]; - }; - "/v2/slack/user-login": { - /** Pairs user account with slack account. */ - post: operations["userLogin"]; - }; - "/v2/slack/user-login-info": { - /** - * Returns information about the connection between Slack account and Tolgee account which user is performing. The flow is the following. - * - * 1. User executes slash command in Slack and gets link with encrypted Slack user ID, workspace ID and the Channel ID (to send success response to) - * - * 2. User gets opens the link and the Tolgee Platform frontend and it uses this endpoint to get the data info about the future connection - */ - get: operations["getInfo_3"]; - }; - "/v2/slug/generate-organization": { - post: operations["generateOrganizationSlug"]; - }; - "/v2/slug/generate-project": { - post: operations["generateProjectSlug"]; - }; - "/v2/slug/validate-organization/{slug}": { - get: operations["validateOrganizationSlug"]; - }; - "/v2/slug/validate-project/{slug}": { - get: operations["validateProjectSlug"]; - }; - "/v2/user": { - /** Returns information about currently authenticated user. */ - get: operations["getInfo"]; - /** Updates current user's profile information. */ - put: operations["updateUser"]; - post: operations["updateUserOld"]; - delete: operations["delete"]; - }; - "/v2/user-preferences": { - get: operations["get_16"]; - }; - "/v2/user-preferences/set-language/{languageTag}": { - put: operations["setLanguage"]; - }; - "/v2/user-preferences/set-preferred-organization/{organizationId}": { - put: operations["setPreferredOrganization"]; - }; - "/v2/user-tasks": { - get: operations["getTasks_2"]; - }; - "/v2/user/avatar": { - put: operations["uploadAvatar"]; - delete: operations["removeAvatar"]; - }; - "/v2/user/generate-super-token": { - /** Generates new JWT token permitted to sensitive operations */ - post: operations["getSuperToken"]; - }; - "/v2/user/managed-by": { - /** Returns the organization that manages a given user or null */ - get: operations["getManagedBy"]; - }; - "/v2/user/mfa/recovery": { - /** Regenerates multi-factor authentication recovery codes */ - put: operations["regenerateRecoveryCodes"]; - }; - "/v2/user/mfa/totp": { - /** Enables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. */ - put: operations["enableMfa"]; - /** Disables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. */ - delete: operations["disableMfa"]; - }; - "/v2/user/password": { - /** Updates current user's password. Invalidates all previous sessions upon success. */ - put: operations["updateUserPassword"]; - }; - "/v2/user/send-email-verification": { - /** Resends email verification email to currently authenticated user. */ - post: operations["sendEmailVerification"]; - }; - "/v2/user/single-owned-organizations": { - /** Returns all organizations owned only by current user */ - get: operations["getAllSingleOwnedOrganizations"]; - }; - "/v2/user/sso": { - /** Returns information about sso configuration affecting the user. */ - get: operations["getSso"]; - }; -} - -export interface components { - schemas: { - AcceptAuthProviderChangeRequest: { - id: string; - }; - AiPlaygroundResultModel: { - contextDescription?: string; - /** Format: int64 */ - keyId: number; - /** Format: int64 */ - languageId: number; - translation?: string; - }; - AiPlaygroundResultRequest: { - keys: number[]; - languages: number[]; - }; - AnnouncementDto: { - /** @enum {string} */ - type: - | "FEATURE_BATCH_OPERATIONS" - | "FEATURE_MT_FORMALITY" - | "FEATURE_CONTENT_DELIVERY_AND_WEBHOOKS" - | "NEW_PRICING" - | "FEATURE_AI_CUSTOMIZATION" - | "FEATURE_VISUAL_EDITOR" - | "FEATURE_CLI_2" - | "FEATURE_TASKS" - | "FEATURE_LLM_PROVIDERS_AND_PLAYGROUND" - | "FEATURE_GLOSSARIES_AND_PLAYGROUND" - | "FEATURE_LABELS" - | "FEATURE_SUGGESTIONS_AND_LABELS" - | "FEATURE_IMPROVED_FIGMA_ANDROID_AND_IOS"; - }; - ApiKeyModel: { - /** @description Description */ - description: string; - /** - * Format: int64 - * @description Timestamp of API key expiraion - */ - expiresAt?: number; - /** - * Format: int64 - * @description ID of the API key - */ - id: number; - /** - * Format: int64 - * @description Timestamp of API key last usage - */ - lastUsedAt?: number; - /** - * Format: int64 - * @description Api key's project ID - */ - projectId: number; - /** @description Api key's project name */ - projectName: string; - /** - * @description Api key's permission scopes - * @example [ - * "screenshots.upload", - * "screenshots.delete", - * "translations.edit", - * "screenshots.view", - * "translations.view", - * "keys.edit" - * ] - */ - scopes: string[]; - /** @description Full name of user owner */ - userFullName?: string; - /** @description Username of user owner */ - username?: string; - }; - ApiKeyPermissionsModel: { - project: components["schemas"]["SimpleProjectModel"]; - /** - * Format: int64 - * @description The API key's project id or the one provided as query param - */ - projectId: number; - /** - * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. - * @example [ - * "KEYS_EDIT", - * "TRANSLATIONS_VIEW" - * ] - */ - scopes: ( - | "translations.view" - | "translations.edit" - | "translations.suggest" - | "keys.edit" - | "screenshots.upload" - | "screenshots.delete" - | "screenshots.view" - | "activity.view" - | "languages.edit" - | "admin" - | "project.edit" - | "members.view" - | "members.edit" - | "translation-comments.add" - | "translation-comments.edit" - | "translation-comments.set-state" - | "translations.state-edit" - | "keys.view" - | "keys.delete" - | "keys.create" - | "batch-jobs.view" - | "batch-jobs.cancel" - | "translations.batch-by-tm" - | "translations.batch-machine" - | "content-delivery.manage" - | "content-delivery.publish" - | "webhooks.manage" - | "tasks.view" - | "tasks.edit" - | "prompts.view" - | "prompts.edit" - | "translation-labels.manage" - | "translation-labels.assign" - | "all.view" - )[]; - /** - * @description List of languages user can change state to. If null, changing state of all language values is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - stateChangeLanguageIds?: number[]; - /** - * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - suggestLanguageIds?: number[]; - /** - * @description List of languages user can translate to. If null, all languages editing is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - translateLanguageIds?: number[]; - /** - * @description The user's permission type. This field is null if user has assigned granular permissions or if returning API key's permissions - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** - * @description List of languages user can view. If null, all languages view is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - viewLanguageIds?: number[]; - }; - ApiKeyWithLanguagesModel: { - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** Format: int64 */ - lastUsedAt?: number; - /** - * @deprecated - * @description Languages for which user has translate permission. - */ - permittedLanguageIds?: number[]; - /** Format: int64 */ - projectId: number; - projectName: string; - scopes: string[]; - userFullName?: string; - username?: string; - }; - AuthInfoModel: { - isReadOnly: boolean; - }; - AuthMethodsDTO: { - github: components["schemas"]["OAuthPublicConfigDTO"]; - google: components["schemas"]["OAuthPublicConfigDTO"]; - oauth2: components["schemas"]["OAuthPublicExtendsConfigDTO"]; - ssoGlobal: components["schemas"]["SsoGlobalPublicConfigDTO"]; - ssoOrganizations: components["schemas"]["SsoOrganizationsPublicConfigDTO"]; - }; - AuthProviderDto: { - /** @enum {string} */ - authType?: "GOOGLE" | "GITHUB" | "OAUTH2" | "SSO" | "SSO_GLOBAL"; - id?: string; - ssoDomain?: string; - }; - AutoTranslationConfigModel: { - /** - * @description If true, import will trigger batch operation to translate the new new keys. - * It includes also the data imported via CLI, Figma, or other integrations using batch key import. - */ - enableForImport: boolean; - /** Format: int64 */ - languageId?: number; - /** @description If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first. */ - usingMachineTranslation: boolean; - /** @description If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found */ - usingTranslationMemory: boolean; - }; - AutoTranslationSettingsDto: { - /** - * @description If true, import will trigger batch operation to translate the new new keys. - * It includes also the data imported via CLI, Figma, or other integrations using batch key import. - */ - enableForImport: boolean; - /** Format: int64 */ - languageId?: number; - /** @description If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first. */ - usingMachineTranslation: boolean; - /** @description If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found */ - usingTranslationMemory: boolean; - }; - Avatar: { - large: string; - thumbnail: string; - }; - AverageProportionalUsageItemModel: { - total: number; - unusedQuantity: number; - usedQuantity: number; - usedQuantityOverPlan: number; - }; - AzureContentStorageConfigDto: { - connectionString?: string; - containerName: string; - }; - AzureContentStorageConfigModel: { - containerName?: string; - }; - BatchJobModel: { - /** - * Format: int64 - * @description The activity revision id, that stores the activity details of the job - */ - activityRevisionId?: number; - /** @description The user who started the job */ - author?: components["schemas"]["SimpleUserAccountModel"]; - /** - * Format: int64 - * @description The time when the job created - */ - createdAt: number; - /** @description If the job failed, this is the error message */ - errorMessage?: string; - /** - * Format: int64 - * @description Batch job id - */ - id: number; - /** - * Format: int32 - * @description Total items, that have been processed so far - */ - progress: number; - /** - * @description Status of the batch job - * @enum {string} - */ - status: - | "PENDING" - | "RUNNING" - | "SUCCESS" - | "FAILED" - | "CANCELLED" - | "DEBOUNCED"; - /** - * Format: int32 - * @description Total items - */ - totalItems: number; - /** - * @description Type of the batch job - * @enum {string} - */ - type: - | "AI_PLAYGROUND_TRANSLATE" - | "PRE_TRANSLATE_BT_TM" - | "MACHINE_TRANSLATE" - | "AUTO_TRANSLATE" - | "DELETE_KEYS" - | "SET_TRANSLATIONS_STATE" - | "CLEAR_TRANSLATIONS" - | "COPY_TRANSLATIONS" - | "TAG_KEYS" - | "UNTAG_KEYS" - | "SET_KEYS_NAMESPACE" - | "AUTOMATION" - | "BILLING_TRIAL_EXPIRATION_NOTICE" - | "ASSIGN_TRANSLATION_LABEL" - | "UNASSIGN_TRANSLATION_LABEL"; - /** - * Format: int64 - * @description The time when the job was last updated (status change) - */ - updatedAt: number; - }; - BigMetaDto: { - /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ - relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; - }; - BranchMergeChangeModel: { - /** - * Format: int64 - * @description Branch merge change id - */ - id: number; - /** - * @description Type of key conflict resolution - * @enum {string} - */ - resolution?: "SOURCE" | "TARGET"; - /** @description Source branch key */ - sourceKey?: components["schemas"]["KeyWithTranslationsModel"]; - /** @description Target branch key */ - targetKey?: components["schemas"]["KeyWithTranslationsModel"]; - /** - * @description Change type - * @enum {string} - */ - type: "ADD" | "UPDATE" | "DELETE" | "CONFLICT"; - }; - BranchMergeConflictModel: { - /** - * Format: int64 - * @description Branch merge session id - */ - id: number; - /** - * @description Type of key conflict resolution - * @enum {string} - */ - resolution?: "SOURCE" | "TARGET"; - /** @description Source branch key */ - sourceKey: components["schemas"]["KeyWithTranslationsModel"]; - /** @description Target branch key */ - targetKey: components["schemas"]["KeyWithTranslationsModel"]; - }; - BranchMergeModel: { - /** - * Format: int64 - * @description Branch merge id - */ - id: number; - /** - * Format: int32 - * @description Key additions count - */ - keyAdditionsCount: number; - /** - * Format: int32 - * @description Key deletions count - */ - keyDeletionsCount: number; - /** - * Format: int32 - * @description Key updates count - */ - keyModificationsCount: number; - /** - * Format: int32 - * @description Key resolved conflicts count - */ - keyResolvedConflictsCount: number; - /** - * Format: int32 - * @description Key unresoled conflicts count - */ - keyUnresolvedConflictsCount: number; - /** - * Format: int64 - * @description Date of merge. If null, merge was not applied yet - */ - mergedAt?: number; - /** @description Is merge outdated. If true, it means, that either source or target branch data were changed */ - outdated: boolean; - /** - * Format: int64 - * @description Source branch id - */ - sourceBranchId: number; - /** @description Source branch name */ - sourceBranchName: string; - /** - * Format: int64 - * @description Target branch id - */ - targetBranchId: number; - /** @description Target branch name */ - targetBranchName: string; - }; - BranchMergeRefModel: { - /** - * Format: int64 - * @description Branch merge ID - */ - id: number; - /** - * Format: int64 - * @description Date of merge. If null, merge was not applied yet - */ - mergedAt?: number; - /** @description Target branch name */ - targetBranchName: string; - }; - BranchModel: { - /** @description Indicates whether this branch is currently active (visible and usable for editing translations and keys). Inactive branches are hidden but still stored in the project. */ - active: boolean; - /** @description User who created or owns this branch. Can be null for system-generated branches. */ - author?: components["schemas"]["SimpleUserAccountModel"]; - /** - * Format: int64 - * @description Date of branch creation - */ - createdAt?: number; - /** - * Format: int64 - * @description Unique identifier of the branch - */ - id: number; - /** @description Is branch default */ - isDefault: boolean; - /** @description Is branch protected */ - isProtected: boolean; - /** @description Ongoing (or applied) merge operation related to this branch. Null when the branch is not being merged yet */ - merge?: components["schemas"]["BranchMergeRefModel"]; - /** @description Human-readable name of the branch. Similar to Git branch names, it identifies the feature or purpose of this branch (e.g. 'feature-login-page') */ - name: string; - }; - BusinessEventReportRequest: { - anonymousUserId?: string; - data?: { [key: string]: unknown }; - eventName: string; - /** Format: int64 */ - organizationId?: number; - /** Format: int64 */ - projectId?: number; - }; - CalculateScopeRequest: { - keys: number[]; - /** Format: int64 */ - languageId: number; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - }; - ClearTranslationsRequest: { - keyIds: number[]; - languageIds: number[]; - }; - CollectionModelAiPlaygroundResultModel: { - _embedded?: { - results?: components["schemas"]["AiPlaygroundResultModel"][]; - }; - }; - CollectionModelAutoTranslationConfigModel: { - _embedded?: { - configs?: components["schemas"]["AutoTranslationConfigModel"][]; - }; - }; - CollectionModelBatchJobModel: { - _embedded?: { - batchJobs?: components["schemas"]["BatchJobModel"][]; - }; - }; - CollectionModelExportFormatModel: { - _embedded?: { - exportFormats?: components["schemas"]["ExportFormatModel"][]; - }; - }; - CollectionModelGlossaryLanguageDto: { - _embedded?: { - glossaryLanguageDtoList?: components["schemas"]["GlossaryLanguageDto"][]; - }; - }; - CollectionModelGlossaryTermHighlightModel: { - _embedded?: { - glossaryHighlights?: components["schemas"]["GlossaryTermHighlightModel"][]; - }; - }; - CollectionModelImportNamespaceModel: { - _embedded?: { - namespaces?: components["schemas"]["ImportNamespaceModel"][]; - }; - }; - CollectionModelKeyDisabledLanguagesModel: { - _embedded?: { - keys?: components["schemas"]["KeyDisabledLanguagesModel"][]; - }; - }; - CollectionModelKeyModel: { - _embedded?: { - keys?: components["schemas"]["KeyModel"][]; - }; - }; - CollectionModelKeyWithBaseTranslationModel: { - _embedded?: { - keys?: components["schemas"]["KeyWithBaseTranslationModel"][]; - }; - }; - CollectionModelKeyWithDataModel: { - _embedded?: { - keys?: components["schemas"]["KeyWithDataModel"][]; - }; - }; - CollectionModelLanguageAiPromptCustomizationModel: { - _embedded?: { - promptCustomizations?: components["schemas"]["LanguageAiPromptCustomizationModel"][]; - }; - }; - CollectionModelLanguageConfigItemModel: { - _embedded?: { - languageConfigs?: components["schemas"]["LanguageConfigItemModel"][]; - }; - }; - CollectionModelLanguageInfoModel: { - _embedded?: { - languageInfos?: components["schemas"]["LanguageInfoModel"][]; - }; - }; - CollectionModelLanguageModel: { - _embedded?: { - languages?: components["schemas"]["LanguageModel"][]; - }; - }; - CollectionModelLlmProviderModel: { - _embedded?: { - providers?: components["schemas"]["LlmProviderModel"][]; - }; - }; - CollectionModelLlmProviderSimpleModel: { - _embedded?: { - providers?: components["schemas"]["LlmProviderSimpleModel"][]; - }; - }; - CollectionModelLong: { - _embedded?: { - longList?: number[]; - }; - }; - CollectionModelOrganizationInvitationModel: { - _embedded?: { - organizationInvitations?: components["schemas"]["OrganizationInvitationModel"][]; - }; - }; - CollectionModelProjectInvitationModel: { - _embedded?: { - invitations?: components["schemas"]["ProjectInvitationModel"][]; - }; - }; - CollectionModelProjectLockModel: { - _embedded?: { - projectLockModelList?: components["schemas"]["ProjectLockModel"][]; - }; - }; - CollectionModelProjectTransferOptionModel: { - _embedded?: { - transferOptions?: components["schemas"]["ProjectTransferOptionModel"][]; - }; - }; - CollectionModelQueueItemModel: { - _embedded?: { - queueItemModelList?: components["schemas"]["QueueItemModel"][]; - }; - }; - CollectionModelScreenshotModel: { - _embedded?: { - screenshots?: components["schemas"]["ScreenshotModel"][]; - }; - }; - CollectionModelSimpleOrganizationModel: { - _embedded?: { - organizations?: components["schemas"]["SimpleOrganizationModel"][]; - }; - }; - CollectionModelSimpleProjectModel: { - _embedded?: { - projects?: components["schemas"]["SimpleProjectModel"][]; - }; - }; - CollectionModelUsedNamespaceModel: { - _embedded?: { - namespaces?: components["schemas"]["UsedNamespaceModel"][]; - }; - }; - CollectionModelWorkspaceModel: { - _embedded?: { - workspaces?: components["schemas"]["WorkspaceModel"][]; - }; - }; - ComplexEditKeyDto: { - /** @description Branch of the key. If not provided, default branch will be used */ - branch?: string; - /** @description Custom values of the key. If not provided, custom values won't be modified */ - custom?: { [key: string]: unknown }; - /** @description Description of the key. It's also used as a context for Tolgee AI translator */ - description?: string; - /** @description If key is pluralized. If it will be reflected in the editor. If null, value won't be modified. */ - isPlural?: boolean; - /** @description Name of the key */ - name: string; - namespace?: string; - /** @description The argument name for the plural. If null, value won't be modified. If isPlural is false, this value will be ignored. */ - pluralArgName?: string; - /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ - relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; - /** @description IDs of screenshots to delete */ - screenshotIdsToDelete?: number[]; - /** - * @deprecated - * @description Ids of screenshots uploaded with /v2/image-upload endpoint - */ - screenshotUploadedImageIds?: number[]; - screenshotsToAdd?: components["schemas"]["KeyScreenshotDto"][]; - /** @description Translation states to update, if not provided states won't be modified */ - states?: { [key: string]: "TRANSLATED" | "REVIEWED" }; - /** @description Tags of the key. If not provided tags won't be modified */ - tags?: string[]; - /** @description Translations to update */ - translations?: { [key: string]: string }; - /** @description If true, it will fail with 400 (with code plural_forms_data_loss) if plural is disabled and there are plural forms, which would be lost by the action. You can get rid of this warning by setting this value to false. */ - warnOnDataLoss?: boolean; - }; - ComplexTagKeysRequest: { - /** @description Include keys filtered by the provided key information */ - filterKeys?: components["schemas"]["KeyId"][]; - /** @description Exclude keys filtered by the provided key information */ - filterKeysNot?: components["schemas"]["KeyId"][]; - /** @description Include keys filtered by the provided tag information. This filter supports wildcards. For example, `draft-*` will match all tags starting with `draft-`. */ - filterTag?: string[]; - /** @description Exclude keys filtered by the provided tag information. This filter supports wildcards. For example, `draft-*` will match all tags starting with `draft-`. */ - filterTagNot?: string[]; - /** @description Specified tags will be added to filtered keys */ - tagFiltered?: string[]; - /** @description Specified tags will be added to keys not filtered by any of the specified filters. */ - tagOther?: string[]; - /** @description Specified tags will be removed from filtered keys. It supports wildcards. For example, `draft-*` will remove all tags starting with `draft-`. */ - untagFiltered?: string[]; - /** @description Specified tags will be removed from keys not filtered by any of the specified filters. It supports wildcards. For example, `draft-*` will remove all tags starting with `draft-`. */ - untagOther?: string[]; - }; - ComputedPermissionModel: { - /** @enum {string} */ - origin: - | "ORGANIZATION_BASE" - | "DIRECT" - | "ORGANIZATION_OWNER" - | "NONE" - | "SERVER_ADMIN" - | "SERVER_SUPPORTER"; - permissionModel?: components["schemas"]["PermissionModel"]; - /** - * @deprecated - * @description Deprecated (use translateLanguageIds). - * - * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - permittedLanguageIds?: number[]; - /** - * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. - * @example [ - * "KEYS_EDIT", - * "TRANSLATIONS_VIEW" - * ] - */ - scopes: ( - | "translations.view" - | "translations.edit" - | "translations.suggest" - | "keys.edit" - | "screenshots.upload" - | "screenshots.delete" - | "screenshots.view" - | "activity.view" - | "languages.edit" - | "admin" - | "project.edit" - | "members.view" - | "members.edit" - | "translation-comments.add" - | "translation-comments.edit" - | "translation-comments.set-state" - | "translations.state-edit" - | "keys.view" - | "keys.delete" - | "keys.create" - | "batch-jobs.view" - | "batch-jobs.cancel" - | "translations.batch-by-tm" - | "translations.batch-machine" - | "content-delivery.manage" - | "content-delivery.publish" - | "webhooks.manage" - | "tasks.view" - | "tasks.edit" - | "prompts.view" - | "prompts.edit" - | "translation-labels.manage" - | "translation-labels.assign" - | "all.view" - )[]; - /** - * @description List of languages user can change state to. If null, changing state of all language values is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - stateChangeLanguageIds?: number[]; - /** - * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - suggestLanguageIds?: number[]; - /** - * @description List of languages user can translate to. If null, all languages editing is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - translateLanguageIds?: number[]; - /** - * @description The user's permission type. This field is null if uses granular permissions - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** - * @description List of languages user can view. If null, all languages view is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - viewLanguageIds?: number[]; - }; - ConnectToSlackDto: { - code: string; - }; - ConnectToSlackUrlModel: { - url: string; - }; - ContentDeliveryConfigModel: { - autoPublish: boolean; - /** - * @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). - * - * e.g. Key hello will be exported as <b>hello</b> - */ - escapeHtml?: boolean; - /** - * @description This is a template that defines the structure of the resulting .zip file content. - * - * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, - * {androidLanguageTag}, {snakeLanguageTag}, {extension}. - * - * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, - * the English translations of the `home` namespace will be stored in `home/en.json`. - * - * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). - * - * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` - * but in Android format. (e.g., en-rUS) - */ - fileStructureTemplate?: string; - /** - * @description Filter translations with branch. - * - * By default, default branch is exported. - */ - filterBranch?: string; - /** @description Filter key IDs to be contained in export */ - filterKeyId?: number[]; - /** @description Filter key IDs not to be contained in export */ - filterKeyIdNot?: number[]; - /** @description Filter keys with prefix */ - filterKeyPrefix?: string; - /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ - filterNamespace?: string[]; - /** @description Filter translations with state. By default, all states except untranslated is exported. */ - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - /** - * @description Filter keys tagged by. - * - * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. - */ - filterTag?: string; - /** @description Filter keys tagged by one of provided tags */ - filterTagIn?: string[]; - /** @description Filter keys not tagged by one of provided tags */ - filterTagNotIn?: string[]; - /** - * @description Format to export to - * @enum {string} - */ - format: - | "JSON" - | "JSON_TOLGEE" - | "XLIFF" - | "PO" - | "APPLE_STRINGS_STRINGSDICT" - | "APPLE_XLIFF" - | "ANDROID_XML" - | "COMPOSE_XML" - | "FLUTTER_ARB" - | "PROPERTIES" - | "YAML_RUBY" - | "YAML" - | "JSON_I18NEXT" - | "CSV" - | "RESX_ICU" - | "XLSX" - | "APPLE_XCSTRINGS" - | "ANDROID_SDK" - | "APPLE_SDK"; - /** Format: int64 */ - id: number; - /** - * @description Languages to be contained in export. - * - * If null, all languages are exported - * @example en - */ - languages?: string[]; - /** Format: int64 */ - lastPublished?: number; - lastPublishedFiles: string[]; - /** - * @description Message format to be used for export. - * - * e.g. PHP_PO: Hello %s, ICU: Hello {name}. - * - * This property is honored only for generic formats like JSON or YAML. - * For specific formats like `YAML_RUBY` it's ignored. - * @enum {string} - */ - messageFormat?: - | "C_SPRINTF" - | "PHP_SPRINTF" - | "JAVA_STRING_FORMAT" - | "APPLE_SPRINTF" - | "RUBY_SPRINTF" - | "I18NEXT" - | "ICU" - | "PYTHON_PERCENT"; - name: string; - pruneBeforePublish: boolean; - publicUrl?: string; - slug: string; - storage?: components["schemas"]["ContentStorageModel"]; - /** - * @description Delimiter to structure file content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. - * - * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), - * specific formats like `YAML_RUBY` don't honor this parameter. - */ - structureDelimiter?: string; - /** - * @description If true, for structured formats (like JSON) arrays are supported. - * - * e.g. Key hello[0] will be exported as {"hello": ["..."]} - */ - supportArrays: boolean; - }; - ContentDeliveryConfigRequest: { - /** @description If true, data are published to the content delivery automatically after each change. */ - autoPublish: boolean; - /** - * Format: int64 - * @description Id of custom storage to use for content delivery. If null, default server storage is used. Tolgee Cloud provides default Content Storage. - */ - contentStorageId?: number; - /** - * @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). - * - * e.g. Key hello will be exported as <b>hello</b> - */ - escapeHtml?: boolean; - /** - * @description This is a template that defines the structure of the resulting .zip file content. - * - * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, - * {androidLanguageTag}, {snakeLanguageTag}, {extension}. - * - * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, - * the English translations of the `home` namespace will be stored in `home/en.json`. - * - * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). - * - * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` - * but in Android format. (e.g., en-rUS) - */ - fileStructureTemplate?: string; - /** - * @description Filter translations with branch. - * - * By default, default branch is exported. - */ - filterBranch?: string; - /** @description Filter key IDs to be contained in export */ - filterKeyId?: number[]; - /** @description Filter key IDs not to be contained in export */ - filterKeyIdNot?: number[]; - /** @description Filter keys with prefix */ - filterKeyPrefix?: string; - /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ - filterNamespace?: string[]; - /** @description Filter translations with state. By default, all states except untranslated is exported. */ - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - /** - * @description Filter keys tagged by. - * - * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. - */ - filterTag?: string; - /** @description Filter keys tagged by one of provided tags */ - filterTagIn?: string[]; - /** @description Filter keys not tagged by one of provided tags */ - filterTagNotIn?: string[]; - /** - * @description Format to export to - * @enum {string} - */ - format: - | "JSON" - | "JSON_TOLGEE" - | "XLIFF" - | "PO" - | "APPLE_STRINGS_STRINGSDICT" - | "APPLE_XLIFF" - | "ANDROID_XML" - | "COMPOSE_XML" - | "FLUTTER_ARB" - | "PROPERTIES" - | "YAML_RUBY" - | "YAML" - | "JSON_I18NEXT" - | "CSV" - | "RESX_ICU" - | "XLSX" - | "APPLE_XCSTRINGS" - | "ANDROID_SDK" - | "APPLE_SDK"; - /** - * @description Languages to be contained in export. - * - * If null, all languages are exported - * @example en - */ - languages?: string[]; - /** - * @description Message format to be used for export. - * - * e.g. PHP_PO: Hello %s, ICU: Hello {name}. - * - * This property is honored only for generic formats like JSON or YAML. - * For specific formats like `YAML_RUBY` it's ignored. - * @enum {string} - */ - messageFormat?: - | "C_SPRINTF" - | "PHP_SPRINTF" - | "JAVA_STRING_FORMAT" - | "APPLE_SPRINTF" - | "RUBY_SPRINTF" - | "I18NEXT" - | "ICU" - | "PYTHON_PERCENT"; - name: string; - /** - * @description Whether the data in the CDN should be pruned before publishing new data. - * - * In some cases, you might want to keep the data in the storage and only replace the files created by following publish operation. - */ - pruneBeforePublish: boolean; - /** - * @description Tolgee uses a custom slug as a directory name for content storage and public content delivery URL. It is only applicable for custom storage. This field needs to be kept null for Tolgee Cloud content storage or global server storage on self-hosted instances. - * - * Slag has to match following regular expression: `^[a-z0-9]+(?:-[a-z0-9]+)*$`. - * - * If null is provided for update operation, slug will be assigned with generated value. - */ - slug?: string; - /** - * @description Delimiter to structure file content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. - * - * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), - * specific formats like `YAML_RUBY` don't honor this parameter. - */ - structureDelimiter?: string; - /** - * @description If true, for structured formats (like JSON) arrays are supported. - * - * e.g. Key hello[0] will be exported as {"hello": ["..."]} - */ - supportArrays: boolean; - }; - ContentStorageModel: { - azureContentStorageConfig?: components["schemas"]["AzureContentStorageConfigModel"]; - /** Format: int64 */ - id: number; - name: string; - publicUrlPrefix?: string; - s3ContentStorageConfig?: components["schemas"]["S3ContentStorageConfigModel"]; - }; - ContentStorageRequest: { - azureContentStorageConfig?: components["schemas"]["AzureContentStorageConfigDto"]; - name: string; - publicUrlPrefix?: string; - s3ContentStorageConfig?: components["schemas"]["S3ContentStorageConfigDto"]; - }; - CopyTranslationRequest: { - keyIds: number[]; - /** Format: int64 */ - sourceLanguageId: number; - targetLanguageIds: number[]; - }; - CreateApiKeyDto: { - /** @description Description of the project API key */ - description?: string; - /** - * Format: int64 - * @description Expiration date in epoch format (milliseconds). When null key never expires. - * @example 1661172869000 - */ - expiresAt?: number; - /** Format: int64 */ - projectId: number; - scopes: string[]; - }; - CreateBranchModel: { - /** @description Branch name, example = feature/new-feature */ - name: string; - /** - * Format: int64 - * @description Origin branch id - */ - originBranchId: number; - }; - CreateGlossaryRequest: { - /** @description IDs of projects to be assigned to glossary */ - assignedProjectIds: number[]; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - baseLanguageTag: string; - /** - * @description Glossary name - * @example My glossary - */ - name: string; - }; - CreateGlossaryTermWithTranslationRequest: { - /** - * @description A detailed explanation or definition of the glossary term - * @example It's trademark - */ - description: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm: boolean; - /** @description When true, this term will have the same translation across all target languages */ - flagNonTranslatable: boolean; - text: string; - }; - CreateKeyDto: { - branch?: string; - /** - * @description Description of the key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - /** @description If key is pluralized. If it will be reflected in the editor */ - isPlural: boolean; - /** @description Name of the key */ - name: string; - namespace?: string; - /** @description The argument name for the plural. If null, value will be guessed from the values provided in translations. */ - pluralArgName?: string; - /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ - relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; - /** - * @deprecated - * @description Ids of screenshots uploaded with /v2/image-upload endpoint - */ - screenshotUploadedImageIds?: number[]; - screenshots?: components["schemas"]["KeyScreenshotDto"][]; - /** @description Translation states to update, if not provided states won't be modified */ - states?: { [key: string]: "TRANSLATED" | "REVIEWED" }; - tags?: string[]; - translations?: { [key: string]: string }; - }; - CreateMultipleTasksRequest: { - tasks: components["schemas"]["CreateTaskRequest"][]; - }; - CreatePatDto: { - /** @description Description of the PAT */ - description: string; - /** - * Format: int64 - * @description Expiration date in epoch format (milliseconds). When null, token never expires. - * @example 1661172869000 - */ - expiresAt?: number; - }; - CreateProjectRequest: { - /** @description Tag of one of created languages, to select it as base language. If not provided, first language will be selected as base. */ - baseLanguageTag?: string; - /** @description Whether to use ICU placeholder visualization in the editor and it's support. */ - icuPlaceholders: boolean; - languages: components["schemas"]["LanguageRequest"][]; - name: string; - /** - * Format: int64 - * @description Organization to create the project in - */ - organizationId: number; - /** @description Slug of your project used in url e.g. "/v2/projects/what-a-project". If not provided, it will be generated */ - slug?: string; - }; - CreateProviderRequest: { - authorizationUri: string; - clientId: string; - clientSecret: string; - domain: string; - enabled: boolean; - force: boolean; - tokenUri: string; - }; - CreateTaskRequest: { - assignees: number[]; - description: string; - /** - * Format: int64 - * @description Due to date in epoch format (milliseconds). - * @example 1661172869000 - */ - dueDate?: number; - keys: number[]; - /** - * Format: int64 - * @description Id of language, this task is attached to. - * @example 1 - */ - languageId: number; - name?: string; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - }; - CreateTranslationSuggestionRequest: { - translation: string; - }; - CreateUpdateGlossaryTermResponse: { - term: components["schemas"]["SimpleGlossaryTermModel"]; - translation?: components["schemas"]["GlossaryTermTranslationModel"]; - }; - CreditBalanceModel: { - /** Format: int64 */ - bucketSize: number; - /** Format: int64 */ - creditBalance: number; - /** - * Format: int64 - * @deprecated - * @description Customers were able to buy extra credits separately in the past. - * - * This option is not available anymore and this field is kept only for backward compatibility purposes and is always 0. - */ - extraCreditBalance: number; - }; - CurrentUsageItemModel: { - /** Format: int64 */ - current: number; - /** Format: int64 */ - included: number; - /** Format: int64 */ - limit: number; - }; - CurrentUsageModel: { - /** @description For MT credits, the values are in full credits. Not Cents. */ - credits: components["schemas"]["CurrentUsageItemModel"]; - isPayAsYouGo: boolean; - keys: components["schemas"]["CurrentUsageItemModel"]; - seats: components["schemas"]["CurrentUsageItemModel"]; - strings: components["schemas"]["CurrentUsageItemModel"]; - }; - DeleteKeysDto: { - /** @description IDs of keys to delete */ - ids: number[]; - }; - DeleteKeysRequest: { - keyIds: number[]; - }; - DeleteMultipleGlossaryTermsRequest: { - termIds: number[]; - }; - DocItem: { - description?: string; - displayName?: string; - name: string; - }; - DomainRequest: { - domain: string; - state: string; - }; - DryRunMergeBranchRequest: { - /** - * Format: int64 - * @description Source branch id - */ - sourceBranchId: number; - /** - * Format: int64 - * @description Target branch id - */ - targetBranchId: number; - }; - EditKeyDto: { - /** @description The branch of the key. (When empty or null default branch will be used) */ - branch?: string; - /** - * @description Description of the key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - name: string; - namespace?: string; - }; - EditProjectRequest: { - /** Format: int64 */ - baseLanguageId?: number; - /** Format: int64 */ - defaultNamespaceId?: number; - description?: string; - /** @description Whether to use ICU placeholder visualization in the editor and it's support. */ - icuPlaceholders: boolean; - name: string; - slug?: string; - /** - * @description Suggestions can be DISABLED (hidden from UI) or ENABLED (visible in the UI) - * @enum {string} - */ - suggestionsMode: "DISABLED" | "ENABLED"; - /** - * @description Protects reviewed translations, so translators can't change them by default and others will receive warning. - * @enum {string} - */ - translationProtection: "NONE" | "PROTECT_REVIEWED"; - useNamespaces: boolean; - }; - EeSubscriptionModel: { - cancelAtPeriodEnd: boolean; - /** Format: int64 */ - currentPeriodEnd?: number; - /** Format: int64 */ - currentUserCount: number; - enabledFeatures: ( - | "GRANULAR_PERMISSIONS" - | "PRIORITIZED_FEATURE_REQUESTS" - | "PREMIUM_SUPPORT" - | "DEDICATED_SLACK_CHANNEL" - | "ASSISTED_UPDATES" - | "DEPLOYMENT_ASSISTANCE" - | "BACKUP_CONFIGURATION" - | "TEAM_TRAINING" - | "ACCOUNT_MANAGER" - | "STANDARD_SUPPORT" - | "PROJECT_LEVEL_CONTENT_STORAGES" - | "WEBHOOKS" - | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" - | "AI_PROMPT_CUSTOMIZATION" - | "SLACK_INTEGRATION" - | "TASKS" - | "SSO" - | "ORDER_TRANSLATION" - | "GLOSSARY" - | "TRANSLATION_LABELS" - )[]; - isPayAsYouGo: boolean; - /** Format: date-time */ - lastValidCheck?: string; - licenseKey: string; - name: string; - nonCommerical: boolean; - /** @enum {string} */ - status: - | "ACTIVE" - | "CANCELED" - | "PAST_DUE" - | "UNPAID" - | "ERROR" - | "TRIALING" - | "KEY_USED_BY_ANOTHER_INSTANCE" - | "UNKNOWN"; - }; - EntityDescriptionWithRelations: { - data: { [key: string]: unknown }; - entityClass: string; - /** Format: int64 */ - entityId: number; - }; - ErrorResponseBody: { - code: string; - params?: unknown[]; - }; - ErrorResponseTyped: { - /** @enum {string} */ - code: - | "unauthenticated" - | "api_access_forbidden" - | "api_key_not_found" - | "invalid_api_key" - | "invalid_project_api_key" - | "project_api_key_expired" - | "bad_credentials" - | "mfa_enabled" - | "invalid_otp_code" - | "mfa_not_enabled" - | "can_not_revoke_own_permissions" - | "data_corrupted" - | "invitation_code_does_not_exist_or_expired" - | "language_tag_exists" - | "language_name_exists" - | "language_not_found" - | "operation_not_permitted" - | "registrations_not_allowed" - | "project_not_found" - | "resource_not_found" - | "scope_not_found" - | "key_exists" - | "third_party_auth_error_message" - | "third_party_auth_no_email" - | "third_party_auth_non_matching_email" - | "third_party_auth_no_sub" - | "third_party_auth_unknown_error" - | "email_already_verified" - | "third_party_unauthorized" - | "third_party_google_workspace_mismatch" - | "third_party_switch_initiated" - | "third_party_switch_conflict" - | "username_already_exists" - | "username_or_password_invalid" - | "user_already_has_permissions" - | "user_already_has_role" - | "user_not_found" - | "file_not_image" - | "file_too_big" - | "invalid_timestamp" - | "email_not_verified" - | "missing_callback_url" - | "invalid_jwt_token" - | "expired_jwt_token" - | "general_jwt_error" - | "cannot_find_suitable_address_part" - | "slug_not_unique" - | "user_is_not_member_of_organization" - | "organization_has_no_other_owner" - | "user_has_no_project_access" - | "user_is_organization_owner" - | "cannot_set_your_own_permissions" - | "user_is_organization_member" - | "property_not_mutable" - | "import_language_not_from_project" - | "existing_language_not_selected" - | "conflict_is_not_resolved" - | "language_already_selected" - | "cannot_parse_file" - | "could_not_resolve_property" - | "cannot_add_more_then_100_languages" - | "no_languages_provided" - | "language_with_base_language_tag_not_found" - | "language_not_from_project" - | "namespace_not_from_project" - | "cannot_delete_base_language" - | "key_not_from_project" - | "max_screenshots_exceeded" - | "translation_not_from_project" - | "can_edit_only_own_comment" - | "request_parse_error" - | "filter_by_value_state_not_valid" - | "import_has_expired" - | "tag_not_from_project" - | "translation_text_too_long" - | "invalid_recaptcha_token" - | "cannot_leave_owning_project" - | "cannot_leave_project_with_organization_role" - | "dont_have_direct_permissions" - | "tag_too_log" - | "too_many_uploaded_images" - | "one_or_more_images_not_found" - | "screenshot_not_of_key" - | "service_not_found" - | "too_many_requests" - | "translation_not_found" - | "out_of_credits" - | "key_not_found" - | "organization_not_found" - | "cannot_find_base_language" - | "base_language_not_found" - | "no_exported_result" - | "cannot_set_your_own_role" - | "only_translate_review_or_view_permission_accepts_view_languages" - | "oauth2_token_url_not_set" - | "oauth2_user_url_not_set" - | "email_already_invited_or_member" - | "price_not_found" - | "invoice_not_from_organization" - | "invoice_not_found" - | "plan_not_found" - | "plan_not_available_any_more" - | "no_auto_translation_method" - | "cannot_translate_base_language" - | "pat_not_found" - | "invalid_pat" - | "pat_expired" - | "operation_unavailable_for_account_type" - | "validation_email_is_not_valid" - | "current_password_required" - | "cannot_create_organization" - | "wrong_current_password" - | "wrong_param_type" - | "user_missing_password" - | "expired_super_jwt_token" - | "cannot_delete_your_own_account" - | "cannot_sort_by_this_column" - | "namespace_not_found" - | "namespace_exists" - | "invalid_authentication_method" - | "unknown_sort_property" - | "only_review_permission_accepts_state_change_languages" - | "only_translate_or_review_permission_accepts_translate_languages" - | "cannot_set_language_permissions_for_admin_scope" - | "cannot_set_view_languages_without_translations_view_scope" - | "cannot_set_translate_languages_without_translations_edit_scope" - | "cannot_set_state_change_languages_without_translations_state_edit_scope" - | "language_not_permitted" - | "scopes_has_to_be_set" - | "set_exactly_one_of_scopes_or_type" - | "translation_exists" - | "import_keys_error" - | "provide_only_one_of_screenshots_and_screenshot_uploaded_image_ids" - | "multiple_projects_not_supported" - | "plan_translation_limit_exceeded" - | "feature_not_enabled" - | "license_key_not_found" - | "cannot_set_view_languages_without_for_level_based_permissions" - | "cannot_set_different_translate_and_state_change_languages_for_level_based_permissions" - | "cannot_disable_your_own_account" - | "subscription_not_found" - | "invoice_does_not_have_usage" - | "customer_not_found" - | "subscription_not_active" - | "organization_already_subscribed" - | "organization_not_subscribed" - | "license_key_used_by_another_instance" - | "translation_spending_limit_exceeded" - | "credit_spending_limit_exceeded" - | "seats_spending_limit_exceeded" - | "this_instance_is_already_licensed" - | "big_meta_not_from_project" - | "mt_service_not_enabled" - | "project_not_selected" - | "organization_not_selected" - | "plan_has_subscribers" - | "translation_failed" - | "batch_job_not_found" - | "key_exists_in_namespace" - | "tag_is_blank" - | "execution_failed_on_management_error" - | "translation_api_rate_limit" - | "cannot_finalize_activity" - | "formality_not_supported_by_service" - | "language_not_supported_by_service" - | "rate_limited" - | "pat_access_not_allowed" - | "pak_access_not_allowed" - | "cannot_modify_disabled_translation" - | "azure_config_required" - | "s3_config_required" - | "content_storage_config_required" - | "content_storage_test_failed" - | "content_storage_config_invalid" - | "invalid_connection_string" - | "cannot_create_azure_storage_client" - | "s3_access_key_required" - | "azure_connection_string_required" - | "s3_secret_key_required" - | "cannot_store_file_to_content_storage" - | "unexpected_error_while_publishing_to_content_storage" - | "webhook_responded_with_non_200_status" - | "unexpected_error_while_executing_webhook" - | "content_storage_is_in_use" - | "cannot_set_state_for_missing_translation" - | "no_project_id_provided" - | "license_key_not_provided" - | "subscription_already_canceled" - | "user_is_subscribed_to_paid_plan" - | "cannot_create_free_plan_without_fixed_type" - | "cannot_modify_plan_free_status" - | "key_id_not_provided" - | "free_self_hosted_seat_limit_exceeded" - | "advanced_params_not_supported" - | "plural_forms_not_found_for_language" - | "nested_plurals_not_supported" - | "message_is_not_plural" - | "content_outside_plural_forms" - | "invalid_plural_form" - | "multiple_plurals_not_supported" - | "custom_values_json_too_long" - | "unsupported_po_message_format" - | "plural_forms_data_loss" - | "current_user_does_not_own_image" - | "user_cannot_view_this_organization" - | "user_is_not_owner_of_organization" - | "user_is_not_owner_or_maintainer_of_organization" - | "pak_created_for_different_project" - | "custom_slug_is_only_applicable_for_custom_storage" - | "invalid_slug_format" - | "batch_job_cancellation_timeout" - | "import_failed" - | "cannot_add_more_then_1000_languages" - | "no_data_to_import" - | "multiple_namespaces_mapped_to_single_file" - | "multiple_mappings_for_same_file_language_name" - | "multiple_mappings_for_null_file_language_name" - | "too_many_mappings_for_file" - | "missing_placeholder_in_template" - | "tag_not_found" - | "cannot_parse_encrypted_slack_login_data" - | "slack_workspace_not_found" - | "cannot_fetch_user_details_from_slack" - | "slack_missing_scope" - | "slack_not_connected_to_your_account" - | "slack_invalid_command" - | "slack_not_subscribed_yet" - | "slack_connection_failed" - | "tolgee_account_already_connected" - | "slack_not_configured" - | "slack_workspace_already_connected" - | "slack_connection_error" - | "email_verification_code_not_valid" - | "cannot_subscribe_to_free_plan" - | "plan_auto_assignment_only_for_free_plans" - | "plan_auto_assignment_only_for_private_plans" - | "task_not_found" - | "task_not_finished" - | "task_not_open" - | "translation_agency_not_found" - | "this_feature_is_not_implemented_in_oss" - | "sso_token_exchange_failed" - | "sso_user_info_retrieval_failed" - | "sso_id_token_expired" - | "sso_user_cannot_create_organization" - | "sso_cant_verify_user" - | "sso_auth_missing_domain" - | "sso_domain_not_found_or_disabled" - | "authentication_method_disabled" - | "native_authentication_disabled" - | "invitation_organization_mismatch" - | "user_is_managed_by_organization" - | "cannot_set_sso_provider_missing_fields" - | "namespaces_cannot_be_disabled_when_namespace_exists" - | "namespace_cannot_be_used_when_feature_is_disabled" - | "sso_domain_not_allowed" - | "sso_login_forced_for_this_account" - | "use_sso_for_authentication_instead" - | "date_has_to_be_in_the_future" - | "custom_plan_and_plan_id_cannot_be_set_together" - | "specify_plan_id_or_custom_plan" - | "custom_plans_has_to_be_private" - | "cannot_create_free_plan_with_prices" - | "subscription_not_scheduled_for_cancellation" - | "cannot_cancel_trial" - | "cannot_update_without_modification" - | "current_subscription_is_not_trialing" - | "sorting_and_paging_is_not_supported_when_using_cursor" - | "strings_metric_are_not_supported" - | "plan_key_limit_exceeded" - | "keys_spending_limit_exceeded" - | "plan_seat_limit_exceeded" - | "instance_not_using_license_key" - | "invalid_path" - | "llm_provider_not_found" - | "llm_provider_error" - | "prompt_not_found" - | "llm_provider_not_returned_json" - | "llm_template_parsing_error" - | "llm_rate_limited" - | "llm_provider_timeout" - | "no_llm_provider_configured" - | "glossary_not_found" - | "glossary_term_not_found" - | "glossary_term_translation_not_found" - | "glossary_non_translatable_term_cannot_be_translated" - | "llm_content_filter" - | "llm_provider_empty_response" - | "label_not_found" - | "label_not_from_project" - | "label_already_exists" - | "filter_by_value_label_not_valid" - | "suggestion_not_found" - | "user_can_only_delete_his_suggestions" - | "cannot_modify_reviewed_translation" - | "cannot_modify_keys" - | "expect_no_conflict_failed" - | "suggestion_cant_be_plural" - | "suggestion_must_be_plural" - | "duplicate_suggestion" - | "unsupported_media_type" - | "impersonation_of_admin_by_supporter_not_allowed" - | "already_impersonating_user" - | "operation_not_permitted_in_read_only_mode" - | "file_processing_failed" - | "branch_not_found" - | "cannot_delete_default_branch" - | "branch_already_exists" - | "origin_branch_not_found" - | "branch_merge_not_found" - | "branch_merge_change_not_found" - | "branch_merge_revision_not_valid" - | "branch_merge_conflicts_not_resolved" - | "branch_merge_already_merged"; - params?: unknown[]; - }; - ExistenceEntityDescription: { - data: { [key: string]: unknown }; - entityClass: string; - /** Format: int64 */ - entityId: number; - exists?: boolean; - relations: { - [key: string]: components["schemas"]["EntityDescriptionWithRelations"]; - }; - }; - ExportFormatModel: { - defaultFileStructureTemplate: string; - extension: string; - /** @enum {string} */ - format: - | "JSON" - | "JSON_TOLGEE" - | "XLIFF" - | "PO" - | "APPLE_STRINGS_STRINGSDICT" - | "APPLE_XLIFF" - | "ANDROID_XML" - | "COMPOSE_XML" - | "FLUTTER_ARB" - | "PROPERTIES" - | "YAML_RUBY" - | "YAML" - | "JSON_I18NEXT" - | "CSV" - | "RESX_ICU" - | "XLSX" - | "APPLE_XCSTRINGS" - | "ANDROID_SDK" - | "APPLE_SDK"; - mediaType: string; - }; - ExportParams: { - /** - * @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). - * - * e.g. Key hello will be exported as <b>hello</b> - */ - escapeHtml?: boolean; - /** - * @description This is a template that defines the structure of the resulting .zip file content. - * - * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, - * {androidLanguageTag}, {snakeLanguageTag}, {extension}. - * - * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, - * the English translations of the `home` namespace will be stored in `home/en.json`. - * - * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). - * - * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` - * but in Android format. (e.g., en-rUS) - */ - fileStructureTemplate?: string; - /** - * @description Filter translations with branch. - * - * By default, default branch is exported. - */ - filterBranch?: string; - /** @description Filter key IDs to be contained in export */ - filterKeyId?: number[]; - /** @description Filter key IDs not to be contained in export */ - filterKeyIdNot?: number[]; - /** @description Filter keys with prefix */ - filterKeyPrefix?: string; - /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ - filterNamespace?: string[]; - /** @description Filter translations with state. By default, all states except untranslated is exported. */ - filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; - /** - * @description Filter keys tagged by. - * - * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. - */ - filterTag?: string; - /** @description Filter keys tagged by one of provided tags */ - filterTagIn?: string[]; - /** @description Filter keys not tagged by one of provided tags */ - filterTagNotIn?: string[]; - /** - * @description Format to export to - * @enum {string} - */ - format: - | "JSON" - | "JSON_TOLGEE" - | "XLIFF" - | "PO" - | "APPLE_STRINGS_STRINGSDICT" - | "APPLE_XLIFF" - | "ANDROID_XML" - | "COMPOSE_XML" - | "FLUTTER_ARB" - | "PROPERTIES" - | "YAML_RUBY" - | "YAML" - | "JSON_I18NEXT" - | "CSV" - | "RESX_ICU" - | "XLSX" - | "APPLE_XCSTRINGS" - | "ANDROID_SDK" - | "APPLE_SDK"; - /** - * @description Languages to be contained in export. - * - * If null, all languages are exported - * @example en - */ - languages?: string[]; - /** - * @description Message format to be used for export. - * - * e.g. PHP_PO: Hello %s, ICU: Hello {name}. - * - * This property is honored only for generic formats like JSON or YAML. - * For specific formats like `YAML_RUBY` it's ignored. - * @enum {string} - */ - messageFormat?: - | "C_SPRINTF" - | "PHP_SPRINTF" - | "JAVA_STRING_FORMAT" - | "APPLE_SPRINTF" - | "RUBY_SPRINTF" - | "I18NEXT" - | "ICU" - | "PYTHON_PERCENT"; - /** - * @description Delimiter to structure file content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. - * - * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), - * specific formats like `YAML_RUBY` don't honor this parameter. - */ - structureDelimiter?: string; - /** - * @description If true, for structured formats (like JSON) arrays are supported. - * - * e.g. Key hello[0] will be exported as {"hello": ["..."]} - */ - supportArrays: boolean; - zip: boolean; - }; - GenerateSlugDto: { - name: string; - oldSlug?: string; - }; - GetKeysRequestDto: { - keys: components["schemas"]["KeyDefinitionDto"][]; - /** @description Tags to return language translations in */ - languageTags: string[]; - }; - GlossaryHighlightsRequest: { - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - languageTag: string; - text: string; - }; - GlossaryImportResult: { - /** - * Format: int32 - * @description Number of imported terms - * @example 42 - */ - imported: number; - }; - GlossaryLanguageDto: { - /** - * @description Indicates if this is the base (main) language of the glossary - * @example true - */ - base: boolean; - /** - * @description The language code (e.g., 'en' for English) - * @example en - */ - tag: string; - }; - GlossaryModel: { - /** - * @description Language tag for default translations for terms - * @example en - */ - baseLanguageTag: string; - /** Format: int64 */ - id: number; - name: string; - organizationOwner: components["schemas"]["SimpleOrganizationModel"]; - }; - GlossaryTermHighlightModel: { - position: components["schemas"]["PositionModel"]; - value: components["schemas"]["GlossaryTermModel"]; - }; - GlossaryTermModel: { - description: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm: boolean; - /** @description When true, this term has the same translation across all target languages */ - flagNonTranslatable: boolean; - glossary: components["schemas"]["GlossaryModel"]; - /** Format: int64 */ - id: number; - translations: components["schemas"]["GlossaryTermTranslationModel"][]; - }; - GlossaryTermTranslationModel: { - languageTag: string; - text: string; - }; - HierarchyItem: { - requires: components["schemas"]["HierarchyItem"][]; - /** @enum {string} */ - scope: - | "translations.view" - | "translations.edit" - | "translations.suggest" - | "keys.edit" - | "screenshots.upload" - | "screenshots.delete" - | "screenshots.view" - | "activity.view" - | "languages.edit" - | "admin" - | "project.edit" - | "members.view" - | "members.edit" - | "translation-comments.add" - | "translation-comments.edit" - | "translation-comments.set-state" - | "translations.state-edit" - | "keys.view" - | "keys.delete" - | "keys.create" - | "batch-jobs.view" - | "batch-jobs.cancel" - | "translations.batch-by-tm" - | "translations.batch-machine" - | "content-delivery.manage" - | "content-delivery.publish" - | "webhooks.manage" - | "tasks.view" - | "tasks.edit" - | "prompts.view" - | "prompts.edit" - | "translation-labels.manage" - | "translation-labels.assign" - | "all.view"; - }; - IdentifyRequest: { - anonymousUserId: string; - }; - ImageUploadInfoDto: { - location?: string; - }; - ImportAddFilesResultModel: { - errors: components["schemas"]["ErrorResponseBody"][]; - result?: components["schemas"]["PagedModelImportLanguageModel"]; - warnings: components["schemas"]["ErrorResponseBody"][]; - }; - ImportFileIssueModel: { - /** Format: int64 */ - id: number; - params: components["schemas"]["ImportFileIssueParamModel"][]; - /** @enum {string} */ - type: - | "KEY_IS_NOT_STRING" - | "MULTIPLE_VALUES_FOR_KEY_AND_LANGUAGE" - | "VALUE_IS_NOT_STRING" - | "KEY_IS_EMPTY" - | "VALUE_IS_EMPTY" - | "PO_MSGCTXT_NOT_SUPPORTED" - | "ID_ATTRIBUTE_NOT_PROVIDED" - | "TARGET_NOT_PROVIDED" - | "TRANSLATION_TOO_LONG" - | "KEY_IS_BLANK" - | "TRANSLATION_DEFINED_IN_ANOTHER_FILE" - | "INVALID_CUSTOM_VALUES" - | "DESCRIPTION_TOO_LONG"; - }; - ImportFileIssueParamModel: { - /** @enum {string} */ - type: - | "KEY_NAME" - | "KEY_ID" - | "LANGUAGE_ID" - | "KEY_INDEX" - | "VALUE" - | "LINE" - | "FILE_NODE_ORIGINAL" - | "LANGUAGE_NAME"; - value?: string; - }; - ImportFileMapping: { - /** @description Name of the file to import. This is the name of the file provided in `files` request part or in uploaded archive. */ - fileName: string; - /** - * @description Format of the file. If not provided, Tolgee will try to guess the format from the file name or file contents. - * - * It is recommended to provide these values to prevent any issues with format detection. - * @enum {string} - */ - format?: - | "CSV_ICU" - | "CSV_JAVA" - | "CSV_PHP" - | "CSV_RUBY" - | "JSON_I18NEXT" - | "JSON_ICU" - | "JSON_JAVA" - | "JSON_PHP" - | "JSON_RUBY" - | "JSON_C" - | "PO_PHP" - | "PO_C" - | "PO_JAVA" - | "PO_ICU" - | "PO_RUBY" - | "PO_PYTHON" - | "STRINGS" - | "STRINGSDICT" - | "APPLE_XLIFF" - | "APPLE_XCSTRINGS" - | "PROPERTIES_ICU" - | "PROPERTIES_JAVA" - | "PROPERTIES_UNKNOWN" - | "ANDROID_XML" - | "COMPOSE_XML" - | "FLUTTER_ARB" - | "YAML_RUBY" - | "YAML_JAVA" - | "YAML_ICU" - | "YAML_PHP" - | "YAML_UNKNOWN" - | "XLIFF_ICU" - | "XLIFF_JAVA" - | "XLIFF_PHP" - | "XLIFF_RUBY" - | "RESX_ICU" - | "XLSX_ICU" - | "XLSX_JAVA" - | "XLSX_PHP" - | "XLSX_RUBY"; - /** - * @description The existing language tag in the Tolgee platform to which the imported language should be mapped. - * - * When null, Tolgee will try to guess the language from the file contents or file name. - */ - languageTag?: string; - /** - * @description Tags of languages to be imported. When null, all languages from will be imported. - * - * This field is useful when the file contains multiple languages and you want to import only some of them. For example when importing Apple String Catalog (APPLE_XCSTRINGS), you might want only to import the base language. - */ - languageTagsToImport?: string[]; - /** @description Namespace to import the file to. If not provided, the key will be imported without namespace. */ - namespace?: string; - }; - ImportKeysDto: { - keys: components["schemas"]["ImportKeysItemDto"][]; - }; - ImportKeysItemDto: { - /** - * @description Description of key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - /** - * @description Key name to set translations for - * @example what_a_key_to_translate - */ - name: string; - /** @description The namespace of the key. (When empty or null default namespace will be used) */ - namespace?: string; - /** - * @description Tags of the key - * @example [ - * "homepage", - * "user-profile" - * ] - */ - tags?: string[]; - /** - * @description Object mapping language tag to translation - * @example { - * "en": "What a translated value!", - * "cs": "Jaká to přeložená hodnota!" - * } - */ - translations: { [key: string]: string }; - }; - ImportKeysResolvableDto: { - keys: components["schemas"]["ImportKeysResolvableItemDto"][]; - }; - ImportKeysResolvableItemDto: { - branch?: string; - /** - * @description Key name to set translations for - * @example what_a_key_to_translate - */ - name: string; - /** @description The namespace of the key. (When empty or null default namespace will be used) */ - namespace?: string; - screenshots?: components["schemas"]["KeyScreenshotDto"][]; - /** @description Object mapping language tag to translation */ - translations: { - [key: string]: components["schemas"]["ImportTranslationResolvableDto"]; - }; - }; - ImportLanguageModel: { - /** Format: int32 */ - conflictCount: number; - /** - * @deprecated - * @description Use existingLanguageTag - */ - existingLanguageAbbreviation?: string; - /** Format: int64 */ - existingLanguageId?: number; - existingLanguageName?: string; - existingLanguageTag?: string; - /** Format: int64 */ - id: number; - /** Format: int64 */ - importFileId: number; - /** Format: int32 */ - importFileIssueCount: number; - importFileName: string; - name: string; - namespace?: string; - /** Format: int32 */ - resolvedCount: number; - /** Format: int32 */ - totalCount: number; - }; - ImportNamespaceModel: { - /** - * Format: int64 - * @description The id of namespace. When null, namespace doesn't exist and will be created by import. - * @example 10000048 - */ - id?: number; - /** @example homepage */ - name: string; - }; - ImportResult: { - unresolvedConflicts?: components["schemas"]["SimpleImportConflictResult"][]; - }; - ImportSettingsModel: { - /** @description If true, placeholders from other formats will be converted to ICU when possible */ - convertPlaceholdersToIcu: boolean; - /** @description If false, only updates keys, skipping the creation of new keys */ - createNewKeys: boolean; - /** @description If true, key descriptions will be overridden by the import */ - overrideKeyDescriptions: boolean; - }; - ImportSettingsRequest: { - /** @description If true, placeholders from other formats will be converted to ICU when possible */ - convertPlaceholdersToIcu: boolean; - /** @description If false, only updates keys, skipping the creation of new keys */ - createNewKeys: boolean; - /** @description If true, key descriptions will be overridden by the import */ - overrideKeyDescriptions: boolean; - }; - ImportTranslationModel: { - /** Format: int64 */ - conflictId?: number; - conflictText?: string; - /** @enum {string} */ - conflictType?: - | "SHOULD_NOT_EDIT_REVIEWED" - | "CANNOT_EDIT_REVIEWED" - | "CANNOT_EDIT_DISABLED"; - existingKeyIsPlural: boolean; - /** Format: int64 */ - id: number; - isOverridable: boolean; - isPlural: boolean; - keyDescription?: string; - /** Format: int64 */ - keyId: number; - keyName: string; - override: boolean; - resolved: boolean; - text?: string; - }; - ImportTranslationResolvableDto: { - /** - * @description Determines, how conflict is resolved. - * - KEEP: Translation is not changed - * - OVERRIDE: Translation is overridden - * - NEW: New translation is created - * - FORCE_OVERRIDE: Translation is updated, created or kept. - * - * @example OVERRIDE - * @enum {string} - */ - resolution: "KEEP" | "OVERRIDE" | "NEW" | "FORCE_OVERRIDE"; - /** - * @description Translation text - * @example Hello! I am a translation! - */ - text: string; - }; - InitialDataEeSubscriptionModel: { - /** @enum {string} */ - status: - | "ACTIVE" - | "CANCELED" - | "PAST_DUE" - | "UNPAID" - | "ERROR" - | "TRIALING" - | "KEY_USED_BY_ANOTHER_INSTANCE" - | "UNKNOWN"; - }; - InitialDataModel: { - announcement?: components["schemas"]["AnnouncementDto"]; - authInfo?: components["schemas"]["AuthInfoModel"]; - eeSubscription?: components["schemas"]["InitialDataEeSubscriptionModel"]; - languageTag?: string; - preferredOrganization?: components["schemas"]["PrivateOrganizationModel"]; - serverConfiguration: components["schemas"]["PublicConfigurationDTO"]; - ssoInfo?: components["schemas"]["PublicSsoTenantModel"]; - userInfo?: components["schemas"]["PrivateUserAccountModel"]; - }; - JobInfo: { - /** Format: int64 */ - createdAt?: number; - /** Format: int64 */ - jobId: number; - /** @enum {string} */ - status: - | "PENDING" - | "RUNNING" - | "SUCCESS" - | "FAILED" - | "CANCELLED" - | "DEBOUNCED"; - /** @enum {string} */ - type: - | "AI_PLAYGROUND_TRANSLATE" - | "PRE_TRANSLATE_BT_TM" - | "MACHINE_TRANSLATE" - | "AUTO_TRANSLATE" - | "DELETE_KEYS" - | "SET_TRANSLATIONS_STATE" - | "CLEAR_TRANSLATIONS" - | "COPY_TRANSLATIONS" - | "TAG_KEYS" - | "UNTAG_KEYS" - | "SET_KEYS_NAMESPACE" - | "AUTOMATION" - | "BILLING_TRIAL_EXPIRATION_NOTICE" - | "ASSIGN_TRANSLATION_LABEL" - | "UNASSIGN_TRANSLATION_LABEL"; - }; - JsonNode: unknown; - JwtAuthenticationResponse: { - accessToken?: string; - tokenType?: string; - }; - KeyDefinitionDto: { - name: string; - namespace?: string; - }; - KeyDisabledLanguageModel: { - /** Format: int64 */ - id: number; - tag: string; - }; - KeyDisabledLanguagesModel: { - /** @description Disabled languages */ - disabledLanguages: components["schemas"]["KeyDisabledLanguageModel"][]; - /** - * Format: int64 - * @description Id of key record - */ - id: number; - /** - * @description Name of key - * @example this_is_super_key - */ - name: string; - /** - * @description Namespace of key - * @example homepage - */ - namespace?: string; - }; - KeyId: { - /** - * Format: int64 - * @description If key id is provided, name and namespace are ignored. - */ - id?: number; - name?: string; - namespace?: string; - }; - KeyImportResolvableResultModel: { - /** @description List of keys */ - keys: components["schemas"]["KeyModel"][]; - /** @description Map uploadedImageId to screenshot */ - screenshots: { [key: string]: components["schemas"]["ScreenshotModel"] }; - }; - KeyInScreenshotModel: { - /** Format: int64 */ - keyId: number; - keyName: string; - keyNamespace?: string; - originalText?: string; - position?: components["schemas"]["KeyInScreenshotPosition"]; - }; - KeyInScreenshotPosition: { - /** Format: int32 */ - height: number; - /** Format: int32 */ - width: number; - /** Format: int32 */ - x: number; - /** Format: int32 */ - y: number; - }; - KeyInScreenshotPositionDto: { - /** Format: int32 */ - height: number; - /** Format: int32 */ - width: number; - /** Format: int32 */ - x: number; - /** Format: int32 */ - y: number; - }; - KeyModel: { - /** - * @description Branch of key - * @example dev - */ - branch?: string; - /** @description Custom values of the key */ - custom?: { [key: string]: unknown }; - /** - * @description Description of key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - /** - * Format: int64 - * @description Id of key record - */ - id: number; - /** - * @description Name of key - * @example this_is_super_key - */ - name: string; - /** - * @description Namespace of key - * @example homepage - */ - namespace?: string; - }; - KeyScreenshotDto: { - positions?: components["schemas"]["KeyInScreenshotPositionDto"][]; - text?: string; - /** - * Format: int64 - * @description Ids of screenshot uploaded with /v2/image-upload endpoint - */ - uploadedImageId: number; - }; - KeySearchResultView: { - baseTranslation?: string; - description?: string; - /** Format: int64 */ - id: number; - name: string; - namespace?: string; - translation?: string; - }; - KeySearchSearchResultModel: { - baseTranslation?: string; - description?: string; - /** Format: int64 */ - id: number; - name: string; - namespace?: string; - translation?: string; - view?: components["schemas"]["KeySearchResultView"]; - }; - KeyTaskViewModel: { - done: boolean; - /** Format: int64 */ - languageId: number; - languageTag: string; - /** Format: int64 */ - number: number; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - userAssigned: boolean; - }; - KeyWithBaseTranslationModel: { - /** - * @description Base translation - * @example This is translation - */ - baseTranslation?: string; - /** - * Format: int64 - * @description Id of key record - */ - id: number; - /** - * @description Name of key - * @example this_is_super_key - */ - name: string; - /** - * @description Namespace of key - * @example homepage - */ - namespace?: string; - }; - KeyWithDataModel: { - /** @description Branch of the key */ - branch?: string; - /** @description Custom values of the key */ - custom: { [key: string]: unknown }; - /** - * @description Description of key - * @example This key is used on homepage. It's a label of sign up button. - */ - description?: string; - /** - * Format: int64 - * @description Id of key record - */ - id: number; - /** @description If key is pluralized. If it will be reflected in the editor */ - isPlural: boolean; - /** - * @description Name of key - * @example this_is_super_key - */ - name: string; - /** - * @description Namespace of key - * @example homepage - */ - namespace?: string; - /** @description The argument name for the plural */ - pluralArgName?: string; - /** @description Screenshots of the key */ - screenshots: components["schemas"]["ScreenshotModel"][]; - /** @description Tags of key */ - tags: components["schemas"]["TagModel"][]; - /** - * @description Translations object containing values updated in this request - * @example { - * "en": { - * "id": 100000003, - * "text": "This is super translation!" - * } - * } - */ - translations: { - [key: string]: components["schemas"]["TranslationModel"]; - }; - }; - KeyWithTranslationsModel: { - /** @description There is a context available for this key */ - contextPresent: boolean; - /** - * Format: int64 - * @description The time when the key was created - */ - createdAt: number; - /** - * @description The namespace of the key - * @example homepage - */ - keyDescription?: string; - /** - * Format: int64 - * @description Id of key record - */ - keyId: number; - /** - * @description Is this key a plural? - * @example true - */ - keyIsPlural: boolean; - /** - * @description Name of key - * @example this_is_super_key - */ - keyName: string; - /** - * @description The namespace of the key - * @example homepage - */ - keyNamespace?: string; - /** - * Format: int64 - * @description The namespace id of the key - * @example 100000282 - */ - keyNamespaceId?: number; - /** - * @description The placeholder name for plural parameter - * @example value - */ - keyPluralArgName?: string; - /** @description Tags of key */ - keyTags: components["schemas"]["TagModel"][]; - /** - * Format: int64 - * @description Count of screenshots provided for the key - * @example 1 - */ - screenshotCount: number; - /** @description Key screenshots. Not provided when API key hasn't screenshots.view scope permission. */ - screenshots?: components["schemas"]["ScreenshotModel"][]; - /** @description Tasks related to this key */ - tasks?: components["schemas"]["KeyTaskViewModel"][]; - /** - * @description Translations object - * @example - * { - * "en": { - * "id": 100000003, - * "text": "This is super translation!" - * "state": "TRANSLATED", - * "commentCount": 1 - * } - * } - */ - translations: { - [key: string]: components["schemas"]["TranslationViewModel"]; - }; - }; - KeysScopeView: { - /** Format: int64 */ - characterCount: number; - /** Format: int64 */ - keyCount: number; - /** Format: int64 */ - keyCountIncludingConflicts: number; - /** Format: int64 */ - wordCount: number; - }; - KeysWithTranslationsPageModel: { - _embedded?: { - keys?: components["schemas"]["KeyWithTranslationsModel"][]; - }; - /** - * @description Cursor to get next data - * @example eyJrZXlJZCI6eyJkaXJlY3Rpb24iOiJBU0MiLCJ2YWx1ZSI6IjEwMDAwMDAxMjAifX0= - */ - nextCursor?: string; - page?: components["schemas"]["PageMetadata"]; - pagedModel?: components["schemas"]["PagedModelKeyWithTranslationsModel"]; - /** @description Provided languages data */ - selectedLanguages: components["schemas"]["LanguageModel"][]; - }; - LabelModel: { - color: string; - description?: string; - /** Format: int64 */ - id: number; - name: string; - }; - LabelRequest: { - /** - * @description Hex color in format #RRGGBB. - * @example #FF5733 - */ - color: string; - description?: string; - name: string; - }; - LabelTranslationsRequest: { - keyIds: number[]; - labelIds: number[]; - languageIds: number[]; - }; - LanguageAiPromptCustomizationModel: { - /** - * @description The language description used in the prompt that helps AI translator to fine tune results for specific language - * @example For arabic language, we are super formal. Always use these translations: - * Paper -> ورقة - * Office -> مكتب - */ - description?: string; - language: components["schemas"]["LanguageModel"]; - }; - LanguageConfigItemModel: { - /** - * @deprecated - * @description Services to be used for suggesting (deprecated: use enabledServicesInfo) - */ - enabledServices: ( - | "GOOGLE" - | "AWS" - | "DEEPL" - | "AZURE" - | "BAIDU" - | "PROMPT" - )[]; - /** @description Info about enabled services */ - enabledServicesInfo: components["schemas"]["MtServiceInfo"][]; - /** - * @deprecated - * @description Service used for automated translating (deprecated: use primaryServiceInfo) - * @enum {string} - */ - primaryService?: - | "GOOGLE" - | "AWS" - | "DEEPL" - | "AZURE" - | "BAIDU" - | "PROMPT"; - /** @description Service info used for automated translating */ - primaryServiceInfo?: components["schemas"]["MtServiceInfo"]; - /** - * Format: int64 - * @description When null, its a default configuration applied to not configured languages - */ - targetLanguageId?: number; - /** @description When null, its a default configuration applied to not configured languages */ - targetLanguageName?: string; - /** @description When null, its a default configuration applied to not configured languages */ - targetLanguageTag?: string; - }; - LanguageInfoModel: { - /** Format: int64 */ - languageId?: number; - languageTag?: string; - supportedServices: components["schemas"]["MtSupportedService"][]; - }; - LanguageMapping: { - /** - * @description The language from the imported file. - * - * For xliff files, this is the `source-language` or the `target-language` attribute value of `file` element. - * @example en-US - */ - importLanguage: string; - /** - * @description The tag of language existing in the Tolgee platform to which the imported language should be mapped. - * @example en-US - */ - platformLanguageTag: string; - }; - LanguageModel: { - /** - * @description Whether is base language of project - * @example false - */ - base: boolean; - /** - * @description Language flag emoji as UTF-8 emoji - * @example 🇨🇿 - */ - flagEmoji?: string; - /** Format: int64 */ - id: number; - /** - * @description Language name in english - * @example Czech - */ - name: string; - /** - * @description Language name in this language - * @example čeština - */ - originalName?: string; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - tag: string; - }; - LanguageRequest: { - /** - * @description Language flag emoji as UTF-8 emoji - * @example 🇨🇿 - */ - flagEmoji?: string; - /** - * @description Language name in english - * @example Czech - */ - name: string; - /** - * @description Language name in this language - * @example čeština - */ - originalName: string; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - tag: string; - }; - LanguageStatsModel: { - languageFlagEmoji?: string; - /** Format: int64 */ - languageId?: number; - languageName?: string; - languageOriginalName?: string; - languageTag?: string; - /** Format: int64 */ - reviewedKeyCount: number; - /** Format: double */ - reviewedPercentage: number; - /** Format: int64 */ - reviewedWordCount: number; - /** Format: int64 */ - translatedKeyCount: number; - /** Format: double */ - translatedPercentage: number; - /** Format: int64 */ - translatedWordCount: number; - /** Format: date-time */ - translationsUpdatedAt?: string; - /** Format: int64 */ - untranslatedKeyCount: number; - /** Format: double */ - untranslatedPercentage: number; - /** Format: int64 */ - untranslatedWordCount: number; - }; - LlmProviderModel: { - apiKey?: string; - apiUrl?: string; - deployment?: string; - format?: string; - /** Format: int64 */ - id: number; - model?: string; - name: string; - /** @enum {string} */ - priority?: "LOW" | "HIGH"; - reasoningEffort?: string; - /** @enum {string} */ - type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; - }; - LlmProviderRequest: { - apiKey?: string; - apiUrl: string; - deployment?: string; - format?: string; - keepAlive?: string; - model?: string; - name: string; - /** @enum {string} */ - priority?: "LOW" | "HIGH"; - reasoningEffort?: string; - /** @enum {string} */ - type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; - }; - LlmProviderSimpleModel: { - name: string; - source?: string; - /** @enum {string} */ - type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; - }; - LoginRequest: { - otp?: string; - password: string; - username: string; - }; - MachineTranslationLanguagePropsDto: { - /** - * @deprecated - * @description List of enabled services (deprecated: use enabledServicesInfo) - */ - enabledServices?: ( - | "GOOGLE" - | "AWS" - | "DEEPL" - | "AZURE" - | "BAIDU" - | "PROMPT" - )[]; - /** @description Info about enabled services */ - enabledServicesInfo?: components["schemas"]["MtServiceInfo"][]; - /** - * @deprecated - * @description This service will be used for automated translation - * @enum {string} - */ - primaryService?: - | "GOOGLE" - | "AWS" - | "DEEPL" - | "AZURE" - | "BAIDU" - | "PROMPT"; - /** @description This service info will be used for automated translation */ - primaryServiceInfo?: components["schemas"]["MtServiceInfo"]; - /** - * Format: int64 - * @description The language to apply those rules. If null, then this settings are default. - */ - targetLanguageId?: number; - }; - MachineTranslationProviderModel: { - /** - * @description BCP 47 tags of languages supported by the translation service. When null, all possible languages are supported. - * - * Please note that Tolgee tries to fall back to a higher subtag if the subtag is not supported. - * - * E.g., if `pt-BR` is not supported. Tolgee fallbacks to `pt`. - */ - supportedLanguages?: string[]; - }; - MachineTranslationRequest: { - keyIds: number[]; - llmPrompt?: components["schemas"]["PromptDto"]; - targetLanguageIds: number[]; - }; - ModifiedEntityModel: { - description?: { [key: string]: unknown }; - entityClass: string; - /** Format: int64 */ - entityId: number; - exists?: boolean; - modifications?: { - [key: string]: components["schemas"]["PropertyModification"]; - }; - relations?: { - [key: string]: components["schemas"]["ExistenceEntityDescription"]; - }; - }; - MtServiceDTO: { - defaultEnabledForProject: boolean; - enabled: boolean; - }; - MtServiceInfo: { - /** @enum {string} */ - formality?: "FORMAL" | "INFORMAL" | "DEFAULT"; - /** Format: int64 */ - promptId?: number; - /** @enum {string} */ - serviceType: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - }; - MtServicesDTO: { - services: { [key: string]: components["schemas"]["MtServiceDTO"] }; - }; - MtSupportedService: { - formalitySupported: boolean; - /** @enum {string} */ - serviceType: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - }; - NamespaceModel: { - /** - * Format: int64 - * @description The id of namespace - * @example 10000048 - */ - id: number; - /** @example homepage */ - name: string; - }; - NotificationModel: { - /** Format: date-time */ - createdAt?: string; - /** Format: int64 */ - id: number; - linkedTask?: components["schemas"]["TaskModel"]; - originatingUser?: components["schemas"]["SimpleUserAccountModel"]; - project?: components["schemas"]["SimpleProjectModel"]; - /** @enum {string} */ - type: - | "TASK_ASSIGNED" - | "TASK_FINISHED" - | "TASK_CANCELED" - | "MFA_ENABLED" - | "MFA_DISABLED" - | "PASSWORD_CHANGED"; - }; - NotificationSettingGroupModel: { - email: boolean; - inApp: boolean; - }; - NotificationSettingModel: { - accountSecurity: components["schemas"]["NotificationSettingGroupModel"]; - tasks: components["schemas"]["NotificationSettingGroupModel"]; - }; - NotificationSettingsRequest: { - /** - * @example IN_APP - * @enum {string} - */ - channel: "IN_APP" | "EMAIL"; - /** - * @description True if the setting should be enabled, false for disabled - * @example false - */ - enabled: boolean; - /** - * @example TASKS - * @enum {string} - */ - group: "ACCOUNT_SECURITY" | "TASKS"; - }; - NotificationsMarkSeenRequest: { - /** - * @description Notification IDs to be marked as seen - * @example [ - * 1, - * 2, - * 3 - * ] - */ - notificationIds: number[]; - }; - OAuthPublicConfigDTO: { - clientId?: string; - enabled: boolean; - }; - OAuthPublicExtendsConfigDTO: { - authorizationUrl?: string; - clientId?: string; - enabled: boolean; - scopes?: string[]; - }; - OrganizationDto: { - /** @example This is a beautiful organization full of beautiful and clever people */ - description?: string; - /** @example Beautiful organization */ - name: string; - /** @example btforg */ - slug?: string; - }; - OrganizationInvitationModel: { - code: string; - /** Format: date-time */ - createdAt: string; - createdBy?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - id: number; - invitedUserEmail?: string; - invitedUserName?: string; - /** @enum {string} */ - type: "MEMBER" | "OWNER" | "MAINTAINER"; - }; - OrganizationInviteUserDto: { - /** @description Email to send invitation to */ - email?: string; - /** @description Name of invited user */ - name?: string; - /** @enum {string} */ - roleType: "MEMBER" | "OWNER" | "MAINTAINER"; - }; - OrganizationLanguageModel: { - /** - * @description Whether is base language of any project - * @example false - */ - base: boolean; - /** - * @description Language flag emoji as UTF-8 emoji - * @example 🇨🇿 - */ - flagEmoji?: string; - /** - * @description Language name in english - * @example Czech - */ - name: string; - /** - * @description Language name in this language - * @example čeština - */ - originalName?: string; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - tag: string; - }; - OrganizationModel: { - /** @example Links to avatar images */ - avatar?: components["schemas"]["Avatar"]; - basePermissions: components["schemas"]["PermissionModel"]; - /** - * @description The role of currently authorized user. - * - * Can be null when user has direct access to one of the projects owned by the organization. - * @enum {string} - */ - currentUserRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - /** @example This is a beautiful organization full of beautiful and clever people */ - description?: string; - /** Format: int64 */ - id: number; - /** @example Beautiful organization */ - name: string; - /** @example btforg */ - slug: string; - }; - PageMetadata: { - /** Format: int64 */ - number?: number; - /** Format: int64 */ - size?: number; - /** Format: int64 */ - totalElements?: number; - /** Format: int64 */ - totalPages?: number; - }; - Pageable: { - /** Format: int32 */ - page?: number; - /** Format: int32 */ - size?: number; - sort?: string[]; - }; - PagedModelApiKeyModel: { - _embedded?: { - apiKeys?: components["schemas"]["ApiKeyModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelBatchJobModel: { - _embedded?: { - batchJobs?: components["schemas"]["BatchJobModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelBranchMergeChangeModel: { - _embedded?: { - branchMergeChanges?: components["schemas"]["BranchMergeChangeModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelBranchMergeConflictModel: { - _embedded?: { - branchMergeConflicts?: components["schemas"]["BranchMergeConflictModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelBranchMergeModel: { - _embedded?: { - branchMerges?: components["schemas"]["BranchMergeModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelBranchModel: { - _embedded?: { - branches?: components["schemas"]["BranchModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelContentDeliveryConfigModel: { - _embedded?: { - contentDeliveryConfigs?: components["schemas"]["ContentDeliveryConfigModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelContentStorageModel: { - _embedded?: { - contentStorages?: components["schemas"]["ContentStorageModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelImportFileIssueModel: { - _embedded?: { - importFileIssues?: components["schemas"]["ImportFileIssueModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelImportLanguageModel: { - _embedded?: { - languages?: components["schemas"]["ImportLanguageModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelImportTranslationModel: { - _embedded?: { - translations?: components["schemas"]["ImportTranslationModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelKeyModel: { - _embedded?: { - keys?: components["schemas"]["KeyModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelKeySearchSearchResultModel: { - _embedded?: { - keys?: components["schemas"]["KeySearchSearchResultModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelKeyWithTranslationsModel: { - _embedded?: { - keys?: components["schemas"]["KeyWithTranslationsModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelLabelModel: { - _embedded?: { - labels?: components["schemas"]["LabelModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelLanguageModel: { - _embedded?: { - languages?: components["schemas"]["LanguageModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelModifiedEntityModel: { - _embedded?: { - modifiedEntities?: components["schemas"]["ModifiedEntityModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelNamespaceModel: { - _embedded?: { - namespaces?: components["schemas"]["NamespaceModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelNotificationModel: { - _embedded?: { - notificationModelList?: components["schemas"]["NotificationModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelOrganizationLanguageModel: { - _embedded?: { - languages?: components["schemas"]["OrganizationLanguageModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelOrganizationModel: { - _embedded?: { - organizations?: components["schemas"]["OrganizationModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelPatModel: { - _embedded?: { - pats?: components["schemas"]["PatModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelProjectActivityModel: { - _embedded?: { - activities?: components["schemas"]["ProjectActivityModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelProjectModel: { - _embedded?: { - projects?: components["schemas"]["ProjectModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelProjectWithStatsModel: { - _embedded?: { - projects?: components["schemas"]["ProjectWithStatsModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelPromptModel: { - _embedded?: { - prompts?: components["schemas"]["PromptModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleGlossaryModel: { - _embedded?: { - glossaries?: components["schemas"]["SimpleGlossaryModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleGlossaryTermModel: { - _embedded?: { - glossaryTerms?: components["schemas"]["SimpleGlossaryTermModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleGlossaryTermWithTranslationsModel: { - _embedded?: { - glossaryTerms?: components["schemas"]["SimpleGlossaryTermWithTranslationsModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleGlossaryWithStatsModel: { - _embedded?: { - glossaries?: components["schemas"]["SimpleGlossaryWithStatsModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelSimpleUserAccountModel: { - _embedded?: { - users?: components["schemas"]["SimpleUserAccountModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTagModel: { - _embedded?: { - tags?: components["schemas"]["TagModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTaskModel: { - _embedded?: { - tasks?: components["schemas"]["TaskModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTaskWithProjectModel: { - _embedded?: { - tasks?: components["schemas"]["TaskWithProjectModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTranslationCommentModel: { - _embedded?: { - translationComments?: components["schemas"]["TranslationCommentModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTranslationHistoryModel: { - _embedded?: { - revisions?: components["schemas"]["TranslationHistoryModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTranslationMemoryItemModel: { - _embedded?: { - translationMemoryItems?: components["schemas"]["TranslationMemoryItemModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelTranslationSuggestionModel: { - _embedded?: { - suggestions?: components["schemas"]["TranslationSuggestionModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelUserAccountInProjectModel: { - _embedded?: { - users?: components["schemas"]["UserAccountInProjectModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelUserAccountModel: { - _embedded?: { - users?: components["schemas"]["UserAccountModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelUserAccountWithOrganizationRoleModel: { - _embedded?: { - usersInOrganization?: components["schemas"]["UserAccountWithOrganizationRoleModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelWebhookConfigModel: { - _embedded?: { - webhookConfigs?: components["schemas"]["WebhookConfigModel"][]; - }; - page?: components["schemas"]["PageMetadata"]; - }; - PagedModelWithNextCursorNotificationModel: { - _embedded?: { - notificationModelList?: components["schemas"]["NotificationModel"][]; - }; - /** - * @description Cursor to get next data - * @example eyJrZXlJZCI6eyJkaXJlY3Rpb24iOiJBU0MiLCJ2YWx1ZSI6IjEwMDAwMDAxMjAifX0= - */ - nextCursor?: string; - page?: components["schemas"]["PageMetadata"]; - pagedModel?: components["schemas"]["PagedModelNotificationModel"]; - }; - PatModel: { - /** Format: int64 */ - createdAt: number; - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** Format: int64 */ - lastUsedAt?: number; - /** Format: int64 */ - updatedAt: number; - }; - PatWithUserModel: { - /** Format: int64 */ - createdAt: number; - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** Format: int64 */ - lastUsedAt?: number; - /** Format: int64 */ - updatedAt: number; - user: components["schemas"]["SimpleUserAccountModel"]; - }; - PermissionModel: { - /** - * @deprecated - * @description Deprecated (use translateLanguageIds). - * - * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - permittedLanguageIds?: number[]; - /** - * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. - * @example [ - * "KEYS_EDIT", - * "TRANSLATIONS_VIEW" - * ] - */ - scopes: ( - | "translations.view" - | "translations.edit" - | "translations.suggest" - | "keys.edit" - | "screenshots.upload" - | "screenshots.delete" - | "screenshots.view" - | "activity.view" - | "languages.edit" - | "admin" - | "project.edit" - | "members.view" - | "members.edit" - | "translation-comments.add" - | "translation-comments.edit" - | "translation-comments.set-state" - | "translations.state-edit" - | "keys.view" - | "keys.delete" - | "keys.create" - | "batch-jobs.view" - | "batch-jobs.cancel" - | "translations.batch-by-tm" - | "translations.batch-machine" - | "content-delivery.manage" - | "content-delivery.publish" - | "webhooks.manage" - | "tasks.view" - | "tasks.edit" - | "prompts.view" - | "prompts.edit" - | "translation-labels.manage" - | "translation-labels.assign" - | "all.view" - )[]; - /** - * @description List of languages user can change state to. If null, changing state of all language values is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - stateChangeLanguageIds?: number[]; - /** - * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - suggestLanguageIds?: number[]; - /** - * @description List of languages user can translate to. If null, all languages editing is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - translateLanguageIds?: number[]; - /** - * @description The user's permission type. This field is null if uses granular permissions - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** - * @description List of languages user can view. If null, all languages view is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - viewLanguageIds?: number[]; - }; - PermissionWithAgencyModel: { - agency?: components["schemas"]["TranslationAgencySimpleModel"]; - /** - * @deprecated - * @description Deprecated (use translateLanguageIds). - * - * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - permittedLanguageIds?: number[]; - /** - * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. - * @example [ - * "KEYS_EDIT", - * "TRANSLATIONS_VIEW" - * ] - */ - scopes: ( - | "translations.view" - | "translations.edit" - | "translations.suggest" - | "keys.edit" - | "screenshots.upload" - | "screenshots.delete" - | "screenshots.view" - | "activity.view" - | "languages.edit" - | "admin" - | "project.edit" - | "members.view" - | "members.edit" - | "translation-comments.add" - | "translation-comments.edit" - | "translation-comments.set-state" - | "translations.state-edit" - | "keys.view" - | "keys.delete" - | "keys.create" - | "batch-jobs.view" - | "batch-jobs.cancel" - | "translations.batch-by-tm" - | "translations.batch-machine" - | "content-delivery.manage" - | "content-delivery.publish" - | "webhooks.manage" - | "tasks.view" - | "tasks.edit" - | "prompts.view" - | "prompts.edit" - | "translation-labels.manage" - | "translation-labels.assign" - | "all.view" - )[]; - /** - * @description List of languages user can change state to. If null, changing state of all language values is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - stateChangeLanguageIds?: number[]; - /** - * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - suggestLanguageIds?: number[]; - /** - * @description List of languages user can translate to. If null, all languages editing is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - translateLanguageIds?: number[]; - /** - * @description The user's permission type. This field is null if uses granular permissions - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** - * @description List of languages user can view. If null, all languages view is permitted. - * @example [ - * 200001, - * 200004 - * ] - */ - viewLanguageIds?: number[]; - }; - PlanIncludedUsageModel: { - /** Format: int64 */ - keys: number; - /** Format: int64 */ - mtCredits: number; - /** Format: int64 */ - seats: number; - /** Format: int64 */ - translations: number; - }; - PlanPricesModel: { - perSeat: number; - perThousandKeys: number; - perThousandMtCredits?: number; - perThousandTranslations?: number; - subscriptionMonthly: number; - subscriptionYearly: number; - }; - PlausibleDto: { - domain?: string; - scriptUrl: string; - url: string; - }; - PositionModel: { - /** Format: int32 */ - end: number; - /** Format: int32 */ - start: number; - }; - PreTranslationByTmRequest: { - keyIds: number[]; - targetLanguageIds: number[]; - }; - PrepareSetEeLicenceKeyModel: { - plan: components["schemas"]["SelfHostedEePlanModel"]; - usage: components["schemas"]["UsageModel"]; - }; - PrivateOrganizationModel: { - /** @example Current active subscription info */ - activeCloudSubscription?: components["schemas"]["PublicCloudSubscriptionModel"]; - /** @example Links to avatar images */ - avatar?: components["schemas"]["Avatar"]; - basePermissions: components["schemas"]["PermissionModel"]; - /** - * @description The role of currently authorized user. - * - * Can be null when user has direct access to one of the projects owned by the organization. - * @enum {string} - */ - currentUserRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - /** @example This is a beautiful organization full of beautiful and clever people */ - description?: string; - /** @example Features organization has enabled */ - enabledFeatures: ( - | "GRANULAR_PERMISSIONS" - | "PRIORITIZED_FEATURE_REQUESTS" - | "PREMIUM_SUPPORT" - | "DEDICATED_SLACK_CHANNEL" - | "ASSISTED_UPDATES" - | "DEPLOYMENT_ASSISTANCE" - | "BACKUP_CONFIGURATION" - | "TEAM_TRAINING" - | "ACCOUNT_MANAGER" - | "STANDARD_SUPPORT" - | "PROJECT_LEVEL_CONTENT_STORAGES" - | "WEBHOOKS" - | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" - | "AI_PROMPT_CUSTOMIZATION" - | "SLACK_INTEGRATION" - | "TASKS" - | "SSO" - | "ORDER_TRANSLATION" - | "GLOSSARY" - | "TRANSLATION_LABELS" - )[]; - /** Format: int64 */ - id: number; - /** @example Beautiful organization */ - name: string; - organizationModel?: components["schemas"]["OrganizationModel"]; - /** @example Quick start data for current user */ - quickStart?: components["schemas"]["QuickStartModel"]; - /** @example btforg */ - slug: string; - }; - PrivateUserAccountModel: { - /** @enum {string} */ - accountType: "LOCAL" | "MANAGED" | "THIRD_PARTY"; - avatar?: components["schemas"]["Avatar"]; - deletable: boolean; - domain?: string; - emailAwaitingVerification?: string; - /** @enum {string} */ - globalServerRole: "USER" | "ADMIN" | "SUPPORTER"; - /** Format: int64 */ - id: number; - mfaEnabled: boolean; - name?: string; - needsSuperJwtToken: boolean; - /** @enum {string} */ - thirdPartyAuthType?: - | "GOOGLE" - | "GITHUB" - | "OAUTH2" - | "SSO" - | "SSO_GLOBAL"; - username: string; - }; - ProjectActivityAuthorModel: { - avatar?: components["schemas"]["Avatar"]; - deleted: boolean; - /** Format: int64 */ - id: number; - name?: string; - username?: string; - }; - ProjectActivityModel: { - author?: components["schemas"]["ProjectActivityAuthorModel"]; - counts?: { [key: string]: number }; - meta?: { [key: string]: unknown }; - modifiedEntities?: { - [key: string]: components["schemas"]["ModifiedEntityModel"][]; - }; - params?: unknown; - /** Format: int64 */ - revisionId: number; - /** Format: int64 */ - timestamp: number; - /** @enum {string} */ - type: - | "UNKNOWN" - | "SET_TRANSLATION_STATE" - | "SET_TRANSLATIONS" - | "DISMISS_AUTO_TRANSLATED_STATE" - | "SET_OUTDATED_FLAG" - | "TRANSLATION_COMMENT_ADD" - | "TRANSLATION_COMMENT_DELETE" - | "TRANSLATION_COMMENT_EDIT" - | "TRANSLATION_COMMENT_SET_STATE" - | "SCREENSHOT_DELETE" - | "SCREENSHOT_ADD" - | "KEY_TAGS_EDIT" - | "KEY_NAME_EDIT" - | "KEY_DELETE" - | "CREATE_KEY" - | "COMPLEX_EDIT" - | "IMPORT" - | "CREATE_LANGUAGE" - | "EDIT_LANGUAGE" - | "DELETE_LANGUAGE" - | "HARD_DELETE_LANGUAGE" - | "CREATE_PROJECT" - | "EDIT_PROJECT" - | "NAMESPACE_EDIT" - | "BATCH_PRE_TRANSLATE_BY_TM" - | "BATCH_MACHINE_TRANSLATE" - | "AUTO_TRANSLATE" - | "BATCH_CLEAR_TRANSLATIONS" - | "BATCH_COPY_TRANSLATIONS" - | "BATCH_SET_TRANSLATION_STATE" - | "BATCH_TAG_KEYS" - | "BATCH_UNTAG_KEYS" - | "BATCH_SET_KEYS_NAMESPACE" - | "BATCH_ASSIGN_TRANSLATION_LABEL" - | "BATCH_UNASSIGN_TRANSLATION_LABEL" - | "AUTOMATION" - | "CONTENT_DELIVERY_CONFIG_CREATE" - | "CONTENT_DELIVERY_CONFIG_UPDATE" - | "CONTENT_DELIVERY_CONFIG_DELETE" - | "CONTENT_STORAGE_CREATE" - | "CONTENT_STORAGE_UPDATE" - | "CONTENT_STORAGE_DELETE" - | "WEBHOOK_CONFIG_CREATE" - | "WEBHOOK_CONFIG_UPDATE" - | "WEBHOOK_CONFIG_DELETE" - | "COMPLEX_TAG_OPERATION" - | "TASKS_CREATE" - | "TASK_CREATE" - | "TASK_UPDATE" - | "TASK_KEYS_UPDATE" - | "TASK_FINISH" - | "TASK_CLOSE" - | "TASK_REOPEN" - | "TASK_KEY_UPDATE" - | "ORDER_TRANSLATION" - | "GLOSSARY_CREATE" - | "GLOSSARY_UPDATE" - | "GLOSSARY_DELETE" - | "GLOSSARY_IMPORT" - | "GLOSSARY_TERM_CREATE" - | "GLOSSARY_TERM_UPDATE" - | "GLOSSARY_TERM_DELETE" - | "GLOSSARY_TERM_TRANSLATION_UPDATE" - | "TRANSLATION_LABELS_EDIT" - | "TRANSLATION_LABEL_ASSIGN" - | "TRANSLATION_LABEL_CREATE" - | "TRANSLATION_LABEL_UPDATE" - | "TRANSLATION_LABEL_DELETE" - | "CREATE_SUGGESTION" - | "DECLINE_SUGGESTION" - | "ACCEPT_SUGGESTION" - | "REVERSE_SUGGESTION" - | "DELETE_SUGGESTION" - | "SUGGESTION_SET_ACTIVE" - | "AI_PROMPT_CREATE" - | "AI_PROMPT_UPDATE" - | "AI_PROMPT_DELETE"; - }; - ProjectAiPromptCustomizationModel: { - /** - * @description The project description used in the prompt that helps AI translator to understand the context of your project. - * @example We are Dunder Mifflin, a paper company. We sell paper. This is an project of translations for out paper selling app. - */ - description?: string; - }; - ProjectInvitationModel: { - code?: string; - /** Format: date-time */ - createdAt: string; - createdBy?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - id: number; - invitedUserEmail?: string; - invitedUserName?: string; - permission: components["schemas"]["PermissionWithAgencyModel"]; - /** - * @deprecated - * @description Use permission object instead - */ - permittedLanguageIds?: number[]; - /** - * @deprecated - * @description Use permission object instead - * @enum {string} - */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - }; - ProjectInviteUserDto: { - /** - * Format: int64 - * @description Id of invited agency - */ - agencyId?: number; - /** @description Email to send invitation to */ - email?: string; - /** - * @deprecated - * @description Deprecated -> use translate languages - */ - languages?: number[]; - /** @description Name of invited user */ - name?: string; - /** - * @description Granted scopes for the invited user - * @example [ - * "translations.view", - * "translations.edit" - * ] - */ - scopes?: string[]; - /** @description Languages user can change translation state (review) */ - stateChangeLanguages?: number[]; - /** @description Languages user can suggest translation */ - suggestLanguages?: number[]; - /** @description Languages user can translate to */ - translateLanguages?: number[]; - /** @enum {string} */ - type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; - /** @description Languages user can view */ - viewLanguages?: number[]; - }; - ProjectLockModel: { - jobInfo?: components["schemas"]["JobInfo"]; - /** @enum {string} */ - lockStatus: "UNLOCKED" | "UNINITIALIZED" | "LOCKED"; - /** Format: int64 */ - lockedJobId?: number; - /** Format: int64 */ - projectId: number; - }; - ProjectModel: { - avatar?: components["schemas"]["Avatar"]; - baseLanguage?: components["schemas"]["LanguageModel"]; - computedPermission: components["schemas"]["ComputedPermissionModel"]; - defaultNamespace?: components["schemas"]["NamespaceModel"]; - description?: string; - /** - * @description Current user's direct permission - * @example MANAGE - */ - directPermission?: components["schemas"]["PermissionModel"]; - /** @description Whether to disable ICU placeholder visualization in the editor and it's support. */ - icuPlaceholders: boolean; - /** Format: int64 */ - id: number; - name: string; - organizationOwner?: components["schemas"]["SimpleOrganizationModel"]; - /** @enum {string} */ - organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - slug?: string; - /** - * @description Suggestions for translations - * @enum {string} - */ - suggestionsMode: "DISABLED" | "ENABLED"; - /** - * @description Level of protection of translations - * @enum {string} - */ - translationProtection: "NONE" | "PROTECT_REVIEWED"; - useNamespaces: boolean; - }; - ProjectStatistics: { - /** Format: int64 */ - keyCount: number; - /** Format: int64 */ - languageCount: number; - /** Format: int64 */ - projectId: number; - translationStatePercentages: { [key: string]: number }; - }; - ProjectStatsModel: { - /** Format: int64 */ - baseWordsCount: number; - /** Format: int64 */ - keyCount: number; - /** Format: int32 */ - languageCount: number; - languageStats: components["schemas"]["LanguageStatsModel"][]; - /** Format: int64 */ - membersCount: number; - /** Format: int64 */ - projectId: number; - /** Format: double */ - reviewedPercentage: number; - /** Format: int64 */ - tagCount: number; - /** Format: int64 */ - taskCount: number; - /** Format: double */ - translatedPercentage: number; - }; - ProjectTransferOptionModel: { - /** Format: int64 */ - id: number; - name: string; - slug: string; - }; - ProjectWithStatsModel: { - avatar?: components["schemas"]["Avatar"]; - baseLanguage?: components["schemas"]["LanguageModel"]; - /** - * @description Actual current user's permissions on this project. You can not sort data by this column! - * @example EDIT - */ - computedPermission: components["schemas"]["ComputedPermissionModel"]; - description?: string; - /** - * @description Current user's direct permission - * @example MANAGE - */ - directPermission?: components["schemas"]["PermissionModel"]; - /** @description Whether to disable ICU placeholder visualization in the editor and it's support. */ - icuPlaceholders: boolean; - /** Format: int64 */ - id: number; - languages: components["schemas"]["LanguageModel"][]; - name: string; - organizationOwner?: components["schemas"]["SimpleOrganizationModel"]; - /** @enum {string} */ - organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - slug?: string; - stats: components["schemas"]["ProjectStatistics"]; - }; - PromptDto: { - basicPromptOptions?: ( - | "KEY_NAME" - | "KEY_DESCRIPTION" - | "KEY_CONTEXT" - | "PROJECT_DESCRIPTION" - | "LANGUAGE_NOTES" - | "TM_SUGGESTIONS" - | "SCREENSHOT" - | "GLOSSARY" - )[]; - name: string; - providerName: string; - template?: string; - }; - PromptModel: { - basicPromptOptions?: ( - | "KEY_NAME" - | "KEY_DESCRIPTION" - | "KEY_CONTEXT" - | "PROJECT_DESCRIPTION" - | "LANGUAGE_NOTES" - | "TM_SUGGESTIONS" - | "SCREENSHOT" - | "GLOSSARY" - )[]; - /** Format: int64 */ - id: number; - name: string; - /** Format: int64 */ - projectId: number; - providerName: string; - template?: string; - }; - PromptResponseModel: { - parsedJson?: components["schemas"]["JsonNode"]; - /** Format: int32 */ - price?: number; - prompt: string; - result: string; - usage?: components["schemas"]["PromptResponseUsageModel"]; - }; - PromptResponseUsageModel: { - /** Format: int64 */ - cachedTokens?: number; - /** Format: int64 */ - inputTokens?: number; - /** Format: int64 */ - outputTokens?: number; - }; - PromptRunDto: { - basicPromptOptions?: ( - | "KEY_NAME" - | "KEY_DESCRIPTION" - | "KEY_CONTEXT" - | "PROJECT_DESCRIPTION" - | "LANGUAGE_NOTES" - | "TM_SUGGESTIONS" - | "SCREENSHOT" - | "GLOSSARY" - )[]; - /** Format: int64 */ - keyId: number; - provider: string; - /** Format: int64 */ - targetLanguageId: number; - template?: string; - }; - PromptVariableDto: { - description?: string; - name: string; - props?: components["schemas"]["PromptVariableDto"][]; - /** @enum {string} */ - type: "FRAGMENT" | "OBJECT" | "STRING"; - value?: string; - }; - PropertyModification: { - new?: unknown; - old?: unknown; - }; - PublicBillingConfigurationDTO: { - enabled: boolean; - }; - PublicCloudPlanModel: { - /** Format: date-time */ - archivedAt?: string; - enabledFeatures: ( - | "GRANULAR_PERMISSIONS" - | "PRIORITIZED_FEATURE_REQUESTS" - | "PREMIUM_SUPPORT" - | "DEDICATED_SLACK_CHANNEL" - | "ASSISTED_UPDATES" - | "DEPLOYMENT_ASSISTANCE" - | "BACKUP_CONFIGURATION" - | "TEAM_TRAINING" - | "ACCOUNT_MANAGER" - | "STANDARD_SUPPORT" - | "PROJECT_LEVEL_CONTENT_STORAGES" - | "WEBHOOKS" - | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" - | "AI_PROMPT_CUSTOMIZATION" - | "SLACK_INTEGRATION" - | "TASKS" - | "SSO" - | "ORDER_TRANSLATION" - | "GLOSSARY" - | "TRANSLATION_LABELS" - )[]; - free: boolean; - /** Format: int64 */ - id: number; - includedUsage: components["schemas"]["PlanIncludedUsageModel"]; - /** @enum {string} */ - metricType: "KEYS_SEATS" | "STRINGS"; - name: string; - nonCommercial: boolean; - public: boolean; - /** @enum {string} */ - type: "PAY_AS_YOU_GO" | "FIXED"; - }; - PublicCloudSubscriptionModel: { - cancelAtPeriodEnd: boolean; - /** @enum {string} */ - currentBillingPeriod?: "MONTHLY" | "YEARLY"; - plan: components["schemas"]["PublicCloudPlanModel"]; - /** @enum {string} */ - status: - | "ACTIVE" - | "CANCELED" - | "PAST_DUE" - | "UNPAID" - | "ERROR" - | "TRIALING" - | "KEY_USED_BY_ANOTHER_INSTANCE" - | "UNKNOWN"; - /** Format: int64 */ - trialEnd?: number; - }; - PublicConfigurationDTO: { - allowRegistrations: boolean; - appName: string; - authMethods?: components["schemas"]["AuthMethodsDTO"]; - authentication: boolean; - billing: components["schemas"]["PublicBillingConfigurationDTO"]; - capterraTracker?: string; - chatwootToken?: string; - clientSentryDsn?: string; - contentDeliveryConfigured: boolean; - ga4Tag?: string; - intercomAppId?: string; - internalControllerEnabled: boolean; - llm: components["schemas"]["PublicLlmConfigurationDTO"]; - machineTranslationServices: components["schemas"]["MtServicesDTO"]; - /** Format: int64 */ - maxTranslationTextLength: number; - /** Format: int32 */ - maxUploadFileSize: number; - nativeEnabled: boolean; - needsEmailVerification: boolean; - /** - * @deprecated - * @description Use nativeEnabled instead - */ - passwordResettable: boolean; - plausible: components["schemas"]["PlausibleDto"]; - postHogApiKey?: string; - postHogHost?: string; - recaptchaSiteKey?: string; - screenshotsUrl: string; - showVersion: boolean; - slack: components["schemas"]["SlackDTO"]; - /** Format: int32 */ - translationsViewLanguagesLimit: number; - userCanCreateOrganizations: boolean; - userSourceField: boolean; - version: string; - }; - PublicInvitationModel: { - code: string; - createdBy?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - id: number; - organizationName?: string; - projectName?: string; - }; - PublicLlmConfigurationDTO: { - enabled: boolean; - }; - PublicSsoTenantModel: { - domain: string; - force: boolean; - global: boolean; - }; - PublicUsageModel: { - /** - * Format: int64 - * @description The maximum amount organization can spend on MT credit usage before they reach the spending limit - */ - availablePayAsYouGoMtCredits: number; - /** - * Format: int64 - * @description Current balance of standard credits. Standard credits are refilled every month - */ - creditBalance: number; - /** - * Format: int64 - * @description Date when credits will be refilled. (In epoch format) - */ - creditBalanceNextRefillAt: number; - /** - * Format: int64 - * @description Date when credits were refilled. (In epoch format) - */ - creditBalanceRefilledAt: number; - /** - * Format: int64 - * @description How many keys are currently stored by organization - */ - currentKeys: number; - /** - * Format: int64 - * @description Currently used credits over credits included in plan and extra credits - */ - currentPayAsYouGoMtCredits: number; - /** - * Format: int64 - * @description How seats are currently used by organization - */ - currentSeats: number; - /** - * Format: int64 - * @description How many non-empty translations are currently stored by organization - */ - currentTranslations: number; - /** - * Format: int64 - * @deprecated - * @description Customers were able to buy extra credits separately in the past. - * - * This option is not available anymore and this field is kept only for backward compatibility purposes and is always 0. - */ - extraCreditBalance: number; - /** - * Format: int64 - * @description How many keys are included in current subscription plan. How many keys can organization use without additional costs. - */ - includedKeys: number; - /** - * Format: int64 - * @description How many credits are included in your current plan - */ - includedMtCredits: number; - /** - * Format: int64 - * @description How many seats are included in current subscription plan. How many seats can organization use without additional costs. - */ - includedSeats: number; - /** - * Format: int64 - * @description How many translations are included in current subscription plan. How many translations can organization use without additional costs - */ - includedTranslations: number; - /** @description Whether the current plan is pay-as-you-go of fixed. For pay-as-you-go plans, the spending limit is the top limit. */ - isPayAsYouGo: boolean; - /** - * Format: int64 - * @description How many keys can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) - */ - keysLimit: number; - /** Format: int64 */ - organizationId: number; - /** - * Format: int64 - * @description How many seats can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) - */ - seatsLimit: number; - /** - * Format: int64 - * @description How many translations can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) - */ - translationsLimit: number; - /** - * Format: int64 - * @description Currently used credits including credits used over the limit - */ - usedMtCredits: number; - }; - QueueItemModel: { - /** Format: int64 */ - chunkExecutionId: number; - /** Format: int64 */ - executeAfter?: number; - /** @enum {string} */ - jobCharacter: "SLOW" | "FAST"; - /** Format: int64 */ - jobId: number; - /** Format: int32 */ - managementErrorRetrials: number; - }; - QuickStartModel: { - completedSteps: string[]; - finished: boolean; - open: boolean; - }; - RegenerateApiKeyDto: { - /** - * Format: int64 - * @description Expiration date in epoch format (milliseconds). When null key never expires. - * @example 1661172869000 - */ - expiresAt?: number; - }; - RegeneratePatDto: { - /** - * Format: int64 - * @description Expiration date in epoch format (milliseconds). When null key never expires. - * @example 1661172869000 - */ - expiresAt?: number; - }; - RelatedKeyDto: { - branch?: string; - keyName: string; - namespace?: string; - }; - ResetPassword: { - code: string; - email: string; - password?: string; - }; - ResetPasswordRequest: { - callbackUrl: string; - email: string; - }; - ResolveAllBranchMergeConflictsRequest: { - /** @enum {string} */ - resolve: "SOURCE" | "TARGET"; - }; - ResolveBranchMergeConflictRequest: { - /** - * Format: int64 - * @description Merge change id - */ - changeId: number; - /** - * @description Type of resolution - * @enum {string} - */ - resolve: "SOURCE" | "TARGET"; - }; - RevealedApiKeyModel: { - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** @description Resulting user's api key */ - key: string; - /** Format: int64 */ - lastUsedAt?: number; - /** Format: int64 */ - projectId: number; - projectName: string; - scopes: string[]; - userFullName?: string; - username?: string; - }; - RevealedPatModel: { - /** Format: int64 */ - createdAt: number; - description: string; - /** Format: int64 */ - expiresAt?: number; - /** Format: int64 */ - id: number; - /** Format: int64 */ - lastUsedAt?: number; - token: string; - /** Format: int64 */ - updatedAt: number; - }; - S3ContentStorageConfigDto: { - accessKey?: string; - bucketName: string; - /** @enum {string} */ - contentStorageType?: "S3" | "AZURE"; - enabled?: boolean; - endpoint: string; - /** @description Specifies an optional subfolder structure within s3 bucket to which content will be stored */ - path: string; - secretKey?: string; - signingRegion: string; - }; - S3ContentStorageConfigModel: { - bucketName: string; - endpoint: string; - path: string; - signingRegion: string; - }; - ScreenshotInfoDto: { - location?: string; - positions?: components["schemas"]["KeyInScreenshotPositionDto"][]; - text?: string; - }; - ScreenshotModel: { - /** Format: date-time */ - createdAt?: string; - fileUrl: string; - /** - * @description File name, which may be downloaded from the screenshot path. - * - * When images are secured. Encrypted timestamp is appended to the filename. - */ - filename: string; - /** Format: int32 */ - height?: number; - /** Format: int64 */ - id: number; - keyReferences: components["schemas"]["KeyInScreenshotModel"][]; - location?: string; - middleSized?: string; - middleSizedUrl?: string; - /** - * @description Thumbnail file name, which may be downloaded from the screenshot path. - * - * When images are secured. Encrypted timestamp is appended to the filename. - */ - thumbnail: string; - thumbnailUrl: string; - /** Format: int32 */ - width?: number; - }; - SelectAllResponse: { - ids: number[]; - }; - SelfHostedEePlanModel: { - /** Format: date-time */ - archivedAt?: string; - enabledFeatures: ( - | "GRANULAR_PERMISSIONS" - | "PRIORITIZED_FEATURE_REQUESTS" - | "PREMIUM_SUPPORT" - | "DEDICATED_SLACK_CHANNEL" - | "ASSISTED_UPDATES" - | "DEPLOYMENT_ASSISTANCE" - | "BACKUP_CONFIGURATION" - | "TEAM_TRAINING" - | "ACCOUNT_MANAGER" - | "STANDARD_SUPPORT" - | "PROJECT_LEVEL_CONTENT_STORAGES" - | "WEBHOOKS" - | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" - | "AI_PROMPT_CUSTOMIZATION" - | "SLACK_INTEGRATION" - | "TASKS" - | "SSO" - | "ORDER_TRANSLATION" - | "GLOSSARY" - | "TRANSLATION_LABELS" - )[]; - free: boolean; - hasYearlyPrice: boolean; - /** Format: int64 */ - id: number; - includedUsage: components["schemas"]["PlanIncludedUsageModel"]; - isPayAsYouGo: boolean; - name: string; - nonCommercial: boolean; - prices: components["schemas"]["PlanPricesModel"]; - public: boolean; - }; - SetDisabledLanguagesRequest: { - languageIds: number[]; - }; - SetFileNamespaceRequest: { - namespace?: string; - }; - SetKeysNamespaceRequest: { - keyIds: number[]; - namespace?: string; - }; - SetLanguagePromptCustomizationRequest: { - /** - * @description The language description used in the prompt that helps AI translator to fine tune results for specific language - * @example For arabic language, we are super formal. Always use these translations: - * Paper -> ورقة - * Office -> مكتب - */ - description?: string; - }; - SetLicenseKeyDto: { - licenseKey: string; - }; - SetMachineTranslationSettingsDto: { - settings: components["schemas"]["MachineTranslationLanguagePropsDto"][]; - }; - SetOrganizationRoleDto: { - /** @enum {string} */ - roleType: "MEMBER" | "OWNER" | "MAINTAINER"; - }; - SetProjectPromptCustomizationRequest: { - /** - * @description The project description used in the prompt that helps AI translator to understand the context of your project. - * @example We are Dunder Mifflin, a paper company. We sell paper. This is an project of translations for out paper selling app. - */ - description?: string; - }; - SetTranslationsResponseModel: { - /** - * Format: int64 - * @description Id of key record - */ - keyId: number; - keyIsPlural: boolean; - /** - * @description Name of key - * @example this_is_super_key - */ - keyName: string; - /** - * @description The namespace of the key - * @example homepage - */ - keyNamespace?: string; - /** - * @description Translations object containing values updated in this request - * @example { - * "en": { - * "id": 100000003, - * "text": "This is super translation!" - * } - * } - */ - translations: { - [key: string]: components["schemas"]["TranslationModel"]; - }; - }; - SetTranslationsStateStateRequest: { - keyIds: number[]; - languageIds: number[]; - /** @enum {string} */ - state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; - }; - SetTranslationsWithKeyDto: { - /** @description Branch name to set translations for */ - branch?: string; - /** - * @description Key name to set translations for - * @example what_a_key_to_translate - */ - key: string; - /** - * @description List of languages to return translations for. - * - * If not provided, only modified translation will be provided. - * - * @example [ - * "en", - * "de", - * "fr" - * ] - */ - languagesToReturn?: string[]; - /** @description The namespace of the key. (When empty or null default namespace will be used) */ - namespace?: string; - /** - * @description Object mapping language tag to translation - * @example { - * "en": "What a translated value!", - * "cs": "Jaká to přeložená hodnota!" - * } - */ - translations: { [key: string]: string }; - }; - SignUpDto: { - callbackUrl?: string; - email: string; - invitationCode?: string; - name: string; - organizationName?: string; - password: string; - recaptchaToken?: string; - /** @description Where did the user find us? */ - userSource?: string; - }; - SimpleGlossaryModel: { - /** - * @description Language tag for default translations for terms - * @example en - */ - baseLanguageTag: string; - /** Format: int64 */ - id: number; - name: string; - }; - SimpleGlossaryTermModel: { - description: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm: boolean; - /** @description When true, this term has the same translation across all target languages */ - flagNonTranslatable: boolean; - /** Format: int64 */ - id: number; - }; - SimpleGlossaryTermWithTranslationsModel: { - /** - * @description A detailed explanation or definition of the glossary term - * @example It's trademark - */ - description: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm: boolean; - /** @description When true, this term has the same translation across all target languages */ - flagNonTranslatable: boolean; - /** Format: int64 */ - id: number; - translations: components["schemas"]["GlossaryTermTranslationModel"][]; - }; - SimpleGlossaryWithStatsModel: { - /** - * Format: int64 - * @description Total number of projects currently using this glossary - * @example 69 - */ - assignedProjectsCount: number; - /** - * @description The primary language code used for terms (e.g., 'en' for English) - * @example en - */ - baseLanguageTag: string; - /** - * @description The name of one project using this glossary (can be shown as a preview) - * @example My Project - */ - firstAssignedProjectName?: string; - /** Format: int64 */ - id: number; - name: string; - }; - SimpleImportConflictResult: { - isOverridable: boolean; - keyName: string; - keyNamespace?: string; - language: string; - }; - SimpleOrganizationModel: { - /** @example Links to avatar images */ - avatar?: components["schemas"]["Avatar"]; - basePermissions: components["schemas"]["PermissionModel"]; - /** @example This is a beautiful organization full of beautiful and clever people */ - description?: string; - /** Format: int64 */ - id: number; - /** @example Beautiful organization */ - name: string; - /** @example btforg */ - slug: string; - }; - SimpleProjectModel: { - avatar?: components["schemas"]["Avatar"]; - baseLanguage?: components["schemas"]["LanguageModel"]; - description?: string; - icuPlaceholders: boolean; - /** Format: int64 */ - id: number; - name: string; - slug?: string; - }; - SimpleUserAccountModel: { - avatar?: components["schemas"]["Avatar"]; - deleted: boolean; - /** Format: int64 */ - id: number; - name?: string; - username: string; - }; - SingleStepImportRequest: { - /** - * @description Branch to which files will be imported - * @example main - */ - branch?: string; - /** @description If true, placeholders from other formats will be converted to ICU when possible */ - convertPlaceholdersToIcu: boolean; - /** @description If false, only updates keys, skipping the creation of new keys */ - createNewKeys: boolean; - /** - * @description If `false`, import will apply all `non-failed` overrides and reports `unresolvedConflict` - * .If `true`, import will fail completely on unresolved conflict and won't apply any changes. Unresolved conflicts are reported in the `params` of the error response - */ - errorOnUnresolvedConflict?: boolean; - /** @description Definition of mapping for each file to import. */ - fileMappings: components["schemas"]["ImportFileMapping"][]; - /** - * @description Whether to override existing translation data. - * - * When set to `KEEP`, existing translations will be kept. - * When set to `NO_FORCE`, error will be thrown on conflict. - * When set to `OVERRIDE`, existing translations will be overwritten - * @enum {string} - */ - forceMode: "OVERRIDE" | "KEEP" | "NO_FORCE"; - /** - * @description Maps the languages from imported files to languages existing in the Tolgee platform. - * - * Use this field only when your files contain multiple languages (e.g., XLIFF files). - * - * Otherwise, use the `languageTag` property of `fileMappings`. - * - * Example: In xliff files, there are `source-language` and `target-language` attributes defined on `file` element. Using this field you can map source and target values to languages stored in the Tolgee Platform. - */ - languageMappings?: components["schemas"]["LanguageMapping"][]; - /** @description If true, key descriptions will be overridden by the import */ - overrideKeyDescriptions: boolean; - /** - * @description Some translations are forbidden or protected: - * - * When set to `RECOMMENDED` it will fail for DISABLED translations and protected REVIEWED translations. - * When set to `ALL` it will fail for DISABLED translations, but will try to update protected REVIEWED translations (fails only if user has no permission) - * - * @enum {string} - */ - overrideMode?: "RECOMMENDED" | "ALL"; - /** @description If yes, keys from project that were not included in import will be deleted (only within namespaces which are included in the import). */ - removeOtherKeys?: boolean; - /** - * @description When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys. - * @example . - */ - structureDelimiter?: string; - /** @description Keys created by this import will be tagged with these tags. It add tags only to new keys. The keys that already exist will not be tagged. */ - tagNewKeys: string[]; - }; - SingleStepImportResolvableItemRequest: { - /** - * @description Key name to set translations for - * @example what_a_key_to_translate - */ - name: string; - /** @description The namespace of the key. (When empty or null default namespace will be used) */ - namespace?: string; - screenshots?: components["schemas"]["KeyScreenshotDto"][]; - /** @description Object mapping language tag to translation */ - translations: { - [ - key: string - ]: components["schemas"]["SingleStepImportResolvableTranslationRequest"]; - }; - }; - SingleStepImportResolvableRequest: { - /** - * @description If `false`, import will apply all `non-failed` overrides and reports `unresolvedConflict` - * .If `true`, import will fail completely on unresolved conflict and won't apply any changes. Unresolved conflicts are reported in the `params` of the error response - */ - errorOnUnresolvedConflict?: boolean; - /** @description List of keys to import */ - keys: components["schemas"]["SingleStepImportResolvableItemRequest"][]; - /** - * @description Some translations are forbidden or protected: - * - * When set to `RECOMMENDED` it will fail for DISABLED translations and protected REVIEWED translations. - * When set to `ALL` it will fail for DISABLED translations, but will try to update protected REVIEWED translations (fails only if user has no permission) - * - * @enum {string} - */ - overrideMode?: "RECOMMENDED" | "ALL"; - }; - SingleStepImportResolvableTranslationRequest: { - /** - * @description - * To ensure the import doesn't override something that should not be (in case data have changed unexpectedly), - * you can specify what do you "expect": - * - EXPECT_NO_CONFLICT: There should be no conflict, if there is, import fails - * - OVERRIDE: New translation is applied over the existing in every case (Default) - * - * @example OVERRIDE - * @enum {string} - */ - resolution?: "EXPECT_NO_CONFLICT" | "OVERRIDE"; - /** - * @description Translation text - * @example Hello! I am a translation! - */ - text: string; - }; - SlackCommandDto: { - channel_id: string; - channel_name: string; - command: string; - team_domain: string; - team_id: string; - text: string; - token?: string; - trigger_id?: string; - user_id: string; - user_name: string; - }; - SlackDTO: { - connected: boolean; - enabled: boolean; - }; - SlackUserInfoModel: { - slackAvatar: string; - slackId: string; - slackName?: string; - slackRealName?: string; - teamName: string; - }; - SsoGlobalPublicConfigDTO: { - clientId?: string; - customLoginText?: string; - customLogoUrl?: string; - domain?: string; - enabled: boolean; - }; - SsoOrganizationsPublicConfigDTO: { - enabled: boolean; - }; - SsoTenantModel: { - authorizationUri: string; - clientId: string; - clientSecret: string; - domain: string; - enabled: boolean; - force: boolean; - global: boolean; - tokenUri: string; - }; - SsoUrlResponse: { - redirectUrl: string; - }; - StorageTestResult: { - /** @enum {string} */ - message?: - | "unauthenticated" - | "api_access_forbidden" - | "api_key_not_found" - | "invalid_api_key" - | "invalid_project_api_key" - | "project_api_key_expired" - | "bad_credentials" - | "mfa_enabled" - | "invalid_otp_code" - | "mfa_not_enabled" - | "can_not_revoke_own_permissions" - | "data_corrupted" - | "invitation_code_does_not_exist_or_expired" - | "language_tag_exists" - | "language_name_exists" - | "language_not_found" - | "operation_not_permitted" - | "registrations_not_allowed" - | "project_not_found" - | "resource_not_found" - | "scope_not_found" - | "key_exists" - | "third_party_auth_error_message" - | "third_party_auth_no_email" - | "third_party_auth_non_matching_email" - | "third_party_auth_no_sub" - | "third_party_auth_unknown_error" - | "email_already_verified" - | "third_party_unauthorized" - | "third_party_google_workspace_mismatch" - | "third_party_switch_initiated" - | "third_party_switch_conflict" - | "username_already_exists" - | "username_or_password_invalid" - | "user_already_has_permissions" - | "user_already_has_role" - | "user_not_found" - | "file_not_image" - | "file_too_big" - | "invalid_timestamp" - | "email_not_verified" - | "missing_callback_url" - | "invalid_jwt_token" - | "expired_jwt_token" - | "general_jwt_error" - | "cannot_find_suitable_address_part" - | "slug_not_unique" - | "user_is_not_member_of_organization" - | "organization_has_no_other_owner" - | "user_has_no_project_access" - | "user_is_organization_owner" - | "cannot_set_your_own_permissions" - | "user_is_organization_member" - | "property_not_mutable" - | "import_language_not_from_project" - | "existing_language_not_selected" - | "conflict_is_not_resolved" - | "language_already_selected" - | "cannot_parse_file" - | "could_not_resolve_property" - | "cannot_add_more_then_100_languages" - | "no_languages_provided" - | "language_with_base_language_tag_not_found" - | "language_not_from_project" - | "namespace_not_from_project" - | "cannot_delete_base_language" - | "key_not_from_project" - | "max_screenshots_exceeded" - | "translation_not_from_project" - | "can_edit_only_own_comment" - | "request_parse_error" - | "filter_by_value_state_not_valid" - | "import_has_expired" - | "tag_not_from_project" - | "translation_text_too_long" - | "invalid_recaptcha_token" - | "cannot_leave_owning_project" - | "cannot_leave_project_with_organization_role" - | "dont_have_direct_permissions" - | "tag_too_log" - | "too_many_uploaded_images" - | "one_or_more_images_not_found" - | "screenshot_not_of_key" - | "service_not_found" - | "too_many_requests" - | "translation_not_found" - | "out_of_credits" - | "key_not_found" - | "organization_not_found" - | "cannot_find_base_language" - | "base_language_not_found" - | "no_exported_result" - | "cannot_set_your_own_role" - | "only_translate_review_or_view_permission_accepts_view_languages" - | "oauth2_token_url_not_set" - | "oauth2_user_url_not_set" - | "email_already_invited_or_member" - | "price_not_found" - | "invoice_not_from_organization" - | "invoice_not_found" - | "plan_not_found" - | "plan_not_available_any_more" - | "no_auto_translation_method" - | "cannot_translate_base_language" - | "pat_not_found" - | "invalid_pat" - | "pat_expired" - | "operation_unavailable_for_account_type" - | "validation_email_is_not_valid" - | "current_password_required" - | "cannot_create_organization" - | "wrong_current_password" - | "wrong_param_type" - | "user_missing_password" - | "expired_super_jwt_token" - | "cannot_delete_your_own_account" - | "cannot_sort_by_this_column" - | "namespace_not_found" - | "namespace_exists" - | "invalid_authentication_method" - | "unknown_sort_property" - | "only_review_permission_accepts_state_change_languages" - | "only_translate_or_review_permission_accepts_translate_languages" - | "cannot_set_language_permissions_for_admin_scope" - | "cannot_set_view_languages_without_translations_view_scope" - | "cannot_set_translate_languages_without_translations_edit_scope" - | "cannot_set_state_change_languages_without_translations_state_edit_scope" - | "language_not_permitted" - | "scopes_has_to_be_set" - | "set_exactly_one_of_scopes_or_type" - | "translation_exists" - | "import_keys_error" - | "provide_only_one_of_screenshots_and_screenshot_uploaded_image_ids" - | "multiple_projects_not_supported" - | "plan_translation_limit_exceeded" - | "feature_not_enabled" - | "license_key_not_found" - | "cannot_set_view_languages_without_for_level_based_permissions" - | "cannot_set_different_translate_and_state_change_languages_for_level_based_permissions" - | "cannot_disable_your_own_account" - | "subscription_not_found" - | "invoice_does_not_have_usage" - | "customer_not_found" - | "subscription_not_active" - | "organization_already_subscribed" - | "organization_not_subscribed" - | "license_key_used_by_another_instance" - | "translation_spending_limit_exceeded" - | "credit_spending_limit_exceeded" - | "seats_spending_limit_exceeded" - | "this_instance_is_already_licensed" - | "big_meta_not_from_project" - | "mt_service_not_enabled" - | "project_not_selected" - | "organization_not_selected" - | "plan_has_subscribers" - | "translation_failed" - | "batch_job_not_found" - | "key_exists_in_namespace" - | "tag_is_blank" - | "execution_failed_on_management_error" - | "translation_api_rate_limit" - | "cannot_finalize_activity" - | "formality_not_supported_by_service" - | "language_not_supported_by_service" - | "rate_limited" - | "pat_access_not_allowed" - | "pak_access_not_allowed" - | "cannot_modify_disabled_translation" - | "azure_config_required" - | "s3_config_required" - | "content_storage_config_required" - | "content_storage_test_failed" - | "content_storage_config_invalid" - | "invalid_connection_string" - | "cannot_create_azure_storage_client" - | "s3_access_key_required" - | "azure_connection_string_required" - | "s3_secret_key_required" - | "cannot_store_file_to_content_storage" - | "unexpected_error_while_publishing_to_content_storage" - | "webhook_responded_with_non_200_status" - | "unexpected_error_while_executing_webhook" - | "content_storage_is_in_use" - | "cannot_set_state_for_missing_translation" - | "no_project_id_provided" - | "license_key_not_provided" - | "subscription_already_canceled" - | "user_is_subscribed_to_paid_plan" - | "cannot_create_free_plan_without_fixed_type" - | "cannot_modify_plan_free_status" - | "key_id_not_provided" - | "free_self_hosted_seat_limit_exceeded" - | "advanced_params_not_supported" - | "plural_forms_not_found_for_language" - | "nested_plurals_not_supported" - | "message_is_not_plural" - | "content_outside_plural_forms" - | "invalid_plural_form" - | "multiple_plurals_not_supported" - | "custom_values_json_too_long" - | "unsupported_po_message_format" - | "plural_forms_data_loss" - | "current_user_does_not_own_image" - | "user_cannot_view_this_organization" - | "user_is_not_owner_of_organization" - | "user_is_not_owner_or_maintainer_of_organization" - | "pak_created_for_different_project" - | "custom_slug_is_only_applicable_for_custom_storage" - | "invalid_slug_format" - | "batch_job_cancellation_timeout" - | "import_failed" - | "cannot_add_more_then_1000_languages" - | "no_data_to_import" - | "multiple_namespaces_mapped_to_single_file" - | "multiple_mappings_for_same_file_language_name" - | "multiple_mappings_for_null_file_language_name" - | "too_many_mappings_for_file" - | "missing_placeholder_in_template" - | "tag_not_found" - | "cannot_parse_encrypted_slack_login_data" - | "slack_workspace_not_found" - | "cannot_fetch_user_details_from_slack" - | "slack_missing_scope" - | "slack_not_connected_to_your_account" - | "slack_invalid_command" - | "slack_not_subscribed_yet" - | "slack_connection_failed" - | "tolgee_account_already_connected" - | "slack_not_configured" - | "slack_workspace_already_connected" - | "slack_connection_error" - | "email_verification_code_not_valid" - | "cannot_subscribe_to_free_plan" - | "plan_auto_assignment_only_for_free_plans" - | "plan_auto_assignment_only_for_private_plans" - | "task_not_found" - | "task_not_finished" - | "task_not_open" - | "translation_agency_not_found" - | "this_feature_is_not_implemented_in_oss" - | "sso_token_exchange_failed" - | "sso_user_info_retrieval_failed" - | "sso_id_token_expired" - | "sso_user_cannot_create_organization" - | "sso_cant_verify_user" - | "sso_auth_missing_domain" - | "sso_domain_not_found_or_disabled" - | "authentication_method_disabled" - | "native_authentication_disabled" - | "invitation_organization_mismatch" - | "user_is_managed_by_organization" - | "cannot_set_sso_provider_missing_fields" - | "namespaces_cannot_be_disabled_when_namespace_exists" - | "namespace_cannot_be_used_when_feature_is_disabled" - | "sso_domain_not_allowed" - | "sso_login_forced_for_this_account" - | "use_sso_for_authentication_instead" - | "date_has_to_be_in_the_future" - | "custom_plan_and_plan_id_cannot_be_set_together" - | "specify_plan_id_or_custom_plan" - | "custom_plans_has_to_be_private" - | "cannot_create_free_plan_with_prices" - | "subscription_not_scheduled_for_cancellation" - | "cannot_cancel_trial" - | "cannot_update_without_modification" - | "current_subscription_is_not_trialing" - | "sorting_and_paging_is_not_supported_when_using_cursor" - | "strings_metric_are_not_supported" - | "plan_key_limit_exceeded" - | "keys_spending_limit_exceeded" - | "plan_seat_limit_exceeded" - | "instance_not_using_license_key" - | "invalid_path" - | "llm_provider_not_found" - | "llm_provider_error" - | "prompt_not_found" - | "llm_provider_not_returned_json" - | "llm_template_parsing_error" - | "llm_rate_limited" - | "llm_provider_timeout" - | "no_llm_provider_configured" - | "glossary_not_found" - | "glossary_term_not_found" - | "glossary_term_translation_not_found" - | "glossary_non_translatable_term_cannot_be_translated" - | "llm_content_filter" - | "llm_provider_empty_response" - | "label_not_found" - | "label_not_from_project" - | "label_already_exists" - | "filter_by_value_label_not_valid" - | "suggestion_not_found" - | "user_can_only_delete_his_suggestions" - | "cannot_modify_reviewed_translation" - | "cannot_modify_keys" - | "expect_no_conflict_failed" - | "suggestion_cant_be_plural" - | "suggestion_must_be_plural" - | "duplicate_suggestion" - | "unsupported_media_type" - | "impersonation_of_admin_by_supporter_not_allowed" - | "already_impersonating_user" - | "operation_not_permitted_in_read_only_mode" - | "file_processing_failed" - | "branch_not_found" - | "cannot_delete_default_branch" - | "branch_already_exists" - | "origin_branch_not_found" - | "branch_merge_not_found" - | "branch_merge_change_not_found" - | "branch_merge_revision_not_valid" - | "branch_merge_conflicts_not_resolved" - | "branch_merge_already_merged"; - params?: unknown[]; - success: boolean; - }; - StreamingResponseBody: unknown; - SuggestRequestDto: { - /** @description Text value of base translation. Useful, when base translation is not stored yet. */ - baseText?: string; - /** @description Whether base text is plural. This value is ignored if baseText is null. */ - isPlural?: boolean; - /** - * Format: int64 - * @description Key Id to get results for. Use when key is stored already. - */ - keyId?: number; - plural?: boolean; - /** @description List of services to use. If null, then all enabled services are used. */ - services?: ("GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT")[]; - /** Format: int64 */ - targetLanguageId: number; - }; - SuggestResultModel: { - /** @description If true, the base translation was empty and no translation was provided. */ - baseBlank: boolean; - /** - * @deprecated - * @description String translations provided by enabled services. (deprecated, use `result` instead) - * @example - * { - * "GOOGLE": "This was translated by Google", - * "TOLGEE": "This was translated by Tolgee Translator", - * } - */ - machineTranslations?: { [key: string]: string }; - /** - * @description Results provided by enabled services. - * @example { - * "GOOGLE": { - * "output": "This was translated by Google", - * "contextDescription": null - * }, - * "TOLGEE": { - * "output": "This was translated by Tolgee Translator", - * "contextDescription": "This is an example in swagger" - * } - * } - */ - result?: { [key: string]: components["schemas"]["TranslationItemModel"] }; - }; - SumUsageItemModel: { - total: number; - /** Format: int64 */ - unusedQuantity: number; - /** Format: int64 */ - usedQuantity: number; - /** Format: int64 */ - usedQuantityOverPlan: number; - }; - SuperTokenRequest: { - /** @description Has to be provided when TOTP enabled */ - otp?: string; - /** @description Has to be provided when TOTP not enabled */ - password?: string; - }; - TagKeyDto: { - name: string; - }; - TagKeysRequest: { - keyIds: number[]; - tags: string[]; - }; - TagModel: { - /** Format: int64 */ - id: number; - name: string; - }; - TaskKeysResponse: { - keys: number[]; - }; - TaskModel: { - agency?: components["schemas"]["TranslationAgencySimpleModel"]; - assignees: components["schemas"]["SimpleUserAccountModel"][]; - author?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - baseCharacterCount: number; - /** Format: int64 */ - baseWordCount: number; - /** Format: int64 */ - closedAt?: number; - /** Format: int64 */ - createdAt?: number; - description: string; - /** Format: int64 */ - doneItems: number; - /** Format: int64 */ - dueDate?: number; - language: components["schemas"]["LanguageModel"]; - name?: string; - /** Format: int64 */ - number: number; - /** @enum {string} */ - state: "NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED"; - /** Format: int64 */ - totalItems: number; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - }; - TaskPerUserReportModel: { - /** Format: int64 */ - baseCharacterCount: number; - /** Format: int64 */ - baseWordCount: number; - /** Format: int64 */ - doneItems: number; - user: components["schemas"]["SimpleUserAccountModel"]; - }; - TaskWithProjectModel: { - agency?: components["schemas"]["TranslationAgencySimpleModel"]; - assignees: components["schemas"]["SimpleUserAccountModel"][]; - author?: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - baseCharacterCount: number; - /** Format: int64 */ - baseWordCount: number; - /** Format: int64 */ - closedAt?: number; - /** Format: int64 */ - createdAt?: number; - description: string; - /** Format: int64 */ - doneItems: number; - /** Format: int64 */ - dueDate?: number; - language: components["schemas"]["LanguageModel"]; - name?: string; - /** Format: int64 */ - number: number; - project: components["schemas"]["SimpleProjectModel"]; - /** @enum {string} */ - state: "NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED"; - /** Format: int64 */ - totalItems: number; - /** @enum {string} */ - type: "TRANSLATE" | "REVIEW"; - }; - TextNode: unknown; - TranslationAgencySimpleModel: { - avatar?: components["schemas"]["Avatar"]; - /** Format: int64 */ - id: number; - name: string; - url?: string; - }; - TranslationCommentDto: { - /** @enum {string} */ - state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; - text: string; - }; - TranslationCommentModel: { - /** @description User who created the comment */ - author: components["schemas"]["SimpleUserAccountModel"]; - /** - * Format: date-time - * @description Date when it was created - */ - createdAt: string; - /** - * Format: int64 - * @description Id of translation comment record - */ - id: number; - /** - * @description State of translation - * @enum {string} - */ - state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; - /** @description Text of comment */ - text: string; - /** - * Format: date-time - * @description Date when it was updated - */ - updatedAt: string; - }; - TranslationCommentWithLangKeyDto: { - /** Format: int64 */ - keyId: number; - /** Format: int64 */ - languageId: number; - /** @enum {string} */ - state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; - text: string; - }; - TranslationHistoryModel: { - /** @description Author of the change */ - author?: components["schemas"]["SimpleUserAccountModel"]; - /** @description Modified fields */ - modifications?: { - [key: string]: components["schemas"]["PropertyModification"]; - }; - /** @enum {string} */ - revisionType: "ADD" | "MOD" | "DEL"; - /** - * Format: int64 - * @description Unix timestamp of the revision - */ - timestamp: number; - }; - TranslationItemModel: { - contextDescription?: string; - output: string; - }; - TranslationLabelRequest: { - /** Format: int64 */ - keyId: number; - /** Format: int64 */ - labelId: number; - /** Format: int64 */ - languageId: number; - }; - TranslationMemoryItemModel: { - baseText: string; - keyName: string; - /** Format: float */ - similarity: number; - targetText: string; - }; - TranslationModel: { - /** @description Was translated using Translation Memory or Machine translation service? */ - auto: boolean; - /** - * Format: int64 - * @description Id of translation record - */ - id: number; - /** - * @description Which machine translation service was used to auto translate this - * @enum {string} - */ - mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - /** @description Whether base language translation was changed after this translation was updated */ - outdated: boolean; - /** - * @description State of translation - * @enum {string} - */ - state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; - /** @description Translation text */ - text?: string; - }; - TranslationSuggestionAcceptResponse: { - accepted: components["schemas"]["TranslationSuggestionModel"]; - declined: number[]; - }; - TranslationSuggestionModel: { - author: components["schemas"]["SimpleUserAccountModel"]; - /** Format: date-time */ - createdAt: string; - /** Format: int64 */ - id: number; - isPlural: boolean; - /** Format: int64 */ - keyId: number; - /** Format: int64 */ - languageId: number; - /** @enum {string} */ - state: "ACTIVE" | "ACCEPTED" | "DECLINED"; - translation?: string; - /** Format: date-time */ - updatedAt: string; - }; - TranslationSuggestionSimpleModel: { - author: components["schemas"]["SimpleUserAccountModel"]; - /** Format: int64 */ - id: number; - isPlural: boolean; - /** @enum {string} */ - state: "ACTIVE" | "ACCEPTED" | "DECLINED"; - translation?: string; - }; - TranslationViewModel: { - /** - * Format: int64 - * @description Number of active suggestions - */ - activeSuggestionCount: number; - /** @description Was translated using Translation Memory or Machine translation service? */ - auto: boolean; - /** - * Format: int64 - * @description Count of translation comments - */ - commentCount: number; - /** @description Was translation memory used to translate this? */ - fromTranslationMemory: boolean; - /** - * Format: int64 - * @description Id of translation record - */ - id?: number; - /** @description Labels assigned to this translation */ - labels?: components["schemas"]["LabelModel"][]; - /** - * @description Which machine translation service was used to auto translate this - * @enum {string} - */ - mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; - /** @description Whether base language translation was changed after this translation was updated */ - outdated: boolean; - /** - * @description State of translation - * @enum {string} - */ - state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; - /** @description First suggestion */ - suggestions?: components["schemas"]["TranslationSuggestionSimpleModel"][]; - /** @description Translation text */ - text?: string; - /** - * Format: int64 - * @description Number of all suggestions - */ - totalSuggestionCount: number; - /** - * Format: int64 - * @description Count of unresolved translation comments - */ - unresolvedCommentCount: number; - }; - TranslationWithCommentModel: { - comment: components["schemas"]["TranslationCommentModel"]; - translation: components["schemas"]["TranslationModel"]; - }; - UntagKeysRequest: { - keyIds: number[]; - tags: string[]; - }; - UpdateGlossaryRequest: { - /** @description Projects assigned to glossary; when null, assigned projects will be kept unchanged. */ - assignedProjectIds?: number[]; - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - baseLanguageTag: string; - /** - * @description Glossary name - * @example My glossary - */ - name: string; - }; - UpdateGlossaryTermTranslationRequest: { - /** - * @description Language tag according to BCP 47 definition - * @example cs-CZ - */ - languageTag: string; - /** - * @description Translation text - * @example Translated text to language of languageTag - */ - text: string; - }; - UpdateGlossaryTermWithTranslationRequest: { - description?: string; - /** @description Specifies whether the term represents a shortened form of a word or phrase */ - flagAbbreviation?: boolean; - /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ - flagCaseSensitive?: boolean; - /** @description When true, marks this term as prohibited or not recommended for use in translations */ - flagForbiddenTerm?: boolean; - /** @description When true, this term will have the same translation across all target languages */ - flagNonTranslatable?: boolean; - text?: string; - }; - UpdateNamespaceDto: { - name: string; - }; - UpdatePatDto: { - /** @description New description of the PAT */ - description: string; - }; - UpdateTaskKeyRequest: { - done: boolean; - }; - UpdateTaskKeyResponse: { - /** @description Task key is marked as done */ - done: boolean; - /** @description Task progress is 100% */ - taskFinished: boolean; - }; - UpdateTaskKeysRequest: { - /** @description Keys to add to task */ - addKeys?: number[]; - /** @description Keys to remove from task */ - removeKeys?: number[]; - }; - UpdateTaskRequest: { - assignees: number[]; - description: string; - /** - * Format: int64 - * @description Due to date in epoch format (milliseconds). - * @example 1661172869000 - */ - dueDate?: number; - name?: string; - }; - UploadedImageModel: { - /** Format: date-time */ - createdAt: string; - fileUrl: string; - filename: string; - /** Format: int64 */ - id: number; - location?: string; - requestFilename: string; - }; - UsageModel: { - /** @description Relevant for invoices only. When there are applied stripe credits, we need to reduce the total price by this amount. */ - appliedStripeCredits?: number; - credits?: components["schemas"]["SumUsageItemModel"]; - keys: components["schemas"]["AverageProportionalUsageItemModel"]; - seats: components["schemas"]["AverageProportionalUsageItemModel"]; - subscriptionPrice?: number; - total: number; - translations: components["schemas"]["AverageProportionalUsageItemModel"]; - }; - UsedNamespaceModel: { - /** - * Format: int64 - * @description The id of namespace. Null for default namespace. - * @example 10000048 - */ - id?: number; - /** - * @description Name of namespace. Null if default. - * @example homepage - */ - name?: string; - }; - UserAccountInProjectModel: { - avatar?: components["schemas"]["Avatar"]; - /** - * @description Actual user's permissions on selected project. You can not sort data by this column! - * @example EDIT - */ - computedPermission: components["schemas"]["ComputedPermissionModel"]; - directPermission?: components["schemas"]["PermissionWithAgencyModel"]; - /** Format: int64 */ - id: number; - mfaEnabled: boolean; - name?: string; - organizationBasePermission: components["schemas"]["PermissionModel"]; - /** @enum {string} */ - organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - username: string; - }; - UserAccountModel: { - avatar?: components["schemas"]["Avatar"]; - deleted: boolean; - disabled: boolean; - emailAwaitingVerification?: string; - /** @enum {string} */ - globalServerRole: "USER" | "ADMIN" | "SUPPORTER"; - /** Format: int64 */ - id: number; - mfaEnabled: boolean; - name?: string; - username: string; - }; - UserAccountWithOrganizationRoleModel: { - avatar?: components["schemas"]["Avatar"]; - /** Format: int64 */ - id: number; - mfaEnabled: boolean; - name: string; - /** @enum {string} */ - organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; - projectsWithDirectPermission: components["schemas"]["SimpleProjectModel"][]; - username: string; - }; - UserMfaRecoveryRequestDto: { - password: string; - }; - UserPreferencesModel: { - language?: string; - /** Format: int64 */ - preferredOrganizationId?: number; - }; - UserTotpDisableRequestDto: { - password: string; - }; - UserTotpEnableRequestDto: { - otp: string; - password: string; - totpKey: string; - }; - UserUpdatePasswordRequestDto: { - currentPassword: string; - password: string; - }; - UserUpdateRequestDto: { - /** @description Callback url for link sent in e-mail. This may be omitted, when server has set frontEndUrl in properties. */ - callbackUrl?: string; - currentPassword?: string; - email: string; - name: string; - }; - V2EditApiKeyDto: { - description?: string; - scopes: string[]; - }; - VariablesResponseDto: { - data: components["schemas"]["PromptVariableDto"][]; - }; - WebhookConfigModel: { - /** - * Format: int64 - * @description Date of the first failed webhook request. If the last webhook request is successful, this value is set to null. - */ - firstFailed?: number; - /** Format: int64 */ - id: number; - /** - * Format: int64 - * @description Date of the last webhook request. - */ - lastExecuted?: number; - url: string; - webhookSecret: string; - }; - WebhookConfigRequest: { - url: string; - }; - WebhookTestResponse: { - success: boolean; - }; - WorkspaceModel: { - /** Format: int64 */ - id: number; - slackTeamId: string; - slackTeamName: string; - }; - }; -} - -export interface operations { - /** Exports data as ZIP of jsons */ - doExportJsonZip: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/zip": components["schemas"]["StreamingResponseBody"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns URL which can be used to authenticate user using third party SSO service */ - getAuthenticationUrl: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SsoUrlResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DomainRequest"]; - }; - }; - }; - /** Authenticates user using third party oAuth service */ - authenticateUser_1: { - parameters: { - path: { - serviceType: string; - }; - query: { - code?: string; - redirect_uri?: string; - invitationCode?: string; - domain?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getPublicConfiguration: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PublicConfigurationDTO"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - authenticateUser: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LoginRequest"]; - }; - }; - }; - invitationInfo: { - parameters: { - path: { - code: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PublicInvitationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - resetPasswordRequest: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ResetPasswordRequest"]; - }; - }; - }; - /** Checks the password reset code from e-mail */ - resetPasswordSet: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ResetPassword"]; - }; - }; - }; - resetPasswordValidate: { - parameters: { - path: { - code: string; - email: string; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** When E-mail verification is enabled, null is returned. Otherwise JWT token is provided. */ - signUp: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SignUpDto"]; - }; - }; - }; - validateEmail: { - responses: { - /** OK */ - 200: { - content: { - "application/json": boolean; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TextNode"]; - }; - }; - }; - /** It checks whether the code from email is valid */ - verifyEmail: { - parameters: { - path: { - userId: number; - code: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all chunk execution items currently in the batch job queue */ - getBatchJobQueue: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelQueueItemModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getOrganizations: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelOrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns current project batch job locks from Redis or local storage based on configuration */ - getProjectLocks: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelProjectLockModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getUsers: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelUserAccountModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - deleteUser: { - parameters: { - path: { - userId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Disables user account. User will not be able to log in, but their user data will be preserved, so you can enable the user later using the `enable` endpoint. */ - disableUser: { - parameters: { - path: { - userId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Enables previously disabled user. */ - enableUser: { - parameters: { - path: { - userId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Generates a JWT token for the user with provided ID. This is useful, when need to debug of the user's account. Or when an operation is required to be executed on behalf of the user. */ - generateUserToken: { - parameters: { - path: { - userId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": string; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Set's the global role on the Tolgee Platform server. */ - setRole: { - parameters: { - path: { - userId: number; - role: "USER" | "ADMIN" | "SUPPORTER"; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns the latest announcement for the currently authenticated user */ - getLatest: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["AnnouncementDto"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Dismisses the latest announcement for the currently authenticated user */ - dismiss: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - allByUser: { - parameters: { - query: { - pageable: components["schemas"]["Pageable"]; - filterProjectId?: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelApiKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Creates new API key with provided scopes */ - create_16: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["RevealedApiKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateApiKeyDto"]; - }; - }; - }; - getScopes: { - responses: { - /** OK */ - 200: { - content: { - "application/json": string; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns info the API key which user currently authenticated with. Otherwise responds with 400 status code. */ - getCurrent_1: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ApiKeyWithLanguagesModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns current PAK or PAT permissions for current user, api-key and project */ - getCurrentPermissions: { - parameters: { - query: { - /** Required when using with PAT */ - projectId?: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ApiKeyPermissionsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_11: { - parameters: { - path: { - apiKeyId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ApiKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["V2EditApiKeyDto"]; - }; - }; - }; - delete_10: { - parameters: { - path: { - apiKeyId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - regenerate_1: { - parameters: { - path: { - apiKeyId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["RevealedApiKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["RegenerateApiKeyDto"]; - }; - }; - }; - /** Returns specific API key info */ - get_24: { - parameters: { - path: { - keyId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ApiKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getCurrentAuthProvider: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["AuthProviderDto"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - deleteCurrentAuthProvider: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getChangedAuthProvider: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["AuthProviderDto"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - acceptChangeAuthProvider: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["AcceptAuthProviderChangeRequest"]; - }; - }; - }; - rejectChangeAuthProvider: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getUsage_1: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CurrentUsageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getInfo_5: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["EeSubscriptionModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Get info about the upcoming EE subscription. This will show, how much the subscription will cost when key is applied. */ - prepareSetLicenseKey: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PrepareSetEeLicenceKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetLicenseKeyDto"]; - }; - }; - }; - /** This will refresh the subscription information from the license server and update the subscription info. */ - refreshSubscription: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["EeSubscriptionModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** This will remove the licence key from the instance. */ - release: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setLicenseKey: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["EeSubscriptionModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetLicenseKeyDto"]; - }; - }; - }; - upload: { - responses: { - /** Created */ - 201: { - content: { - "*/*": components["schemas"]["UploadedImageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "multipart/form-data": { - /** Format: binary */ - image: string; - info?: components["schemas"]["ImageUploadInfoDto"]; - }; - }; - }; - }; - delete_16: { - parameters: { - path: { - ids: number[]; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - acceptInvitation: { - parameters: { - path: { - code: string; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - acceptInvitationPut: { - parameters: { - path: { - code: string; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - deleteInvitation: { - parameters: { - path: { - invitationId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getNotifications: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; + "/api/project/{projectId}/export/jsonZip": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * Filter by the `seen` parameter. - * - * no value = request everything - * - * true = only seen - * - * false = only unseen + * Export to ZIP of jsons + * @deprecated + * @description Exports data as ZIP of jsons */ - filterSeen?: boolean; - cursor?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelWithNextCursorNotificationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns notification settings of the currently logged in user */ - getNotificationsSettings: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["NotificationSettingModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Saves new value for given parameters */ - putNotificationSetting: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["NotificationSettingsRequest"]; - }; - }; - }; - markNotificationsAsSeen: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["NotificationsMarkSeenRequest"]; - }; - }; - }; - /** Returns all organizations, which is current user allowed to view */ - getAll_10: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - filterCurrentUserOwner: boolean; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelOrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_13: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["OrganizationDto"]; - }; - }; - }; - get_15: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_10: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["OrganizationDto"]; - }; - }; - }; - /** Deletes organization and all its data including projects */ - delete_9: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - uploadAvatar_2: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "multipart/form-data": { - /** Format: binary */ - avatar: string; - }; - }; - }; - }; - removeAvatar_2: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Generates invitation link for organization, so users can join organization. The invitation can also be sent to an e-mail address. */ - inviteUser_1: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["OrganizationInvitationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["OrganizationInviteUserDto"]; - }; - }; - }; - /** Remove current user from organization */ - leaveOrganization: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all organization projects the user has access to */ - getAllProjects_1: { - parameters: { - path: { - id: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all users in organization. The result also contains users who are only members of projects in the organization. */ - getAllUsers_1: { - parameters: { - path: { - id: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelUserAccountWithOrganizationRoleModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all base languages in use by projects owned by specified organization */ - getAllBaseLanguagesInUse: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - projectIds?: number[]; - }; - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelOrganizationLanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAll_12: { - parameters: { - path: { - organizationId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelSimpleGlossaryModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_14: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["GlossaryModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateGlossaryRequest"]; - }; - }; - }; - getAllWithStats: { - parameters: { - path: { - organizationId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelSimpleGlossaryWithStatsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - get_13: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["GlossaryModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_8: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["GlossaryModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateGlossaryRequest"]; - }; - }; - }; - delete_7: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAssignedProjects: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelSimpleProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - export: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["StreamingResponseBody"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - importCsv: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - query: { - removeExistingTerms?: boolean; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["GlossaryImportResult"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "multipart/form-data": { - /** Format: binary */ - file: string; - }; - }; - }; - }; - getLanguages: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelGlossaryLanguageDto"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAll_13: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - languageTags?: string[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelSimpleGlossaryTermModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_15: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CreateUpdateGlossaryTermResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateGlossaryTermWithTranslationRequest"]; - }; - }; - }; - deleteMultiple: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DeleteMultipleGlossaryTermsRequest"]; - }; - }; - }; - get_14: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - termId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["GlossaryTermModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_9: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - termId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CreateUpdateGlossaryTermResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateGlossaryTermWithTranslationRequest"]; - }; - }; - }; - delete_8: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - termId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_12: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - termId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["GlossaryTermTranslationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateGlossaryTermTranslationRequest"]; - }; - }; - }; - get_23: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - termId: number; - languageTag: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["GlossaryTermTranslationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAllIds: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - query: { - search?: string; - languageTags?: string[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLong"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAllWithTranslations: { - parameters: { - path: { - organizationId: number; - glossaryId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - languageTags?: string[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelSimpleGlossaryTermWithTranslationsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getInvitations: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelOrganizationInvitationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all languages in use by projects owned by specified organization */ - getAllLanguagesInUse: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - projectIds?: number[]; - }; - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelOrganizationLanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAll_11: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLlmProviderModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - createProvider: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LlmProviderModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LlmProviderRequest"]; - }; - }; - }; - /** Combines llm providers from organization-specific and server-configured */ - getAvailableProviders: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLlmProviderSimpleModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getServerProviders: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLlmProviderSimpleModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - updateProvider: { - parameters: { - path: { - organizationId: number; - providerId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LlmProviderModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LlmProviderRequest"]; - }; - }; - }; - deleteProvider: { - parameters: { - path: { - organizationId: number; - providerId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns machine translation credit balance for organization */ - getOrganizationCredits: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CreditBalanceModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all projects (including statistics) where current user has any permission (except none) */ - getAllWithStatistics_2: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Set default granular (scope-based) permissions for organization users, who don't have direct project permissions set. */ - setBasePermissions: { - parameters: { - path: { - organizationId: number; - }; - query: { - /** Granted scopes to all projects for all organization users without direct project permissions set. */ - scopes: string[]; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sets default (level-based) permission for organization */ - setBasePermissions_1: { - parameters: { - path: { - organizationId: number; - permissionType: - | "NONE" - | "VIEW" - | "TRANSLATE" - | "REVIEW" - | "EDIT" - | "MANAGE"; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** - * This endpoint allows the owner of an organization to connect a Slack workspace to their organization. - * Checks if the Slack integration feature is enabled for the organization and proceeds with the connection. - */ - connectWorkspace: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ConnectToSlackDto"]; - }; - }; - }; - /** Returns URL to which user should be redirected to connect Slack workspace */ - connectToSlack: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ConnectToSlackUrlModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns a list of workspaces connected to the organization */ - getConnectedWorkspaces: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelWorkspaceModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Disconnects a workspace from the organization */ - disconnectWorkspace: { - parameters: { - path: { - workspaceId: number; - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - findProvider: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SsoTenantModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setProvider: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SsoTenantModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateProviderRequest"]; - }; - }; - }; - getUsage: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PublicUsageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Remove user from organization. If user is managed by the organization, their account is disabled instead. */ - removeUser: { - parameters: { - path: { - organizationId: number; - userId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sets user role in organization. Owner or Member. */ - setUserRole: { - parameters: { - path: { - organizationId: number; - userId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetOrganizationRoleDto"]; - }; - }; - }; - get_22: { - parameters: { - path: { - slug: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["OrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all organization projects the user has access to */ - getAllProjects: { - parameters: { - path: { - slug: string; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all projects (including statistics) where current user has any permission (except none) */ - getAllWithStatistics_1: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - path: { - slug: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAll_9: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelPatModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_12: { - responses: { - /** Created */ - 201: { - content: { - "*/*": components["schemas"]["RevealedPatModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreatePatDto"]; - }; - }; - }; - /** Returns current Personal Access Token. If the request is not authenticated with a Personal Access Token, it will return 400 response status. */ - getCurrent: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PatWithUserModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - get_12: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PatModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Updates Personal Access Token */ - update_7: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PatModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdatePatDto"]; - }; - }; - }; - /** Deletes Personal Access Token */ - delete_6: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Regenerates Personal Access Token. It generates new token value and updates its time of expiration. */ - regenerate: { - parameters: { - path: { - id: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["RevealedPatModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["RegeneratePatDto"]; - }; - }; - }; - /** Returns preferred organization. If server allows users to create organization, preferred organization is automatically created if user doesn't have access to any organization. */ - getPreferred: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PrivateOrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all projects where current user has any permission */ - getAll: { - parameters: { - query: { - /** Filter projects by id */ - filterId?: number[]; - /** Filter projects without id */ - filterNotId?: number[]; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Creates a new project with languages and initial settings. */ - createProject: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateProjectRequest"]; - }; - }; - }; - /** Returns all projects (including statistics) where current user has any permission */ - getAllWithStatistics: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - get_2: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - editProject: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["EditProjectRequest"]; - }; - }; - }; - deleteProject: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getActivity: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelProjectActivityModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getSingleRevision: { - parameters: { - path: { - revisionId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectActivityModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getModifiedEntitiesByRevision: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - /** Filters results by specific entity class */ - filterEntityClass?: string[]; - }; - path: { - revisionId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelModifiedEntityModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAiPlaygroundResult: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelAiPlaygroundResultModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["AiPlaygroundResultRequest"]; - }; - }; - }; - getPromptProjectCustomization: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectAiPromptCustomizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setPromptProjectCustomization: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectAiPromptCustomizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetProjectPromptCustomizationRequest"]; - }; - }; - }; - getAllKeys: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** - * Returns all project key with any disabled language. - * - * If key has no disabled language, it is not returned. - */ - getDisabledLanguages_2: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelKeyDisabledLanguagesModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all API keys for specified project */ - allByProject: { - parameters: { - query: { - pageable: components["schemas"]["Pageable"]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelApiKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns default auto translation settings for project (deprecated: use per language config with null language id) */ - getAutoTranslationSettings: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["AutoTranslationConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sets default auto-translation settings for project (deprecated: use per language config with null language id) */ - setAutoTranslationSettings: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["AutoTranslationConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["AutoTranslationSettingsDto"]; - }; - }; - }; - uploadAvatar_1: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "multipart/form-data": { - /** Format: binary */ - avatar: string; - }; - }; - }; - }; - removeAvatar_1: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - list_3: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelBatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - get_20: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Stops batch operation if possible. */ - cancel: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Stores a bigMeta for a project */ - store_2: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["BigMetaDto"]; - }; - }; - }; - all: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - activeOnly?: boolean; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelBranchModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_11: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BranchModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateBranchModel"]; - }; - }; - }; - getBranchMerges: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelBranchMergeModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - dryRunMerge: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BranchMergeRefModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DryRunMergeBranchRequest"]; - }; - }; - }; - deleteBranchMerge: { - parameters: { - path: { - mergeId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - merge: { - parameters: { - path: { - mergeId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getBranchMergeSessionChanges: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - type?: "ADD" | "UPDATE" | "DELETE" | "CONFLICT"; - }; - path: { - mergeId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelBranchMergeChangeModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getBranchMergeSessionConflicts: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - mergeId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelBranchMergeConflictModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getBranchMergeSessionPreview: { - parameters: { - path: { - mergeId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BranchMergeModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - refreshBranchMerge: { - parameters: { - path: { - mergeId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BranchMergeModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - resolveConflict: { - parameters: { - path: { - mergeId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ResolveBranchMergeConflictRequest"]; - }; - }; - }; - resolveAllConflicts: { - parameters: { - path: { - mergeId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ResolveAllBranchMergeConflictsRequest"]; - }; - }; - }; - delete_15: { - parameters: { - path: { - branchId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - list_2: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelContentDeliveryConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_10: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ContentDeliveryConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentDeliveryConfigRequest"]; - }; - }; - }; - get_11: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ContentDeliveryConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_6: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ContentDeliveryConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentDeliveryConfigRequest"]; - }; - }; - }; - /** Immediately publishes content to the configured Content Delivery */ - post: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - delete_5: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - list_1: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelContentStorageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_9: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ContentStorageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentStorageRequest"]; - }; - }; - }; - test_1: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["StorageTestResult"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentStorageRequest"]; - }; - }; - }; - get_10: { - parameters: { - path: { - contentStorageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ContentStorageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_5: { - parameters: { - path: { - contentStorageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ContentStorageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentStorageRequest"]; - }; - }; - }; - delete_4: { - parameters: { - path: { - contentStorageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Tests existing Content Storage with new configuration. (Uses existing secrets, if nulls provided) */ - testExisting: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["StorageTestResult"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ContentStorageRequest"]; - }; - }; - }; - /** Returns all running and pending batch operations. Completed batch operations are returned only if they are not older than 1 hour. If user doesn't have permission to view all batch operations, only their operations are returned. */ - currentJobs: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelBatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** - * Exports project data in various formats (JSON, properties, YAML, etc.). - * - * ## HTTP Conditional Requests Support - * - * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: - * - * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date - * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value - * - **Data not modified**: Returns HTTP 304 Not Modified with empty body - * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header - * - * The Last-Modified header in the response contains the timestamp of the last project modification, - * and the ETag header contains a unique identifier for the current project state. Both can be used - * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. - * - * Cache-Control header is set to max-age=0 to ensure validation on each request. - */ - exportData: { - parameters: { - query: { + get: operations["doExportJsonZip"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/authorize_oauth/sso/authentication-url": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; /** - * Languages to be contained in export. - * - * If null, all languages are exported + * Generate authentication url (third-party, SSO) + * @description Returns URL which can be used to authenticate user using third party SSO service */ - languages?: string[]; - /** Format to export to */ - format: - | "JSON" - | "JSON_TOLGEE" - | "XLIFF" - | "PO" - | "APPLE_STRINGS_STRINGSDICT" - | "APPLE_XLIFF" - | "ANDROID_XML" - | "COMPOSE_XML" - | "FLUTTER_ARB" - | "PROPERTIES" - | "YAML_RUBY" - | "YAML" - | "JSON_I18NEXT" - | "CSV" - | "RESX_ICU" - | "XLSX" - | "APPLE_XCSTRINGS" - | "ANDROID_SDK" - | "APPLE_SDK"; + post: operations["getAuthenticationUrl"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/authorize_oauth/{serviceType}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * Delimiter to structure file content. - * - * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. - * - * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), - * specific formats like `YAML_RUBY` don't honor this parameter. + * Authenticate user (third-part, oAuth) + * @description Authenticates user using third party oAuth service */ - structureDelimiter?: string; - /** Filter key IDs to be contained in export */ - filterKeyId?: number[]; - /** Filter key IDs not to be contained in export */ - filterKeyIdNot?: number[]; + get: operations["authenticateUser_1"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/configuration": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get server configuration */ + get: operations["getPublicConfiguration"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/generatetoken": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Generate JWT token */ + post: operations["authenticateUser"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/invitation_info/{code}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Info about invitation */ + get: operations["invitationInfo"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/reset_password_request": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Request password reset */ + post: operations["resetPasswordRequest"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/reset_password_set": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; /** - * Filter keys tagged by. - * - * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. + * Set a new password + * @description Checks the password reset code from e-mail */ - filterTag?: string; - /** Filter keys tagged by one of provided tags */ - filterTagIn?: string[]; - /** Filter keys not tagged by one of provided tags */ - filterTagNotIn?: string[]; - /** Filter keys with prefix */ - filterKeyPrefix?: string; - /** Filter translations with state. By default, all states except untranslated is exported. */ - filterState?: ( - | "UNTRANSLATED" - | "TRANSLATED" - | "REVIEWED" - | "DISABLED" - )[]; - /** Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ - filterNamespace?: string[]; + post: operations["resetPasswordSet"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/reset_password_validate/{email}/{code}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Validate password-resetting key */ + get: operations["resetPasswordValidate"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/sign_up": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Create new user account (Sign Up) + * @description When E-mail verification is enabled, null is returned. Otherwise JWT token is provided. + */ + post: operations["signUp"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/validate_email": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Validate if email is not in use */ + post: operations["validateEmail"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/api/public/verify_email/{userId}/{code}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * If false, it doesn't return zip of files, but it returns single file. + * Set user account as verified + * @description It checks whether the code from email is valid + */ + get: operations["verifyEmail"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/batch-job-queue": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get current batch job queue + * @description Returns all chunk execution items currently in the batch job queue + */ + get: operations["getBatchJobQueue"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/organizations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all server organizations */ + get: operations["getOrganizations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/project-batch-locks": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all project batch locks + * @description Returns current project batch job locks from Redis or local storage based on configuration + */ + get: operations["getProjectLocks"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/users": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all server users */ + get: operations["getUsers"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/users/{userId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** Delete user */ + delete: operations["deleteUser"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/users/{userId}/disable": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Disable user + * @description Disables user account. User will not be able to log in, but their user data will be preserved, so you can enable the user later using the `enable` endpoint. + */ + put: operations["disableUser"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/users/{userId}/enable": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Enable user + * @description Enables previously disabled user. + */ + put: operations["enableUser"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/users/{userId}/generate-token": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Geneate user's JWT token + * @description Generates a JWT token for the user with provided ID. This is useful, when need to debug of the user's account. Or when an operation is required to be executed on behalf of the user. + */ + get: operations["generateUserToken"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/administration/users/{userId}/set-role/{role}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Set Role + * @description Set's the global role on the Tolgee Platform server. + */ + put: operations["setRole"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/announcement": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get announcement + * @description Returns the latest announcement for the currently authenticated user + */ + get: operations["getLatest"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/announcement/dismiss": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Dismiss announcement + * @description Dismisses the latest announcement for the currently authenticated user + */ + post: operations["dismiss"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/api-keys": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all user's API keys */ + get: operations["allByUser"]; + put?: never; + /** + * Create API key + * @description Creates new API key with provided scopes + */ + post: operations["create_16"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/api-keys/availableScopes": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Returns API key scopes for every permission type */ + get: operations["getScopes"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/api-keys/current": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get current API key info + * @description Returns info the API key which user currently authenticated with. Otherwise responds with 400 status code. + */ + get: operations["getCurrent_1"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/api-keys/current-permissions": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get current permission info + * @description Returns current PAK or PAT permissions for current user, api-key and project + */ + get: operations["getCurrentPermissions"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/api-keys/{apiKeyId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Update API key */ + put: operations["update_11"]; + post?: never; + /** Delete API key */ + delete: operations["delete_10"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/api-keys/{apiKeyId}/regenerate": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Regenerates API key. It generates new API key value and updates its time of expiration. */ + put: operations["regenerate_1"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/api-keys/{keyId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get one API key + * @description Returns specific API key info + */ + get: operations["get_24"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/auth-provider": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get current third party authentication provider */ + get: operations["getCurrentAuthProvider"]; + put?: never; + post?: never; + /** Initiate provider change to remove current third party authentication provider */ + delete: operations["deleteCurrentAuthProvider"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/auth-provider/change": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get info about authentication provider which can replace the current one */ + get: operations["getChangedAuthProvider"]; + put?: never; + /** Accept change of the third party authentication provider */ + post: operations["acceptChangeAuthProvider"]; + /** Reject change of the third party authentication provider */ + delete: operations["rejectChangeAuthProvider"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/ee-current-subscription-usage": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get current usage for the current EE subscription */ + get: operations["getUsage_1"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/ee-license/info": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get the info about the current EE subscription */ + get: operations["getInfo_5"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/ee-license/prepare-set-license-key": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Get info before applying the license key + * @description Get info about the upcoming EE subscription. This will show, how much the subscription will cost when key is applied. + */ + post: operations["prepareSetLicenseKey"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/ee-license/refresh": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Refresh the EE subscription + * @description This will refresh the subscription information from the license server and update the subscription info. + */ + put: operations["refreshSubscription"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/ee-license/release-license-key": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Remove the EE licence key + * @description This will remove the licence key from the instance. + */ + put: operations["release"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/ee-license/set-license-key": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Sets the EE licence key */ + put: operations["setLicenseKey"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/image-upload": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Upload an image for later use */ + post: operations["upload"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/image-upload/{ids}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** Delete uploaded images */ + delete: operations["delete_16"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/invitations/{code}/accept": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Accepts invitation to project or organization (deprecated: use PUT method instead) + * @deprecated + */ + get: operations["acceptInvitation"]; + /** Accepts invitation to project or organization */ + put: operations["acceptInvitationPut"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/invitations/{invitationId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** Deletes invitation by ID */ + delete: operations["deleteInvitation"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/notification": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Gets notifications of the currently logged in user, newest is first. */ + get: operations["getNotifications"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/notification-settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get notification settings + * @description Returns notification settings of the currently logged in user + */ + get: operations["getNotificationsSettings"]; + /** + * Save notification setting + * @description Saves new value for given parameters + */ + put: operations["putNotificationSetting"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/notifications-mark-seen": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Marks notifications of the currently logged in user with given IDs as seen. */ + put: operations["markNotificationsAsSeen"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all permitted organizations + * @description Returns all organizations, which is current user allowed to view + */ + get: operations["getAll_10"]; + put?: never; + /** Create organization */ + post: operations["create_13"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one organization */ + get: operations["get_15"]; + /** Update organization data */ + put: operations["update_10"]; + post?: never; + /** + * Delete organization + * @description Deletes organization and all its data including projects + */ + delete: operations["delete_9"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{id}/avatar": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Upload organizations avatar */ + put: operations["uploadAvatar_2"]; + post?: never; + /** Delete organization avatar */ + delete: operations["removeAvatar_2"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{id}/invite": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Generate invitation link for organization + * @description Generates invitation link for organization, so users can join organization. The invitation can also be sent to an e-mail address. + */ + put: operations["inviteUser_1"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{id}/leave": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Leave organization + * @description Remove current user from organization + */ + put: operations["leaveOrganization"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{id}/projects": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all accessible projects (by ID) + * @description Returns all organization projects the user has access to + */ + get: operations["getAllProjects_1"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{id}/users": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all users in organization + * @description Returns all users in organization. The result also contains users who are only members of projects in the organization. + */ + get: operations["getAllUsers_1"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/base-languages": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all base languages in use by projects owned by specified organization + * @description Returns all base languages in use by projects owned by specified organization + */ + get: operations["getAllBaseLanguagesInUse"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all organization glossaries */ + get: operations["getAll_12"]; + put?: never; + /** Create glossary */ + post: operations["create_14"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries-with-stats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all organization glossaries with some additional statistics */ + get: operations["getAllWithStats"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get glossary */ + get: operations["get_13"]; + /** Update glossary */ + put: operations["update_8"]; + post?: never; + /** Delete glossary */ + delete: operations["delete_7"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/assigned-projects": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all projects assigned to glossary */ + get: operations["getAssignedProjects"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/export": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Export glossary terms as CSV */ + get: operations["export"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/import": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Import glossary terms from CSV */ + post: operations["importCsv"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/languages": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all languages in use by the glossary */ + get: operations["getLanguages"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all glossary terms */ + get: operations["getAll_13"]; + put?: never; + /** Create a new glossary term */ + post: operations["create_15"]; + /** Batch delete multiple terms */ + delete: operations["deleteMultiple"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get glossary term */ + get: operations["get_14"]; + /** Update glossary term */ + put: operations["update_9"]; + post?: never; + /** Delete glossary term */ + delete: operations["delete_8"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}/translations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Set a new glossary term translation for language */ + post: operations["update_12"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/terms/{termId}/translations/{languageTag}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get glossary term translation for language */ + get: operations["get_23"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/termsIds": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all glossary terms ids */ + get: operations["getAllIds"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/glossaries/{glossaryId}/termsWithTranslations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all glossary terms with translations */ + get: operations["getAllWithTranslations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/invitations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all invitations to organization */ + get: operations["getInvitations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/languages": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all languages in use by projects owned by specified organization + * @description Returns all languages in use by projects owned by specified organization + */ + get: operations["getAllLanguagesInUse"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/llm-providers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all organization-specific providers */ + get: operations["getAll_11"]; + put?: never; + /** Create organization-specific provider */ + post: operations["createProvider"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/llm-providers/all-available": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all available llm providers + * @description Combines llm providers from organization-specific and server-configured + */ + get: operations["getAvailableProviders"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/llm-providers/server-providers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all server-configured providers */ + get: operations["getServerProviders"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/llm-providers/{providerId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Update organization-specific provider */ + put: operations["updateProvider"]; + post?: never; + /** Delete organization-specific provider */ + delete: operations["deleteProvider"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/machine-translation-credit-balance": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get credit balance for organization + * @description Returns machine translation credit balance for organization + */ + get: operations["getOrganizationCredits"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/projects-with-stats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all projects with stats + * @description Returns all projects (including statistics) where current user has any permission (except none) + */ + get: operations["getAllWithStatistics_2"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/set-base-permissions": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Set organization base permission + * @description Set default granular (scope-based) permissions for organization users, who don't have direct project permissions set. + */ + put: operations["setBasePermissions"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/set-base-permissions/{permissionType}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Set organization base permission + * @description Sets default (level-based) permission for organization + */ + put: operations["setBasePermissions_1"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/slack/connect": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Connect Slack workspace to organization + * @description This endpoint allows the owner of an organization to connect a Slack workspace to their organization. + * Checks if the Slack integration feature is enabled for the organization and proceeds with the connection. + */ + post: operations["connectWorkspace"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/slack/get-connect-url": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get connect URL for Slack authentication + * @description Returns URL to which user should be redirected to connect Slack workspace + */ + get: operations["connectToSlack"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/slack/workspaces": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get connected workspaces + * @description Returns a list of workspaces connected to the organization + */ + get: operations["getConnectedWorkspaces"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/slack/workspaces/{workspaceId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** + * Disconnect workspace + * @description Disconnects a workspace from the organization + */ + delete: operations["disconnectWorkspace"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/sso": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get SSO Tenant configuration for organization */ + get: operations["findProvider"]; + /** Set SSO Tenant configuration for organization */ + put: operations["setProvider"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/usage": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get current organization usage */ + get: operations["getUsage"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/users/{userId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** + * Remove user from organization + * @description Remove user from organization. If user is managed by the organization, their account is disabled instead. + */ + delete: operations["removeUser"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{organizationId}/users/{userId}/set-role": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Set user role + * @description Sets user role in organization. Owner or Member. + */ + put: operations["setUserRole"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{slug}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get organization by slug */ + get: operations["get_22"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{slug}/projects": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all accessible projects (by slug) + * @description Returns all organization projects the user has access to + */ + get: operations["getAllProjects"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/organizations/{slug}/projects-with-stats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all projects with stats + * @description Returns all projects (including statistics) where current user has any permission (except none) + */ + get: operations["getAllWithStatistics_1"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/pats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get PAKs */ + get: operations["getAll_9"]; + put?: never; + /** Create PAK */ + post: operations["create_12"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/pats/current": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Return current PAK + * @description Returns current Personal Access Token. If the request is not authenticated with a Personal Access Token, it will return 400 response status. + */ + get: operations["getCurrent"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/pats/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one PAK */ + get: operations["get_12"]; + /** + * Update PAK + * @description Updates Personal Access Token + */ + put: operations["update_7"]; + post?: never; + /** + * Delete PAK + * @description Deletes Personal Access Token + */ + delete: operations["delete_6"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/pats/{id}/regenerate": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Regenerate PAK + * @description Regenerates Personal Access Token. It generates new token value and updates its time of expiration. + */ + put: operations["regenerate"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/preferred-organization": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get preferred organization + * @description Returns preferred organization. If server allows users to create organization, preferred organization is automatically created if user doesn't have access to any organization. + */ + get: operations["getPreferred"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all permitted + * @description Returns all projects where current user has any permission + */ + get: operations["getAll"]; + put?: never; + /** + * Create project + * @description Creates a new project with languages and initial settings. + */ + post: operations["createProject"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/with-stats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all with stats + * @description Returns all projects (including statistics) where current user has any permission + */ + get: operations["getAllWithStatistics"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one project */ + get: operations["get_2"]; + /** Update project settings */ + put: operations["editProject"]; + post?: never; + /** Delete project */ + delete: operations["deleteProject"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/activity": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get project activity */ + get: operations["getActivity"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/activity/revisions/{revisionId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one revision data */ + get: operations["getSingleRevision"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/activity/revisions/{revisionId}/modified-entities": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get modified entities in revision */ + get: operations["getModifiedEntitiesByRevision"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/ai-playground-result": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Get ai playground result */ + post: operations["getAiPlaygroundResult"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/ai-prompt-customization": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Returns project level prompt customization */ + get: operations["getPromptProjectCustomization"]; + /** Sets project level prompt customization */ + put: operations["setPromptProjectCustomization"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/all-keys": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all keys in project */ + get: operations["getAllKeys"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/all-keys-with-disabled-languages": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get disabled languages for all keys in project + * @description Returns all project key with any disabled language. * - * This is possible only when single language is exported. Otherwise it returns "400 - Bad Request" response. + * If key has no disabled language, it is not returned. + */ + get: operations["getDisabledLanguages_2"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/api-keys": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all project API keys + * @description Returns all API keys for specified project + */ + get: operations["allByProject"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/auto-translation-settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get default auto-translation settings for project + * @deprecated + * @description Returns default auto translation settings for project (deprecated: use per language config with null language id) + */ + get: operations["getAutoTranslationSettings"]; + /** + * Set default auto translation settings for project + * @deprecated + * @description Sets default auto-translation settings for project (deprecated: use per language config with null language id) + */ + put: operations["setAutoTranslationSettings"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/avatar": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Upload project avatar */ + put: operations["uploadAvatar_1"]; + post?: never; + /** Delete project avatar */ + delete: operations["removeAvatar_1"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/batch-jobs": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** List batch operations */ + get: operations["list_3"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/batch-jobs/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get batch operation */ + get: operations["get_20"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/batch-jobs/{id}/cancel": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Stop batch operation + * @description Stops batch operation if possible. + */ + put: operations["cancel"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/big-meta": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Store Big Meta + * @description Stores a bigMeta for a project + */ + post: operations["store_2"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all branches */ + get: operations["all"]; + put?: never; + /** Create branch */ + post: operations["create_11"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get branch merges */ + get: operations["getBranchMerges"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/preview": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Creates a merge, dry-runs source branch to target branch and return preview */ + post: operations["dryRunMerge"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** Delete branch merge session */ + delete: operations["deleteBranchMerge"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/apply": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Merge source branch to target branch */ + post: operations["merge"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/changes": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get branch merge session changes */ + get: operations["getBranchMergeSessionChanges"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/conflicts": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get branch merge session conflicts */ + get: operations["getBranchMergeSessionConflicts"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/preview": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get branch merge session preview */ + get: operations["getBranchMergeSessionPreview"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/refresh": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Refresh branch merge session preview */ + post: operations["refreshBranchMerge"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/resolve": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Resolve branch merge session conflicts */ + put: operations["resolveConflict"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/merge/{mergeId}/resolve-all": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Resolve all branch merge session conflicts */ + put: operations["resolveAllConflicts"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/branches/{branchId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Rename branch */ + post: operations["rename"]; + /** Delete branch */ + delete: operations["delete_13"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/content-delivery-configs": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** List existing Content Delivery Configs */ + get: operations["list_2"]; + put?: never; + /** Create Content Delivery Config */ + post: operations["create_10"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/content-delivery-configs/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one Content Delivery Config */ + get: operations["get_11"]; + /** Update Content Delivery Config */ + put: operations["update_6"]; + /** + * Publish to Content Delivery + * @description Immediately publishes content to the configured Content Delivery + */ + post: operations["post"]; + /** Delete Content Delivery Config */ + delete: operations["delete_5"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/content-storages": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** List Content Storages */ + get: operations["list_1"]; + put?: never; + /** Create Content Storage */ + post: operations["create_9"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/content-storages/test": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Test Content Storage settings */ + post: operations["test_1"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/content-storages/{contentStorageId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get Content Storage */ + get: operations["get_10"]; + /** Update Content Storage */ + put: operations["update_5"]; + post?: never; + /** Delete Content Storage */ + delete: operations["delete_4"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/content-storages/{id}/test": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Test existing Content Storage + * @description Tests existing Content Storage with new configuration. (Uses existing secrets, if nulls provided) + */ + post: operations["testExisting"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/current-batch-jobs": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all running and pending batch operations + * @description Returns all running and pending batch operations. Completed batch operations are returned only if they are not older than 1 hour. If user doesn't have permission to view all batch operations, only their operations are returned. */ - zip: boolean; + get: operations["currentJobs"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/export": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * Message format to be used for export. + * Export data + * @description + * Exports project data in various formats (JSON, properties, YAML, etc.). + * + * ## HTTP Conditional Requests Support * - * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: + * + * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date + * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value + * - **Data not modified**: Returns HTTP 304 Not Modified with empty body + * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header + * + * The Last-Modified header in the response contains the timestamp of the last project modification, + * and the ETag header contains a unique identifier for the current project state. Both can be used + * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. + * + * Cache-Control header is set to max-age=0 to ensure validation on each request. * - * This property is honored only for generic formats like JSON or YAML. - * For specific formats like `YAML_RUBY` it's ignored. */ - messageFormat?: - | "C_SPRINTF" - | "PHP_SPRINTF" - | "JAVA_STRING_FORMAT" - | "APPLE_SPRINTF" - | "RUBY_SPRINTF" - | "I18NEXT" - | "ICU" - | "PYTHON_PERCENT"; + get: operations["exportData"]; + put?: never; /** - * This is a template that defines the structure of the resulting .zip file content. + * Export data (post) + * @description + * Exports project data in various formats (JSON, properties, YAML, etc.). + * Useful when exceeding allowed URL size with GET requests. + * + * ## HTTP Conditional Requests Support + * + * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: * - * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, - * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date + * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value + * - **Data not modified**: Returns HTTP 304 Not Modified with empty body + * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header * - * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, - * the English translations of the `home` namespace will be stored in `home/en.json`. + * Note: This endpoint uses a custom implementation that returns 304 Not Modified for all HTTP methods + * (including POST) when conditional headers indicate the data hasn't changed. This differs from Spring's + * default behavior which returns 412 for POST requests, but is appropriate here since POST is used only + * to accommodate large request parameters, not to modify data. * - * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * The Last-Modified header in the response contains the timestamp of the last project modification, + * and the ETag header contains a unique identifier for the current project state. Both can be used + * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. + * + * Cache-Control header is set to max-age=0 to ensure validation on each request. * - * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` - * but in Android format. (e.g., en-rUS) */ - fileStructureTemplate?: string; + post: operations["exportPost"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/glossary-highlights": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Returns glossary term highlights for specified text */ + post: operations["getHighlights"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; /** - * If true, for structured formats (like JSON) arrays are supported. - * - * e.g. Key hello[0] will be exported as {"hello": ["..."]} + * Add files + * @description Prepares provided files to import. */ - supportArrays: boolean; + post: operations["addFiles"]; /** - * If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). - * - * e.g. Key hello will be exported as <b>hello</b> + * Delete + * @description Deletes prepared import data. */ - escapeHtml?: boolean; + delete: operations["cancelImport"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import-settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * Filter translations with branch. - * - * By default, default branch is exported. + * Get Import Settings + * @description Returns import settings for the authenticated user and the project. */ - filterBranch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** - * When multiple files are exported, they are zipped and returned as a single zip file. - * When a single file is exported, it is returned directly. - */ - 200: { - content: { - "application/*": unknown; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** - * Exports project data in various formats (JSON, properties, YAML, etc.). - * Useful when exceeding allowed URL size with GET requests. - * - * ## HTTP Conditional Requests Support - * - * This endpoint supports HTTP conditional requests using both If-Modified-Since and If-None-Match headers: - * - * - **If-Modified-Since header provided**: The server checks if the project data has been modified since the specified date - * - **If-None-Match header provided**: The server checks if the project data has changed by comparing the eTag value - * - **Data not modified**: Returns HTTP 304 Not Modified with empty body - * - **Data modified or no header**: Returns HTTP 200 OK with the exported data, Last-Modified header, and ETag header - * - * Note: This endpoint uses a custom implementation that returns 304 Not Modified for all HTTP methods - * (including POST) when conditional headers indicate the data hasn't changed. This differs from Spring's - * default behavior which returns 412 for POST requests, but is appropriate here since POST is used only - * to accommodate large request parameters, not to modify data. - * - * The Last-Modified header in the response contains the timestamp of the last project modification, - * and the ETag header contains a unique identifier for the current project state. Both can be used - * for subsequent conditional requests to avoid unnecessary data transfer when the project hasn't changed. - * - * Cache-Control header is set to max-age=0 to ensure validation on each request. - */ - exportPost: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** - * When multiple files are exported, they are zipped and returned as a single zip file. - * When a single file is exported, it is returned directly. - */ - 200: { - content: { - "application/*": unknown; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ExportParams"]; - }; - }; - }; - getHighlights: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelGlossaryTermHighlightModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GlossaryHighlightsRequest"]; - }; - }; - }; - /** Prepares provided files to import. */ - addFiles: { - parameters: { - query: { - /** When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys. */ - structureDelimiter?: string; - /** Branch to which files will be imported */ - branch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ImportAddFilesResultModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "multipart/form-data": { - files: string[]; - }; - }; - }; - }; - /** Deletes prepared import data. */ - cancelImport: { - parameters: { - query: { - branch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns import settings for the authenticated user and the project. */ - get: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ImportSettingsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Stores import settings for the authenticated user and the project. */ - store: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ImportSettingsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ImportSettingsRequest"]; - }; - }; - }; - /** Returns all existing and imported namespaces */ - getAllNamespaces: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelImportNamespaceModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Imports the data prepared in previous step */ - applyImport: { - parameters: { - query: { - /** Whether override or keep all translations with unresolved conflicts */ - forceMode?: "OVERRIDE" | "KEEP" | "NO_FORCE"; - branch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Imports the data prepared in previous step. Streams current status. */ - applyImportStreaming: { - parameters: { - query: { - /** Whether override or keep all translations with unresolved conflicts */ - forceMode?: "OVERRIDE" | "KEEP" | "NO_FORCE"; - branch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/x-ndjson": components["schemas"]["StreamingResponseBody"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns the result of preparation. */ - getImportResult: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - branch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelImportLanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sets namespace for file to import. */ - selectNamespace: { - parameters: { - path: { - fileId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetFileNamespaceRequest"]; - }; - }; - }; - /** Returns issues for uploaded file. */ - getImportFileIssues: { - parameters: { - path: { - importFileId: number; - projectId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelImportFileIssueModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Resets existing language paired with language to import. */ - resetExistingLanguage: { - parameters: { - path: { - importLanguageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sets existing language to pair with language to import. Data will be imported to selected existing language when applied. */ - selectExistingLanguage: { - parameters: { - path: { - importLanguageId: number; - existingLanguageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns language prepared to import. */ - getImportLanguage: { - parameters: { - path: { - languageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ImportLanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Deletes language prepared to import. */ - deleteLanguage_2: { - parameters: { - path: { - languageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Resolves all translation conflicts for provided language. The old translations will be kept. */ - resolveTranslationSetKeepExisting_2: { - parameters: { - path: { - languageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Resolves all translation conflicts for provided language. The old translations will be overridden. */ - resolveTranslationSetOverride_2: { - parameters: { - path: { - languageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns translations prepared to import. */ - getImportTranslations: { - parameters: { - path: { - projectId: number; - languageId: number; - }; - query: { - /** Whether only translations, which are in conflict with existing translations should be returned */ - onlyConflicts?: boolean; - /** Whether only translations with unresolved conflictswith existing translations should be returned */ - onlyUnresolved?: boolean; - /** String to search in translation text or key */ - search?: string; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelImportTranslationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Resolves translation conflict. The old translation will be kept. */ - resolveTranslationSetKeepExisting: { - parameters: { - path: { - languageId: number; - translationId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Resolves translation conflict. The old translation will be overridden. */ - resolveTranslationSetOverride: { - parameters: { - path: { - languageId: number; - translationId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getProjectInvitations: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelProjectInvitationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - inviteUser: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectInvitationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ProjectInviteUserDto"]; - }; - }; - }; - getAll_7: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - branch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelKeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_6: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** Created */ - 201: { - content: { - "*/*": components["schemas"]["KeyWithDataModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateKeyDto"]; - }; - }; - }; - /** Delete one or multiple keys by their IDs in request body. Useful for larger requests esxceeding allowed URL length. */ - delete_11: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DeleteKeysDto"]; - }; - }; - }; - create_5: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** Created */ - 201: { - content: { - "*/*": components["schemas"]["KeyWithDataModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateKeyDto"]; - }; - }; - }; - /** Imports new keys with translations. If key already exists, its translations and tags are not updated. */ - importKeys_2: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ImportKeysDto"]; - }; - }; - }; - /** - * Import's new keys with translations. Translations can be updated, when specified.\n\n - * DEPRECATED: Use /v2/projects/{projectId}/single-step-import-resolvable instead. - */ - importKeys: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["KeyImportResolvableResultModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ImportKeysResolvableDto"]; - }; - }; - }; - /** Returns information about keys. (KeyData, Screenshots, Translation in specified language)If key is not found, it's not included in the response. */ - getInfo_1: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelKeyWithDataModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GetKeysRequestDto"]; - }; - }; - }; - /** - * This endpoint helps you to find desired key by keyName, base translation or translation in specified language. - * - * Sort is ignored for this request. - */ - searchForKey: { - parameters: { - query: { - /** Search query */ - search: string; - /** Language to search in */ - languageTag?: string; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelKeySearchSearchResultModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. */ - selectKeys_2: { - parameters: { - query: { + get: operations["get"]; /** - * Translation state in the format: languageTag,state. You can use this parameter multiple times. - * - * When used with multiple states for same language it is applied with logical OR. - * - * When used with multiple languages, it is applied with logical AND. + * Set Import Settings + * @description Stores import settings for the authenticated user and the project. */ - filterState?: string[]; + put: operations["store"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/all-namespaces": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * Languages to be contained in response. - * - * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) + * Get namespaces + * @description Returns all existing and imported namespaces */ - languages?: string[]; - /** String to search in key name or translation text */ - search?: string; - /** Selects key with provided names. Use this param multiple times to fetch more keys. */ - filterKeyName?: string[]; - /** Selects key with provided ID. Use this param multiple times to fetch more keys. */ - filterKeyId?: number[]; - /** Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ - filterUntranslatedAny?: boolean; - /** Selects only keys, where translation is provided in any language */ - filterTranslatedAny?: boolean; - /** Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. */ - filterUntranslatedInLang?: string; - /** Selects only keys, where translation is provided in specified language */ - filterTranslatedInLang?: string; - /** Selects only keys, where translation was auto translated for specified languages. */ - filterAutoTranslatedInLang?: string[]; - /** Selects only keys with screenshots */ - filterHasScreenshot?: boolean; - /** Selects only keys without screenshots */ - filterHasNoScreenshot?: boolean; + get: operations["getAllNamespaces"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/apply": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; /** - * Selects only keys with provided namespaces. - * - * To filter default namespace, set to empty string. + * Apply import + * @description Imports the data prepared in previous step */ - filterNamespace?: string[]; + put: operations["applyImport"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/apply-streaming": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; /** - * Selects only keys without provided namespaces. - * - * To filter default namespace, set to empty string. + * Apply import (streaming) + * @description Imports the data prepared in previous step. Streams current status. */ - filterNoNamespace?: string[]; - /** Selects only keys with provided tag */ - filterTag?: string[]; - /** Selects only keys without provided tag */ - filterNoTag?: string[]; - /** Selects only keys, where translation in provided langs is in outdated state */ - filterOutdatedLanguage?: string[]; - /** Selects only keys, where translation in provided langs is not in outdated state */ - filterNotOutdatedLanguage?: string[]; - /** Selects only key affected by activity with specidfied revision ID */ - filterRevisionId?: number[]; - /** Select only keys which were not successfully translated by batch job with provided id */ - filterFailedKeysOfJob?: number; - /** Select only keys which are in specified task */ - filterTaskNumber?: number[]; - /** Filter task keys which are `not done` */ - filterTaskKeysNotDone?: boolean; - /** Filter task keys which are `done` */ - filterTaskKeysDone?: boolean; - /** Filter keys with unresolved comments in lang */ - filterHasUnresolvedCommentsInLang?: string[]; - /** Filter keys with any comments in lang */ - filterHasCommentsInLang?: string[]; - /** Filter key translations with labels */ - filterLabel?: string[]; - /** Filter keys with any suggestions in lang */ - filterHasSuggestionsInLang?: string[]; - /** Filter keys with no suggestions in lang */ - filterHasNoSuggestionsInLang?: string[]; - /** Selects only keys from specified branch */ - branch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SelectAllResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - delete_13: { - parameters: { - path: { - ids: number[]; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - get_8: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["KeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - edit: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["KeyModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["EditKeyDto"]; - }; - }; - }; - getBigMeta: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelKeyWithBaseTranslationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Edits key name, translations, tags, screenshots, and other data */ - complexEdit: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["KeyWithDataModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ComplexEditKeyDto"]; - }; - }; - }; - /** Returns languages, in which key is disabled */ - getDisabledLanguages: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sets languages, in which key is disabled */ - setDisabledLanguages: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetDisabledLanguagesRequest"]; - }; - }; - }; - /** - * Uses enabled auto-translation methods. - * You need to set at least one of useMachineTranslation or useTranslationMemory to true. - * - * This will replace the the existing translation with the result obtained from specified source! - */ - autoTranslate: { - parameters: { - path: { - keyId: number; - projectId: number; - }; - query: { + put: operations["applyImportStreaming"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * Tags of languages to auto-translate. - * When no languages provided, it translates only untranslated languages. + * Get result + * @description Returns the result of preparation. */ - languages?: string[]; - useMachineTranslation?: boolean; - useTranslationMemory?: boolean; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getKeyScreenshots_1: { - parameters: { - path: { - keyId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelScreenshotModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - uploadScreenshot_1: { - parameters: { - path: { - keyId: number; - projectId: number; - }; - }; - responses: { - /** Created */ - 201: { - content: { - "*/*": components["schemas"]["ScreenshotModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "multipart/form-data": { - /** Format: binary */ - screenshot: string; - info?: components["schemas"]["ScreenshotInfoDto"]; - }; - }; - }; - }; - deleteScreenshots_1: { - parameters: { - path: { - ids: number[]; - keyId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Tags a key with tag. If tag with provided name doesn't exist, it is created */ - tagKey: { - parameters: { - path: { - keyId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TagModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TagKeyDto"]; - }; - }; - }; - /** Removes tag with provided id from key with provided id */ - removeTag: { - parameters: { - path: { - keyId: number; - tagId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAll_1: { - parameters: { - query: { - search?: string; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelLabelModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - createLabel: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LabelModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LabelRequest"]; - }; - }; - }; - getLabelsByIds: { - parameters: { - query: { - id: number[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LabelModel"][]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - updateLabel: { - parameters: { - path: { - labelId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LabelModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LabelRequest"]; - }; - }; - }; - deleteLabel: { - parameters: { - path: { - labelId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getLanguagePromptCustomizations: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLanguageAiPromptCustomizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAll_5: { - parameters: { - path: { - projectId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - /** Filter languages by id */ - filterId?: number[]; - /** Filter languages without id */ - filterNotId?: number[]; - /** Filter languages by name or tag */ - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelLanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - createLanguage: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LanguageRequest"]; - }; - }; - }; - get_6: { - parameters: { - path: { - languageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - editLanguage: { - parameters: { - path: { - languageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LanguageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LanguageRequest"]; - }; - }; - }; - deleteLanguage: { - parameters: { - path: { - languageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setLanguagePromptCustomization: { - parameters: { - path: { - languageId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LanguageAiPromptCustomizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetLanguagePromptCustomizationRequest"]; - }; - }; - }; - getSuggestions: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - /** Filter by suggestion state */ - filterState?: ("ACTIVE" | "ACCEPTED" | "DECLINED")[]; - }; - path: { - languageId: number; - keyId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelTranslationSuggestionModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - createSuggestion: { - parameters: { - path: { - languageId: number; - keyId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationSuggestionModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateTranslationSuggestionRequest"]; - }; - }; - }; - /** User can only delete suggestion created by them */ - deleteSuggestion: { - parameters: { - path: { - languageId: number; - keyId: number; - suggestionId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - acceptSuggestion: { - parameters: { - path: { - languageId: number; - keyId: number; - suggestionId: number; - projectId: number; - }; - query: { - declineOther?: boolean; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationSuggestionAcceptResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - declineSuggestion: { - parameters: { - path: { - languageId: number; - keyId: number; - suggestionId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationSuggestionModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - suggestionSetActive: { - parameters: { - path: { - languageId: number; - keyId: number; - suggestionId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationSuggestionModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - leaveProject: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns machine translation credit balance for specified project */ - getProjectCredits: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CreditBalanceModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Get enabled services and configured formality for each language */ - getMachineTranslationLanguageInfo: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLanguageInfoModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getMachineTranslationSettings: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLanguageConfigItemModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setMachineTranslationSettings: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelLanguageConfigItemModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetMachineTranslationSettingsDto"]; - }; - }; - }; - setMachineTranslationSettings_1: { - parameters: { - path: { - promptId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** List all batch operations started by current user */ - myList: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelBatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns information about a namespace by its name */ - getByName: { - parameters: { - path: { - name: string; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["NamespaceModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getAllNamespaces_2: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelNamespaceModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_3: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["NamespaceModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateNamespaceDto"]; - }; - }; - }; - getPerLanguageAutoTranslationSettings: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelAutoTranslationConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setPerLanguageAutoTranslationSettings: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelAutoTranslationConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["AutoTranslationSettingsDto"][]; - }; - }; - }; - getAllPaged: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelPromptModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - createPrompt: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PromptModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PromptDto"]; - }; - }; - }; - getDefaultPrompt: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PromptDto"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - variables: { - parameters: { - query: { - keyId?: number; - targetLanguageId?: number; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["VariablesResponseDto"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - run: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PromptResponseModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PromptRunDto"]; - }; - }; - }; - getPrompt: { - parameters: { - path: { - promptId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PromptModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - updatePrompt: { - parameters: { - path: { - promptId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PromptModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PromptDto"]; - }; - }; - }; - deletePrompt: { - parameters: { - path: { - promptId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Unlike the /v2/projects/{projectId}/import endpoint, imports the data in single request by provided files and parameters. This is useful for automated importing via API or CLI. */ - singleStepFromFiles: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ImportResult"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "multipart/form-data": { - files: string[]; - params: components["schemas"]["SingleStepImportRequest"]; - }; - }; - }; - }; - singleStepResolvableImport: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ImportResult"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SingleStepImportResolvableRequest"]; - }; - }; - }; - aiPlaygroundTranslate: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["MachineTranslationRequest"]; - }; - }; - }; - assignTranslationLabel: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LabelTranslationsRequest"]; - }; - }; - }; - /** Clear translation values for provided keys in selected languages. */ - clearTranslations: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ClearTranslationsRequest"]; - }; - }; - }; - /** Copy translation values from one language to other languages. */ - copyTranslations: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CopyTranslationRequest"]; - }; - }; - }; - deleteKeys: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["DeleteKeysRequest"]; - }; - }; - }; - /** Translate provided keys to provided languages through primary MT provider. */ - machineTranslation: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["MachineTranslationRequest"]; - }; - }; - }; - /** Pre-translate provided keys to provided languages by TM. */ - translate: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["PreTranslationByTmRequest"]; - }; - }; - }; - setKeysNamespace: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetKeysNamespaceRequest"]; - }; - }; - }; - setTranslationState_2: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetTranslationsStateStateRequest"]; - }; - }; - }; - tagKeys: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TagKeysRequest"]; - }; - }; - }; - unassignTranslationLabel: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LabelTranslationsRequest"]; - }; - }; - }; - untagKeys: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["BatchJobModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UntagKeysRequest"]; - }; - }; - }; - getProjectStats: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["ProjectStatsModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getProjectDailyActivity: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": { [key: string]: number }; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Suggests machine translations from enabled services */ - suggestMachineTranslations: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SuggestResultModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SuggestRequestDto"]; - }; - }; - }; - /** Suggests machine translations from enabled services. The results are streamed to the output in ndjson format. If an error occurs when for any service provider used, the error information is returned as a part of the result item, while the response has 200 status code. */ - suggestMachineTranslationsStreaming: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/x-ndjson": components["schemas"]["StreamingResponseBody"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SuggestRequestDto"]; - }; - }; - }; - /** Suggests machine translations from translation memory. The result is always sorted by similarity, so sorting is not supported. */ - suggestTranslationMemory: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelTranslationMemoryItemModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SuggestRequestDto"]; - }; - }; - }; - executeComplexTagOperation: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ComplexTagKeysRequest"]; - }; - }; - }; - getAll_14: { - parameters: { - query: { - search?: string; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelTagModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getTasks: { - parameters: { - query: { - /** Filter tasks by state */ - filterState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; - /** Filter tasks without state */ - filterNotState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; - /** Filter tasks by assignee */ - filterAssignee?: number[]; - /** Filter tasks by type */ - filterType?: ("TRANSLATE" | "REVIEW")[]; - /** Filter tasks by id */ - filterId?: number[]; - /** Filter tasks without id */ - filterNotId?: number[]; - /** Filter tasks by project */ - filterProject?: number[]; - /** Filter tasks without project */ - filterNotProject?: number[]; - /** Filter tasks by language */ - filterLanguage?: number[]; - /** Filter tasks by key */ - filterKey?: number[]; - /** Filter tasks by agency */ - filterAgency?: number[]; - /** Exclude tasks which were closed before specified timestamp */ - filterNotClosedBefore?: number; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelTaskModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - createTask: { - parameters: { - query: { - filterState?: ( - | "UNTRANSLATED" - | "TRANSLATED" - | "REVIEWED" - | "DISABLED" - )[]; - filterOutdated?: boolean; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateTaskRequest"]; - }; - }; - }; - calculateScope: { - parameters: { - query: { - filterState?: ( - | "UNTRANSLATED" - | "TRANSLATED" - | "REVIEWED" - | "DISABLED" - )[]; - filterOutdated?: boolean; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["KeysScopeView"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CalculateScopeRequest"]; - }; - }; - }; - createTasks: { - parameters: { - query: { - filterState?: ( - | "UNTRANSLATED" - | "TRANSLATED" - | "REVIEWED" - | "DISABLED" - )[]; - filterOutdated?: boolean; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["CreateMultipleTasksRequest"]; - }; - }; - }; - getPossibleAssignees: { - parameters: { - query: { - /** Filter users by id */ - filterId?: number[]; - /** Filter only users that have at least following scopes */ - filterMinimalScope?: string; - /** Filter only users that can view language */ - filterViewLanguageId?: number; - /** Filter only users that can edit language */ - filterEditLanguageId?: number; - /** Filter only users that can edit state of language */ - filterStateLanguageId?: number; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelSimpleUserAccountModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getTask: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - updateTask: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateTaskRequest"]; - }; - }; - }; - /** If the tasks is blocked by other tasks, it returns numbers of these tasks. */ - getBlockingTasks: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": number[]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - cancelTask: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - closeTask: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - finishTask: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getTaskKeys: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskKeysResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - updateTaskKeys: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateTaskKeysRequest"]; - }; - }; - }; - /** Mark key as done, which updates task progress. */ - updateTaskKey: { - parameters: { - path: { - taskNumber: number; - keyId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["UpdateTaskKeyResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UpdateTaskKeyRequest"]; - }; - }; - }; - /** Detailed statistics for every assignee */ - getPerUserReport: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskPerUserReportModel"][]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - reopenTask: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TaskModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Detailed statistics about the task results */ - getXlsxReport: { - parameters: { - path: { - taskNumber: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": string; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns organizations to which project can be transferred */ - getTransferOptions: { - parameters: { - query: { - search?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelProjectTransferOptionModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Transfers project's ownership to organization */ - transferProjectToOrganization: { - parameters: { - path: { - projectId: number; - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getTranslations: { - parameters: { - query: { - /** Cursor to get next data */ - cursor?: string; + get: operations["getImportResult"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/files/{fileId}/select-namespace": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; /** - * Translation state in the format: languageTag,state. You can use this parameter multiple times. - * - * When used with multiple states for same language it is applied with logical OR. - * - * When used with multiple languages, it is applied with logical AND. + * Select namespace + * @description Sets namespace for file to import. */ - filterState?: string[]; + put: operations["selectNamespace"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/files/{importFileId}/issues": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; /** - * Languages to be contained in response. - * - * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) + * Get file issues + * @description Returns issues for uploaded file. + */ + get: operations["getImportFileIssues"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/languages/{importLanguageId}/reset-existing": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Reset existing language pairing + * @description Resets existing language paired with language to import. + */ + put: operations["resetExistingLanguage"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/languages/{importLanguageId}/select-existing/{existingLanguageId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Pair existing language + * @description Sets existing language to pair with language to import. Data will be imported to selected existing language when applied. + */ + put: operations["selectExistingLanguage"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get import language + * @description Returns language prepared to import. + */ + get: operations["getImportLanguage"]; + put?: never; + post?: never; + /** + * Delete language + * @description Deletes language prepared to import. + */ + delete: operations["deleteLanguage_2"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/resolve-all/set-keep-existing": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Resolve all translation conflicts (keep existing) + * @description Resolves all translation conflicts for provided language. The old translations will be kept. + */ + put: operations["resolveTranslationSetKeepExisting_2"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/resolve-all/set-override": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Resolve all translation conflicts (override) + * @description Resolves all translation conflicts for provided language. The old translations will be overridden. + */ + put: operations["resolveTranslationSetOverride_2"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/translations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get translations + * @description Returns translations prepared to import. + */ + get: operations["getImportTranslations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/translations/{translationId}/resolve/set-keep-existing": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Resolve conflict (keep existing) + * @description Resolves translation conflict. The old translation will be kept. */ - languages?: string[]; - /** String to search in key name or translation text */ - search?: string; - /** Selects key with provided names. Use this param multiple times to fetch more keys. */ - filterKeyName?: string[]; - /** Selects key with provided ID. Use this param multiple times to fetch more keys. */ - filterKeyId?: number[]; - /** Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ - filterUntranslatedAny?: boolean; - /** Selects only keys, where translation is provided in any language */ - filterTranslatedAny?: boolean; - /** Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. */ - filterUntranslatedInLang?: string; - /** Selects only keys, where translation is provided in specified language */ - filterTranslatedInLang?: string; - /** Selects only keys, where translation was auto translated for specified languages. */ - filterAutoTranslatedInLang?: string[]; - /** Selects only keys with screenshots */ - filterHasScreenshot?: boolean; - /** Selects only keys without screenshots */ - filterHasNoScreenshot?: boolean; + put: operations["resolveTranslationSetKeepExisting"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/import/result/languages/{languageId}/translations/{translationId}/resolve/set-override": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; /** - * Selects only keys with provided namespaces. + * Resolve conflict (override) + * @description Resolves translation conflict. The old translation will be overridden. + */ + put: operations["resolveTranslationSetOverride"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/invitations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get project invitations */ + get: operations["getProjectInvitations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/invite": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Generate user invitation link for project */ + put: operations["inviteUser"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all keys */ + get: operations["getAll_7"]; + put?: never; + /** Create new key */ + post: operations["create_6"]; + /** + * Delete one or multiple keys (post) + * @description Delete one or multiple keys by their IDs in request body. Useful for larger requests esxceeding allowed URL length. + */ + delete: operations["delete_11"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/create": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Create new key */ + post: operations["create_5"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/import": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Import keys + * @description Imports new keys with translations. If key already exists, its translations and tags are not updated. + */ + post: operations["importKeys_2"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/import-resolvable": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Import keys (resolvable) + * @deprecated + * @description + * Import's new keys with translations. Translations can be updated, when specified.\n\n + * DEPRECATED: Use /v2/projects/{projectId}/single-step-import-resolvable instead. * - * To filter default namespace, set to empty string. */ - filterNamespace?: string[]; + post: operations["importKeys"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/info": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; /** - * Selects only keys without provided namespaces. + * Get key info + * @description Returns information about keys. (KeyData, Screenshots, Translation in specified language)If key is not found, it's not included in the response. + */ + post: operations["getInfo_1"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/search": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Search for keys + * @description This endpoint helps you to find desired key by keyName, base translation or translation in specified language. * - * To filter default namespace, set to empty string. + * Sort is ignored for this request. + */ + get: operations["searchForKey"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/select": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Select keys + * @description Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. + */ + get: operations["selectKeys_2"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{ids}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** Delete one or multiple keys */ + delete: operations["delete_14"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one key */ + get: operations["get_8"]; + /** Edit key name */ + put: operations["edit"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{id}/big-meta": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get Big Meta for key */ + get: operations["getBigMeta"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{id}/complex-update": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Edit key and related data + * @description Edits key name, translations, tags, screenshots, and other data + */ + put: operations["complexEdit"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{id}/disabled-languages": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get disabled languages + * @description Returns languages, in which key is disabled */ - filterNoNamespace?: string[]; - /** Selects only keys with provided tag */ - filterTag?: string[]; - /** Selects only keys without provided tag */ - filterNoTag?: string[]; - /** Selects only keys, where translation in provided langs is in outdated state */ - filterOutdatedLanguage?: string[]; - /** Selects only keys, where translation in provided langs is not in outdated state */ - filterNotOutdatedLanguage?: string[]; - /** Selects only key affected by activity with specidfied revision ID */ - filterRevisionId?: number[]; - /** Select only keys which were not successfully translated by batch job with provided id */ - filterFailedKeysOfJob?: number; - /** Select only keys which are in specified task */ - filterTaskNumber?: number[]; - /** Filter task keys which are `not done` */ - filterTaskKeysNotDone?: boolean; - /** Filter task keys which are `done` */ - filterTaskKeysDone?: boolean; - /** Filter keys with unresolved comments in lang */ - filterHasUnresolvedCommentsInLang?: string[]; - /** Filter keys with any comments in lang */ - filterHasCommentsInLang?: string[]; - /** Filter key translations with labels */ - filterLabel?: string[]; - /** Filter keys with any suggestions in lang */ - filterHasSuggestionsInLang?: string[]; - /** Filter keys with no suggestions in lang */ - filterHasNoSuggestionsInLang?: string[]; - /** Selects only keys from specified branch */ - branch?: string; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["KeysWithTranslationsPageModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sets translations for existing key */ - setTranslations: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SetTranslationsResponseModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetTranslationsWithKeyDto"]; - }; - }; - }; - /** Sets translations for existing key or creates new key and sets the translations to it. */ - createOrUpdateTranslations: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SetTranslationsResponseModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SetTranslationsWithKeyDto"]; - }; - }; - }; - /** Creates a translation comment. Empty translation is stored, when not exists. */ - create_3: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** Created */ - 201: { - content: { - "*/*": components["schemas"]["TranslationWithCommentModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TranslationCommentWithLangKeyDto"]; - }; - }; - }; - assignLabel_2: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LabelModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TranslationLabelRequest"]; - }; - }; - }; - /** Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. */ - selectKeys: { - parameters: { - query: { + get: operations["getDisabledLanguages"]; /** - * Translation state in the format: languageTag,state. You can use this parameter multiple times. + * Set disabled languages + * @description Sets languages, in which key is disabled + */ + put: operations["setDisabledLanguages"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{keyId}/auto-translate": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Auto translates keys + * @description Uses enabled auto-translation methods. + * You need to set at least one of useMachineTranslation or useTranslationMemory to true. * - * When used with multiple states for same language it is applied with logical OR. + * This will replace the the existing translation with the result obtained from specified source! * - * When used with multiple languages, it is applied with logical AND. */ - filterState?: string[]; + put: operations["autoTranslate"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{keyId}/screenshots": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get screenshots */ + get: operations["getKeyScreenshots_1"]; + put?: never; + /** Upload screenshot */ + post: operations["uploadScreenshot_1"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{keyId}/screenshots/{ids}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + /** Delete screenshots */ + delete: operations["deleteScreenshots_1"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{keyId}/tags": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; /** - * Languages to be contained in response. - * - * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) + * Tag key + * @description Tags a key with tag. If tag with provided name doesn't exist, it is created */ - languages?: string[]; - /** String to search in key name or translation text */ - search?: string; - /** Selects key with provided names. Use this param multiple times to fetch more keys. */ - filterKeyName?: string[]; - /** Selects key with provided ID. Use this param multiple times to fetch more keys. */ - filterKeyId?: number[]; - /** Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ - filterUntranslatedAny?: boolean; - /** Selects only keys, where translation is provided in any language */ - filterTranslatedAny?: boolean; - /** Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. */ - filterUntranslatedInLang?: string; - /** Selects only keys, where translation is provided in specified language */ - filterTranslatedInLang?: string; - /** Selects only keys, where translation was auto translated for specified languages. */ - filterAutoTranslatedInLang?: string[]; - /** Selects only keys with screenshots */ - filterHasScreenshot?: boolean; - /** Selects only keys without screenshots */ - filterHasNoScreenshot?: boolean; + put: operations["tagKey"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/keys/{keyId}/tags/{tagId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; /** - * Selects only keys with provided namespaces. - * - * To filter default namespace, set to empty string. + * Remove tag + * @description Removes tag with provided id from key with provided id */ - filterNamespace?: string[]; + delete: operations["removeTag"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/labels": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get available project labels */ + get: operations["getAll_1"]; + put?: never; + /** Create label */ + post: operations["createLabel"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/labels/ids": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get labels by ids */ + get: operations["getLabelsByIds"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/labels/{labelId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Update label */ + put: operations["updateLabel"]; + post?: never; + /** Delete label */ + delete: operations["deleteLabel"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/language-ai-prompt-customizations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Returns language level prompt customization */ + get: operations["getLanguagePromptCustomizations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/languages": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all languages */ + get: operations["getAll_5"]; + put?: never; + /** Create language */ + post: operations["createLanguage"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/languages/{languageId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one language */ + get: operations["get_6"]; + /** Update language */ + put: operations["editLanguage"]; + post?: never; + /** Delete specific language */ + delete: operations["deleteLanguage"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/languages/{languageId}/ai-prompt-customization": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Sets language level prompt customization */ + put: operations["setLanguagePromptCustomization"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get suggestions */ + get: operations["getSuggestions"]; + put?: never; + /** Create translation suggestion */ + post: operations["createSuggestion"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; /** - * Selects only keys without provided namespaces. + * Delete suggestion + * @description User can only delete suggestion created by them + */ + delete: operations["deleteSuggestion"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/accept": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Accept suggestion */ + put: operations["acceptSuggestion"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/decline": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Decline suggestion */ + put: operations["declineSuggestion"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/set-active": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Set suggestion active */ + put: operations["suggestionSetActive"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/leave": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Leave project */ + put: operations["leaveProject"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/machine-translation-credit-balance": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get credit balance for project + * @description Returns machine translation credit balance for specified project + */ + get: operations["getProjectCredits"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/machine-translation-language-info": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Machine translation info + * @description Get enabled services and configured formality for each language + */ + get: operations["getMachineTranslationLanguageInfo"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/machine-translation-service-settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get machine translation settings */ + get: operations["getMachineTranslationSettings"]; + /** Sets machine translation settings */ + put: operations["setMachineTranslationSettings"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/machine-translation-service-settings/set-default-prompt/{promptId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Sets machine translation default prompt for all languages */ + put: operations["setMachineTranslationSettings_1"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/my-batch-jobs": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * List user batch operations + * @description List all batch operations started by current user + */ + get: operations["myList"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/namespace-by-name/{name}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get namespace by name + * @description Returns information about a namespace by its name + */ + get: operations["getByName"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/namespaces": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get namespaces */ + get: operations["getAllNamespaces_2"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/namespaces/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Update namespace */ + put: operations["update_3"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/per-language-auto-translation-settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get per-language auto-translation settings */ + get: operations["getPerLanguageAutoTranslationSettings"]; + /** Set per-language auto-translation settings */ + put: operations["setPerLanguageAutoTranslationSettings"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/prompts": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get all prompts */ + get: operations["getAllPaged"]; + put?: never; + /** Create prompt */ + post: operations["createPrompt"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/prompts/default": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get default prompt */ + get: operations["getDefaultPrompt"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/prompts/get-variables": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get variables */ + get: operations["variables"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/prompts/run": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Run prompt */ + post: operations["run"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/prompts/{promptId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get prompt by id */ + get: operations["getPrompt"]; + /** Update prompt */ + put: operations["updatePrompt"]; + post?: never; + /** Delete prompt */ + delete: operations["deletePrompt"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/single-step-import": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Single step import + * @description Unlike the /v2/projects/{projectId}/import endpoint, imports the data in single request by provided files and parameters. This is useful for automated importing via API or CLI. + */ + post: operations["singleStepFromFiles"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/single-step-import-resolvable": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Single step import from body */ + post: operations["singleStepResolvableImport"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/ai-playground-translate": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Translates via llm and stores result in AiPlaygroundResult */ + post: operations["aiPlaygroundTranslate"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/assign-translation-label": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Assign labels to translations */ + post: operations["assignTranslationLabel"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/clear-translations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Clear translation values + * @description Clear translation values for provided keys in selected languages. + */ + post: operations["clearTranslations"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/copy-translations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Copy translation values + * @description Copy translation values from one language to other languages. + */ + post: operations["copyTranslations"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/delete-keys": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Delete keys */ + post: operations["deleteKeys"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/machine-translate": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Machine Translation + * @description Translate provided keys to provided languages through primary MT provider. + */ + post: operations["machineTranslation"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/pre-translate-by-tm": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Pre-translate by TM + * @description Pre-translate provided keys to provided languages by TM. + */ + post: operations["translate"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/set-keys-namespace": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Set keys namespace */ + post: operations["setKeysNamespace"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/set-translation-state": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Set translation state */ + post: operations["setTranslationState_2"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/tag-keys": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Add tags */ + post: operations["tagKeys"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/unassign-translation-label": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Unassign labels from translations */ + post: operations["unassignTranslationLabel"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/start-batch-job/untag-keys": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Remove tags */ + post: operations["untagKeys"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/stats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get project stats */ + get: operations["getProjectStats"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/stats/daily-activity": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get project daily amount of events */ + get: operations["getProjectDailyActivity"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/suggest/machine-translations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Get machine translation suggestions + * @description Suggests machine translations from enabled services + */ + post: operations["suggestMachineTranslations"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/suggest/machine-translations-streaming": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Get machine translation suggestions (streaming) + * @description Suggests machine translations from enabled services. The results are streamed to the output in ndjson format. If an error occurs when for any service provider used, the error information is returned as a part of the result item, while the response has 200 status code. + */ + post: operations["suggestMachineTranslationsStreaming"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/suggest/translation-memory": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Get suggestions from translation memory + * @description Suggests machine translations from translation memory. The result is always sorted by similarity, so sorting is not supported. + */ + post: operations["suggestTranslationMemory"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tag-complex": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Execute complex tag operation */ + put: operations["executeComplexTagOperation"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tags": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get tags */ + get: operations["getAll_14"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get tasks */ + get: operations["getTasks"]; + put?: never; + /** Create task */ + post: operations["createTask"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/calculate-scope": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Calculate scope */ + post: operations["calculateScope"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/create-multiple-tasks": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Create multiple tasks */ + post: operations["createTasks"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/possible-assignees": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get possible assignees */ + get: operations["getPossibleAssignees"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get task */ + get: operations["getTask"]; + /** Update task */ + put: operations["updateTask"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/blocking-tasks": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get blocking task numbers + * @description If the tasks is blocked by other tasks, it returns numbers of these tasks. + */ + get: operations["getBlockingTasks"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/cancel": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Close task */ + put: operations["cancelTask"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/close": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Close task + * @deprecated + */ + put: operations["closeTask"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/finish": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Finish task */ + put: operations["finishTask"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/keys": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get task keys */ + get: operations["getTaskKeys"]; + /** Add or remove task keys */ + put: operations["updateTaskKeys"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/keys/{keyId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Update task key + * @description Mark key as done, which updates task progress. + */ + put: operations["updateTaskKey"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/per-user-report": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get report + * @description Detailed statistics for every assignee + */ + get: operations["getPerUserReport"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/reopen": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Reopen task */ + put: operations["reopenTask"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/tasks/{taskNumber}/xlsx-report": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get report in XLSX + * @description Detailed statistics about the task results + */ + get: operations["getXlsxReport"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/transfer-options": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get transfer to organization options + * @description Returns organizations to which project can be transferred + */ + get: operations["getTransferOptions"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/transfer-to-organization/{organizationId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Transfer project + * @description Transfers project's ownership to organization + */ + put: operations["transferProjectToOrganization"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get translations in project */ + get: operations["getTranslations"]; + /** + * Update translations for existing key + * @description Sets translations for existing key + */ + put: operations["setTranslations"]; + /** + * Create key or update translations + * @description Sets translations for existing key or creates new key and sets the translations to it. + */ + post: operations["createOrUpdateTranslations"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/create-comment": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Create translation comment + * @description Creates a translation comment. Empty translation is stored, when not exists. + */ + post: operations["create_3"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/label": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Add label to translation by key and language id */ + put: operations["assignLabel_2"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/select-all": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Select keys + * @description Returns all key IDs for specified filter values. This way, you can apply the same filter as in the translation view and get the resulting key IDs for future use. + */ + get: operations["selectKeys"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{languages}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all translations + * @description Returns all translations for specified languages + */ + get: operations["getAllTranslations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{translationId}/comments": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get translation comments + * @description Returns translation comments of translation + */ + get: operations["getAll_3"]; + put?: never; + /** Create translation comment */ + post: operations["create_1"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one translation comment */ + get: operations["get_4"]; + /** Update translation comment */ + put: operations["update_1"]; + post?: never; + /** Delete translation comment */ + delete: operations["delete_2"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}/set-state/{state}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Set state of translation comment */ + put: operations["setState"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{translationId}/dismiss-auto-translated-state": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Dismiss auto-translated + * @description Removes "auto translated" indication + */ + put: operations["dismissAutoTranslatedState"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{translationId}/history": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get translation history + * @description Sorting is not supported for supported. It is automatically sorted from newest to oldest. + */ + get: operations["getTranslationHistory"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{translationId}/label/{labelId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Add label to translation */ + put: operations["assignLabel"]; + post?: never; + /** Remove label from translation */ + delete: operations["unassignLabel"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{translationId}/set-outdated-flag/{state}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Set outdated value + * @description Set's "outdated" flag indicating the base translation was changed without updating current translation. + */ + put: operations["setOutdated"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/translations/{translationId}/set-state/{state}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Set translation state */ + put: operations["setTranslationState"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/used-namespaces": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get used namespaces + * @description Returns all used project namespaces. Response contains default (null) namespace if used. + */ + get: operations["getUsedNamespaces"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/users": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get users with project access + * @description Returns all project users, who have permission to access project + */ + get: operations["getAllUsers"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/users/{userId}/revoke-access": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Revoke project access */ + put: operations["revokePermission"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/users/{userId}/set-by-organization": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Remove direct project permission + * @description Removes user's direct project permission, explicitly set for the project. User will have now base permissions from organization or no permission if they're not organization member. + */ + put: operations["removeDirectProjectPermissions"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/users/{userId}/set-permissions": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Set user's project permission + * @description Set user's granular (scope-based) direct project permission + */ + put: operations["setUsersPermissions"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/users/{userId}/set-permissions/{permissionType}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Set direct permission to user */ + put: operations["setUsersPermissions_1"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/webhook-configs": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** List webhook configurations */ + get: operations["list"]; + put?: never; + /** Create new webhook configuration */ + post: operations["create"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/webhook-configs/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get one webhook configuration */ + get: operations["get_3"]; + /** Update webhook configuration */ + put: operations["update"]; + post?: never; + /** Delete webhook configuration */ + delete: operations["delete_1"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/projects/{projectId}/webhook-configs/{id}/test": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Test webhook configuration + * @description Sends a test request to the webhook + */ + post: operations["test"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/business-events/identify": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Identifies user */ + post: operations["identify"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/business-events/report": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Reports business event */ + post: operations["report"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/configuration-properties": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** @description Return server configuration properties documentation */ + get: operations["get_19"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/export-info/formats": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["get_18"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/initial-data": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get initial data + * @description Returns initial data required by the UI to load + */ + get: operations["get_17"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/machine-translation-providers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Returns information about supported translation providers + * @description Get machine translation providers + */ + get: operations["getInfo_4"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/scope-info/hierarchy": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Returns hierarchy of scopes */ + get: operations["getHierarchy"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/scope-info/roles": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Returns user roles and their scopes */ + get: operations["getRoles"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/slack": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["slackCommand"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/slack/on-bot-event": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * On bot event + * @description This is triggered when bot event is triggered. E.g., when app is uninstalled from workspace. * - * To filter default namespace, set to empty string. + * Heads up! The events have to be configured via Slack App configuration in Event Subscription section. + */ + post: operations["fetchBotEvent"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/public/slack/on-event": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * On interactivity event + * @description This is triggered when interactivity event is triggered. E.g., when user clicks button provided in previous messages. + */ + post: operations["onInteractivityEvent"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/quick-start/set-finished/{finished}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Set finished state + * @description Sets finished state of the quick start guide */ - filterNoNamespace?: string[]; - /** Selects only keys with provided tag */ - filterTag?: string[]; - /** Selects only keys without provided tag */ - filterNoTag?: string[]; - /** Selects only keys, where translation in provided langs is in outdated state */ - filterOutdatedLanguage?: string[]; - /** Selects only keys, where translation in provided langs is not in outdated state */ - filterNotOutdatedLanguage?: string[]; - /** Selects only key affected by activity with specidfied revision ID */ - filterRevisionId?: number[]; - /** Select only keys which were not successfully translated by batch job with provided id */ - filterFailedKeysOfJob?: number; - /** Select only keys which are in specified task */ - filterTaskNumber?: number[]; - /** Filter task keys which are `not done` */ - filterTaskKeysNotDone?: boolean; - /** Filter task keys which are `done` */ - filterTaskKeysDone?: boolean; - /** Filter keys with unresolved comments in lang */ - filterHasUnresolvedCommentsInLang?: string[]; - /** Filter keys with any comments in lang */ - filterHasCommentsInLang?: string[]; - /** Filter key translations with labels */ - filterLabel?: string[]; - /** Filter keys with any suggestions in lang */ - filterHasSuggestionsInLang?: string[]; - /** Filter keys with no suggestions in lang */ - filterHasNoSuggestionsInLang?: string[]; - /** Selects only keys from specified branch */ - branch?: string; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SelectAllResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all translations for specified languages */ - getAllTranslations: { - parameters: { - path: { - /** Comma-separated language tags to return translations in. Languages you are not permitted to see will be silently dropped and not returned. */ - languages: string[]; - projectId: number; - }; - query: { - /** Namespace to return */ - ns?: string; + put: operations["setFinishedState"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/quick-start/set-open/{open}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; /** - * Delimiter to structure response content. + * Set open state + * @description Sets open state of the quick start guide + */ + put: operations["setOpenState"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/quick-start/steps/{step}/complete": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Complete guide step + * @description Marks guide step as completed + */ + put: operations["completeGuideStep"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/slack/user-login": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * User login + * @description Pairs user account with slack account. + */ + post: operations["userLogin"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/slack/user-login-info": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Returns connection info + * @description Returns information about the connection between Slack account and Tolgee account which user is performing. The flow is the following. * - * e.g. For key "home.header.title" would result in {"home": {"header": {"title": "Hello"}}} structure. + * 1. User executes slash command in Slack and gets link with encrypted Slack user ID, workspace ID and the Channel ID (to send success response to) * - * When null, resulting file will be a flat key-value object. + * 2. User gets opens the link and the Tolgee Platform frontend and it uses this endpoint to get the data info about the future connection + */ + get: operations["getInfo_3"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/slug/generate-organization": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Generate organization slug */ + post: operations["generateOrganizationSlug"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/slug/generate-project": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Generate project slug */ + post: operations["generateProjectSlug"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/slug/validate-organization/{slug}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Validate organization slug */ + get: operations["validateOrganizationSlug"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/slug/validate-project/{slug}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Validate project slug */ + get: operations["validateProjectSlug"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get user info + * @description Returns information about currently authenticated user. + */ + get: operations["getInfo"]; + /** + * Update user + * @description Updates current user's profile information. + */ + put: operations["updateUser"]; + /** + * Updates current user's data. + * @deprecated + */ + post: operations["updateUserOld"]; + /** Delete user */ + delete: operations["delete"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user-preferences": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get user's preferences */ + get: operations["get_16"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user-preferences/set-language/{languageTag}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Set user's UI language */ + put: operations["setLanguage"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user-preferences/set-preferred-organization/{organizationId}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Set user preferred organization */ + put: operations["setPreferredOrganization"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user-tasks": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get user tasks */ + get: operations["getTasks_2"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/avatar": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** Upload avatar */ + put: operations["uploadAvatar"]; + post?: never; + /** Delete avatar */ + delete: operations["removeAvatar"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/generate-super-token": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Get super JWT + * @description Generates new JWT token permitted to sensitive operations + */ + post: operations["getSuperToken"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/managed-by": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get organization which manages user + * @description Returns the organization that manages a given user or null */ - structureDelimiter?: string; + get: operations["getManagedBy"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/mfa/recovery": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; /** - * Enables filtering of returned keys by their tags. - * Only keys with at least one provided tag will be returned. - * Optional, filtering is not applied if not specified. + * Regenerate Codes + * @description Regenerates multi-factor authentication recovery codes */ - filterTag?: string[]; - /** Branch name to return translations from */ - branch?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": string; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns translation comments of translation */ - getAll_3: { - parameters: { - path: { - translationId: number; - projectId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelTranslationCommentModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create_1: { - parameters: { - path: { - translationId: number; - projectId: number; - }; - }; - responses: { - /** Created */ - 201: { - content: { - "*/*": components["schemas"]["TranslationCommentModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TranslationCommentDto"]; - }; - }; - }; - get_4: { - parameters: { - path: { - translationId: number; - commentId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationCommentModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update_1: { - parameters: { - path: { - commentId: number; - translationId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationCommentModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["TranslationCommentDto"]; - }; - }; - }; - delete_2: { - parameters: { - path: { - translationId: number; - commentId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setState: { - parameters: { - path: { - translationId: number; - commentId: number; - state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationCommentModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Removes "auto translated" indication */ - dismissAutoTranslatedState: { - parameters: { - path: { - translationId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sorting is not supported for supported. It is automatically sorted from newest to oldest. */ - getTranslationHistory: { - parameters: { - path: { - translationId: number; - projectId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelTranslationHistoryModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - assignLabel: { - parameters: { - path: { - translationId: number; - labelId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["LabelModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - unassignLabel: { - parameters: { - path: { - translationId: number; - labelId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Set's "outdated" flag indicating the base translation was changed without updating current translation. */ - setOutdated: { - parameters: { - path: { - translationId: number; - state: boolean; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setTranslationState: { - parameters: { - path: { - translationId: number; - state: "TRANSLATED" | "REVIEWED"; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["TranslationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all used project namespaces. Response contains default (null) namespace if used. */ - getUsedNamespaces: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelUsedNamespaceModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all project users, who have permission to access project */ - getAllUsers: { - parameters: { - path: { - projectId: number; - }; - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - /** Filter users by id */ - filterId?: number[]; - /** Filter users without id */ - filterNotId?: number[]; - /** Filter users from agency */ - filterAgency?: number[]; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelUserAccountInProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - revokePermission: { - parameters: { - path: { - projectId: number; - userId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Removes user's direct project permission, explicitly set for the project. User will have now base permissions from organization or no permission if they're not organization member. */ - removeDirectProjectPermissions: { - parameters: { - path: { - userId: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Set user's granular (scope-based) direct project permission */ - setUsersPermissions: { - parameters: { - path: { - userId: number; - projectId: number; - }; - query: { - /** Granted scopes */ - scopes?: string[]; - languages?: number[]; - translateLanguages?: number[]; - viewLanguages?: number[]; - stateChangeLanguages?: number[]; - suggestLanguages?: number[]; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setUsersPermissions_1: { - parameters: { - path: { - userId: number; - permissionType: - | "NONE" - | "VIEW" - | "TRANSLATE" - | "REVIEW" - | "EDIT" - | "MANAGE"; - projectId: number; - }; - query: { - languages?: number[]; - translateLanguages?: number[]; - viewLanguages?: number[]; - stateChangeLanguages?: number[]; - suggestLanguages?: number[]; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - list: { - parameters: { - query: { - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - }; - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelWebhookConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - create: { - parameters: { - path: { - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["WebhookConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["WebhookConfigRequest"]; - }; - }; - }; - get_3: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["WebhookConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - update: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["WebhookConfigModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["WebhookConfigRequest"]; - }; - }; - }; - delete_1: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sends a test request to the webhook */ - test: { - parameters: { - path: { - id: number; - projectId: number; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["WebhookTestResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - identify: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["IdentifyRequest"]; - }; - }; - }; - report: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["BusinessEventReportRequest"]; - }; - }; - }; - /** Return server configuration properties documentation */ - get_19: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["DocItem"][]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - get_18: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelExportFormatModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns initial data required by the UI to load */ - get_17: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["InitialDataModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Get machine translation providers */ - getInfo_4: { - responses: { - /** OK */ - 200: { - content: { - "application/json": { - [ - key: string - ]: components["schemas"]["MachineTranslationProviderModel"]; - }; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getHierarchy: { - parameters: { - query: { - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["HierarchyItem"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getRoles: { - responses: { - /** OK */ - 200: { - content: { - "application/json": { - [key: string]: ( - | "translations.view" - | "translations.edit" - | "translations.suggest" - | "keys.edit" - | "screenshots.upload" - | "screenshots.delete" - | "screenshots.view" - | "activity.view" - | "languages.edit" - | "admin" - | "project.edit" - | "members.view" - | "members.edit" - | "translation-comments.add" - | "translation-comments.edit" - | "translation-comments.set-state" - | "translations.state-edit" - | "keys.view" - | "keys.delete" - | "keys.create" - | "batch-jobs.view" - | "batch-jobs.cancel" - | "translations.batch-by-tm" - | "translations.batch-machine" - | "content-delivery.manage" - | "content-delivery.publish" - | "webhooks.manage" - | "tasks.view" - | "tasks.edit" - | "prompts.view" - | "prompts.edit" - | "translation-labels.manage" - | "translation-labels.assign" - | "all.view" - )[]; - }; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - slackCommand: { - parameters: { - query: { - payload: components["schemas"]["SlackCommandDto"]; - }; - header: { - "X-Slack-Signature": string; - "X-Slack-Request-Timestamp": string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": string; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": string; - }; - }; - }; - /** - * This is triggered when bot event is triggered. E.g., when app is uninstalled from workspace. - * - * Heads up! The events have to be configured via Slack App configuration in Event Subscription section. - */ - fetchBotEvent: { - parameters: { - header: { - "X-Slack-Signature": string; - "X-Slack-Request-Timestamp": string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": { [key: string]: unknown }; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": string; - }; - }; - }; - /** This is triggered when interactivity event is triggered. E.g., when user clicks button provided in previous messages. */ - onInteractivityEvent: { - parameters: { - header: { - "X-Slack-Signature": string; - "X-Slack-Request-Timestamp": string; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": string; - }; - }; - }; - /** Sets finished state of the quick start guide */ - setFinishedState: { - parameters: { - path: { - finished: boolean; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["QuickStartModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Sets open state of the quick start guide */ - setOpenState: { - parameters: { - path: { - open: boolean; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["QuickStartModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Marks guide step as completed */ - completeGuideStep: { - parameters: { - path: { - step: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["QuickStartModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Pairs user account with slack account. */ - userLogin: { - parameters: { - query: { - /** The encrypted data about the desired connection between Slack account and Tolgee account */ - data: string; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** - * Returns information about the connection between Slack account and Tolgee account which user is performing. The flow is the following. - * - * 1. User executes slash command in Slack and gets link with encrypted Slack user ID, workspace ID and the Channel ID (to send success response to) - * - * 2. User gets opens the link and the Tolgee Platform frontend and it uses this endpoint to get the data info about the future connection - */ - getInfo_3: { - parameters: { - query: { - /** The encrypted data */ - data: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["SlackUserInfoModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - generateOrganizationSlug: { - responses: { - /** OK */ - 200: { - content: { - "application/json": string; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GenerateSlugDto"]; - }; - }; - }; - generateProjectSlug: { - responses: { - /** OK */ - 200: { - content: { - "application/json": string; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GenerateSlugDto"]; - }; - }; - }; - validateOrganizationSlug: { - parameters: { - path: { - slug: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": boolean; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - validateProjectSlug: { - parameters: { - path: { - slug: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": boolean; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns information about currently authenticated user. */ - getInfo: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Updates current user's profile information. */ - updateUser: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserUpdateRequestDto"]; - }; - }; - }; - updateUserOld: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserUpdateRequestDto"]; - }; - }; - }; - delete: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - get_16: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["UserPreferencesModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setLanguage: { - parameters: { - path: { - languageTag: string; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - setPreferredOrganization: { - parameters: { - path: { - organizationId: number; - }; - }; - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - getTasks_2: { - parameters: { - query: { - /** Filter tasks by state */ - filterState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; - /** Filter tasks without state */ - filterNotState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; - /** Filter tasks by assignee */ - filterAssignee?: number[]; - /** Filter tasks by type */ - filterType?: ("TRANSLATE" | "REVIEW")[]; - /** Filter tasks by id */ - filterId?: number[]; - /** Filter tasks without id */ - filterNotId?: number[]; - /** Filter tasks by project */ - filterProject?: number[]; - /** Filter tasks without project */ - filterNotProject?: number[]; - /** Filter tasks by language */ - filterLanguage?: number[]; - /** Filter tasks by key */ - filterKey?: number[]; - /** Filter tasks by agency */ - filterAgency?: number[]; - /** Exclude tasks which were closed before specified timestamp */ - filterNotClosedBefore?: number; - /** Zero-based page index (0..N) */ - page?: number; - /** The size of the page to be returned */ - size?: number; - /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ - sort?: string[]; - search?: string; - }; - }; - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PagedModelTaskWithProjectModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - uploadAvatar: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "multipart/form-data": { - /** Format: binary */ - avatar: string; - }; - }; - }; - }; - removeAvatar: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PrivateUserAccountModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Generates new JWT token permitted to sensitive operations */ - getSuperToken: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SuperTokenRequest"]; - }; - }; - }; - /** Returns the organization that manages a given user or null */ - getManagedBy: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PrivateOrganizationModel"]; - }; - }; - /** No SSO configuration available for this user */ - 204: never; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Regenerates multi-factor authentication recovery codes */ - regenerateRecoveryCodes: { - responses: { - /** OK */ - 200: { - content: { - "application/json": string[]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserMfaRecoveryRequestDto"]; - }; - }; - }; - /** Enables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. */ - enableMfa: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserTotpEnableRequestDto"]; - }; - }; - }; - /** Disables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. */ - disableMfa: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserTotpDisableRequestDto"]; - }; - }; - }; - /** Updates current user's password. Invalidates all previous sessions upon success. */ - updateUserPassword: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["JwtAuthenticationResponse"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserUpdatePasswordRequestDto"]; - }; - }; - }; - /** Resends email verification email to currently authenticated user. */ - sendEmailVerification: { - responses: { - /** OK */ - 200: unknown; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns all organizations owned only by current user */ - getAllSingleOwnedOrganizations: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["CollectionModelSimpleOrganizationModel"]; - }; - }; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; - /** Returns information about sso configuration affecting the user. */ - getSso: { - responses: { - /** OK */ - 200: { - content: { - "application/json": components["schemas"]["PublicSsoTenantModel"]; - }; - }; - /** No SSO configuration available for this user */ - 204: never; - /** Bad Request */ - 400: { - content: { - "application/json": string; - }; - }; - /** Unauthorized */ - 401: { - content: { - "application/json": string; - }; - }; - /** Forbidden */ - 403: { - content: { - "application/json": string; - }; - }; - /** Not Found */ - 404: { - content: { - "application/json": string; - }; - }; - }; - }; + put: operations["regenerateRecoveryCodes"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/mfa/totp": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Enable TOTP + * @description Enables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. + */ + put: operations["enableMfa"]; + post?: never; + /** + * Disable TOTP + * @description Disables TOTP-based two-factor authentication. Invalidates all previous sessions upon success. + */ + delete: operations["disableMfa"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/password": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Update password + * @description Updates current user's password. Invalidates all previous sessions upon success. + */ + put: operations["updateUserPassword"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/send-email-verification": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Resend email verification + * @description Resends email verification email to currently authenticated user. + */ + post: operations["sendEmailVerification"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/single-owned-organizations": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all single owned organizations + * @description Returns all organizations owned only by current user + */ + get: operations["getAllSingleOwnedOrganizations"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v2/user/sso": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get information about SSO configuration + * @description Returns information about sso configuration affecting the user. + */ + get: operations["getSso"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; +} +export type webhooks = Record; +export interface components { + schemas: { + AcceptAuthProviderChangeRequest: { + id: string; + }; + AiPlaygroundResultModel: { + contextDescription?: string; + /** Format: int64 */ + keyId: number; + /** Format: int64 */ + languageId: number; + translation?: string; + }; + AiPlaygroundResultRequest: { + keys: number[]; + languages: number[]; + }; + AnnouncementDto: { + /** @enum {string} */ + type: "FEATURE_BATCH_OPERATIONS" | "FEATURE_MT_FORMALITY" | "FEATURE_CONTENT_DELIVERY_AND_WEBHOOKS" | "NEW_PRICING" | "FEATURE_AI_CUSTOMIZATION" | "FEATURE_VISUAL_EDITOR" | "FEATURE_CLI_2" | "FEATURE_TASKS" | "FEATURE_LLM_PROVIDERS_AND_PLAYGROUND" | "FEATURE_GLOSSARIES_AND_PLAYGROUND" | "FEATURE_LABELS" | "FEATURE_SUGGESTIONS_AND_LABELS" | "FEATURE_IMPROVED_FIGMA_ANDROID_AND_IOS"; + }; + ApiKeyModel: { + /** @description Description */ + description: string; + /** + * Format: int64 + * @description Timestamp of API key expiraion + */ + expiresAt?: number; + /** + * Format: int64 + * @description ID of the API key + */ + id: number; + /** + * Format: int64 + * @description Timestamp of API key last usage + */ + lastUsedAt?: number; + /** + * Format: int64 + * @description Api key's project ID + */ + projectId: number; + /** @description Api key's project name */ + projectName: string; + /** + * @description Api key's permission scopes + * @example [ + * "screenshots.upload", + * "screenshots.delete", + * "translations.edit", + * "screenshots.view", + * "translations.view", + * "keys.edit" + * ] + */ + scopes: string[]; + /** @description Full name of user owner */ + userFullName?: string; + /** @description Username of user owner */ + username?: string; + }; + ApiKeyPermissionsModel: { + project: components["schemas"]["SimpleProjectModel"]; + /** + * Format: int64 + * @description The API key's project id or the one provided as query param + */ + projectId: number; + /** + * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. + * @example [ + * "KEYS_EDIT", + * "TRANSLATIONS_VIEW" + * ] + */ + scopes: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign" | "all.view")[]; + /** + * @description List of languages user can change state to. If null, changing state of all language values is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + stateChangeLanguageIds?: number[]; + /** + * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + suggestLanguageIds?: number[]; + /** + * @description List of languages user can translate to. If null, all languages editing is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + translateLanguageIds?: number[]; + /** + * @description The user's permission type. This field is null if user has assigned granular permissions or if returning API key's permissions + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** + * @description List of languages user can view. If null, all languages view is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + viewLanguageIds?: number[]; + }; + ApiKeyWithLanguagesModel: { + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** Format: int64 */ + lastUsedAt?: number; + /** + * @deprecated + * @description Languages for which user has translate permission. + */ + permittedLanguageIds?: number[]; + /** Format: int64 */ + projectId: number; + projectName: string; + scopes: string[]; + userFullName?: string; + username?: string; + }; + AuthInfoModel: { + isReadOnly: boolean; + }; + AuthMethodsDTO: { + github: components["schemas"]["OAuthPublicConfigDTO"]; + google: components["schemas"]["OAuthPublicConfigDTO"]; + oauth2: components["schemas"]["OAuthPublicExtendsConfigDTO"]; + ssoGlobal: components["schemas"]["SsoGlobalPublicConfigDTO"]; + ssoOrganizations: components["schemas"]["SsoOrganizationsPublicConfigDTO"]; + }; + AuthProviderDto: { + /** @enum {string} */ + authType?: "GOOGLE" | "GITHUB" | "OAUTH2" | "SSO" | "SSO_GLOBAL"; + id?: string; + ssoDomain?: string; + }; + AutoTranslationConfigModel: { + /** @description If true, import will trigger batch operation to translate the new new keys. + * It includes also the data imported via CLI, Figma, or other integrations using batch key import. */ + enableForImport: boolean; + /** Format: int64 */ + languageId?: number; + /** @description If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first. */ + usingMachineTranslation: boolean; + /** @description If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found */ + usingTranslationMemory: boolean; + }; + AutoTranslationSettingsDto: { + /** @description If true, import will trigger batch operation to translate the new new keys. + * It includes also the data imported via CLI, Figma, or other integrations using batch key import. */ + enableForImport: boolean; + /** Format: int64 */ + languageId?: number; + /** @description If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first. */ + usingMachineTranslation: boolean; + /** @description If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found */ + usingTranslationMemory: boolean; + }; + Avatar: { + large: string; + thumbnail: string; + }; + AverageProportionalUsageItemModel: { + total: number; + unusedQuantity: number; + usedQuantity: number; + usedQuantityOverPlan: number; + }; + AzureContentStorageConfigDto: { + connectionString?: string; + containerName: string; + }; + AzureContentStorageConfigModel: { + containerName?: string; + }; + BatchJobModel: { + /** + * Format: int64 + * @description The activity revision id, that stores the activity details of the job + */ + activityRevisionId?: number; + /** @description The user who started the job */ + author?: components["schemas"]["SimpleUserAccountModel"]; + /** + * Format: int64 + * @description The time when the job created + */ + createdAt: number; + /** @description If the job failed, this is the error message */ + errorMessage?: string; + /** + * Format: int64 + * @description Batch job id + */ + id: number; + /** + * Format: int32 + * @description Total items, that have been processed so far + */ + progress: number; + /** + * @description Status of the batch job + * @enum {string} + */ + status: "PENDING" | "RUNNING" | "SUCCESS" | "FAILED" | "CANCELLED" | "DEBOUNCED"; + /** + * Format: int32 + * @description Total items + */ + totalItems: number; + /** + * @description Type of the batch job + * @enum {string} + */ + type: "AI_PLAYGROUND_TRANSLATE" | "PRE_TRANSLATE_BT_TM" | "MACHINE_TRANSLATE" | "AUTO_TRANSLATE" | "DELETE_KEYS" | "SET_TRANSLATIONS_STATE" | "CLEAR_TRANSLATIONS" | "COPY_TRANSLATIONS" | "TAG_KEYS" | "UNTAG_KEYS" | "SET_KEYS_NAMESPACE" | "AUTOMATION" | "BILLING_TRIAL_EXPIRATION_NOTICE" | "ASSIGN_TRANSLATION_LABEL" | "UNASSIGN_TRANSLATION_LABEL"; + /** + * Format: int64 + * @description The time when the job was last updated (status change) + */ + updatedAt: number; + }; + BigMetaDto: { + /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ + relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; + }; + BranchMergeChangeModel: { + /** @description Languages changed by the merge */ + changedTranslations?: string[]; + /** + * @description Effective resolution used to compute the merged key + * @enum {string} + */ + effectiveResolution?: "SOURCE" | "TARGET"; + /** + * Format: int64 + * @description Branch merge change id + */ + id: number; + /** @description Merged branch key (post-merge result) */ + mergedKey?: components["schemas"]["BranchMergeKeyModel"]; + /** + * @description Type of key conflict resolution + * @enum {string} + */ + resolution?: "SOURCE" | "TARGET"; + /** @description Source branch key */ + sourceKey?: components["schemas"]["BranchMergeKeyModel"]; + /** @description Target branch key */ + targetKey?: components["schemas"]["BranchMergeKeyModel"]; + /** + * @description Change type + * @enum {string} + */ + type: "ADD" | "UPDATE" | "DELETE" | "CONFLICT"; + }; + BranchMergeConflictModel: { + /** @description Languages changed by the merge */ + changedTranslations?: string[]; + /** + * @description Effective resolution used to compute the merged key + * @enum {string} + */ + effectiveResolution?: "SOURCE" | "TARGET"; + /** + * Format: int64 + * @description Branch merge session id + */ + id: number; + /** @description Merged branch key (post-merge result) */ + mergedKey?: components["schemas"]["BranchMergeKeyModel"]; + /** + * @description Type of key conflict resolution + * @enum {string} + */ + resolution?: "SOURCE" | "TARGET"; + /** @description Source branch key */ + sourceKey: components["schemas"]["BranchMergeKeyModel"]; + /** @description Target branch key */ + targetKey: components["schemas"]["BranchMergeKeyModel"]; + }; + BranchMergeKeyModel: { + /** @description Key description */ + keyDescription?: string; + /** + * Format: int64 + * @description Key id + */ + keyId: number; + /** @description Whether key uses plural forms */ + keyIsPlural: boolean; + /** @description Key name */ + keyName: string; + /** @description Translations indexed by language tag */ + translations: { + [key: string]: components["schemas"]["BranchMergeTranslationModel"]; + }; + }; + BranchMergeModel: { + /** + * Format: int64 + * @description Branch merge id + */ + id: number; + /** + * Format: int32 + * @description Key additions count + */ + keyAdditionsCount: number; + /** + * Format: int32 + * @description Key deletions count + */ + keyDeletionsCount: number; + /** + * Format: int32 + * @description Key updates count + */ + keyModificationsCount: number; + /** + * Format: int32 + * @description Key resolved conflicts count + */ + keyResolvedConflictsCount: number; + /** + * Format: int32 + * @description Key unresoled conflicts count + */ + keyUnresolvedConflictsCount: number; + /** + * Format: int64 + * @description Date of merge. If null, merge was not applied yet + */ + mergedAt?: number; + /** @description Is merge outdated. If true, it means, that either source or target branch data were changed */ + outdated: boolean; + /** + * Format: int64 + * @description Source branch id + */ + sourceBranchId: number; + /** @description Source branch name */ + sourceBranchName: string; + /** + * Format: int64 + * @description Target branch id + */ + targetBranchId: number; + /** @description Target branch name */ + targetBranchName: string; + }; + BranchMergeRefModel: { + /** + * Format: int64 + * @description Branch merge ID + */ + id: number; + /** + * Format: int64 + * @description Date of merge. If null, merge was not applied yet + */ + mergedAt?: number; + /** @description Target branch name */ + targetBranchName: string; + }; + BranchMergeTranslationModel: { + /** + * Format: int64 + * @description Translation id + */ + id?: number; + /** @description Language tag */ + language: string; + /** @description Whether translation is outdated */ + outdated: boolean; + /** + * @description Translation state + * @enum {string} + */ + state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; + /** @description Translation text */ + text?: string; + }; + BranchModel: { + /** @description Indicates whether this branch is currently active (visible and usable for editing translations and keys). Inactive branches are hidden but still stored in the project. */ + active: boolean; + /** @description User who created or owns this branch. Can be null for system-generated branches. */ + author?: components["schemas"]["SimpleUserAccountModel"]; + /** + * Format: int64 + * @description Date of branch creation + */ + createdAt?: number; + /** + * Format: int64 + * @description Unique identifier of the branch + */ + id: number; + /** @description Is branch default */ + isDefault: boolean; + /** @description Is branch protected */ + isProtected: boolean; + /** @description Ongoing (or applied) merge operation related to this branch. Null when the branch is not being merged yet */ + merge?: components["schemas"]["BranchMergeRefModel"]; + /** @description Human-readable name of the branch. Similar to Git branch names, it identifies the feature or purpose of this branch (e.g. 'feature-login-page') */ + name: string; + /** @description Name of the branch this branch was created from */ + originBranchName?: string; + }; + BusinessEventReportRequest: { + anonymousUserId?: string; + data?: { + [key: string]: unknown; + }; + eventName: string; + /** Format: int64 */ + organizationId?: number; + /** Format: int64 */ + projectId?: number; + }; + CalculateScopeRequest: { + keys: number[]; + /** Format: int64 */ + languageId: number; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + }; + ClearTranslationsRequest: { + keyIds: number[]; + languageIds: number[]; + }; + CollectionModelAiPlaygroundResultModel: { + _embedded?: { + results?: components["schemas"]["AiPlaygroundResultModel"][]; + }; + }; + CollectionModelAutoTranslationConfigModel: { + _embedded?: { + configs?: components["schemas"]["AutoTranslationConfigModel"][]; + }; + }; + CollectionModelBatchJobModel: { + _embedded?: { + batchJobs?: components["schemas"]["BatchJobModel"][]; + }; + }; + CollectionModelExportFormatModel: { + _embedded?: { + exportFormats?: components["schemas"]["ExportFormatModel"][]; + }; + }; + CollectionModelGlossaryLanguageDto: { + _embedded?: { + glossaryLanguageDtoList?: components["schemas"]["GlossaryLanguageDto"][]; + }; + }; + CollectionModelGlossaryTermHighlightModel: { + _embedded?: { + glossaryHighlights?: components["schemas"]["GlossaryTermHighlightModel"][]; + }; + }; + CollectionModelImportNamespaceModel: { + _embedded?: { + namespaces?: components["schemas"]["ImportNamespaceModel"][]; + }; + }; + CollectionModelKeyDisabledLanguagesModel: { + _embedded?: { + keys?: components["schemas"]["KeyDisabledLanguagesModel"][]; + }; + }; + CollectionModelKeyModel: { + _embedded?: { + keys?: components["schemas"]["KeyModel"][]; + }; + }; + CollectionModelKeyWithBaseTranslationModel: { + _embedded?: { + keys?: components["schemas"]["KeyWithBaseTranslationModel"][]; + }; + }; + CollectionModelKeyWithDataModel: { + _embedded?: { + keys?: components["schemas"]["KeyWithDataModel"][]; + }; + }; + CollectionModelLanguageAiPromptCustomizationModel: { + _embedded?: { + promptCustomizations?: components["schemas"]["LanguageAiPromptCustomizationModel"][]; + }; + }; + CollectionModelLanguageConfigItemModel: { + _embedded?: { + languageConfigs?: components["schemas"]["LanguageConfigItemModel"][]; + }; + }; + CollectionModelLanguageInfoModel: { + _embedded?: { + languageInfos?: components["schemas"]["LanguageInfoModel"][]; + }; + }; + CollectionModelLanguageModel: { + _embedded?: { + languages?: components["schemas"]["LanguageModel"][]; + }; + }; + CollectionModelLlmProviderModel: { + _embedded?: { + providers?: components["schemas"]["LlmProviderModel"][]; + }; + }; + CollectionModelLlmProviderSimpleModel: { + _embedded?: { + providers?: components["schemas"]["LlmProviderSimpleModel"][]; + }; + }; + CollectionModelLong: { + _embedded?: { + longList?: number[]; + }; + }; + CollectionModelOrganizationInvitationModel: { + _embedded?: { + organizationInvitations?: components["schemas"]["OrganizationInvitationModel"][]; + }; + }; + CollectionModelProjectInvitationModel: { + _embedded?: { + invitations?: components["schemas"]["ProjectInvitationModel"][]; + }; + }; + CollectionModelProjectLockModel: { + _embedded?: { + projectLockModelList?: components["schemas"]["ProjectLockModel"][]; + }; + }; + CollectionModelProjectTransferOptionModel: { + _embedded?: { + transferOptions?: components["schemas"]["ProjectTransferOptionModel"][]; + }; + }; + CollectionModelQueueItemModel: { + _embedded?: { + queueItemModelList?: components["schemas"]["QueueItemModel"][]; + }; + }; + CollectionModelScreenshotModel: { + _embedded?: { + screenshots?: components["schemas"]["ScreenshotModel"][]; + }; + }; + CollectionModelSimpleOrganizationModel: { + _embedded?: { + organizations?: components["schemas"]["SimpleOrganizationModel"][]; + }; + }; + CollectionModelSimpleProjectModel: { + _embedded?: { + projects?: components["schemas"]["SimpleProjectModel"][]; + }; + }; + CollectionModelUsedNamespaceModel: { + _embedded?: { + namespaces?: components["schemas"]["UsedNamespaceModel"][]; + }; + }; + CollectionModelWorkspaceModel: { + _embedded?: { + workspaces?: components["schemas"]["WorkspaceModel"][]; + }; + }; + ComplexEditKeyDto: { + /** @description Branch of the key. If not provided, default branch will be used */ + branch?: string; + /** @description Custom values of the key. If not provided, custom values won't be modified */ + custom?: { + [key: string]: unknown; + }; + /** @description Description of the key. It's also used as a context for Tolgee AI translator */ + description?: string; + /** @description If key is pluralized. If it will be reflected in the editor. If null, value won't be modified. */ + isPlural?: boolean; + /** @description Name of the key */ + name: string; + namespace?: string; + /** @description The argument name for the plural. If null, value won't be modified. If isPlural is false, this value will be ignored. */ + pluralArgName?: string; + /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ + relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; + /** @description IDs of screenshots to delete */ + screenshotIdsToDelete?: number[]; + /** + * @deprecated + * @description Ids of screenshots uploaded with /v2/image-upload endpoint + */ + screenshotUploadedImageIds?: number[]; + screenshotsToAdd?: components["schemas"]["KeyScreenshotDto"][]; + /** @description Translation states to update, if not provided states won't be modified */ + states?: { + [key: string]: "TRANSLATED" | "REVIEWED"; + }; + /** @description Tags of the key. If not provided tags won't be modified */ + tags?: string[]; + /** @description Translations to update */ + translations?: { + [key: string]: string; + }; + /** @description If true, it will fail with 400 (with code plural_forms_data_loss) if plural is disabled and there are plural forms, which would be lost by the action. You can get rid of this warning by setting this value to false. */ + warnOnDataLoss?: boolean; + }; + ComplexTagKeysRequest: { + /** @description Include keys filtered by the provided key information */ + filterKeys?: components["schemas"]["KeyId"][]; + /** @description Exclude keys filtered by the provided key information */ + filterKeysNot?: components["schemas"]["KeyId"][]; + /** @description Include keys filtered by the provided tag information. This filter supports wildcards. For example, `draft-*` will match all tags starting with `draft-`. */ + filterTag?: string[]; + /** @description Exclude keys filtered by the provided tag information. This filter supports wildcards. For example, `draft-*` will match all tags starting with `draft-`. */ + filterTagNot?: string[]; + /** @description Specified tags will be added to filtered keys */ + tagFiltered?: string[]; + /** @description Specified tags will be added to keys not filtered by any of the specified filters. */ + tagOther?: string[]; + /** @description Specified tags will be removed from filtered keys. It supports wildcards. For example, `draft-*` will remove all tags starting with `draft-`. */ + untagFiltered?: string[]; + /** @description Specified tags will be removed from keys not filtered by any of the specified filters. It supports wildcards. For example, `draft-*` will remove all tags starting with `draft-`. */ + untagOther?: string[]; + }; + ComputedPermissionModel: { + /** @enum {string} */ + origin: "ORGANIZATION_BASE" | "DIRECT" | "ORGANIZATION_OWNER" | "NONE" | "SERVER_ADMIN" | "SERVER_SUPPORTER"; + permissionModel?: components["schemas"]["PermissionModel"]; + /** + * @deprecated + * @description Deprecated (use translateLanguageIds). + * + * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + permittedLanguageIds?: number[]; + /** + * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. + * @example [ + * "KEYS_EDIT", + * "TRANSLATIONS_VIEW" + * ] + */ + scopes: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign" | "all.view")[]; + /** + * @description List of languages user can change state to. If null, changing state of all language values is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + stateChangeLanguageIds?: number[]; + /** + * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + suggestLanguageIds?: number[]; + /** + * @description List of languages user can translate to. If null, all languages editing is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + translateLanguageIds?: number[]; + /** + * @description The user's permission type. This field is null if uses granular permissions + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** + * @description List of languages user can view. If null, all languages view is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + viewLanguageIds?: number[]; + }; + ConnectToSlackDto: { + code: string; + }; + ConnectToSlackUrlModel: { + url: string; + }; + ContentDeliveryConfigModel: { + autoPublish: boolean; + /** @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). + * + * e.g. Key hello will be exported as <b>hello</b> */ + escapeHtml?: boolean; + /** @description This is a template that defines the structure of the resulting .zip file content. + * + * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, + * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * + * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, + * the English translations of the `home` namespace will be stored in `home/en.json`. + * + * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * + * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` + * but in Android format. (e.g., en-rUS) + * */ + fileStructureTemplate?: string; + /** @description Filter translations with branch. + * + * By default, default branch is exported. */ + filterBranch?: string; + /** @description Filter key IDs to be contained in export */ + filterKeyId?: number[]; + /** @description Filter key IDs not to be contained in export */ + filterKeyIdNot?: number[]; + /** @description Filter keys with prefix */ + filterKeyPrefix?: string; + /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ + filterNamespace?: string[]; + /** @description Filter translations with state. By default, all states except untranslated is exported. */ + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + /** @description Filter keys tagged by. + * + * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ + filterTag?: string; + /** @description Filter keys tagged by one of provided tags */ + filterTagIn?: string[]; + /** @description Filter keys not tagged by one of provided tags */ + filterTagNotIn?: string[]; + /** + * @description Format to export to + * @enum {string} + */ + format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS" | "ANDROID_SDK" | "APPLE_SDK"; + /** Format: int64 */ + id: number; + /** + * @description Languages to be contained in export. + * + * If null, all languages are exported + * @example en + */ + languages?: string[]; + /** Format: int64 */ + lastPublished?: number; + lastPublishedFiles: string[]; + /** + * @description Message format to be used for export. + * + * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * + * This property is honored only for generic formats like JSON or YAML. + * For specific formats like `YAML_RUBY` it's ignored. + * @enum {string} + */ + messageFormat?: "C_SPRINTF" | "PHP_SPRINTF" | "JAVA_STRING_FORMAT" | "APPLE_SPRINTF" | "RUBY_SPRINTF" | "I18NEXT" | "ICU" | "PYTHON_PERCENT"; + name: string; + pruneBeforePublish: boolean; + publicUrl?: string; + slug: string; + storage?: components["schemas"]["ContentStorageModel"]; + /** @description Delimiter to structure file content. + * + * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. + * + * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), + * specific formats like `YAML_RUBY` don't honor this parameter. */ + structureDelimiter?: string; + /** @description If true, for structured formats (like JSON) arrays are supported. + * + * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ + supportArrays: boolean; + }; + ContentDeliveryConfigRequest: { + /** @description If true, data are published to the content delivery automatically after each change. */ + autoPublish: boolean; + /** + * Format: int64 + * @description Id of custom storage to use for content delivery. If null, default server storage is used. Tolgee Cloud provides default Content Storage. + */ + contentStorageId?: number; + /** @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). + * + * e.g. Key hello will be exported as <b>hello</b> */ + escapeHtml?: boolean; + /** @description This is a template that defines the structure of the resulting .zip file content. + * + * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, + * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * + * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, + * the English translations of the `home` namespace will be stored in `home/en.json`. + * + * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * + * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` + * but in Android format. (e.g., en-rUS) + * */ + fileStructureTemplate?: string; + /** @description Filter translations with branch. + * + * By default, default branch is exported. */ + filterBranch?: string; + /** @description Filter key IDs to be contained in export */ + filterKeyId?: number[]; + /** @description Filter key IDs not to be contained in export */ + filterKeyIdNot?: number[]; + /** @description Filter keys with prefix */ + filterKeyPrefix?: string; + /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ + filterNamespace?: string[]; + /** @description Filter translations with state. By default, all states except untranslated is exported. */ + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + /** @description Filter keys tagged by. + * + * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ + filterTag?: string; + /** @description Filter keys tagged by one of provided tags */ + filterTagIn?: string[]; + /** @description Filter keys not tagged by one of provided tags */ + filterTagNotIn?: string[]; + /** + * @description Format to export to + * @enum {string} + */ + format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS" | "ANDROID_SDK" | "APPLE_SDK"; + /** + * @description Languages to be contained in export. + * + * If null, all languages are exported + * @example en + */ + languages?: string[]; + /** + * @description Message format to be used for export. + * + * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * + * This property is honored only for generic formats like JSON or YAML. + * For specific formats like `YAML_RUBY` it's ignored. + * @enum {string} + */ + messageFormat?: "C_SPRINTF" | "PHP_SPRINTF" | "JAVA_STRING_FORMAT" | "APPLE_SPRINTF" | "RUBY_SPRINTF" | "I18NEXT" | "ICU" | "PYTHON_PERCENT"; + name: string; + /** @description Whether the data in the CDN should be pruned before publishing new data. + * + * In some cases, you might want to keep the data in the storage and only replace the files created by following publish operation. */ + pruneBeforePublish: boolean; + /** @description Tolgee uses a custom slug as a directory name for content storage and public content delivery URL. It is only applicable for custom storage. This field needs to be kept null for Tolgee Cloud content storage or global server storage on self-hosted instances. + * + * Slag has to match following regular expression: `^[a-z0-9]+(?:-[a-z0-9]+)*$`. + * + * If null is provided for update operation, slug will be assigned with generated value. */ + slug?: string; + /** @description Delimiter to structure file content. + * + * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. + * + * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), + * specific formats like `YAML_RUBY` don't honor this parameter. */ + structureDelimiter?: string; + /** @description If true, for structured formats (like JSON) arrays are supported. + * + * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ + supportArrays: boolean; + }; + ContentStorageModel: { + azureContentStorageConfig?: components["schemas"]["AzureContentStorageConfigModel"]; + /** Format: int64 */ + id: number; + name: string; + publicUrlPrefix?: string; + s3ContentStorageConfig?: components["schemas"]["S3ContentStorageConfigModel"]; + }; + ContentStorageRequest: { + azureContentStorageConfig?: components["schemas"]["AzureContentStorageConfigDto"]; + name: string; + publicUrlPrefix?: string; + s3ContentStorageConfig?: components["schemas"]["S3ContentStorageConfigDto"]; + }; + CopyTranslationRequest: { + keyIds: number[]; + /** Format: int64 */ + sourceLanguageId: number; + targetLanguageIds: number[]; + }; + CreateApiKeyDto: { + /** @description Description of the project API key */ + description?: string; + /** + * Format: int64 + * @description Expiration date in epoch format (milliseconds). When null key never expires. + * @example 1661172869000 + */ + expiresAt?: number; + /** Format: int64 */ + projectId: number; + scopes: string[]; + }; + CreateBranchModel: { + /** + * @description Branch name + * @example feature/new-branch + */ + name: string; + /** + * Format: int64 + * @description Origin branch id + */ + originBranchId: number; + }; + CreateGlossaryRequest: { + /** @description IDs of projects to be assigned to glossary */ + assignedProjectIds: number[]; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + baseLanguageTag: string; + /** + * @description Glossary name + * @example My glossary + */ + name: string; + }; + CreateGlossaryTermWithTranslationRequest: { + /** + * @description A detailed explanation or definition of the glossary term + * @example It's trademark + */ + description: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm: boolean; + /** @description When true, this term will have the same translation across all target languages */ + flagNonTranslatable: boolean; + text: string; + }; + CreateKeyDto: { + branch?: string; + /** + * @description Description of the key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + /** @description If key is pluralized. If it will be reflected in the editor */ + isPlural: boolean; + /** @description Name of the key */ + name: string; + namespace?: string; + /** @description The argument name for the plural. If null, value will be guessed from the values provided in translations. */ + pluralArgName?: string; + /** @description Keys in the document used as a context for machine translation. Keys in the same order as they appear in the document. The order is important! We are using it for graph distance calculation. */ + relatedKeysInOrder?: components["schemas"]["RelatedKeyDto"][]; + /** + * @deprecated + * @description Ids of screenshots uploaded with /v2/image-upload endpoint + */ + screenshotUploadedImageIds?: number[]; + screenshots?: components["schemas"]["KeyScreenshotDto"][]; + /** @description Translation states to update, if not provided states won't be modified */ + states?: { + [key: string]: "TRANSLATED" | "REVIEWED"; + }; + tags?: string[]; + translations?: { + [key: string]: string; + }; + }; + CreateMultipleTasksRequest: { + tasks: components["schemas"]["CreateTaskRequest"][]; + }; + CreatePatDto: { + /** @description Description of the PAT */ + description: string; + /** + * Format: int64 + * @description Expiration date in epoch format (milliseconds). When null, token never expires. + * @example 1661172869000 + */ + expiresAt?: number; + }; + CreateProjectRequest: { + /** @description Tag of one of created languages, to select it as base language. If not provided, first language will be selected as base. */ + baseLanguageTag?: string; + /** @description Whether to use ICU placeholder visualization in the editor and it's support. */ + icuPlaceholders: boolean; + languages: components["schemas"]["LanguageRequest"][]; + name: string; + /** + * Format: int64 + * @description Organization to create the project in + */ + organizationId: number; + /** @description Slug of your project used in url e.g. "/v2/projects/what-a-project". If not provided, it will be generated */ + slug?: string; + }; + CreateProviderRequest: { + authorizationUri: string; + clientId: string; + clientSecret: string; + domain: string; + enabled: boolean; + force: boolean; + tokenUri: string; + }; + CreateTaskRequest: { + assignees: number[]; + description: string; + /** + * Format: int64 + * @description Due to date in epoch format (milliseconds). + * @example 1661172869000 + */ + dueDate?: number; + keys: number[]; + /** + * Format: int64 + * @description Id of language, this task is attached to. + * @example 1 + */ + languageId: number; + name?: string; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + }; + CreateTranslationSuggestionRequest: { + translation: string; + }; + CreateUpdateGlossaryTermResponse: { + term: components["schemas"]["SimpleGlossaryTermModel"]; + translation?: components["schemas"]["GlossaryTermTranslationModel"]; + }; + CreditBalanceModel: { + /** Format: int64 */ + bucketSize: number; + /** Format: int64 */ + creditBalance: number; + /** + * Format: int64 + * @deprecated + * @description Customers were able to buy extra credits separately in the past. + * + * This option is not available anymore and this field is kept only for backward compatibility purposes and is always 0. + */ + extraCreditBalance: number; + }; + CurrentUsageItemModel: { + /** Format: int64 */ + current: number; + /** Format: int64 */ + included: number; + /** Format: int64 */ + limit: number; + }; + CurrentUsageModel: { + /** @description For MT credits, the values are in full credits. Not Cents. */ + credits: components["schemas"]["CurrentUsageItemModel"]; + isPayAsYouGo: boolean; + keys: components["schemas"]["CurrentUsageItemModel"]; + seats: components["schemas"]["CurrentUsageItemModel"]; + strings: components["schemas"]["CurrentUsageItemModel"]; + }; + DeleteKeysDto: { + /** @description IDs of keys to delete */ + ids: number[]; + }; + DeleteKeysRequest: { + keyIds: number[]; + }; + DeleteMultipleGlossaryTermsRequest: { + termIds: number[]; + }; + DocItem: { + description?: string; + displayName?: string; + name: string; + }; + DomainRequest: { + domain: string; + state: string; + }; + DryRunMergeBranchRequest: { + /** + * Format: int64 + * @description Source branch id + */ + sourceBranchId: number; + }; + EditKeyDto: { + /** @description The branch of the key. (When empty or null default branch will be used) */ + branch?: string; + /** + * @description Description of the key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + name: string; + namespace?: string; + }; + EditProjectRequest: { + /** Format: int64 */ + baseLanguageId?: number; + /** Format: int64 */ + defaultNamespaceId?: number; + description?: string; + /** @description Whether to use ICU placeholder visualization in the editor and it's support. */ + icuPlaceholders: boolean; + name: string; + slug?: string; + /** + * @description Suggestions can be DISABLED (hidden from UI) or ENABLED (visible in the UI) + * @enum {string} + */ + suggestionsMode: "DISABLED" | "ENABLED"; + /** + * @description Protects reviewed translations, so translators can't change them by default and others will receive warning. + * @enum {string} + */ + translationProtection: "NONE" | "PROTECT_REVIEWED"; + useNamespaces: boolean; + }; + EeSubscriptionModel: { + cancelAtPeriodEnd: boolean; + /** Format: int64 */ + currentPeriodEnd?: number; + /** Format: int64 */ + currentUserCount: number; + enabledFeatures: ("GRANULAR_PERMISSIONS" | "PRIORITIZED_FEATURE_REQUESTS" | "PREMIUM_SUPPORT" | "DEDICATED_SLACK_CHANNEL" | "ASSISTED_UPDATES" | "DEPLOYMENT_ASSISTANCE" | "BACKUP_CONFIGURATION" | "TEAM_TRAINING" | "ACCOUNT_MANAGER" | "STANDARD_SUPPORT" | "PROJECT_LEVEL_CONTENT_STORAGES" | "WEBHOOKS" | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" | "AI_PROMPT_CUSTOMIZATION" | "SLACK_INTEGRATION" | "TASKS" | "SSO" | "ORDER_TRANSLATION" | "GLOSSARY" | "TRANSLATION_LABELS")[]; + isPayAsYouGo: boolean; + /** Format: date-time */ + lastValidCheck?: string; + licenseKey: string; + name: string; + nonCommerical: boolean; + /** @enum {string} */ + status: "ACTIVE" | "CANCELED" | "PAST_DUE" | "UNPAID" | "ERROR" | "TRIALING" | "KEY_USED_BY_ANOTHER_INSTANCE" | "UNKNOWN"; + }; + EntityDescriptionWithRelations: { + data: { + [key: string]: unknown; + }; + entityClass: string; + /** Format: int64 */ + entityId: number; + }; + ErrorResponseBody: { + code: string; + params?: unknown[]; + }; + ErrorResponseTyped: { + /** @enum {string} */ + code: "unauthenticated" | "api_access_forbidden" | "api_key_not_found" | "invalid_api_key" | "invalid_project_api_key" | "project_api_key_expired" | "bad_credentials" | "mfa_enabled" | "invalid_otp_code" | "mfa_not_enabled" | "can_not_revoke_own_permissions" | "data_corrupted" | "invitation_code_does_not_exist_or_expired" | "language_tag_exists" | "language_name_exists" | "language_not_found" | "operation_not_permitted" | "registrations_not_allowed" | "project_not_found" | "resource_not_found" | "scope_not_found" | "key_exists" | "third_party_auth_error_message" | "third_party_auth_no_email" | "third_party_auth_non_matching_email" | "third_party_auth_no_sub" | "third_party_auth_unknown_error" | "email_already_verified" | "third_party_unauthorized" | "third_party_google_workspace_mismatch" | "third_party_switch_initiated" | "third_party_switch_conflict" | "username_already_exists" | "username_or_password_invalid" | "user_already_has_permissions" | "user_already_has_role" | "user_not_found" | "file_not_image" | "file_too_big" | "invalid_timestamp" | "email_not_verified" | "missing_callback_url" | "invalid_jwt_token" | "expired_jwt_token" | "general_jwt_error" | "cannot_find_suitable_address_part" | "slug_not_unique" | "user_is_not_member_of_organization" | "organization_has_no_other_owner" | "user_has_no_project_access" | "user_is_organization_owner" | "cannot_set_your_own_permissions" | "user_is_organization_member" | "property_not_mutable" | "import_language_not_from_project" | "existing_language_not_selected" | "conflict_is_not_resolved" | "language_already_selected" | "cannot_parse_file" | "could_not_resolve_property" | "cannot_add_more_then_100_languages" | "no_languages_provided" | "language_with_base_language_tag_not_found" | "language_not_from_project" | "namespace_not_from_project" | "cannot_delete_base_language" | "key_not_from_project" | "max_screenshots_exceeded" | "translation_not_from_project" | "can_edit_only_own_comment" | "request_parse_error" | "filter_by_value_state_not_valid" | "import_has_expired" | "tag_not_from_project" | "translation_text_too_long" | "invalid_recaptcha_token" | "cannot_leave_owning_project" | "cannot_leave_project_with_organization_role" | "dont_have_direct_permissions" | "tag_too_log" | "too_many_uploaded_images" | "one_or_more_images_not_found" | "screenshot_not_of_key" | "service_not_found" | "too_many_requests" | "translation_not_found" | "out_of_credits" | "key_not_found" | "organization_not_found" | "cannot_find_base_language" | "base_language_not_found" | "no_exported_result" | "cannot_set_your_own_role" | "only_translate_review_or_view_permission_accepts_view_languages" | "oauth2_token_url_not_set" | "oauth2_user_url_not_set" | "email_already_invited_or_member" | "price_not_found" | "invoice_not_from_organization" | "invoice_not_found" | "plan_not_found" | "plan_not_available_any_more" | "no_auto_translation_method" | "cannot_translate_base_language" | "pat_not_found" | "invalid_pat" | "pat_expired" | "operation_unavailable_for_account_type" | "validation_email_is_not_valid" | "current_password_required" | "cannot_create_organization" | "wrong_current_password" | "wrong_param_type" | "user_missing_password" | "expired_super_jwt_token" | "cannot_delete_your_own_account" | "cannot_sort_by_this_column" | "namespace_not_found" | "namespace_exists" | "invalid_authentication_method" | "unknown_sort_property" | "only_review_permission_accepts_state_change_languages" | "only_translate_or_review_permission_accepts_translate_languages" | "cannot_set_language_permissions_for_admin_scope" | "cannot_set_view_languages_without_translations_view_scope" | "cannot_set_translate_languages_without_translations_edit_scope" | "cannot_set_state_change_languages_without_translations_state_edit_scope" | "language_not_permitted" | "scopes_has_to_be_set" | "set_exactly_one_of_scopes_or_type" | "translation_exists" | "import_keys_error" | "provide_only_one_of_screenshots_and_screenshot_uploaded_image_ids" | "multiple_projects_not_supported" | "plan_translation_limit_exceeded" | "feature_not_enabled" | "license_key_not_found" | "cannot_set_view_languages_without_for_level_based_permissions" | "cannot_set_different_translate_and_state_change_languages_for_level_based_permissions" | "cannot_disable_your_own_account" | "subscription_not_found" | "invoice_does_not_have_usage" | "customer_not_found" | "subscription_not_active" | "organization_already_subscribed" | "organization_not_subscribed" | "license_key_used_by_another_instance" | "translation_spending_limit_exceeded" | "credit_spending_limit_exceeded" | "seats_spending_limit_exceeded" | "this_instance_is_already_licensed" | "big_meta_not_from_project" | "mt_service_not_enabled" | "project_not_selected" | "organization_not_selected" | "plan_has_subscribers" | "translation_failed" | "batch_job_not_found" | "key_exists_in_namespace" | "tag_is_blank" | "execution_failed_on_management_error" | "translation_api_rate_limit" | "cannot_finalize_activity" | "formality_not_supported_by_service" | "language_not_supported_by_service" | "rate_limited" | "pat_access_not_allowed" | "pak_access_not_allowed" | "cannot_modify_disabled_translation" | "azure_config_required" | "s3_config_required" | "content_storage_config_required" | "content_storage_test_failed" | "content_storage_config_invalid" | "invalid_connection_string" | "cannot_create_azure_storage_client" | "s3_access_key_required" | "azure_connection_string_required" | "s3_secret_key_required" | "cannot_store_file_to_content_storage" | "unexpected_error_while_publishing_to_content_storage" | "webhook_responded_with_non_200_status" | "unexpected_error_while_executing_webhook" | "content_storage_is_in_use" | "cannot_set_state_for_missing_translation" | "no_project_id_provided" | "license_key_not_provided" | "subscription_already_canceled" | "user_is_subscribed_to_paid_plan" | "cannot_create_free_plan_without_fixed_type" | "cannot_modify_plan_free_status" | "key_id_not_provided" | "free_self_hosted_seat_limit_exceeded" | "advanced_params_not_supported" | "plural_forms_not_found_for_language" | "nested_plurals_not_supported" | "message_is_not_plural" | "content_outside_plural_forms" | "invalid_plural_form" | "multiple_plurals_not_supported" | "custom_values_json_too_long" | "unsupported_po_message_format" | "plural_forms_data_loss" | "current_user_does_not_own_image" | "user_cannot_view_this_organization" | "user_is_not_owner_of_organization" | "user_is_not_owner_or_maintainer_of_organization" | "pak_created_for_different_project" | "custom_slug_is_only_applicable_for_custom_storage" | "invalid_slug_format" | "batch_job_cancellation_timeout" | "import_failed" | "cannot_add_more_then_1000_languages" | "no_data_to_import" | "multiple_namespaces_mapped_to_single_file" | "multiple_mappings_for_same_file_language_name" | "multiple_mappings_for_null_file_language_name" | "too_many_mappings_for_file" | "missing_placeholder_in_template" | "tag_not_found" | "cannot_parse_encrypted_slack_login_data" | "slack_workspace_not_found" | "cannot_fetch_user_details_from_slack" | "slack_missing_scope" | "slack_not_connected_to_your_account" | "slack_invalid_command" | "slack_not_subscribed_yet" | "slack_connection_failed" | "tolgee_account_already_connected" | "slack_not_configured" | "slack_workspace_already_connected" | "slack_connection_error" | "email_verification_code_not_valid" | "cannot_subscribe_to_free_plan" | "plan_auto_assignment_only_for_free_plans" | "plan_auto_assignment_only_for_private_plans" | "task_not_found" | "task_not_finished" | "task_not_open" | "translation_agency_not_found" | "this_feature_is_not_implemented_in_oss" | "sso_token_exchange_failed" | "sso_user_info_retrieval_failed" | "sso_id_token_expired" | "sso_user_cannot_create_organization" | "sso_cant_verify_user" | "sso_auth_missing_domain" | "sso_domain_not_found_or_disabled" | "authentication_method_disabled" | "native_authentication_disabled" | "invitation_organization_mismatch" | "user_is_managed_by_organization" | "cannot_set_sso_provider_missing_fields" | "namespaces_cannot_be_disabled_when_namespace_exists" | "namespace_cannot_be_used_when_feature_is_disabled" | "sso_domain_not_allowed" | "sso_login_forced_for_this_account" | "use_sso_for_authentication_instead" | "date_has_to_be_in_the_future" | "custom_plan_and_plan_id_cannot_be_set_together" | "specify_plan_id_or_custom_plan" | "custom_plans_has_to_be_private" | "cannot_create_free_plan_with_prices" | "subscription_not_scheduled_for_cancellation" | "cannot_cancel_trial" | "cannot_update_without_modification" | "current_subscription_is_not_trialing" | "sorting_and_paging_is_not_supported_when_using_cursor" | "strings_metric_are_not_supported" | "plan_key_limit_exceeded" | "keys_spending_limit_exceeded" | "plan_seat_limit_exceeded" | "instance_not_using_license_key" | "invalid_path" | "llm_provider_not_found" | "llm_provider_error" | "prompt_not_found" | "llm_provider_not_returned_json" | "llm_template_parsing_error" | "llm_rate_limited" | "llm_provider_timeout" | "no_llm_provider_configured" | "glossary_not_found" | "glossary_term_not_found" | "glossary_term_translation_not_found" | "glossary_non_translatable_term_cannot_be_translated" | "llm_content_filter" | "llm_provider_empty_response" | "label_not_found" | "label_not_from_project" | "label_already_exists" | "filter_by_value_label_not_valid" | "suggestion_not_found" | "user_can_only_delete_his_suggestions" | "cannot_modify_reviewed_translation" | "cannot_modify_keys" | "expect_no_conflict_failed" | "suggestion_cant_be_plural" | "suggestion_must_be_plural" | "duplicate_suggestion" | "unsupported_media_type" | "impersonation_of_admin_by_supporter_not_allowed" | "already_impersonating_user" | "operation_not_permitted_in_read_only_mode" | "file_processing_failed" | "branch_not_found" | "cannot_delete_default_branch" | "branch_already_exists" | "origin_branch_not_found" | "branch_merge_not_found" | "branch_merge_change_not_found" | "branch_merge_revision_not_valid" | "branch_merge_conflicts_not_resolved" | "branch_merge_already_merged"; + params?: unknown[]; + }; + ExistenceEntityDescription: { + data: { + [key: string]: unknown; + }; + entityClass: string; + /** Format: int64 */ + entityId: number; + exists?: boolean; + relations: { + [key: string]: components["schemas"]["EntityDescriptionWithRelations"]; + }; + }; + ExportFormatModel: { + defaultFileStructureTemplate: string; + extension: string; + /** @enum {string} */ + format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS" | "ANDROID_SDK" | "APPLE_SDK"; + mediaType: string; + }; + ExportParams: { + /** @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). + * + * e.g. Key hello will be exported as <b>hello</b> */ + escapeHtml?: boolean; + /** @description This is a template that defines the structure of the resulting .zip file content. + * + * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, + * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * + * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, + * the English translations of the `home` namespace will be stored in `home/en.json`. + * + * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * + * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` + * but in Android format. (e.g., en-rUS) + * */ + fileStructureTemplate?: string; + /** @description Filter translations with branch. + * + * By default, default branch is exported. */ + filterBranch?: string; + /** @description Filter key IDs to be contained in export */ + filterKeyId?: number[]; + /** @description Filter key IDs not to be contained in export */ + filterKeyIdNot?: number[]; + /** @description Filter keys with prefix */ + filterKeyPrefix?: string; + /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ + filterNamespace?: string[]; + /** @description Filter translations with state. By default, all states except untranslated is exported. */ + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + /** @description Filter keys tagged by. + * + * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ + filterTag?: string; + /** @description Filter keys tagged by one of provided tags */ + filterTagIn?: string[]; + /** @description Filter keys not tagged by one of provided tags */ + filterTagNotIn?: string[]; + /** + * @description Format to export to + * @enum {string} + */ + format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS" | "ANDROID_SDK" | "APPLE_SDK"; + /** + * @description Languages to be contained in export. + * + * If null, all languages are exported + * @example en + */ + languages?: string[]; + /** + * @description Message format to be used for export. + * + * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * + * This property is honored only for generic formats like JSON or YAML. + * For specific formats like `YAML_RUBY` it's ignored. + * @enum {string} + */ + messageFormat?: "C_SPRINTF" | "PHP_SPRINTF" | "JAVA_STRING_FORMAT" | "APPLE_SPRINTF" | "RUBY_SPRINTF" | "I18NEXT" | "ICU" | "PYTHON_PERCENT"; + /** @description Delimiter to structure file content. + * + * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. + * + * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), + * specific formats like `YAML_RUBY` don't honor this parameter. */ + structureDelimiter?: string; + /** @description If true, for structured formats (like JSON) arrays are supported. + * + * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ + supportArrays: boolean; + zip: boolean; + }; + GenerateSlugDto: { + name: string; + oldSlug?: string; + }; + GetKeysRequestDto: { + keys: components["schemas"]["KeyDefinitionDto"][]; + /** @description Tags to return language translations in */ + languageTags: string[]; + }; + GlossaryHighlightsRequest: { + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + languageTag: string; + text: string; + }; + GlossaryImportResult: { + /** + * Format: int32 + * @description Number of imported terms + * @example 42 + */ + imported: number; + }; + GlossaryLanguageDto: { + /** + * @description Indicates if this is the base (main) language of the glossary + * @example true + */ + base: boolean; + /** + * @description The language code (e.g., 'en' for English) + * @example en + */ + tag: string; + }; + GlossaryModel: { + /** + * @description Language tag for default translations for terms + * @example en + */ + baseLanguageTag: string; + /** Format: int64 */ + id: number; + name: string; + organizationOwner: components["schemas"]["SimpleOrganizationModel"]; + }; + GlossaryTermHighlightModel: { + position: components["schemas"]["PositionModel"]; + value: components["schemas"]["GlossaryTermModel"]; + }; + GlossaryTermModel: { + description: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm: boolean; + /** @description When true, this term has the same translation across all target languages */ + flagNonTranslatable: boolean; + glossary: components["schemas"]["GlossaryModel"]; + /** Format: int64 */ + id: number; + translations: components["schemas"]["GlossaryTermTranslationModel"][]; + }; + GlossaryTermTranslationModel: { + languageTag: string; + text: string; + }; + HierarchyItem: { + requires: components["schemas"]["HierarchyItem"][]; + /** @enum {string} */ + scope: "translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign" | "all.view"; + }; + IdentifyRequest: { + anonymousUserId: string; + }; + ImageUploadInfoDto: { + location?: string; + }; + ImportAddFilesResultModel: { + errors: components["schemas"]["ErrorResponseBody"][]; + result?: components["schemas"]["PagedModelImportLanguageModel"]; + warnings: components["schemas"]["ErrorResponseBody"][]; + }; + ImportFileIssueModel: { + /** Format: int64 */ + id: number; + params: components["schemas"]["ImportFileIssueParamModel"][]; + /** @enum {string} */ + type: "KEY_IS_NOT_STRING" | "MULTIPLE_VALUES_FOR_KEY_AND_LANGUAGE" | "VALUE_IS_NOT_STRING" | "KEY_IS_EMPTY" | "VALUE_IS_EMPTY" | "PO_MSGCTXT_NOT_SUPPORTED" | "ID_ATTRIBUTE_NOT_PROVIDED" | "TARGET_NOT_PROVIDED" | "TRANSLATION_TOO_LONG" | "KEY_IS_BLANK" | "TRANSLATION_DEFINED_IN_ANOTHER_FILE" | "INVALID_CUSTOM_VALUES" | "DESCRIPTION_TOO_LONG"; + }; + ImportFileIssueParamModel: { + /** @enum {string} */ + type: "KEY_NAME" | "KEY_ID" | "LANGUAGE_ID" | "KEY_INDEX" | "VALUE" | "LINE" | "FILE_NODE_ORIGINAL" | "LANGUAGE_NAME"; + value?: string; + }; + ImportFileMapping: { + /** @description Name of the file to import. This is the name of the file provided in `files` request part or in uploaded archive. */ + fileName: string; + /** + * @description Format of the file. If not provided, Tolgee will try to guess the format from the file name or file contents. + * + * It is recommended to provide these values to prevent any issues with format detection. + * @enum {string} + */ + format?: "CSV_ICU" | "CSV_JAVA" | "CSV_PHP" | "CSV_RUBY" | "JSON_I18NEXT" | "JSON_ICU" | "JSON_JAVA" | "JSON_PHP" | "JSON_RUBY" | "JSON_C" | "PO_PHP" | "PO_C" | "PO_JAVA" | "PO_ICU" | "PO_RUBY" | "PO_PYTHON" | "STRINGS" | "STRINGSDICT" | "APPLE_XLIFF" | "APPLE_XCSTRINGS" | "PROPERTIES_ICU" | "PROPERTIES_JAVA" | "PROPERTIES_UNKNOWN" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "YAML_RUBY" | "YAML_JAVA" | "YAML_ICU" | "YAML_PHP" | "YAML_UNKNOWN" | "XLIFF_ICU" | "XLIFF_JAVA" | "XLIFF_PHP" | "XLIFF_RUBY" | "RESX_ICU" | "XLSX_ICU" | "XLSX_JAVA" | "XLSX_PHP" | "XLSX_RUBY"; + /** @description The existing language tag in the Tolgee platform to which the imported language should be mapped. + * + * When null, Tolgee will try to guess the language from the file contents or file name. */ + languageTag?: string; + /** @description Tags of languages to be imported. When null, all languages from will be imported. + * + * This field is useful when the file contains multiple languages and you want to import only some of them. For example when importing Apple String Catalog (APPLE_XCSTRINGS), you might want only to import the base language. */ + languageTagsToImport?: string[]; + /** @description Namespace to import the file to. If not provided, the key will be imported without namespace. */ + namespace?: string; + }; + ImportKeysDto: { + keys: components["schemas"]["ImportKeysItemDto"][]; + }; + ImportKeysItemDto: { + /** + * @description Description of key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + /** + * @description Key name to set translations for + * @example what_a_key_to_translate + */ + name: string; + /** @description The namespace of the key. (When empty or null default namespace will be used) */ + namespace?: string; + /** + * @description Tags of the key + * @example [ + * "homepage", + * "user-profile" + * ] + */ + tags?: string[]; + /** + * @description Object mapping language tag to translation + * @example { + * "en": "What a translated value!", + * "cs": "Jaká to přeložená hodnota!" + * } + */ + translations: { + [key: string]: string; + }; + }; + ImportKeysResolvableDto: { + keys: components["schemas"]["ImportKeysResolvableItemDto"][]; + }; + ImportKeysResolvableItemDto: { + branch?: string; + /** + * @description Key name to set translations for + * @example what_a_key_to_translate + */ + name: string; + /** @description The namespace of the key. (When empty or null default namespace will be used) */ + namespace?: string; + screenshots?: components["schemas"]["KeyScreenshotDto"][]; + /** @description Object mapping language tag to translation */ + translations: { + [key: string]: components["schemas"]["ImportTranslationResolvableDto"]; + }; + }; + ImportLanguageModel: { + /** Format: int32 */ + conflictCount: number; + /** + * @deprecated + * @description Use existingLanguageTag + */ + existingLanguageAbbreviation?: string; + /** Format: int64 */ + existingLanguageId?: number; + existingLanguageName?: string; + existingLanguageTag?: string; + /** Format: int64 */ + id: number; + /** Format: int64 */ + importFileId: number; + /** Format: int32 */ + importFileIssueCount: number; + importFileName: string; + name: string; + namespace?: string; + /** Format: int32 */ + resolvedCount: number; + /** Format: int32 */ + totalCount: number; + }; + ImportNamespaceModel: { + /** + * Format: int64 + * @description The id of namespace. When null, namespace doesn't exist and will be created by import. + * @example 10000048 + */ + id?: number; + /** @example homepage */ + name: string; + }; + ImportResult: { + unresolvedConflicts?: components["schemas"]["SimpleImportConflictResult"][]; + }; + ImportSettingsModel: { + /** @description If true, placeholders from other formats will be converted to ICU when possible */ + convertPlaceholdersToIcu: boolean; + /** @description If false, only updates keys, skipping the creation of new keys */ + createNewKeys: boolean; + /** @description If true, key descriptions will be overridden by the import */ + overrideKeyDescriptions: boolean; + }; + ImportSettingsRequest: { + /** @description If true, placeholders from other formats will be converted to ICU when possible */ + convertPlaceholdersToIcu: boolean; + /** @description If false, only updates keys, skipping the creation of new keys */ + createNewKeys: boolean; + /** @description If true, key descriptions will be overridden by the import */ + overrideKeyDescriptions: boolean; + }; + ImportTranslationModel: { + /** Format: int64 */ + conflictId?: number; + conflictText?: string; + /** @enum {string} */ + conflictType?: "SHOULD_NOT_EDIT_REVIEWED" | "CANNOT_EDIT_REVIEWED" | "CANNOT_EDIT_DISABLED"; + existingKeyIsPlural: boolean; + /** Format: int64 */ + id: number; + isOverridable: boolean; + isPlural: boolean; + keyDescription?: string; + /** Format: int64 */ + keyId: number; + keyName: string; + override: boolean; + resolved: boolean; + text?: string; + }; + ImportTranslationResolvableDto: { + /** + * @description Determines, how conflict is resolved. + * - KEEP: Translation is not changed + * - OVERRIDE: Translation is overridden + * - NEW: New translation is created + * - FORCE_OVERRIDE: Translation is updated, created or kept. + * + * @example OVERRIDE + * @enum {string} + */ + resolution: "KEEP" | "OVERRIDE" | "NEW" | "FORCE_OVERRIDE"; + /** + * @description Translation text + * @example Hello! I am a translation! + */ + text: string; + }; + InitialDataEeSubscriptionModel: { + /** @enum {string} */ + status: "ACTIVE" | "CANCELED" | "PAST_DUE" | "UNPAID" | "ERROR" | "TRIALING" | "KEY_USED_BY_ANOTHER_INSTANCE" | "UNKNOWN"; + }; + InitialDataModel: { + announcement?: components["schemas"]["AnnouncementDto"]; + authInfo?: components["schemas"]["AuthInfoModel"]; + eeSubscription?: components["schemas"]["InitialDataEeSubscriptionModel"]; + languageTag?: string; + preferredOrganization?: components["schemas"]["PrivateOrganizationModel"]; + serverConfiguration: components["schemas"]["PublicConfigurationDTO"]; + ssoInfo?: components["schemas"]["PublicSsoTenantModel"]; + userInfo?: components["schemas"]["PrivateUserAccountModel"]; + }; + JobInfo: { + /** Format: int64 */ + createdAt?: number; + /** Format: int64 */ + jobId: number; + /** @enum {string} */ + status: "PENDING" | "RUNNING" | "SUCCESS" | "FAILED" | "CANCELLED" | "DEBOUNCED"; + /** @enum {string} */ + type: "AI_PLAYGROUND_TRANSLATE" | "PRE_TRANSLATE_BT_TM" | "MACHINE_TRANSLATE" | "AUTO_TRANSLATE" | "DELETE_KEYS" | "SET_TRANSLATIONS_STATE" | "CLEAR_TRANSLATIONS" | "COPY_TRANSLATIONS" | "TAG_KEYS" | "UNTAG_KEYS" | "SET_KEYS_NAMESPACE" | "AUTOMATION" | "BILLING_TRIAL_EXPIRATION_NOTICE" | "ASSIGN_TRANSLATION_LABEL" | "UNASSIGN_TRANSLATION_LABEL"; + }; + JsonNode: unknown; + JwtAuthenticationResponse: { + accessToken?: string; + tokenType?: string; + }; + KeyDefinitionDto: { + name: string; + namespace?: string; + }; + KeyDisabledLanguageModel: { + /** Format: int64 */ + id: number; + tag: string; + }; + KeyDisabledLanguagesModel: { + /** @description Disabled languages */ + disabledLanguages: components["schemas"]["KeyDisabledLanguageModel"][]; + /** + * Format: int64 + * @description Id of key record + */ + id: number; + /** + * @description Name of key + * @example this_is_super_key + */ + name: string; + /** + * @description Namespace of key + * @example homepage + */ + namespace?: string; + }; + KeyId: { + /** + * Format: int64 + * @description If key id is provided, name and namespace are ignored. + */ + id?: number; + name?: string; + namespace?: string; + }; + KeyImportResolvableResultModel: { + /** @description List of keys */ + keys: components["schemas"]["KeyModel"][]; + /** @description Map uploadedImageId to screenshot */ + screenshots: { + [key: string]: components["schemas"]["ScreenshotModel"]; + }; + }; + KeyInScreenshotModel: { + /** Format: int64 */ + keyId: number; + keyName: string; + keyNamespace?: string; + originalText?: string; + position?: components["schemas"]["KeyInScreenshotPosition"]; + }; + KeyInScreenshotPosition: { + /** Format: int32 */ + height: number; + /** Format: int32 */ + width: number; + /** Format: int32 */ + x: number; + /** Format: int32 */ + y: number; + }; + KeyInScreenshotPositionDto: { + /** Format: int32 */ + height: number; + /** Format: int32 */ + width: number; + /** Format: int32 */ + x: number; + /** Format: int32 */ + y: number; + }; + KeyModel: { + /** + * @description Branch of key + * @example dev + */ + branch?: string; + /** @description Custom values of the key */ + custom?: { + [key: string]: unknown; + }; + /** + * @description Description of key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + /** + * Format: int64 + * @description Id of key record + */ + id: number; + /** + * @description Name of key + * @example this_is_super_key + */ + name: string; + /** + * @description Namespace of key + * @example homepage + */ + namespace?: string; + }; + KeyScreenshotDto: { + positions?: components["schemas"]["KeyInScreenshotPositionDto"][]; + text?: string; + /** + * Format: int64 + * @description Ids of screenshot uploaded with /v2/image-upload endpoint + */ + uploadedImageId: number; + }; + KeySearchResultView: { + baseTranslation?: string; + description?: string; + /** Format: int64 */ + id: number; + name: string; + namespace?: string; + translation?: string; + }; + KeySearchSearchResultModel: { + baseTranslation?: string; + description?: string; + /** Format: int64 */ + id: number; + name: string; + namespace?: string; + translation?: string; + view?: components["schemas"]["KeySearchResultView"]; + }; + KeyTaskViewModel: { + done: boolean; + /** Format: int64 */ + languageId: number; + languageTag: string; + /** Format: int64 */ + number: number; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + userAssigned: boolean; + }; + KeyWithBaseTranslationModel: { + /** + * @description Base translation + * @example This is translation + */ + baseTranslation?: string; + /** + * Format: int64 + * @description Id of key record + */ + id: number; + /** + * @description Name of key + * @example this_is_super_key + */ + name: string; + /** + * @description Namespace of key + * @example homepage + */ + namespace?: string; + }; + KeyWithDataModel: { + /** @description Branch of the key */ + branch?: string; + /** @description Custom values of the key */ + custom: { + [key: string]: unknown; + }; + /** + * @description Description of key + * @example This key is used on homepage. It's a label of sign up button. + */ + description?: string; + /** + * Format: int64 + * @description Id of key record + */ + id: number; + /** @description If key is pluralized. If it will be reflected in the editor */ + isPlural: boolean; + /** + * @description Name of key + * @example this_is_super_key + */ + name: string; + /** + * @description Namespace of key + * @example homepage + */ + namespace?: string; + /** @description The argument name for the plural */ + pluralArgName?: string; + /** @description Screenshots of the key */ + screenshots: components["schemas"]["ScreenshotModel"][]; + /** @description Tags of key */ + tags: components["schemas"]["TagModel"][]; + /** + * @description Translations object containing values updated in this request + * @example { + * "en": { + * "id": 100000003, + * "text": "This is super translation!" + * } + * } + */ + translations: { + [key: string]: components["schemas"]["TranslationModel"]; + }; + }; + KeyWithTranslationsModel: { + /** @description There is a context available for this key */ + contextPresent: boolean; + /** + * Format: int64 + * @description The time when the key was created + */ + createdAt: number; + /** + * @description The namespace of the key + * @example homepage + */ + keyDescription?: string; + /** + * Format: int64 + * @description Id of key record + */ + keyId: number; + /** + * @description Is this key a plural? + * @example true + */ + keyIsPlural: boolean; + /** + * @description Name of key + * @example this_is_super_key + */ + keyName: string; + /** + * @description The namespace of the key + * @example homepage + */ + keyNamespace?: string; + /** + * Format: int64 + * @description The namespace id of the key + * @example 100000282 + */ + keyNamespaceId?: number; + /** + * @description The placeholder name for plural parameter + * @example value + */ + keyPluralArgName?: string; + /** @description Tags of key */ + keyTags: components["schemas"]["TagModel"][]; + /** + * Format: int64 + * @description Count of screenshots provided for the key + * @example 1 + */ + screenshotCount: number; + /** @description Key screenshots. Not provided when API key hasn't screenshots.view scope permission. */ + screenshots?: components["schemas"]["ScreenshotModel"][]; + /** @description Tasks related to this key */ + tasks?: components["schemas"]["KeyTaskViewModel"][]; + /** + * @description Translations object + * @example + * { + * "en": { + * "id": 100000003, + * "text": "This is super translation!" + * "state": "TRANSLATED", + * "commentCount": 1 + * } + * } + * + */ + translations: { + [key: string]: components["schemas"]["TranslationViewModel"]; + }; + }; + KeysScopeView: { + /** Format: int64 */ + characterCount: number; + /** Format: int64 */ + keyCount: number; + /** Format: int64 */ + keyCountIncludingConflicts: number; + /** Format: int64 */ + wordCount: number; + }; + KeysWithTranslationsPageModel: { + _embedded?: { + keys?: components["schemas"]["KeyWithTranslationsModel"][]; + }; + /** + * @description Cursor to get next data + * @example eyJrZXlJZCI6eyJkaXJlY3Rpb24iOiJBU0MiLCJ2YWx1ZSI6IjEwMDAwMDAxMjAifX0= + */ + nextCursor?: string; + page?: components["schemas"]["PageMetadata"]; + pagedModel?: components["schemas"]["PagedModelKeyWithTranslationsModel"]; + /** @description Provided languages data */ + selectedLanguages: components["schemas"]["LanguageModel"][]; + }; + LabelModel: { + color: string; + description?: string; + /** Format: int64 */ + id: number; + name: string; + }; + LabelRequest: { + /** + * @description Hex color in format #RRGGBB. + * @example #FF5733 + */ + color: string; + description?: string; + name: string; + }; + LabelTranslationsRequest: { + keyIds: number[]; + labelIds: number[]; + languageIds: number[]; + }; + LanguageAiPromptCustomizationModel: { + /** + * @description The language description used in the prompt that helps AI translator to fine tune results for specific language + * @example For arabic language, we are super formal. Always use these translations: + * Paper -> ورقة + * Office -> مكتب + * + */ + description?: string; + language: components["schemas"]["LanguageModel"]; + }; + LanguageConfigItemModel: { + /** + * @deprecated + * @description Services to be used for suggesting (deprecated: use enabledServicesInfo) + */ + enabledServices: ("GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT")[]; + /** @description Info about enabled services */ + enabledServicesInfo: components["schemas"]["MtServiceInfo"][]; + /** + * @deprecated + * @description Service used for automated translating (deprecated: use primaryServiceInfo) + * @enum {string} + */ + primaryService?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + /** @description Service info used for automated translating */ + primaryServiceInfo?: components["schemas"]["MtServiceInfo"]; + /** + * Format: int64 + * @description When null, its a default configuration applied to not configured languages + */ + targetLanguageId?: number; + /** @description When null, its a default configuration applied to not configured languages */ + targetLanguageName?: string; + /** @description When null, its a default configuration applied to not configured languages */ + targetLanguageTag?: string; + }; + LanguageInfoModel: { + /** Format: int64 */ + languageId?: number; + languageTag?: string; + supportedServices: components["schemas"]["MtSupportedService"][]; + }; + LanguageMapping: { + /** + * @description The language from the imported file. + * + * For xliff files, this is the `source-language` or the `target-language` attribute value of `file` element. + * @example en-US + */ + importLanguage: string; + /** + * @description The tag of language existing in the Tolgee platform to which the imported language should be mapped. + * @example en-US + */ + platformLanguageTag: string; + }; + LanguageModel: { + /** + * @description Whether is base language of project + * @example false + */ + base: boolean; + /** + * @description Language flag emoji as UTF-8 emoji + * @example 🇨🇿 + */ + flagEmoji?: string; + /** Format: int64 */ + id: number; + /** + * @description Language name in english + * @example Czech + */ + name: string; + /** + * @description Language name in this language + * @example čeština + */ + originalName?: string; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + tag: string; + }; + LanguageRequest: { + /** + * @description Language flag emoji as UTF-8 emoji + * @example 🇨🇿 + */ + flagEmoji?: string; + /** + * @description Language name in english + * @example Czech + */ + name: string; + /** + * @description Language name in this language + * @example čeština + */ + originalName: string; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + tag: string; + }; + LanguageStatsModel: { + languageFlagEmoji?: string; + /** Format: int64 */ + languageId?: number; + languageName?: string; + languageOriginalName?: string; + languageTag?: string; + /** Format: int64 */ + reviewedKeyCount: number; + /** Format: double */ + reviewedPercentage: number; + /** Format: int64 */ + reviewedWordCount: number; + /** Format: int64 */ + translatedKeyCount: number; + /** Format: double */ + translatedPercentage: number; + /** Format: int64 */ + translatedWordCount: number; + /** Format: date-time */ + translationsUpdatedAt?: string; + /** Format: int64 */ + untranslatedKeyCount: number; + /** Format: double */ + untranslatedPercentage: number; + /** Format: int64 */ + untranslatedWordCount: number; + }; + LlmProviderModel: { + apiKey?: string; + apiUrl?: string; + deployment?: string; + format?: string; + /** Format: int64 */ + id: number; + model?: string; + name: string; + /** @enum {string} */ + priority?: "LOW" | "HIGH"; + reasoningEffort?: string; + /** @enum {string} */ + type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; + }; + LlmProviderRequest: { + apiKey?: string; + apiUrl: string; + deployment?: string; + format?: string; + keepAlive?: string; + model?: string; + name: string; + /** @enum {string} */ + priority?: "LOW" | "HIGH"; + reasoningEffort?: string; + /** @enum {string} */ + type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; + }; + LlmProviderSimpleModel: { + name: string; + source?: string; + /** @enum {string} */ + type: "OPENAI" | "OPENAI_AZURE" | "TOLGEE" | "ANTHROPIC" | "GOOGLE_AI"; + }; + LoginRequest: { + otp?: string; + password: string; + username: string; + }; + MachineTranslationLanguagePropsDto: { + /** + * @deprecated + * @description List of enabled services (deprecated: use enabledServicesInfo) + */ + enabledServices?: ("GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT")[]; + /** @description Info about enabled services */ + enabledServicesInfo?: components["schemas"]["MtServiceInfo"][]; + /** + * @deprecated + * @description This service will be used for automated translation + * @enum {string} + */ + primaryService?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + /** @description This service info will be used for automated translation */ + primaryServiceInfo?: components["schemas"]["MtServiceInfo"]; + /** + * Format: int64 + * @description The language to apply those rules. If null, then this settings are default. + */ + targetLanguageId?: number; + }; + MachineTranslationProviderModel: { + /** @description BCP 47 tags of languages supported by the translation service. When null, all possible languages are supported. + * + * Please note that Tolgee tries to fall back to a higher subtag if the subtag is not supported. + * + * E.g., if `pt-BR` is not supported. Tolgee fallbacks to `pt`. */ + supportedLanguages?: string[]; + }; + MachineTranslationRequest: { + keyIds: number[]; + llmPrompt?: components["schemas"]["PromptDto"]; + targetLanguageIds: number[]; + }; + ModifiedEntityModel: { + description?: { + [key: string]: unknown; + }; + entityClass: string; + /** Format: int64 */ + entityId: number; + exists?: boolean; + modifications?: { + [key: string]: components["schemas"]["PropertyModification"]; + }; + relations?: { + [key: string]: components["schemas"]["ExistenceEntityDescription"]; + }; + }; + MtServiceDTO: { + defaultEnabledForProject: boolean; + enabled: boolean; + }; + MtServiceInfo: { + /** @enum {string} */ + formality?: "FORMAL" | "INFORMAL" | "DEFAULT"; + /** Format: int64 */ + promptId?: number; + /** @enum {string} */ + serviceType: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + }; + MtServicesDTO: { + services: { + [key: string]: components["schemas"]["MtServiceDTO"]; + }; + }; + MtSupportedService: { + formalitySupported: boolean; + /** @enum {string} */ + serviceType: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + }; + NamespaceModel: { + /** + * Format: int64 + * @description The id of namespace + * @example 10000048 + */ + id: number; + /** @example homepage */ + name: string; + }; + NotificationModel: { + /** Format: date-time */ + createdAt?: string; + /** Format: int64 */ + id: number; + linkedTask?: components["schemas"]["TaskModel"]; + originatingUser?: components["schemas"]["SimpleUserAccountModel"]; + project?: components["schemas"]["SimpleProjectModel"]; + /** @enum {string} */ + type: "TASK_ASSIGNED" | "TASK_FINISHED" | "TASK_CANCELED" | "MFA_ENABLED" | "MFA_DISABLED" | "PASSWORD_CHANGED"; + }; + NotificationSettingGroupModel: { + email: boolean; + inApp: boolean; + }; + NotificationSettingModel: { + accountSecurity: components["schemas"]["NotificationSettingGroupModel"]; + tasks: components["schemas"]["NotificationSettingGroupModel"]; + }; + NotificationSettingsRequest: { + /** + * @example IN_APP + * @enum {string} + */ + channel: "IN_APP" | "EMAIL"; + /** + * @description True if the setting should be enabled, false for disabled + * @example false + */ + enabled: boolean; + /** + * @example TASKS + * @enum {string} + */ + group: "ACCOUNT_SECURITY" | "TASKS"; + }; + NotificationsMarkSeenRequest: { + /** + * @description Notification IDs to be marked as seen + * @example [ + * 1, + * 2, + * 3 + * ] + */ + notificationIds: number[]; + }; + OAuthPublicConfigDTO: { + clientId?: string; + enabled: boolean; + }; + OAuthPublicExtendsConfigDTO: { + authorizationUrl?: string; + clientId?: string; + enabled: boolean; + scopes?: string[]; + }; + OrganizationDto: { + /** @example This is a beautiful organization full of beautiful and clever people */ + description?: string; + /** @example Beautiful organization */ + name: string; + /** @example btforg */ + slug?: string; + }; + OrganizationInvitationModel: { + code: string; + /** Format: date-time */ + createdAt: string; + createdBy?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + id: number; + invitedUserEmail?: string; + invitedUserName?: string; + /** @enum {string} */ + type: "MEMBER" | "OWNER" | "MAINTAINER"; + }; + OrganizationInviteUserDto: { + /** @description Email to send invitation to */ + email?: string; + /** @description Name of invited user */ + name?: string; + /** @enum {string} */ + roleType: "MEMBER" | "OWNER" | "MAINTAINER"; + }; + OrganizationLanguageModel: { + /** + * @description Whether is base language of any project + * @example false + */ + base: boolean; + /** + * @description Language flag emoji as UTF-8 emoji + * @example 🇨🇿 + */ + flagEmoji?: string; + /** + * @description Language name in english + * @example Czech + */ + name: string; + /** + * @description Language name in this language + * @example čeština + */ + originalName?: string; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + tag: string; + }; + OrganizationModel: { + /** @example Links to avatar images */ + avatar?: components["schemas"]["Avatar"]; + basePermissions: components["schemas"]["PermissionModel"]; + /** + * @description The role of currently authorized user. + * + * Can be null when user has direct access to one of the projects owned by the organization. + * @enum {string} + */ + currentUserRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + /** @example This is a beautiful organization full of beautiful and clever people */ + description?: string; + /** Format: int64 */ + id: number; + /** @example Beautiful organization */ + name: string; + /** @example btforg */ + slug: string; + }; + PageMetadata: { + /** Format: int64 */ + number?: number; + /** Format: int64 */ + size?: number; + /** Format: int64 */ + totalElements?: number; + /** Format: int64 */ + totalPages?: number; + }; + Pageable: { + /** Format: int32 */ + page?: number; + /** Format: int32 */ + size?: number; + sort?: string[]; + }; + PagedModelApiKeyModel: { + _embedded?: { + apiKeys?: components["schemas"]["ApiKeyModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBatchJobModel: { + _embedded?: { + batchJobs?: components["schemas"]["BatchJobModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBranchMergeChangeModel: { + _embedded?: { + branchMergeChanges?: components["schemas"]["BranchMergeChangeModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBranchMergeConflictModel: { + _embedded?: { + branchMergeConflicts?: components["schemas"]["BranchMergeConflictModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBranchMergeModel: { + _embedded?: { + branchMerges?: components["schemas"]["BranchMergeModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelBranchModel: { + _embedded?: { + branches?: components["schemas"]["BranchModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelContentDeliveryConfigModel: { + _embedded?: { + contentDeliveryConfigs?: components["schemas"]["ContentDeliveryConfigModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelContentStorageModel: { + _embedded?: { + contentStorages?: components["schemas"]["ContentStorageModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelImportFileIssueModel: { + _embedded?: { + importFileIssues?: components["schemas"]["ImportFileIssueModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelImportLanguageModel: { + _embedded?: { + languages?: components["schemas"]["ImportLanguageModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelImportTranslationModel: { + _embedded?: { + translations?: components["schemas"]["ImportTranslationModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelKeyModel: { + _embedded?: { + keys?: components["schemas"]["KeyModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelKeySearchSearchResultModel: { + _embedded?: { + keys?: components["schemas"]["KeySearchSearchResultModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelKeyWithTranslationsModel: { + _embedded?: { + keys?: components["schemas"]["KeyWithTranslationsModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelLabelModel: { + _embedded?: { + labels?: components["schemas"]["LabelModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelLanguageModel: { + _embedded?: { + languages?: components["schemas"]["LanguageModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelModifiedEntityModel: { + _embedded?: { + modifiedEntities?: components["schemas"]["ModifiedEntityModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelNamespaceModel: { + _embedded?: { + namespaces?: components["schemas"]["NamespaceModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelNotificationModel: { + _embedded?: { + notificationModelList?: components["schemas"]["NotificationModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelOrganizationLanguageModel: { + _embedded?: { + languages?: components["schemas"]["OrganizationLanguageModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelOrganizationModel: { + _embedded?: { + organizations?: components["schemas"]["OrganizationModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelPatModel: { + _embedded?: { + pats?: components["schemas"]["PatModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelProjectActivityModel: { + _embedded?: { + activities?: components["schemas"]["ProjectActivityModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelProjectModel: { + _embedded?: { + projects?: components["schemas"]["ProjectModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelProjectWithStatsModel: { + _embedded?: { + projects?: components["schemas"]["ProjectWithStatsModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelPromptModel: { + _embedded?: { + prompts?: components["schemas"]["PromptModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleGlossaryModel: { + _embedded?: { + glossaries?: components["schemas"]["SimpleGlossaryModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleGlossaryTermModel: { + _embedded?: { + glossaryTerms?: components["schemas"]["SimpleGlossaryTermModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleGlossaryTermWithTranslationsModel: { + _embedded?: { + glossaryTerms?: components["schemas"]["SimpleGlossaryTermWithTranslationsModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleGlossaryWithStatsModel: { + _embedded?: { + glossaries?: components["schemas"]["SimpleGlossaryWithStatsModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelSimpleUserAccountModel: { + _embedded?: { + users?: components["schemas"]["SimpleUserAccountModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTagModel: { + _embedded?: { + tags?: components["schemas"]["TagModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTaskModel: { + _embedded?: { + tasks?: components["schemas"]["TaskModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTaskWithProjectModel: { + _embedded?: { + tasks?: components["schemas"]["TaskWithProjectModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTranslationCommentModel: { + _embedded?: { + translationComments?: components["schemas"]["TranslationCommentModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTranslationHistoryModel: { + _embedded?: { + revisions?: components["schemas"]["TranslationHistoryModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTranslationMemoryItemModel: { + _embedded?: { + translationMemoryItems?: components["schemas"]["TranslationMemoryItemModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelTranslationSuggestionModel: { + _embedded?: { + suggestions?: components["schemas"]["TranslationSuggestionModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelUserAccountInProjectModel: { + _embedded?: { + users?: components["schemas"]["UserAccountInProjectModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelUserAccountModel: { + _embedded?: { + users?: components["schemas"]["UserAccountModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelUserAccountWithOrganizationRoleModel: { + _embedded?: { + usersInOrganization?: components["schemas"]["UserAccountWithOrganizationRoleModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelWebhookConfigModel: { + _embedded?: { + webhookConfigs?: components["schemas"]["WebhookConfigModel"][]; + }; + page?: components["schemas"]["PageMetadata"]; + }; + PagedModelWithNextCursorNotificationModel: { + _embedded?: { + notificationModelList?: components["schemas"]["NotificationModel"][]; + }; + /** + * @description Cursor to get next data + * @example eyJrZXlJZCI6eyJkaXJlY3Rpb24iOiJBU0MiLCJ2YWx1ZSI6IjEwMDAwMDAxMjAifX0= + */ + nextCursor?: string; + page?: components["schemas"]["PageMetadata"]; + pagedModel?: components["schemas"]["PagedModelNotificationModel"]; + }; + PatModel: { + /** Format: int64 */ + createdAt: number; + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** Format: int64 */ + lastUsedAt?: number; + /** Format: int64 */ + updatedAt: number; + }; + PatWithUserModel: { + /** Format: int64 */ + createdAt: number; + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** Format: int64 */ + lastUsedAt?: number; + /** Format: int64 */ + updatedAt: number; + user: components["schemas"]["SimpleUserAccountModel"]; + }; + PermissionModel: { + /** + * @deprecated + * @description Deprecated (use translateLanguageIds). + * + * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + permittedLanguageIds?: number[]; + /** + * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. + * @example [ + * "KEYS_EDIT", + * "TRANSLATIONS_VIEW" + * ] + */ + scopes: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign" | "all.view")[]; + /** + * @description List of languages user can change state to. If null, changing state of all language values is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + stateChangeLanguageIds?: number[]; + /** + * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + suggestLanguageIds?: number[]; + /** + * @description List of languages user can translate to. If null, all languages editing is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + translateLanguageIds?: number[]; + /** + * @description The user's permission type. This field is null if uses granular permissions + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** + * @description List of languages user can view. If null, all languages view is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + viewLanguageIds?: number[]; + }; + PermissionWithAgencyModel: { + agency?: components["schemas"]["TranslationAgencySimpleModel"]; + /** + * @deprecated + * @description Deprecated (use translateLanguageIds). + * + * List of languages current user has TRANSLATE permission to. If null, all languages edition is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + permittedLanguageIds?: number[]; + /** + * @description Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type. + * @example [ + * "KEYS_EDIT", + * "TRANSLATIONS_VIEW" + * ] + */ + scopes: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign" | "all.view")[]; + /** + * @description List of languages user can change state to. If null, changing state of all language values is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + stateChangeLanguageIds?: number[]; + /** + * @description List of languages user can suggest to. If null, suggesting to all languages is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + suggestLanguageIds?: number[]; + /** + * @description List of languages user can translate to. If null, all languages editing is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + translateLanguageIds?: number[]; + /** + * @description The user's permission type. This field is null if uses granular permissions + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** + * @description List of languages user can view. If null, all languages view is permitted. + * @example [ + * 200001, + * 200004 + * ] + */ + viewLanguageIds?: number[]; + }; + PlanIncludedUsageModel: { + /** Format: int64 */ + keys: number; + /** Format: int64 */ + mtCredits: number; + /** Format: int64 */ + seats: number; + /** Format: int64 */ + translations: number; + }; + PlanPricesModel: { + perSeat: number; + perThousandKeys: number; + perThousandMtCredits?: number; + perThousandTranslations?: number; + subscriptionMonthly: number; + subscriptionYearly: number; + }; + PlausibleDto: { + domain?: string; + scriptUrl: string; + url: string; + }; + PositionModel: { + /** Format: int32 */ + end: number; + /** Format: int32 */ + start: number; + }; + PreTranslationByTmRequest: { + keyIds: number[]; + targetLanguageIds: number[]; + }; + PrepareSetEeLicenceKeyModel: { + plan: components["schemas"]["SelfHostedEePlanModel"]; + usage: components["schemas"]["UsageModel"]; + }; + PrivateOrganizationModel: { + /** @example Current active subscription info */ + activeCloudSubscription?: components["schemas"]["PublicCloudSubscriptionModel"]; + /** @example Links to avatar images */ + avatar?: components["schemas"]["Avatar"]; + basePermissions: components["schemas"]["PermissionModel"]; + /** + * @description The role of currently authorized user. + * + * Can be null when user has direct access to one of the projects owned by the organization. + * @enum {string} + */ + currentUserRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + /** @example This is a beautiful organization full of beautiful and clever people */ + description?: string; + /** @example Features organization has enabled */ + enabledFeatures: ("GRANULAR_PERMISSIONS" | "PRIORITIZED_FEATURE_REQUESTS" | "PREMIUM_SUPPORT" | "DEDICATED_SLACK_CHANNEL" | "ASSISTED_UPDATES" | "DEPLOYMENT_ASSISTANCE" | "BACKUP_CONFIGURATION" | "TEAM_TRAINING" | "ACCOUNT_MANAGER" | "STANDARD_SUPPORT" | "PROJECT_LEVEL_CONTENT_STORAGES" | "WEBHOOKS" | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" | "AI_PROMPT_CUSTOMIZATION" | "SLACK_INTEGRATION" | "TASKS" | "SSO" | "ORDER_TRANSLATION" | "GLOSSARY" | "TRANSLATION_LABELS")[]; + /** Format: int64 */ + id: number; + /** @example Beautiful organization */ + name: string; + organizationModel?: components["schemas"]["OrganizationModel"]; + /** @example Quick start data for current user */ + quickStart?: components["schemas"]["QuickStartModel"]; + /** @example btforg */ + slug: string; + }; + PrivateUserAccountModel: { + /** @enum {string} */ + accountType: "LOCAL" | "MANAGED" | "THIRD_PARTY"; + avatar?: components["schemas"]["Avatar"]; + deletable: boolean; + domain?: string; + emailAwaitingVerification?: string; + /** @enum {string} */ + globalServerRole: "USER" | "ADMIN" | "SUPPORTER"; + /** Format: int64 */ + id: number; + mfaEnabled: boolean; + name?: string; + needsSuperJwtToken: boolean; + /** @enum {string} */ + thirdPartyAuthType?: "GOOGLE" | "GITHUB" | "OAUTH2" | "SSO" | "SSO_GLOBAL"; + username: string; + }; + ProjectActivityAuthorModel: { + avatar?: components["schemas"]["Avatar"]; + deleted: boolean; + /** Format: int64 */ + id: number; + name?: string; + username?: string; + }; + ProjectActivityModel: { + author?: components["schemas"]["ProjectActivityAuthorModel"]; + counts?: { + [key: string]: number; + }; + meta?: { + [key: string]: unknown; + }; + modifiedEntities?: { + [key: string]: components["schemas"]["ModifiedEntityModel"][]; + }; + params?: unknown; + /** Format: int64 */ + revisionId: number; + /** Format: int64 */ + timestamp: number; + /** @enum {string} */ + type: "UNKNOWN" | "SET_TRANSLATION_STATE" | "SET_TRANSLATIONS" | "DISMISS_AUTO_TRANSLATED_STATE" | "SET_OUTDATED_FLAG" | "TRANSLATION_COMMENT_ADD" | "TRANSLATION_COMMENT_DELETE" | "TRANSLATION_COMMENT_EDIT" | "TRANSLATION_COMMENT_SET_STATE" | "SCREENSHOT_DELETE" | "SCREENSHOT_ADD" | "KEY_TAGS_EDIT" | "KEY_NAME_EDIT" | "KEY_DELETE" | "CREATE_KEY" | "COMPLEX_EDIT" | "IMPORT" | "CREATE_LANGUAGE" | "EDIT_LANGUAGE" | "DELETE_LANGUAGE" | "HARD_DELETE_LANGUAGE" | "CREATE_PROJECT" | "EDIT_PROJECT" | "NAMESPACE_EDIT" | "BATCH_PRE_TRANSLATE_BY_TM" | "BATCH_MACHINE_TRANSLATE" | "AUTO_TRANSLATE" | "BATCH_CLEAR_TRANSLATIONS" | "BATCH_COPY_TRANSLATIONS" | "BATCH_SET_TRANSLATION_STATE" | "BATCH_TAG_KEYS" | "BATCH_UNTAG_KEYS" | "BATCH_SET_KEYS_NAMESPACE" | "BATCH_ASSIGN_TRANSLATION_LABEL" | "BATCH_UNASSIGN_TRANSLATION_LABEL" | "AUTOMATION" | "CONTENT_DELIVERY_CONFIG_CREATE" | "CONTENT_DELIVERY_CONFIG_UPDATE" | "CONTENT_DELIVERY_CONFIG_DELETE" | "CONTENT_STORAGE_CREATE" | "CONTENT_STORAGE_UPDATE" | "CONTENT_STORAGE_DELETE" | "WEBHOOK_CONFIG_CREATE" | "WEBHOOK_CONFIG_UPDATE" | "WEBHOOK_CONFIG_DELETE" | "COMPLEX_TAG_OPERATION" | "TASKS_CREATE" | "TASK_CREATE" | "TASK_UPDATE" | "TASK_KEYS_UPDATE" | "TASK_FINISH" | "TASK_CLOSE" | "TASK_REOPEN" | "TASK_KEY_UPDATE" | "ORDER_TRANSLATION" | "GLOSSARY_CREATE" | "GLOSSARY_UPDATE" | "GLOSSARY_DELETE" | "GLOSSARY_IMPORT" | "GLOSSARY_TERM_CREATE" | "GLOSSARY_TERM_UPDATE" | "GLOSSARY_TERM_DELETE" | "GLOSSARY_TERM_TRANSLATION_UPDATE" | "TRANSLATION_LABELS_EDIT" | "TRANSLATION_LABEL_ASSIGN" | "TRANSLATION_LABEL_CREATE" | "TRANSLATION_LABEL_UPDATE" | "TRANSLATION_LABEL_DELETE" | "CREATE_SUGGESTION" | "DECLINE_SUGGESTION" | "ACCEPT_SUGGESTION" | "REVERSE_SUGGESTION" | "DELETE_SUGGESTION" | "SUGGESTION_SET_ACTIVE" | "AI_PROMPT_CREATE" | "AI_PROMPT_UPDATE" | "AI_PROMPT_DELETE"; + }; + ProjectAiPromptCustomizationModel: { + /** + * @description The project description used in the prompt that helps AI translator to understand the context of your project. + * @example We are Dunder Mifflin, a paper company. We sell paper. This is an project of translations for out paper selling app. + */ + description?: string; + }; + ProjectInvitationModel: { + code?: string; + /** Format: date-time */ + createdAt: string; + createdBy?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + id: number; + invitedUserEmail?: string; + invitedUserName?: string; + permission: components["schemas"]["PermissionWithAgencyModel"]; + /** + * @deprecated + * @description Use permission object instead + */ + permittedLanguageIds?: number[]; + /** + * @deprecated + * @description Use permission object instead + * @enum {string} + */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + }; + ProjectInviteUserDto: { + /** + * Format: int64 + * @description Id of invited agency + */ + agencyId?: number; + /** @description Email to send invitation to */ + email?: string; + /** + * @deprecated + * @description Deprecated -> use translate languages + */ + languages?: number[]; + /** @description Name of invited user */ + name?: string; + /** + * @description Granted scopes for the invited user + * @example [ + * "translations.view", + * "translations.edit" + * ] + */ + scopes?: string[]; + /** @description Languages user can change translation state (review) */ + stateChangeLanguages?: number[]; + /** @description Languages user can suggest translation */ + suggestLanguages?: number[]; + /** @description Languages user can translate to */ + translateLanguages?: number[]; + /** @enum {string} */ + type?: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + /** @description Languages user can view */ + viewLanguages?: number[]; + }; + ProjectLockModel: { + jobInfo?: components["schemas"]["JobInfo"]; + /** @enum {string} */ + lockStatus: "UNLOCKED" | "UNINITIALIZED" | "LOCKED"; + /** Format: int64 */ + lockedJobId?: number; + /** Format: int64 */ + projectId: number; + }; + ProjectModel: { + avatar?: components["schemas"]["Avatar"]; + baseLanguage?: components["schemas"]["LanguageModel"]; + computedPermission: components["schemas"]["ComputedPermissionModel"]; + defaultNamespace?: components["schemas"]["NamespaceModel"]; + description?: string; + /** + * @description Current user's direct permission + * @example MANAGE + */ + directPermission?: components["schemas"]["PermissionModel"]; + /** @description Whether to disable ICU placeholder visualization in the editor and it's support. */ + icuPlaceholders: boolean; + /** Format: int64 */ + id: number; + name: string; + organizationOwner?: components["schemas"]["SimpleOrganizationModel"]; + /** @enum {string} */ + organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + slug?: string; + /** + * @description Suggestions for translations + * @enum {string} + */ + suggestionsMode: "DISABLED" | "ENABLED"; + /** + * @description Level of protection of translations + * @enum {string} + */ + translationProtection: "NONE" | "PROTECT_REVIEWED"; + useNamespaces: boolean; + }; + ProjectStatistics: { + /** Format: int64 */ + keyCount: number; + /** Format: int64 */ + languageCount: number; + /** Format: int64 */ + projectId: number; + translationStatePercentages: { + [key: string]: number; + }; + }; + ProjectStatsModel: { + /** Format: int64 */ + baseWordsCount: number; + /** Format: int64 */ + keyCount: number; + /** Format: int32 */ + languageCount: number; + languageStats: components["schemas"]["LanguageStatsModel"][]; + /** Format: int64 */ + membersCount: number; + /** Format: int64 */ + projectId: number; + /** Format: double */ + reviewedPercentage: number; + /** Format: int64 */ + tagCount: number; + /** Format: int64 */ + taskCount: number; + /** Format: double */ + translatedPercentage: number; + }; + ProjectTransferOptionModel: { + /** Format: int64 */ + id: number; + name: string; + slug: string; + }; + ProjectWithStatsModel: { + avatar?: components["schemas"]["Avatar"]; + baseLanguage?: components["schemas"]["LanguageModel"]; + /** + * @description Actual current user's permissions on this project. You can not sort data by this column! + * @example EDIT + */ + computedPermission: components["schemas"]["ComputedPermissionModel"]; + description?: string; + /** + * @description Current user's direct permission + * @example MANAGE + */ + directPermission?: components["schemas"]["PermissionModel"]; + /** @description Whether to disable ICU placeholder visualization in the editor and it's support. */ + icuPlaceholders: boolean; + /** Format: int64 */ + id: number; + languages: components["schemas"]["LanguageModel"][]; + name: string; + organizationOwner?: components["schemas"]["SimpleOrganizationModel"]; + /** @enum {string} */ + organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + slug?: string; + stats: components["schemas"]["ProjectStatistics"]; + }; + PromptDto: { + basicPromptOptions?: ("KEY_NAME" | "KEY_DESCRIPTION" | "KEY_CONTEXT" | "PROJECT_DESCRIPTION" | "LANGUAGE_NOTES" | "TM_SUGGESTIONS" | "SCREENSHOT" | "GLOSSARY")[]; + name: string; + providerName: string; + template?: string; + }; + PromptModel: { + basicPromptOptions?: ("KEY_NAME" | "KEY_DESCRIPTION" | "KEY_CONTEXT" | "PROJECT_DESCRIPTION" | "LANGUAGE_NOTES" | "TM_SUGGESTIONS" | "SCREENSHOT" | "GLOSSARY")[]; + /** Format: int64 */ + id: number; + name: string; + /** Format: int64 */ + projectId: number; + providerName: string; + template?: string; + }; + PromptResponseModel: { + parsedJson?: components["schemas"]["JsonNode"]; + /** Format: int32 */ + price?: number; + prompt: string; + result: string; + usage?: components["schemas"]["PromptResponseUsageModel"]; + }; + PromptResponseUsageModel: { + /** Format: int64 */ + cachedTokens?: number; + /** Format: int64 */ + inputTokens?: number; + /** Format: int64 */ + outputTokens?: number; + }; + PromptRunDto: { + basicPromptOptions?: ("KEY_NAME" | "KEY_DESCRIPTION" | "KEY_CONTEXT" | "PROJECT_DESCRIPTION" | "LANGUAGE_NOTES" | "TM_SUGGESTIONS" | "SCREENSHOT" | "GLOSSARY")[]; + /** Format: int64 */ + keyId: number; + provider: string; + /** Format: int64 */ + targetLanguageId: number; + template?: string; + }; + PromptVariableDto: { + description?: string; + name: string; + props?: components["schemas"]["PromptVariableDto"][]; + /** @enum {string} */ + type: "FRAGMENT" | "OBJECT" | "STRING"; + value?: string; + }; + PropertyModification: { + new?: unknown; + old?: unknown; + }; + PublicBillingConfigurationDTO: { + enabled: boolean; + }; + PublicCloudPlanModel: { + /** Format: date-time */ + archivedAt?: string; + enabledFeatures: ("GRANULAR_PERMISSIONS" | "PRIORITIZED_FEATURE_REQUESTS" | "PREMIUM_SUPPORT" | "DEDICATED_SLACK_CHANNEL" | "ASSISTED_UPDATES" | "DEPLOYMENT_ASSISTANCE" | "BACKUP_CONFIGURATION" | "TEAM_TRAINING" | "ACCOUNT_MANAGER" | "STANDARD_SUPPORT" | "PROJECT_LEVEL_CONTENT_STORAGES" | "WEBHOOKS" | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" | "AI_PROMPT_CUSTOMIZATION" | "SLACK_INTEGRATION" | "TASKS" | "SSO" | "ORDER_TRANSLATION" | "GLOSSARY" | "TRANSLATION_LABELS")[]; + free: boolean; + /** Format: int64 */ + id: number; + includedUsage: components["schemas"]["PlanIncludedUsageModel"]; + /** @enum {string} */ + metricType: "KEYS_SEATS" | "STRINGS"; + name: string; + nonCommercial: boolean; + public: boolean; + /** @enum {string} */ + type: "PAY_AS_YOU_GO" | "FIXED"; + }; + PublicCloudSubscriptionModel: { + cancelAtPeriodEnd: boolean; + /** @enum {string} */ + currentBillingPeriod?: "MONTHLY" | "YEARLY"; + plan: components["schemas"]["PublicCloudPlanModel"]; + /** @enum {string} */ + status: "ACTIVE" | "CANCELED" | "PAST_DUE" | "UNPAID" | "ERROR" | "TRIALING" | "KEY_USED_BY_ANOTHER_INSTANCE" | "UNKNOWN"; + /** Format: int64 */ + trialEnd?: number; + }; + PublicConfigurationDTO: { + allowRegistrations: boolean; + appName: string; + authMethods?: components["schemas"]["AuthMethodsDTO"]; + authentication: boolean; + billing: components["schemas"]["PublicBillingConfigurationDTO"]; + capterraTracker?: string; + chatwootToken?: string; + clientSentryDsn?: string; + contentDeliveryConfigured: boolean; + ga4Tag?: string; + intercomAppId?: string; + internalControllerEnabled: boolean; + llm: components["schemas"]["PublicLlmConfigurationDTO"]; + machineTranslationServices: components["schemas"]["MtServicesDTO"]; + /** Format: int64 */ + maxTranslationTextLength: number; + /** Format: int32 */ + maxUploadFileSize: number; + nativeEnabled: boolean; + needsEmailVerification: boolean; + /** + * @deprecated + * @description Use nativeEnabled instead + */ + passwordResettable: boolean; + plausible: components["schemas"]["PlausibleDto"]; + postHogApiKey?: string; + postHogHost?: string; + recaptchaSiteKey?: string; + screenshotsUrl: string; + showVersion: boolean; + slack: components["schemas"]["SlackDTO"]; + /** Format: int32 */ + translationsViewLanguagesLimit: number; + userCanCreateOrganizations: boolean; + userSourceField: boolean; + version: string; + }; + PublicInvitationModel: { + code: string; + createdBy?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + id: number; + organizationName?: string; + projectName?: string; + }; + PublicLlmConfigurationDTO: { + enabled: boolean; + }; + PublicSsoTenantModel: { + domain: string; + force: boolean; + global: boolean; + }; + PublicUsageModel: { + /** + * Format: int64 + * @description The maximum amount organization can spend on MT credit usage before they reach the spending limit + */ + availablePayAsYouGoMtCredits: number; + /** + * Format: int64 + * @description Current balance of standard credits. Standard credits are refilled every month + */ + creditBalance: number; + /** + * Format: int64 + * @description Date when credits will be refilled. (In epoch format) + */ + creditBalanceNextRefillAt: number; + /** + * Format: int64 + * @description Date when credits were refilled. (In epoch format) + */ + creditBalanceRefilledAt: number; + /** + * Format: int64 + * @description How many keys are currently stored by organization + */ + currentKeys: number; + /** + * Format: int64 + * @description Currently used credits over credits included in plan and extra credits + */ + currentPayAsYouGoMtCredits: number; + /** + * Format: int64 + * @description How seats are currently used by organization + */ + currentSeats: number; + /** + * Format: int64 + * @description How many non-empty translations are currently stored by organization + */ + currentTranslations: number; + /** + * Format: int64 + * @deprecated + * @description Customers were able to buy extra credits separately in the past. + * + * This option is not available anymore and this field is kept only for backward compatibility purposes and is always 0. + */ + extraCreditBalance: number; + /** + * Format: int64 + * @description How many keys are included in current subscription plan. How many keys can organization use without additional costs. + */ + includedKeys: number; + /** + * Format: int64 + * @description How many credits are included in your current plan + */ + includedMtCredits: number; + /** + * Format: int64 + * @description How many seats are included in current subscription plan. How many seats can organization use without additional costs. + */ + includedSeats: number; + /** + * Format: int64 + * @description How many translations are included in current subscription plan. How many translations can organization use without additional costs + */ + includedTranslations: number; + /** @description Whether the current plan is pay-as-you-go of fixed. For pay-as-you-go plans, the spending limit is the top limit. */ + isPayAsYouGo: boolean; + /** + * Format: int64 + * @description How many keys can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) + */ + keysLimit: number; + /** Format: int64 */ + organizationId: number; + /** + * Format: int64 + * @description How many seats can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) + */ + seatsLimit: number; + /** + * Format: int64 + * @description How many translations can be stored until reaching the limit. (For pay us you go, the top limit is the spending limit) + */ + translationsLimit: number; + /** + * Format: int64 + * @description Currently used credits including credits used over the limit + */ + usedMtCredits: number; + }; + QueueItemModel: { + /** Format: int64 */ + chunkExecutionId: number; + /** Format: int64 */ + executeAfter?: number; + /** @enum {string} */ + jobCharacter: "SLOW" | "FAST"; + /** Format: int64 */ + jobId: number; + /** Format: int32 */ + managementErrorRetrials: number; + }; + QuickStartModel: { + completedSteps: string[]; + finished: boolean; + open: boolean; + }; + RegenerateApiKeyDto: { + /** + * Format: int64 + * @description Expiration date in epoch format (milliseconds). When null key never expires. + * @example 1661172869000 + */ + expiresAt?: number; + }; + RegeneratePatDto: { + /** + * Format: int64 + * @description Expiration date in epoch format (milliseconds). When null key never expires. + * @example 1661172869000 + */ + expiresAt?: number; + }; + RelatedKeyDto: { + branch?: string; + keyName: string; + namespace?: string; + }; + RenameBranchModel: { + /** + * @description New branch name + * @example feature/rename-branch + */ + name: string; + }; + ResetPassword: { + code: string; + email: string; + password?: string; + }; + ResetPasswordRequest: { + callbackUrl: string; + email: string; + }; + ResolveAllBranchMergeConflictsRequest: { + /** @enum {string} */ + resolve: "SOURCE" | "TARGET"; + }; + ResolveBranchMergeConflictRequest: { + /** + * Format: int64 + * @description Merge change id + */ + changeId: number; + /** + * @description Type of resolution + * @enum {string} + */ + resolve: "SOURCE" | "TARGET"; + }; + RevealedApiKeyModel: { + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** @description Resulting user's api key */ + key: string; + /** Format: int64 */ + lastUsedAt?: number; + /** Format: int64 */ + projectId: number; + projectName: string; + scopes: string[]; + userFullName?: string; + username?: string; + }; + RevealedPatModel: { + /** Format: int64 */ + createdAt: number; + description: string; + /** Format: int64 */ + expiresAt?: number; + /** Format: int64 */ + id: number; + /** Format: int64 */ + lastUsedAt?: number; + token: string; + /** Format: int64 */ + updatedAt: number; + }; + S3ContentStorageConfigDto: { + accessKey?: string; + bucketName: string; + /** @enum {string} */ + contentStorageType?: "S3" | "AZURE"; + enabled?: boolean; + endpoint: string; + /** @description Specifies an optional subfolder structure within s3 bucket to which content will be stored */ + path: string; + secretKey?: string; + signingRegion: string; + }; + S3ContentStorageConfigModel: { + bucketName: string; + endpoint: string; + path: string; + signingRegion: string; + }; + ScreenshotInfoDto: { + location?: string; + positions?: components["schemas"]["KeyInScreenshotPositionDto"][]; + text?: string; + }; + ScreenshotModel: { + /** Format: date-time */ + createdAt?: string; + fileUrl: string; + /** @description File name, which may be downloaded from the screenshot path. + * + * When images are secured. Encrypted timestamp is appended to the filename. + * */ + filename: string; + /** Format: int32 */ + height?: number; + /** Format: int64 */ + id: number; + keyReferences: components["schemas"]["KeyInScreenshotModel"][]; + location?: string; + middleSized?: string; + middleSizedUrl?: string; + /** @description Thumbnail file name, which may be downloaded from the screenshot path. + * + * When images are secured. Encrypted timestamp is appended to the filename. + * */ + thumbnail: string; + thumbnailUrl: string; + /** Format: int32 */ + width?: number; + }; + SelectAllResponse: { + ids: number[]; + }; + SelfHostedEePlanModel: { + /** Format: date-time */ + archivedAt?: string; + enabledFeatures: ("GRANULAR_PERMISSIONS" | "PRIORITIZED_FEATURE_REQUESTS" | "PREMIUM_SUPPORT" | "DEDICATED_SLACK_CHANNEL" | "ASSISTED_UPDATES" | "DEPLOYMENT_ASSISTANCE" | "BACKUP_CONFIGURATION" | "TEAM_TRAINING" | "ACCOUNT_MANAGER" | "STANDARD_SUPPORT" | "PROJECT_LEVEL_CONTENT_STORAGES" | "WEBHOOKS" | "MULTIPLE_CONTENT_DELIVERY_CONFIGS" | "AI_PROMPT_CUSTOMIZATION" | "SLACK_INTEGRATION" | "TASKS" | "SSO" | "ORDER_TRANSLATION" | "GLOSSARY" | "TRANSLATION_LABELS")[]; + free: boolean; + hasYearlyPrice: boolean; + /** Format: int64 */ + id: number; + includedUsage: components["schemas"]["PlanIncludedUsageModel"]; + isPayAsYouGo: boolean; + name: string; + nonCommercial: boolean; + prices: components["schemas"]["PlanPricesModel"]; + public: boolean; + }; + SetDisabledLanguagesRequest: { + languageIds: number[]; + }; + SetFileNamespaceRequest: { + namespace?: string; + }; + SetKeysNamespaceRequest: { + keyIds: number[]; + namespace?: string; + }; + SetLanguagePromptCustomizationRequest: { + /** + * @description The language description used in the prompt that helps AI translator to fine tune results for specific language + * @example For arabic language, we are super formal. Always use these translations: + * Paper -> ورقة + * Office -> مكتب + * + */ + description?: string; + }; + SetLicenseKeyDto: { + licenseKey: string; + }; + SetMachineTranslationSettingsDto: { + settings: components["schemas"]["MachineTranslationLanguagePropsDto"][]; + }; + SetOrganizationRoleDto: { + /** @enum {string} */ + roleType: "MEMBER" | "OWNER" | "MAINTAINER"; + }; + SetProjectPromptCustomizationRequest: { + /** + * @description The project description used in the prompt that helps AI translator to understand the context of your project. + * @example We are Dunder Mifflin, a paper company. We sell paper. This is an project of translations for out paper selling app. + */ + description?: string; + }; + SetTranslationsResponseModel: { + /** + * Format: int64 + * @description Id of key record + */ + keyId: number; + keyIsPlural: boolean; + /** + * @description Name of key + * @example this_is_super_key + */ + keyName: string; + /** + * @description The namespace of the key + * @example homepage + */ + keyNamespace?: string; + /** + * @description Translations object containing values updated in this request + * @example { + * "en": { + * "id": 100000003, + * "text": "This is super translation!" + * } + * } + */ + translations: { + [key: string]: components["schemas"]["TranslationModel"]; + }; + }; + SetTranslationsStateStateRequest: { + keyIds: number[]; + languageIds: number[]; + /** @enum {string} */ + state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; + }; + SetTranslationsWithKeyDto: { + /** @description Branch name to set translations for */ + branch?: string; + /** + * @description Key name to set translations for + * @example what_a_key_to_translate + */ + key: string; + /** + * @description List of languages to return translations for. + * + * If not provided, only modified translation will be provided. + * + * @example [ + * "en", + * "de", + * "fr" + * ] + */ + languagesToReturn?: string[]; + /** @description The namespace of the key. (When empty or null default namespace will be used) */ + namespace?: string; + /** + * @description Object mapping language tag to translation + * @example { + * "en": "What a translated value!", + * "cs": "Jaká to přeložená hodnota!" + * } + */ + translations: { + [key: string]: string; + }; + }; + SignUpDto: { + callbackUrl?: string; + email: string; + invitationCode?: string; + name: string; + organizationName?: string; + password: string; + recaptchaToken?: string; + /** @description Where did the user find us? */ + userSource?: string; + }; + SimpleGlossaryModel: { + /** + * @description Language tag for default translations for terms + * @example en + */ + baseLanguageTag: string; + /** Format: int64 */ + id: number; + name: string; + }; + SimpleGlossaryTermModel: { + description: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm: boolean; + /** @description When true, this term has the same translation across all target languages */ + flagNonTranslatable: boolean; + /** Format: int64 */ + id: number; + }; + SimpleGlossaryTermWithTranslationsModel: { + /** + * @description A detailed explanation or definition of the glossary term + * @example It's trademark + */ + description: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm: boolean; + /** @description When true, this term has the same translation across all target languages */ + flagNonTranslatable: boolean; + /** Format: int64 */ + id: number; + translations: components["schemas"]["GlossaryTermTranslationModel"][]; + }; + SimpleGlossaryWithStatsModel: { + /** + * Format: int64 + * @description Total number of projects currently using this glossary + * @example 69 + */ + assignedProjectsCount: number; + /** + * @description The primary language code used for terms (e.g., 'en' for English) + * @example en + */ + baseLanguageTag: string; + /** + * @description The name of one project using this glossary (can be shown as a preview) + * @example My Project + */ + firstAssignedProjectName?: string; + /** Format: int64 */ + id: number; + name: string; + }; + SimpleImportConflictResult: { + isOverridable: boolean; + keyName: string; + keyNamespace?: string; + language: string; + }; + SimpleOrganizationModel: { + /** @example Links to avatar images */ + avatar?: components["schemas"]["Avatar"]; + basePermissions: components["schemas"]["PermissionModel"]; + /** @example This is a beautiful organization full of beautiful and clever people */ + description?: string; + /** Format: int64 */ + id: number; + /** @example Beautiful organization */ + name: string; + /** @example btforg */ + slug: string; + }; + SimpleProjectModel: { + avatar?: components["schemas"]["Avatar"]; + baseLanguage?: components["schemas"]["LanguageModel"]; + description?: string; + icuPlaceholders: boolean; + /** Format: int64 */ + id: number; + name: string; + slug?: string; + }; + SimpleUserAccountModel: { + avatar?: components["schemas"]["Avatar"]; + deleted: boolean; + /** Format: int64 */ + id: number; + name?: string; + username: string; + }; + SingleStepImportRequest: { + /** + * @description Branch to which files will be imported + * @example main + */ + branch?: string; + /** @description If true, placeholders from other formats will be converted to ICU when possible */ + convertPlaceholdersToIcu: boolean; + /** @description If false, only updates keys, skipping the creation of new keys */ + createNewKeys: boolean; + /** @description If `false`, import will apply all `non-failed` overrides and reports `unresolvedConflict` + * .If `true`, import will fail completely on unresolved conflict and won't apply any changes. Unresolved conflicts are reported in the `params` of the error response */ + errorOnUnresolvedConflict?: boolean; + /** @description Definition of mapping for each file to import. */ + fileMappings: components["schemas"]["ImportFileMapping"][]; + /** + * @description Whether to override existing translation data. + * + * When set to `KEEP`, existing translations will be kept. + * When set to `NO_FORCE`, error will be thrown on conflict. + * When set to `OVERRIDE`, existing translations will be overwritten + * @enum {string} + */ + forceMode: "OVERRIDE" | "KEEP" | "NO_FORCE"; + /** @description Maps the languages from imported files to languages existing in the Tolgee platform. + * + * Use this field only when your files contain multiple languages (e.g., XLIFF files). + * + * Otherwise, use the `languageTag` property of `fileMappings`. + * + * Example: In xliff files, there are `source-language` and `target-language` attributes defined on `file` element. Using this field you can map source and target values to languages stored in the Tolgee Platform. */ + languageMappings?: components["schemas"]["LanguageMapping"][]; + /** @description If true, key descriptions will be overridden by the import */ + overrideKeyDescriptions: boolean; + /** + * @description Some translations are forbidden or protected: + * + * When set to `RECOMMENDED` it will fail for DISABLED translations and protected REVIEWED translations. + * When set to `ALL` it will fail for DISABLED translations, but will try to update protected REVIEWED translations (fails only if user has no permission) + * + * @enum {string} + */ + overrideMode?: "RECOMMENDED" | "ALL"; + /** @description If yes, keys from project that were not included in import will be deleted (only within namespaces which are included in the import). */ + removeOtherKeys?: boolean; + /** + * @description When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys. + * @example . + */ + structureDelimiter?: string; + /** @description Keys created by this import will be tagged with these tags. It add tags only to new keys. The keys that already exist will not be tagged. */ + tagNewKeys: string[]; + }; + SingleStepImportResolvableItemRequest: { + /** + * @description Key name to set translations for + * @example what_a_key_to_translate + */ + name: string; + /** @description The namespace of the key. (When empty or null default namespace will be used) */ + namespace?: string; + screenshots?: components["schemas"]["KeyScreenshotDto"][]; + /** @description Object mapping language tag to translation */ + translations: { + [key: string]: components["schemas"]["SingleStepImportResolvableTranslationRequest"]; + }; + }; + SingleStepImportResolvableRequest: { + /** @description If `false`, import will apply all `non-failed` overrides and reports `unresolvedConflict` + * .If `true`, import will fail completely on unresolved conflict and won't apply any changes. Unresolved conflicts are reported in the `params` of the error response */ + errorOnUnresolvedConflict?: boolean; + /** @description List of keys to import */ + keys: components["schemas"]["SingleStepImportResolvableItemRequest"][]; + /** + * @description Some translations are forbidden or protected: + * + * When set to `RECOMMENDED` it will fail for DISABLED translations and protected REVIEWED translations. + * When set to `ALL` it will fail for DISABLED translations, but will try to update protected REVIEWED translations (fails only if user has no permission) + * + * @enum {string} + */ + overrideMode?: "RECOMMENDED" | "ALL"; + }; + SingleStepImportResolvableTranslationRequest: { + /** + * @description + * To ensure the import doesn't override something that should not be (in case data have changed unexpectedly), + * you can specify what do you "expect": + * - EXPECT_NO_CONFLICT: There should be no conflict, if there is, import fails + * - OVERRIDE: New translation is applied over the existing in every case (Default) + * + * @example OVERRIDE + * @enum {string} + */ + resolution?: "EXPECT_NO_CONFLICT" | "OVERRIDE"; + /** + * @description Translation text + * @example Hello! I am a translation! + */ + text: string; + }; + SlackCommandDto: { + channel_id: string; + channel_name: string; + command: string; + team_domain: string; + team_id: string; + text: string; + token?: string; + trigger_id?: string; + user_id: string; + user_name: string; + }; + SlackDTO: { + connected: boolean; + enabled: boolean; + }; + SlackUserInfoModel: { + slackAvatar: string; + slackId: string; + slackName?: string; + slackRealName?: string; + teamName: string; + }; + SsoGlobalPublicConfigDTO: { + clientId?: string; + customLoginText?: string; + customLogoUrl?: string; + domain?: string; + enabled: boolean; + }; + SsoOrganizationsPublicConfigDTO: { + enabled: boolean; + }; + SsoTenantModel: { + authorizationUri: string; + clientId: string; + clientSecret: string; + domain: string; + enabled: boolean; + force: boolean; + global: boolean; + tokenUri: string; + }; + SsoUrlResponse: { + redirectUrl: string; + }; + StorageTestResult: { + /** @enum {string} */ + message?: "unauthenticated" | "api_access_forbidden" | "api_key_not_found" | "invalid_api_key" | "invalid_project_api_key" | "project_api_key_expired" | "bad_credentials" | "mfa_enabled" | "invalid_otp_code" | "mfa_not_enabled" | "can_not_revoke_own_permissions" | "data_corrupted" | "invitation_code_does_not_exist_or_expired" | "language_tag_exists" | "language_name_exists" | "language_not_found" | "operation_not_permitted" | "registrations_not_allowed" | "project_not_found" | "resource_not_found" | "scope_not_found" | "key_exists" | "third_party_auth_error_message" | "third_party_auth_no_email" | "third_party_auth_non_matching_email" | "third_party_auth_no_sub" | "third_party_auth_unknown_error" | "email_already_verified" | "third_party_unauthorized" | "third_party_google_workspace_mismatch" | "third_party_switch_initiated" | "third_party_switch_conflict" | "username_already_exists" | "username_or_password_invalid" | "user_already_has_permissions" | "user_already_has_role" | "user_not_found" | "file_not_image" | "file_too_big" | "invalid_timestamp" | "email_not_verified" | "missing_callback_url" | "invalid_jwt_token" | "expired_jwt_token" | "general_jwt_error" | "cannot_find_suitable_address_part" | "slug_not_unique" | "user_is_not_member_of_organization" | "organization_has_no_other_owner" | "user_has_no_project_access" | "user_is_organization_owner" | "cannot_set_your_own_permissions" | "user_is_organization_member" | "property_not_mutable" | "import_language_not_from_project" | "existing_language_not_selected" | "conflict_is_not_resolved" | "language_already_selected" | "cannot_parse_file" | "could_not_resolve_property" | "cannot_add_more_then_100_languages" | "no_languages_provided" | "language_with_base_language_tag_not_found" | "language_not_from_project" | "namespace_not_from_project" | "cannot_delete_base_language" | "key_not_from_project" | "max_screenshots_exceeded" | "translation_not_from_project" | "can_edit_only_own_comment" | "request_parse_error" | "filter_by_value_state_not_valid" | "import_has_expired" | "tag_not_from_project" | "translation_text_too_long" | "invalid_recaptcha_token" | "cannot_leave_owning_project" | "cannot_leave_project_with_organization_role" | "dont_have_direct_permissions" | "tag_too_log" | "too_many_uploaded_images" | "one_or_more_images_not_found" | "screenshot_not_of_key" | "service_not_found" | "too_many_requests" | "translation_not_found" | "out_of_credits" | "key_not_found" | "organization_not_found" | "cannot_find_base_language" | "base_language_not_found" | "no_exported_result" | "cannot_set_your_own_role" | "only_translate_review_or_view_permission_accepts_view_languages" | "oauth2_token_url_not_set" | "oauth2_user_url_not_set" | "email_already_invited_or_member" | "price_not_found" | "invoice_not_from_organization" | "invoice_not_found" | "plan_not_found" | "plan_not_available_any_more" | "no_auto_translation_method" | "cannot_translate_base_language" | "pat_not_found" | "invalid_pat" | "pat_expired" | "operation_unavailable_for_account_type" | "validation_email_is_not_valid" | "current_password_required" | "cannot_create_organization" | "wrong_current_password" | "wrong_param_type" | "user_missing_password" | "expired_super_jwt_token" | "cannot_delete_your_own_account" | "cannot_sort_by_this_column" | "namespace_not_found" | "namespace_exists" | "invalid_authentication_method" | "unknown_sort_property" | "only_review_permission_accepts_state_change_languages" | "only_translate_or_review_permission_accepts_translate_languages" | "cannot_set_language_permissions_for_admin_scope" | "cannot_set_view_languages_without_translations_view_scope" | "cannot_set_translate_languages_without_translations_edit_scope" | "cannot_set_state_change_languages_without_translations_state_edit_scope" | "language_not_permitted" | "scopes_has_to_be_set" | "set_exactly_one_of_scopes_or_type" | "translation_exists" | "import_keys_error" | "provide_only_one_of_screenshots_and_screenshot_uploaded_image_ids" | "multiple_projects_not_supported" | "plan_translation_limit_exceeded" | "feature_not_enabled" | "license_key_not_found" | "cannot_set_view_languages_without_for_level_based_permissions" | "cannot_set_different_translate_and_state_change_languages_for_level_based_permissions" | "cannot_disable_your_own_account" | "subscription_not_found" | "invoice_does_not_have_usage" | "customer_not_found" | "subscription_not_active" | "organization_already_subscribed" | "organization_not_subscribed" | "license_key_used_by_another_instance" | "translation_spending_limit_exceeded" | "credit_spending_limit_exceeded" | "seats_spending_limit_exceeded" | "this_instance_is_already_licensed" | "big_meta_not_from_project" | "mt_service_not_enabled" | "project_not_selected" | "organization_not_selected" | "plan_has_subscribers" | "translation_failed" | "batch_job_not_found" | "key_exists_in_namespace" | "tag_is_blank" | "execution_failed_on_management_error" | "translation_api_rate_limit" | "cannot_finalize_activity" | "formality_not_supported_by_service" | "language_not_supported_by_service" | "rate_limited" | "pat_access_not_allowed" | "pak_access_not_allowed" | "cannot_modify_disabled_translation" | "azure_config_required" | "s3_config_required" | "content_storage_config_required" | "content_storage_test_failed" | "content_storage_config_invalid" | "invalid_connection_string" | "cannot_create_azure_storage_client" | "s3_access_key_required" | "azure_connection_string_required" | "s3_secret_key_required" | "cannot_store_file_to_content_storage" | "unexpected_error_while_publishing_to_content_storage" | "webhook_responded_with_non_200_status" | "unexpected_error_while_executing_webhook" | "content_storage_is_in_use" | "cannot_set_state_for_missing_translation" | "no_project_id_provided" | "license_key_not_provided" | "subscription_already_canceled" | "user_is_subscribed_to_paid_plan" | "cannot_create_free_plan_without_fixed_type" | "cannot_modify_plan_free_status" | "key_id_not_provided" | "free_self_hosted_seat_limit_exceeded" | "advanced_params_not_supported" | "plural_forms_not_found_for_language" | "nested_plurals_not_supported" | "message_is_not_plural" | "content_outside_plural_forms" | "invalid_plural_form" | "multiple_plurals_not_supported" | "custom_values_json_too_long" | "unsupported_po_message_format" | "plural_forms_data_loss" | "current_user_does_not_own_image" | "user_cannot_view_this_organization" | "user_is_not_owner_of_organization" | "user_is_not_owner_or_maintainer_of_organization" | "pak_created_for_different_project" | "custom_slug_is_only_applicable_for_custom_storage" | "invalid_slug_format" | "batch_job_cancellation_timeout" | "import_failed" | "cannot_add_more_then_1000_languages" | "no_data_to_import" | "multiple_namespaces_mapped_to_single_file" | "multiple_mappings_for_same_file_language_name" | "multiple_mappings_for_null_file_language_name" | "too_many_mappings_for_file" | "missing_placeholder_in_template" | "tag_not_found" | "cannot_parse_encrypted_slack_login_data" | "slack_workspace_not_found" | "cannot_fetch_user_details_from_slack" | "slack_missing_scope" | "slack_not_connected_to_your_account" | "slack_invalid_command" | "slack_not_subscribed_yet" | "slack_connection_failed" | "tolgee_account_already_connected" | "slack_not_configured" | "slack_workspace_already_connected" | "slack_connection_error" | "email_verification_code_not_valid" | "cannot_subscribe_to_free_plan" | "plan_auto_assignment_only_for_free_plans" | "plan_auto_assignment_only_for_private_plans" | "task_not_found" | "task_not_finished" | "task_not_open" | "translation_agency_not_found" | "this_feature_is_not_implemented_in_oss" | "sso_token_exchange_failed" | "sso_user_info_retrieval_failed" | "sso_id_token_expired" | "sso_user_cannot_create_organization" | "sso_cant_verify_user" | "sso_auth_missing_domain" | "sso_domain_not_found_or_disabled" | "authentication_method_disabled" | "native_authentication_disabled" | "invitation_organization_mismatch" | "user_is_managed_by_organization" | "cannot_set_sso_provider_missing_fields" | "namespaces_cannot_be_disabled_when_namespace_exists" | "namespace_cannot_be_used_when_feature_is_disabled" | "sso_domain_not_allowed" | "sso_login_forced_for_this_account" | "use_sso_for_authentication_instead" | "date_has_to_be_in_the_future" | "custom_plan_and_plan_id_cannot_be_set_together" | "specify_plan_id_or_custom_plan" | "custom_plans_has_to_be_private" | "cannot_create_free_plan_with_prices" | "subscription_not_scheduled_for_cancellation" | "cannot_cancel_trial" | "cannot_update_without_modification" | "current_subscription_is_not_trialing" | "sorting_and_paging_is_not_supported_when_using_cursor" | "strings_metric_are_not_supported" | "plan_key_limit_exceeded" | "keys_spending_limit_exceeded" | "plan_seat_limit_exceeded" | "instance_not_using_license_key" | "invalid_path" | "llm_provider_not_found" | "llm_provider_error" | "prompt_not_found" | "llm_provider_not_returned_json" | "llm_template_parsing_error" | "llm_rate_limited" | "llm_provider_timeout" | "no_llm_provider_configured" | "glossary_not_found" | "glossary_term_not_found" | "glossary_term_translation_not_found" | "glossary_non_translatable_term_cannot_be_translated" | "llm_content_filter" | "llm_provider_empty_response" | "label_not_found" | "label_not_from_project" | "label_already_exists" | "filter_by_value_label_not_valid" | "suggestion_not_found" | "user_can_only_delete_his_suggestions" | "cannot_modify_reviewed_translation" | "cannot_modify_keys" | "expect_no_conflict_failed" | "suggestion_cant_be_plural" | "suggestion_must_be_plural" | "duplicate_suggestion" | "unsupported_media_type" | "impersonation_of_admin_by_supporter_not_allowed" | "already_impersonating_user" | "operation_not_permitted_in_read_only_mode" | "file_processing_failed" | "branch_not_found" | "cannot_delete_default_branch" | "branch_already_exists" | "origin_branch_not_found" | "branch_merge_not_found" | "branch_merge_change_not_found" | "branch_merge_revision_not_valid" | "branch_merge_conflicts_not_resolved" | "branch_merge_already_merged"; + params?: unknown[]; + success: boolean; + }; + StreamingResponseBody: unknown; + SuggestRequestDto: { + /** @description Text value of base translation. Useful, when base translation is not stored yet. */ + baseText?: string; + /** @description Whether base text is plural. This value is ignored if baseText is null. */ + isPlural?: boolean; + /** + * Format: int64 + * @description Key Id to get results for. Use when key is stored already. + */ + keyId?: number; + plural?: boolean; + /** @description List of services to use. If null, then all enabled services are used. */ + services?: ("GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT")[]; + /** Format: int64 */ + targetLanguageId: number; + }; + SuggestResultModel: { + /** @description If true, the base translation was empty and no translation was provided. */ + baseBlank: boolean; + /** + * @deprecated + * @description String translations provided by enabled services. (deprecated, use `result` instead) + * @example + * { + * "GOOGLE": "This was translated by Google", + * "TOLGEE": "This was translated by Tolgee Translator", + * } + * + */ + machineTranslations?: { + [key: string]: string; + }; + /** + * @description Results provided by enabled services. + * @example { + * "GOOGLE": { + * "output": "This was translated by Google", + * "contextDescription": null + * }, + * "TOLGEE": { + * "output": "This was translated by Tolgee Translator", + * "contextDescription": "This is an example in swagger" + * } + * } + */ + result?: { + [key: string]: components["schemas"]["TranslationItemModel"]; + }; + }; + SumUsageItemModel: { + total: number; + /** Format: int64 */ + unusedQuantity: number; + /** Format: int64 */ + usedQuantity: number; + /** Format: int64 */ + usedQuantityOverPlan: number; + }; + SuperTokenRequest: { + /** @description Has to be provided when TOTP enabled */ + otp?: string; + /** @description Has to be provided when TOTP not enabled */ + password?: string; + }; + TagKeyDto: { + name: string; + }; + TagKeysRequest: { + keyIds: number[]; + tags: string[]; + }; + TagModel: { + /** Format: int64 */ + id: number; + name: string; + }; + TaskKeysResponse: { + keys: number[]; + }; + TaskModel: { + agency?: components["schemas"]["TranslationAgencySimpleModel"]; + assignees: components["schemas"]["SimpleUserAccountModel"][]; + author?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + baseCharacterCount: number; + /** Format: int64 */ + baseWordCount: number; + /** Format: int64 */ + closedAt?: number; + /** Format: int64 */ + createdAt?: number; + description: string; + /** Format: int64 */ + doneItems: number; + /** Format: int64 */ + dueDate?: number; + language: components["schemas"]["LanguageModel"]; + name?: string; + /** Format: int64 */ + number: number; + /** @enum {string} */ + state: "NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED"; + /** Format: int64 */ + totalItems: number; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + }; + TaskPerUserReportModel: { + /** Format: int64 */ + baseCharacterCount: number; + /** Format: int64 */ + baseWordCount: number; + /** Format: int64 */ + doneItems: number; + user: components["schemas"]["SimpleUserAccountModel"]; + }; + TaskWithProjectModel: { + agency?: components["schemas"]["TranslationAgencySimpleModel"]; + assignees: components["schemas"]["SimpleUserAccountModel"][]; + author?: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + baseCharacterCount: number; + /** Format: int64 */ + baseWordCount: number; + /** Format: int64 */ + closedAt?: number; + /** Format: int64 */ + createdAt?: number; + description: string; + /** Format: int64 */ + doneItems: number; + /** Format: int64 */ + dueDate?: number; + language: components["schemas"]["LanguageModel"]; + name?: string; + /** Format: int64 */ + number: number; + project: components["schemas"]["SimpleProjectModel"]; + /** @enum {string} */ + state: "NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED"; + /** Format: int64 */ + totalItems: number; + /** @enum {string} */ + type: "TRANSLATE" | "REVIEW"; + }; + TextNode: unknown; + TranslationAgencySimpleModel: { + avatar?: components["schemas"]["Avatar"]; + /** Format: int64 */ + id: number; + name: string; + url?: string; + }; + TranslationCommentDto: { + /** @enum {string} */ + state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; + text: string; + }; + TranslationCommentModel: { + /** @description User who created the comment */ + author: components["schemas"]["SimpleUserAccountModel"]; + /** + * Format: date-time + * @description Date when it was created + */ + createdAt: string; + /** + * Format: int64 + * @description Id of translation comment record + */ + id: number; + /** + * @description State of translation + * @enum {string} + */ + state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; + /** @description Text of comment */ + text: string; + /** + * Format: date-time + * @description Date when it was updated + */ + updatedAt: string; + }; + TranslationCommentWithLangKeyDto: { + /** Format: int64 */ + keyId: number; + /** Format: int64 */ + languageId: number; + /** @enum {string} */ + state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; + text: string; + }; + TranslationHistoryModel: { + /** @description Author of the change */ + author?: components["schemas"]["SimpleUserAccountModel"]; + /** @description Modified fields */ + modifications?: { + [key: string]: components["schemas"]["PropertyModification"]; + }; + /** @enum {string} */ + revisionType: "ADD" | "MOD" | "DEL"; + /** + * Format: int64 + * @description Unix timestamp of the revision + */ + timestamp: number; + }; + TranslationItemModel: { + contextDescription?: string; + output: string; + }; + TranslationLabelRequest: { + /** Format: int64 */ + keyId: number; + /** Format: int64 */ + labelId: number; + /** Format: int64 */ + languageId: number; + }; + TranslationMemoryItemModel: { + baseText: string; + keyName: string; + /** Format: float */ + similarity: number; + targetText: string; + }; + TranslationModel: { + /** @description Was translated using Translation Memory or Machine translation service? */ + auto: boolean; + /** + * Format: int64 + * @description Id of translation record + */ + id: number; + /** + * @description Which machine translation service was used to auto translate this + * @enum {string} + */ + mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + /** @description Whether base language translation was changed after this translation was updated */ + outdated: boolean; + /** + * @description State of translation + * @enum {string} + */ + state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; + /** @description Translation text */ + text?: string; + }; + TranslationSuggestionAcceptResponse: { + accepted: components["schemas"]["TranslationSuggestionModel"]; + declined: number[]; + }; + TranslationSuggestionModel: { + author: components["schemas"]["SimpleUserAccountModel"]; + /** Format: date-time */ + createdAt: string; + /** Format: int64 */ + id: number; + isPlural: boolean; + /** Format: int64 */ + keyId: number; + /** Format: int64 */ + languageId: number; + /** @enum {string} */ + state: "ACTIVE" | "ACCEPTED" | "DECLINED"; + translation?: string; + /** Format: date-time */ + updatedAt: string; + }; + TranslationSuggestionSimpleModel: { + author: components["schemas"]["SimpleUserAccountModel"]; + /** Format: int64 */ + id: number; + isPlural: boolean; + /** @enum {string} */ + state: "ACTIVE" | "ACCEPTED" | "DECLINED"; + translation?: string; + }; + TranslationViewModel: { + /** + * Format: int64 + * @description Number of active suggestions + */ + activeSuggestionCount: number; + /** @description Was translated using Translation Memory or Machine translation service? */ + auto: boolean; + /** + * Format: int64 + * @description Count of translation comments + */ + commentCount: number; + /** @description Was translation memory used to translate this? */ + fromTranslationMemory: boolean; + /** + * Format: int64 + * @description Id of translation record + */ + id?: number; + /** @description Labels assigned to this translation */ + labels?: components["schemas"]["LabelModel"][]; + /** + * @description Which machine translation service was used to auto translate this + * @enum {string} + */ + mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; + /** @description Whether base language translation was changed after this translation was updated */ + outdated: boolean; + /** + * @description State of translation + * @enum {string} + */ + state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; + /** @description First suggestion */ + suggestions?: components["schemas"]["TranslationSuggestionSimpleModel"][]; + /** @description Translation text */ + text?: string; + /** + * Format: int64 + * @description Number of all suggestions + */ + totalSuggestionCount: number; + /** + * Format: int64 + * @description Count of unresolved translation comments + */ + unresolvedCommentCount: number; + }; + TranslationWithCommentModel: { + comment: components["schemas"]["TranslationCommentModel"]; + translation: components["schemas"]["TranslationModel"]; + }; + UntagKeysRequest: { + keyIds: number[]; + tags: string[]; + }; + UpdateGlossaryRequest: { + /** @description Projects assigned to glossary; when null, assigned projects will be kept unchanged. */ + assignedProjectIds?: number[]; + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + baseLanguageTag: string; + /** + * @description Glossary name + * @example My glossary + */ + name: string; + }; + UpdateGlossaryTermTranslationRequest: { + /** + * @description Language tag according to BCP 47 definition + * @example cs-CZ + */ + languageTag: string; + /** + * @description Translation text + * @example Translated text to language of languageTag + */ + text: string; + }; + UpdateGlossaryTermWithTranslationRequest: { + description?: string; + /** @description Specifies whether the term represents a shortened form of a word or phrase */ + flagAbbreviation?: boolean; + /** @description When true, the term matching considers uppercase and lowercase characters as distinct */ + flagCaseSensitive?: boolean; + /** @description When true, marks this term as prohibited or not recommended for use in translations */ + flagForbiddenTerm?: boolean; + /** @description When true, this term will have the same translation across all target languages */ + flagNonTranslatable?: boolean; + text?: string; + }; + UpdateNamespaceDto: { + name: string; + }; + UpdatePatDto: { + /** @description New description of the PAT */ + description: string; + }; + UpdateTaskKeyRequest: { + done: boolean; + }; + UpdateTaskKeyResponse: { + /** @description Task key is marked as done */ + done: boolean; + /** @description Task progress is 100% */ + taskFinished: boolean; + }; + UpdateTaskKeysRequest: { + /** @description Keys to add to task */ + addKeys?: number[]; + /** @description Keys to remove from task */ + removeKeys?: number[]; + }; + UpdateTaskRequest: { + assignees: number[]; + description: string; + /** + * Format: int64 + * @description Due to date in epoch format (milliseconds). + * @example 1661172869000 + */ + dueDate?: number; + name?: string; + }; + UploadedImageModel: { + /** Format: date-time */ + createdAt: string; + fileUrl: string; + filename: string; + /** Format: int64 */ + id: number; + location?: string; + requestFilename: string; + }; + UsageModel: { + /** @description Relevant for invoices only. When there are applied stripe credits, we need to reduce the total price by this amount. */ + appliedStripeCredits?: number; + credits?: components["schemas"]["SumUsageItemModel"]; + keys: components["schemas"]["AverageProportionalUsageItemModel"]; + seats: components["schemas"]["AverageProportionalUsageItemModel"]; + subscriptionPrice?: number; + total: number; + translations: components["schemas"]["AverageProportionalUsageItemModel"]; + }; + UsedNamespaceModel: { + /** + * Format: int64 + * @description The id of namespace. Null for default namespace. + * @example 10000048 + */ + id?: number; + /** + * @description Name of namespace. Null if default. + * @example homepage + */ + name?: string; + }; + UserAccountInProjectModel: { + avatar?: components["schemas"]["Avatar"]; + /** + * @description Actual user's permissions on selected project. You can not sort data by this column! + * @example EDIT + */ + computedPermission: components["schemas"]["ComputedPermissionModel"]; + directPermission?: components["schemas"]["PermissionWithAgencyModel"]; + /** Format: int64 */ + id: number; + mfaEnabled: boolean; + name?: string; + organizationBasePermission: components["schemas"]["PermissionModel"]; + /** @enum {string} */ + organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + username: string; + }; + UserAccountModel: { + avatar?: components["schemas"]["Avatar"]; + deleted: boolean; + disabled: boolean; + emailAwaitingVerification?: string; + /** @enum {string} */ + globalServerRole: "USER" | "ADMIN" | "SUPPORTER"; + /** Format: int64 */ + id: number; + mfaEnabled: boolean; + name?: string; + username: string; + }; + UserAccountWithOrganizationRoleModel: { + avatar?: components["schemas"]["Avatar"]; + /** Format: int64 */ + id: number; + mfaEnabled: boolean; + name: string; + /** @enum {string} */ + organizationRole?: "MEMBER" | "OWNER" | "MAINTAINER"; + projectsWithDirectPermission: components["schemas"]["SimpleProjectModel"][]; + username: string; + }; + UserMfaRecoveryRequestDto: { + password: string; + }; + UserPreferencesModel: { + language?: string; + /** Format: int64 */ + preferredOrganizationId?: number; + }; + UserTotpDisableRequestDto: { + password: string; + }; + UserTotpEnableRequestDto: { + otp: string; + password: string; + totpKey: string; + }; + UserUpdatePasswordRequestDto: { + currentPassword: string; + password: string; + }; + UserUpdateRequestDto: { + /** @description Callback url for link sent in e-mail. This may be omitted, when server has set frontEndUrl in properties. */ + callbackUrl?: string; + currentPassword?: string; + email: string; + name: string; + }; + V2EditApiKeyDto: { + description?: string; + scopes: string[]; + }; + VariablesResponseDto: { + data: components["schemas"]["PromptVariableDto"][]; + }; + WebhookConfigModel: { + /** + * Format: int64 + * @description Date of the first failed webhook request. If the last webhook request is successful, this value is set to null. + */ + firstFailed?: number; + /** Format: int64 */ + id: number; + /** + * Format: int64 + * @description Date of the last webhook request. + */ + lastExecuted?: number; + url: string; + webhookSecret: string; + }; + WebhookConfigRequest: { + url: string; + }; + WebhookTestResponse: { + success: boolean; + }; + WorkspaceModel: { + /** Format: int64 */ + id: number; + slackTeamId: string; + slackTeamName: string; + }; + }; + responses: never; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + doExportJsonZip: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/zip": components["schemas"]["StreamingResponseBody"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAuthenticationUrl: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DomainRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SsoUrlResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + authenticateUser_1: { + parameters: { + query?: { + code?: string; + redirect_uri?: string; + invitationCode?: string; + domain?: string; + }; + header?: never; + path: { + serviceType: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getPublicConfiguration: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PublicConfigurationDTO"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + authenticateUser: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LoginRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + invitationInfo: { + parameters: { + query?: never; + header?: never; + path: { + code: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PublicInvitationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resetPasswordRequest: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResetPasswordRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resetPasswordSet: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResetPassword"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resetPasswordValidate: { + parameters: { + query?: never; + header?: never; + path: { + code: string; + email: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + signUp: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SignUpDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + validateEmail: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TextNode"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": boolean; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + verifyEmail: { + parameters: { + query?: never; + header?: never; + path: { + userId: number; + code: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getBatchJobQueue: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelQueueItemModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getOrganizations: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelOrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getProjectLocks: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelProjectLockModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getUsers: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelUserAccountModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteUser: { + parameters: { + query?: never; + header?: never; + path: { + userId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + disableUser: { + parameters: { + query?: never; + header?: never; + path: { + userId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + enableUser: { + parameters: { + query?: never; + header?: never; + path: { + userId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + generateUserToken: { + parameters: { + query?: never; + header?: never; + path: { + userId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setRole: { + parameters: { + query?: never; + header?: never; + path: { + userId: number; + role: "USER" | "ADMIN" | "SUPPORTER"; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getLatest: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["AnnouncementDto"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + dismiss: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + allByUser: { + parameters: { + query: { + pageable: components["schemas"]["Pageable"]; + filterProjectId?: number; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelApiKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_16: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateApiKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RevealedApiKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getScopes: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getCurrent_1: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ApiKeyWithLanguagesModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getCurrentPermissions: { + parameters: { + query?: { + /** @description Required when using with PAT */ + projectId?: number; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ApiKeyPermissionsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_11: { + parameters: { + query?: never; + header?: never; + path: { + apiKeyId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["V2EditApiKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ApiKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_10: { + parameters: { + query?: never; + header?: never; + path: { + apiKeyId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + regenerate_1: { + parameters: { + query?: never; + header?: never; + path: { + apiKeyId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["RegenerateApiKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RevealedApiKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_24: { + parameters: { + query?: never; + header?: never; + path: { + keyId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ApiKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getCurrentAuthProvider: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["AuthProviderDto"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteCurrentAuthProvider: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getChangedAuthProvider: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["AuthProviderDto"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + acceptChangeAuthProvider: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AcceptAuthProviderChangeRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + rejectChangeAuthProvider: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getUsage_1: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CurrentUsageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getInfo_5: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["EeSubscriptionModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + prepareSetLicenseKey: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetLicenseKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PrepareSetEeLicenceKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + refreshSubscription: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["EeSubscriptionModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + release: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setLicenseKey: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetLicenseKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["EeSubscriptionModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + upload: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "multipart/form-data": { + /** Format: binary */ + image: string; + info?: components["schemas"]["ImageUploadInfoDto"]; + }; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "*/*": components["schemas"]["UploadedImageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_16: { + parameters: { + query?: never; + header?: never; + path: { + ids: number[]; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + acceptInvitation: { + parameters: { + query?: never; + header?: never; + path: { + code: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + acceptInvitationPut: { + parameters: { + query?: never; + header?: never; + path: { + code: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteInvitation: { + parameters: { + query?: never; + header?: never; + path: { + invitationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getNotifications: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + /** @description Filter by the `seen` parameter. + * + * no value = request everything + * + * true = only seen + * + * false = only unseen */ + filterSeen?: boolean; + cursor?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelWithNextCursorNotificationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getNotificationsSettings: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["NotificationSettingModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + putNotificationSetting: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["NotificationSettingsRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + markNotificationsAsSeen: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["NotificationsMarkSeenRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_10: { + parameters: { + query: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + filterCurrentUserOwner: boolean; + search?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelOrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_13: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["OrganizationDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_15: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_10: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["OrganizationDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_9: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + uploadAvatar_2: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: { + content: { + "multipart/form-data": { + /** Format: binary */ + avatar: string; + }; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + removeAvatar_2: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + inviteUser_1: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["OrganizationInviteUserDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrganizationInvitationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + leaveOrganization: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllProjects_1: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllUsers_1: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelUserAccountWithOrganizationRoleModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllBaseLanguagesInUse: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + projectIds?: number[]; + }; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelOrganizationLanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_12: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelSimpleGlossaryModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_14: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateGlossaryRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GlossaryModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllWithStats: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelSimpleGlossaryWithStatsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_13: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GlossaryModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_8: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateGlossaryRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GlossaryModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_7: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAssignedProjects: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelSimpleProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + export: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StreamingResponseBody"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + importCsv: { + parameters: { + query?: { + removeExistingTerms?: boolean; + }; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: { + content: { + "multipart/form-data": { + /** Format: binary */ + file: string; + }; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GlossaryImportResult"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getLanguages: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelGlossaryLanguageDto"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_13: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + languageTags?: string[]; + }; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelSimpleGlossaryTermModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_15: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateGlossaryTermWithTranslationRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CreateUpdateGlossaryTermResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteMultiple: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DeleteMultipleGlossaryTermsRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_14: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + termId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GlossaryTermModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_9: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + termId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateGlossaryTermWithTranslationRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CreateUpdateGlossaryTermResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_8: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + termId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_12: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + termId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateGlossaryTermTranslationRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GlossaryTermTranslationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_23: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + glossaryId: number; + termId: number; + languageTag: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["GlossaryTermTranslationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllIds: { + parameters: { + query?: { + search?: string; + languageTags?: string[]; + }; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLong"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllWithTranslations: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + languageTags?: string[]; + }; + header?: never; + path: { + organizationId: number; + glossaryId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelSimpleGlossaryTermWithTranslationsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getInvitations: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelOrganizationInvitationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllLanguagesInUse: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + projectIds?: number[]; + }; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelOrganizationLanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_11: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLlmProviderModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createProvider: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LlmProviderRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LlmProviderModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAvailableProviders: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLlmProviderSimpleModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getServerProviders: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLlmProviderSimpleModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updateProvider: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + providerId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LlmProviderRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LlmProviderModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteProvider: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + providerId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getOrganizationCredits: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CreditBalanceModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllWithStatistics_2: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setBasePermissions: { + parameters: { + query: { + /** + * @description Granted scopes to all projects for all organization users without direct project permissions set. + * @example [ + * "translations.view", + * "translations.edit" + * ] + */ + scopes: string[]; + }; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setBasePermissions_1: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + permissionType: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + connectWorkspace: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ConnectToSlackDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + connectToSlack: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ConnectToSlackUrlModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getConnectedWorkspaces: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelWorkspaceModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + disconnectWorkspace: { + parameters: { + query?: never; + header?: never; + path: { + workspaceId: number; + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + findProvider: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SsoTenantModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setProvider: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateProviderRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SsoTenantModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getUsage: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PublicUsageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + removeUser: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + userId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setUserRole: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + userId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetOrganizationRoleDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_22: { + parameters: { + query?: never; + header?: never; + path: { + slug: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllProjects: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + slug: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllWithStatistics_1: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + slug: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_9: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelPatModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_12: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreatePatDto"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "*/*": components["schemas"]["RevealedPatModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getCurrent: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PatWithUserModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_12: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PatModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_7: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdatePatDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PatModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_6: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + regenerate: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["RegeneratePatDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RevealedPatModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getPreferred: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PrivateOrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll: { + parameters: { + query?: { + /** @description Filter projects by id */ + filterId?: number[]; + /** @description Filter projects without id */ + filterNotId?: number[]; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createProject: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateProjectRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllWithStatistics: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelProjectWithStatsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_2: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + editProject: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["EditProjectRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteProject: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getActivity: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelProjectActivityModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getSingleRevision: { + parameters: { + query?: never; + header?: never; + path: { + revisionId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectActivityModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getModifiedEntitiesByRevision: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + /** @description Filters results by specific entity class */ + filterEntityClass?: string[]; + }; + header?: never; + path: { + revisionId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelModifiedEntityModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAiPlaygroundResult: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AiPlaygroundResultRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelAiPlaygroundResultModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getPromptProjectCustomization: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectAiPromptCustomizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setPromptProjectCustomization: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetProjectPromptCustomizationRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectAiPromptCustomizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllKeys: { + parameters: { + query?: { + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getDisabledLanguages_2: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelKeyDisabledLanguagesModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + allByProject: { + parameters: { + query: { + pageable: components["schemas"]["Pageable"]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelApiKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAutoTranslationSettings: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["AutoTranslationConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setAutoTranslationSettings: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AutoTranslationSettingsDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["AutoTranslationConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + uploadAvatar_1: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: { + content: { + "multipart/form-data": { + /** Format: binary */ + avatar: string; + }; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + removeAvatar_1: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + list_3: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelBatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_20: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + cancel: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + store_2: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["BigMetaDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + all: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + activeOnly?: boolean; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelBranchModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_11: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateBranchModel"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BranchModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getBranchMerges: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelBranchMergeModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + dryRunMerge: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DryRunMergeBranchRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BranchMergeRefModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteBranchMerge: { + parameters: { + query?: never; + header?: never; + path: { + mergeId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + merge: { + parameters: { + query?: never; + header?: never; + path: { + mergeId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getBranchMergeSessionChanges: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + type?: "ADD" | "UPDATE" | "DELETE" | "CONFLICT"; + }; + header?: never; + path: { + mergeId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelBranchMergeChangeModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getBranchMergeSessionConflicts: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + mergeId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelBranchMergeConflictModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getBranchMergeSessionPreview: { + parameters: { + query?: never; + header?: never; + path: { + mergeId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BranchMergeModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + refreshBranchMerge: { + parameters: { + query?: never; + header?: never; + path: { + mergeId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BranchMergeModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resolveConflict: { + parameters: { + query?: never; + header?: never; + path: { + mergeId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResolveBranchMergeConflictRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resolveAllConflicts: { + parameters: { + query?: never; + header?: never; + path: { + mergeId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResolveAllBranchMergeConflictsRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + rename: { + parameters: { + query?: never; + header?: never; + path: { + branchId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["RenameBranchModel"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BranchModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_13: { + parameters: { + query?: never; + header?: never; + path: { + branchId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + list_2: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelContentDeliveryConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_10: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentDeliveryConfigRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ContentDeliveryConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_11: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ContentDeliveryConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_6: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentDeliveryConfigRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ContentDeliveryConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + post: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_5: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + list_1: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelContentStorageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_9: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentStorageRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ContentStorageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + test_1: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentStorageRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StorageTestResult"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_10: { + parameters: { + query?: never; + header?: never; + path: { + contentStorageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ContentStorageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_5: { + parameters: { + query?: never; + header?: never; + path: { + contentStorageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentStorageRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ContentStorageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_4: { + parameters: { + query?: never; + header?: never; + path: { + contentStorageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + testExisting: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ContentStorageRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StorageTestResult"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + currentJobs: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelBatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + exportData: { + parameters: { + query: { + /** + * @description Languages to be contained in export. + * + * If null, all languages are exported + * @example en + */ + languages?: string[]; + /** @description Format to export to */ + format: "JSON" | "JSON_TOLGEE" | "XLIFF" | "PO" | "APPLE_STRINGS_STRINGSDICT" | "APPLE_XLIFF" | "ANDROID_XML" | "COMPOSE_XML" | "FLUTTER_ARB" | "PROPERTIES" | "YAML_RUBY" | "YAML" | "JSON_I18NEXT" | "CSV" | "RESX_ICU" | "XLSX" | "APPLE_XCSTRINGS" | "ANDROID_SDK" | "APPLE_SDK"; + /** @description Delimiter to structure file content. + * + * e.g. For key "home.header.title" would result in {"home": {"header": "title": {"Hello"}}} structure. + * + * When null, resulting file won't be structured. Works only for generic structured formats (e.g. JSON, YAML), + * specific formats like `YAML_RUBY` don't honor this parameter. */ + structureDelimiter?: string; + /** @description Filter key IDs to be contained in export */ + filterKeyId?: number[]; + /** @description Filter key IDs not to be contained in export */ + filterKeyIdNot?: number[]; + /** @description Filter keys tagged by. + * + * This filter works the same as `filterTagIn` but in this cases it accepts single tag only. */ + filterTag?: string; + /** @description Filter keys tagged by one of provided tags */ + filterTagIn?: string[]; + /** @description Filter keys not tagged by one of provided tags */ + filterTagNotIn?: string[]; + /** @description Filter keys with prefix */ + filterKeyPrefix?: string; + /** @description Filter translations with state. By default, all states except untranslated is exported. */ + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + /** @description Filter translations with namespace. By default, all namespaces everything are exported. To export default namespace, use empty string. */ + filterNamespace?: string[]; + /** @description If false, it doesn't return zip of files, but it returns single file. + * + * This is possible only when single language is exported. Otherwise it returns "400 - Bad Request" response. */ + zip: boolean; + /** @description Message format to be used for export. + * + * e.g. PHP_PO: Hello %s, ICU: Hello {name}. + * + * This property is honored only for generic formats like JSON or YAML. + * For specific formats like `YAML_RUBY` it's ignored. */ + messageFormat?: "C_SPRINTF" | "PHP_SPRINTF" | "JAVA_STRING_FORMAT" | "APPLE_SPRINTF" | "RUBY_SPRINTF" | "I18NEXT" | "ICU" | "PYTHON_PERCENT"; + /** @description This is a template that defines the structure of the resulting .zip file content. + * + * The template is a string that can contain the following placeholders: {namespace}, {languageTag}, + * {androidLanguageTag}, {snakeLanguageTag}, {extension}. + * + * For example, when exporting to JSON with the template `{namespace}/{languageTag}.{extension}`, + * the English translations of the `home` namespace will be stored in `home/en.json`. + * + * The `{snakeLanguageTag}` placeholder is the same as `{languageTag}` but in snake case. (e.g., en_US). + * + * The Android specific `{androidLanguageTag}` placeholder is the same as `{languageTag}` + * but in Android format. (e.g., en-rUS) + * */ + fileStructureTemplate?: string; + /** @description If true, for structured formats (like JSON) arrays are supported. + * + * e.g. Key hello[0] will be exported as {"hello": ["..."]} */ + supportArrays: boolean; + /** @description If true, HTML tags are escaped in the exported file. (Supported in the XLIFF format only). + * + * e.g. Key hello will be exported as <b>hello</b> */ + escapeHtml?: boolean; + /** @description Filter translations with branch. + * + * By default, default branch is exported. */ + filterBranch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description When multiple files are exported, they are zipped and returned as a single zip file. + * When a single file is exported, it is returned directly. */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/*": unknown; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + exportPost: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ExportParams"]; + }; + }; + responses: { + /** @description When multiple files are exported, they are zipped and returned as a single zip file. + * When a single file is exported, it is returned directly. */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/*": unknown; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getHighlights: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GlossaryHighlightsRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelGlossaryTermHighlightModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + addFiles: { + parameters: { + query?: { + /** + * @description When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys. + * @example . + */ + structureDelimiter?: string; + /** + * @description Branch to which files will be imported + * @example main + */ + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: { + content: { + "multipart/form-data": { + files: string[]; + }; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ImportAddFilesResultModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + cancelImport: { + parameters: { + query?: { + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ImportSettingsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + store: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ImportSettingsRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ImportSettingsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllNamespaces: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelImportNamespaceModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + applyImport: { + parameters: { + query?: { + /** @description Whether override or keep all translations with unresolved conflicts */ + forceMode?: "OVERRIDE" | "KEEP" | "NO_FORCE"; + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + applyImportStreaming: { + parameters: { + query?: { + /** @description Whether override or keep all translations with unresolved conflicts */ + forceMode?: "OVERRIDE" | "KEEP" | "NO_FORCE"; + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/x-ndjson": components["schemas"]["StreamingResponseBody"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getImportResult: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelImportLanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + selectNamespace: { + parameters: { + query?: never; + header?: never; + path: { + fileId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetFileNamespaceRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getImportFileIssues: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + importFileId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelImportFileIssueModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resetExistingLanguage: { + parameters: { + query?: never; + header?: never; + path: { + importLanguageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + selectExistingLanguage: { + parameters: { + query?: never; + header?: never; + path: { + importLanguageId: number; + existingLanguageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getImportLanguage: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ImportLanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteLanguage_2: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resolveTranslationSetKeepExisting_2: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resolveTranslationSetOverride_2: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getImportTranslations: { + parameters: { + query?: { + /** @description Whether only translations, which are in conflict with existing translations should be returned */ + onlyConflicts?: boolean; + /** @description Whether only translations with unresolved conflictswith existing translations should be returned */ + onlyUnresolved?: boolean; + /** @description String to search in translation text or key */ + search?: string; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + languageId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelImportTranslationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resolveTranslationSetKeepExisting: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + translationId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + resolveTranslationSetOverride: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + translationId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getProjectInvitations: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelProjectInvitationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + inviteUser: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ProjectInviteUserDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectInvitationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_7: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelKeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_6: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateKeyDto"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "*/*": components["schemas"]["KeyWithDataModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_11: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DeleteKeysDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_5: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateKeyDto"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "*/*": components["schemas"]["KeyWithDataModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + importKeys_2: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ImportKeysDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + importKeys: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ImportKeysResolvableDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["KeyImportResolvableResultModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getInfo_1: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GetKeysRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelKeyWithDataModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + searchForKey: { + parameters: { + query: { + /** @description Search query */ + search: string; + /** @description Language to search in */ + languageTag?: string; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelKeySearchSearchResultModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + selectKeys_2: { + parameters: { + query?: { + /** @description Translation state in the format: languageTag,state. You can use this parameter multiple times. + * + * When used with multiple states for same language it is applied with logical OR. + * + * When used with multiple languages, it is applied with logical AND. + * */ + filterState?: string[]; + /** + * @description Languages to be contained in response. + * + * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) + * @example en + */ + languages?: string[]; + /** @description String to search in key name or translation text */ + search?: string; + /** @description Selects key with provided names. Use this param multiple times to fetch more keys. */ + filterKeyName?: string[]; + /** @description Selects key with provided ID. Use this param multiple times to fetch more keys. */ + filterKeyId?: number[]; + /** @description Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ + filterUntranslatedAny?: boolean; + /** @description Selects only keys, where translation is provided in any language */ + filterTranslatedAny?: boolean; + /** + * @description Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. + * @example en-US + */ + filterUntranslatedInLang?: string; + /** + * @description Selects only keys, where translation is provided in specified language + * @example en-US + */ + filterTranslatedInLang?: string; + /** + * @description Selects only keys, where translation was auto translated for specified languages. + * @example en-US + */ + filterAutoTranslatedInLang?: string[]; + /** @description Selects only keys with screenshots */ + filterHasScreenshot?: boolean; + /** @description Selects only keys without screenshots */ + filterHasNoScreenshot?: boolean; + /** @description Selects only keys with provided namespaces. + * + * To filter default namespace, set to empty string. + * */ + filterNamespace?: string[]; + /** @description Selects only keys without provided namespaces. + * + * To filter default namespace, set to empty string. + * */ + filterNoNamespace?: string[]; + /** @description Selects only keys with provided tag */ + filterTag?: string[]; + /** @description Selects only keys without provided tag */ + filterNoTag?: string[]; + /** + * @description Selects only keys, where translation in provided langs is in outdated state + * @example en-US + */ + filterOutdatedLanguage?: string[]; + /** + * @description Selects only keys, where translation in provided langs is not in outdated state + * @example en-US + */ + filterNotOutdatedLanguage?: string[]; + /** + * @description Selects only key affected by activity with specidfied revision ID + * @example 1234567 + */ + filterRevisionId?: number[]; + /** @description Select only keys which were not successfully translated by batch job with provided id */ + filterFailedKeysOfJob?: number; + /** @description Select only keys which are in specified task */ + filterTaskNumber?: number[]; + /** @description Filter task keys which are `not done` */ + filterTaskKeysNotDone?: boolean; + /** @description Filter task keys which are `done` */ + filterTaskKeysDone?: boolean; + /** @description Filter keys with unresolved comments in lang */ + filterHasUnresolvedCommentsInLang?: string[]; + /** @description Filter keys with any comments in lang */ + filterHasCommentsInLang?: string[]; + /** + * @description Filter key translations with labels + * @example labelId1,labelId2 + */ + filterLabel?: string[]; + /** @description Filter keys with any suggestions in lang */ + filterHasSuggestionsInLang?: string[]; + /** @description Filter keys with no suggestions in lang */ + filterHasNoSuggestionsInLang?: string[]; + /** @description Selects only keys from specified branch */ + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SelectAllResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_14: { + parameters: { + query?: never; + header?: never; + path: { + ids: number[]; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_8: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["KeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + edit: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["EditKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["KeyModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getBigMeta: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelKeyWithBaseTranslationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + complexEdit: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ComplexEditKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["KeyWithDataModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getDisabledLanguages: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setDisabledLanguages: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetDisabledLanguagesRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + autoTranslate: { + parameters: { + query?: { + /** @description Tags of languages to auto-translate. + * When no languages provided, it translates only untranslated languages. */ + languages?: string[]; + useMachineTranslation?: boolean; + useTranslationMemory?: boolean; + }; + header?: never; + path: { + keyId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getKeyScreenshots_1: { + parameters: { + query?: never; + header?: never; + path: { + keyId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelScreenshotModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + uploadScreenshot_1: { + parameters: { + query?: never; + header?: never; + path: { + keyId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: { + content: { + "multipart/form-data": { + /** Format: binary */ + screenshot: string; + info?: components["schemas"]["ScreenshotInfoDto"]; + }; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "*/*": components["schemas"]["ScreenshotModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteScreenshots_1: { + parameters: { + query?: never; + header?: never; + path: { + ids: number[]; + keyId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + tagKey: { + parameters: { + query?: never; + header?: never; + path: { + keyId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TagKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TagModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + removeTag: { + parameters: { + query?: never; + header?: never; + path: { + keyId: number; + tagId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_1: { + parameters: { + query?: { + search?: string; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelLabelModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createLabel: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LabelRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LabelModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getLabelsByIds: { + parameters: { + query: { + id: number[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LabelModel"][]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updateLabel: { + parameters: { + query?: never; + header?: never; + path: { + labelId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LabelRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LabelModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteLabel: { + parameters: { + query?: never; + header?: never; + path: { + labelId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getLanguagePromptCustomizations: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLanguageAiPromptCustomizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_5: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + /** @description Filter languages by id */ + filterId?: number[]; + /** @description Filter languages without id */ + filterNotId?: number[]; + /** @description Filter languages by name or tag */ + search?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelLanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createLanguage: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LanguageRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_6: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + editLanguage: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LanguageRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LanguageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteLanguage: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setLanguagePromptCustomization: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetLanguagePromptCustomizationRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LanguageAiPromptCustomizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getSuggestions: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + /** @description Filter by suggestion state */ + filterState?: ("ACTIVE" | "ACCEPTED" | "DECLINED")[]; + }; + header?: never; + path: { + languageId: number; + keyId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelTranslationSuggestionModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createSuggestion: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + keyId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateTranslationSuggestionRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationSuggestionModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteSuggestion: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + keyId: number; + suggestionId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + acceptSuggestion: { + parameters: { + query?: { + declineOther?: boolean; + }; + header?: never; + path: { + languageId: number; + keyId: number; + suggestionId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationSuggestionAcceptResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + declineSuggestion: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + keyId: number; + suggestionId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationSuggestionModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + suggestionSetActive: { + parameters: { + query?: never; + header?: never; + path: { + languageId: number; + keyId: number; + suggestionId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationSuggestionModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + leaveProject: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getProjectCredits: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CreditBalanceModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getMachineTranslationLanguageInfo: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLanguageInfoModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getMachineTranslationSettings: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLanguageConfigItemModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setMachineTranslationSettings: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetMachineTranslationSettingsDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelLanguageConfigItemModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setMachineTranslationSettings_1: { + parameters: { + query?: never; + header?: never; + path: { + promptId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + myList: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelBatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getByName: { + parameters: { + query?: never; + header?: never; + path: { + name: string; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["NamespaceModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllNamespaces_2: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelNamespaceModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_3: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateNamespaceDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["NamespaceModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getPerLanguageAutoTranslationSettings: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelAutoTranslationConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setPerLanguageAutoTranslationSettings: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AutoTranslationSettingsDto"][]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelAutoTranslationConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllPaged: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelPromptModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createPrompt: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PromptDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PromptModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getDefaultPrompt: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PromptDto"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + variables: { + parameters: { + query?: { + keyId?: number; + targetLanguageId?: number; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["VariablesResponseDto"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + run: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PromptRunDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PromptResponseModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getPrompt: { + parameters: { + query?: never; + header?: never; + path: { + promptId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PromptModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updatePrompt: { + parameters: { + query?: never; + header?: never; + path: { + promptId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PromptDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PromptModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deletePrompt: { + parameters: { + query?: never; + header?: never; + path: { + promptId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + singleStepFromFiles: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: { + content: { + "multipart/form-data": { + files: string[]; + params: components["schemas"]["SingleStepImportRequest"]; + }; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ImportResult"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + singleStepResolvableImport: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SingleStepImportResolvableRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ImportResult"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + aiPlaygroundTranslate: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["MachineTranslationRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + assignTranslationLabel: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LabelTranslationsRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + clearTranslations: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ClearTranslationsRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + copyTranslations: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CopyTranslationRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + deleteKeys: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DeleteKeysRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + machineTranslation: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["MachineTranslationRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + translate: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PreTranslationByTmRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setKeysNamespace: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetKeysNamespaceRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setTranslationState_2: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetTranslationsStateStateRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + tagKeys: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TagKeysRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + unassignTranslationLabel: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LabelTranslationsRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + untagKeys: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UntagKeysRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["BatchJobModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getProjectStats: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ProjectStatsModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getProjectDailyActivity: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + [key: string]: number; + }; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + suggestMachineTranslations: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SuggestRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SuggestResultModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + suggestMachineTranslationsStreaming: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SuggestRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/x-ndjson": components["schemas"]["StreamingResponseBody"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + suggestTranslationMemory: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SuggestRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelTranslationMemoryItemModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + executeComplexTagOperation: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ComplexTagKeysRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_14: { + parameters: { + query?: { + search?: string; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelTagModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getTasks: { + parameters: { + query?: { + /** @description Filter tasks by state */ + filterState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; + /** @description Filter tasks without state */ + filterNotState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; + /** @description Filter tasks by assignee */ + filterAssignee?: number[]; + /** @description Filter tasks by type */ + filterType?: ("TRANSLATE" | "REVIEW")[]; + /** @description Filter tasks by id */ + filterId?: number[]; + /** @description Filter tasks without id */ + filterNotId?: number[]; + /** @description Filter tasks by project */ + filterProject?: number[]; + /** @description Filter tasks without project */ + filterNotProject?: number[]; + /** @description Filter tasks by language */ + filterLanguage?: number[]; + /** @description Filter tasks by key */ + filterKey?: number[]; + /** @description Filter tasks by agency */ + filterAgency?: number[]; + /** @description Exclude tasks which were closed before specified timestamp */ + filterNotClosedBefore?: number; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelTaskModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createTask: { + parameters: { + query?: { + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + filterOutdated?: boolean; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateTaskRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + calculateScope: { + parameters: { + query?: { + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + filterOutdated?: boolean; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CalculateScopeRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["KeysScopeView"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createTasks: { + parameters: { + query?: { + filterState?: ("UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED")[]; + filterOutdated?: boolean; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CreateMultipleTasksRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getPossibleAssignees: { + parameters: { + query?: { + /** @description Filter users by id */ + filterId?: number[]; + /** @description Filter only users that have at least following scopes */ + filterMinimalScope?: string; + /** @description Filter only users that can view language */ + filterViewLanguageId?: number; + /** @description Filter only users that can edit language */ + filterEditLanguageId?: number; + /** @description Filter only users that can edit state of language */ + filterStateLanguageId?: number; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelSimpleUserAccountModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getTask: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updateTask: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateTaskRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getBlockingTasks: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": number[]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + cancelTask: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + closeTask: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + finishTask: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getTaskKeys: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskKeysResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updateTaskKeys: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateTaskKeysRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updateTaskKey: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + keyId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateTaskKeyRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["UpdateTaskKeyResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getPerUserReport: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskPerUserReportModel"][]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + reopenTask: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TaskModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getXlsxReport: { + parameters: { + query?: never; + header?: never; + path: { + taskNumber: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getTransferOptions: { + parameters: { + query?: { + search?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelProjectTransferOptionModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + transferProjectToOrganization: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getTranslations: { + parameters: { + query?: { + /** @description Cursor to get next data */ + cursor?: string; + /** @description Translation state in the format: languageTag,state. You can use this parameter multiple times. + * + * When used with multiple states for same language it is applied with logical OR. + * + * When used with multiple languages, it is applied with logical AND. + * */ + filterState?: string[]; + /** + * @description Languages to be contained in response. + * + * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) + * @example en + */ + languages?: string[]; + /** @description String to search in key name or translation text */ + search?: string; + /** @description Selects key with provided names. Use this param multiple times to fetch more keys. */ + filterKeyName?: string[]; + /** @description Selects key with provided ID. Use this param multiple times to fetch more keys. */ + filterKeyId?: number[]; + /** @description Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ + filterUntranslatedAny?: boolean; + /** @description Selects only keys, where translation is provided in any language */ + filterTranslatedAny?: boolean; + /** + * @description Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. + * @example en-US + */ + filterUntranslatedInLang?: string; + /** + * @description Selects only keys, where translation is provided in specified language + * @example en-US + */ + filterTranslatedInLang?: string; + /** + * @description Selects only keys, where translation was auto translated for specified languages. + * @example en-US + */ + filterAutoTranslatedInLang?: string[]; + /** @description Selects only keys with screenshots */ + filterHasScreenshot?: boolean; + /** @description Selects only keys without screenshots */ + filterHasNoScreenshot?: boolean; + /** @description Selects only keys with provided namespaces. + * + * To filter default namespace, set to empty string. + * */ + filterNamespace?: string[]; + /** @description Selects only keys without provided namespaces. + * + * To filter default namespace, set to empty string. + * */ + filterNoNamespace?: string[]; + /** @description Selects only keys with provided tag */ + filterTag?: string[]; + /** @description Selects only keys without provided tag */ + filterNoTag?: string[]; + /** + * @description Selects only keys, where translation in provided langs is in outdated state + * @example en-US + */ + filterOutdatedLanguage?: string[]; + /** + * @description Selects only keys, where translation in provided langs is not in outdated state + * @example en-US + */ + filterNotOutdatedLanguage?: string[]; + /** + * @description Selects only key affected by activity with specidfied revision ID + * @example 1234567 + */ + filterRevisionId?: number[]; + /** @description Select only keys which were not successfully translated by batch job with provided id */ + filterFailedKeysOfJob?: number; + /** @description Select only keys which are in specified task */ + filterTaskNumber?: number[]; + /** @description Filter task keys which are `not done` */ + filterTaskKeysNotDone?: boolean; + /** @description Filter task keys which are `done` */ + filterTaskKeysDone?: boolean; + /** @description Filter keys with unresolved comments in lang */ + filterHasUnresolvedCommentsInLang?: string[]; + /** @description Filter keys with any comments in lang */ + filterHasCommentsInLang?: string[]; + /** + * @description Filter key translations with labels + * @example labelId1,labelId2 + */ + filterLabel?: string[]; + /** @description Filter keys with any suggestions in lang */ + filterHasSuggestionsInLang?: string[]; + /** @description Filter keys with no suggestions in lang */ + filterHasNoSuggestionsInLang?: string[]; + /** @description Selects only keys from specified branch */ + branch?: string; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["KeysWithTranslationsPageModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setTranslations: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetTranslationsWithKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SetTranslationsResponseModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + createOrUpdateTranslations: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SetTranslationsWithKeyDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SetTranslationsResponseModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_3: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TranslationCommentWithLangKeyDto"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "*/*": components["schemas"]["TranslationWithCommentModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + assignLabel_2: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TranslationLabelRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LabelModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + selectKeys: { + parameters: { + query?: { + /** @description Translation state in the format: languageTag,state. You can use this parameter multiple times. + * + * When used with multiple states for same language it is applied with logical OR. + * + * When used with multiple languages, it is applied with logical AND. + * */ + filterState?: string[]; + /** + * @description Languages to be contained in response. + * + * To add multiple languages, repeat this param (eg. ?languages=en&languages=de) + * @example en + */ + languages?: string[]; + /** @description String to search in key name or translation text */ + search?: string; + /** @description Selects key with provided names. Use this param multiple times to fetch more keys. */ + filterKeyName?: string[]; + /** @description Selects key with provided ID. Use this param multiple times to fetch more keys. */ + filterKeyId?: number[]; + /** @description Selects only keys for which the translation is missing in any returned language. It only filters for translations included in returned languages. */ + filterUntranslatedAny?: boolean; + /** @description Selects only keys, where translation is provided in any language */ + filterTranslatedAny?: boolean; + /** + * @description Selects only keys where the translation is missing for the specified language. The specified language must be included in the returned languages. Otherwise, this filter doesn't apply. + * @example en-US + */ + filterUntranslatedInLang?: string; + /** + * @description Selects only keys, where translation is provided in specified language + * @example en-US + */ + filterTranslatedInLang?: string; + /** + * @description Selects only keys, where translation was auto translated for specified languages. + * @example en-US + */ + filterAutoTranslatedInLang?: string[]; + /** @description Selects only keys with screenshots */ + filterHasScreenshot?: boolean; + /** @description Selects only keys without screenshots */ + filterHasNoScreenshot?: boolean; + /** @description Selects only keys with provided namespaces. + * + * To filter default namespace, set to empty string. + * */ + filterNamespace?: string[]; + /** @description Selects only keys without provided namespaces. + * + * To filter default namespace, set to empty string. + * */ + filterNoNamespace?: string[]; + /** @description Selects only keys with provided tag */ + filterTag?: string[]; + /** @description Selects only keys without provided tag */ + filterNoTag?: string[]; + /** + * @description Selects only keys, where translation in provided langs is in outdated state + * @example en-US + */ + filterOutdatedLanguage?: string[]; + /** + * @description Selects only keys, where translation in provided langs is not in outdated state + * @example en-US + */ + filterNotOutdatedLanguage?: string[]; + /** + * @description Selects only key affected by activity with specidfied revision ID + * @example 1234567 + */ + filterRevisionId?: number[]; + /** @description Select only keys which were not successfully translated by batch job with provided id */ + filterFailedKeysOfJob?: number; + /** @description Select only keys which are in specified task */ + filterTaskNumber?: number[]; + /** @description Filter task keys which are `not done` */ + filterTaskKeysNotDone?: boolean; + /** @description Filter task keys which are `done` */ + filterTaskKeysDone?: boolean; + /** @description Filter keys with unresolved comments in lang */ + filterHasUnresolvedCommentsInLang?: string[]; + /** @description Filter keys with any comments in lang */ + filterHasCommentsInLang?: string[]; + /** + * @description Filter key translations with labels + * @example labelId1,labelId2 + */ + filterLabel?: string[]; + /** @description Filter keys with any suggestions in lang */ + filterHasSuggestionsInLang?: string[]; + /** @description Filter keys with no suggestions in lang */ + filterHasNoSuggestionsInLang?: string[]; + /** @description Selects only keys from specified branch */ + branch?: string; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SelectAllResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllTranslations: { + parameters: { + query?: { + /** @description Namespace to return */ + ns?: string; + /** @description Delimiter to structure response content. + * + * e.g. For key "home.header.title" would result in {"home": {"header": {"title": "Hello"}}} structure. + * + * When null, resulting file will be a flat key-value object. + * */ + structureDelimiter?: string; + /** + * @description Enables filtering of returned keys by their tags. + * Only keys with at least one provided tag will be returned. + * Optional, filtering is not applied if not specified. + * @example [ + * "productionReady", + * "nextRelease" + * ] + */ + filterTag?: string[]; + /** @description Branch name to return translations from */ + branch?: string; + }; + header?: never; + path: { + /** + * @description Comma-separated language tags to return translations in. Languages you are not permitted to see will be silently dropped and not returned. + * @example [ + * "en", + * "de", + * "fr" + * ] + */ + languages: string[]; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAll_3: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + translationId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelTranslationCommentModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create_1: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TranslationCommentDto"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "*/*": components["schemas"]["TranslationCommentModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_4: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + commentId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationCommentModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update_1: { + parameters: { + query?: never; + header?: never; + path: { + commentId: number; + translationId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["TranslationCommentDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationCommentModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_2: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + commentId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setState: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + commentId: number; + state: "RESOLUTION_NOT_NEEDED" | "NEEDS_RESOLUTION" | "RESOLVED"; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationCommentModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + dismissAutoTranslatedState: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getTranslationHistory: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + translationId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelTranslationHistoryModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + assignLabel: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + labelId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["LabelModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + unassignLabel: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + labelId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setOutdated: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + state: boolean; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setTranslationState: { + parameters: { + query?: never; + header?: never; + path: { + translationId: number; + state: "TRANSLATED" | "REVIEWED"; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["TranslationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getUsedNamespaces: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelUsedNamespaceModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllUsers: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + /** @description Filter users by id */ + filterId?: number[]; + /** @description Filter users without id */ + filterNotId?: number[]; + /** @description Filter users from agency */ + filterAgency?: number[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelUserAccountInProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + revokePermission: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + userId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + removeDirectProjectPermissions: { + parameters: { + query?: never; + header?: never; + path: { + userId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setUsersPermissions: { + parameters: { + query?: { + /** + * @description Granted scopes + * @example [ + * "translations.view", + * "translations.edit" + * ] + */ + scopes?: string[]; + languages?: number[]; + translateLanguages?: number[]; + viewLanguages?: number[]; + stateChangeLanguages?: number[]; + suggestLanguages?: number[]; + }; + header?: never; + path: { + userId: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setUsersPermissions_1: { + parameters: { + query?: { + languages?: number[]; + translateLanguages?: number[]; + viewLanguages?: number[]; + stateChangeLanguages?: number[]; + suggestLanguages?: number[]; + }; + header?: never; + path: { + userId: number; + permissionType: "NONE" | "VIEW" | "TRANSLATE" | "REVIEW" | "EDIT" | "MANAGE"; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + list: { + parameters: { + query?: { + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + }; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelWebhookConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + create: { + parameters: { + query?: never; + header?: never; + path: { + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["WebhookConfigRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["WebhookConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_3: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["WebhookConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + update: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["WebhookConfigRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["WebhookConfigModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete_1: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + test: { + parameters: { + query?: never; + header?: never; + path: { + id: number; + projectId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["WebhookTestResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + identify: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["IdentifyRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + report: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["BusinessEventReportRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_19: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["DocItem"][]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_18: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelExportFormatModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_17: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["InitialDataModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getInfo_4: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + [key: string]: components["schemas"]["MachineTranslationProviderModel"]; + }; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getHierarchy: { + parameters: { + query?: { + search?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HierarchyItem"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getRoles: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + [key: string]: ("translations.view" | "translations.edit" | "translations.suggest" | "keys.edit" | "screenshots.upload" | "screenshots.delete" | "screenshots.view" | "activity.view" | "languages.edit" | "admin" | "project.edit" | "members.view" | "members.edit" | "translation-comments.add" | "translation-comments.edit" | "translation-comments.set-state" | "translations.state-edit" | "keys.view" | "keys.delete" | "keys.create" | "batch-jobs.view" | "batch-jobs.cancel" | "translations.batch-by-tm" | "translations.batch-machine" | "content-delivery.manage" | "content-delivery.publish" | "webhooks.manage" | "tasks.view" | "tasks.edit" | "prompts.view" | "prompts.edit" | "translation-labels.manage" | "translation-labels.assign" | "all.view")[]; + }; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + slackCommand: { + parameters: { + query: { + payload: components["schemas"]["SlackCommandDto"]; + }; + header: { + "X-Slack-Signature": string; + "X-Slack-Request-Timestamp": string; + }; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": string; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + fetchBotEvent: { + parameters: { + query?: never; + header: { + "X-Slack-Signature": string; + "X-Slack-Request-Timestamp": string; + }; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": string; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": Record; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + onInteractivityEvent: { + parameters: { + query?: never; + header: { + "X-Slack-Signature": string; + "X-Slack-Request-Timestamp": string; + }; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": string; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setFinishedState: { + parameters: { + query?: never; + header?: never; + path: { + finished: boolean; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["QuickStartModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setOpenState: { + parameters: { + query?: never; + header?: never; + path: { + open: boolean; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["QuickStartModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + completeGuideStep: { + parameters: { + query?: never; + header?: never; + path: { + step: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["QuickStartModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + userLogin: { + parameters: { + query: { + /** @description The encrypted data about the desired connection between Slack account and Tolgee account */ + data: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getInfo_3: { + parameters: { + query: { + /** @description The encrypted data */ + data: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SlackUserInfoModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + generateOrganizationSlug: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GenerateSlugDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + generateProjectSlug: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GenerateSlugDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + validateOrganizationSlug: { + parameters: { + query?: never; + header?: never; + path: { + slug: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": boolean; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + validateProjectSlug: { + parameters: { + query?: never; + header?: never; + path: { + slug: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": boolean; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getInfo: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updateUser: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["UserUpdateRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updateUserOld: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["UserUpdateRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + delete: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + get_16: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["UserPreferencesModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setLanguage: { + parameters: { + query?: never; + header?: never; + path: { + languageTag: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + setPreferredOrganization: { + parameters: { + query?: never; + header?: never; + path: { + organizationId: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getTasks_2: { + parameters: { + query?: { + /** @description Filter tasks by state */ + filterState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; + /** @description Filter tasks without state */ + filterNotState?: ("NEW" | "IN_PROGRESS" | "FINISHED" | "CANCELED")[]; + /** @description Filter tasks by assignee */ + filterAssignee?: number[]; + /** @description Filter tasks by type */ + filterType?: ("TRANSLATE" | "REVIEW")[]; + /** @description Filter tasks by id */ + filterId?: number[]; + /** @description Filter tasks without id */ + filterNotId?: number[]; + /** @description Filter tasks by project */ + filterProject?: number[]; + /** @description Filter tasks without project */ + filterNotProject?: number[]; + /** @description Filter tasks by language */ + filterLanguage?: number[]; + /** @description Filter tasks by key */ + filterKey?: number[]; + /** @description Filter tasks by agency */ + filterAgency?: number[]; + /** @description Exclude tasks which were closed before specified timestamp */ + filterNotClosedBefore?: number; + /** @description Zero-based page index (0..N) */ + page?: number; + /** @description The size of the page to be returned */ + size?: number; + /** @description Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ + sort?: string[]; + search?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PagedModelTaskWithProjectModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + uploadAvatar: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "multipart/form-data": { + /** Format: binary */ + avatar: string; + }; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + removeAvatar: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PrivateUserAccountModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getSuperToken: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SuperTokenRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getManagedBy: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PrivateOrganizationModel"]; + }; + }; + /** @description No SSO configuration available for this user */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + regenerateRecoveryCodes: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserMfaRecoveryRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string[]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + enableMfa: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserTotpEnableRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + disableMfa: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UserTotpDisableRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + updateUserPassword: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["UserUpdatePasswordRequestDto"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JwtAuthenticationResponse"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + sendEmailVerification: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getAllSingleOwnedOrganizations: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["CollectionModelSimpleOrganizationModel"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; + getSso: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PublicSsoTenantModel"]; + }; + }; + /** @description No SSO configuration available for this user */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Forbidden */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": string & (components["schemas"]["ErrorResponseTyped"] | components["schemas"]["ErrorResponseBody"]); + }; + }; + }; + }; } - -export interface external {} From 1843379444dc491948f29719ef17a0058ef9ec5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Wed, 31 Dec 2025 02:46:19 +0100 Subject: [PATCH 06/15] fix: set branch param properly --- src/commands/sync/compare.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/commands/sync/compare.ts b/src/commands/sync/compare.ts index 18d7188a..a4296c44 100644 --- a/src/commands/sync/compare.ts +++ b/src/commands/sync/compare.ts @@ -30,10 +30,8 @@ const asyncHandler = (config: Schema) => `Fetching Tolgee keys${appendBranch(opts.branch)}...`, opts.client.GET('/v2/projects/{projectId}/all-keys', { params: { - path: { - projectId: opts.client.getProjectId(), - query: { branch: opts.branch }, - }, + path: { projectId: opts.client.getProjectId() }, + query: { branch: opts.branch }, }, }) ); From d8da832c023aeaca90df1ec36c0ad8a748519567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Wed, 31 Dec 2025 02:47:49 +0100 Subject: [PATCH 07/15] test: branching in compare command --- src/client/errorFromLoadable.ts | 4 ++ src/utils/branch.ts | 2 +- test/e2e/compare.test.ts | 100 +++++++++++++++++++++++++++----- test/e2e/utils/api/common.ts | 55 +++++++++++++++++- 4 files changed, 146 insertions(+), 15 deletions(-) diff --git a/src/client/errorFromLoadable.ts b/src/client/errorFromLoadable.ts index 3b29e9ba..e7152ffc 100644 --- a/src/client/errorFromLoadable.ts +++ b/src/client/errorFromLoadable.ts @@ -43,6 +43,10 @@ export const errorFromLoadable = (loadable: LoadableData) => { loadable )}`; + // Not found (e.g. branch in project) + case 404: + return `Requested data not found. Please check your inputs ${addErrorDetails(loadable)}`; + // Rate limited case 429: return `You've been rate limited. Please try again later ${addErrorDetails( diff --git a/src/utils/branch.ts b/src/utils/branch.ts index db04445f..b8e51851 100644 --- a/src/utils/branch.ts +++ b/src/utils/branch.ts @@ -1,3 +1,3 @@ export function appendBranch(branch?: string) { - return branch ? ` (branch "${branch}")` : ' (no or default branch)'; + return branch ? ` (branch "${branch}")` : ' (none or default branch)'; } diff --git a/test/e2e/compare.test.ts b/test/e2e/compare.test.ts index c16107b0..8b373a7a 100644 --- a/test/e2e/compare.test.ts +++ b/test/e2e/compare.test.ts @@ -3,6 +3,8 @@ import { run } from './utils/run.js'; import { TolgeeClient } from '#cli/client/TolgeeClient.js'; import { PROJECT_2 } from './utils/api/project2.js'; import { + createBranch, + createKey, createPak, createProjectWithClient, deleteProject, @@ -34,7 +36,7 @@ const CODE_UNORDERED = fileURLToPathSlash( let client: TolgeeClient; let pak: string; -describe('Project 1', () => { +describe('Project 2', () => { beforeEach(async () => { client = await createProjectWithClient('Project 2', PROJECT_2); pak = await createPak(client); @@ -106,12 +108,12 @@ describe('Project 1', () => { expect(out.code).toBe(0); // Test all added keys - expect(out.stdout).toContain('section-content'); - expect(out.stdout).toContain('section-title'); - expect(out.stdout).toContain('copyright-notice'); - expect(out.stdout).toContain('privacy-policy'); - expect(out.stdout).toContain('terms-of-service'); - expect(out.stdout).toContain('welcome'); + expect(out.stdout).toContain('+ section-content'); + expect(out.stdout).toContain('+ section-title'); + expect(out.stdout).toContain('+ copyright-notice'); + expect(out.stdout).toContain('+ privacy-policy'); + expect(out.stdout).toContain('+ terms-of-service'); + expect(out.stdout).toContain('+ welcome'); expect(out.stdout.indexOf('section-content')).toBeLessThan( out.stdout.indexOf('section-title') @@ -130,12 +132,12 @@ describe('Project 1', () => { ); // Test all removed keys - expect(out.stdout).toContain('bird-name'); - expect(out.stdout).toContain('bird-sound'); - expect(out.stdout).toContain('cat-name'); - expect(out.stdout).toContain('cat-sound'); - expect(out.stdout).toContain('dog-name'); - expect(out.stdout).toContain('dog-sound'); + expect(out.stdout).toContain('- bird-name'); + expect(out.stdout).toContain('- bird-sound'); + expect(out.stdout).toContain('- cat-name'); + expect(out.stdout).toContain('- cat-sound'); + expect(out.stdout).toContain('- dog-name'); + expect(out.stdout).toContain('- dog-sound'); expect(out.stdout.indexOf('bird-name')).toBeLessThan( out.stdout.indexOf('bird-sound') @@ -155,6 +157,78 @@ describe('Project 1', () => { }, 30e3); }); +describe('Branching', () => { + beforeEach(async () => { + client = await createProjectWithClient('Project 2', PROJECT_2); + pak = await createPak(client); + + await createBranch(client, 'feature-branch'); + + await createKey(client, 'mouse-name', { + branch: 'feature-branch', + translations: { en: 'Mouse' }, + }); + await createKey(client, 'mouse-sound', { + branch: 'feature-branch', + translations: { en: 'Squeek' }, + }); + }); + + afterEach(async () => { + await deleteProject(client); + }); + + it('contains added keys in new branch', async () => { + const out = await run( + [ + 'compare', + '--api-key', + pak, + '--patterns', + CODE_PROJECT_2_ADDED, + '--branch', + 'feature-branch', + ], + undefined, + 20e3 + ); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('is in sync'); + }); + + it('does not contain the added keys in main branch', async () => { + const out = await run( + ['compare', '--api-key', pak, '--patterns', CODE_PROJECT_2_ADDED], + undefined, + 20e3 + ); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('out of sync'); + expect(out.stdout).toContain('2 new keys found'); + }, 30e3); + + it('fails when branch does not exist', async () => { + const out = await run( + [ + 'compare', + '--api-key', + pak, + '--patterns', + CODE_PROJECT_2_COMPLETE, + '--branch', + 'missing-branch', + ], + undefined, + 20e3 + ); + + expect(out.code).not.toBe(0); + expect(out.stderr + out.stdout).toContain('branch_not_found'); + }, 30e3); +}); + describe('Project 3', () => { beforeEach(async () => { client = await createProjectWithClient('Project 3', PROJECT_3); diff --git a/test/e2e/utils/api/common.ts b/test/e2e/utils/api/common.ts index 8fcd36bc..5cd4af42 100644 --- a/test/e2e/utils/api/common.ts +++ b/test/e2e/utils/api/common.ts @@ -53,7 +53,9 @@ export async function createProjectWithClient( ) { const userToken = await userLogin(); let client = createClient(userToken!); - const organizations = await client.GET('/v2/organizations'); + const organizations = await client.GET('/v2/organizations', { + params: { query: { filterCurrentUserOwner: true } }, + }); const { languages, ...editOptions } = options ?? {}; const project = await client.POST('/v2/projects', { @@ -91,6 +93,57 @@ export async function createProjectWithClient( return client; } +type CreateBranchOptions = { + originBranchId?: number; +}; + +export async function createBranch( + client: TolgeeClient, + name: string, + options?: CreateBranchOptions +) { + let originBranchId = options?.originBranchId; + if (!originBranchId) { + const branches = await client.GET('/v2/projects/{projectId}/branches', { + params: { + path: { projectId: client.getProjectId() }, + }, + }); + + const origin = branches.data?._embedded?.branches?.find((b) => b.isDefault); + originBranchId = origin?.id; + } + + if (!originBranchId) { + throw new Error('Default branch not found'); + } + + await client.POST('/v2/projects/{projectId}/branches', { + params: { path: { projectId: client.getProjectId() } }, + body: { name, originBranchId }, + }); +} + +type CreateKeyOptions = Partial< + Omit +>; + +export async function createKey( + client: TolgeeClient, + name: string, + options: CreateKeyOptions = {} +) { + const { isPlural = false, ...rest } = options; + return await client.POST('/v2/projects/{projectId}/keys', { + params: { path: { projectId: client.getProjectId() } }, + body: { + name, + isPlural, + ...rest, + }, + }); +} + export const DEFAULT_SCOPES = [ 'keys.view', 'translations.view', From 11ceb88a33512b0ebb7f39b8037b6314bdada0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Wed, 31 Dec 2025 15:55:45 +0100 Subject: [PATCH 08/15] test: add branching to pull command --- test/e2e/pull.test.ts | 64 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/test/e2e/pull.test.ts b/test/e2e/pull.test.ts index 1fddaf31..85dcd1f1 100644 --- a/test/e2e/pull.test.ts +++ b/test/e2e/pull.test.ts @@ -11,6 +11,8 @@ import { run } from './utils/run.js'; import './utils/toMatchContentsOf.js'; import { dirname, join } from 'path'; import { + createBranch, + createKey, createPak, createProjectWithClient, deleteProject, @@ -430,6 +432,68 @@ describe('Project 3', () => { }); }); +describe('Branching', () => { + setupTemporaryFolder(); + beforeEach(async () => { + client = await createProjectWithClient('Branching project', PROJECT_1); + pak = await createPak(client); + + await createBranch(client, 'feature-branch'); + await createKey(client, 'branch-only', { + branch: 'feature-branch', + translations: { en: 'Branch only', fr: 'Branche seulement' }, + }); + }); + + afterEach(async () => { + await deleteProject(client); + }); + + it('pulls branch-only keys when branch is specified', async () => { + const out = await run([ + 'pull', + '--api-key', + pak, + '--path', + TMP_FOLDER, + '--branch', + 'feature-branch', + ]); + + expect(out.code).toBe(0); + expect(readJsonFile(join(TMP_FOLDER, 'en.json'))['branch-only']).toBe( + 'Branch only' + ); + expect(readJsonFile(join(TMP_FOLDER, 'fr.json'))['branch-only']).toBe( + 'Branche seulement' + ); + }); + + it('does not include branch-only keys in default branch', async () => { + const out = await run(['pull', '--api-key', pak, '--path', TMP_FOLDER]); + + expect(out.code).toBe(0); + expect(readJsonFile(join(TMP_FOLDER, 'en.json'))['branch-only']).toBe( + undefined + ); + }); + + it('fails when branch does not exist', async () => { + const out = await run([ + 'pull', + '--api-key', + pak, + '--path', + TMP_FOLDER, + '--branch', + 'missing-branch', + ]); + + expect(out.code).not.toBe(0); + expect(out.stderr + out.stdout).toContain('branch_not_found'); + }); +}); + describe('Nested keys project', () => { setupTemporaryFolder(); beforeEach(async () => { From acba98e138f2552bd5282d6b537d31fa4d67562f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Tue, 6 Jan 2026 13:10:03 +0100 Subject: [PATCH 09/15] feat: add --branch to sync command --- src/client/internal/schema.generated.ts | 8 +- src/commands/sync/sync.ts | 30 ++++--- test/e2e/sync.test.ts | 106 ++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 13 deletions(-) diff --git a/src/client/internal/schema.generated.ts b/src/client/internal/schema.generated.ts index 7e460d63..c46ef273 100644 --- a/src/client/internal/schema.generated.ts +++ b/src/client/internal/schema.generated.ts @@ -21587,7 +21587,9 @@ export interface operations { }; importKeys_2: { parameters: { - query?: never; + query?: { + branch?: string; + }; header?: never; path: { projectId: number; @@ -26295,7 +26297,9 @@ export interface operations { }; executeComplexTagOperation: { parameters: { - query?: never; + query?: { + branch?: string; + }; header?: never; path: { projectId: number; diff --git a/src/commands/sync/sync.ts b/src/commands/sync/sync.ts index 7a612fe9..b1190428 100644 --- a/src/commands/sync/sync.ts +++ b/src/commands/sync/sync.ts @@ -19,6 +19,7 @@ import { TolgeeClient, handleLoadableError, } from '../../client/TolgeeClient.js'; +import { appendBranch } from '../../utils/branch.js'; type Options = BaseOptions & { backup?: string | false; @@ -29,13 +30,14 @@ type Options = BaseOptions & { tagNewKeys?: string[]; }; -async function backup(client: TolgeeClient, dest: string) { +async function backup(client: TolgeeClient, dest: string, branch?: string) { const loadable = await client.export.export({ format: 'JSON', supportArrays: false, filterState: ['UNTRANSLATED', 'TRANSLATED', 'REVIEWED'], structureDelimiter: '', escapeHtml: false, + filterBranch: branch, }); handleLoadableError(loadable); @@ -91,11 +93,14 @@ const syncHandler = (config: Schema) => } } - const allKeysLoadable = await opts.client.GET( - '/v2/projects/{projectId}/all-keys', - { - params: { path: { projectId: opts.client.getProjectId() } }, - } + const allKeysLoadable = await loading( + `Fetching Tolgee keys${appendBranch(opts.branch)}...`, + opts.client.GET('/v2/projects/{projectId}/all-keys', { + params: { + path: { projectId: opts.client.getProjectId() }, + query: { branch: opts.branch }, + }, + }) ); handleLoadableError(allKeysLoadable); @@ -138,8 +143,8 @@ const syncHandler = (config: Schema) => if (opts.backup) { await prepareDir(opts.backup, opts.yes); await loading( - 'Backing up Tolgee project', - backup(opts.client, opts.backup) + `Backing up Tolgee project${appendBranch(opts.branch)}`, + backup(opts.client, opts.backup, opts.branch) ); } @@ -159,9 +164,12 @@ const syncHandler = (config: Schema) => })); const loadable = await loading( - 'Creating missing keys...', + `Creating missing keys${appendBranch(opts.branch)}...`, opts.client.POST('/v2/projects/{projectId}/keys/import', { - params: { path: { projectId: opts.client.getProjectId() } }, + params: { + path: { projectId: opts.client.getProjectId() }, + query: { branch: opts.branch }, + }, body: { keys }, }) ); @@ -178,7 +186,7 @@ const syncHandler = (config: Schema) => const ids = await diff.removed.map((k) => k.id); const loadable = await loading( - 'Deleting unused keys...', + `Deleting unused keys${appendBranch(opts.branch)}...`, opts.client.DELETE('/v2/projects/{projectId}/keys', { params: { path: { projectId: opts.client.getProjectId() } }, body: { ids }, diff --git a/test/e2e/sync.test.ts b/test/e2e/sync.test.ts index 153217d3..483b95d7 100644 --- a/test/e2e/sync.test.ts +++ b/test/e2e/sync.test.ts @@ -12,6 +12,8 @@ import './utils/toMatchContentsOf'; import { TolgeeClient } from '#cli/client/TolgeeClient.js'; import { DEFAULT_SCOPES, + createBranch, + createKey, createPak, createProjectWithClient, deleteProject, @@ -285,6 +287,110 @@ describe('Project 2', () => { }, 30e3); }); +describe('Branching', () => { + beforeEach(async () => { + client = await createProjectWithClient('Project 2', PROJECT_2); + pak = await createPak(client); + + await createBranch(client, 'feature-branch'); + }); + + afterEach(async () => { + await deleteProject(client); + await removeTmpFolder(); + }); + + it('is in sync when comparing against branch keys', async () => { + const out = await run( + [ + 'sync', + '--yes', + '--api-key', + pak, + '--patterns', + CODE_PROJECT_2_COMPLETE, + '--branch', + 'feature-branch', + ], + undefined, + 20e3 + ); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('is in sync'); + }, 30e3); + + it('sync branch keys', async () => { + await createKey(client, 'penguin-name', { + branch: 'feature-branch', + translations: { en: 'Tux' }, + }); + await createKey(client, 'penguin-sound', { + branch: 'feature-branch', + translations: { en: 'Bray' }, + }); + + const out = await run( + [ + 'sync', + '--yes', + '--api-key', + pak, + '--patterns', + CODE_PROJECT_2_ADDED, + '--branch', + 'feature-branch', + ], + undefined, + 20e3 + ); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('+ 2 strings'); + expect(out.stdout).toContain('2 unused keys'); + }, 30e3); + + it('creates keys in the default branch when branch is not specified', async () => { + const out = await run( + ['sync', '--yes', '--api-key', pak, '--patterns', CODE_PROJECT_2_ADDED], + undefined, + 20e3 + ); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('+ 2 strings'); + + const keys = await client.GET('/v2/projects/{projectId}/translations', { + params: { + path: { projectId: client.getProjectId() }, + query: { filterKeyName: ['mouse-name', 'mouse-sound'] }, + }, + }); + + expect(keys.data?.page?.totalElements).toBe(2); + }, 30e3); + + it('fails when branch does not exist', async () => { + const out = await run( + [ + 'sync', + '--yes', + '--api-key', + pak, + '--patterns', + CODE_PROJECT_2_ADDED, + '--branch', + 'missing-branch', + ], + undefined, + 20e3 + ); + + expect(out.code).not.toBe(0); + expect(out.stderr + out.stdout).toContain('branch_not_found'); + }, 30e3); +}); + describe('Project 3', () => { beforeEach(async () => { client = await createProjectWithClient('Project 3', PROJECT_3); From 05a8d45c3132e77bedae500bcc38e41a63ca9ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Wed, 7 Jan 2026 15:25:56 +0100 Subject: [PATCH 10/15] feat: add branch command --- src/cli.ts | 4 + src/commands/branch.ts | 158 +++++++++++++++++++++++++++++++++++++ test/e2e/branch.test.ts | 171 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 333 insertions(+) create mode 100644 src/commands/branch.ts create mode 100644 test/e2e/branch.test.ts diff --git a/src/cli.ts b/src/cli.ts index f7441513..7827cd1e 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -37,6 +37,7 @@ import ExtractCommand from './commands/extract.js'; import CompareCommand from './commands/sync/compare.js'; import SyncCommand from './commands/sync/sync.js'; import TagCommand from './commands/tag.js'; +import BranchCommand from './commands/branch.js'; import { getSingleOption } from './utils/getSingleOption.js'; import { Schema } from './schema.js'; @@ -211,6 +212,9 @@ async function run() { program.addCommand( TagCommand(config).configureHelp({ showGlobalOptions: true }) ); + program.addCommand( + BranchCommand(config).configureHelp({ showGlobalOptions: true }) + ); await program.parseAsync(); } catch (e: any) { diff --git a/src/commands/branch.ts b/src/commands/branch.ts new file mode 100644 index 00000000..32065428 --- /dev/null +++ b/src/commands/branch.ts @@ -0,0 +1,158 @@ +import { Command, Option } from 'commander'; +import { Schema } from '../schema.js'; +import { BaseOptions } from '../options.js'; +import { components } from '../client/internal/schema.generated.js'; +import { handleLoadableError } from '../client/TolgeeClient.js'; +import { error, exitWithError, loading, success } from '../utils/logger.js'; + +type BranchOptions = BaseOptions & { + create?: string; + delete?: string; + origin?: string; +}; + +async function fetchBranches(cmd: BranchOptions) { + const loadable = await cmd.client.GET('/v2/projects/{projectId}/branches', { + params: { path: { projectId: cmd.client.getProjectId() } }, + }); + handleLoadableError(loadable); + return loadable.data?._embedded?.branches ?? []; +} + +function listBranches(branches: components['schemas']['BranchModel'][]) { + if (!branches.length) { + success('No branches found.'); + return; + } + console.log('Branches:'); + branches.forEach((b) => { + const markers: string[] = []; + if (b.isDefault) markers.push('default'); + if (b.isProtected) markers.push('protected'); + if (b.active === false) markers.push('inactive'); + const suffix = markers.length ? ` (${markers.join(', ')})` : ''; + console.log(`- ${b.name}${suffix}`); + }); +} + +function resolveTargetNames(opts: BranchOptions, createArg?: string) { + const createName = opts.create ?? createArg; + const deleteName = opts.delete; + + if (opts.create && createArg) { + exitWithError( + "error: use either the '[branch]' arg to create branch or the option '-c, --create '" + ); + } + if (createArg && deleteName) { + exitWithError( + "error: '[branch]' arg to create branch cannot be used together with option '-d, --delete '" + ); + } + // opts.create && opts.delete use is already sanitized by commander + + return { createName, deleteName }; +} + +async function resolveOriginId( + opts: BranchOptions, + branches: components['schemas']['BranchModel'][] +): Promise { + const originName = opts.origin; + + if (originName) { + const origin = branches.find((b) => b.name === originName); + if (!origin) { + error(`Origin branch "${originName}" was not found.`); + listBranches(branches); + exitWithError( + 'Use --origin to specify an existing base branch.' + ); + } + return origin.id; + } + + const defaultBranch = branches.find((b) => b.isDefault); + if (!defaultBranch) { + error('Cannot determine default branch for the project.'); + listBranches(branches); + exitWithError('Specify --origin .'); + } + return defaultBranch.id; +} + +const branchHandler = (config: Schema) => + async function (this: Command) { + const opts: BranchOptions = this.optsWithGlobals(); + const createArg = this.processedArgs[0]; + const { createName, deleteName } = resolveTargetNames(opts, createArg); + + const branches = await loading( + 'Fetching project branches...', + fetchBranches(opts) + ); + + if (!createName && !deleteName) { + listBranches(branches); + return; + } + + if (createName) { + const originId = await resolveOriginId(opts, branches); + + const loadable = await loading( + `Creating branch "${createName}"...`, + opts.client.POST('/v2/projects/{projectId}/branches', { + params: { path: { projectId: opts.client.getProjectId() } }, + body: { name: createName, originBranchId: originId }, + }) + ); + handleLoadableError(loadable); + success(`Branch "${createName}" created.`); + return; + } + + if (deleteName) { + const target = branches.find((b) => b.name === deleteName); + if (!target) { + error(`Branch "${deleteName}" was not found.`); + listBranches(branches); + exitWithError('Specify an existing branch.'); + } + + const loadable = await loading( + `Deleting branch "${deleteName}"...`, + opts.client.DELETE('/v2/projects/{projectId}/branches/{branchId}', { + params: { + path: { + projectId: opts.client.getProjectId(), + branchId: target.id, + }, + }, + }) + ); + handleLoadableError(loadable); + success(`Branch "${deleteName}" deleted.`); + } + }; + +export default (config: Schema) => + new Command('branch') + .description('Create or delete project branches') + .argument('[branch]', 'branch name to create') + .addOption( + new Option('--create ', 'create a new branch').conflicts('delete') + ) + .addOption( + new Option( + '-d, --delete ', + 'delete an existing branch' + ).conflicts('create') + ) + .addOption( + new Option( + '-o, --origin ', + 'origin branch to fork from (defaults to project default branch)' + ) + ) + .action(branchHandler(config)); diff --git a/test/e2e/branch.test.ts b/test/e2e/branch.test.ts new file mode 100644 index 00000000..0105f318 --- /dev/null +++ b/test/e2e/branch.test.ts @@ -0,0 +1,171 @@ +import { run } from './utils/run.js'; +import { TolgeeClient } from '#cli/client/TolgeeClient.js'; +import { PROJECT_1 } from './utils/api/project1.js'; +import { + DEFAULT_SCOPES, + createBranch, + createPak, + createProjectWithClient, + deleteProject, +} from './utils/api/common.js'; + +let client: TolgeeClient; +let pak: string; + +async function fetchBranches() { + const branches = await client.GET('/v2/projects/{projectId}/branches', { + params: { path: { projectId: client.getProjectId() } }, + }); + + return branches.data?._embedded?.branches ?? []; +} + +async function findBranch(name: string) { + const branches = await fetchBranches(); + return branches.find((branch) => branch.name === name); +} + +describe('branch command', () => { + beforeEach(async () => { + client = await createProjectWithClient('Branch project', PROJECT_1); + pak = await createPak(client, [...DEFAULT_SCOPES, 'project.edit']); + }); + + afterEach(async () => { + await deleteProject(client); + }); + + it('lists branches', async () => { + await createBranch(client, 'feature-branch'); + + const branches = await fetchBranches(); + const defaultBranch = branches.find((branch) => branch.isDefault); + + const out = await run(['branch', '--api-key', pak]); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('Branches:'); + expect(defaultBranch).toBeTruthy(); + expect(out.stdout).toContain(`- ${defaultBranch!.name}`); + expect(out.stdout).toContain('- feature-branch'); + }); + + it('creates a branch from positional argument', async () => { + const out = await run(['branch', '--api-key', pak, 'new-branch']); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('Branch "new-branch" created.'); + + const created = await findBranch('new-branch'); + expect(created).toBeTruthy(); + }); + + it('creates a branch from a specified origin', async () => { + await createBranch(client, 'origin-branch'); + + const out = await run([ + 'branch', + '--api-key', + pak, + '--create', + 'forked-branch', + '--origin', + 'origin-branch', + ]); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('Branch "forked-branch" created.'); + + const created = await findBranch('forked-branch'); + expect(created).toBeTruthy(); + expect(created!.originBranchName).toBe('origin-branch'); + }); + + it('deletes a branch', async () => { + await createBranch(client, 'delete-branch'); + + const out = await run([ + 'branch', + '--api-key', + pak, + '--delete', + 'delete-branch', + ]); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('Branch "delete-branch" deleted.'); + + const deleted = await findBranch('delete-branch'); + expect(deleted).toBeUndefined(); + }); + + it('errors when origin branch does not exist', async () => { + const out = await run([ + 'branch', + '--api-key', + pak, + '--create', + 'new-branch', + '--origin', + 'missing-branch', + ]); + + const output = out.stderr + out.stdout; + + expect(out.code).not.toBe(0); + expect(output).toContain('Origin branch "missing-branch" was not found.'); + expect(output).toContain( + 'Use --origin to specify an existing base branch.' + ); + expect(output).toContain('Branches:'); + }); + + it('errors when deleting a missing branch', async () => { + const out = await run([ + 'branch', + '--api-key', + pak, + '--delete', + 'missing-branch', + ]); + + const output = out.stderr + out.stdout; + + expect(out.code).not.toBe(0); + expect(output).toContain('Branch "missing-branch" was not found.'); + expect(output).toContain('Specify an existing branch.'); + expect(output).toContain('Branches:'); + }); + + it('errors when positional branch is combined with --create', async () => { + const out = await run([ + 'branch', + '--api-key', + pak, + 'positional-branch', + '--create', + 'option-branch', + ]); + + expect(out.code).not.toBe(0); + expect(out.stderr + out.stdout).toContain( + "error: use either the '[branch]' arg to create branch or the option '-c, --create '" + ); + }); + + it('errors when positional branch is combined with --delete', async () => { + const out = await run([ + 'branch', + '--api-key', + pak, + 'positional-branch', + '--delete', + 'other-branch', + ]); + + expect(out.code).not.toBe(0); + expect(out.stderr + out.stdout).toContain( + "error: '[branch]' arg to create branch cannot be used together with option '-d, --delete '" + ); + }); +}); From d2e882c050f5f88a9af295ea070073a8542ff1d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Thu, 8 Jan 2026 13:29:05 +0100 Subject: [PATCH 11/15] feat: add --branch to tag command --- src/commands/tag.ts | 8 +++-- test/e2e/tags.test.ts | 73 ++++++++++++++++++++++++++++++++------ test/e2e/utils/api/tags.ts | 4 +-- 3 files changed, 71 insertions(+), 14 deletions(-) diff --git a/src/commands/tag.ts b/src/commands/tag.ts index 293b2993..9623a7b1 100644 --- a/src/commands/tag.ts +++ b/src/commands/tag.ts @@ -5,6 +5,7 @@ import { handleLoadableError } from '../client/TolgeeClient.js'; import { exitWithError, loading, success } from '../utils/logger.js'; import { extractKeysOfFiles } from '../extractor/runner.js'; import { components } from '../client/internal/schema.generated.js'; +import { appendBranch } from '../utils/branch.js'; type KeyId = components['schemas']['KeyId']; @@ -44,9 +45,12 @@ const tagHandler = (config: Schema) => } const loadable = await loading( - 'Tagging...', + `Tagging${appendBranch(opts.branch)}...`, opts.client.PUT('/v2/projects/{projectId}/tag-complex', { - params: { path: { projectId: opts.client.getProjectId() } }, + params: { + path: { projectId: opts.client.getProjectId() }, + query: { branch: opts.branch }, + }, body: { filterTag: opts.filterTag, filterTagNot: opts.filterNoTag, diff --git a/test/e2e/tags.test.ts b/test/e2e/tags.test.ts index e57f26a0..6940047c 100644 --- a/test/e2e/tags.test.ts +++ b/test/e2e/tags.test.ts @@ -2,6 +2,7 @@ import { TolgeeClient } from '#cli/client/TolgeeClient.js'; import { join } from 'path'; import { API_URL, + createBranch, createPak, createProjectWithClient, deleteProject, @@ -50,7 +51,7 @@ afterEach(async () => { it('updates production tags from extracted (args)', async () => { const { configFile } = await createTmpFolderWithConfig(PROJECT_CONFIG_BASE); const out = await run([ - '-c', + '--config', configFile, '--api-key', pak, @@ -80,7 +81,7 @@ it('updates production tags from extracted (config)', async () => { untag: ['production-*'], }, }); - const out = await run(['-c', configFile, 'tag']); + const out = await run(['--config', configFile, 'tag']); expect(out.code).toBe(0); @@ -93,7 +94,7 @@ it('updates production tags from extracted (config)', async () => { it('marks as deprecated (args)', async () => { const { configFile } = await createTmpFolderWithConfig(PROJECT_CONFIG_BASE); const out = await run([ - '-c', + '--config', configFile, '--api-key', pak, @@ -126,7 +127,7 @@ it('marks as deprecated (config)', async () => { untag: ['production-*'], }, }); - const out = await run(['-c', configFile, 'tag']); + const out = await run(['--config', configFile, 'tag']); expect(out.code).toBe(0); @@ -139,7 +140,7 @@ it('marks as deprecated (config)', async () => { it('marks newly created keys as drafts (args)', async () => { const { configFile } = await createTmpFolderWithConfig(PROJECT_CONFIG_BASE); const out = await run([ - '-c', + '--config', configFile, '--api-key', pak, @@ -163,7 +164,7 @@ it('marks newly created keys as drafts (config)', async () => { tagNewKeys: ['draft-another-branch'], }, }); - const out = await run(['-c', configFile, 'push']); + const out = await run(['--config', configFile, 'push']); expect(out.code).toBe(0); expect(await getTagsMap(client)).toEqual({ ...ORIGINAL_TAGS, @@ -174,7 +175,7 @@ it('marks newly created keys as drafts (config)', async () => { it('marks other keys (args)', async () => { const { configFile } = await createTmpFolderWithConfig(PROJECT_CONFIG_BASE); const out = await run([ - '-c', + '--config', configFile, '--api-key', pak, @@ -205,7 +206,7 @@ it('marks other keys (config)', async () => { tagOther: ['other'], }, }); - const out = await run(['-c', configFile, 'tag']); + const out = await run(['--config', configFile, 'tag']); expect(out.code).toBe(0); @@ -218,7 +219,7 @@ it('marks other keys (config)', async () => { it('marks no key', async () => { const out = await run([ - '-c', + '--config', TAGS_PROJECT_CONFIG, '--api-key', pak, @@ -238,7 +239,7 @@ it('marks no key', async () => { it('marks no key but through other without filter', async () => { const out = await run([ - '-c', + '--config', TAGS_PROJECT_CONFIG, '--api-key', pak, @@ -253,3 +254,55 @@ it('marks no key but through other without filter', async () => { ...ORIGINAL_TAGS, }); }); + +describe('Branching', () => { + beforeEach(async () => { + await createBranch(client, 'feature-branch'); + }); + + it('tags extracted keys in the selected branch', async () => { + const out = await run([ + '--config', + TAGS_PROJECT_CONFIG, + '--api-key', + pak, + 'tag', + '--branch', + 'feature-branch', + '--filter-extracted', + '--tag', + 'branch-tag', + ]); + + expect(out.code).toBe(0); + + expect( + Object.values(await getTagsMap(client, 'feature-branch')).filter((tags) => + tags.includes('branch-tag') + ).length + ).toBe(1); + expect( + Object.values(await getTagsMap(client)).filter((tags) => + tags.includes('branch-tag') + ).length + ).toBe(0); + }); + + it('fails when branch does not exist', async () => { + const out = await run([ + '--config', + TAGS_PROJECT_CONFIG, + '--api-key', + pak, + 'tag', + '--branch', + 'missing-branch', + '--filter-extracted', + '--tag', + 'branch-tag', + ]); + + expect(out.code).not.toBe(0); + expect(out.stderr + out.stdout).toContain('branch_not_found'); + }); +}); diff --git a/test/e2e/utils/api/tags.ts b/test/e2e/utils/api/tags.ts index 577ac32f..bda65721 100644 --- a/test/e2e/utils/api/tags.ts +++ b/test/e2e/utils/api/tags.ts @@ -39,11 +39,11 @@ export const ORIGINAL_TAGS = { screen: ['deprecated-v11'], } as const; -export async function getTagsMap(client: TolgeeClient) { +export async function getTagsMap(client: TolgeeClient, branch?: string) { const keys = await client.GET('/v2/projects/{projectId}/translations', { params: { path: { projectId: client.getProjectId() }, - query: { languages: ['en', 'cs'] }, + query: { languages: ['en', 'cs'], ...(!!branch && { branch }) }, }, }); From e27827b4fa6854117240fcf5fff99d047449a104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Fri, 9 Jan 2026 15:48:34 +0100 Subject: [PATCH 12/15] feat: add merge command --- src/cli.ts | 4 + src/commands/branch.ts | 25 +----- src/commands/merge.ts | 175 +++++++++++++++++++++++++++++++++++++++++ src/utils/branch.ts | 30 +++++++ test/e2e/merge.test.ts | 76 ++++++++++++++++++ 5 files changed, 286 insertions(+), 24 deletions(-) create mode 100644 src/commands/merge.ts create mode 100644 test/e2e/merge.test.ts diff --git a/src/cli.ts b/src/cli.ts index 7827cd1e..fac6bc6b 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -38,6 +38,7 @@ import CompareCommand from './commands/sync/compare.js'; import SyncCommand from './commands/sync/sync.js'; import TagCommand from './commands/tag.js'; import BranchCommand from './commands/branch.js'; +import MergeCommand from './commands/merge.js'; import { getSingleOption } from './utils/getSingleOption.js'; import { Schema } from './schema.js'; @@ -215,6 +216,9 @@ async function run() { program.addCommand( BranchCommand(config).configureHelp({ showGlobalOptions: true }) ); + program.addCommand( + MergeCommand(config).configureHelp({ showGlobalOptions: true }) + ); await program.parseAsync(); } catch (e: any) { diff --git a/src/commands/branch.ts b/src/commands/branch.ts index 32065428..b7c1a38b 100644 --- a/src/commands/branch.ts +++ b/src/commands/branch.ts @@ -3,6 +3,7 @@ import { Schema } from '../schema.js'; import { BaseOptions } from '../options.js'; import { components } from '../client/internal/schema.generated.js'; import { handleLoadableError } from '../client/TolgeeClient.js'; +import { fetchBranches, listBranches } from '../utils/branch.js'; import { error, exitWithError, loading, success } from '../utils/logger.js'; type BranchOptions = BaseOptions & { @@ -11,30 +12,6 @@ type BranchOptions = BaseOptions & { origin?: string; }; -async function fetchBranches(cmd: BranchOptions) { - const loadable = await cmd.client.GET('/v2/projects/{projectId}/branches', { - params: { path: { projectId: cmd.client.getProjectId() } }, - }); - handleLoadableError(loadable); - return loadable.data?._embedded?.branches ?? []; -} - -function listBranches(branches: components['schemas']['BranchModel'][]) { - if (!branches.length) { - success('No branches found.'); - return; - } - console.log('Branches:'); - branches.forEach((b) => { - const markers: string[] = []; - if (b.isDefault) markers.push('default'); - if (b.isProtected) markers.push('protected'); - if (b.active === false) markers.push('inactive'); - const suffix = markers.length ? ` (${markers.join(', ')})` : ''; - console.log(`- ${b.name}${suffix}`); - }); -} - function resolveTargetNames(opts: BranchOptions, createArg?: string) { const createName = opts.create ?? createArg; const deleteName = opts.delete; diff --git a/src/commands/merge.ts b/src/commands/merge.ts new file mode 100644 index 00000000..221bb403 --- /dev/null +++ b/src/commands/merge.ts @@ -0,0 +1,175 @@ +import { Command } from 'commander'; +import { Schema } from '../schema.js'; +import { BaseOptions } from '../options.js'; +import { components } from '../client/internal/schema.generated.js'; +import { handleLoadableError } from '../client/TolgeeClient.js'; +import { fetchBranches, listBranches } from '../utils/branch.js'; +import { + error, + exitWithError, + info, + loading, + success, +} from '../utils/logger.js'; + +type MergeOptions = BaseOptions; +type MergeChange = components['schemas']['BranchMergeChangeModel']; + +function resolveBranchName(opts: MergeOptions, branchArg?: string) { + if (branchArg && opts.branch) { + exitWithError( + "error: use either the '[branch]' arg or the option '--branch '" + ); + } + const branchName = branchArg ?? opts.branch; + if (!branchName) { + exitWithError('Specify a branch to merge.'); + } + return branchName; +} + +function renderChangeType(change: MergeChange) { + switch (change.type) { + case 'ADD': + return '+'; + case 'UPDATE': + return '~'; + case 'DELETE': + return '-'; + case 'CONFLICT': + return 'x'; + } +} + +function renderChange(change: MergeChange) { + const keyName = + change.sourceKey?.keyName ?? change.targetKey?.keyName ?? 'unknown'; + const languages = change.changedTranslations?.length + ? ` (${change.changedTranslations.join(', ')})` + : ''; + return `${renderChangeType(change)} ${keyName}${languages}`; +} + +function buildMergeUrl(opts: MergeOptions, mergeId: number) { + return new URL( + `/projects/${opts.projectId}/branches/merge/${mergeId}`, + opts.apiUrl // API and frontend URLs may differ, but commonly they are the same + ).toString(); +} + +const mergeHandler = (config: Schema) => + async function (this: Command) { + const opts: MergeOptions = this.optsWithGlobals(); + const branchArg = this.processedArgs[0]; + const branchName = resolveBranchName(opts, branchArg); + + const branches = await loading( + 'Fetching project branches...', + fetchBranches(opts) + ); + + const mergedBranch = branches.find((branch) => branch.name === branchName); + if (!mergedBranch) { + error(`Branch "${branchName}" was not found.`); + listBranches(branches); + exitWithError('Specify an existing branch to merge.'); + } + + if (mergedBranch.isDefault) { + exitWithError('Cannot merge the default branch.'); + } + + const previewLoadable = await loading( + `Preparing merge of "${branchName}"...`, + opts.client.POST('/v2/projects/{projectId}/branches/merge/preview', { + params: { path: { projectId: opts.client.getProjectId() } }, + body: { sourceBranchId: mergedBranch.id }, + }) + ); + handleLoadableError(previewLoadable); + + const mergeRef = previewLoadable.data!; + + const refreshLoadable = await loading( + `Refreshing merge changes...`, + opts.client.POST( + '/v2/projects/{projectId}/branches/merge/{mergeId}/refresh', + { + params: { + path: { + projectId: opts.client.getProjectId(), + mergeId: mergeRef.id, + }, + }, + } + ) + ); + handleLoadableError(refreshLoadable); + + const changesLoadable = await loading( + `Checking merge changes...`, + opts.client.GET( + '/v2/projects/{projectId}/branches/merge/{mergeId}/changes', + { + params: { + path: { + projectId: opts.client.getProjectId(), + mergeId: mergeRef.id, + }, + }, + } + ) + ); + handleLoadableError(changesLoadable); + + const changes = changesLoadable.data?._embedded?.branchMergeChanges ?? []; + const totalChanges = + changesLoadable.data?.page?.totalElements ?? changes.length; + + console.log('Changed keys:'); + changes.forEach((change) => { + console.log(renderChange(change)); + }); + if (totalChanges > changes.length) { + console.log(`...and ${totalChanges - changes.length} more`); + } + + if ( + (refreshLoadable.data?.keyUnresolvedConflictsCount ?? + changes.filter( + (change) => change.type === 'CONFLICT' && !change.resolution + ).length) > 0 + ) { + error( + `Unresolved merge conflicts detected between "${branchName}" and "${mergeRef.targetBranchName}".` + ); + info(`Finish merge in web app: ${buildMergeUrl(opts, mergeRef.id)}`); + exitWithError('Resolve changes before merging.'); + } + + const applyLoadable = await loading( + `Merging branch "${branchName}"...`, + opts.client.POST( + '/v2/projects/{projectId}/branches/merge/{mergeId}/apply', + { + params: { + path: { + projectId: opts.client.getProjectId(), + mergeId: mergeRef.id, + }, + }, + } + ) + ); + handleLoadableError(applyLoadable); + + success( + `Branch "${branchName}" merged into "${mergeRef.targetBranchName}".` + ); + }; + +export default (config: Schema) => + new Command('merge') + .description('Merge a branch into its parent branch') + .argument('[branch]', 'branch name to merge') + .action(mergeHandler(config)); diff --git a/src/utils/branch.ts b/src/utils/branch.ts index b8e51851..28fa7be0 100644 --- a/src/utils/branch.ts +++ b/src/utils/branch.ts @@ -1,3 +1,33 @@ +import { BaseOptions } from '../options.js'; +import { components } from '../client/internal/schema.generated.js'; +import { handleLoadableError } from '../client/TolgeeClient.js'; +import { success } from './logger.js'; + export function appendBranch(branch?: string) { return branch ? ` (branch "${branch}")` : ' (none or default branch)'; } + +export async function fetchBranches(cmd: BaseOptions) { + const loadable = await cmd.client.GET('/v2/projects/{projectId}/branches', { + params: { path: { projectId: cmd.client.getProjectId() } }, + }); + handleLoadableError(loadable); + return loadable.data?._embedded?.branches ?? []; +} + +export function listBranches(branches: components['schemas']['BranchModel'][]) { + if (!branches.length) { + success('No branches found.'); + return; + } + console.log('Branches:'); + branches.forEach((b) => { + const markers: string[] = []; + if (b.isDefault) markers.push('default'); + if (b.isProtected) markers.push('protected'); + if (b.active === false) markers.push('inactive'); + if (b.merge) markers.push('ongoing merge'); + const suffix = markers.length ? ` (${markers.join(', ')})` : ''; + console.log(`- ${b.name}${suffix}`); + }); +} diff --git a/test/e2e/merge.test.ts b/test/e2e/merge.test.ts new file mode 100644 index 00000000..ed8398bf --- /dev/null +++ b/test/e2e/merge.test.ts @@ -0,0 +1,76 @@ +import { TolgeeClient } from '#cli/client/TolgeeClient.js'; +import { run } from './utils/run.js'; +import { + DEFAULT_SCOPES, + createBranch, + createKey, + createPak, + createProjectWithClient, + deleteProject, +} from './utils/api/common.js'; +import { PROJECT_1 } from './utils/api/project1.js'; + +let client: TolgeeClient; +let pak: string; + +describe('merge command', () => { + beforeEach(async () => { + client = await createProjectWithClient('Project 1', PROJECT_1); + pak = await createPak(client, [...DEFAULT_SCOPES, 'project.edit']); + }); + + afterEach(async () => { + await deleteProject(client); + }); + + it('merges branch without conflicts (args)', async () => { + await createBranch(client, 'feature-branch'); + await createKey(client, 'branch-key', { + branch: 'feature-branch', + translations: { en: 'Branch only' }, + }); + + const out = await run(['merge', 'feature-branch', '--api-key', pak]); + + expect(out.code).toBe(0); + expect(out.stdout).toContain('+ branch-key'); + expect(out.stdout).toContain('merged'); + + const keys = await client.GET('/v2/projects/{projectId}/translations', { + params: { + path: { projectId: client.getProjectId() }, + query: { filterKeyName: ['branch-key'] }, + }, + }); + + expect(keys.data?.page?.totalElements).toBe(1); + }); + + it('fails on conflicts and prints them (option)', async () => { + await createBranch(client, 'feature-branch'); + + await createKey(client, 'conflict-key', { + translations: { en: 'Default branch' }, + }); + await createKey(client, 'conflict-key', { + branch: 'feature-branch', + translations: { en: 'Feature branch' }, + }); + + const out = await run([ + 'merge', + '--api-key', + pak, + '--branch', + 'feature-branch', + ]); + + expect(out.code).not.toBe(0); + + const output = out.stdout + out.stderr; + expect(output).toContain('x conflict-key'); + expect(output).toContain( + `/projects/${client.getProjectId()}/branches/merge/` + ); + }); +}); From 606f9fc82a2509d09106c2ab2bfa702c051d83c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Fri, 9 Jan 2026 17:31:25 +0100 Subject: [PATCH 13/15] fix: use branch query param only when specified --- src/commands/sync/compare.ts | 2 +- src/commands/sync/sync.ts | 4 ++-- src/commands/tag.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/sync/compare.ts b/src/commands/sync/compare.ts index a4296c44..66faec36 100644 --- a/src/commands/sync/compare.ts +++ b/src/commands/sync/compare.ts @@ -31,7 +31,7 @@ const asyncHandler = (config: Schema) => opts.client.GET('/v2/projects/{projectId}/all-keys', { params: { path: { projectId: opts.client.getProjectId() }, - query: { branch: opts.branch }, + ...(!!opts.branch && { query: { branch: opts.branch } }), }, }) ); diff --git a/src/commands/sync/sync.ts b/src/commands/sync/sync.ts index b1190428..b991a057 100644 --- a/src/commands/sync/sync.ts +++ b/src/commands/sync/sync.ts @@ -98,7 +98,7 @@ const syncHandler = (config: Schema) => opts.client.GET('/v2/projects/{projectId}/all-keys', { params: { path: { projectId: opts.client.getProjectId() }, - query: { branch: opts.branch }, + ...(!!opts.branch && { query: { branch: opts.branch } }), }, }) ); @@ -168,7 +168,7 @@ const syncHandler = (config: Schema) => opts.client.POST('/v2/projects/{projectId}/keys/import', { params: { path: { projectId: opts.client.getProjectId() }, - query: { branch: opts.branch }, + ...(!!opts.branch && { query: { branch: opts.branch } }), }, body: { keys }, }) diff --git a/src/commands/tag.ts b/src/commands/tag.ts index 9623a7b1..fc17af6b 100644 --- a/src/commands/tag.ts +++ b/src/commands/tag.ts @@ -49,7 +49,7 @@ const tagHandler = (config: Schema) => opts.client.PUT('/v2/projects/{projectId}/tag-complex', { params: { path: { projectId: opts.client.getProjectId() }, - query: { branch: opts.branch }, + ...(!!opts.branch && { query: { branch: opts.branch } }), }, body: { filterTag: opts.filterTag, From a5fe2bce147328643776fc54be46aeef0bf6a706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Mon, 12 Jan 2026 10:03:59 +0100 Subject: [PATCH 14/15] fix: list only non-merged branches --- src/utils/branch.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/branch.ts b/src/utils/branch.ts index 28fa7be0..d33adf69 100644 --- a/src/utils/branch.ts +++ b/src/utils/branch.ts @@ -16,10 +16,13 @@ export async function fetchBranches(cmd: BaseOptions) { } export function listBranches(branches: components['schemas']['BranchModel'][]) { + branches = branches.filter((b) => !b.merge || !b.merge.mergedAt); + if (!branches.length) { success('No branches found.'); return; } + console.log('Branches:'); branches.forEach((b) => { const markers: string[] = []; From 0ccfb78d2a14d1ad384a6369ae27a0e3d9a984dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moln=C3=A1r?= Date: Tue, 13 Jan 2026 18:13:54 +0100 Subject: [PATCH 15/15] chore: unify branch loading with platform --- src/utils/branch.ts | 5 ++++- test/e2e/branch.test.ts | 13 +++---------- test/e2e/utils/api/common.ts | 19 ++++++++++++------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/utils/branch.ts b/src/utils/branch.ts index d33adf69..f95d6189 100644 --- a/src/utils/branch.ts +++ b/src/utils/branch.ts @@ -9,7 +9,10 @@ export function appendBranch(branch?: string) { export async function fetchBranches(cmd: BaseOptions) { const loadable = await cmd.client.GET('/v2/projects/{projectId}/branches', { - params: { path: { projectId: cmd.client.getProjectId() } }, + params: { + path: { projectId: cmd.client.getProjectId() }, + query: { size: 10000, activeOnly: true }, + }, }); handleLoadableError(loadable); return loadable.data?._embedded?.branches ?? []; diff --git a/test/e2e/branch.test.ts b/test/e2e/branch.test.ts index 0105f318..f5424f20 100644 --- a/test/e2e/branch.test.ts +++ b/test/e2e/branch.test.ts @@ -1,5 +1,6 @@ import { run } from './utils/run.js'; import { TolgeeClient } from '#cli/client/TolgeeClient.js'; +import { fetchBranches } from './utils/api/common.js'; import { PROJECT_1 } from './utils/api/project1.js'; import { DEFAULT_SCOPES, @@ -12,16 +13,8 @@ import { let client: TolgeeClient; let pak: string; -async function fetchBranches() { - const branches = await client.GET('/v2/projects/{projectId}/branches', { - params: { path: { projectId: client.getProjectId() } }, - }); - - return branches.data?._embedded?.branches ?? []; -} - async function findBranch(name: string) { - const branches = await fetchBranches(); + const branches = await fetchBranches(client); return branches.find((branch) => branch.name === name); } @@ -38,7 +31,7 @@ describe('branch command', () => { it('lists branches', async () => { await createBranch(client, 'feature-branch'); - const branches = await fetchBranches(); + const branches = await fetchBranches(client); const defaultBranch = branches.find((branch) => branch.isDefault); const out = await run(['branch', '--api-key', pak]); diff --git a/test/e2e/utils/api/common.ts b/test/e2e/utils/api/common.ts index 5cd4af42..999c852d 100644 --- a/test/e2e/utils/api/common.ts +++ b/test/e2e/utils/api/common.ts @@ -97,6 +97,17 @@ type CreateBranchOptions = { originBranchId?: number; }; +export async function fetchBranches(client: TolgeeClient) { + const branches = await client.GET('/v2/projects/{projectId}/branches', { + params: { + path: { projectId: client.getProjectId() }, + query: { size: 10000, activeOnly: true }, + }, + }); + + return branches.data?._embedded?.branches ?? []; +} + export async function createBranch( client: TolgeeClient, name: string, @@ -104,13 +115,7 @@ export async function createBranch( ) { let originBranchId = options?.originBranchId; if (!originBranchId) { - const branches = await client.GET('/v2/projects/{projectId}/branches', { - params: { - path: { projectId: client.getProjectId() }, - }, - }); - - const origin = branches.data?._embedded?.branches?.find((b) => b.isDefault); + const origin = (await fetchBranches(client)).find((b) => b.isDefault); originBranchId = origin?.id; }