@lokalise/projects-engine-contracts 10.2.2 → 11.0.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/README.md +1 -1
- package/dist/apiContracts/contributorsContracts.d.ts +54 -37
- package/dist/apiContracts/contributorsContracts.js +5 -3
- package/dist/apiContracts/contributorsContracts.js.map +1 -1
- package/dist/apiContracts/defaultReviewersContracts.d.ts +93 -43
- package/dist/apiContracts/defaultReviewersContracts.js +14 -7
- package/dist/apiContracts/defaultReviewersContracts.js.map +1 -1
- package/dist/apiContracts/languageContracts.d.ts +107 -57
- package/dist/apiContracts/languageContracts.js +16 -7
- package/dist/apiContracts/languageContracts.js.map +1 -1
- package/dist/apiContracts/projectSettingsContracts.d.ts +54 -21
- package/dist/apiContracts/projectSettingsContracts.js +10 -5
- package/dist/apiContracts/projectSettingsContracts.js.map +1 -1
- package/dist/apiContracts/projectsContracts.d.ts +291 -303
- package/dist/apiContracts/projectsContracts.js +20 -19
- package/dist/apiContracts/projectsContracts.js.map +1 -1
- package/dist/apiContracts/translationSettingsContracts.d.ts +90 -57
- package/dist/apiContracts/translationSettingsContracts.js +10 -5
- package/dist/apiContracts/translationSettingsContracts.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,327 +1,315 @@
|
|
|
1
|
-
export declare const getProjectContract:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
18
|
-
}, import("zod/v4/core").$strip>>;
|
|
19
|
-
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
20
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
21
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
22
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
23
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
24
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
25
|
-
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
26
|
-
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
27
|
-
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
28
|
-
readonly CRITICAL: 'CRITICAL';
|
|
29
|
-
}>;
|
|
30
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
31
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
32
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
33
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
34
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
35
|
-
reviewThreshold: import("zod").ZodNull;
|
|
36
|
-
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
37
|
-
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
38
|
-
}, import("zod/v4/core").$strip>>;
|
|
39
|
-
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
40
|
-
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
41
|
-
projectType: import("zod").ZodString;
|
|
1
|
+
export declare const getProjectContract: Omit<{
|
|
2
|
+
readonly visibility: "public";
|
|
3
|
+
readonly method: "get";
|
|
4
|
+
readonly pathResolver: (params: {
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
projectId: string;
|
|
7
|
+
}) => string;
|
|
8
|
+
readonly summary: "Get project";
|
|
9
|
+
readonly description: "Get project by ID";
|
|
10
|
+
readonly requestHeaderSchema: import("zod").ZodObject<{
|
|
11
|
+
authorization: import("zod").ZodString;
|
|
12
|
+
'content-type': import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
13
|
}, import("zod/v4/core").$strip>;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}, import("zod/v4/core").$strip
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
14
|
+
readonly requestPathParamsSchema: import("zod").ZodObject<{
|
|
15
|
+
workspaceId: import("zod").ZodGUID;
|
|
16
|
+
projectId: import("zod").ZodGUID;
|
|
17
|
+
}, import("zod/v4/core").$strip>;
|
|
18
|
+
readonly responsesByStatusCode: {
|
|
19
|
+
200: import("zod").ZodObject<{
|
|
20
|
+
data: import("zod").ZodObject<{
|
|
21
|
+
projectId: import("zod").ZodString;
|
|
22
|
+
uuid: import("zod").ZodGUID;
|
|
23
|
+
name: import("zod").ZodString;
|
|
24
|
+
description: import("zod").ZodString;
|
|
25
|
+
baseLanguage: import("zod").ZodObject<{
|
|
26
|
+
projectLanguageId: import("zod").ZodNumber;
|
|
27
|
+
languageId: import("zod").ZodNumber;
|
|
28
|
+
languageIso: import("zod").ZodString;
|
|
29
|
+
projectLanguageUuid: import("zod").ZodGUID;
|
|
30
|
+
}, import("zod/v4/core").$strip>;
|
|
31
|
+
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
32
|
+
projectLanguageId: import("zod").ZodNumber;
|
|
33
|
+
languageId: import("zod").ZodNumber;
|
|
34
|
+
languageIso: import("zod").ZodString;
|
|
35
|
+
projectLanguageUuid: import("zod").ZodGUID;
|
|
36
|
+
}, import("zod/v4/core").$strip>>;
|
|
37
|
+
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
38
|
+
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
39
|
+
readonly AI_ONLY: 'AI_ONLY';
|
|
40
|
+
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
41
|
+
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
42
|
+
reviewThreshold: import("zod").ZodEnum<{
|
|
43
|
+
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
44
|
+
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
45
|
+
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
46
|
+
readonly CRITICAL: 'CRITICAL';
|
|
47
|
+
}>;
|
|
48
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
49
|
+
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
50
|
+
readonly AI_ONLY: 'AI_ONLY';
|
|
51
|
+
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
52
|
+
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
53
|
+
reviewThreshold: import("zod").ZodNull;
|
|
54
|
+
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
55
|
+
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
56
|
+
}, import("zod/v4/core").$strip>>;
|
|
57
|
+
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
58
|
+
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
59
|
+
projectType: import("zod").ZodString;
|
|
61
60
|
}, import("zod/v4/core").$strip>;
|
|
62
|
-
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
63
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
64
|
-
languageId: import("zod").ZodNumber;
|
|
65
|
-
languageIso: import("zod").ZodString;
|
|
66
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
67
|
-
}, import("zod/v4/core").$strip>>;
|
|
68
|
-
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
69
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
70
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
71
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
72
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
73
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
74
|
-
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
75
|
-
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
76
|
-
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
77
|
-
readonly CRITICAL: 'CRITICAL';
|
|
78
|
-
}>;
|
|
79
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
80
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
81
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
82
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
83
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
84
|
-
reviewThreshold: import("zod").ZodNull;
|
|
85
|
-
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
86
|
-
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
87
|
-
}, import("zod/v4/core").$strip>>;
|
|
88
|
-
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
89
|
-
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
90
|
-
projectType: import("zod").ZodString;
|
|
91
61
|
}, import("zod/v4/core").$strip>;
|
|
62
|
+
};
|
|
63
|
+
}, "visibility"> & {
|
|
64
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
65
|
+
};
|
|
66
|
+
export declare const patchProjectContract: Omit<{
|
|
67
|
+
readonly visibility: "internal";
|
|
68
|
+
readonly method: "patch";
|
|
69
|
+
readonly pathResolver: (params: {
|
|
70
|
+
workspaceId: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
}) => string;
|
|
73
|
+
readonly summary: "Update project";
|
|
74
|
+
readonly description: "Update project fields";
|
|
75
|
+
readonly requestHeaderSchema: import("zod").ZodObject<{
|
|
76
|
+
authorization: import("zod").ZodString;
|
|
77
|
+
'content-type': import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
}, import("zod/v4/core").$strip>;
|
|
79
|
+
readonly requestPathParamsSchema: import("zod").ZodObject<{
|
|
80
|
+
workspaceId: import("zod").ZodGUID;
|
|
81
|
+
projectId: import("zod").ZodGUID;
|
|
92
82
|
}, import("zod/v4/core").$strip>;
|
|
93
|
-
|
|
94
|
-
export declare const patchProjectContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
95
|
-
name: import("zod").ZodString;
|
|
96
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
98
|
-
data: import("zod").ZodObject<{
|
|
99
|
-
projectId: import("zod").ZodString;
|
|
100
|
-
uuid: import("zod").ZodGUID;
|
|
83
|
+
readonly requestBodySchema: import("zod").ZodObject<{
|
|
101
84
|
name: import("zod").ZodString;
|
|
102
|
-
description: import("zod").ZodString
|
|
103
|
-
baseLanguage: import("zod").ZodObject<{
|
|
104
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
105
|
-
languageId: import("zod").ZodNumber;
|
|
106
|
-
languageIso: import("zod").ZodString;
|
|
107
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
108
|
-
}, import("zod/v4/core").$strip>;
|
|
109
|
-
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
110
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
111
|
-
languageId: import("zod").ZodNumber;
|
|
112
|
-
languageIso: import("zod").ZodString;
|
|
113
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
114
|
-
}, import("zod/v4/core").$strip>>;
|
|
115
|
-
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
116
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
117
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
118
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
119
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
120
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
121
|
-
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
122
|
-
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
123
|
-
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
124
|
-
readonly CRITICAL: 'CRITICAL';
|
|
125
|
-
}>;
|
|
126
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
127
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
128
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
129
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
130
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
131
|
-
reviewThreshold: import("zod").ZodNull;
|
|
132
|
-
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
133
|
-
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
134
|
-
}, import("zod/v4/core").$strip>>;
|
|
135
|
-
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
136
|
-
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
137
|
-
projectType: import("zod").ZodString;
|
|
85
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
138
86
|
}, import("zod/v4/core").$strip>;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
87
|
+
readonly responsesByStatusCode: {
|
|
88
|
+
200: import("zod").ZodObject<{
|
|
89
|
+
data: import("zod").ZodObject<{
|
|
90
|
+
projectId: import("zod").ZodString;
|
|
91
|
+
uuid: import("zod").ZodGUID;
|
|
92
|
+
name: import("zod").ZodString;
|
|
93
|
+
description: import("zod").ZodString;
|
|
94
|
+
baseLanguage: import("zod").ZodObject<{
|
|
95
|
+
projectLanguageId: import("zod").ZodNumber;
|
|
96
|
+
languageId: import("zod").ZodNumber;
|
|
97
|
+
languageIso: import("zod").ZodString;
|
|
98
|
+
projectLanguageUuid: import("zod").ZodGUID;
|
|
99
|
+
}, import("zod/v4/core").$strip>;
|
|
100
|
+
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
101
|
+
projectLanguageId: import("zod").ZodNumber;
|
|
102
|
+
languageId: import("zod").ZodNumber;
|
|
103
|
+
languageIso: import("zod").ZodString;
|
|
104
|
+
projectLanguageUuid: import("zod").ZodGUID;
|
|
105
|
+
}, import("zod/v4/core").$strip>>;
|
|
106
|
+
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
107
|
+
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
108
|
+
readonly AI_ONLY: 'AI_ONLY';
|
|
109
|
+
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
110
|
+
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
111
|
+
reviewThreshold: import("zod").ZodEnum<{
|
|
112
|
+
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
113
|
+
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
114
|
+
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
115
|
+
readonly CRITICAL: 'CRITICAL';
|
|
116
|
+
}>;
|
|
117
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
118
|
+
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
119
|
+
readonly AI_ONLY: 'AI_ONLY';
|
|
120
|
+
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
121
|
+
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
122
|
+
reviewThreshold: import("zod").ZodNull;
|
|
123
|
+
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
124
|
+
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
125
|
+
}, import("zod/v4/core").$strip>>;
|
|
126
|
+
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
127
|
+
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
128
|
+
projectType: import("zod").ZodString;
|
|
129
|
+
}, import("zod/v4/core").$strip>;
|
|
130
|
+
}, import("zod/v4/core").$strip>;
|
|
131
|
+
};
|
|
132
|
+
}, "visibility"> & {
|
|
133
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
134
|
+
};
|
|
146
135
|
/**
|
|
147
136
|
* Public API router definition for reading the projects collection of a workspace.
|
|
148
137
|
*
|
|
149
138
|
* The path carries no verb, so this and `GET .../projects/{projectId}` read as a
|
|
150
139
|
* collection/member pair, and the response is cursor-paginated with the cursor at `meta.cursor`.
|
|
151
140
|
*/
|
|
152
|
-
export declare const getProjectsContract:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}, import("zod/v4/core").$strip>;
|
|
164
|
-
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
165
|
-
projectLanguageId: import("zod").ZodNumber;
|
|
166
|
-
languageId: import("zod").ZodNumber;
|
|
167
|
-
languageIso: import("zod").ZodString;
|
|
168
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
169
|
-
}, import("zod/v4/core").$strip>>;
|
|
170
|
-
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
171
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
172
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
173
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
174
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
175
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
176
|
-
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
177
|
-
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
178
|
-
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
179
|
-
readonly CRITICAL: 'CRITICAL';
|
|
180
|
-
}>;
|
|
181
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
182
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
183
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
184
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
185
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
186
|
-
reviewThreshold: import("zod").ZodNull;
|
|
187
|
-
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
188
|
-
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
189
|
-
}, import("zod/v4/core").$strip>>;
|
|
190
|
-
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
191
|
-
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
192
|
-
projectType: import("zod").ZodString;
|
|
193
|
-
}, import("zod/v4/core").$strip>>;
|
|
194
|
-
meta: import("zod").ZodObject<{
|
|
195
|
-
count: import("zod").ZodNumber;
|
|
196
|
-
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
197
|
-
hasMore: import("zod").ZodBoolean;
|
|
141
|
+
export declare const getProjectsContract: Omit<{
|
|
142
|
+
readonly visibility: "public";
|
|
143
|
+
readonly method: "get";
|
|
144
|
+
readonly pathResolver: (params: {
|
|
145
|
+
workspaceId: string;
|
|
146
|
+
}) => string;
|
|
147
|
+
readonly summary: "List projects";
|
|
148
|
+
readonly description: "Get projects";
|
|
149
|
+
readonly requestHeaderSchema: import("zod").ZodObject<{
|
|
150
|
+
authorization: import("zod").ZodString;
|
|
151
|
+
'content-type': import("zod").ZodOptional<import("zod").ZodString>;
|
|
198
152
|
}, import("zod/v4/core").$strip>;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}, import("zod/v4/core").$strip
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
153
|
+
readonly requestPathParamsSchema: import("zod").ZodObject<{
|
|
154
|
+
workspaceId: import("zod").ZodGUID;
|
|
155
|
+
}, import("zod/v4/core").$strip>;
|
|
156
|
+
readonly requestQuerySchema: import("zod").ZodObject<{
|
|
157
|
+
limit: import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
158
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
159
|
+
}, import("zod/v4/core").$strip>;
|
|
160
|
+
readonly responsesByStatusCode: {
|
|
161
|
+
200: import("zod").ZodObject<{
|
|
162
|
+
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
163
|
+
projectId: import("zod").ZodString;
|
|
164
|
+
uuid: import("zod").ZodGUID;
|
|
165
|
+
name: import("zod").ZodString;
|
|
166
|
+
description: import("zod").ZodString;
|
|
167
|
+
baseLanguage: import("zod").ZodObject<{
|
|
168
|
+
projectLanguageId: import("zod").ZodNumber;
|
|
169
|
+
languageId: import("zod").ZodNumber;
|
|
170
|
+
languageIso: import("zod").ZodString;
|
|
171
|
+
projectLanguageUuid: import("zod").ZodGUID;
|
|
172
|
+
}, import("zod/v4/core").$strip>;
|
|
173
|
+
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
174
|
+
projectLanguageId: import("zod").ZodNumber;
|
|
175
|
+
languageId: import("zod").ZodNumber;
|
|
176
|
+
languageIso: import("zod").ZodString;
|
|
177
|
+
projectLanguageUuid: import("zod").ZodGUID;
|
|
178
|
+
}, import("zod/v4/core").$strip>>;
|
|
179
|
+
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
180
|
+
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
181
|
+
readonly AI_ONLY: 'AI_ONLY';
|
|
182
|
+
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
183
|
+
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
184
|
+
reviewThreshold: import("zod").ZodEnum<{
|
|
185
|
+
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
186
|
+
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
187
|
+
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
188
|
+
readonly CRITICAL: 'CRITICAL';
|
|
189
|
+
}>;
|
|
190
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
191
|
+
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
192
|
+
readonly AI_ONLY: 'AI_ONLY';
|
|
193
|
+
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
194
|
+
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
195
|
+
reviewThreshold: import("zod").ZodNull;
|
|
196
|
+
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
197
|
+
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
198
|
+
}, import("zod/v4/core").$strip>>;
|
|
199
|
+
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
200
|
+
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
201
|
+
projectType: import("zod").ZodString;
|
|
245
202
|
}, import("zod/v4/core").$strip>>;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
count: import("zod").ZodNumber;
|
|
252
|
-
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
|
-
hasMore: import("zod").ZodBoolean;
|
|
203
|
+
meta: import("zod").ZodObject<{
|
|
204
|
+
count: import("zod").ZodNumber;
|
|
205
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
206
|
+
hasMore: import("zod").ZodBoolean;
|
|
207
|
+
}, import("zod/v4/core").$strip>;
|
|
254
208
|
}, import("zod/v4/core").$strip>;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
209
|
+
};
|
|
210
|
+
}, "visibility"> & {
|
|
211
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
212
|
+
};
|
|
257
213
|
/**
|
|
258
214
|
* Batch read of specific projects by ID, as a POST so the ID list travels in the body.
|
|
259
215
|
* A separate contract rather than a filter on `GET .../projects` because the collection
|
|
260
216
|
* read is cursor-paginated and cached per user/page, and neither fits an explicit ID list.
|
|
261
217
|
*/
|
|
262
|
-
export declare const postRetrieveBatchProjectsContract:
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
218
|
+
export declare const postRetrieveBatchProjectsContract: Omit<{
|
|
219
|
+
readonly visibility: "internal";
|
|
220
|
+
readonly method: "post";
|
|
221
|
+
readonly pathResolver: (params: {
|
|
222
|
+
workspaceId: string;
|
|
223
|
+
}) => string;
|
|
224
|
+
readonly summary: "Retrieve projects by IDs";
|
|
225
|
+
readonly description: "Batch read of specific projects by UUID";
|
|
226
|
+
readonly requestHeaderSchema: import("zod").ZodObject<{
|
|
227
|
+
authorization: import("zod").ZodString;
|
|
228
|
+
'content-type': import("zod").ZodOptional<import("zod").ZodString>;
|
|
229
|
+
}, import("zod/v4/core").$strip>;
|
|
230
|
+
readonly requestPathParamsSchema: import("zod").ZodObject<{
|
|
231
|
+
workspaceId: import("zod").ZodGUID;
|
|
232
|
+
}, import("zod/v4/core").$strip>;
|
|
233
|
+
readonly requestBodySchema: import("zod").ZodObject<{
|
|
234
|
+
projectIds: import("zod").ZodPreprocess<import("zod").ZodArray<import("zod").ZodGUID>, unknown>;
|
|
235
|
+
}, import("zod/v4/core").$strip>;
|
|
236
|
+
readonly responsesByStatusCode: {
|
|
237
|
+
200: import("zod").ZodObject<{
|
|
238
|
+
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
239
|
+
projectId: import("zod").ZodString;
|
|
240
|
+
uuid: import("zod").ZodGUID;
|
|
241
|
+
name: import("zod").ZodString;
|
|
242
|
+
description: import("zod").ZodString;
|
|
243
|
+
baseLanguage: import("zod").ZodObject<{
|
|
244
|
+
projectLanguageId: import("zod").ZodNumber;
|
|
245
|
+
languageId: import("zod").ZodNumber;
|
|
246
|
+
languageIso: import("zod").ZodString;
|
|
247
|
+
projectLanguageUuid: import("zod").ZodGUID;
|
|
248
|
+
}, import("zod/v4/core").$strip>;
|
|
249
|
+
targetLanguages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
250
|
+
projectLanguageId: import("zod").ZodNumber;
|
|
251
|
+
languageId: import("zod").ZodNumber;
|
|
252
|
+
languageIso: import("zod").ZodString;
|
|
253
|
+
projectLanguageUuid: import("zod").ZodGUID;
|
|
254
|
+
}, import("zod/v4/core").$strip>>;
|
|
255
|
+
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
256
|
+
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
257
|
+
readonly AI_ONLY: 'AI_ONLY';
|
|
258
|
+
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
259
|
+
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
260
|
+
reviewThreshold: import("zod").ZodEnum<{
|
|
261
|
+
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
262
|
+
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
263
|
+
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
264
|
+
readonly CRITICAL: 'CRITICAL';
|
|
265
|
+
}>;
|
|
266
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
267
|
+
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
268
|
+
readonly AI_ONLY: 'AI_ONLY';
|
|
269
|
+
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
270
|
+
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
271
|
+
reviewThreshold: import("zod").ZodNull;
|
|
272
|
+
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
273
|
+
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
274
|
+
}, import("zod/v4/core").$strip>>;
|
|
275
|
+
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
276
|
+
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
277
|
+
projectType: import("zod").ZodString;
|
|
278
|
+
}, import("zod/v4/core").$strip>>;
|
|
275
279
|
}, import("zod/v4/core").$strip>;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
projectLanguageUuid: import("zod").ZodGUID;
|
|
281
|
-
}, import("zod/v4/core").$strip>>;
|
|
282
|
-
translationSettings: import("zod").ZodIntersection<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
283
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
284
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
285
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
286
|
-
}>, import("zod").ZodLiteral<"AI_HUMAN_REVIEW">>;
|
|
287
|
-
reviewThreshold: import("zod").ZodEnum<{
|
|
288
|
-
readonly FULL_REVIEW: 'FULL_REVIEW';
|
|
289
|
-
readonly CRITICAL_MAJOR_MINOR: 'CRITICAL_MAJOR_MINOR';
|
|
290
|
-
readonly CRITICAL_MAJOR: 'CRITICAL_MAJOR';
|
|
291
|
-
readonly CRITICAL: 'CRITICAL';
|
|
292
|
-
}>;
|
|
293
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
294
|
-
workflowType: import("zod").ZodIntersection<import("zod").ZodEnum<{
|
|
295
|
-
readonly AI_ONLY: 'AI_ONLY';
|
|
296
|
-
readonly AI_HUMAN_REVIEW: 'AI_HUMAN_REVIEW';
|
|
297
|
-
}>, import("zod").ZodLiteral<"AI_ONLY">>;
|
|
298
|
-
reviewThreshold: import("zod").ZodNull;
|
|
299
|
-
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
300
|
-
reviewTurnaroundDays: import("zod").ZodNumber;
|
|
301
|
-
}, import("zod/v4/core").$strip>>;
|
|
302
|
-
contentSourceType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
303
|
-
contentSourceName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
304
|
-
projectType: import("zod").ZodString;
|
|
305
|
-
}, import("zod/v4/core").$strip>>;
|
|
306
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
307
|
-
workspaceId: import("zod").ZodGUID;
|
|
308
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
309
|
-
authorization: import("zod").ZodString;
|
|
310
|
-
'content-type': import("zod").ZodOptional<import("zod").ZodString>;
|
|
311
|
-
}, import("zod/v4/core").$strip>, undefined, false, false, undefined>;
|
|
280
|
+
};
|
|
281
|
+
}, "visibility"> & {
|
|
282
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
283
|
+
};
|
|
312
284
|
/**
|
|
313
|
-
*
|
|
285
|
+
* Router definition for deleting a project within a workspace
|
|
314
286
|
*/
|
|
315
|
-
export declare const deleteProjectContract:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
287
|
+
export declare const deleteProjectContract: Omit<{
|
|
288
|
+
readonly visibility: "internal";
|
|
289
|
+
readonly method: "delete";
|
|
290
|
+
readonly pathResolver: (params: {
|
|
291
|
+
workspaceId: string;
|
|
292
|
+
projectId: string;
|
|
293
|
+
}) => string;
|
|
294
|
+
readonly summary: "Delete project";
|
|
295
|
+
readonly description: "Delete a project";
|
|
296
|
+
readonly requestHeaderSchema: import("zod").ZodObject<{
|
|
297
|
+
authorization: import("zod").ZodString;
|
|
298
|
+
'content-type': import("zod").ZodOptional<import("zod").ZodString>;
|
|
320
299
|
}, import("zod/v4/core").$strip>;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}, import("zod/v4/core").$strip
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
300
|
+
readonly requestPathParamsSchema: import("zod").ZodObject<{
|
|
301
|
+
workspaceId: import("zod").ZodGUID;
|
|
302
|
+
projectId: import("zod").ZodGUID;
|
|
303
|
+
}, import("zod/v4/core").$strip>;
|
|
304
|
+
readonly responsesByStatusCode: {
|
|
305
|
+
200: import("zod").ZodObject<{
|
|
306
|
+
data: import("zod").ZodObject<{
|
|
307
|
+
projectId: import("zod").ZodString;
|
|
308
|
+
projectUuid: import("zod").ZodGUID;
|
|
309
|
+
projectDeleted: import("zod").ZodBoolean;
|
|
310
|
+
}, import("zod/v4/core").$strip>;
|
|
311
|
+
}, import("zod/v4/core").$strip>;
|
|
312
|
+
};
|
|
313
|
+
}, "visibility"> & {
|
|
314
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
315
|
+
};
|