@lokalise/projects-engine-contracts 2.6.0 → 2.7.0
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/dist/apiContracts/defaultReviewersContracts.d.ts +28 -26
- package/dist/apiContracts/languageContracts.d.ts +46 -43
- package/dist/apiContracts/projectsContracts.d.ts +115 -129
- package/dist/apiContracts/translationSettingsContracts.d.ts +38 -36
- package/dist/schemas/domainSchemas.d.ts +2 -15
- package/dist/schemas/domainSchemas.js +2 -6
- package/dist/schemas/domainSchemas.js.map +1 -1
- package/dist/schemas/projectSchemas.d.ts +3 -21
- package/package.json +2 -2
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
export declare const getDefaultReviewersContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
2
|
-
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3
|
-
projectId: import("zod").ZodGUID;
|
|
4
|
-
languageId: import("zod").ZodGUID;
|
|
5
|
-
contributorId: import("zod").ZodGUID;
|
|
1
|
+
export declare const getDefaultReviewersContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod/v4").ZodObject<{
|
|
2
|
+
data: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
3
|
+
projectId: import("zod/v4").ZodGUID;
|
|
4
|
+
languageId: import("zod/v4").ZodGUID;
|
|
5
|
+
contributorId: import("zod/v4").ZodGUID;
|
|
6
6
|
}, import("zod/v4/core").$strip>>;
|
|
7
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8
|
-
workspaceId: import("zod").ZodGUID;
|
|
9
|
-
projectId: import("zod").ZodGUID;
|
|
10
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
11
|
-
authorization: import("zod").ZodString;
|
|
7
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
8
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
9
|
+
projectId: import("zod/v4").ZodGUID;
|
|
10
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
11
|
+
authorization: import("zod/v4").ZodString;
|
|
12
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
12
13
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
13
|
-
export declare const putDefaultReviewersContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodArray<import("zod").ZodObject<{
|
|
14
|
-
languageId: import("zod").ZodGUID;
|
|
15
|
-
contributorId: import("zod").ZodGUID;
|
|
16
|
-
email: import("zod").ZodEmail;
|
|
17
|
-
fullname: import("zod").ZodString;
|
|
18
|
-
langIso: import("zod").ZodString;
|
|
19
|
-
}, import("zod/v4/core").$strip>>, import("zod").ZodObject<{
|
|
20
|
-
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
21
|
-
projectId: import("zod").ZodGUID;
|
|
22
|
-
languageId: import("zod").ZodGUID;
|
|
23
|
-
contributorId: import("zod").ZodGUID;
|
|
14
|
+
export declare const putDefaultReviewersContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
15
|
+
languageId: import("zod/v4").ZodGUID;
|
|
16
|
+
contributorId: import("zod/v4").ZodGUID;
|
|
17
|
+
email: import("zod/v4").ZodEmail;
|
|
18
|
+
fullname: import("zod/v4").ZodString;
|
|
19
|
+
langIso: import("zod/v4").ZodString;
|
|
20
|
+
}, import("zod/v4/core").$strip>>, import("zod/v4").ZodObject<{
|
|
21
|
+
data: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
22
|
+
projectId: import("zod/v4").ZodGUID;
|
|
23
|
+
languageId: import("zod/v4").ZodGUID;
|
|
24
|
+
contributorId: import("zod/v4").ZodGUID;
|
|
24
25
|
}, import("zod/v4/core").$strip>>;
|
|
25
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
26
|
-
workspaceId: import("zod").ZodGUID;
|
|
27
|
-
projectId: import("zod").ZodGUID;
|
|
28
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
29
|
-
authorization: import("zod").ZodString;
|
|
26
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
27
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
28
|
+
projectId: import("zod/v4").ZodGUID;
|
|
29
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
30
|
+
authorization: import("zod/v4").ZodString;
|
|
31
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
30
32
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
@@ -1,55 +1,58 @@
|
|
|
1
|
-
export declare const getProjectLanguagesContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
2
|
-
data: import("zod").ZodObject<{
|
|
3
|
-
languages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
5
|
-
languageId: import("zod").ZodNumber;
|
|
6
|
-
languageIso: import("zod").ZodString;
|
|
7
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
1
|
+
export declare const getProjectLanguagesContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod/v4").ZodObject<{
|
|
2
|
+
data: import("zod/v4").ZodObject<{
|
|
3
|
+
languages: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
4
|
+
projectLanguageId: import("zod/v4").ZodNumber;
|
|
5
|
+
languageId: import("zod/v4").ZodNumber;
|
|
6
|
+
languageIso: import("zod/v4").ZodString;
|
|
7
|
+
projectLanguageUuid: import("zod/v4").ZodGUID;
|
|
8
8
|
}, import("zod/v4/core").$strip>>;
|
|
9
9
|
}, import("zod/v4/core").$strip>;
|
|
10
|
-
meta: import("zod").ZodObject<{
|
|
11
|
-
count: import("zod").ZodNumber;
|
|
10
|
+
meta: import("zod/v4").ZodObject<{
|
|
11
|
+
count: import("zod/v4").ZodNumber;
|
|
12
12
|
}, import("zod/v4/core").$strip>;
|
|
13
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
14
|
-
workspaceId: import("zod").ZodGUID;
|
|
15
|
-
projectId: import("zod").ZodGUID;
|
|
16
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
17
|
-
authorization: import("zod").ZodString;
|
|
13
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
14
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
15
|
+
projectId: import("zod/v4").ZodGUID;
|
|
16
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
17
|
+
authorization: import("zod/v4").ZodString;
|
|
18
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
18
19
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
19
|
-
export declare const addProjectLanguagesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
20
|
-
languages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
21
|
-
iso: import("zod").ZodString;
|
|
20
|
+
export declare const addProjectLanguagesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod/v4").ZodObject<{
|
|
21
|
+
languages: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
22
|
+
iso: import("zod/v4").ZodString;
|
|
22
23
|
}, import("zod/v4/core").$strip>>;
|
|
23
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
24
|
-
data: import("zod").ZodObject<{
|
|
25
|
-
added: import("zod").ZodArray<import("zod").ZodObject<{
|
|
26
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
27
|
-
languageId: import("zod").ZodNumber;
|
|
28
|
-
languageIso: import("zod").ZodString;
|
|
29
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
24
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
25
|
+
data: import("zod/v4").ZodObject<{
|
|
26
|
+
added: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
27
|
+
projectLanguageId: import("zod/v4").ZodNumber;
|
|
28
|
+
languageId: import("zod/v4").ZodNumber;
|
|
29
|
+
languageIso: import("zod/v4").ZodString;
|
|
30
|
+
projectLanguageUuid: import("zod/v4").ZodGUID;
|
|
30
31
|
}, import("zod/v4/core").$strip>>;
|
|
31
32
|
}, import("zod/v4/core").$strip>;
|
|
32
|
-
meta: import("zod").ZodObject<{
|
|
33
|
-
count: import("zod").ZodNumber;
|
|
33
|
+
meta: import("zod/v4").ZodObject<{
|
|
34
|
+
count: import("zod/v4").ZodNumber;
|
|
34
35
|
}, import("zod/v4/core").$strip>;
|
|
35
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
36
|
-
workspaceId: import("zod").ZodGUID;
|
|
37
|
-
projectId: import("zod").ZodGUID;
|
|
38
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
39
|
-
authorization: import("zod").ZodString;
|
|
36
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
37
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
38
|
+
projectId: import("zod/v4").ZodGUID;
|
|
39
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
40
|
+
authorization: import("zod/v4").ZodString;
|
|
41
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
40
42
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
41
|
-
export declare const bulkUpdateProjectLanguagesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
42
|
-
languages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
43
|
-
iso: import("zod").ZodString;
|
|
44
|
-
baseLanguage: import("zod").ZodBoolean;
|
|
43
|
+
export declare const bulkUpdateProjectLanguagesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod/v4").ZodObject<{
|
|
44
|
+
languages: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
45
|
+
iso: import("zod/v4").ZodString;
|
|
46
|
+
baseLanguage: import("zod/v4").ZodBoolean;
|
|
45
47
|
}, import("zod/v4/core").$strip>>;
|
|
46
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
47
|
-
data: import("zod").ZodObject<{
|
|
48
|
-
result: import("zod").ZodBoolean;
|
|
48
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
49
|
+
data: import("zod/v4").ZodObject<{
|
|
50
|
+
result: import("zod/v4").ZodBoolean;
|
|
49
51
|
}, import("zod/v4/core").$strip>;
|
|
50
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
51
|
-
workspaceId: import("zod").ZodGUID;
|
|
52
|
-
projectId: import("zod").ZodGUID;
|
|
53
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
54
|
-
authorization: import("zod").ZodString;
|
|
52
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
53
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
54
|
+
projectId: import("zod/v4").ZodGUID;
|
|
55
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
56
|
+
authorization: import("zod/v4").ZodString;
|
|
57
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
55
58
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
@@ -1,181 +1,167 @@
|
|
|
1
|
-
export declare const getProjectContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
2
|
-
data: import("zod").ZodObject<{
|
|
3
|
-
projectId: import("zod").ZodString;
|
|
4
|
-
uuid: import("zod").ZodGUID;
|
|
5
|
-
name: import("zod").ZodString;
|
|
6
|
-
description: import("zod").ZodString;
|
|
7
|
-
baseLanguage: import("zod").ZodObject<{
|
|
8
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
9
|
-
languageId: import("zod").ZodNumber;
|
|
10
|
-
languageIso: import("zod").ZodString;
|
|
11
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
1
|
+
export declare const getProjectContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod/v4").ZodObject<{
|
|
2
|
+
data: import("zod/v4").ZodObject<{
|
|
3
|
+
projectId: import("zod/v4").ZodString;
|
|
4
|
+
uuid: import("zod/v4").ZodGUID;
|
|
5
|
+
name: import("zod/v4").ZodString;
|
|
6
|
+
description: import("zod/v4").ZodString;
|
|
7
|
+
baseLanguage: import("zod/v4").ZodObject<{
|
|
8
|
+
projectLanguageId: import("zod/v4").ZodNumber;
|
|
9
|
+
languageId: import("zod/v4").ZodNumber;
|
|
10
|
+
languageIso: import("zod/v4").ZodString;
|
|
11
|
+
projectLanguageUuid: import("zod/v4").ZodGUID;
|
|
12
12
|
}, import("zod/v4/core").$strip>;
|
|
13
|
-
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
14
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
15
|
-
languageId: import("zod").ZodNumber;
|
|
16
|
-
languageIso: import("zod").ZodString;
|
|
17
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
13
|
+
targetLanguages: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
14
|
+
projectLanguageId: import("zod/v4").ZodNumber;
|
|
15
|
+
languageId: import("zod/v4").ZodNumber;
|
|
16
|
+
languageIso: import("zod/v4").ZodString;
|
|
17
|
+
projectLanguageUuid: import("zod/v4").ZodGUID;
|
|
18
18
|
}, import("zod/v4/core").$strip>>;
|
|
19
|
-
translationSettings: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
20
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
19
|
+
translationSettings: import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodObject<{
|
|
20
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
21
21
|
readonly AI_ONLY: "AI_ONLY";
|
|
22
22
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
23
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
24
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
23
|
+
}>, import("zod/v4").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
24
|
+
reviewThreshold: import("zod/v4").ZodEnum<{
|
|
25
25
|
readonly FULL_REVIEW: "FULL_REVIEW";
|
|
26
26
|
readonly CRITICAL_MAJOR_MINOR: "CRITICAL_MAJOR_MINOR";
|
|
27
27
|
readonly CRITICAL_MAJOR: "CRITICAL_MAJOR";
|
|
28
28
|
readonly CRITICAL: "CRITICAL";
|
|
29
29
|
}>;
|
|
30
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
31
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
30
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
31
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
32
32
|
readonly AI_ONLY: "AI_ONLY";
|
|
33
33
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
34
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
35
|
-
reviewThreshold: import("zod").ZodNull;
|
|
34
|
+
}>, import("zod/v4").ZodLiteral<"AI_ONLY">>;
|
|
35
|
+
reviewThreshold: import("zod/v4").ZodNull;
|
|
36
36
|
}, import("zod/v4/core").$strip>]>;
|
|
37
|
-
contentSourceType: import("zod").ZodNullable<import("zod").
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
readonly strapi: "strapi";
|
|
41
|
-
readonly webflowNew: "webflow-new";
|
|
42
|
-
readonly FILE: "file";
|
|
43
|
-
}>>;
|
|
44
|
-
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
45
|
-
projectType: import("zod").ZodString;
|
|
37
|
+
contentSourceType: import("zod/v4").ZodNullable<import("zod/v4").ZodString>;
|
|
38
|
+
contentSourceName: import("zod/v4").ZodOptional<import("zod/v4").ZodNullable<import("zod/v4").ZodString>>;
|
|
39
|
+
projectType: import("zod/v4").ZodString;
|
|
46
40
|
}, import("zod/v4/core").$strip>;
|
|
47
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
48
|
-
workspaceId: import("zod").ZodGUID;
|
|
49
|
-
projectId: import("zod").ZodGUID;
|
|
50
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
51
|
-
authorization: import("zod").ZodString;
|
|
41
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
42
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
43
|
+
projectId: import("zod/v4").ZodGUID;
|
|
44
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
45
|
+
authorization: import("zod/v4").ZodString;
|
|
46
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
52
47
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
53
|
-
export declare const patchProjectContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
54
|
-
name: import("zod").ZodString;
|
|
55
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
57
|
-
data: import("zod").ZodObject<{
|
|
58
|
-
projectId: import("zod").ZodString;
|
|
59
|
-
uuid: import("zod").ZodGUID;
|
|
60
|
-
name: import("zod").ZodString;
|
|
61
|
-
description: import("zod").ZodString;
|
|
62
|
-
baseLanguage: import("zod").ZodObject<{
|
|
63
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
64
|
-
languageId: import("zod").ZodNumber;
|
|
65
|
-
languageIso: import("zod").ZodString;
|
|
66
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
48
|
+
export declare const patchProjectContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod/v4").ZodObject<{
|
|
49
|
+
name: import("zod/v4").ZodString;
|
|
50
|
+
description: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
51
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
52
|
+
data: import("zod/v4").ZodObject<{
|
|
53
|
+
projectId: import("zod/v4").ZodString;
|
|
54
|
+
uuid: import("zod/v4").ZodGUID;
|
|
55
|
+
name: import("zod/v4").ZodString;
|
|
56
|
+
description: import("zod/v4").ZodString;
|
|
57
|
+
baseLanguage: import("zod/v4").ZodObject<{
|
|
58
|
+
projectLanguageId: import("zod/v4").ZodNumber;
|
|
59
|
+
languageId: import("zod/v4").ZodNumber;
|
|
60
|
+
languageIso: import("zod/v4").ZodString;
|
|
61
|
+
projectLanguageUuid: import("zod/v4").ZodGUID;
|
|
67
62
|
}, import("zod/v4/core").$strip>;
|
|
68
|
-
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
69
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
70
|
-
languageId: import("zod").ZodNumber;
|
|
71
|
-
languageIso: import("zod").ZodString;
|
|
72
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
63
|
+
targetLanguages: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
64
|
+
projectLanguageId: import("zod/v4").ZodNumber;
|
|
65
|
+
languageId: import("zod/v4").ZodNumber;
|
|
66
|
+
languageIso: import("zod/v4").ZodString;
|
|
67
|
+
projectLanguageUuid: import("zod/v4").ZodGUID;
|
|
73
68
|
}, import("zod/v4/core").$strip>>;
|
|
74
|
-
translationSettings: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
75
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
69
|
+
translationSettings: import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodObject<{
|
|
70
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
76
71
|
readonly AI_ONLY: "AI_ONLY";
|
|
77
72
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
78
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
79
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
73
|
+
}>, import("zod/v4").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
74
|
+
reviewThreshold: import("zod/v4").ZodEnum<{
|
|
80
75
|
readonly FULL_REVIEW: "FULL_REVIEW";
|
|
81
76
|
readonly CRITICAL_MAJOR_MINOR: "CRITICAL_MAJOR_MINOR";
|
|
82
77
|
readonly CRITICAL_MAJOR: "CRITICAL_MAJOR";
|
|
83
78
|
readonly CRITICAL: "CRITICAL";
|
|
84
79
|
}>;
|
|
85
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
86
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
80
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
81
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
87
82
|
readonly AI_ONLY: "AI_ONLY";
|
|
88
83
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
89
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
90
|
-
reviewThreshold: import("zod").ZodNull;
|
|
84
|
+
}>, import("zod/v4").ZodLiteral<"AI_ONLY">>;
|
|
85
|
+
reviewThreshold: import("zod/v4").ZodNull;
|
|
91
86
|
}, import("zod/v4/core").$strip>]>;
|
|
92
|
-
contentSourceType: import("zod").ZodNullable<import("zod").
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
readonly strapi: "strapi";
|
|
96
|
-
readonly webflowNew: "webflow-new";
|
|
97
|
-
readonly FILE: "file";
|
|
98
|
-
}>>;
|
|
99
|
-
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
100
|
-
projectType: import("zod").ZodString;
|
|
87
|
+
contentSourceType: import("zod/v4").ZodNullable<import("zod/v4").ZodString>;
|
|
88
|
+
contentSourceName: import("zod/v4").ZodOptional<import("zod/v4").ZodNullable<import("zod/v4").ZodString>>;
|
|
89
|
+
projectType: import("zod/v4").ZodString;
|
|
101
90
|
}, import("zod/v4/core").$strip>;
|
|
102
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
103
|
-
workspaceId: import("zod").ZodGUID;
|
|
104
|
-
projectId: import("zod").ZodGUID;
|
|
105
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
106
|
-
authorization: import("zod").ZodString;
|
|
91
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
92
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
93
|
+
projectId: import("zod/v4").ZodGUID;
|
|
94
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
95
|
+
authorization: import("zod/v4").ZodString;
|
|
96
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
107
97
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
108
98
|
/**
|
|
109
99
|
* Public API router definition for getting the list of projects for a given workspace
|
|
110
100
|
*/
|
|
111
|
-
export declare const getProjectsListContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
112
|
-
data: import("zod").ZodObject<{
|
|
113
|
-
projects: import("zod").ZodArray<import("zod").ZodObject<{
|
|
114
|
-
projectId: import("zod").ZodString;
|
|
115
|
-
uuid: import("zod").ZodGUID;
|
|
116
|
-
name: import("zod").ZodString;
|
|
117
|
-
description: import("zod").ZodString;
|
|
118
|
-
baseLanguage: import("zod").ZodObject<{
|
|
119
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
120
|
-
languageId: import("zod").ZodNumber;
|
|
121
|
-
languageIso: import("zod").ZodString;
|
|
122
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
101
|
+
export declare const getProjectsListContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod/v4").ZodObject<{
|
|
102
|
+
data: import("zod/v4").ZodObject<{
|
|
103
|
+
projects: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
104
|
+
projectId: import("zod/v4").ZodString;
|
|
105
|
+
uuid: import("zod/v4").ZodGUID;
|
|
106
|
+
name: import("zod/v4").ZodString;
|
|
107
|
+
description: import("zod/v4").ZodString;
|
|
108
|
+
baseLanguage: import("zod/v4").ZodObject<{
|
|
109
|
+
projectLanguageId: import("zod/v4").ZodNumber;
|
|
110
|
+
languageId: import("zod/v4").ZodNumber;
|
|
111
|
+
languageIso: import("zod/v4").ZodString;
|
|
112
|
+
projectLanguageUuid: import("zod/v4").ZodGUID;
|
|
123
113
|
}, import("zod/v4/core").$strip>;
|
|
124
|
-
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
125
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
126
|
-
languageId: import("zod").ZodNumber;
|
|
127
|
-
languageIso: import("zod").ZodString;
|
|
128
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
114
|
+
targetLanguages: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
115
|
+
projectLanguageId: import("zod/v4").ZodNumber;
|
|
116
|
+
languageId: import("zod/v4").ZodNumber;
|
|
117
|
+
languageIso: import("zod/v4").ZodString;
|
|
118
|
+
projectLanguageUuid: import("zod/v4").ZodGUID;
|
|
129
119
|
}, import("zod/v4/core").$strip>>;
|
|
130
|
-
translationSettings: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
131
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
120
|
+
translationSettings: import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodObject<{
|
|
121
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
132
122
|
readonly AI_ONLY: "AI_ONLY";
|
|
133
123
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
134
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
135
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
124
|
+
}>, import("zod/v4").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
125
|
+
reviewThreshold: import("zod/v4").ZodEnum<{
|
|
136
126
|
readonly FULL_REVIEW: "FULL_REVIEW";
|
|
137
127
|
readonly CRITICAL_MAJOR_MINOR: "CRITICAL_MAJOR_MINOR";
|
|
138
128
|
readonly CRITICAL_MAJOR: "CRITICAL_MAJOR";
|
|
139
129
|
readonly CRITICAL: "CRITICAL";
|
|
140
130
|
}>;
|
|
141
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
142
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
131
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
132
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
143
133
|
readonly AI_ONLY: "AI_ONLY";
|
|
144
134
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
145
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
146
|
-
reviewThreshold: import("zod").ZodNull;
|
|
135
|
+
}>, import("zod/v4").ZodLiteral<"AI_ONLY">>;
|
|
136
|
+
reviewThreshold: import("zod/v4").ZodNull;
|
|
147
137
|
}, import("zod/v4/core").$strip>]>;
|
|
148
|
-
contentSourceType: import("zod").ZodNullable<import("zod").
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
readonly strapi: "strapi";
|
|
152
|
-
readonly webflowNew: "webflow-new";
|
|
153
|
-
readonly FILE: "file";
|
|
154
|
-
}>>;
|
|
155
|
-
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
156
|
-
projectType: import("zod").ZodString;
|
|
138
|
+
contentSourceType: import("zod/v4").ZodNullable<import("zod/v4").ZodString>;
|
|
139
|
+
contentSourceName: import("zod/v4").ZodOptional<import("zod/v4").ZodNullable<import("zod/v4").ZodString>>;
|
|
140
|
+
projectType: import("zod/v4").ZodString;
|
|
157
141
|
}, import("zod/v4/core").$strip>>;
|
|
158
142
|
}, import("zod/v4/core").$strip>;
|
|
159
|
-
meta: import("zod").ZodObject<{
|
|
160
|
-
count: import("zod").ZodNumber;
|
|
143
|
+
meta: import("zod/v4").ZodObject<{
|
|
144
|
+
count: import("zod/v4").ZodNumber;
|
|
161
145
|
}, import("zod/v4/core").$strip>;
|
|
162
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
163
|
-
workspaceId: import("zod").ZodGUID;
|
|
164
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
165
|
-
authorization: import("zod").ZodString;
|
|
146
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
147
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
148
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
149
|
+
authorization: import("zod/v4").ZodString;
|
|
150
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
166
151
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
167
152
|
/**
|
|
168
153
|
* Public API router definition for deleting a project within a workspace
|
|
169
154
|
*/
|
|
170
|
-
export declare const deleteProjectContract: import("@lokalise/api-contracts").DeleteRouteDefinition<import("zod").ZodObject<{
|
|
171
|
-
data: import("zod").ZodObject<{
|
|
172
|
-
projectId: import("zod").ZodString;
|
|
173
|
-
projectUuid: import("zod").ZodGUID;
|
|
174
|
-
projectDeleted: import("zod").ZodBoolean;
|
|
155
|
+
export declare const deleteProjectContract: import("@lokalise/api-contracts").DeleteRouteDefinition<import("zod/v4").ZodObject<{
|
|
156
|
+
data: import("zod/v4").ZodObject<{
|
|
157
|
+
projectId: import("zod/v4").ZodString;
|
|
158
|
+
projectUuid: import("zod/v4").ZodGUID;
|
|
159
|
+
projectDeleted: import("zod/v4").ZodBoolean;
|
|
175
160
|
}, import("zod/v4/core").$strip>;
|
|
176
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
177
|
-
workspaceId: import("zod").ZodGUID;
|
|
178
|
-
projectId: import("zod").ZodGUID;
|
|
179
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
180
|
-
authorization: import("zod").ZodString;
|
|
161
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
162
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
163
|
+
projectId: import("zod/v4").ZodGUID;
|
|
164
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
165
|
+
authorization: import("zod/v4").ZodString;
|
|
166
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
181
167
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
export declare const getTranslationSettingsContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
2
|
-
data: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
3
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
1
|
+
export declare const getTranslationSettingsContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod/v4").ZodObject<{
|
|
2
|
+
data: import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodObject<{
|
|
3
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
4
4
|
readonly AI_ONLY: "AI_ONLY";
|
|
5
5
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
6
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
7
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
6
|
+
}>, import("zod/v4").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
7
|
+
reviewThreshold: import("zod/v4").ZodEnum<{
|
|
8
8
|
readonly FULL_REVIEW: "FULL_REVIEW";
|
|
9
9
|
readonly CRITICAL_MAJOR_MINOR: "CRITICAL_MAJOR_MINOR";
|
|
10
10
|
readonly CRITICAL_MAJOR: "CRITICAL_MAJOR";
|
|
11
11
|
readonly CRITICAL: "CRITICAL";
|
|
12
12
|
}>;
|
|
13
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
14
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
13
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
14
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
15
15
|
readonly AI_ONLY: "AI_ONLY";
|
|
16
16
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
17
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
18
|
-
reviewThreshold: import("zod").ZodNull;
|
|
17
|
+
}>, import("zod/v4").ZodLiteral<"AI_ONLY">>;
|
|
18
|
+
reviewThreshold: import("zod/v4").ZodNull;
|
|
19
19
|
}, import("zod/v4/core").$strip>]>;
|
|
20
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
|
-
workspaceId: import("zod").ZodGUID;
|
|
22
|
-
projectId: import("zod").ZodGUID;
|
|
23
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
24
|
-
authorization: import("zod").ZodString;
|
|
20
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
21
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
22
|
+
projectId: import("zod/v4").ZodGUID;
|
|
23
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
24
|
+
authorization: import("zod/v4").ZodString;
|
|
25
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
25
26
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
26
|
-
export declare const putTranslationSettingsContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
27
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
27
|
+
export declare const putTranslationSettingsContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodObject<{
|
|
28
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
28
29
|
readonly AI_ONLY: "AI_ONLY";
|
|
29
30
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
30
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
31
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
31
|
+
}>, import("zod/v4").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
32
|
+
reviewThreshold: import("zod/v4").ZodEnum<{
|
|
32
33
|
readonly FULL_REVIEW: "FULL_REVIEW";
|
|
33
34
|
readonly CRITICAL_MAJOR_MINOR: "CRITICAL_MAJOR_MINOR";
|
|
34
35
|
readonly CRITICAL_MAJOR: "CRITICAL_MAJOR";
|
|
35
36
|
readonly CRITICAL: "CRITICAL";
|
|
36
37
|
}>;
|
|
37
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
38
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
38
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
39
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
39
40
|
readonly AI_ONLY: "AI_ONLY";
|
|
40
41
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
41
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
42
|
-
reviewThreshold: import("zod").ZodNull;
|
|
43
|
-
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
44
|
-
data: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
45
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
42
|
+
}>, import("zod/v4").ZodLiteral<"AI_ONLY">>;
|
|
43
|
+
reviewThreshold: import("zod/v4").ZodNull;
|
|
44
|
+
}, import("zod/v4/core").$strip>]>, import("zod/v4").ZodObject<{
|
|
45
|
+
data: import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodObject<{
|
|
46
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
46
47
|
readonly AI_ONLY: "AI_ONLY";
|
|
47
48
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
48
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
49
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
49
|
+
}>, import("zod/v4").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
50
|
+
reviewThreshold: import("zod/v4").ZodEnum<{
|
|
50
51
|
readonly FULL_REVIEW: "FULL_REVIEW";
|
|
51
52
|
readonly CRITICAL_MAJOR_MINOR: "CRITICAL_MAJOR_MINOR";
|
|
52
53
|
readonly CRITICAL_MAJOR: "CRITICAL_MAJOR";
|
|
53
54
|
readonly CRITICAL: "CRITICAL";
|
|
54
55
|
}>;
|
|
55
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
56
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
56
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
57
|
+
workflowType: import("zod/v4").ZodIntersection<import("zod/v4").ZodEnum<{
|
|
57
58
|
readonly AI_ONLY: "AI_ONLY";
|
|
58
59
|
readonly AI_HUMAN_REVIEW: "AI_HUMAN_REVIEW";
|
|
59
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
60
|
-
reviewThreshold: import("zod").ZodNull;
|
|
60
|
+
}>, import("zod/v4").ZodLiteral<"AI_ONLY">>;
|
|
61
|
+
reviewThreshold: import("zod/v4").ZodNull;
|
|
61
62
|
}, import("zod/v4/core").$strip>]>;
|
|
62
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
63
|
-
workspaceId: import("zod").ZodGUID;
|
|
64
|
-
projectId: import("zod").ZodGUID;
|
|
65
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
66
|
-
authorization: import("zod").ZodString;
|
|
63
|
+
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
64
|
+
workspaceId: import("zod/v4").ZodGUID;
|
|
65
|
+
projectId: import("zod/v4").ZodGUID;
|
|
66
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod/v4").ZodObject<{
|
|
67
|
+
authorization: import("zod/v4").ZodString;
|
|
68
|
+
'content-type': import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
67
69
|
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const AUTH_HEADERS: z.ZodObject<{
|
|
3
3
|
authorization: z.ZodString;
|
|
4
|
+
'content-type': z.ZodOptional<z.ZodString>;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
export type AuthHeaders = z.infer<typeof AUTH_HEADERS>;
|
|
6
|
-
export declare const ContentSourceEnum: {
|
|
7
|
-
readonly contentful: "contentful-native";
|
|
8
|
-
readonly googleDrive: "google-drive";
|
|
9
|
-
readonly strapi: "strapi";
|
|
10
|
-
readonly webflowNew: "webflow-new";
|
|
11
|
-
readonly FILE: "file";
|
|
12
|
-
};
|
|
13
|
-
export type ContentSourceType = (typeof ContentSourceEnum)[keyof typeof ContentSourceEnum];
|
|
14
7
|
export declare const LANGUAGE_SCHEMA: z.ZodObject<{
|
|
15
8
|
projectLanguageId: z.ZodNumber;
|
|
16
9
|
languageId: z.ZodNumber;
|
|
@@ -53,13 +46,7 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
|
|
|
53
46
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
54
47
|
reviewThreshold: z.ZodNull;
|
|
55
48
|
}, z.core.$strip>]>;
|
|
56
|
-
contentSourceType: z.ZodNullable<z.
|
|
57
|
-
readonly contentful: "contentful-native";
|
|
58
|
-
readonly googleDrive: "google-drive";
|
|
59
|
-
readonly strapi: "strapi";
|
|
60
|
-
readonly webflowNew: "webflow-new";
|
|
61
|
-
readonly FILE: "file";
|
|
62
|
-
}>>;
|
|
49
|
+
contentSourceType: z.ZodNullable<z.ZodString>;
|
|
63
50
|
contentSourceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
51
|
projectType: z.ZodString;
|
|
65
52
|
}, z.core.$strip>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { VantageProjectIntegrationEnum } from '@lokalise/content-type-app-engine-contracts';
|
|
2
1
|
import { z } from 'zod/v4';
|
|
3
2
|
import { REVIEW_THRESHOLD_SCHEMA, WORKFLOW_TYPE_SCHEMA, WorkflowTypeEnum, } from "./translationSettingsSchemas.js";
|
|
4
3
|
// =============================================================================
|
|
@@ -6,11 +5,8 @@ import { REVIEW_THRESHOLD_SCHEMA, WORKFLOW_TYPE_SCHEMA, WorkflowTypeEnum, } from
|
|
|
6
5
|
// =============================================================================
|
|
7
6
|
export const AUTH_HEADERS = z.object({
|
|
8
7
|
authorization: z.string().describe('Authorization header'),
|
|
8
|
+
'content-type': z.string().optional().describe('Content type'),
|
|
9
9
|
});
|
|
10
|
-
export const ContentSourceEnum = {
|
|
11
|
-
FILE: 'file',
|
|
12
|
-
...VantageProjectIntegrationEnum,
|
|
13
|
-
};
|
|
14
10
|
export const LANGUAGE_SCHEMA = z.object({
|
|
15
11
|
projectLanguageId: z.number(),
|
|
16
12
|
languageId: z.number(),
|
|
@@ -34,7 +30,7 @@ export const PROJECT_SCHEMA = z.object({
|
|
|
34
30
|
reviewThreshold: z.null(),
|
|
35
31
|
}),
|
|
36
32
|
]),
|
|
37
|
-
contentSourceType: z.
|
|
33
|
+
contentSourceType: z.string().nullable(),
|
|
38
34
|
contentSourceName: z.string().nullable().optional(),
|
|
39
35
|
projectType: z.string(),
|
|
40
36
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domainSchemas.js","sourceRoot":"","sources":["../../src/schemas/domainSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"domainSchemas.js","sourceRoot":"","sources":["../../src/schemas/domainSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,iCAAiC,CAAA;AAExC,gFAAgF;AAChF,0CAA0C;AAC1C,gFAAgF;AAEhF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC1D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;CAC/D,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,mBAAmB,EAAE,CAAC,CAAC,IAAI,EAAE;CAC9B,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,eAAe;IAC7B,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IACzC,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC;QAC3B,CAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;YACnF,eAAe,EAAE,uBAAuB;SACzC,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YAC3E,eAAe,EAAE,CAAC,CAAC,IAAI,EAAE;SAC1B,CAAC;KACH,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA"}
|
|
@@ -44,13 +44,7 @@ export declare const GET_PROJECTS_LIST_SUCCESS_RESPONSE_BODY: z.ZodObject<{
|
|
|
44
44
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
45
45
|
reviewThreshold: z.ZodNull;
|
|
46
46
|
}, z.core.$strip>]>;
|
|
47
|
-
contentSourceType: z.ZodNullable<z.
|
|
48
|
-
readonly contentful: "contentful-native";
|
|
49
|
-
readonly googleDrive: "google-drive";
|
|
50
|
-
readonly strapi: "strapi";
|
|
51
|
-
readonly webflowNew: "webflow-new";
|
|
52
|
-
readonly FILE: "file";
|
|
53
|
-
}>>;
|
|
47
|
+
contentSourceType: z.ZodNullable<z.ZodString>;
|
|
54
48
|
contentSourceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
49
|
projectType: z.ZodString;
|
|
56
50
|
}, z.core.$strip>>;
|
|
@@ -101,13 +95,7 @@ export declare const GET_PROJECT_SUCCESS_RESPONSE_BODY: z.ZodObject<{
|
|
|
101
95
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
102
96
|
reviewThreshold: z.ZodNull;
|
|
103
97
|
}, z.core.$strip>]>;
|
|
104
|
-
contentSourceType: z.ZodNullable<z.
|
|
105
|
-
readonly contentful: "contentful-native";
|
|
106
|
-
readonly googleDrive: "google-drive";
|
|
107
|
-
readonly strapi: "strapi";
|
|
108
|
-
readonly webflowNew: "webflow-new";
|
|
109
|
-
readonly FILE: "file";
|
|
110
|
-
}>>;
|
|
98
|
+
contentSourceType: z.ZodNullable<z.ZodString>;
|
|
111
99
|
contentSourceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
100
|
projectType: z.ZodString;
|
|
113
101
|
}, z.core.$strip>;
|
|
@@ -159,13 +147,7 @@ export declare const PATCH_PROJECT_SUCCESS_RESPONSE_BODY: z.ZodObject<{
|
|
|
159
147
|
}>, z.ZodLiteral<"AI_ONLY">>;
|
|
160
148
|
reviewThreshold: z.ZodNull;
|
|
161
149
|
}, z.core.$strip>]>;
|
|
162
|
-
contentSourceType: z.ZodNullable<z.
|
|
163
|
-
readonly contentful: "contentful-native";
|
|
164
|
-
readonly googleDrive: "google-drive";
|
|
165
|
-
readonly strapi: "strapi";
|
|
166
|
-
readonly webflowNew: "webflow-new";
|
|
167
|
-
readonly FILE: "file";
|
|
168
|
-
}>>;
|
|
150
|
+
contentSourceType: z.ZodNullable<z.ZodString>;
|
|
169
151
|
contentSourceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
170
152
|
projectType: z.ZodString;
|
|
171
153
|
}, z.core.$strip>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/projects-engine-contracts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "API contracts and shared schemas for the Projects Engine service",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@lokalise/api-contracts": "^6.9.0",
|
|
34
|
-
"@lokalise/content-type-app-engine-contracts": "^5.
|
|
34
|
+
"@lokalise/content-type-app-engine-contracts": "^5.6.0",
|
|
35
35
|
"@lokalise/translation-storage-api-schemas": "^9.4.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|