@lokalise/workspaces-api-schemas 5.7.1 → 5.9.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/routeContracts/projectsContracts.d.ts +7 -0
- package/dist/schemas/expert/projects.d.ts +5 -0
- package/dist/schemas/permission/api.d.ts +2 -5
- package/dist/schemas/permission/api.js +2 -5
- package/dist/schemas/permission/api.js.map +1 -1
- package/dist/types/projectType.d.ts +2 -1
- package/dist/types/projectType.js +1 -0
- package/dist/types/projectType.js.map +1 -1
- package/dist/types/projectTypes.d.ts +6 -0
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ export declare const createProject: import("@lokalise/api-contracts").PayloadRou
|
|
|
17
17
|
marketing: "marketing";
|
|
18
18
|
marketing_integrations: "marketing_integrations";
|
|
19
19
|
marketing_portal: "marketing_portal";
|
|
20
|
+
mcp: "mcp";
|
|
20
21
|
}>;
|
|
21
22
|
is_segmentation_enabled: import("zod/v4").ZodOptional<import("zod/v4").ZodBoolean>;
|
|
22
23
|
}, import("zod/v4/core").$strip>, import("zod/v4").ZodObject<{
|
|
@@ -29,6 +30,7 @@ export declare const createProject: import("@lokalise/api-contracts").PayloadRou
|
|
|
29
30
|
marketing: "marketing";
|
|
30
31
|
marketing_integrations: "marketing_integrations";
|
|
31
32
|
marketing_portal: "marketing_portal";
|
|
33
|
+
mcp: "mcp";
|
|
32
34
|
}>;
|
|
33
35
|
name: import("zod/v4").ZodString;
|
|
34
36
|
description: import("zod/v4").ZodString;
|
|
@@ -128,6 +130,7 @@ export declare const listProjects: import("@lokalise/api-contracts").GetRouteDef
|
|
|
128
130
|
marketing: "marketing";
|
|
129
131
|
marketing_integrations: "marketing_integrations";
|
|
130
132
|
marketing_portal: "marketing_portal";
|
|
133
|
+
mcp: "mcp";
|
|
131
134
|
}>;
|
|
132
135
|
name: import("zod/v4").ZodString;
|
|
133
136
|
description: import("zod/v4").ZodString;
|
|
@@ -201,6 +204,7 @@ export declare const listProjects: import("@lokalise/api-contracts").GetRouteDef
|
|
|
201
204
|
marketing: "marketing";
|
|
202
205
|
marketing_integrations: "marketing_integrations";
|
|
203
206
|
marketing_portal: "marketing_portal";
|
|
207
|
+
mcp: "mcp";
|
|
204
208
|
}>>;
|
|
205
209
|
filter_team_id: import("zod/v4").ZodOptional<import("zod/v4").ZodNumber>;
|
|
206
210
|
filter_names: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
@@ -242,6 +246,7 @@ export declare const retrieveProject: import("@lokalise/api-contracts").GetRoute
|
|
|
242
246
|
marketing: "marketing";
|
|
243
247
|
marketing_integrations: "marketing_integrations";
|
|
244
248
|
marketing_portal: "marketing_portal";
|
|
249
|
+
mcp: "mcp";
|
|
245
250
|
}>;
|
|
246
251
|
name: import("zod/v4").ZodString;
|
|
247
252
|
description: import("zod/v4").ZodString;
|
|
@@ -345,6 +350,7 @@ export declare const updateProject: import("@lokalise/api-contracts").PayloadRou
|
|
|
345
350
|
marketing: "marketing";
|
|
346
351
|
marketing_integrations: "marketing_integrations";
|
|
347
352
|
marketing_portal: "marketing_portal";
|
|
353
|
+
mcp: "mcp";
|
|
348
354
|
}>;
|
|
349
355
|
name: import("zod/v4").ZodString;
|
|
350
356
|
description: import("zod/v4").ZodString;
|
|
@@ -595,6 +601,7 @@ export declare const listTeamProjects: import("@lokalise/api-contracts").GetRout
|
|
|
595
601
|
marketing: "marketing";
|
|
596
602
|
marketing_integrations: "marketing_integrations";
|
|
597
603
|
marketing_portal: "marketing_portal";
|
|
604
|
+
mcp: "mcp";
|
|
598
605
|
}>;
|
|
599
606
|
name: import("zod/v4").ZodString;
|
|
600
607
|
description: import("zod/v4").ZodString;
|
|
@@ -425,6 +425,7 @@ export declare const POST_EXPERT_CREATE_PROJECT_REQUEST_BODY_SCHEMA: z.ZodObject
|
|
|
425
425
|
marketing: "marketing";
|
|
426
426
|
marketing_integrations: "marketing_integrations";
|
|
427
427
|
marketing_portal: "marketing_portal";
|
|
428
|
+
mcp: "mcp";
|
|
428
429
|
}>;
|
|
429
430
|
is_segmentation_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
430
431
|
}, z.core.$strip>;
|
|
@@ -438,6 +439,7 @@ export declare const POST_EXPERT_CREATE_PROJECT_RESPONSE: z.ZodObject<{
|
|
|
438
439
|
marketing: "marketing";
|
|
439
440
|
marketing_integrations: "marketing_integrations";
|
|
440
441
|
marketing_portal: "marketing_portal";
|
|
442
|
+
mcp: "mcp";
|
|
441
443
|
}>;
|
|
442
444
|
name: z.ZodString;
|
|
443
445
|
description: z.ZodString;
|
|
@@ -519,6 +521,7 @@ export declare const postExpertCreateProjectContract: import("@lokalise/api-cont
|
|
|
519
521
|
marketing: "marketing";
|
|
520
522
|
marketing_integrations: "marketing_integrations";
|
|
521
523
|
marketing_portal: "marketing_portal";
|
|
524
|
+
mcp: "mcp";
|
|
522
525
|
}>;
|
|
523
526
|
is_segmentation_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
524
527
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -531,6 +534,7 @@ export declare const postExpertCreateProjectContract: import("@lokalise/api-cont
|
|
|
531
534
|
marketing: "marketing";
|
|
532
535
|
marketing_integrations: "marketing_integrations";
|
|
533
536
|
marketing_portal: "marketing_portal";
|
|
537
|
+
mcp: "mcp";
|
|
534
538
|
}>;
|
|
535
539
|
name: z.ZodString;
|
|
536
540
|
description: z.ZodString;
|
|
@@ -612,6 +616,7 @@ export declare const postExpertCreateProjectContract: import("@lokalise/api-cont
|
|
|
612
616
|
marketing: "marketing";
|
|
613
617
|
marketing_integrations: "marketing_integrations";
|
|
614
618
|
marketing_portal: "marketing_portal";
|
|
619
|
+
mcp: "mcp";
|
|
615
620
|
}>;
|
|
616
621
|
name: z.ZodString;
|
|
617
622
|
description: z.ZodString;
|
|
@@ -61,19 +61,16 @@ export declare const DELETE_PERMISSION_PARAMS_SCHEMA: z.ZodObject<{
|
|
|
61
61
|
}, z.core.$strip>;
|
|
62
62
|
export type DeletePermissionParams = z.infer<typeof DELETE_PERMISSION_PARAMS_SCHEMA>;
|
|
63
63
|
export declare const PermissionSourceNameEnum: {
|
|
64
|
-
readonly
|
|
65
|
-
readonly TranslationStorage: "translations";
|
|
66
|
-
readonly Export: "export";
|
|
64
|
+
readonly Expert: "Expert";
|
|
67
65
|
};
|
|
68
66
|
export type PermissionSourceName = (typeof PermissionSourceNameEnum)[keyof typeof PermissionSourceNameEnum];
|
|
69
67
|
export declare const PermissionScopeEnum: {
|
|
70
68
|
readonly Project: "Project";
|
|
71
|
-
readonly TranslationJob: "TranslationJob";
|
|
72
69
|
readonly Workspace: "Workspace";
|
|
73
70
|
};
|
|
74
71
|
export type PermissionScope = (typeof PermissionScopeEnum)[keyof typeof PermissionScopeEnum];
|
|
75
72
|
export declare const PermissionResourceEnum: {
|
|
76
|
-
readonly
|
|
73
|
+
readonly Project: "Project";
|
|
77
74
|
readonly ContentLanguageId: "ContentLanguageId";
|
|
78
75
|
readonly Locale: "Locale";
|
|
79
76
|
};
|
|
@@ -19,17 +19,14 @@ export const DELETE_PERMISSION_PARAMS_SCHEMA = z.object({
|
|
|
19
19
|
});
|
|
20
20
|
// Permission options
|
|
21
21
|
export const PermissionSourceNameEnum = {
|
|
22
|
-
|
|
23
|
-
TranslationStorage: 'translations',
|
|
24
|
-
Export: 'export',
|
|
22
|
+
Expert: 'Expert',
|
|
25
23
|
};
|
|
26
24
|
export const PermissionScopeEnum = {
|
|
27
25
|
Project: 'Project',
|
|
28
|
-
TranslationJob: 'TranslationJob',
|
|
29
26
|
Workspace: 'Workspace',
|
|
30
27
|
};
|
|
31
28
|
export const PermissionResourceEnum = {
|
|
32
|
-
|
|
29
|
+
Project: 'Project',
|
|
33
30
|
ContentLanguageId: 'ContentLanguageId',
|
|
34
31
|
Locale: 'Locale',
|
|
35
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/schemas/permission/api.ts"],"names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ROJECT_TYPES: readonly ["localization_files", "paged_documents", "content_integration", "marketing", "marketing_integrations", "marketing_portal"];
|
|
2
|
+
export declare const PROJECT_TYPES: readonly ["localization_files", "paged_documents", "content_integration", "marketing", "marketing_integrations", "marketing_portal", "mcp"];
|
|
3
3
|
export declare const PROJECT_TYPES_SCHEMA: z.ZodEnum<{
|
|
4
4
|
localization_files: "localization_files";
|
|
5
5
|
paged_documents: "paged_documents";
|
|
@@ -7,5 +7,6 @@ export declare const PROJECT_TYPES_SCHEMA: z.ZodEnum<{
|
|
|
7
7
|
marketing: "marketing";
|
|
8
8
|
marketing_integrations: "marketing_integrations";
|
|
9
9
|
marketing_portal: "marketing_portal";
|
|
10
|
+
mcp: "mcp";
|
|
10
11
|
}>;
|
|
11
12
|
export type ProjectType = z.infer<typeof PROJECT_TYPES_SCHEMA>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectType.js","sourceRoot":"","sources":["../../src/types/projectType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,oBAAoB;IACpB,iBAAiB;IACjB,qBAAqB;IACrB,WAAW;IACX,wBAAwB;IACxB,kBAAkB;
|
|
1
|
+
{"version":3,"file":"projectType.js","sourceRoot":"","sources":["../../src/types/projectType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,oBAAoB;IACpB,iBAAiB;IACjB,qBAAqB;IACrB,WAAW;IACX,wBAAwB;IACxB,kBAAkB;IAClB,KAAK;CACG,CAAA;AAEV,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA"}
|
|
@@ -32,6 +32,7 @@ export declare const PROJECT_TYPE_SCHEMA: z.ZodEnum<{
|
|
|
32
32
|
marketing: "marketing";
|
|
33
33
|
marketing_integrations: "marketing_integrations";
|
|
34
34
|
marketing_portal: "marketing_portal";
|
|
35
|
+
mcp: "mcp";
|
|
35
36
|
}>;
|
|
36
37
|
export declare const API_PROJECT_LANGUAGE_SCHEMA: z.ZodObject<{
|
|
37
38
|
id: z.ZodNumber;
|
|
@@ -131,6 +132,7 @@ export declare const API_PROJECT_SCHEMA: z.ZodObject<{
|
|
|
131
132
|
marketing: "marketing";
|
|
132
133
|
marketing_integrations: "marketing_integrations";
|
|
133
134
|
marketing_portal: "marketing_portal";
|
|
135
|
+
mcp: "mcp";
|
|
134
136
|
}>;
|
|
135
137
|
name: z.ZodString;
|
|
136
138
|
description: z.ZodString;
|
|
@@ -213,6 +215,7 @@ export declare const CREATE_PROJECT_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
|
|
213
215
|
marketing: "marketing";
|
|
214
216
|
marketing_integrations: "marketing_integrations";
|
|
215
217
|
marketing_portal: "marketing_portal";
|
|
218
|
+
mcp: "mcp";
|
|
216
219
|
}>;
|
|
217
220
|
is_segmentation_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
218
221
|
}, z.core.$strip>;
|
|
@@ -225,6 +228,7 @@ export declare const LIST_PROJECTS_REQUEST_QUERY_SCHEMA: z.ZodObject<{
|
|
|
225
228
|
marketing: "marketing";
|
|
226
229
|
marketing_integrations: "marketing_integrations";
|
|
227
230
|
marketing_portal: "marketing_portal";
|
|
231
|
+
mcp: "mcp";
|
|
228
232
|
}>>;
|
|
229
233
|
filter_team_id: z.ZodOptional<z.ZodNumber>;
|
|
230
234
|
filter_names: z.ZodOptional<z.ZodString>;
|
|
@@ -245,6 +249,7 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
|
|
|
245
249
|
marketing: "marketing";
|
|
246
250
|
marketing_integrations: "marketing_integrations";
|
|
247
251
|
marketing_portal: "marketing_portal";
|
|
252
|
+
mcp: "mcp";
|
|
248
253
|
}>;
|
|
249
254
|
name: z.ZodString;
|
|
250
255
|
description: z.ZodString;
|
|
@@ -542,6 +547,7 @@ export declare const LIST_TEAM_PROJECTS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
542
547
|
marketing: "marketing";
|
|
543
548
|
marketing_integrations: "marketing_integrations";
|
|
544
549
|
marketing_portal: "marketing_portal";
|
|
550
|
+
mcp: "mcp";
|
|
545
551
|
}>;
|
|
546
552
|
name: z.ZodString;
|
|
547
553
|
description: z.ZodString;
|