@wix/auto_sdk_user-management_contributors 1.0.69 → 1.0.71

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 (44) hide show
  1. package/build/cjs/index.d.ts +3 -3
  2. package/build/cjs/index.js +2 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +5 -3
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/es/index.d.mts +3 -3
  8. package/build/es/index.mjs +2 -2
  9. package/build/es/index.mjs.map +1 -1
  10. package/build/es/index.typings.d.mts +5 -3
  11. package/build/es/index.typings.mjs.map +1 -1
  12. package/build/es/meta.mjs.map +1 -1
  13. package/build/internal/cjs/index.d.ts +6 -6
  14. package/build/internal/cjs/index.typings.d.ts +30 -6
  15. package/build/internal/cjs/meta.d.ts +64 -0
  16. package/build/internal/es/index.d.mts +6 -6
  17. package/build/internal/es/index.typings.d.mts +30 -6
  18. package/build/internal/es/meta.d.mts +64 -0
  19. package/package.json +5 -12
  20. package/build/cjs/schemas.d.ts +0 -49
  21. package/build/cjs/schemas.js +0 -127
  22. package/build/cjs/schemas.js.map +0 -1
  23. package/build/es/schemas.d.mts +0 -49
  24. package/build/es/schemas.mjs +0 -83
  25. package/build/es/schemas.mjs.map +0 -1
  26. package/build/internal/cjs/index.js +0 -738
  27. package/build/internal/cjs/index.js.map +0 -1
  28. package/build/internal/cjs/index.typings.js +0 -653
  29. package/build/internal/cjs/index.typings.js.map +0 -1
  30. package/build/internal/cjs/meta.js +0 -593
  31. package/build/internal/cjs/meta.js.map +0 -1
  32. package/build/internal/cjs/schemas.d.ts +0 -49
  33. package/build/internal/cjs/schemas.js +0 -127
  34. package/build/internal/cjs/schemas.js.map +0 -1
  35. package/build/internal/es/index.mjs +0 -698
  36. package/build/internal/es/index.mjs.map +0 -1
  37. package/build/internal/es/index.typings.mjs +0 -614
  38. package/build/internal/es/index.typings.mjs.map +0 -1
  39. package/build/internal/es/meta.mjs +0 -551
  40. package/build/internal/es/meta.mjs.map +0 -1
  41. package/build/internal/es/schemas.d.mts +0 -49
  42. package/build/internal/es/schemas.mjs +0 -83
  43. package/build/internal/es/schemas.mjs.map +0 -1
  44. package/schemas/package.json +0 -3
@@ -9,7 +9,7 @@ interface GetSiteContributorsV2Signature {
9
9
  * returns a list of all the contributors + invites to be contributors of a given meta site ID taken from the
10
10
  * context.
11
11
  */
12
- (options?: GetSiteContributorsV2Options): Promise<NonNullablePaths<GetSiteContributorsV2Response, `contributors` | `contributors.${number}.metaData._id` | `contributors.${number}._id` | `contributors.${number}.accountGroup` | `invites` | `invites.${number}._id` | `invites.${number}.siteId` | `invites.${number}.email` | `invites.${number}.inviterId` | `invites.${number}.status` | `invites.${number}.acceptLink` | `invites.${number}.inviterAccountId` | `contributorsQuota.limitedOptions.limit` | `contributorsQuota.limitedOptions.used` | `contributorsQuota.type` | `pendingOwner.email` | `pendingOwner.acceptLink` | `enrichedInvites` | `enrichedInvites.${number}._id` | `enrichedInvites.${number}.email` | `enrichedInvites.${number}.acceptLink` | `enrichedInvites.${number}.inviterId` | `enrichedInvites.${number}.siteId` | `enrichedInvites.${number}.status`, 5>>;
12
+ (options?: GetSiteContributorsV2Options): Promise<NonNullablePaths<GetSiteContributorsV2Response, `contributors` | `contributors.${number}.metaData._id` | `contributors.${number}._id` | `contributors.${number}.accountGroup` | `invites` | `invites.${number}._id` | `invites.${number}.siteId` | `invites.${number}.email` | `invites.${number}.inviterId` | `invites.${number}.status` | `invites.${number}.acceptLink` | `invites.${number}.inviterAccountId` | `contributorsQuota.limitedOptions.limit` | `contributorsQuota.limitedOptions.used` | `contributorsQuota.type` | `pendingOwner.email` | `pendingOwner.acceptLink` | `enrichedInvites` | `enrichedInvites.${number}._id` | `enrichedInvites.${number}.email` | `enrichedInvites.${number}.acceptLink` | `enrichedInvites.${number}.inviterId` | `enrichedInvites.${number}.siteId` | `enrichedInvites.${number}.status`, 3>>;
13
13
  }
14
14
  /** @internal */
15
15
  declare function getCurrentContributor$1(httpClient: HttpClient): GetCurrentContributorSignature;
