@lokalise/harmony 1.38.0 → 1.39.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.
Files changed (202) hide show
  1. package/dist/harmony.cjs +5 -0
  2. package/dist/harmony.cjs.map +1 -1
  3. package/dist/harmony.mjs +8 -3
  4. package/dist/harmony104.cjs +1 -1
  5. package/dist/harmony104.mjs +1 -1
  6. package/dist/harmony112.cjs +14 -21
  7. package/dist/harmony112.cjs.map +1 -1
  8. package/dist/harmony112.mjs +13 -20
  9. package/dist/harmony112.mjs.map +1 -1
  10. package/dist/harmony113.cjs +18 -6
  11. package/dist/harmony113.cjs.map +1 -1
  12. package/dist/harmony113.mjs +18 -6
  13. package/dist/harmony113.mjs.map +1 -1
  14. package/dist/harmony114.cjs +21 -132
  15. package/dist/harmony114.cjs.map +1 -1
  16. package/dist/harmony114.mjs +20 -131
  17. package/dist/harmony114.mjs.map +1 -1
  18. package/dist/harmony115.cjs +6 -12
  19. package/dist/harmony115.cjs.map +1 -1
  20. package/dist/harmony115.mjs +5 -11
  21. package/dist/harmony115.mjs.map +1 -1
  22. package/dist/harmony116.cjs +132 -5
  23. package/dist/harmony116.cjs.map +1 -1
  24. package/dist/harmony116.mjs +132 -5
  25. package/dist/harmony116.mjs.map +1 -1
  26. package/dist/harmony117.cjs +12 -40
  27. package/dist/harmony117.cjs.map +1 -1
  28. package/dist/harmony117.mjs +11 -39
  29. package/dist/harmony117.mjs.map +1 -1
  30. package/dist/harmony118.cjs +4 -59
  31. package/dist/harmony118.cjs.map +1 -1
  32. package/dist/harmony118.mjs +5 -60
  33. package/dist/harmony118.mjs.map +1 -1
  34. package/dist/harmony119.cjs +39 -6
  35. package/dist/harmony119.cjs.map +1 -1
  36. package/dist/harmony119.mjs +39 -6
  37. package/dist/harmony119.mjs.map +1 -1
  38. package/dist/harmony120.cjs +59 -13
  39. package/dist/harmony120.cjs.map +1 -1
  40. package/dist/harmony120.mjs +59 -13
  41. package/dist/harmony120.mjs.map +1 -1
  42. package/dist/harmony121.cjs +7 -18
  43. package/dist/harmony121.cjs.map +1 -1
  44. package/dist/harmony121.mjs +7 -18
  45. package/dist/harmony121.mjs.map +1 -1
  46. package/dist/harmony122.cjs +99 -6
  47. package/dist/harmony122.cjs.map +1 -1
  48. package/dist/harmony122.mjs +81 -5
  49. package/dist/harmony122.mjs.map +1 -1
  50. package/dist/harmony125.cjs +6 -99
  51. package/dist/harmony125.cjs.map +1 -1
  52. package/dist/harmony125.mjs +5 -81
  53. package/dist/harmony125.mjs.map +1 -1
  54. package/dist/harmony126.cjs +6 -63
  55. package/dist/harmony126.cjs.map +1 -1
  56. package/dist/harmony126.mjs +5 -62
  57. package/dist/harmony126.mjs.map +1 -1
  58. package/dist/harmony127.cjs +6 -89
  59. package/dist/harmony127.cjs.map +1 -1
  60. package/dist/harmony127.mjs +5 -88
  61. package/dist/harmony127.mjs.map +1 -1
  62. package/dist/harmony128.cjs +63 -19
  63. package/dist/harmony128.cjs.map +1 -1
  64. package/dist/harmony128.mjs +62 -18
  65. package/dist/harmony128.mjs.map +1 -1
  66. package/dist/harmony129.cjs +89 -6
  67. package/dist/harmony129.cjs.map +1 -1
  68. package/dist/harmony129.mjs +88 -5
  69. package/dist/harmony129.mjs.map +1 -1
  70. package/dist/harmony130.cjs +18 -5
  71. package/dist/harmony130.cjs.map +1 -1
  72. package/dist/harmony130.mjs +18 -5
  73. package/dist/harmony130.mjs.map +1 -1
  74. package/dist/harmony132.cjs +96 -7
  75. package/dist/harmony132.cjs.map +1 -1
  76. package/dist/harmony132.mjs +96 -7
  77. package/dist/harmony132.mjs.map +1 -1
  78. package/dist/harmony133.cjs +13 -57
  79. package/dist/harmony133.cjs.map +1 -1
  80. package/dist/harmony133.mjs +13 -57
  81. package/dist/harmony133.mjs.map +1 -1
  82. package/dist/harmony134.cjs +14 -60
  83. package/dist/harmony134.cjs.map +1 -1
  84. package/dist/harmony134.mjs +14 -60
  85. package/dist/harmony134.mjs.map +1 -1
  86. package/dist/harmony135.cjs +37 -19
  87. package/dist/harmony135.cjs.map +1 -1
  88. package/dist/harmony135.mjs +36 -18
  89. package/dist/harmony135.mjs.map +1 -1
  90. package/dist/harmony136.cjs +19 -87
  91. package/dist/harmony136.cjs.map +1 -1
  92. package/dist/harmony136.mjs +19 -87
  93. package/dist/harmony136.mjs.map +1 -1
  94. package/dist/harmony137.cjs +7 -13
  95. package/dist/harmony137.cjs.map +1 -1
  96. package/dist/harmony137.mjs +7 -13
  97. package/dist/harmony137.mjs.map +1 -1
  98. package/dist/harmony138.cjs +57 -14
  99. package/dist/harmony138.cjs.map +1 -1
  100. package/dist/harmony138.mjs +57 -14
  101. package/dist/harmony138.mjs.map +1 -1
  102. package/dist/harmony139.cjs +57 -33
  103. package/dist/harmony139.cjs.map +1 -1
  104. package/dist/harmony139.mjs +57 -33
  105. package/dist/harmony139.mjs.map +1 -1
  106. package/dist/harmony14.cjs +1 -1
  107. package/dist/harmony14.mjs +1 -1
  108. package/dist/harmony140.cjs +19 -29
  109. package/dist/harmony140.cjs.map +1 -1
  110. package/dist/harmony140.mjs +18 -28
  111. package/dist/harmony140.mjs.map +1 -1
  112. package/dist/harmony141.cjs +1 -1
  113. package/dist/harmony141.mjs +1 -1
  114. package/dist/harmony142.cjs +1 -1
  115. package/dist/harmony142.mjs +1 -1
  116. package/dist/harmony143.cjs +2 -2
  117. package/dist/harmony143.mjs +2 -2
  118. package/dist/harmony144.cjs +11 -46
  119. package/dist/harmony144.cjs.map +1 -1
  120. package/dist/harmony144.mjs +11 -46
  121. package/dist/harmony144.mjs.map +1 -1
  122. package/dist/harmony145.cjs +17 -13
  123. package/dist/harmony145.cjs.map +1 -1
  124. package/dist/harmony145.mjs +16 -12
  125. package/dist/harmony145.mjs.map +1 -1
  126. package/dist/harmony146.cjs +20 -10
  127. package/dist/harmony146.cjs.map +1 -1
  128. package/dist/harmony146.mjs +20 -10
  129. package/dist/harmony146.mjs.map +1 -1
  130. package/dist/harmony147.cjs +10 -14
  131. package/dist/harmony147.cjs.map +1 -1
  132. package/dist/harmony147.mjs +10 -14
  133. package/dist/harmony147.mjs.map +1 -1
  134. package/dist/harmony148.cjs +5 -20
  135. package/dist/harmony148.cjs.map +1 -1
  136. package/dist/harmony148.mjs +5 -20
  137. package/dist/harmony148.mjs.map +1 -1
  138. package/dist/harmony149.cjs +11 -11
  139. package/dist/harmony149.cjs.map +1 -1
  140. package/dist/harmony149.mjs +11 -11
  141. package/dist/harmony149.mjs.map +1 -1
  142. package/dist/harmony150.cjs +31 -5
  143. package/dist/harmony150.cjs.map +1 -1
  144. package/dist/harmony150.mjs +31 -5
  145. package/dist/harmony150.mjs.map +1 -1
  146. package/dist/harmony151.cjs +13 -11
  147. package/dist/harmony151.cjs.map +1 -1
  148. package/dist/harmony151.mjs +13 -11
  149. package/dist/harmony151.mjs.map +1 -1
  150. package/dist/harmony152.cjs +45 -31
  151. package/dist/harmony152.cjs.map +1 -1
  152. package/dist/harmony152.mjs +45 -31
  153. package/dist/harmony152.mjs.map +1 -1
  154. package/dist/harmony153.cjs +13 -15
  155. package/dist/harmony153.cjs.map +1 -1
  156. package/dist/harmony153.mjs +12 -14
  157. package/dist/harmony153.mjs.map +1 -1
  158. package/dist/harmony17.cjs +1 -1
  159. package/dist/harmony17.mjs +1 -1
  160. package/dist/harmony25.cjs +1 -1
  161. package/dist/harmony25.mjs +1 -1
  162. package/dist/harmony26.cjs +1 -1
  163. package/dist/harmony26.mjs +1 -1
  164. package/dist/harmony35.cjs +10 -0
  165. package/dist/harmony35.cjs.map +1 -1
  166. package/dist/harmony35.mjs +12 -2
  167. package/dist/harmony35.mjs.map +1 -1
  168. package/dist/harmony64.cjs +19 -0
  169. package/dist/harmony64.cjs.map +1 -1
  170. package/dist/harmony64.mjs +19 -0
  171. package/dist/harmony64.mjs.map +1 -1
  172. package/dist/harmony70.cjs +21 -0
  173. package/dist/harmony70.cjs.map +1 -1
  174. package/dist/harmony70.mjs +22 -1
  175. package/dist/harmony70.mjs.map +1 -1
  176. package/dist/harmony74.cjs +1 -1
  177. package/dist/harmony74.mjs +1 -1
  178. package/dist/harmony84.cjs +6 -6
  179. package/dist/harmony84.mjs +6 -6
  180. package/dist/harmony98.cjs +1 -1
  181. package/dist/harmony98.mjs +1 -1
  182. package/dist/harmony99.cjs +1 -1
  183. package/dist/harmony99.mjs +1 -1
  184. package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +1 -1
  185. package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +6 -6
  186. package/dist/types/src/features/publicApi/contributors.d.ts +16 -16
  187. package/dist/types/src/features/publicApi/hooks/useAddContributorsMutation.d.ts +1 -1
  188. package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +1 -1
  189. package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +1 -1
  190. package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
  191. package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +1 -1
  192. package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
  193. package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +23 -0
  194. package/dist/types/src/features/publicApi/hooks/useUpdateContributorMutation.d.ts +1 -1
  195. package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +1 -1
  196. package/dist/types/src/features/publicApi/projects.d.ts +10 -10
  197. package/dist/types/src/features/publicApi/teamUsers.d.ts +111 -0
  198. package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +18 -18
  199. package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +1 -0
  200. package/dist/types/src/features/publicApi/types/projectTypes.d.ts +6 -6
  201. package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +66 -0
  202. package/package.json +1 -1
