@wix/auto_sdk_data_permissions 1.0.44 → 1.0.45

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.
@@ -0,0 +1,452 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // schemas.ts
31
+ var schemas_exports = {};
32
+ __export(schemas_exports, {
33
+ AddSpecialPermissionsRequest: () => AddSpecialPermissionsRequest,
34
+ AddSpecialPermissionsResponse: () => AddSpecialPermissionsResponse,
35
+ GetMyPermissionsRequest: () => GetMyPermissionsRequest,
36
+ GetMyPermissionsResponse: () => GetMyPermissionsResponse,
37
+ GetPermissionsRequest: () => GetPermissionsRequest,
38
+ GetPermissionsResponse: () => GetPermissionsResponse,
39
+ RemoveSpecialPermissionsRequest: () => RemoveSpecialPermissionsRequest,
40
+ RemoveSpecialPermissionsResponse: () => RemoveSpecialPermissionsResponse,
41
+ UpdatePermissionsRequest: () => UpdatePermissionsRequest,
42
+ UpdatePermissionsResponse: () => UpdatePermissionsResponse,
43
+ UpdateSpecialPermissionsRequest: () => UpdateSpecialPermissionsRequest,
44
+ UpdateSpecialPermissionsResponse: () => UpdateSpecialPermissionsResponse
45
+ });
46
+ module.exports = __toCommonJS(schemas_exports);
47
+
48
+ // src/data-v1-data-permissions-permissions.schemas.ts
49
+ var z = __toESM(require("zod"));
50
+ var GetPermissionsRequest = z.object({
51
+ dataCollectionId: z.string().describe("ID of the collection to retrieve permissions of.").max(256)
52
+ });
53
+ var GetPermissionsResponse = z.object({
54
+ dataPermissions: z.object({
55
+ _id: z.string().describe("ID of the collection for these permissions.").max(255).optional(),
56
+ itemRead: z.enum([
57
+ "ANYONE",
58
+ "SITE_MEMBER",
59
+ "SITE_MEMBER_AUTHOR",
60
+ "CMS_EDITOR",
61
+ "PRIVILEGED"
62
+ ]).describe(
63
+ "Which users can read items from the collection.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
64
+ ).optional(),
65
+ itemInsert: z.enum([
66
+ "ANYONE",
67
+ "SITE_MEMBER",
68
+ "SITE_MEMBER_AUTHOR",
69
+ "CMS_EDITOR",
70
+ "PRIVILEGED"
71
+ ]).describe(
72
+ "Which users can create new items in the collection.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
73
+ ).optional(),
74
+ itemUpdate: z.enum([
75
+ "ANYONE",
76
+ "SITE_MEMBER",
77
+ "SITE_MEMBER_AUTHOR",
78
+ "CMS_EDITOR",
79
+ "PRIVILEGED"
80
+ ]).describe(
81
+ "Which users can update existing items in the collection.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
82
+ ).optional(),
83
+ itemRemove: z.enum([
84
+ "ANYONE",
85
+ "SITE_MEMBER",
86
+ "SITE_MEMBER_AUTHOR",
87
+ "CMS_EDITOR",
88
+ "PRIVILEGED"
89
+ ]).describe(
90
+ "Which users can remove items from the collection.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
91
+ ).optional(),
92
+ specialPermissions: z.array(
93
+ z.intersection(
94
+ z.object({
95
+ _id: z.string().describe("ID of the special permissions set.").regex(
96
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
97
+ "Must be a valid GUID"
98
+ ).optional(),
99
+ itemRead: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
100
+ "Whether the specified users or roles can read items from the collection.\n\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
101
+ ).optional(),
102
+ itemInsert: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
103
+ "Whether the specified users or roles can create new items in the collection.\n\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
104
+ ).optional(),
105
+ itemUpdate: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
106
+ "Whether the specified users or roles can update existing items in the collection.\n\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
107
+ ).optional(),
108
+ itemRemove: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
109
+ "Whether the specified users or roles can remove items from the collection.\n\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
110
+ ).optional()
111
+ }),
112
+ z.xor([
113
+ z.object({
114
+ userId: z.never().optional(),
115
+ policyId: z.never().optional()
116
+ }),
117
+ z.object({
118
+ policyId: z.never().optional(),
119
+ userId: z.string().describe("ID of the user for these special permissions.").max(64)
120
+ }),
121
+ z.object({
122
+ userId: z.never().optional(),
123
+ policyId: z.string().describe(
124
+ "ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\n\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\n\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions)."
125
+ ).max(64)
126
+ })
127
+ ])
128
+ )
129
+ ).max(1e3).optional()
130
+ }).describe("Permissions of the specified collection.").optional()
131
+ });
132
+ var UpdatePermissionsRequest = z.object({
133
+ dataPermissions: z.object({
134
+ _id: z.string().describe("ID of the collection for these permissions.").max(255),
135
+ itemRead: z.enum([
136
+ "ANYONE",
137
+ "SITE_MEMBER",
138
+ "SITE_MEMBER_AUTHOR",
139
+ "CMS_EDITOR",
140
+ "PRIVILEGED"
141
+ ]),
142
+ itemInsert: z.enum([
143
+ "ANYONE",
144
+ "SITE_MEMBER",
145
+ "SITE_MEMBER_AUTHOR",
146
+ "CMS_EDITOR",
147
+ "PRIVILEGED"
148
+ ]),
149
+ itemUpdate: z.enum([
150
+ "ANYONE",
151
+ "SITE_MEMBER",
152
+ "SITE_MEMBER_AUTHOR",
153
+ "CMS_EDITOR",
154
+ "PRIVILEGED"
155
+ ]),
156
+ itemRemove: z.enum([
157
+ "ANYONE",
158
+ "SITE_MEMBER",
159
+ "SITE_MEMBER_AUTHOR",
160
+ "CMS_EDITOR",
161
+ "PRIVILEGED"
162
+ ]),
163
+ specialPermissions: z.array(
164
+ z.intersection(
165
+ z.object({
166
+ _id: z.string().describe("ID of the special permissions set.").regex(
167
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
168
+ "Must be a valid GUID"
169
+ ).optional(),
170
+ itemRead: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
171
+ itemInsert: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
172
+ itemUpdate: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
173
+ itemRemove: z.enum(["UNSPECIFIED", "ALLOWED"]).optional()
174
+ }),
175
+ z.xor([
176
+ z.object({
177
+ userId: z.never().optional(),
178
+ policyId: z.never().optional()
179
+ }),
180
+ z.object({
181
+ policyId: z.never().optional(),
182
+ userId: z.string().describe("ID of the user for these special permissions.").max(64)
183
+ }),
184
+ z.object({
185
+ userId: z.never().optional(),
186
+ policyId: z.string().describe(
187
+ "ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\n\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\n\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions)."
188
+ ).max(64)
189
+ })
190
+ ])
191
+ )
192
+ ).max(1e3).optional()
193
+ }).describe("Permissions to update.")
194
+ });
195
+ var UpdatePermissionsResponse = z.object({
196
+ dataPermissions: z.object({
197
+ _id: z.string().describe("ID of the collection for these permissions.").max(255).optional(),
198
+ itemRead: z.enum([
199
+ "ANYONE",
200
+ "SITE_MEMBER",
201
+ "SITE_MEMBER_AUTHOR",
202
+ "CMS_EDITOR",
203
+ "PRIVILEGED"
204
+ ]).describe(
205
+ "Which users can read items from the collection.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
206
+ ).optional(),
207
+ itemInsert: z.enum([
208
+ "ANYONE",
209
+ "SITE_MEMBER",
210
+ "SITE_MEMBER_AUTHOR",
211
+ "CMS_EDITOR",
212
+ "PRIVILEGED"
213
+ ]).describe(
214
+ "Which users can create new items in the collection.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
215
+ ).optional(),
216
+ itemUpdate: z.enum([
217
+ "ANYONE",
218
+ "SITE_MEMBER",
219
+ "SITE_MEMBER_AUTHOR",
220
+ "CMS_EDITOR",
221
+ "PRIVILEGED"
222
+ ]).describe(
223
+ "Which users can update existing items in the collection.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
224
+ ).optional(),
225
+ itemRemove: z.enum([
226
+ "ANYONE",
227
+ "SITE_MEMBER",
228
+ "SITE_MEMBER_AUTHOR",
229
+ "CMS_EDITOR",
230
+ "PRIVILEGED"
231
+ ]).describe(
232
+ "Which users can remove items from the collection.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
233
+ ).optional(),
234
+ specialPermissions: z.array(
235
+ z.intersection(
236
+ z.object({
237
+ _id: z.string().describe("ID of the special permissions set.").regex(
238
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
239
+ "Must be a valid GUID"
240
+ ).optional(),
241
+ itemRead: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
242
+ "Whether the specified users or roles can read items from the collection.\n\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
243
+ ).optional(),
244
+ itemInsert: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
245
+ "Whether the specified users or roles can create new items in the collection.\n\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
246
+ ).optional(),
247
+ itemUpdate: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
248
+ "Whether the specified users or roles can update existing items in the collection.\n\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
249
+ ).optional(),
250
+ itemRemove: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
251
+ "Whether the specified users or roles can remove items from the collection.\n\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
252
+ ).optional()
253
+ }),
254
+ z.xor([
255
+ z.object({
256
+ userId: z.never().optional(),
257
+ policyId: z.never().optional()
258
+ }),
259
+ z.object({
260
+ policyId: z.never().optional(),
261
+ userId: z.string().describe("ID of the user for these special permissions.").max(64)
262
+ }),
263
+ z.object({
264
+ userId: z.never().optional(),
265
+ policyId: z.string().describe(
266
+ "ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\n\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\n\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions)."
267
+ ).max(64)
268
+ })
269
+ ])
270
+ )
271
+ ).max(1e3).optional()
272
+ }).describe("Updated permissions of the specified collection.").optional()
273
+ });
274
+ var AddSpecialPermissionsRequest = z.object({
275
+ dataCollectionId: z.string().describe("ID of the collection for which to grant special permissions.").max(256),
276
+ specialPermissions: z.intersection(
277
+ z.object({
278
+ _id: z.string().describe("ID of the special permissions set.").regex(
279
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
280
+ "Must be a valid GUID"
281
+ ).optional(),
282
+ itemRead: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
283
+ itemInsert: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
284
+ itemUpdate: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
285
+ itemRemove: z.enum(["UNSPECIFIED", "ALLOWED"]).optional()
286
+ }),
287
+ z.xor([
288
+ z.object({
289
+ policyId: z.never().optional(),
290
+ userId: z.string().describe("ID of the user for these special permissions.").max(64)
291
+ }),
292
+ z.object({
293
+ userId: z.never().optional(),
294
+ policyId: z.string().describe(
295
+ "ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\n\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\n\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions)."
296
+ ).max(64)
297
+ })
298
+ ])
299
+ ).describe(
300
+ "Special permissions to grant to the user or role for the specified collection."
301
+ )
302
+ });
303
+ var AddSpecialPermissionsResponse = z.object({
304
+ specialPermissions: z.intersection(
305
+ z.object({
306
+ _id: z.string().describe("ID of the special permissions set.").regex(
307
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
308
+ "Must be a valid GUID"
309
+ ).optional(),
310
+ itemRead: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
311
+ "Whether the specified users or roles can read items from the collection.\n\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
312
+ ).optional(),
313
+ itemInsert: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
314
+ "Whether the specified users or roles can create new items in the collection.\n\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
315
+ ).optional(),
316
+ itemUpdate: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
317
+ "Whether the specified users or roles can update existing items in the collection.\n\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
318
+ ).optional(),
319
+ itemRemove: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
320
+ "Whether the specified users or roles can remove items from the collection.\n\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
321
+ ).optional()
322
+ }),
323
+ z.xor([
324
+ z.object({
325
+ userId: z.never().optional(),
326
+ policyId: z.never().optional()
327
+ }),
328
+ z.object({
329
+ policyId: z.never().optional(),
330
+ userId: z.string().describe("ID of the user for these special permissions.").max(64)
331
+ }),
332
+ z.object({
333
+ userId: z.never().optional(),
334
+ policyId: z.string().describe(
335
+ "ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\n\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\n\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions)."
336
+ ).max(64)
337
+ })
338
+ ])
339
+ ).describe(
340
+ "Special permissions granted to the user or role for the specified collection."
341
+ ).optional()
342
+ });
343
+ var UpdateSpecialPermissionsRequest = z.object({
344
+ _id: z.string().describe("ID of the special permissions set.").regex(
345
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
346
+ "Must be a valid GUID"
347
+ ),
348
+ specialPermissions: z.intersection(
349
+ z.object({
350
+ _id: z.string().describe("ID of the special permissions set.").regex(
351
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
352
+ "Must be a valid GUID"
353
+ ).optional(),
354
+ itemRead: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
355
+ itemInsert: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
356
+ itemUpdate: z.enum(["UNSPECIFIED", "ALLOWED"]).optional(),
357
+ itemRemove: z.enum(["UNSPECIFIED", "ALLOWED"]).optional()
358
+ }),
359
+ z.xor([
360
+ z.object({
361
+ userId: z.never().optional(),
362
+ policyId: z.never().optional()
363
+ }),
364
+ z.object({
365
+ policyId: z.never().optional(),
366
+ userId: z.string().describe("ID of the user for these special permissions.").max(64)
367
+ }),
368
+ z.object({
369
+ userId: z.never().optional(),
370
+ policyId: z.string().describe(
371
+ "ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\n\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\n\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions)."
372
+ ).max(64)
373
+ })
374
+ ])
375
+ ).describe("Special permissions to update for the specified user or role.")
376
+ });
377
+ var UpdateSpecialPermissionsResponse = z.object({
378
+ specialPermissions: z.intersection(
379
+ z.object({
380
+ _id: z.string().describe("ID of the special permissions set.").regex(
381
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
382
+ "Must be a valid GUID"
383
+ ).optional(),
384
+ itemRead: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
385
+ "Whether the specified users or roles can read items from the collection.\n\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
386
+ ).optional(),
387
+ itemInsert: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
388
+ "Whether the specified users or roles can create new items in the collection.\n\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
389
+ ).optional(),
390
+ itemUpdate: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
391
+ "Whether the specified users or roles can update existing items in the collection.\n\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
392
+ ).optional(),
393
+ itemRemove: z.enum(["UNSPECIFIED", "ALLOWED"]).describe(
394
+ "Whether the specified users or roles can remove items from the collection.\n\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\n\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions)."
395
+ ).optional()
396
+ }),
397
+ z.xor([
398
+ z.object({
399
+ userId: z.never().optional(),
400
+ policyId: z.never().optional()
401
+ }),
402
+ z.object({
403
+ policyId: z.never().optional(),
404
+ userId: z.string().describe("ID of the user for these special permissions.").max(64)
405
+ }),
406
+ z.object({
407
+ userId: z.never().optional(),
408
+ policyId: z.string().describe(
409
+ "ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\n\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\n\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions)."
410
+ ).max(64)
411
+ })
412
+ ])
413
+ ).describe("Special permissions updated for the specified user or role.").optional()
414
+ });
415
+ var RemoveSpecialPermissionsRequest = z.object({
416
+ specialPermissionsId: z.string().describe("ID of the special permissions to remove.").regex(
417
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
418
+ "Must be a valid GUID"
419
+ )
420
+ });
421
+ var RemoveSpecialPermissionsResponse = z.object({});
422
+ var GetMyPermissionsRequest = z.object({
423
+ dataCollectionId: z.string().describe(
424
+ "ID of the collection for which to check the current user's permissions."
425
+ ).max(256)
426
+ });
427
+ var GetMyPermissionsResponse = z.object({
428
+ itemRead: z.boolean().describe("Whether the current user can read items from the collection.").optional(),
429
+ itemInsert: z.boolean().describe(
430
+ "Whether the current user can create new items in the collection."
431
+ ).optional(),
432
+ itemUpdate: z.boolean().describe(
433
+ "Whether the current user can update existing items in the collection."
434
+ ).optional(),
435
+ itemRemove: z.boolean().describe("Whether the current user can remove items from the collection.").optional()
436
+ });
437
+ // Annotate the CommonJS export names for ESM import in node:
438
+ 0 && (module.exports = {
439
+ AddSpecialPermissionsRequest,
440
+ AddSpecialPermissionsResponse,
441
+ GetMyPermissionsRequest,
442
+ GetMyPermissionsResponse,
443
+ GetPermissionsRequest,
444
+ GetPermissionsResponse,
445
+ RemoveSpecialPermissionsRequest,
446
+ RemoveSpecialPermissionsResponse,
447
+ UpdatePermissionsRequest,
448
+ UpdatePermissionsResponse,
449
+ UpdateSpecialPermissionsRequest,
450
+ UpdateSpecialPermissionsResponse
451
+ });
452
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../schemas.ts","../../src/data-v1-data-permissions-permissions.schemas.ts"],"sourcesContent":["export * from './src/data-v1-data-permissions-permissions.schemas.js';\n","import * as z from 'zod';\n\nexport const GetPermissionsRequest = z.object({\n dataCollectionId: z\n .string()\n .describe('ID of the collection to retrieve permissions of.')\n .max(256),\n});\nexport const GetPermissionsResponse = z.object({\n dataPermissions: z\n .object({\n _id: z\n .string()\n .describe('ID of the collection for these permissions.')\n .max(255)\n .optional(),\n itemRead: z\n .enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ])\n .describe(\n 'Which users can read items from the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemInsert: z\n .enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ])\n .describe(\n 'Which users can create new items in the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemUpdate: z\n .enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ])\n .describe(\n 'Which users can update existing items in the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemRemove: z\n .enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ])\n .describe(\n 'Which users can remove items from the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n specialPermissions: z\n .array(\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the special permissions set.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n itemRead: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can read items from the collection.\\n\\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemInsert: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can create new items in the collection.\\n\\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemUpdate: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can update existing items in the collection.\\n\\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemRemove: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can remove items from the collection.\\n\\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n userId: z.never().optional(),\n policyId: z.never().optional(),\n }),\n z.object({\n policyId: z.never().optional(),\n userId: z\n .string()\n .describe('ID of the user for these special permissions.')\n .max(64),\n }),\n z.object({\n userId: z.never().optional(),\n policyId: z\n .string()\n .describe(\n 'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n )\n .max(64),\n }),\n ])\n )\n )\n .max(1000)\n .optional(),\n })\n .describe('Permissions of the specified collection.')\n .optional(),\n});\nexport const UpdatePermissionsRequest = z.object({\n dataPermissions: z\n .object({\n _id: z\n .string()\n .describe('ID of the collection for these permissions.')\n .max(255),\n itemRead: z.enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ]),\n itemInsert: z.enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ]),\n itemUpdate: z.enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ]),\n itemRemove: z.enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ]),\n specialPermissions: z\n .array(\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the special permissions set.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n itemRead: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemInsert: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemUpdate: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemRemove: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n }),\n z.xor([\n z.object({\n userId: z.never().optional(),\n policyId: z.never().optional(),\n }),\n z.object({\n policyId: z.never().optional(),\n userId: z\n .string()\n .describe('ID of the user for these special permissions.')\n .max(64),\n }),\n z.object({\n userId: z.never().optional(),\n policyId: z\n .string()\n .describe(\n 'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n )\n .max(64),\n }),\n ])\n )\n )\n .max(1000)\n .optional(),\n })\n .describe('Permissions to update.'),\n});\nexport const UpdatePermissionsResponse = z.object({\n dataPermissions: z\n .object({\n _id: z\n .string()\n .describe('ID of the collection for these permissions.')\n .max(255)\n .optional(),\n itemRead: z\n .enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ])\n .describe(\n 'Which users can read items from the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemInsert: z\n .enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ])\n .describe(\n 'Which users can create new items in the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemUpdate: z\n .enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ])\n .describe(\n 'Which users can update existing items in the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemRemove: z\n .enum([\n 'ANYONE',\n 'SITE_MEMBER',\n 'SITE_MEMBER_AUTHOR',\n 'CMS_EDITOR',\n 'PRIVILEGED',\n ])\n .describe(\n 'Which users can remove items from the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n specialPermissions: z\n .array(\n z.intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the special permissions set.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n itemRead: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can read items from the collection.\\n\\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemInsert: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can create new items in the collection.\\n\\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemUpdate: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can update existing items in the collection.\\n\\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemRemove: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can remove items from the collection.\\n\\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n userId: z.never().optional(),\n policyId: z.never().optional(),\n }),\n z.object({\n policyId: z.never().optional(),\n userId: z\n .string()\n .describe('ID of the user for these special permissions.')\n .max(64),\n }),\n z.object({\n userId: z.never().optional(),\n policyId: z\n .string()\n .describe(\n 'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n )\n .max(64),\n }),\n ])\n )\n )\n .max(1000)\n .optional(),\n })\n .describe('Updated permissions of the specified collection.')\n .optional(),\n});\nexport const AddSpecialPermissionsRequest = z.object({\n dataCollectionId: z\n .string()\n .describe('ID of the collection for which to grant special permissions.')\n .max(256),\n specialPermissions: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the special permissions set.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n itemRead: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemInsert: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemUpdate: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemRemove: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n }),\n z.xor([\n z.object({\n policyId: z.never().optional(),\n userId: z\n .string()\n .describe('ID of the user for these special permissions.')\n .max(64),\n }),\n z.object({\n userId: z.never().optional(),\n policyId: z\n .string()\n .describe(\n 'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n )\n .max(64),\n }),\n ])\n )\n .describe(\n 'Special permissions to grant to the user or role for the specified collection.'\n ),\n});\nexport const AddSpecialPermissionsResponse = z.object({\n specialPermissions: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the special permissions set.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n itemRead: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can read items from the collection.\\n\\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemInsert: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can create new items in the collection.\\n\\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemUpdate: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can update existing items in the collection.\\n\\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemRemove: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can remove items from the collection.\\n\\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n userId: z.never().optional(),\n policyId: z.never().optional(),\n }),\n z.object({\n policyId: z.never().optional(),\n userId: z\n .string()\n .describe('ID of the user for these special permissions.')\n .max(64),\n }),\n z.object({\n userId: z.never().optional(),\n policyId: z\n .string()\n .describe(\n 'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n )\n .max(64),\n }),\n ])\n )\n .describe(\n 'Special permissions granted to the user or role for the specified collection.'\n )\n .optional(),\n});\nexport const UpdateSpecialPermissionsRequest = z.object({\n _id: z\n .string()\n .describe('ID of the special permissions set.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n specialPermissions: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the special permissions set.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n itemRead: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemInsert: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemUpdate: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n itemRemove: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n }),\n z.xor([\n z.object({\n userId: z.never().optional(),\n policyId: z.never().optional(),\n }),\n z.object({\n policyId: z.never().optional(),\n userId: z\n .string()\n .describe('ID of the user for these special permissions.')\n .max(64),\n }),\n z.object({\n userId: z.never().optional(),\n policyId: z\n .string()\n .describe(\n 'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n )\n .max(64),\n }),\n ])\n )\n .describe('Special permissions to update for the specified user or role.'),\n});\nexport const UpdateSpecialPermissionsResponse = z.object({\n specialPermissions: z\n .intersection(\n z.object({\n _id: z\n .string()\n .describe('ID of the special permissions set.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n itemRead: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can read items from the collection.\\n\\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemInsert: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can create new items in the collection.\\n\\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemUpdate: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can update existing items in the collection.\\n\\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n itemRemove: z\n .enum(['UNSPECIFIED', 'ALLOWED'])\n .describe(\n 'Whether the specified users or roles can remove items from the collection.\\n\\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n )\n .optional(),\n }),\n z.xor([\n z.object({\n userId: z.never().optional(),\n policyId: z.never().optional(),\n }),\n z.object({\n policyId: z.never().optional(),\n userId: z\n .string()\n .describe('ID of the user for these special permissions.')\n .max(64),\n }),\n z.object({\n userId: z.never().optional(),\n policyId: z\n .string()\n .describe(\n 'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n )\n .max(64),\n }),\n ])\n )\n .describe('Special permissions updated for the specified user or role.')\n .optional(),\n});\nexport const RemoveSpecialPermissionsRequest = z.object({\n specialPermissionsId: z\n .string()\n .describe('ID of the special permissions to remove.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const RemoveSpecialPermissionsResponse = z.object({});\nexport const GetMyPermissionsRequest = z.object({\n dataCollectionId: z\n .string()\n .describe(\n \"ID of the collection for which to check the current user's permissions.\"\n )\n .max(256),\n});\nexport const GetMyPermissionsResponse = z.object({\n itemRead: z\n .boolean()\n .describe('Whether the current user can read items from the collection.')\n .optional(),\n itemInsert: z\n .boolean()\n .describe(\n 'Whether the current user can create new items in the collection.'\n )\n .optional(),\n itemUpdate: z\n .boolean()\n .describe(\n 'Whether the current user can update existing items in the collection.'\n )\n .optional(),\n itemRemove: z\n .boolean()\n .describe('Whether the current user can remove items from the collection.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,k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