@generaltranslation/api 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.cts +14 -9
- package/dist/index.d.mts +14 -9
- package/package.json +1 -1
- package/spec/openapi.json +60 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @generaltranslation/api
|
|
2
2
|
|
|
3
|
+
## 0.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2208](https://github.com/generaltranslation/gt/pull/2208) [`0ce6acc`](https://github.com/generaltranslation/gt/commit/0ce6acc7ab27fb392c48b1dbd7cc24bd4c4b7755) Thanks [@internal-gt-public-api-sync](https://github.com/apps/internal-gt-public-api-sync)! - Sync the GT API OpenAPI contract and regenerate the SDK.
|
|
8
|
+
|
|
3
9
|
## 0.0.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -316,6 +316,13 @@ type ErrorResponse = {
|
|
|
316
316
|
error: string;
|
|
317
317
|
};
|
|
318
318
|
type FileFormat = 'GTJSON' | 'MDX' | 'JSON' | 'YAML' | 'MD' | 'TS' | 'JS' | 'HTML' | 'TXT' | 'PO' | 'POT' | 'TWILIO_CONTENT_JSON' | 'LOTTIE' | 'SVG';
|
|
319
|
+
type ModelProvider = 'ANTHROPIC' | 'OPENAI' | 'XAI' | 'GOOGLE';
|
|
320
|
+
type JsonObject = {
|
|
321
|
+
[key: string]: JsonValue;
|
|
322
|
+
};
|
|
323
|
+
type JsonValue = string | number | boolean | null | Array<JsonValue | null> | {
|
|
324
|
+
[key: string]: JsonValue | null;
|
|
325
|
+
};
|
|
319
326
|
type Branch = {
|
|
320
327
|
id: string;
|
|
321
328
|
name: string;
|
|
@@ -323,7 +330,7 @@ type Branch = {
|
|
|
323
330
|
type RuntimeTranslationResponse = {
|
|
324
331
|
[key: string]: {
|
|
325
332
|
success: true;
|
|
326
|
-
translation?:
|
|
333
|
+
translation?: JsonValue;
|
|
327
334
|
dataFormat: 'JSX' | 'ICU' | 'I18NEXT' | 'STRING';
|
|
328
335
|
locale: string;
|
|
329
336
|
} | {
|
|
@@ -342,7 +349,7 @@ type RuntimeTranslationRequest = {
|
|
|
342
349
|
context?: string;
|
|
343
350
|
maxChars?: number;
|
|
344
351
|
dataFormat?: 'JSX' | 'ICU' | 'I18NEXT' | 'STRING';
|
|
345
|
-
actionType?: 'fast';
|
|
352
|
+
actionType?: 'fast' | 'standard';
|
|
346
353
|
sourceCode?: {
|
|
347
354
|
[key: string]: Array<{
|
|
348
355
|
before: string;
|
|
@@ -356,7 +363,7 @@ type RuntimeTranslationRequest = {
|
|
|
356
363
|
targetLocale: string;
|
|
357
364
|
sourceLocale: string;
|
|
358
365
|
metadata: {
|
|
359
|
-
modelProvider?:
|
|
366
|
+
modelProvider?: ModelProvider;
|
|
360
367
|
};
|
|
361
368
|
};
|
|
362
369
|
type CreateCliWizardSessionResponse = {
|
|
@@ -949,7 +956,7 @@ type EnqueueFileTranslationsData = {
|
|
|
949
956
|
targetLocales?: Array<string>;
|
|
950
957
|
sourceLocale?: string;
|
|
951
958
|
force?: boolean;
|
|
952
|
-
modelProvider?:
|
|
959
|
+
modelProvider?: ModelProvider;
|
|
953
960
|
publish?: boolean;
|
|
954
961
|
};
|
|
955
962
|
headers?: {
|
|
@@ -1024,7 +1031,7 @@ type EnqueueFileTranslationsResponses = {
|
|
|
1024
1031
|
projectId: string;
|
|
1025
1032
|
force: boolean;
|
|
1026
1033
|
outputFileFormat?: FileFormat;
|
|
1027
|
-
modelProvider?:
|
|
1034
|
+
modelProvider?: ModelProvider;
|
|
1028
1035
|
glossaryRetranslate?: boolean;
|
|
1029
1036
|
changedGlossaryTerms?: Array<string>;
|
|
1030
1037
|
onComplete?: {
|
|
@@ -1255,9 +1262,7 @@ type DownloadFilesResponses = {
|
|
|
1255
1262
|
locale?: string;
|
|
1256
1263
|
fileName?: string;
|
|
1257
1264
|
data: string;
|
|
1258
|
-
metadata:
|
|
1259
|
-
[key: string]: unknown;
|
|
1260
|
-
};
|
|
1265
|
+
metadata: JsonObject;
|
|
1261
1266
|
fileFormat: FileFormat;
|
|
1262
1267
|
}>;
|
|
1263
1268
|
count: number;
|
|
@@ -2366,5 +2371,5 @@ declare const deleteCliWizardSession: <ThrowOnError extends boolean = false>(opt
|
|
|
2366
2371
|
*/
|
|
2367
2372
|
declare const getCliWizardSession: <ThrowOnError extends boolean = false>(options: Options<GetCliWizardSessionData, ThrowOnError>) => RequestResult<GetCliWizardSessionResponses, GetCliWizardSessionErrors, ThrowOnError, "fields">;
|
|
2368
2373
|
//#endregion
|
|
2369
|
-
export { API_VERSION, type ApiClientConfig, type ApiVersion, type AwaitJobsOptions, type AwaitJobsResult, type BatchOptions, Branch, CliWizardSessionReadyResponse, CliWizardSessionWaitingResponse, type Client, ClientOptions, CreateBranchData, CreateBranchError, CreateBranchErrors, CreateBranchResponse, CreateBranchResponses, CreateCliWizardSessionData, CreateCliWizardSessionError, CreateCliWizardSessionErrors, CreateCliWizardSessionRequest, CreateCliWizardSessionResponse, CreateCliWizardSessionResponse2, CreateCliWizardSessionResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateTagData, CreateTagError, CreateTagErrors, CreateTagResponse, CreateTagResponses, DEFAULT_BATCH_SIZE, DeleteCliWizardSessionData, DeleteCliWizardSessionError, DeleteCliWizardSessionErrors, DeleteCliWizardSessionResponse, DeleteCliWizardSessionResponse2, DeleteCliWizardSessionResponses, DownloadFileData, DownloadFileError, DownloadFileErrors, DownloadFileResponse, DownloadFileResponses, DownloadFilesData, DownloadFilesError, DownloadFilesErrors, DownloadFilesResponse, DownloadFilesResponses, EnqueueFileTranslationsData, EnqueueFileTranslationsError, EnqueueFileTranslationsErrors, EnqueueFileTranslationsResponse, EnqueueFileTranslationsResponses, ErrorResponse, FileFormat, GenerateProjectContextData, GenerateProjectContextError, GenerateProjectContextErrors, GenerateProjectContextResponse, GenerateProjectContextResponses, GetBranchInfoData, GetBranchInfoError, GetBranchInfoErrors, GetBranchInfoResponse, GetBranchInfoResponses, GetCliWizardSessionData, GetCliWizardSessionError, GetCliWizardSessionErrors, GetCliWizardSessionResponse, GetCliWizardSessionResponses, GetFileInfoData, GetFileInfoError, GetFileInfoErrors, GetFileInfoResponse, GetFileInfoResponses, GetOrphanedFilesData, GetOrphanedFilesError, GetOrphanedFilesErrors, GetOrphanedFilesResponse, GetOrphanedFilesResponses, GetProjectContextGenerationStatusData, GetProjectContextGenerationStatusError, GetProjectContextGenerationStatusErrors, GetProjectContextGenerationStatusResponse, GetProjectContextGenerationStatusResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetTranslationJobInfoData, GetTranslationJobInfoError, GetTranslationJobInfoErrors, GetTranslationJobInfoResponse, GetTranslationJobInfoResponses, GetTranslationStatusData, GetTranslationStatusError, GetTranslationStatusErrors, GetTranslationStatusResponse, GetTranslationStatusResponses, type JobResult, Options, ProcessFileMovesData, ProcessFileMovesError, ProcessFileMovesErrors, ProcessFileMovesResponse, ProcessFileMovesResponses, PublishFilesData, PublishFilesError, PublishFilesErrors, PublishFilesResponse, PublishFilesResponses, type RetryPolicy, RuntimeTranslationRequest, RuntimeTranslationResponse, ShouldGenerateProjectContextData, ShouldGenerateProjectContextError, ShouldGenerateProjectContextErrors, ShouldGenerateProjectContextResponse, ShouldGenerateProjectContextResponses, SubmitUserEditDiffsData, SubmitUserEditDiffsError, SubmitUserEditDiffsErrors, SubmitUserEditDiffsResponse, SubmitUserEditDiffsResponses, TranslateData, TranslateError, TranslateErrors, TranslateResponse, TranslateResponses, UpdateProjectInfoData, UpdateProjectInfoError, UpdateProjectInfoErrors, UpdateProjectInfoResponse, UpdateProjectInfoResponses, UploadAssetsData, UploadAssetsError, UploadAssetsErrors, UploadAssetsResponse, UploadAssetsResponses, UploadSourceFilesData, UploadSourceFilesError, UploadSourceFilesErrors, UploadSourceFilesResponse, UploadSourceFilesResponses, UploadTranslationsData, UploadTranslationsError, UploadTranslationsErrors, UploadTranslationsResponse, UploadTranslationsResponses, awaitJobs, createApiClient, createBranch, createCliWizardSession, createProject, createTag, decodeBase64, decodeFileContent, deleteCliWizardSession, downloadFile, downloadFiles, encodeBase64, encodeFileContent, enqueueFileTranslations, generateProjectContext, getBranchInfo, getCliWizardSession, getFileInfo, getOrphanedFiles, getProjectContextGenerationStatus, getProjectInfo, getTranslationJobInfo, getTranslationStatus, processBatches, processFileMoves, publishFiles, shouldGenerateProjectContext, submitUserEditDiffs, translate, updateProjectInfo, uploadAssets, uploadSourceFiles, uploadTranslations };
|
|
2374
|
+
export { API_VERSION, type ApiClientConfig, type ApiVersion, type AwaitJobsOptions, type AwaitJobsResult, type BatchOptions, Branch, CliWizardSessionReadyResponse, CliWizardSessionWaitingResponse, type Client, ClientOptions, CreateBranchData, CreateBranchError, CreateBranchErrors, CreateBranchResponse, CreateBranchResponses, CreateCliWizardSessionData, CreateCliWizardSessionError, CreateCliWizardSessionErrors, CreateCliWizardSessionRequest, CreateCliWizardSessionResponse, CreateCliWizardSessionResponse2, CreateCliWizardSessionResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateTagData, CreateTagError, CreateTagErrors, CreateTagResponse, CreateTagResponses, DEFAULT_BATCH_SIZE, DeleteCliWizardSessionData, DeleteCliWizardSessionError, DeleteCliWizardSessionErrors, DeleteCliWizardSessionResponse, DeleteCliWizardSessionResponse2, DeleteCliWizardSessionResponses, DownloadFileData, DownloadFileError, DownloadFileErrors, DownloadFileResponse, DownloadFileResponses, DownloadFilesData, DownloadFilesError, DownloadFilesErrors, DownloadFilesResponse, DownloadFilesResponses, EnqueueFileTranslationsData, EnqueueFileTranslationsError, EnqueueFileTranslationsErrors, EnqueueFileTranslationsResponse, EnqueueFileTranslationsResponses, ErrorResponse, FileFormat, GenerateProjectContextData, GenerateProjectContextError, GenerateProjectContextErrors, GenerateProjectContextResponse, GenerateProjectContextResponses, GetBranchInfoData, GetBranchInfoError, GetBranchInfoErrors, GetBranchInfoResponse, GetBranchInfoResponses, GetCliWizardSessionData, GetCliWizardSessionError, GetCliWizardSessionErrors, GetCliWizardSessionResponse, GetCliWizardSessionResponses, GetFileInfoData, GetFileInfoError, GetFileInfoErrors, GetFileInfoResponse, GetFileInfoResponses, GetOrphanedFilesData, GetOrphanedFilesError, GetOrphanedFilesErrors, GetOrphanedFilesResponse, GetOrphanedFilesResponses, GetProjectContextGenerationStatusData, GetProjectContextGenerationStatusError, GetProjectContextGenerationStatusErrors, GetProjectContextGenerationStatusResponse, GetProjectContextGenerationStatusResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetTranslationJobInfoData, GetTranslationJobInfoError, GetTranslationJobInfoErrors, GetTranslationJobInfoResponse, GetTranslationJobInfoResponses, GetTranslationStatusData, GetTranslationStatusError, GetTranslationStatusErrors, GetTranslationStatusResponse, GetTranslationStatusResponses, type JobResult, JsonObject, JsonValue, ModelProvider, Options, ProcessFileMovesData, ProcessFileMovesError, ProcessFileMovesErrors, ProcessFileMovesResponse, ProcessFileMovesResponses, PublishFilesData, PublishFilesError, PublishFilesErrors, PublishFilesResponse, PublishFilesResponses, type RetryPolicy, RuntimeTranslationRequest, RuntimeTranslationResponse, ShouldGenerateProjectContextData, ShouldGenerateProjectContextError, ShouldGenerateProjectContextErrors, ShouldGenerateProjectContextResponse, ShouldGenerateProjectContextResponses, SubmitUserEditDiffsData, SubmitUserEditDiffsError, SubmitUserEditDiffsErrors, SubmitUserEditDiffsResponse, SubmitUserEditDiffsResponses, TranslateData, TranslateError, TranslateErrors, TranslateResponse, TranslateResponses, UpdateProjectInfoData, UpdateProjectInfoError, UpdateProjectInfoErrors, UpdateProjectInfoResponse, UpdateProjectInfoResponses, UploadAssetsData, UploadAssetsError, UploadAssetsErrors, UploadAssetsResponse, UploadAssetsResponses, UploadSourceFilesData, UploadSourceFilesError, UploadSourceFilesErrors, UploadSourceFilesResponse, UploadSourceFilesResponses, UploadTranslationsData, UploadTranslationsError, UploadTranslationsErrors, UploadTranslationsResponse, UploadTranslationsResponses, awaitJobs, createApiClient, createBranch, createCliWizardSession, createProject, createTag, decodeBase64, decodeFileContent, deleteCliWizardSession, downloadFile, downloadFiles, encodeBase64, encodeFileContent, enqueueFileTranslations, generateProjectContext, getBranchInfo, getCliWizardSession, getFileInfo, getOrphanedFiles, getProjectContextGenerationStatus, getProjectInfo, getTranslationJobInfo, getTranslationStatus, processBatches, processFileMoves, publishFiles, shouldGenerateProjectContext, submitUserEditDiffs, translate, updateProjectInfo, uploadAssets, uploadSourceFiles, uploadTranslations };
|
|
2370
2375
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -316,6 +316,13 @@ type ErrorResponse = {
|
|
|
316
316
|
error: string;
|
|
317
317
|
};
|
|
318
318
|
type FileFormat = 'GTJSON' | 'MDX' | 'JSON' | 'YAML' | 'MD' | 'TS' | 'JS' | 'HTML' | 'TXT' | 'PO' | 'POT' | 'TWILIO_CONTENT_JSON' | 'LOTTIE' | 'SVG';
|
|
319
|
+
type ModelProvider = 'ANTHROPIC' | 'OPENAI' | 'XAI' | 'GOOGLE';
|
|
320
|
+
type JsonObject = {
|
|
321
|
+
[key: string]: JsonValue;
|
|
322
|
+
};
|
|
323
|
+
type JsonValue = string | number | boolean | null | Array<JsonValue | null> | {
|
|
324
|
+
[key: string]: JsonValue | null;
|
|
325
|
+
};
|
|
319
326
|
type Branch = {
|
|
320
327
|
id: string;
|
|
321
328
|
name: string;
|
|
@@ -323,7 +330,7 @@ type Branch = {
|
|
|
323
330
|
type RuntimeTranslationResponse = {
|
|
324
331
|
[key: string]: {
|
|
325
332
|
success: true;
|
|
326
|
-
translation?:
|
|
333
|
+
translation?: JsonValue;
|
|
327
334
|
dataFormat: 'JSX' | 'ICU' | 'I18NEXT' | 'STRING';
|
|
328
335
|
locale: string;
|
|
329
336
|
} | {
|
|
@@ -342,7 +349,7 @@ type RuntimeTranslationRequest = {
|
|
|
342
349
|
context?: string;
|
|
343
350
|
maxChars?: number;
|
|
344
351
|
dataFormat?: 'JSX' | 'ICU' | 'I18NEXT' | 'STRING';
|
|
345
|
-
actionType?: 'fast';
|
|
352
|
+
actionType?: 'fast' | 'standard';
|
|
346
353
|
sourceCode?: {
|
|
347
354
|
[key: string]: Array<{
|
|
348
355
|
before: string;
|
|
@@ -356,7 +363,7 @@ type RuntimeTranslationRequest = {
|
|
|
356
363
|
targetLocale: string;
|
|
357
364
|
sourceLocale: string;
|
|
358
365
|
metadata: {
|
|
359
|
-
modelProvider?:
|
|
366
|
+
modelProvider?: ModelProvider;
|
|
360
367
|
};
|
|
361
368
|
};
|
|
362
369
|
type CreateCliWizardSessionResponse = {
|
|
@@ -949,7 +956,7 @@ type EnqueueFileTranslationsData = {
|
|
|
949
956
|
targetLocales?: Array<string>;
|
|
950
957
|
sourceLocale?: string;
|
|
951
958
|
force?: boolean;
|
|
952
|
-
modelProvider?:
|
|
959
|
+
modelProvider?: ModelProvider;
|
|
953
960
|
publish?: boolean;
|
|
954
961
|
};
|
|
955
962
|
headers?: {
|
|
@@ -1024,7 +1031,7 @@ type EnqueueFileTranslationsResponses = {
|
|
|
1024
1031
|
projectId: string;
|
|
1025
1032
|
force: boolean;
|
|
1026
1033
|
outputFileFormat?: FileFormat;
|
|
1027
|
-
modelProvider?:
|
|
1034
|
+
modelProvider?: ModelProvider;
|
|
1028
1035
|
glossaryRetranslate?: boolean;
|
|
1029
1036
|
changedGlossaryTerms?: Array<string>;
|
|
1030
1037
|
onComplete?: {
|
|
@@ -1255,9 +1262,7 @@ type DownloadFilesResponses = {
|
|
|
1255
1262
|
locale?: string;
|
|
1256
1263
|
fileName?: string;
|
|
1257
1264
|
data: string;
|
|
1258
|
-
metadata:
|
|
1259
|
-
[key: string]: unknown;
|
|
1260
|
-
};
|
|
1265
|
+
metadata: JsonObject;
|
|
1261
1266
|
fileFormat: FileFormat;
|
|
1262
1267
|
}>;
|
|
1263
1268
|
count: number;
|
|
@@ -2366,5 +2371,5 @@ declare const deleteCliWizardSession: <ThrowOnError extends boolean = false>(opt
|
|
|
2366
2371
|
*/
|
|
2367
2372
|
declare const getCliWizardSession: <ThrowOnError extends boolean = false>(options: Options<GetCliWizardSessionData, ThrowOnError>) => RequestResult<GetCliWizardSessionResponses, GetCliWizardSessionErrors, ThrowOnError, "fields">;
|
|
2368
2373
|
//#endregion
|
|
2369
|
-
export { API_VERSION, type ApiClientConfig, type ApiVersion, type AwaitJobsOptions, type AwaitJobsResult, type BatchOptions, Branch, CliWizardSessionReadyResponse, CliWizardSessionWaitingResponse, type Client, ClientOptions, CreateBranchData, CreateBranchError, CreateBranchErrors, CreateBranchResponse, CreateBranchResponses, CreateCliWizardSessionData, CreateCliWizardSessionError, CreateCliWizardSessionErrors, CreateCliWizardSessionRequest, CreateCliWizardSessionResponse, CreateCliWizardSessionResponse2, CreateCliWizardSessionResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateTagData, CreateTagError, CreateTagErrors, CreateTagResponse, CreateTagResponses, DEFAULT_BATCH_SIZE, DeleteCliWizardSessionData, DeleteCliWizardSessionError, DeleteCliWizardSessionErrors, DeleteCliWizardSessionResponse, DeleteCliWizardSessionResponse2, DeleteCliWizardSessionResponses, DownloadFileData, DownloadFileError, DownloadFileErrors, DownloadFileResponse, DownloadFileResponses, DownloadFilesData, DownloadFilesError, DownloadFilesErrors, DownloadFilesResponse, DownloadFilesResponses, EnqueueFileTranslationsData, EnqueueFileTranslationsError, EnqueueFileTranslationsErrors, EnqueueFileTranslationsResponse, EnqueueFileTranslationsResponses, ErrorResponse, FileFormat, GenerateProjectContextData, GenerateProjectContextError, GenerateProjectContextErrors, GenerateProjectContextResponse, GenerateProjectContextResponses, GetBranchInfoData, GetBranchInfoError, GetBranchInfoErrors, GetBranchInfoResponse, GetBranchInfoResponses, GetCliWizardSessionData, GetCliWizardSessionError, GetCliWizardSessionErrors, GetCliWizardSessionResponse, GetCliWizardSessionResponses, GetFileInfoData, GetFileInfoError, GetFileInfoErrors, GetFileInfoResponse, GetFileInfoResponses, GetOrphanedFilesData, GetOrphanedFilesError, GetOrphanedFilesErrors, GetOrphanedFilesResponse, GetOrphanedFilesResponses, GetProjectContextGenerationStatusData, GetProjectContextGenerationStatusError, GetProjectContextGenerationStatusErrors, GetProjectContextGenerationStatusResponse, GetProjectContextGenerationStatusResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetTranslationJobInfoData, GetTranslationJobInfoError, GetTranslationJobInfoErrors, GetTranslationJobInfoResponse, GetTranslationJobInfoResponses, GetTranslationStatusData, GetTranslationStatusError, GetTranslationStatusErrors, GetTranslationStatusResponse, GetTranslationStatusResponses, type JobResult, Options, ProcessFileMovesData, ProcessFileMovesError, ProcessFileMovesErrors, ProcessFileMovesResponse, ProcessFileMovesResponses, PublishFilesData, PublishFilesError, PublishFilesErrors, PublishFilesResponse, PublishFilesResponses, type RetryPolicy, RuntimeTranslationRequest, RuntimeTranslationResponse, ShouldGenerateProjectContextData, ShouldGenerateProjectContextError, ShouldGenerateProjectContextErrors, ShouldGenerateProjectContextResponse, ShouldGenerateProjectContextResponses, SubmitUserEditDiffsData, SubmitUserEditDiffsError, SubmitUserEditDiffsErrors, SubmitUserEditDiffsResponse, SubmitUserEditDiffsResponses, TranslateData, TranslateError, TranslateErrors, TranslateResponse, TranslateResponses, UpdateProjectInfoData, UpdateProjectInfoError, UpdateProjectInfoErrors, UpdateProjectInfoResponse, UpdateProjectInfoResponses, UploadAssetsData, UploadAssetsError, UploadAssetsErrors, UploadAssetsResponse, UploadAssetsResponses, UploadSourceFilesData, UploadSourceFilesError, UploadSourceFilesErrors, UploadSourceFilesResponse, UploadSourceFilesResponses, UploadTranslationsData, UploadTranslationsError, UploadTranslationsErrors, UploadTranslationsResponse, UploadTranslationsResponses, awaitJobs, createApiClient, createBranch, createCliWizardSession, createProject, createTag, decodeBase64, decodeFileContent, deleteCliWizardSession, downloadFile, downloadFiles, encodeBase64, encodeFileContent, enqueueFileTranslations, generateProjectContext, getBranchInfo, getCliWizardSession, getFileInfo, getOrphanedFiles, getProjectContextGenerationStatus, getProjectInfo, getTranslationJobInfo, getTranslationStatus, processBatches, processFileMoves, publishFiles, shouldGenerateProjectContext, submitUserEditDiffs, translate, updateProjectInfo, uploadAssets, uploadSourceFiles, uploadTranslations };
|
|
2374
|
+
export { API_VERSION, type ApiClientConfig, type ApiVersion, type AwaitJobsOptions, type AwaitJobsResult, type BatchOptions, Branch, CliWizardSessionReadyResponse, CliWizardSessionWaitingResponse, type Client, ClientOptions, CreateBranchData, CreateBranchError, CreateBranchErrors, CreateBranchResponse, CreateBranchResponses, CreateCliWizardSessionData, CreateCliWizardSessionError, CreateCliWizardSessionErrors, CreateCliWizardSessionRequest, CreateCliWizardSessionResponse, CreateCliWizardSessionResponse2, CreateCliWizardSessionResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateTagData, CreateTagError, CreateTagErrors, CreateTagResponse, CreateTagResponses, DEFAULT_BATCH_SIZE, DeleteCliWizardSessionData, DeleteCliWizardSessionError, DeleteCliWizardSessionErrors, DeleteCliWizardSessionResponse, DeleteCliWizardSessionResponse2, DeleteCliWizardSessionResponses, DownloadFileData, DownloadFileError, DownloadFileErrors, DownloadFileResponse, DownloadFileResponses, DownloadFilesData, DownloadFilesError, DownloadFilesErrors, DownloadFilesResponse, DownloadFilesResponses, EnqueueFileTranslationsData, EnqueueFileTranslationsError, EnqueueFileTranslationsErrors, EnqueueFileTranslationsResponse, EnqueueFileTranslationsResponses, ErrorResponse, FileFormat, GenerateProjectContextData, GenerateProjectContextError, GenerateProjectContextErrors, GenerateProjectContextResponse, GenerateProjectContextResponses, GetBranchInfoData, GetBranchInfoError, GetBranchInfoErrors, GetBranchInfoResponse, GetBranchInfoResponses, GetCliWizardSessionData, GetCliWizardSessionError, GetCliWizardSessionErrors, GetCliWizardSessionResponse, GetCliWizardSessionResponses, GetFileInfoData, GetFileInfoError, GetFileInfoErrors, GetFileInfoResponse, GetFileInfoResponses, GetOrphanedFilesData, GetOrphanedFilesError, GetOrphanedFilesErrors, GetOrphanedFilesResponse, GetOrphanedFilesResponses, GetProjectContextGenerationStatusData, GetProjectContextGenerationStatusError, GetProjectContextGenerationStatusErrors, GetProjectContextGenerationStatusResponse, GetProjectContextGenerationStatusResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetTranslationJobInfoData, GetTranslationJobInfoError, GetTranslationJobInfoErrors, GetTranslationJobInfoResponse, GetTranslationJobInfoResponses, GetTranslationStatusData, GetTranslationStatusError, GetTranslationStatusErrors, GetTranslationStatusResponse, GetTranslationStatusResponses, type JobResult, JsonObject, JsonValue, ModelProvider, Options, ProcessFileMovesData, ProcessFileMovesError, ProcessFileMovesErrors, ProcessFileMovesResponse, ProcessFileMovesResponses, PublishFilesData, PublishFilesError, PublishFilesErrors, PublishFilesResponse, PublishFilesResponses, type RetryPolicy, RuntimeTranslationRequest, RuntimeTranslationResponse, ShouldGenerateProjectContextData, ShouldGenerateProjectContextError, ShouldGenerateProjectContextErrors, ShouldGenerateProjectContextResponse, ShouldGenerateProjectContextResponses, SubmitUserEditDiffsData, SubmitUserEditDiffsError, SubmitUserEditDiffsErrors, SubmitUserEditDiffsResponse, SubmitUserEditDiffsResponses, TranslateData, TranslateError, TranslateErrors, TranslateResponse, TranslateResponses, UpdateProjectInfoData, UpdateProjectInfoError, UpdateProjectInfoErrors, UpdateProjectInfoResponse, UpdateProjectInfoResponses, UploadAssetsData, UploadAssetsError, UploadAssetsErrors, UploadAssetsResponse, UploadAssetsResponses, UploadSourceFilesData, UploadSourceFilesError, UploadSourceFilesErrors, UploadSourceFilesResponse, UploadSourceFilesResponses, UploadTranslationsData, UploadTranslationsError, UploadTranslationsErrors, UploadTranslationsResponse, UploadTranslationsResponses, awaitJobs, createApiClient, createBranch, createCliWizardSession, createProject, createTag, decodeBase64, decodeFileContent, deleteCliWizardSession, downloadFile, downloadFiles, encodeBase64, encodeFileContent, enqueueFileTranslations, generateProjectContext, getBranchInfo, getCliWizardSession, getFileInfo, getOrphanedFiles, getProjectContextGenerationStatus, getProjectInfo, getTranslationJobInfo, getTranslationStatus, processBatches, processFileMoves, publishFiles, shouldGenerateProjectContext, submitUserEditDiffs, translate, updateProjectInfo, uploadAssets, uploadSourceFiles, uploadTranslations };
|
|
2370
2375
|
//# sourceMappingURL=index.d.mts.map
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -74,6 +74,58 @@
|
|
|
74
74
|
"SVG"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
|
+
"ModelProvider": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"enum": ["ANTHROPIC", "OPENAI", "XAI", "GOOGLE"]
|
|
80
|
+
},
|
|
81
|
+
"JsonObject": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": {
|
|
84
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"JsonValue": {
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "number"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "boolean"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "null"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"oneOf": [
|
|
105
|
+
{
|
|
106
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "null"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": {
|
|
117
|
+
"oneOf": [
|
|
118
|
+
{
|
|
119
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "null"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
77
129
|
"Branch": {
|
|
78
130
|
"type": "object",
|
|
79
131
|
"properties": {
|
|
@@ -97,7 +149,9 @@
|
|
|
97
149
|
"type": "boolean",
|
|
98
150
|
"enum": [true]
|
|
99
151
|
},
|
|
100
|
-
"translation": {
|
|
152
|
+
"translation": {
|
|
153
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
154
|
+
},
|
|
101
155
|
"dataFormat": {
|
|
102
156
|
"type": "string",
|
|
103
157
|
"enum": ["JSX", "ICU", "I18NEXT", "STRING"]
|
|
@@ -158,7 +212,7 @@
|
|
|
158
212
|
},
|
|
159
213
|
"actionType": {
|
|
160
214
|
"type": "string",
|
|
161
|
-
"enum": ["fast"],
|
|
215
|
+
"enum": ["fast", "standard"],
|
|
162
216
|
"default": "fast"
|
|
163
217
|
},
|
|
164
218
|
"sourceCode": {
|
|
@@ -203,8 +257,7 @@
|
|
|
203
257
|
"type": "object",
|
|
204
258
|
"properties": {
|
|
205
259
|
"modelProvider": {
|
|
206
|
-
"
|
|
207
|
-
"enum": ["ANTHROPIC", "OPENAI", "XAI", "GOOGLE"]
|
|
260
|
+
"$ref": "#/components/schemas/ModelProvider"
|
|
208
261
|
}
|
|
209
262
|
}
|
|
210
263
|
}
|
|
@@ -2276,8 +2329,7 @@
|
|
|
2276
2329
|
"default": false
|
|
2277
2330
|
},
|
|
2278
2331
|
"modelProvider": {
|
|
2279
|
-
"
|
|
2280
|
-
"enum": ["ANTHROPIC", "OPENAI", "XAI", "GOOGLE"]
|
|
2332
|
+
"$ref": "#/components/schemas/ModelProvider"
|
|
2281
2333
|
},
|
|
2282
2334
|
"publish": {
|
|
2283
2335
|
"type": "boolean"
|
|
@@ -2332,8 +2384,7 @@
|
|
|
2332
2384
|
"$ref": "#/components/schemas/FileFormat"
|
|
2333
2385
|
},
|
|
2334
2386
|
"modelProvider": {
|
|
2335
|
-
"
|
|
2336
|
-
"enum": ["ANTHROPIC", "OPENAI", "XAI", "GOOGLE"]
|
|
2387
|
+
"$ref": "#/components/schemas/ModelProvider"
|
|
2337
2388
|
},
|
|
2338
2389
|
"glossaryRetranslate": {
|
|
2339
2390
|
"type": "boolean"
|
|
@@ -3158,8 +3209,7 @@
|
|
|
3158
3209
|
"type": "string"
|
|
3159
3210
|
},
|
|
3160
3211
|
"metadata": {
|
|
3161
|
-
"
|
|
3162
|
-
"additionalProperties": {}
|
|
3212
|
+
"$ref": "#/components/schemas/JsonObject"
|
|
3163
3213
|
},
|
|
3164
3214
|
"fileFormat": {
|
|
3165
3215
|
"$ref": "#/components/schemas/FileFormat"
|