@@ -237,10 +237,10 @@ export declare const createProject: import('@lokalise/api-contracts').PayloadRou
237
237
  }>>;
238
238
  }, "strip", import('zod').ZodTypeAny, {
239
239
  name: string;
240
+ description: string;
240
241
  created_at: string;
241
242
  created_at_timestamp: number;
242
243
  team_id: number;
243
- description: string;
244
244
  uuid: string;
245
245
  project_id: string;
246
246
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -299,10 +299,10 @@ export declare const createProject: import('@lokalise/api-contracts').PayloadRou
299
299
  } | undefined;
300
300
  }, {
301
301
  name: string;
302
+ description: string;
302
303
  created_at: string;
303
304
  created_at_timestamp: number;
304
305
  team_id: number;
305
- description: string;
306
306
  uuid: string;
307
307
  project_id: string;
308
308
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -618,10 +618,10 @@ export declare const listProjects: import('@lokalise/api-contracts').GetRouteDef
618
618
  }>>;
619
619
  }, "strip", import('zod').ZodTypeAny, {
620
620
  name: string;
621
+ description: string;
621
622
  created_at: string;
622
623
  created_at_timestamp: number;
623
624
  team_id: number;
624
- description: string;
625
625
  uuid: string;
626
626
  project_id: string;
627
627
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -680,10 +680,10 @@ export declare const listProjects: import('@lokalise/api-contracts').GetRouteDef
680
680
  } | undefined;
