import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class ProjectsService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get project * @param projectId The unique identifier of the project. * @returns any Success * @throws ApiError */ getProject(projectId: string): CancelablePromise<{ /** * The unique identifier of the project */ id: string; /** * The name of the project */ name: string; /** * A brief description of the project */ description: string; /** * The date and time when the project was created */ created_at: string; /** * The date and time of the latest activity in the project */ latest_activity: string; ai_settings: { /** * AI settings for the project */ enable_ai: boolean; /** * Default tone for AI translations */ ai_overall_tone: string; /** * When set to true, AI will automatically translate new keys */ default_ai_translate_on_new_keys: boolean; }; qa_settings: { /** * QA settings for the project */ enable_qa: boolean; /** * When set to true, QA will check for spelling errors */ enable_qa_spelling: boolean; /** * When set to true, QA will check for double spaces */ enable_qa_double_spaces: boolean; /** * When set to true, QA will check for the correct number of variables */ enable_qa_number_of_variables: boolean; /** * When set to true, QA will check for punctuation errors */ enable_qa_punctuation: boolean; }; configuration: { /** * What type of project it is. Not used yet */ type_of_project: 'web' | 'app' | 'game' | 'other'; /** * List of frameworks used in the project. Not used yet */ frameworks: Array; /** * If true, ICU transformations are enabled for the project on imports. */ enable_icu_transform: boolean; /** * If true, namespaces are enabled for the project. */ enable_namespace: boolean; }; statistics: { /** * The total number of keys in the project */ total_number_of_keys: number; /** * The total number of words in the project */ total_number_of_words: number; }; /** * List of languages associated with the project */ languages: Array<{ /** * The language code, e.g. "en" for English */ language_code: string; /** * Optional variations for the language, e.g. ["US", "UK"] for English. */ variations: Array; /** * When the language was created */ created_at: string; /** * Email of the user who created the language */ created_by: string; /** * The default country code for the language, e.g. "US" for English (United States). This decides which flag to show for the translators and which exact locale to use in AI calls. */ default_country_code: string; /** * Indicates if this language is the base language for the project */ is_base_language: boolean; statistics: { /** * The total number of keys in this language */ total_number_of_words: number; /** * The total number of reviewed keys in this language */ number_of_reviewed_keys: number; /** * The total number of translated keys in this language */ number_of_translated_keys: number; }; /** * The date and time of the latest activity in this language. Activity can be a translation change or review event */ latest_activity_at: string; }>; }>; /** * Update project * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ updateProject(projectId: string, requestBody: { /** * The name of the project */ name: string; /** * A brief description of the project */ description: string; ai_settings: { /** * AI settings for the project */ enable_ai: boolean; /** * Default tone for AI translations */ ai_overall_tone: string; /** * When set to true, AI will automatically translate new keys */ default_ai_translate_on_new_keys: boolean; }; qa_settings: { /** * QA settings for the project */ enable_qa: boolean; /** * When set to true, QA will check for spelling errors */ enable_qa_spelling: boolean; /** * When set to true, QA will check for double spaces */ enable_qa_double_spaces: boolean; /** * When set to true, QA will check for the correct number of variables */ enable_qa_number_of_variables: boolean; /** * When set to true, QA will check for punctuation errors */ enable_qa_punctuation: boolean; }; configuration: { /** * What type of project it is. Not used yet */ type_of_project: 'web' | 'app' | 'game' | 'other'; /** * List of frameworks used in the project. Not used yet */ frameworks: Array; /** * If true, ICU transformations are enabled for the project on imports. */ enable_icu_transform: boolean; /** * If true, namespaces are enabled for the project. */ enable_namespace: boolean; }; }): CancelablePromise<{ /** * The name of the project */ name: string; /** * A brief description of the project */ description: string; ai_settings: { /** * AI settings for the project */ enable_ai: boolean; /** * Default tone for AI translations */ ai_overall_tone: string; /** * When set to true, AI will automatically translate new keys */ default_ai_translate_on_new_keys: boolean; }; qa_settings: { /** * QA settings for the project */ enable_qa: boolean; /** * When set to true, QA will check for spelling errors */ enable_qa_spelling: boolean; /** * When set to true, QA will check for double spaces */ enable_qa_double_spaces: boolean; /** * When set to true, QA will check for the correct number of variables */ enable_qa_number_of_variables: boolean; /** * When set to true, QA will check for punctuation errors */ enable_qa_punctuation: boolean; }; configuration: { /** * What type of project it is. Not used yet */ type_of_project: 'web' | 'app' | 'game' | 'other'; /** * List of frameworks used in the project. Not used yet */ frameworks: Array; /** * If true, ICU transformations are enabled for the project on imports. */ enable_icu_transform: boolean; /** * If true, namespaces are enabled for the project. */ enable_namespace: boolean; }; }>; } //# sourceMappingURL=ProjectsService.d.ts.map