@wix/auto_sdk_data_permissions 1.0.31 → 1.0.32

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.
@@ -192,6 +192,378 @@ interface GetMyPermissionsResponse {
192
192
  /** Whether the current user can remove items from the collection. */
193
193
  itemRemove?: boolean;
194
194
  }
195
+ interface MigrateCustomRolesRequest {
196
+ /**
197
+ * ID of the role to update. If empty, all roles in the site are updated.
198
+ * @format GUID
199
+ */
200
+ policyId?: string | null;
201
+ }
202
+ interface MigrateCustomRolesResponse {
203
+ }
204
+ interface PolicyAssignmentsUpdated extends PolicyAssignmentsUpdatedEventOneOf {
205
+ policyAssigned?: PolicyAssigned;
206
+ policyUnassigned?: PolicyUnassigned;
207
+ policyAssignmentUpdated?: PolicyAssignmentUpdated;
208
+ }
209
+ /** @oneof */
210
+ interface PolicyAssignmentsUpdatedEventOneOf {
211
+ policyAssigned?: PolicyAssigned;
212
+ policyUnassigned?: PolicyUnassigned;
213
+ policyAssignmentUpdated?: PolicyAssignmentUpdated;
214
+ }
215
+ interface PolicyAssigned {
216
+ subject?: Subject;
217
+ assignment?: PolicyAssignment[];
218
+ }
219
+ interface Subject {
220
+ /** ID of identity assigned to the asset. */
221
+ id?: string;
222
+ /** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */
223
+ subjectType?: SubjectTypeWithLiterals;
224
+ /** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */
225
+ context?: SubjectContext;
226
+ }
227
+ declare enum SubjectType {
228
+ UNKNOWN = "UNKNOWN",
229
+ ACCOUNT = "ACCOUNT",
230
+ USER = "USER",
231
+ USER_GROUP = "USER_GROUP",
232
+ MEMBER_GROUP = "MEMBER_GROUP",
233
+ VISITOR_GROUP = "VISITOR_GROUP",
234
+ EXTERNAL_APP = "EXTERNAL_APP",
235
+ ACCOUNT_GROUP = "ACCOUNT_GROUP",
236
+ WIX_APP = "WIX_APP"
237
+ }
238
+ /** @enumType */
239
+ type SubjectTypeWithLiterals = SubjectType | 'UNKNOWN' | 'ACCOUNT' | 'USER' | 'USER_GROUP' | 'MEMBER_GROUP' | 'VISITOR_GROUP' | 'EXTERNAL_APP' | 'ACCOUNT_GROUP' | 'WIX_APP';
240
+ interface SubjectContext {
241
+ id?: string;
242
+ contextType?: SubjectContextTypeWithLiterals;
243
+ }
244
+ declare enum SubjectContextType {
245
+ UNKNOWN_CTX = "UNKNOWN_CTX",
246
+ ORG_CTX = "ORG_CTX",
247
+ ACCOUNT_CTX = "ACCOUNT_CTX"
248
+ }
249
+ /** @enumType */
250
+ type SubjectContextTypeWithLiterals = SubjectContextType | 'UNKNOWN_CTX' | 'ORG_CTX' | 'ACCOUNT_CTX';
251
+ interface PolicyAssignment {
252
+ policyId?: string;
253
+ resource?: ResourcePath;
254
+ condition?: PolicyCondition;
255
+ assignmentId?: string | null;
256
+ }
257
+ interface ResourcePath {
258
+ organization?: string | null;
259
+ account?: string | null;
260
+ site?: string | null;
261
+ resource?: Resource;
262
+ }
263
+ /**
264
+ * A custom resource. Is used to represent some asset that is not a direct resource context (site or account), but something custom.
265
+ * For example: payment method, blog post, domain, logo.
266
+ */
267
+ interface Resource {
268
+ /** The resource id. */
269
+ id?: string | null;
270
+ /** The resource type */
271
+ type?: string | null;
272
+ }
273
+ interface PolicyCondition {
274
+ /** The type of the condition */
275
+ condition?: ConditionType;
276
+ }
277
+ interface ConditionType extends ConditionTypeOfOneOf {
278
+ /** @deprecated */
279
+ simpleCondition?: SimpleCondition;
280
+ /** A logic combination between several conditions, with an operator between them */
281
+ joinedConditions?: JoinedCondition;
282
+ /** @deprecated */
283
+ environmentCondition?: EnvironmentCondition;
284
+ /** A single condition */
285
+ condition?: Condition;
286
+ }
287
+ /** @oneof */
288
+ interface ConditionTypeOfOneOf {
289
+ /** @deprecated */
290
+ simpleCondition?: SimpleCondition;
291
+ /** A logic combination between several conditions, with an operator between them */
292
+ joinedConditions?: JoinedCondition;
293
+ /** @deprecated */
294
+ environmentCondition?: EnvironmentCondition;
295
+ /** A single condition */
296
+ condition?: Condition;
297
+ }
298
+ interface SimpleCondition {
299
+ attrName?: string;
300
+ value?: SimpleConditionValue;
301
+ op?: SimpleConditionOperatorWithLiterals;
302
+ conditionModelId?: string;
303
+ }
304
+ interface SimpleConditionValue extends SimpleConditionValueValueOneOf {
305
+ attrName?: string;
306
+ stringValue?: string;
307
+ boolValue?: boolean;
308
+ }
309
+ /** @oneof */
310
+ interface SimpleConditionValueValueOneOf {
311
+ attrName?: string;
312
+ stringValue?: string;
313
+ boolValue?: boolean;
314
+ }
315
+ declare enum SimpleConditionOperator {
316
+ UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
317
+ EQUAL = "EQUAL"
318
+ }
319
+ /** @enumType */
320
+ type SimpleConditionOperatorWithLiterals = SimpleConditionOperator | 'UNKNOWN_SIMPLE_OP' | 'EQUAL';
321
+ interface JoinedCondition {
322
+ /** The operator that should be used when evaluating the condition */
323
+ op?: JoinedConditionOperatorWithLiterals;
324
+ /** The conditions that should be evaluated, and then joined using the operator provided */
325
+ conditions?: ConditionType[];
326
+ }
327
+ declare enum JoinedConditionOperator {
328
+ UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
329
+ OR = "OR",
330
+ AND = "AND"
331
+ }
332
+ /** @enumType */
333
+ type JoinedConditionOperatorWithLiterals = JoinedConditionOperator | 'UNKNOWN_JOIN_OP' | 'OR' | 'AND';
334
+ interface EnvironmentCondition extends EnvironmentConditionConditionOneOf {
335
+ experimentCondition?: ExperimentCondition;
336
+ }
337
+ /** @oneof */
338
+ interface EnvironmentConditionConditionOneOf {
339
+ experimentCondition?: ExperimentCondition;
340
+ }
341
+ interface ExperimentCondition {
342
+ spec?: string;
343
+ fallbackValue?: string;
344
+ expectedValue?: string;
345
+ }
346
+ interface Condition {
347
+ /** The unique identifier of the condition model. Indicates which actions the condition is working on */
348
+ conditionModelId?: string;
349
+ /** The operator that should be evaluated */
350
+ operator?: ConditionOperator;
351
+ }
352
+ interface ConditionOperator extends ConditionOperatorOperatorsOneOf {
353
+ /** Comparison of equality - will be evaluated to true if the given parties are equal */
354
+ equals?: EqualOperator;
355
+ /** Regex operator - will be evaluated to true if the given value matches the provided regex */
356
+ like?: LikeOperator;
357
+ /** Petri experiment - will be evaluated using petri. */
358
+ experiment?: ExperimentOperator;
359
+ /** Operator that indicates a dependency on another subject being allowed to perform something. */
360
+ dependOn?: DependOnOperator;
361
+ }
362
+ /** @oneof */
363
+ interface ConditionOperatorOperatorsOneOf {
364
+ /** Comparison of equality - will be evaluated to true if the given parties are equal */
365
+ equals?: EqualOperator;
366
+ /** Regex operator - will be evaluated to true if the given value matches the provided regex */
367
+ like?: LikeOperator;
368
+ /** Petri experiment - will be evaluated using petri. */
369
+ experiment?: ExperimentOperator;
370
+ /** Operator that indicates a dependency on another subject being allowed to perform something. */
371
+ dependOn?: DependOnOperator;
372
+ }
373
+ interface EqualOperator {
374
+ /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the other side (attribute/value) */
375
+ attrName?: string;
376
+ /** The value to compare to. If the two parties are equal - we will return true. */
377
+ value?: ConditionValue;
378
+ }
379
+ interface ConditionValue extends ConditionValueValueOneOf {
380
+ /** an attribute. We'll first retrieve the value of the attribute (from the request or from pre-indexed values), and then compare to what it needs to be compared with. */
381
+ attrName?: string;
382
+ /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
383
+ stringValue?: string;
384
+ /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
385
+ boolValue?: boolean;
386
+ }
387
+ /** @oneof */
388
+ interface ConditionValueValueOneOf {
389
+ /** an attribute. We'll first retrieve the value of the attribute (from the request or from pre-indexed values), and then compare to what it needs to be compared with. */
390
+ attrName?: string;
391
+ /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
392
+ stringValue?: string;
393
+ /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
394
+ boolValue?: boolean;
395
+ }
396
+ interface LikeOperator {
397
+ /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the regex values provided. */
398
+ attrName?: string;
399
+ /** The regex values which the attribute value should be evaluated on. If the attribute value matches at least one of the regular expressions provided - we will return true */
400
+ values?: string[];
401
+ }
402
+ interface ExperimentOperator {
403
+ /** The spec to conduct the experiment on. */
404
+ spec?: string;
405
+ /** The value to use if the experiment could not be conducted */
406
+ fallbackValue?: string;
407
+ /** The expected value of the experiment conduction. If it matches the actual value - true will be returned. Otherwise - false. */
408
+ expectedValue?: string;
409
+ }
410
+ /** Implies that the policy takes affect only if the depend on subject is permitted as well. */
411
+ interface DependOnOperator {
412
+ /** The subject on which the current entry depends on. If the subject is allowed to perform what the query was about - the condition will be evaluated to true. Otherwise - false */
413
+ dependOnSubject?: Subject;
414
+ }
415
+ interface PolicyUnassigned {
416
+ subject?: Subject;
417
+ assignment?: PolicyAssignment[];
418
+ }
419
+ interface PolicyAssignmentUpdated {
420
+ subject?: Subject;
421
+ fromAssignment?: PolicyAssignment[];
422
+ toAssignment?: PolicyAssignment[];
423
+ }
424
+ interface Empty {
425
+ }
426
+ interface PolicyAuthorizationDataUpdated {
427
+ policyId?: string;
428
+ fromPolicyStatements?: PolicyStatement[];
429
+ toPolicyStatements?: PolicyStatement[];
430
+ policyType?: PolicyTypeWithLiterals;
431
+ policyOwner?: PolicyOwner;
432
+ }
433
+ interface PolicyStatement {
434
+ /** @readonly */
435
+ id?: string | null;
436
+ permissions?: string[];
437
+ scopes?: string[];
438
+ effect?: EffectWithLiterals;
439
+ condition?: PolicyCondition;
440
+ }
441
+ declare enum Effect {
442
+ UNKNOWN_EFFECT = "UNKNOWN_EFFECT",
443
+ ALLOW = "ALLOW",
444
+ DENY = "DENY"
445
+ }
446
+ /** @enumType */
447
+ type EffectWithLiterals = Effect | 'UNKNOWN_EFFECT' | 'ALLOW' | 'DENY';
448
+ declare enum PolicyType {
449
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
450
+ PREDEFINED = "PREDEFINED",
451
+ CUSTOM = "CUSTOM",
452
+ INLINE_CUSTOM = "INLINE_CUSTOM"
453
+ }
454
+ /** @enumType */
455
+ type PolicyTypeWithLiterals = PolicyType | 'UNKNOWN_STATUS' | 'PREDEFINED' | 'CUSTOM' | 'INLINE_CUSTOM';
456
+ interface PolicyOwner {
457
+ type?: PolicyOwnerTypeWithLiterals;
458
+ id?: string;
459
+ }
460
+ declare enum PolicyOwnerType {
461
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
462
+ WIX = "WIX",
463
+ WIX_ACCOUNT = "WIX_ACCOUNT"
464
+ }
465
+ /** @enumType */
466
+ type PolicyOwnerTypeWithLiterals = PolicyOwnerType | 'UNKNOWN_TYPE' | 'WIX' | 'WIX_ACCOUNT';
467
+ interface DomainEvent extends DomainEventBodyOneOf {
468
+ createdEvent?: EntityCreatedEvent;
469
+ updatedEvent?: EntityUpdatedEvent;
470
+ deletedEvent?: EntityDeletedEvent;
471
+ actionEvent?: ActionEvent;
472
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
473
+ id?: string;
474
+ /**
475
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
476
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
477
+ */
478
+ entityFqdn?: string;
479
+ /**
480
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
481
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
482
+ */
483
+ slug?: string;
484
+ /** ID of the entity associated with the event. */
485
+ entityId?: string;
486
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
487
+ eventTime?: Date | null;
488
+ /**
489
+ * Whether the event was triggered as a result of a privacy regulation application
490
+ * (for example, GDPR).
491
+ */
492
+ triggeredByAnonymizeRequest?: boolean | null;
493
+ /** If present, indicates the action that triggered the event. */
494
+ originatedFrom?: string | null;
495
+ /**
496
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
497
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
498
+ */
499
+ entityEventSequence?: string | null;
500
+ }
501
+ /** @oneof */
502
+ interface DomainEventBodyOneOf {
503
+ createdEvent?: EntityCreatedEvent;
504
+ updatedEvent?: EntityUpdatedEvent;
505
+ deletedEvent?: EntityDeletedEvent;
506
+ actionEvent?: ActionEvent;
507
+ }
508
+ interface EntityCreatedEvent {
509
+ entityAsJson?: string;
510
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
511
+ restoreInfo?: RestoreInfo;
512
+ }
513
+ interface RestoreInfo {
514
+ deletedDate?: Date | null;
515
+ }
516
+ interface EntityUpdatedEvent {
517
+ /**
518
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
519
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
520
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
521
+ */
522
+ currentEntityAsJson?: string;
523
+ }
524
+ interface EntityDeletedEvent {
525
+ /** Entity that was deleted. */
526
+ deletedEntityAsJson?: string | null;
527
+ }
528
+ interface ActionEvent {
529
+ bodyAsJson?: string;
530
+ }
531
+ /** @docsIgnore */
532
+ type GetPermissionsApplicationErrors = {
533
+ code?: 'WDE0025';
534
+ description?: string;
535
+ data?: Record<string, any>;
536
+ };
537
+ /** @docsIgnore */
538
+ type UpdatePermissionsApplicationErrors = {
539
+ code?: 'WDE0025';
540
+ description?: string;
541
+ data?: Record<string, any>;
542
+ };
543
+ /** @docsIgnore */
544
+ type AddSpecialPermissionsApplicationErrors = {
545
+ code?: 'ALREADY_EXISTS';
546
+ description?: string;
547
+ data?: Record<string, any>;
548
+ };
549
+ /** @docsIgnore */
550
+ type UpdateSpecialPermissionsApplicationErrors = {
551
+ code?: 'NOT_FOUND';
552
+ description?: string;
553
+ data?: Record<string, any>;
554
+ };
555
+ /** @docsIgnore */
556
+ type RemoveSpecialPermissionsApplicationErrors = {
557
+ code?: 'NOT_FOUND';
558
+ description?: string;
559
+ data?: Record<string, any>;
560
+ };
561
+ /** @docsIgnore */
562
+ type GetMyPermissionsApplicationErrors = {
563
+ code?: 'WDE0025';
564
+ description?: string;
565
+ data?: Record<string, any>;
566
+ };
195
567
 