681
681
  }, {
682
682
  name: string;
683
+ description: string;
683
684
  created_at: string;
684
685
  created_at_timestamp: number;
685
686
  team_id: number;
686
- description: string;
687
687
  uuid: string;
688
688
  project_id: string;
689
689
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -744,10 +744,10 @@ export declare const listProjects: import('@lokalise/api-contracts').GetRouteDef
744
744
  }, "strip", import('zod').ZodTypeAny, {
745
745
  projects: {
746
746
  name: string;
747
+ description: string;
747
748
  created_at: string;
748
749
  created_at_timestamp: number;
749
750
  team_id: number;
750
- description: string;
751
751
  uuid: string;
752
752
  project_id: string;
753
753
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -808,10 +808,10 @@ export declare const listProjects: import('@lokalise/api-contracts').GetRouteDef
808
808
  }, {
809
809
  projects: {
810
810
  name: string;
811
+ description: string;
811
812
  created_at: string;
812
813
  created_at_timestamp: number;
813
814
  team_id: number;
814
- description: string;
815
815
  uuid: string;
816
816
  project_id: string;
817
817
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -1153,10 +1153,10 @@ export declare const retrieveProject: import('@lokalise/api-contracts').GetRoute
1153
1153
  }>>;
1154
1154
  }, "strip", import('zod').ZodTypeAny, {
1155
1155
  name: string;
1156
+ description: string;
1156
1157
  created_at: string;
1157
1158
  created_at_timestamp: number;
1158
1159
  team_id: number;
1159
- description: string;
1160
1160
  uuid: string;
1161
1161
  project_id: string;
1162
1162
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -1215,10 +1215,10 @@ export declare const retrieveProject: import('@lokalise/api-contracts').GetRoute
1215
1215
  } | undefined;
1216
1216
  }, {
1217
1217
  name: string;
1218
+ description: string;
1218
1219
  created_at: string;
1219
1220
  created_at_timestamp: number;
1220
1221
  team_id: number;
1221
- description: string;
1222
1222
  uuid: string;
1223
1223
  project_id: string;
1224
1224
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -1550,10 +1550,10 @@ export declare const updateProject: import('@lokalise/api-contracts').PayloadRou
1550
1550
  }>>;