@@ -19,7 +19,7 @@ interface GetCurrentContributorSignature {
19
19
  * The site is determined from the caller's authentication context.
20
20
  * If the caller is not a contributor to the site, a `NOT_FOUND` error is returned.
21
21
  */
22
- (): Promise<NonNullablePaths<GetCurrentContributorResponse, `contributor.metaData._id` | `contributor.metaData.assignments` | `contributor.metaData.assignments.${number}.policy.policyId` | `contributor.metaData.assignments.${number}.assignmentId` | `contributor.metaData.assignments.${number}.subject._id` | `contributor.metaData.assignments.${number}.subject.subjectType` | `contributor.metaData.assignments.${number}.subject.context._id` | `contributor.metaData.assignments.${number}.subject.context.contextType` | `contributor._id` | `contributor.callerCapabilities` | `contributor.accountGroup`, 8>>;
22
+ (): Promise<NonNullablePaths<GetCurrentContributorResponse, `contributor.metaData._id` | `contributor.metaData.assignments` | `contributor.metaData.assignments.${number}.policy.policyId` | `contributor.metaData.assignments.${number}.assignmentId` | `contributor.metaData.assignments.${number}.subject._id` | `contributor.metaData.assignments.${number}.subject.subjectType` | `contributor.metaData.assignments.${number}.subject.context._id` | `contributor.metaData.assignments.${number}.subject.context.contextType` | `contributor._id` | `contributor.callerCapabilities` | `contributor.accountGroup`, 6>>;
23
23
  }
24
24
  declare function changeRole$1(httpClient: HttpClient): ChangeRoleSignature;