196
568
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
197
569
  getUrl: (context: any) => string;
@@ -214,4 +586,4 @@ declare function removeSpecialPermissions(): __PublicMethodMetaInfo<'DELETE', {
214
586
  }, RemoveSpecialPermissionsRequest$1, RemoveSpecialPermissionsRequest, RemoveSpecialPermissionsResponse$1, RemoveSpecialPermissionsResponse>;
215
587
  declare function getMyPermissions(): __PublicMethodMetaInfo<'GET', {}, GetMyPermissionsRequest$1, GetMyPermissionsRequest, GetMyPermissionsResponse$1, GetMyPermissionsResponse>;
216
588
 
217
- export { type __PublicMethodMetaInfo, addSpecialPermissions, getMyPermissions, getPermissions, removeSpecialPermissions, updatePermissions, updateSpecialPermissions };
589
+ export { AccessLevel as AccessLevelOriginal, type AccessLevelWithLiterals as AccessLevelWithLiteralsOriginal, Access as AccessOriginal, type AccessWithLiterals as AccessWithLiteralsOriginal, type ActionEvent as ActionEventOriginal, type AddSpecialPermissionsApplicationErrors as AddSpecialPermissionsApplicationErrorsOriginal, type AddSpecialPermissionsRequest as AddSpecialPermissionsRequestOriginal, type AddSpecialPermissionsResponse as AddSpecialPermissionsResponseOriginal, type ConditionOperatorOperatorsOneOf as ConditionOperatorOperatorsOneOfOriginal, type ConditionOperator as ConditionOperatorOriginal, type Condition as ConditionOriginal, type ConditionTypeOfOneOf as ConditionTypeOfOneOfOriginal, type ConditionType as ConditionTypeOriginal, type ConditionValue as ConditionValueOriginal, type ConditionValueValueOneOf as ConditionValueValueOneOfOriginal, type DataPermissions as DataPermissionsOriginal, type DependOnOperator as DependOnOperatorOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, Effect as EffectOriginal, type EffectWithLiterals as EffectWithLiteralsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type EnvironmentConditionConditionOneOf as EnvironmentConditionConditionOneOfOriginal, type EnvironmentCondition as EnvironmentConditionOriginal, type EqualOperator as EqualOperatorOriginal, type ExperimentCondition as ExperimentConditionOriginal, type ExperimentOperator as ExperimentOperatorOriginal, type GetMyPermissionsApplicationErrors as GetMyPermissionsApplicationErrorsOriginal, type GetMyPermissionsRequest as GetMyPermissionsRequestOriginal, type GetMyPermissionsResponse as GetMyPermissionsResponseOriginal, type GetPermissionsApplicationErrors as GetPermissionsApplicationErrorsOriginal, type GetPermissionsRequest as GetPermissionsRequestOriginal, type GetPermissionsResponse as GetPermissionsResponseOriginal, JoinedConditionOperator as JoinedConditionOperatorOriginal, type JoinedConditionOperatorWithLiterals as JoinedConditionOperatorWithLiteralsOriginal, type JoinedCondition as JoinedConditionOriginal, type LikeOperator as LikeOperatorOriginal, type MigrateCustomRolesRequest as MigrateCustomRolesRequestOriginal, type MigrateCustomRolesResponse as MigrateCustomRolesResponseOriginal, type PolicyAssigned as PolicyAssignedOriginal, type PolicyAssignment as PolicyAssignmentOriginal, type PolicyAssignmentUpdated as PolicyAssignmentUpdatedOriginal, type PolicyAssignmentsUpdatedEventOneOf as PolicyAssignmentsUpdatedEventOneOfOriginal, type PolicyAssignmentsUpdated as PolicyAssignmentsUpdatedOriginal, type PolicyAuthorizationDataUpdated as PolicyAuthorizationDataUpdatedOriginal, type PolicyCondition as PolicyConditionOriginal, type PolicyOwner as PolicyOwnerOriginal, PolicyOwnerType as PolicyOwnerTypeOriginal, type PolicyOwnerTypeWithLiterals as PolicyOwnerTypeWithLiteralsOriginal, type PolicyStatement as PolicyStatementOriginal, PolicyType as PolicyTypeOriginal, type PolicyTypeWithLiterals as PolicyTypeWithLiteralsOriginal, type PolicyUnassigned as PolicyUnassignedOriginal, type RemoveSpecialPermissionsApplicationErrors as RemoveSpecialPermissionsApplicationErrorsOriginal, type RemoveSpecialPermissionsRequest as RemoveSpecialPermissionsRequestOriginal, type RemoveSpecialPermissionsResponse as RemoveSpecialPermissionsResponseOriginal, type Resource as ResourceOriginal, type ResourcePath as ResourcePathOriginal, type RestoreInfo as RestoreInfoOriginal, SimpleConditionOperator as SimpleConditionOperatorOriginal, type SimpleConditionOperatorWithLiterals as SimpleConditionOperatorWithLiteralsOriginal, type SimpleCondition as SimpleConditionOriginal, type SimpleConditionValue as SimpleConditionValueOriginal, type SimpleConditionValueValueOneOf as SimpleConditionValueValueOneOfOriginal, type SpecialPermissions as SpecialPermissionsOriginal, type SpecialPermissionsSubjectOneOf as SpecialPermissionsSubjectOneOfOriginal, type SubjectContext as SubjectContextOriginal, SubjectContextType as SubjectContextTypeOriginal, type SubjectContextTypeWithLiterals as SubjectContextTypeWithLiteralsOriginal, type Subject as SubjectOriginal, SubjectType as SubjectTypeOriginal, type SubjectTypeWithLiterals as SubjectTypeWithLiteralsOriginal, type UpdatePermissionsApplicationErrors as UpdatePermissionsApplicationErrorsOriginal, type UpdatePermissionsRequest as UpdatePermissionsRequestOriginal, type UpdatePermissionsResponse as UpdatePermissionsResponseOriginal, type UpdateSpecialPermissionsApplicationErrors as UpdateSpecialPermissionsApplicationErrorsOriginal, type UpdateSpecialPermissionsRequest as UpdateSpecialPermissionsRequestOriginal, type UpdateSpecialPermissionsResponse as UpdateSpecialPermissionsResponseOriginal, type __PublicMethodMetaInfo, addSpecialPermissions, getMyPermissions, getPermissions, removeSpecialPermissions, updatePermissions, updateSpecialPermissions };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ AccessLevelOriginal: () => AccessLevel,
24
+ AccessOriginal: () => Access,
25
+ EffectOriginal: () => Effect,
26
+ JoinedConditionOperatorOriginal: () => JoinedConditionOperator,
27
+ PolicyOwnerTypeOriginal: () => PolicyOwnerType,
28
+ PolicyTypeOriginal: () => PolicyType,
29
+ SimpleConditionOperatorOriginal: () => SimpleConditionOperator,
30
+ SubjectContextTypeOriginal: () => SubjectContextType,
31
+ SubjectTypeOriginal: () => SubjectType,
23
32
  addSpecialPermissions: () => addSpecialPermissions2,