1551
1551
  }, "strip", import('zod').ZodTypeAny, {
1552
1552
  name: string;
1553
+ description: string;
1553
1554
  created_at: string;
1554
1555
  created_at_timestamp: number;
1555
1556
  team_id: number;
1556
- description: string;
1557
1557
  uuid: string;
1558
1558
  project_id: string;
1559
1559
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -1612,10 +1612,10 @@ export declare const updateProject: import('@lokalise/api-contracts').PayloadRou
1612
1612
  } | undefined;
1613
1613
  }, {
1614
1614
  name: string;
1615
+ description: string;
1615
1616
  created_at: string;
1616
1617
  created_at_timestamp: number;
1617
1618
  team_id: number;
1618
- description: string;
1619
1619
  uuid: string;
1620
1620
  project_id: string;
1621
1621
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -222,3 +222,114 @@ export declare const getTeamUser: import('@lokalise/api-contracts').GetRouteDefi
222
222
  }, {
223
223
  'X-LOKALISE-PLUGIN': string;
224
224
  }>]>>, false, false>;
225
+ /**
226
+ * Public API router definition for getting the details of a team user permissions
227
+ */
228
+ export declare const getTeamUserPermissions: import('@lokalise/api-contracts').PayloadRouteDefinition<{
229
+ userId: number;
230
+ teamId: number;
231
+ }, import('zod').ZodObject<{
232
+ projectIds: import('zod').ZodArray<import('zod').ZodString, "many">;
233
+ }, "strip", import('zod').ZodTypeAny, {
234
+ projectIds: string[];
235
+ }, {
236
+ projectIds: string[];
237
+ }>, import('zod').ZodObject<{
238
+ projects: import('zod').ZodArray<import('zod').ZodObject<{
239
+ id: import('zod').ZodString;
240
+ permissions: import('zod').ZodObject<{
241
+ [k: string]: import('zod').ZodOptional<import('zod').ZodUnion<[import('zod').ZodLiteral<0>, import('zod').ZodLiteral<1>]>>;
242
+ }, "strip", import('zod').ZodTypeAny, {
243
+ [x: string]: 0 | 1 | undefined;
244
+ }, {
245
+ [x: string]: 0 | 1 | undefined;
246
+ }>;
247
+ }, "strip", import('zod').ZodTypeAny, {
248
+ id: string;
249
+ permissions: {
250
+ [x: string]: 0 | 1 | undefined;
251
+ };
252
+ }, {
253
+ id: string;
254
+ permissions: {
255
+ [x: string]: 0 | 1 | undefined;
256
+ };
257
+ }>, "many">;
258
+ }, "strip", import('zod').ZodTypeAny, {
259
+ projects: {
260
+ id: string;
261
+ permissions: {
262
+ [x: string]: 0 | 1 | undefined;
263
+ };
264
+ }[];
265
+ }, {
266
+ projects: {
267
+ id: string;
268
+ permissions: {
269
+ [x: string]: 0 | 1 | undefined;
270
+ };
271
+ }[];
272
+ }>, import('zod').ZodObject<{
273
+ teamId: import('zod').ZodNumber;
274
+ userId: import('zod').ZodNumber;
275
+ }, "strip", import('zod').ZodTypeAny, {
276
+ userId: number;
277
+ teamId: number;
278
+ }, {
279
+ userId: number;
280
+ teamId: number;
281
+ }>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
282
+ authorization: import('zod').ZodString;
283
+ }, "strip", import('zod').ZodTypeAny, {
284
+ authorization: string;
285
+ }, {
286
+ authorization: string;
287
+ }>, import('zod').ZodObject<{
288
+ AUTHORIZATION: import('zod').ZodString;
289
+ }, "strip", import('zod').ZodTypeAny, {
290
+ AUTHORIZATION: string;
291
+ }, {
292
+ AUTHORIZATION: string;
293
+ }>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
294
+ 'X-API-Token': import('zod').ZodString;
295
+ }, "strip", import('zod').ZodTypeAny, {
296
+ 'X-API-Token': string;
297
+ }, {
298
+ 'X-API-Token': string;
299
+ }>, import('zod').ZodObject<{
300
+ 'X-Api-Token': import('zod').ZodString;
301
+ }, "strip", import('zod').ZodTypeAny, {
302
+ 'X-Api-Token': string;
303
+ }, {
304
+ 'X-Api-Token': string;
305
+ }>, import('zod').ZodObject<{
306
+ 'x-api-token': import('zod').ZodString;
307
+ }, "strip", import('zod').ZodTypeAny, {
308
+ 'x-api-token': string;
309
+ }, {
310
+ 'x-api-token': string;
311
+ }>, import('zod').ZodObject<{
312
+ 'X-API-TOKEN': import('zod').ZodString;
313
+ }, "strip", import('zod').ZodTypeAny, {
314
+ 'X-API-TOKEN': string;
315
+ }, {
316
+ 'X-API-TOKEN': string;
317
+ }>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
318
+ 'X-Lokalise-Plugin': import('zod').ZodString;
319
+ }, "strip", import('zod').ZodTypeAny, {
320
+ 'X-Lokalise-Plugin': string;
321
+ }, {
322
+ 'X-Lokalise-Plugin': string;
323
+ }>, import('zod').ZodObject<{
324
+ 'x-lokalise-plugin': import('zod').ZodString;
325
+ }, "strip", import('zod').ZodTypeAny, {
326
+ 'x-lokalise-plugin': string;
327
+ }, {
328
+ 'x-lokalise-plugin': string;
329
+ }>, import('zod').ZodObject<{
330
+ 'X-LOKALISE-PLUGIN': import('zod').ZodString;
331
+ }, "strip", import('zod').ZodTypeAny, {
332
+ 'X-LOKALISE-PLUGIN': string;
333
+ }, {
334
+ 'X-LOKALISE-PLUGIN': string;
335
+ }>]>>, false, false>;
@@ -109,6 +109,7 @@ export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
109
109
  fullname: string;