25
25
  interface ChangeRoleSignature {
@@ -30,7 +30,7 @@ interface ChangeRoleSignature {
30
30
  * @param - Contributor's account ID.
31
31
  * @param - Filter options. The `newRoles` field **must** be passed.
32
32
  */
33
- (accountId: string, options: NonNullablePaths<ChangeRoleOptions, `newRoles`, 2>): Promise<NonNullablePaths<ChangeContributorRoleResponse, `newAssignedRoles` | `newAssignedRoles.${number}.roleId` | `newAssignedRoles.${number}.assignmentId`, 4>>;
33
+ (accountId: string, options: NonNullablePaths<ChangeRoleOptions, `newRoles`, 0>): Promise<NonNullablePaths<ChangeContributorRoleResponse, `newAssignedRoles` | `newAssignedRoles.${number}.roleId` | `newAssignedRoles.${number}.assignmentId`, 2>>;
34
34
  }
35
35
  declare function changeContributorLocation$1(httpClient: HttpClient): ChangeContributorLocationSignature;
36
36
  interface ChangeContributorLocationSignature {
@@ -40,7 +40,7 @@ interface ChangeContributorLocationSignature {
40
40
  * Replaces all existing location assignments for the contributor's roles with the locations specified in `newLocations`. Get location IDs from the [Locations API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction).
41
41
  * @param - Contributor's account ID.
42
42
  */
43
- (accountId: string, options: NonNullablePaths<ChangeContributorLocationOptions, `newLocations`, 2>): Promise<NonNullablePaths<ChangeContributorLocationResponse, `newAssignedLocations`, 2>>;
43
+ (accountId: string, options: NonNullablePaths<ChangeContributorLocationOptions, `newLocations`, 0>): Promise<NonNullablePaths<ChangeContributorLocationResponse, `newAssignedLocations`, 0>>;
44
44
  }
45
45
  declare function querySiteContributors$1(httpClient: HttpClient): QuerySiteContributorsSignature;
46
46
  interface QuerySiteContributorsSignature {
@@ -50,7 +50,7 @@ interface QuerySiteContributorsSignature {
50
50
  * Returns contributor account IDs and account owner IDs that match the specified filters.
51
51
  * @param - Filter options.
52
52
  */
53
- (options?: QuerySiteContributorsOptions): Promise<NonNullablePaths<QuerySiteContributorsResponse, `contributors`, 2>>;
53
+ (options?: QuerySiteContributorsOptions): Promise<NonNullablePaths<QuerySiteContributorsResponse, `contributors`, 0>>;
54
54
  }
55
55
  /** @internal */
56
56
  declare function getContributorsQuota$1(httpClient: HttpClient): GetContributorsQuotaSignature;
@@ -58,7 +58,7 @@ interface GetContributorsQuotaSignature {
58
58
  /**
59
59
  * returns the quota information for contributors on the given site.
60
60
  */
61
- (): Promise<NonNullablePaths<GetContributorsQuotaResponse, `contributorsQuota.limitedOptions.limit` | `contributorsQuota.limitedOptions.used` | `contributorsQuota.type`, 4>>;
61
+ (): Promise<NonNullablePaths<GetContributorsQuotaResponse, `contributorsQuota.limitedOptions.limit` | `contributorsQuota.limitedOptions.used` | `contributorsQuota.type`, 2>>;
62
62
  }
63
63
  declare function removeContributor$1(httpClient: HttpClient): RemoveContributorSignature;
64
64
  interface RemoveContributorSignature {
@@ -50,6 +50,11 @@ interface Assignment {
50
50
  policy?: AssignedPolicy;
51
51
  /** Unique ID for this specific assignment. */
52
52
  assignmentId?: string;
53
+ /**
54
+ * The asset a user is assigned access to in an assignment, including any restrictions to their access. When empty, the role covers all assets, with no restrictions to specific sites or folders.
55
+ * @internal
56
+ */
57
+ restrictions?: Restriction;
53
58
  /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
54
59
  subject?: Subject;
55
60
  }
@@ -124,6 +129,11 @@ interface SiteRestriction {
124
129
  _id?: string;
125
130
  /** Site name. */
126
131
  value?: string | null;
132
+ /**
133
+ * A specific asset (referred to as a resource) inside the site, if relevant. For example, a specific dashboard page.
134
+ * @internal
135
+ */
136
+ resource?: CompanionResource;
127
137
  }
128
138
  interface CompanionResource {
129
139
  /** Asset ID (referred to here as resource ID). */
@@ -342,6 +352,16 @@ interface SiteInvite {
342
352
  * @format GUID
343
353
  */
344
354
  staffId?: string | null;
355
+ /**
356
+ * Brand domain.
357
+ * @internal
358
+ */
359
+ brandDomain?: string | null;
360
+ /**
361
+ * Optional field representing the purpose of the invite
362
+ * @internal
363
+ */
364
+ invitePurpose?: string | null;
345
365
  /** Invite expiration date */
346
366
  expirationDate?: Date | null;
347
367
  /**
@@ -652,6 +672,8 @@ interface SiteLocationAssignment {
652
672
  interface QuerySiteContributorsRequest {
653
673
  /** Filter object for narrowing search results. */
654
674
  filter?: QuerySiteContributorsFilter;
675
+ /** @internal */
676
+ fieldSet?: FieldSetWithLiterals[];
655
677
  }
656
678
  interface QuerySiteContributorsFilter {
657
679
  /**
@@ -924,6 +946,8 @@ interface ContributorCreatedEnvelope {
924
946
  * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
925
947
  * @permissionScope Manage Online Programs
926
948
  * @permissionScopeId SCOPE.CHALLENGES.MANAGE
949
+ * @permissionScope Manage Base44 Payments
950
+ * @permissionScopeId SCOPE.PAYMENTS.BASE44
927
951
  * @permissionScope Manage Portfolio
928
952
  * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
929
953
  * @permissionScope View SEO Settings
@@ -962,7 +986,7 @@ declare function onContributorCreated(handler: (event: ContributorCreatedEnvelop
962
986
  * @applicableIdentity APP
963
987
  * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.GetSiteContributorsV2
964
988
  */
965
- declare function getSiteContributorsV2(options?: GetSiteContributorsV2Options): Promise<NonNullablePaths<GetSiteContributorsV2Response, `contributors` | `contributors.${number}.metaData._id` | `contributors.${number}._id` | `contributors.${number}.accountGroup` | `invites` | `invites.${number}._id` | `invites.${number}.siteId` | `invites.${number}.email` | `invites.${number}.inviterId` | `invites.${number}.status` | `invites.${number}.acceptLink` | `invites.${number}.inviterAccountId` | `contributorsQuota.limitedOptions.limit` | `contributorsQuota.limitedOptions.used` | `contributorsQuota.type` | `pendingOwner.email` | `pendingOwner.acceptLink` | `enrichedInvites` | `enrichedInvites.${number}._id` | `enrichedInvites.${number}.email` | `enrichedInvites.${number}.acceptLink` | `enrichedInvites.${number}.inviterId` | `enrichedInvites.${number}.siteId` | `enrichedInvites.${number}.status`, 5>>;
989
+ declare function getSiteContributorsV2(options?: GetSiteContributorsV2Options): Promise<NonNullablePaths<GetSiteContributorsV2Response, `contributors` | `contributors.${number}.metaData._id` | `contributors.${number}._id` | `contributors.${number}.accountGroup` | `invites` | `invites.${number}._id` | `invites.${number}.siteId` | `invites.${number}.email` | `invites.${number}.inviterId` | `invites.${number}.status` | `invites.${number}.acceptLink` | `invites.${number}.inviterAccountId` | `contributorsQuota.limitedOptions.limit` | `contributorsQuota.limitedOptions.used` | `contributorsQuota.type` | `pendingOwner.email` | `pendingOwner.acceptLink` | `enrichedInvites` | `enrichedInvites.${number}._id` | `enrichedInvites.${number}.email` | `enrichedInvites.${number}.acceptLink` | `enrichedInvites.${number}.inviterId` | `enrichedInvites.${number}.siteId` | `enrichedInvites.${number}.status`, 3>>;
966
990
  interface GetSiteContributorsV2Options {
967
991
  /** The locale of the request. Defaults to en-us. */
968
992
  locale?: string | null;
@@ -985,7 +1009,7 @@ interface GetSiteContributorsV2Options {
985
1009
  * @applicableIdentity APP
986
1010
  * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.GetCurrentContributor
987
1011
  */
988
- declare function getCurrentContributor(): Promise<NonNullablePaths<GetCurrentContributorResponse, `contributor.metaData._id` | `contributor.metaData.assignments` | `contributor.metaData.assignments.${number}.policy.policyId` | `contributor.metaData.assignments.${number}.assignmentId` | `contributor.metaData.assignments.${number}.subject._id` | `contributor.metaData.assignments.${number}.subject.subjectType` | `contributor.metaData.assignments.${number}.subject.context._id` | `contributor.metaData.assignments.${number}.subject.context.contextType` | `contributor._id` | `contributor.callerCapabilities` | `contributor.accountGroup`, 8>>;
1012
+ declare function getCurrentContributor(): Promise<NonNullablePaths<GetCurrentContributorResponse, `contributor.metaData._id` | `contributor.metaData.assignments` | `contributor.metaData.assignments.${number}.policy.policyId` | `contributor.metaData.assignments.${number}.assignmentId` | `contributor.metaData.assignments.${number}.subject._id` | `contributor.metaData.assignments.${number}.subject.subjectType` | `contributor.metaData.assignments.${number}.subject.context._id` | `contributor.metaData.assignments.${number}.subject.context.contextType` | `contributor._id` | `contributor.callerCapabilities` | `contributor.accountGroup`, 6>>;
989
1013
  /**
990
1014
  * Updates all of a contributor's roles for the specified site, overriding any existing roles.
991
1015
  *
@@ -1000,7 +1024,7 @@ declare function getCurrentContributor(): Promise<NonNullablePaths<GetCurrentCon
1000
1024
  * @applicableIdentity APP
1001
1025
  * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.ChangeRole
1002
1026
  */
1003
- declare function changeRole(accountId: string, options: NonNullablePaths<ChangeRoleOptions, `newRoles`, 2>): Promise<NonNullablePaths<ChangeContributorRoleResponse, `newAssignedRoles` | `newAssignedRoles.${number}.roleId` | `newAssignedRoles.${number}.assignmentId`, 4>>;
1027
+ declare function changeRole(accountId: string, options: NonNullablePaths<ChangeRoleOptions, `newRoles`, 0>): Promise<NonNullablePaths<ChangeContributorRoleResponse, `newAssignedRoles` | `newAssignedRoles.${number}.roleId` | `newAssignedRoles.${number}.assignmentId`, 2>>;
1004
1028
  interface ChangeRoleOptions {
1005
1029
  /** New roles to assign to the contributor on the site. Replaces all existing role assignments. */
1006
1030
  newRoles: SiteRoleAssignment[];
@@ -1018,7 +1042,7 @@ interface ChangeRoleOptions {
1018
1042
  * @applicableIdentity APP
1019
1043
  * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.ChangeContributorLocation
1020
1044
  */
1021
- declare function changeContributorLocation(accountId: string, options: NonNullablePaths<ChangeContributorLocationOptions, `newLocations`, 2>): Promise<NonNullablePaths<ChangeContributorLocationResponse, `newAssignedLocations`, 2>>;
1045
+ declare function changeContributorLocation(accountId: string, options: NonNullablePaths<ChangeContributorLocationOptions, `newLocations`, 0>): Promise<NonNullablePaths<ChangeContributorLocationResponse, `newAssignedLocations`, 0>>;
1022
1046
  interface ChangeContributorLocationOptions {
1023
1047
  /**
1024
1048
  * Location IDs to assign to the contributor's role assignments on the site. Replaces all existing location assignments. Get location IDs from the [Locations API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction).
@@ -1037,7 +1061,7 @@ interface ChangeContributorLocationOptions {
1037
1061
  * @applicableIdentity APP
1038
1062
  * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.QuerySiteContributors
1039
1063
  */
1040
- declare function querySiteContributors(options?: QuerySiteContributorsOptions): Promise<NonNullablePaths<QuerySiteContributorsResponse, `contributors`, 2>>;
1064
+ declare function querySiteContributors(options?: QuerySiteContributorsOptions): Promise<NonNullablePaths<QuerySiteContributorsResponse, `contributors`, 0>>;
1041
1065
  interface QuerySiteContributorsOptions {
1042
1066
  /** Filter object for narrowing search results. */
1043
1067
  filter?: QuerySiteContributorsFilter;
@@ -1050,7 +1074,7 @@ interface QuerySiteContributorsOptions {
1050
1074
  * @applicableIdentity APP
1051
1075
  * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.GetContributorsQuota
1052
1076
  */
1053
- declare function getContributorsQuota(): Promise<NonNullablePaths<GetContributorsQuotaResponse, `contributorsQuota.limitedOptions.limit` | `contributorsQuota.limitedOptions.used` | `contributorsQuota.type`, 4>>;
1077
+ declare function getContributorsQuota(): Promise<NonNullablePaths<GetContributorsQuotaResponse, `contributorsQuota.limitedOptions.limit` | `contributorsQuota.limitedOptions.used` | `contributorsQuota.type`, 2>>;
1054
1078
  /**
1055
1079
  * Removes a contributor from the site by clearing all their role assignments.
1056
1080
  * @param accountId - Contributor's account ID to remove from the site.
@@ -51,6 +51,11 @@ interface Assignment {
51
51
  policy?: AssignedPolicy;
52
52
  /** Unique ID for this specific assignment. */
53
53
  assignmentId?: string;
54
+ /**
55
+ * The asset a user is assigned access to in an assignment, including any restrictions to their access. When empty, the role covers all assets, with no restrictions to specific sites or folders.
56
+ * @internal
57
+ */
58
+ restrictions?: Restriction;
54
59
  /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
55
60
  subject?: Subject;
56
61
  }
@@ -125,6 +130,11 @@ interface SiteRestriction {
125
130
  id?: string;
126
131
  /** Site name. */
127
132
  value?: string | null;
133
+ /**
134
+ * A specific asset (referred to as a resource) inside the site, if relevant. For example, a specific dashboard page.
135
+ * @internal
136
+ */
137
+ resource?: CompanionResource;
128
138
  }
129
139
  interface CompanionResource {
130
140
  /** Asset ID (referred to here as resource ID). */
@@ -343,6 +353,16 @@ interface SiteInvite {
343
353
  * @format GUID
344
354
  */
345
355
  staffId?: string | null;
356
+ /**
357
+ * Brand domain.
358
+ * @internal
359
+ */
360
+ brandDomain?: string | null;
361
+ /**
362
+ * Optional field representing the purpose of the invite
363
+ * @internal
364
+ */
365
+ invitePurpose?: string | null;
346
366
  /** Invite expiration date */
347
367
  expirationDate?: Date | null;
348
368
  /**
@@ -653,6 +673,8 @@ interface SiteLocationAssignment {
653
673
  interface QuerySiteContributorsRequest {
654
674
  /** Filter object for narrowing search results. */
655
675
  filter?: QuerySiteContributorsFilter;
676
+ /** @internal */
677
+ fieldSet?: FieldSetWithLiterals[];
656
678
  }
657
679
  interface QuerySiteContributorsFilter {
658
680
  /**
@@ -742,8 +764,18 @@ interface DomainEventBodyOneOf {
742
764
  }
743
765
  interface EntityCreatedEvent {
744
766
  entityAsJson?: string;
767
+ /**
768
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
769
+ * @internal
770
+ */
771
+ triggeredByUndelete?: boolean | null;
745
772
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
746
773
  restoreInfo?: RestoreInfo;
774
+ /**
775
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
776
+ * @internal
777
+ */
778
+ additionalMetadataAsJson?: string | null;
747
779
  }
748
780
  interface RestoreInfo {
749
781
  deletedDate?: Date | null;
@@ -755,10 +787,42 @@ interface EntityUpdatedEvent {
755
787
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
756
788
  */
757
789
  currentEntityAsJson?: string;
790
+ /**
791
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
792
+ * wont populate it / have any reference to it in the API.
793
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
794
+ * the developer should send only the new (current) entity.
795
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
796
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
797
+ * @internal
798
+ * @deprecated
799
+ */
800
+ previousEntityAsJson?: string | null;
801
+ /**
802
+ * Map of fully qualified field paths to their previous values for fields that changed.
803
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
804
+ * @internal
805
+ */
806
+ modifiedFields?: Record<string, any>;
807
+ /**
808
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
809
+ * @internal
810
+ */
811
+ additionalMetadataAsJson?: string | null;
758
812
  }
759
813
  interface EntityDeletedEvent {
814
+ /**
815
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
816
+ * @internal
817
+ */
818
+ movedToTrash?: boolean | null;
760
819
  /** Entity that was deleted. */
761
820
  deletedEntityAsJson?: string | null;
821
+ /**
822
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
823
+ * @internal
824
+ */
825
+ additionalMetadataAsJson?: string | null;
762
826
  }
763
827
  interface ActionEvent {
764
828
  bodyAsJson?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_user-management_contributors",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,23 +21,16 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
- },
25
- "./schemas": {
26
- "import": "./build/es/schemas.mjs",
27
- "require": "./build/cjs/schemas.js",
28
- "types": "./build/es/schemas.d.mts"
29
24
  }
30
25
  },
31
26
  "files": [
32
27
  "build",
33
28
  "meta",
34
- "service-plugins",
35
- "schemas"
29
+ "service-plugins"
36
30
  ],
37
31
  "dependencies": {
38
- "@wix/sdk-runtime": "^1.0.12",
39
- "@wix/sdk-types": "^1.17.7",
40
- "zod": "^4.3.6"
32
+ "@wix/sdk-runtime": "^1.0.24",
33
+ "@wix/sdk-types": "^1.17.11"
41
34
  },
42
35
  "devDependencies": {
43
36
  "tsup": "^8.4.0",
@@ -57,5 +50,5 @@
57
50
  "fqdn": "wix.identity.v1.contributor"
58
51
  }
59
52
  },
60
- "falconPackageHash": "cad3dba12b4d4bbed2b35615102754242fae0c5a84f2fc3dc660f2a0"
53
+ "falconPackageHash": "8bcb5bbf620c3290accb466762d48f9f6095dbc77bfbf9b1e003ce71"
61
54
  }
@@ -1,49 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const ChangeRoleRequest: z.ZodObject<{
4
- accountId: z.ZodString;
5
- options: z.ZodObject<{
6
- newRoles: z.ZodArray<z.ZodObject<{
7
- roleId: z.ZodOptional<z.ZodString>;
8
- assignmentId: z.ZodOptional<z.ZodString>;
9
- }, z.core.$strip>>;
10
- }, z.core.$strip>;
11
- }, z.core.$strip>;
12
- declare const ChangeRoleResponse: z.ZodObject<{
13
- newAssignedRoles: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
- roleId: z.ZodOptional<z.ZodString>;
15
- assignmentId: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>>>;
17
- }, z.core.$strip>;
18
- declare const ChangeContributorLocationRequest: z.ZodObject<{
19
- accountId: z.ZodString;
20
- options: z.ZodObject<{
21
- newLocations: z.ZodArray<z.ZodString>;
22
- }, z.core.$strip>;
23
- }, z.core.$strip>;
24
- declare const ChangeContributorLocationResponse: z.ZodObject<{
25
- newAssignedLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
- locationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
- assignmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
- }, z.core.$strip>>>;
29
- }, z.core.$strip>;
30
- declare const QuerySiteContributorsRequest: z.ZodObject<{
31
- options: z.ZodOptional<z.ZodObject<{
32
- filter: z.ZodOptional<z.ZodObject<{
33
- policyIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
- locationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
- }, z.core.$strip>>;
36
- }, z.core.$strip>>;
37
- }, z.core.$strip>;
38
- declare const QuerySiteContributorsResponse: z.ZodObject<{
39
- contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
- accountId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
- accountOwnerId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
42
- }, z.core.$strip>>>;
43
- }, z.core.$strip>;
44
- declare const RemoveContributorRequest: z.ZodObject<{
45
- accountId: z.ZodString;
46
- }, z.core.$strip>;
47
- declare const RemoveContributorResponse: z.ZodObject<{}, z.core.$strip>;
48
-
49
- export { ChangeContributorLocationRequest, ChangeContributorLocationResponse, ChangeRoleRequest, ChangeRoleResponse, QuerySiteContributorsRequest, QuerySiteContributorsResponse, RemoveContributorRequest, RemoveContributorResponse };
@@ -1,127 +0,0 @@
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
- ChangeContributorLocationRequest: () => ChangeContributorLocationRequest,
34
- ChangeContributorLocationResponse: () => ChangeContributorLocationResponse,
35
- ChangeRoleRequest: () => ChangeRoleRequest,
36
- ChangeRoleResponse: () => ChangeRoleResponse,
37
- QuerySiteContributorsRequest: () => QuerySiteContributorsRequest,
38
- QuerySiteContributorsResponse: () => QuerySiteContributorsResponse,
39
- RemoveContributorRequest: () => RemoveContributorRequest,
40
- RemoveContributorResponse: () => RemoveContributorResponse
41
- });
42
- module.exports = __toCommonJS(schemas_exports);
43
-
44
- // src/identity-v1-contributor-contributors.schemas.ts
45
- var z = __toESM(require("zod"));
46
- var ChangeRoleRequest = z.object({
47
- accountId: z.string().describe("Contributor's account ID.").regex(
48
- /^[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}$/,
49
- "Must be a valid GUID"
50
- ),
51
- options: z.object({
52
- newRoles: z.array(
53
- z.object({
54
- roleId: z.string().describe(
55
- "Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles."
56
- ).optional(),
57
- assignmentId: z.string().describe(
58
- "Assignment ID mapping the role to the contributor on the site."
59
- ).optional()
60
- })
61
- )
62
- }).describe("Filter options. The `newRoles` field **must** be passed.")
63
- });
64
- var ChangeRoleResponse = z.object({
65
- newAssignedRoles: z.array(
66
- z.object({
67
- roleId: z.string().describe(
68
- "Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles."
69
- ).optional(),
70
- assignmentId: z.string().describe(
71
- "Assignment ID mapping the role to the contributor on the site."
72
- ).optional()
73
- })
74
- ).optional()
75
- });
76
- var ChangeContributorLocationRequest = z.object({
77
- accountId: z.string().describe("Contributor's account ID.").regex(
78
- /^[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}$/,
79
- "Must be a valid GUID"
80
- ),
81
- options: z.object({ newLocations: z.array(z.string()).max(20) })
82
- });
83
- var ChangeContributorLocationResponse = z.object({
84
- newAssignedLocations: z.array(
85
- z.object({
86
- locationIds: z.array(z.string()).max(100).optional(),
87
- assignmentIds: z.array(z.string()).max(999).optional()
88
- })
89
- ).max(20).optional()
90
- });
91
- var QuerySiteContributorsRequest = z.object({
92
- options: z.object({
93
- filter: z.object({
94
- policyIds: z.array(z.string()).max(20).optional(),
95
- locationIds: z.array(z.string()).max(20).optional()
96
- }).describe("Filter object for narrowing search results.").optional()
97
- }).describe("Filter options.").optional()
98
- });
99
- var QuerySiteContributorsResponse = z.object({
100
- contributors: z.array(
101
- z.object({
102
- accountId: z.string().describe("Contributor's account ID.").optional().nullable(),
103
- accountOwnerId: z.string().describe(
104
- "User ID of the owner of the account that the contributor belongs to."
105
- ).optional().nullable()
106
- })
107
- ).optional()
108
- });
109
- var RemoveContributorRequest = z.object({
110
- accountId: z.string().describe("Contributor's account ID to remove from the site.").regex(
111
- /^[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}$/,
112
- "Must be a valid GUID"
113
- )
114
- });
115
- var RemoveContributorResponse = z.object({});
116
- // Annotate the CommonJS export names for ESM import in node:
117
- 0 && (module.exports = {
118
- ChangeContributorLocationRequest,
119
- ChangeContributorLocationResponse,
120
- ChangeRoleRequest,
121
- ChangeRoleResponse,
122
- QuerySiteContributorsRequest,
123
- QuerySiteContributorsResponse,
124
- RemoveContributorRequest,
125
- RemoveContributorResponse
126
- });
127
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/identity-v1-contributor-contributors.schemas.ts"],"sourcesContent":["export * from './src/identity-v1-contributor-contributors.schemas.js';\n","import * as z from 'zod';\n\nexport const ChangeRoleRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\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 options: z\n .object({\n newRoles: z.array(\n z.object({\n roleId: z\n .string()\n .describe(\n 'Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles.'\n )\n .optional(),\n assignmentId: z\n .string()\n .describe(\n 'Assignment ID mapping the role to the contributor on the site.'\n )\n .optional(),\n })\n ),\n })\n .describe('Filter options. The `newRoles` field **must** be passed.'),\n});\nexport const ChangeRoleResponse = z.object({\n newAssignedRoles: z\n .array(\n z.object({\n roleId: z\n .string()\n .describe(\n 'Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles.'\n )\n .optional(),\n assignmentId: z\n .string()\n .describe(\n 'Assignment ID mapping the role to the contributor on the site.'\n )\n .optional(),\n })\n )\n .optional(),\n});\nexport const ChangeContributorLocationRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\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 options: z.object({ newLocations: z.array(z.string()).max(20) }),\n});\nexport const ChangeContributorLocationResponse = z.object({\n newAssignedLocations: z\n .array(\n z.object({\n locationIds: z.array(z.string()).max(100).optional(),\n assignmentIds: z.array(z.string()).max(999).optional(),\n })\n )\n .max(20)\n .optional(),\n});\nexport const QuerySiteContributorsRequest = z.object({\n options: z\n .object({\n filter: z\n .object({\n policyIds: z.array(z.string()).max(20).optional(),\n locationIds: z.array(z.string()).max(20).optional(),\n })\n .describe('Filter object for narrowing search results.')\n .optional(),\n })\n .describe('Filter options.')\n .optional(),\n});\nexport const QuerySiteContributorsResponse = z.object({\n contributors: z\n .array(\n z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\n .optional()\n .nullable(),\n accountOwnerId: z\n .string()\n .describe(\n 'User ID of the owner of the account that the contributor belongs to.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const RemoveContributorRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID to remove from the site.\")\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 RemoveContributorResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,oBAAsB,SAAO;AAAA,EACxC,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,UAAY;AAAA,MACR,SAAO;AAAA,QACP,QACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,cACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC;AAAA,IACH;AAAA,EACF,CAAC,EACA,SAAS,0DAA0D;AACxE,CAAC;AACM,IAAM,qBAAuB,SAAO;AAAA,EACzC,kBACG;AAAA,IACG,SAAO;AAAA,MACP,QACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,cACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,mCAAqC,SAAO;AAAA,EACvD,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SAAW,SAAO,EAAE,cAAgB,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC;AACjE,CAAC;AACM,IAAM,oCAAsC,SAAO;AAAA,EACxD,sBACG;AAAA,IACG,SAAO;AAAA,MACP,aAAe,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,MACnD,eAAiB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IACvD,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;AACM,IAAM,+BAAiC,SAAO;AAAA,EACnD,SACG,SAAO;AAAA,IACN,QACG,SAAO;AAAA,MACN,WAAa,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,MAChD,aAAe,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IACpD,CAAC,EACA,SAAS,6CAA6C,EACtD,SAAS;AAAA,EACd,CAAC,EACA,SAAS,iBAAiB,EAC1B,SAAS;AACd,CAAC;AACM,IAAM,gCAAkC,SAAO;AAAA,EACpD,cACG;AAAA,IACG,SAAO;AAAA,MACP,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC,SAAS,EACT,SAAS;AAAA,MACZ,gBACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,2BAA6B,SAAO;AAAA,EAC/C,WACG,SAAO,EACP,SAAS,mDAAmD,EAC5D;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,4BAA8B,SAAO,CAAC,CAAC;","names":[]}
@@ -1,49 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const ChangeRoleRequest: z.ZodObject<{
4
- accountId: z.ZodString;
5
- options: z.ZodObject<{
6
- newRoles: z.ZodArray<z.ZodObject<{
7
- roleId: z.ZodOptional<z.ZodString>;
8
- assignmentId: z.ZodOptional<z.ZodString>;
9
- }, z.core.$strip>>;
10
- }, z.core.$strip>;
11
- }, z.core.$strip>;
12
- declare const ChangeRoleResponse: z.ZodObject<{
13
- newAssignedRoles: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
- roleId: z.ZodOptional<z.ZodString>;
15
- assignmentId: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>>>;
17
- }, z.core.$strip>;
18
- declare const ChangeContributorLocationRequest: z.ZodObject<{
19
- accountId: z.ZodString;
20
- options: z.ZodObject<{
21
- newLocations: z.ZodArray<z.ZodString>;
22
- }, z.core.$strip>;
23
- }, z.core.$strip>;
24
- declare const ChangeContributorLocationResponse: z.ZodObject<{
25
- newAssignedLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
- locationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
- assignmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
- }, z.core.$strip>>>;
29
- }, z.core.$strip>;
30
- declare const QuerySiteContributorsRequest: z.ZodObject<{
31
- options: z.ZodOptional<z.ZodObject<{
32
- filter: z.ZodOptional<z.ZodObject<{
33
- policyIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
- locationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
- }, z.core.$strip>>;
36
- }, z.core.$strip>>;
37
- }, z.core.$strip>;
38
- declare const QuerySiteContributorsResponse: z.ZodObject<{
39
- contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
- accountId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
- accountOwnerId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
42
- }, z.core.$strip>>>;
43
- }, z.core.$strip>;
44
- declare const RemoveContributorRequest: z.ZodObject<{
45
- accountId: z.ZodString;
46
- }, z.core.$strip>;
47
- declare const RemoveContributorResponse: z.ZodObject<{}, z.core.$strip>;
48
-
49
- export { ChangeContributorLocationRequest, ChangeContributorLocationResponse, ChangeRoleRequest, ChangeRoleResponse, QuerySiteContributorsRequest, QuerySiteContributorsResponse, RemoveContributorRequest, RemoveContributorResponse };
@@ -1,83 +0,0 @@
1
- // src/identity-v1-contributor-contributors.schemas.ts
2
- import * as z from "zod";
3
- var ChangeRoleRequest = z.object({
4
- accountId: z.string().describe("Contributor's account ID.").regex(
5
- /^[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}$/,
6
- "Must be a valid GUID"
7
- ),
8
- options: z.object({
9
- newRoles: z.array(
10
- z.object({
11
- roleId: z.string().describe(
12
- "Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles."
13
- ).optional(),
14
- assignmentId: z.string().describe(
15
- "Assignment ID mapping the role to the contributor on the site."
16
- ).optional()
17
- })
18
- )
19
- }).describe("Filter options. The `newRoles` field **must** be passed.")
20
- });
21
- var ChangeRoleResponse = z.object({
22
- newAssignedRoles: z.array(
23
- z.object({
24
- roleId: z.string().describe(
25
- "Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles."
26
- ).optional(),
27
- assignmentId: z.string().describe(
28
- "Assignment ID mapping the role to the contributor on the site."
29
- ).optional()
30
- })
31
- ).optional()
32
- });
33
- var ChangeContributorLocationRequest = z.object({
34
- accountId: z.string().describe("Contributor's account ID.").regex(
35
- /^[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}$/,
36
- "Must be a valid GUID"
37
- ),
38
- options: z.object({ newLocations: z.array(z.string()).max(20) })
39
- });
40
- var ChangeContributorLocationResponse = z.object({
41
- newAssignedLocations: z.array(
42
- z.object({
43
- locationIds: z.array(z.string()).max(100).optional(),
44
- assignmentIds: z.array(z.string()).max(999).optional()
45
- })
46
- ).max(20).optional()
47
- });
48
- var QuerySiteContributorsRequest = z.object({
49
- options: z.object({
50
- filter: z.object({
51
- policyIds: z.array(z.string()).max(20).optional(),
52
- locationIds: z.array(z.string()).max(20).optional()
53
- }).describe("Filter object for narrowing search results.").optional()
54
- }).describe("Filter options.").optional()
55
- });
56
- var QuerySiteContributorsResponse = z.object({
57
- contributors: z.array(
58
- z.object({
59
- accountId: z.string().describe("Contributor's account ID.").optional().nullable(),
60
- accountOwnerId: z.string().describe(
61
- "User ID of the owner of the account that the contributor belongs to."
62
- ).optional().nullable()
63
- })
64
- ).optional()
65
- });
66
- var RemoveContributorRequest = z.object({
67
- accountId: z.string().describe("Contributor's account ID to remove from the site.").regex(
68
- /^[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}$/,
69
- "Must be a valid GUID"
70
- )
71
- });
72
- var RemoveContributorResponse = z.object({});
73
- export {
74
- ChangeContributorLocationRequest,
75
- ChangeContributorLocationResponse,
76
- ChangeRoleRequest,
77
- ChangeRoleResponse,
78
- QuerySiteContributorsRequest,
79
- QuerySiteContributorsResponse,
80
- RemoveContributorRequest,
81
- RemoveContributorResponse
82
- };
83
- //# sourceMappingURL=schemas.mjs.map