24
33
  getMyPermissions: () => getMyPermissions2,
25
34
  getPermissions: () => getPermissions2,
@@ -207,6 +216,70 @@ function getMyPermissions(payload) {
207
216
  return __getMyPermissions;
208
217
  }
209
218
 
219
+ // src/data-v1-data-permissions-permissions.types.ts
220
+ var AccessLevel = /* @__PURE__ */ ((AccessLevel2) => {
221
+ AccessLevel2["UNKNOWN"] = "UNKNOWN";
222
+ AccessLevel2["ANYONE"] = "ANYONE";
223
+ AccessLevel2["SITE_MEMBER"] = "SITE_MEMBER";
224
+ AccessLevel2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
225
+ AccessLevel2["CMS_EDITOR"] = "CMS_EDITOR";
226
+ AccessLevel2["PRIVILEGED"] = "PRIVILEGED";
227
+ return AccessLevel2;
228
+ })(AccessLevel || {});
229
+ var Access = /* @__PURE__ */ ((Access2) => {
230
+ Access2["UNSPECIFIED"] = "UNSPECIFIED";
231
+ Access2["ALLOWED"] = "ALLOWED";
232
+ return Access2;
233
+ })(Access || {});
234
+ var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
235
+ SubjectType2["UNKNOWN"] = "UNKNOWN";
236
+ SubjectType2["ACCOUNT"] = "ACCOUNT";
237
+ SubjectType2["USER"] = "USER";
238
+ SubjectType2["USER_GROUP"] = "USER_GROUP";
239
+ SubjectType2["MEMBER_GROUP"] = "MEMBER_GROUP";
240
+ SubjectType2["VISITOR_GROUP"] = "VISITOR_GROUP";
241
+ SubjectType2["EXTERNAL_APP"] = "EXTERNAL_APP";
242
+ SubjectType2["ACCOUNT_GROUP"] = "ACCOUNT_GROUP";
243
+ SubjectType2["WIX_APP"] = "WIX_APP";
244
+ return SubjectType2;
245
+ })(SubjectType || {});
246
+ var SubjectContextType = /* @__PURE__ */ ((SubjectContextType2) => {
247
+ SubjectContextType2["UNKNOWN_CTX"] = "UNKNOWN_CTX";
248
+ SubjectContextType2["ORG_CTX"] = "ORG_CTX";
249
+ SubjectContextType2["ACCOUNT_CTX"] = "ACCOUNT_CTX";
250
+ return SubjectContextType2;
251
+ })(SubjectContextType || {});
252
+ var SimpleConditionOperator = /* @__PURE__ */ ((SimpleConditionOperator2) => {
253
+ SimpleConditionOperator2["UNKNOWN_SIMPLE_OP"] = "UNKNOWN_SIMPLE_OP";
254
+ SimpleConditionOperator2["EQUAL"] = "EQUAL";
255
+ return SimpleConditionOperator2;
256
+ })(SimpleConditionOperator || {});
257
+ var JoinedConditionOperator = /* @__PURE__ */ ((JoinedConditionOperator2) => {
258
+ JoinedConditionOperator2["UNKNOWN_JOIN_OP"] = "UNKNOWN_JOIN_OP";
259
+ JoinedConditionOperator2["OR"] = "OR";
260
+ JoinedConditionOperator2["AND"] = "AND";
261
+ return JoinedConditionOperator2;
262
+ })(JoinedConditionOperator || {});
263
+ var Effect = /* @__PURE__ */ ((Effect2) => {
264
+ Effect2["UNKNOWN_EFFECT"] = "UNKNOWN_EFFECT";
265
+ Effect2["ALLOW"] = "ALLOW";
266
+ Effect2["DENY"] = "DENY";
267
+ return Effect2;
268
+ })(Effect || {});
269
+ var PolicyType = /* @__PURE__ */ ((PolicyType2) => {
270
+ PolicyType2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
271
+ PolicyType2["PREDEFINED"] = "PREDEFINED";
272
+ PolicyType2["CUSTOM"] = "CUSTOM";
273
+ PolicyType2["INLINE_CUSTOM"] = "INLINE_CUSTOM";
274
+ return PolicyType2;
275
+ })(PolicyType || {});
276
+ var PolicyOwnerType = /* @__PURE__ */ ((PolicyOwnerType2) => {
277
+ PolicyOwnerType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
278
+ PolicyOwnerType2["WIX"] = "WIX";
279
+ PolicyOwnerType2["WIX_ACCOUNT"] = "WIX_ACCOUNT";
280
+ return PolicyOwnerType2;
281
+ })(PolicyOwnerType || {});
282
+
210
283
  // src/data-v1-data-permissions-permissions.meta.ts
211
284
  function getPermissions2() {
212
285
  const payload = {};
@@ -320,6 +393,15 @@ function getMyPermissions2() {
320
393
  }
321
394
  // Annotate the CommonJS export names for ESM import in node:
322
395
  0 && (module.exports = {
396
+ AccessLevelOriginal,
397
+ AccessOriginal,
398
+ EffectOriginal,
399
+ JoinedConditionOperatorOriginal,
400
+ PolicyOwnerTypeOriginal,
401
+ PolicyTypeOriginal,
402
+ SimpleConditionOperatorOriginal,
403
+ SubjectContextTypeOriginal,
404
+ SubjectTypeOriginal,
323
405
  addSpecialPermissions,
324
406
  getMyPermissions,
325
407
  getPermissions,