110
110
  created_at: string;
111
111
  created_at_timestamp: number;
112
+ permissions: string[];
112
113
  avatar_url: string;
113
114
  languages: {
114
115
  lang_id: number;
@@ -117,7 +118,6 @@ export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
117
118
  is_writable: boolean | 0 | 1;
118
119
  }[];
119
120
  admin_rights: string[];
120
- permissions: string[];
121
121
  role_id: number | null;
122
122
  is_owner: boolean;
123
123
  is_admin: boolean;
@@ -130,6 +130,7 @@ export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
130
130
  fullname: string;
131
131
  created_at: string;
132
132
  created_at_timestamp: number;
133
+ permissions: string[];
133
134
  avatar_url: string;
134
135
  languages: {
135
136
  lang_id: number;
@@ -138,7 +139,6 @@ export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
138
139
  is_writable: boolean | 0 | 1;
139
140
  }[];
140
141
  admin_rights: string[];
141
- permissions: string[];
142
142
  role_id: number | null;
143
143
  is_owner: boolean;
144
144
  is_admin: boolean;
@@ -248,6 +248,7 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
248
248
  fullname: string;
249
249
  created_at: string;
250
250
  created_at_timestamp: number;
251
+ permissions: string[];
251
252
  avatar_url: string;
252
253
  languages: {
253
254
  lang_id: number;
@@ -256,7 +257,6 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
256
257
  is_writable: boolean | 0 | 1;
257
258
  }[];
258
259
  admin_rights: string[];
259
- permissions: string[];
260
260
  role_id: number | null;
261
261
  is_owner: boolean;
262
262
  is_admin: boolean;
@@ -269,6 +269,7 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
269
269
  fullname: string;
270
270
  created_at: string;
271
271
  created_at_timestamp: number;
272
+ permissions: string[];
272
273
  avatar_url: string;
273
274
  languages: {
274
275
  lang_id: number;
@@ -277,7 +278,6 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
277
278
  is_writable: boolean | 0 | 1;
278
279
  }[];
279
280
  admin_rights: string[];
280
- permissions: string[];
281
281
  role_id: number | null;
282
282
  is_owner: boolean;
283
283
  is_admin: boolean;
@@ -292,6 +292,7 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
292
292
  fullname: string;
293
293
  created_at: string;
294
294
  created_at_timestamp: number;
295
+ permissions: string[];
295
296
  avatar_url: string;
296
297
  languages: {
297
298
  lang_id: number;
@@ -300,7 +301,6 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
300
301
  is_writable: boolean | 0 | 1;
301
302
  }[];
302
303
  admin_rights: string[];
303
- permissions: string[];
304
304
  role_id: number | null;
305
305
  is_owner: boolean;
306
306
  is_admin: boolean;
@@ -316,6 +316,7 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
316
316
  fullname: string;
317
317
  created_at: string;
318
318
  created_at_timestamp: number;
319
+ permissions: string[];
319
320
  avatar_url: string;
320
321
  languages: {
321
322
  lang_id: number;
@@ -324,7 +325,6 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
324
325
  is_writable: boolean | 0 | 1;
325
326
  }[];
326
327
  admin_rights: string[];
327
- permissions: string[];
328
328
  role_id: number | null;
329
329
  is_owner: boolean;
330
330
  is_admin: boolean;
@@ -435,6 +435,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
435
435
  fullname: string;
436
436
  created_at: string;
437
437
  created_at_timestamp: number;
438
+ permissions: string[];
438
439
  avatar_url: string;
439
440
  languages: {
440
441
  lang_id: number;
@@ -443,7 +444,6 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
443
444
  is_writable: boolean | 0 | 1;
444
445
  }[];
445
446
  admin_rights: string[];
446
- permissions: string[];
447
447
  role_id: number | null;
448
448
  is_owner: boolean;
449
449
  is_admin: boolean;
@@ -456,6 +456,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
456
456
  fullname: string;
457
457
  created_at: string;
458
458
  created_at_timestamp: number;
459
+ permissions: string[];
459
460
  avatar_url: string;
460
461
  languages: {
461
462
  lang_id: number;
@@ -464,7 +465,6 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
464
465
  is_writable: boolean | 0 | 1;
465
466
  }[];
466
467
  admin_rights: string[];
467
- permissions: string[];
468
468
  role_id: number | null;
469
469
  is_owner: boolean;
470
470
  is_admin: boolean;
@@ -480,6 +480,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
480
480
  fullname: string;
481
481
  created_at: string;
482
482
  created_at_timestamp: number;
483
+ permissions: string[];
483
484
  avatar_url: string;
484
485
  languages: {
485
486
  lang_id: number;
@@ -488,7 +489,6 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
488
489
  is_writable: boolean | 0 | 1;
489
490
  }[];
490
491
  admin_rights: string[];
491
- permissions: string[];
492
492
  role_id: number | null;
493
493
  is_owner: boolean;
494
494
  is_admin: boolean;
@@ -504,6 +504,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
504
504
  fullname: string;
505
505
  created_at: string;
506
506
  created_at_timestamp: number;
507
+ permissions: string[];
507
508
  avatar_url: string;
508
509
  languages: {
509
510
  lang_id: number;
@@ -512,7 +513,6 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
512
513
  is_writable: boolean | 0 | 1;
513
514
  }[];
514
515
  admin_rights: string[];
515
- permissions: string[];
516
516
  role_id: number | null;
517
517
  is_owner: boolean;
518
518
  is_admin: boolean;
@@ -659,6 +659,7 @@ export declare const ADD_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
659
659
  fullname: string;
660
660
  created_at: string;
661
661
  created_at_timestamp: number;
662
+ permissions: string[];
662
663
  avatar_url: string;
663
664
  languages: {
664
665
  lang_id: number;
@@ -667,7 +668,6 @@ export declare const ADD_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
667
668
  is_writable: boolean | 0 | 1;
668
669
  }[];
669
670
  admin_rights: string[];
670
- permissions: string[];
671
671
  role_id: number | null;
672
672
  is_owner: boolean;
673
673
  is_admin: boolean;
@@ -680,6 +680,7 @@ export declare const ADD_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
680
680
  fullname: string;
681
681
  created_at: string;
682
682
  created_at_timestamp: number;
683
+ permissions: string[];
683
684
  avatar_url: string;
684
685
  languages: {
685
686
  lang_id: number;
@@ -688,7 +689,6 @@ export declare const ADD_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
688
689
  is_writable: boolean | 0 | 1;
689
690
  }[];
690
691
  admin_rights: string[];
691
- permissions: string[];
692
692
  role_id: number | null;
693
693
  is_owner: boolean;
694
694
  is_admin: boolean;
@@ -703,6 +703,7 @@ export declare const ADD_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
703
703
  fullname: string;
704
704
  created_at: string;
705
705
  created_at_timestamp: number;
706
+ permissions: string[];
706
707
  avatar_url: string;
707
708
  languages: {
708
709
  lang_id: number;
@@ -711,7 +712,6 @@ export declare const ADD_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
711
712
  is_writable: boolean | 0 | 1;
712
713
  }[];
713
714
  admin_rights: string[];
714
- permissions: string[];
715
715
  role_id: number | null;
716
716
  is_owner: boolean;
717
717
  is_admin: boolean;
@@ -728,6 +728,7 @@ export declare const ADD_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
728
728
  fullname: string;
729
729
  created_at: string;
730
730
  created_at_timestamp: number;
731
+ permissions: string[];
731
732
  avatar_url: string;
732
733
  languages: {
733
734
  lang_id: number;
@@ -736,7 +737,6 @@ export declare const ADD_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
736
737
  is_writable: boolean | 0 | 1;
737
738
  }[];
738
739
  admin_rights: string[];
739
- permissions: string[];
740
740
  role_id: number | null;
741
741
  is_owner: boolean;
742
742
  is_admin: boolean;
@@ -853,6 +853,7 @@ export declare const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
853
853
  fullname: string;
854
854
  created_at: string;
855
855
  created_at_timestamp: number;
856
+ permissions: string[];
856
857
  avatar_url: string;
857
858
  languages: {
858
859
  lang_id: number;
@@ -861,7 +862,6 @@ export declare const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
861
862
  is_writable: boolean | 0 | 1;
862
863
  }[];
863
864
  admin_rights: string[];
864
- permissions: string[];
865
865
  role_id: number | null;
866
866
  is_owner: boolean;
867
867
  is_admin: boolean;
@@ -874,6 +874,7 @@ export declare const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
874
874
  fullname: string;
875
875
  created_at: string;
876
876
  created_at_timestamp: number;
877
+ permissions: string[];
877
878
  avatar_url: string;
878
879
  languages: {
879
880
  lang_id: number;
@@ -882,7 +883,6 @@ export declare const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
882
883
  is_writable: boolean | 0 | 1;
883
884
  }[];
884
885
  admin_rights: string[];
885
- permissions: string[];
886
886
  role_id: number | null;
887
887
  is_owner: boolean;
888
888
  is_admin: boolean;
@@ -898,6 +898,7 @@ export declare const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
898
898
  fullname: string;
899
899
  created_at: string;
900
900
  created_at_timestamp: number;
901
+ permissions: string[];
901
902
  avatar_url: string;
902
903
  languages: {
903
904
  lang_id: number;
@@ -906,7 +907,6 @@ export declare const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
906
907
  is_writable: boolean | 0 | 1;
907
908
  }[];
908
909
  admin_rights: string[];
909
- permissions: string[];
910
910
  role_id: number | null;
911
911
  is_owner: boolean;
912
912
  is_admin: boolean;
@@ -922,6 +922,7 @@ export declare const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
922
922
  fullname: string;
923
923
  created_at: string;
924
924
  created_at_timestamp: number;
925
+ permissions: string[];
925
926
  avatar_url: string;
926
927
  languages: {
927
928
  lang_id: number;
@@ -930,7 +931,6 @@ export declare const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
930
931
  is_writable: boolean | 0 | 1;
931
932
  }[];
932
933
  admin_rights: string[];
933
- permissions: string[];
934
934
  role_id: number | null;
935
935
  is_owner: boolean;
936
936
  is_admin: boolean;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export declare const PERMISSIONS: string[];
2
3
  export declare const PERMISSION_ID_SCHEMA: z.ZodString;
3
4
  export type PermissionId = z.infer<typeof PERMISSION_ID_SCHEMA>;
4
5
  export declare const PERMISSION_SCOPE_SCHEMA: z.ZodUnion<[z.ZodLiteral<"project">, z.ZodLiteral<"team">, z.ZodLiteral<"user">]>;
@@ -497,10 +497,10 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
497
497
  }>>;
498
498
  }, "strip", z.ZodTypeAny, {
499
499
  name: string;
500
+ description: string;
500
501
  created_at: string;
501
502
  created_at_timestamp: number;
502
503
  team_id: number;
503
- description: string;
504
504
  uuid: string;
505
505
  project_id: string;
506
506
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -559,10 +559,10 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
559
559
  } | undefined;
560
560
  }, {
561
561
  name: string;
562
+ description: string;
562
563
  created_at: string;
563
564
  created_at_timestamp: number;
564
565
  team_id: number;
565
- description: string;
566
566
  uuid: string;
567
567
  project_id: string;
568
568
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -886,10 +886,10 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
886
886
  }>>;
887
887
  }, "strip", z.ZodTypeAny, {
888
888
  name: string;
889
+ description: string;
889
890
  created_at: string;
890
891
  created_at_timestamp: number;
891
892
  team_id: number;
892
- description: string;
893
893
  uuid: string;
894
894
  project_id: string;
895
895
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -948,10 +948,10 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
948
948
  } | undefined;
949
949
  }, {
950
950
  name: string;
951
+ description: string;
951
952
  created_at: string;
952
953
  created_at_timestamp: number;
953
954
  team_id: number;
954
- description: string;
955
955
  uuid: string;
956
956
  project_id: string;
957
957
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -1012,10 +1012,10 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
1012
1012
  }, "strip", z.ZodTypeAny, {
1013
1013
  projects: {
1014
1014
  name: string;
1015
+ description: string;
1015
1016
  created_at: string;
1016
1017
  created_at_timestamp: number;
1017
1018
  team_id: number;
1018
- description: string;
1019
1019
  uuid: string;
1020
1020
  project_id: string;
1021
1021
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -1076,10 +1076,10 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
1076
1076
  }, {
1077
1077
  projects: {
1078
1078
  name: string;
1079
+ description: string;
1079
1080
  created_at: string;
1080
1081
  created_at_timestamp: number;
1081
1082
  team_id: number;
1082
- description: string;
1083
1083
  uuid: string;
1084
1084
  project_id: string;
1085
1085
  project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
@@ -189,3 +189,69 @@ export declare const LIST_TEAM_USERS_RESPONSE_SCHEMA: z.ZodObject<{
189
189
  }[];
190
190
  }>;
191
191
  export type ListTeamUsersResponse = z.infer<typeof LIST_TEAM_USERS_RESPONSE_SCHEMA>;
192
+ export declare const GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA: z.ZodObject<{
193
+ projectIds: z.ZodArray<z.ZodString, "many">;
194
+ }, "strip", z.ZodTypeAny, {
195
+ projectIds: string[];
196
+ }, {
197
+ projectIds: string[];
198
+ }>;
199
+ export type GetTeamUserPermissionsRequestBody = z.infer<typeof GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA>;
200
+ export declare const USER_PROJECTS_PERMISSIONS_SCHEMA: z.ZodObject<{
201
+ id: z.ZodString;
202
+ permissions: z.ZodObject<{
203
+ [k: string]: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ [x: string]: 0 | 1 | undefined;
206
+ }, {
207
+ [x: string]: 0 | 1 | undefined;
208
+ }>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ id: string;
211
+ permissions: {
212
+ [x: string]: 0 | 1 | undefined;
213
+ };
214
+ }, {
215
+ id: string;
216
+ permissions: {
217
+ [x: string]: 0 | 1 | undefined;
218
+ };
219
+ }>;
220
+ export type UserProjectsPermissionsSchema = z.infer<typeof USER_PROJECTS_PERMISSIONS_SCHEMA>;
221
+ export declare const GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA: z.ZodObject<{
222
+ projects: z.ZodArray<z.ZodObject<{
223
+ id: z.ZodString;
224
+ permissions: z.ZodObject<{
225
+ [k: string]: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ [x: string]: 0 | 1 | undefined;
228
+ }, {
229
+ [x: string]: 0 | 1 | undefined;
230
+ }>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ id: string;
233
+ permissions: {
234
+ [x: string]: 0 | 1 | undefined;
235
+ };
236
+ }, {
237
+ id: string;
238
+ permissions: {
239
+ [x: string]: 0 | 1 | undefined;
240
+ };
241
+ }>, "many">;
242
+ }, "strip", z.ZodTypeAny, {
243
+ projects: {
244
+ id: string;
245
+ permissions: {
246
+ [x: string]: 0 | 1 | undefined;
247
+ };
248
+ }[];
249
+ }, {
250
+ projects: {
251
+ id: string;
252
+ permissions: {
253
+ [x: string]: 0 | 1 | undefined;
254
+ };
255
+ }[];
256
+ }>;
257
+ export type GetTeamUserPermissionsResponse = z.infer<typeof GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/harmony",
3
- "version": "1.38.0",
3
+ "version": "1.39.0",
4
4
  "author": {
5
5
  "name": "Lokalise",
6
6
  "url": "https://lokalise.com/"