@wix/auto_sdk_user-management_contributors 1.0.20 → 1.0.21

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { C as ChangeRoleOptions, a as ChangeContributorRoleResponse, b as ChangeContributorLocationOptions, c as ChangeContributorLocationResponse, Q as QuerySiteContributorsOptions, d as QuerySiteContributorsResponse } from './identity-v1-contributor-contributors.universal-B0tzR-hk.js';
3
- export { t as AccountInfo, ae as AppInvite, h as AssignedPolicy, A as Assignment, Y as BulkGetUserRolesOnSiteRequest, _ as BulkGetUserRolesOnSiteResponse, a0 as BulkValidateEmailInviteEligibilityRequest, a1 as BulkValidateEmailInviteEligibilityResponse, a5 as ChangeContributorLocationRequest, a3 as ChangeContributorRoleRequest, o as CompanionResource, m as Condition, e as ConditionAttributeType, l as Conditions, g as Contributor, x as ContributorLimit, a9 as ContributorV2, H as ContributorsQuota, J as ContributorsQuotaOptionsOneOf, a2 as EmailInviteEligibility, F as FieldSet, ac as GetAppContributorsRequest, ad as GetAppContributorsResponse, aa as GetContributorsQuotaRequest, ab as GetContributorsQuotaResponse, V as GetCurrentUserRolesRequest, W as GetCurrentUserRolesResponse, G as GetSiteContributorsRequest, r as GetSiteContributorsResponse, af as GetSiteContributorsV2Options, D as GetSiteContributorsV2Request, E as GetSiteContributorsV2Response, M as HandleSiteTransferRequest, O as HandleSiteTransferResponse, I as InviteStatus, K as LimitedOptions, X as LocalizedRole, L as LocationsRestriction, N as Name, w as PendingOwner, P as PersonMetaData, v as Policy, z as PredefinedRole, y as PredefinedRoles, a8 as QuerySiteContributorsFilter, a7 as QuerySiteContributorsRequest, k as Resource, R as ResourceType, i as Restriction, j as RestrictionRestrictionsOneOf, B as Role, u as SiteInvite, a6 as SiteLocationAssignment, n as SiteRestriction, a4 as SiteRoleAssignment, p as Subject, q as SubjectContext, f as SubjectContextType, S as SubjectType, s as Team, T as Type, U as User, $ as UserLocalizedRoles, Z as UserSubject } from './identity-v1-contributor-contributors.universal-B0tzR-hk.js';
2
+ import { ChangeRoleOptions, ChangeContributorRoleResponse, ChangeContributorLocationOptions, ChangeContributorLocationResponse, QuerySiteContributorsOptions, QuerySiteContributorsResponse } from './index.typings.js';
3
+ export { AccountInfo, AppInvite, AssignedPolicy, Assignment, BulkGetUserRolesOnSiteRequest, BulkGetUserRolesOnSiteResponse, BulkValidateEmailInviteEligibilityRequest, BulkValidateEmailInviteEligibilityResponse, ChangeContributorLocationRequest, ChangeContributorRoleRequest, CompanionResource, Condition, ConditionAttributeType, Conditions, Contributor, ContributorLimit, ContributorV2, ContributorsQuota, ContributorsQuotaOptionsOneOf, EmailInviteEligibility, FieldSet, GetAppContributorsRequest, GetAppContributorsResponse, GetContributorsQuotaRequest, GetContributorsQuotaResponse, GetCurrentUserRolesRequest, GetCurrentUserRolesResponse, GetSiteContributorsRequest, GetSiteContributorsResponse, GetSiteContributorsV2Options, GetSiteContributorsV2Request, GetSiteContributorsV2Response, HandleSiteTransferRequest, HandleSiteTransferResponse, InviteStatus, LimitedOptions, LocalizedRole, LocationsRestriction, Name, PendingOwner, PersonMetaData, Policy, PredefinedRole, PredefinedRoles, QuerySiteContributorsFilter, QuerySiteContributorsRequest, Resource, ResourceType, Restriction, RestrictionRestrictionsOneOf, Role, SiteInvite, SiteLocationAssignment, SiteRestriction, SiteRoleAssignment, Subject, SubjectContext, SubjectContextType, SubjectType, Team, Type, User, UserLocalizedRoles, UserSubject } from './index.typings.js';
4
4
 
5
5
  declare function changeRole$1(httpClient: HttpClient): ChangeRoleSignature;
6
6
  interface ChangeRoleSignature {
@@ -1,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  interface Contributor {
2
4
  /** Contributor's metadata. */
3
5
  metaData?: PersonMetaData;
@@ -506,6 +508,8 @@ declare enum FieldSet {
506
508
  /** Include only `account_id` and `account_owner_id` fields. */
507
509
  META_DATA = "META_DATA"
508
510
  }
511
+ /** @enumType */
512
+ type FieldSetWithLiterals = FieldSet | 'UNKNOWN' | 'META_DATA';
509
513
  interface QuerySiteContributorsResponse {
510
514
  /** List of site contributors. */
511
515
  contributors?: ContributorV2[];
@@ -570,10 +574,33 @@ interface GetSiteContributorsV2Options {
570
574
  /** The set of desired fields. */
571
575
  fields?: string[];
572
576
  }
577
+ /**
578
+ * Overrides all the roles of a contributor for the specified site.
579
+ * @param accountId - Contributor's account ID.
580
+ * @public
581
+ * @requiredField accountId
582
+ * @requiredField options
583
+ * @requiredField options.newRoles
584
+ * @param options - Filter options. The `newRoles` field **must** be passed.
585
+ * @permissionId SITE_ROLES.CHANGE_ROLE
586
+ * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.ChangeRole
587
+ */
588
+ declare function changeRole(accountId: string, options: NonNullablePaths<ChangeRoleOptions, `newRoles`>): Promise<NonNullablePaths<ChangeContributorRoleResponse, `newAssignedRoles` | `newAssignedRoles.${number}.roleId` | `newAssignedRoles.${number}.assignmentId`>>;
573
589
  interface ChangeRoleOptions {
574
590
  /** New roles to assign to the contributor on the site. */
575
591
  newRoles: SiteRoleAssignment[];
576
592
  }
593
+ /** @param accountId - Contributor's account ID.
594
+ * @public
595
+ * @documentationMaturity preview
596
+ * @requiredField accountId
597
+ * @requiredField options
598
+ * @requiredField options.newLocations
599
+ * @permissionId SITE_ROLES.CHANGE_LOCATION
600
+ * @applicableIdentity APP
601
+ * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.ChangeContributorLocation
602
+ */
603
+ declare function changeContributorLocation(accountId: string, options: NonNullablePaths<ChangeContributorLocationOptions, `newLocations`>): Promise<NonNullablePaths<ChangeContributorLocationResponse, `newAssignedLocations`>>;
577
604
  interface ChangeContributorLocationOptions {
578
605
  /**
579
606
  * New locations to assign to the contributor on the site.
@@ -582,8 +609,17 @@ interface ChangeContributorLocationOptions {
582
609
  */
583
610
  newLocations: string[];
584
611
  }
612
+ /**
613
+ * Retrieves a list of contributors for the specified site, given the provided filters.
614
+ * @public
615
+ * @param options - Filter options.
616
+ * @permissionId site-users.view-users
617
+ * @applicableIdentity APP
618
+ * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.QuerySiteContributors
619
+ */
620
+ declare function querySiteContributors(options?: QuerySiteContributorsOptions): Promise<NonNullablePaths<QuerySiteContributorsResponse, `contributors`>>;
585
621
  interface QuerySiteContributorsOptions {
586
622
  filter?: QuerySiteContributorsFilter;
587
623
  }
588
624
 
589
- export { type UserLocalizedRoles as $, type Assignment as A, type Role as B, type ChangeRoleOptions as C, type GetSiteContributorsV2Request as D, type GetSiteContributorsV2Response as E, FieldSet as F, type GetSiteContributorsRequest as G, type ContributorsQuota as H, InviteStatus as I, type ContributorsQuotaOptionsOneOf as J, type LimitedOptions as K, type LocationsRestriction as L, type HandleSiteTransferRequest as M, type Name as N, type HandleSiteTransferResponse as O, type PersonMetaData as P, type QuerySiteContributorsOptions as Q, ResourceType as R, SubjectType as S, Type as T, type User as U, type GetCurrentUserRolesRequest as V, type GetCurrentUserRolesResponse as W, type LocalizedRole as X, type BulkGetUserRolesOnSiteRequest as Y, type UserSubject as Z, type BulkGetUserRolesOnSiteResponse as _, type ChangeContributorRoleResponse as a, type BulkValidateEmailInviteEligibilityRequest as a0, type BulkValidateEmailInviteEligibilityResponse as a1, type EmailInviteEligibility as a2, type ChangeContributorRoleRequest as a3, type SiteRoleAssignment as a4, type ChangeContributorLocationRequest as a5, type SiteLocationAssignment as a6, type QuerySiteContributorsRequest as a7, type QuerySiteContributorsFilter as a8, type ContributorV2 as a9, type GetContributorsQuotaRequest as aa, type GetContributorsQuotaResponse as ab, type GetAppContributorsRequest as ac, type GetAppContributorsResponse as ad, type AppInvite as ae, type GetSiteContributorsV2Options as af, type ChangeContributorLocationOptions as b, type ChangeContributorLocationResponse as c, type QuerySiteContributorsResponse as d, ConditionAttributeType as e, SubjectContextType as f, type Contributor as g, type AssignedPolicy as h, type Restriction as i, type RestrictionRestrictionsOneOf as j, type Resource as k, type Conditions as l, type Condition as m, type SiteRestriction as n, type CompanionResource as o, type Subject as p, type SubjectContext as q, type GetSiteContributorsResponse as r, type Team as s, type AccountInfo as t, type SiteInvite as u, type Policy as v, type PendingOwner as w, type ContributorLimit as x, type PredefinedRoles as y, type PredefinedRole as z };
625
+ export { type AccountInfo, type AppInvite, type AssignedPolicy, type Assignment, type BulkGetUserRolesOnSiteRequest, type BulkGetUserRolesOnSiteResponse, type BulkValidateEmailInviteEligibilityRequest, type BulkValidateEmailInviteEligibilityResponse, type ChangeContributorLocationOptions, type ChangeContributorLocationRequest, type ChangeContributorLocationResponse, type ChangeContributorRoleRequest, type ChangeContributorRoleResponse, type ChangeRoleOptions, type CompanionResource, type Condition, ConditionAttributeType, type ConditionAttributeTypeWithLiterals, type Conditions, type Contributor, type ContributorLimit, type ContributorV2, type ContributorsQuota, type ContributorsQuotaOptionsOneOf, type EmailInviteEligibility, FieldSet, type FieldSetWithLiterals, type GetAppContributorsRequest, type GetAppContributorsResponse, type GetContributorsQuotaRequest, type GetContributorsQuotaResponse, type GetCurrentUserRolesRequest, type GetCurrentUserRolesResponse, type GetSiteContributorsRequest, type GetSiteContributorsResponse, type GetSiteContributorsV2Options, type GetSiteContributorsV2Request, type GetSiteContributorsV2Response, type HandleSiteTransferRequest, type HandleSiteTransferResponse, InviteStatus, type InviteStatusWithLiterals, type LimitedOptions, type LocalizedRole, type LocationsRestriction, type Name, type PendingOwner, type PersonMetaData, type Policy, type PredefinedRole, type PredefinedRoles, type QuerySiteContributorsFilter, type QuerySiteContributorsOptions, type QuerySiteContributorsRequest, type QuerySiteContributorsResponse, type Resource, ResourceType, type ResourceTypeWithLiterals, type Restriction, type RestrictionRestrictionsOneOf, type Role, type SiteInvite, type SiteLocationAssignment, type SiteRestriction, type SiteRoleAssignment, type Subject, type SubjectContext, SubjectContextType, type SubjectContextTypeWithLiterals, SubjectType, type SubjectTypeWithLiterals, type Team, Type, type TypeWithLiterals, type User, type UserLocalizedRoles, type UserSubject, changeContributorLocation, changeRole, querySiteContributors };
@@ -0,0 +1,473 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.typings.ts
21
+ var index_typings_exports = {};
22
+ __export(index_typings_exports, {
23
+ ConditionAttributeType: () => ConditionAttributeType,
24
+ FieldSet: () => FieldSet,
25
+ InviteStatus: () => InviteStatus,
26
+ ResourceType: () => ResourceType,
27
+ SubjectContextType: () => SubjectContextType,
28
+ SubjectType: () => SubjectType,
29
+ Type: () => Type,
30
+ changeContributorLocation: () => changeContributorLocation2,
31
+ changeRole: () => changeRole2,
32
+ getContributorsQuota: () => getContributorsQuota2,
33
+ getSiteContributorsV2: () => getSiteContributorsV22,
34
+ querySiteContributors: () => querySiteContributors2
35
+ });
36
+ module.exports = __toCommonJS(index_typings_exports);
37
+
38
+ // src/identity-v1-contributor-contributors.universal.ts
39
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
40
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
41
+
42
+ // src/identity-v1-contributor-contributors.http.ts
43
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
44
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
45
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
46
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
47
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
48
+ function resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl(opts) {
49
+ const domainToMappings = {
50
+ "manage._base_domain_": [
51
+ {
52
+ srcPath: "/contributors/accept",
53
+ destPath: "/contributors/accept"
54
+ },
55
+ {
56
+ srcPath: "/roles-management-web",
57
+ destPath: ""
58
+ },
59
+ {
60
+ srcPath: "/team/accept",
61
+ destPath: "/team/accept"
62
+ },
63
+ {
64
+ srcPath: "/_api/roles-management-web",
65
+ destPath: ""
66
+ },
67
+ {
68
+ srcPath: "/app/accept",
69
+ destPath: "/app/accept"
70
+ }
71
+ ],
72
+ "api._api_base_domain_": [
73
+ {
74
+ srcPath: "/roles-management-web",
75
+ destPath: ""
76
+ }
77
+ ],
78
+ "editor._base_domain_": [
79
+ {
80
+ srcPath: "/_api/roles-management-web",
81
+ destPath: ""
82
+ }
83
+ ],
84
+ "blocks._base_domain_": [
85
+ {
86
+ srcPath: "/_api/roles-management-web",
87
+ destPath: ""
88
+ }
89
+ ],
90
+ "create.editorx": [
91
+ {
92
+ srcPath: "/_api/roles-management-web",
93
+ destPath: ""
94
+ }
95
+ ],
96
+ "www._base_domain_": [
97
+ {
98
+ srcPath: "/_api/roles-management-web",
99
+ destPath: ""
100
+ },
101
+ {
102
+ srcPath: "/roles-management-web",
103
+ destPath: ""
104
+ },
105
+ {
106
+ srcPath: "/contributors/accept",
107
+ destPath: "/contributors/accept"
108
+ },
109
+ {
110
+ srcPath: "/team/accept",
111
+ destPath: "/team/accept"
112
+ }
113
+ ],
114
+ "dev._base_domain_": [
115
+ {
116
+ srcPath: "/_api/roles-management-web",
117
+ destPath: ""
118
+ }
119
+ ],
120
+ "platform.rise.ai": [
121
+ {
122
+ srcPath: "/v2/contributors",
123
+ destPath: "/v2/contributors"
124
+ },
125
+ {
126
+ srcPath: "/contributor/change/role",
127
+ destPath: "/contributor/change/role"
128
+ }
129
+ ],
130
+ "www.wixapis.com": [
131
+ {
132
+ srcPath: "/roles-management",
133
+ destPath: ""
134
+ },
135
+ {
136
+ srcPath: "/roles-management-web",
137
+ destPath: ""
138
+ },
139
+ {
140
+ srcPath: "/roles-management/roles",
141
+ destPath: "/roles"
142
+ },
143
+ {
144
+ srcPath: "/roles-management/team",
145
+ destPath: "/team"
146
+ },
147
+ {
148
+ srcPath: "/roles-management/v3/team",
149
+ destPath: "/v3/team"
150
+ },
151
+ {
152
+ srcPath: "/roles-management/v2/team",
153
+ destPath: "/v2/team"
154
+ },
155
+ {
156
+ srcPath: "/roles-management/contributor/change",
157
+ destPath: "/contributor/change"
158
+ },
159
+ {
160
+ srcPath: "/roles-management/v2/contributors",
161
+ destPath: "/v2/contributors"
162
+ }
163
+ ]
164
+ };
165
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
166
+ }
167
+ var PACKAGE_NAME = "@wix/auto_sdk_user-management_contributors";
168
+ function getSiteContributorsV2(payload) {
169
+ function __getSiteContributorsV2({ host }) {
170
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
171
+ {
172
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
173
+ paths: [{ path: "fields" }]
174
+ }
175
+ ]);
176
+ const metadata = {
177
+ entityFqdn: "wix.identity.v1.contributor",
178
+ method: "GET",
179
+ methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetSiteContributorsV2",
180
+ packageName: PACKAGE_NAME,
181
+ url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
182
+ protoPath: "/v2/contributors",
183
+ data: serializedData,
184
+ host
185
+ }),
186
+ params: (0, import_rest_modules.toURLSearchParams)(serializedData),
187
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
188
+ {
189
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
190
+ paths: [
191
+ { path: "contributors.joinedAt" },
192
+ { path: "invites.dateCreated" },
193
+ { path: "invites.expirationDate" }
194
+ ]
195
+ }
196
+ ])
197
+ };
198
+ return metadata;
199
+ }
200
+ return __getSiteContributorsV2;
201
+ }
202
+ function changeRole(payload) {
203
+ function __changeRole({ host }) {
204
+ const metadata = {
205
+ entityFqdn: "wix.identity.v1.contributor",
206
+ method: "PUT",
207
+ methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.ChangeRole",
208
+ packageName: PACKAGE_NAME,
209
+ url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
210
+ protoPath: "/contributor/change/role",
211
+ data: payload,
212
+ host
213
+ }),
214
+ data: payload
215
+ };
216
+ return metadata;
217
+ }
218
+ return __changeRole;
219
+ }
220
+ function changeContributorLocation(payload) {
221
+ function __changeContributorLocation({ host }) {
222
+ const metadata = {
223
+ entityFqdn: "wix.identity.v1.contributor",
224
+ method: "PUT",
225
+ methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.ChangeContributorLocation",
226
+ packageName: PACKAGE_NAME,
227
+ url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
228
+ protoPath: "/contributor/change/locations",
229
+ data: payload,
230
+ host
231
+ }),
232
+ data: payload
233
+ };
234
+ return metadata;
235
+ }
236
+ return __changeContributorLocation;
237
+ }
238
+ function querySiteContributors(payload) {
239
+ function __querySiteContributors({ host }) {
240
+ const metadata = {
241
+ entityFqdn: "wix.identity.v1.contributor",
242
+ method: "GET",
243
+ methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.QuerySiteContributors",
244
+ packageName: PACKAGE_NAME,
245
+ url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
246
+ protoPath: "/v2/contributors/query",
247
+ data: payload,
248
+ host
249
+ }),
250
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
251
+ };
252
+ return metadata;
253
+ }
254
+ return __querySiteContributors;
255
+ }
256
+ function getContributorsQuota(payload) {
257
+ function __getContributorsQuota({ host }) {
258
+ const metadata = {
259
+ entityFqdn: "wix.identity.v1.contributor",
260
+ method: "GET",
261
+ methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetContributorsQuota",
262
+ packageName: PACKAGE_NAME,
263
+ url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
264
+ protoPath: "/v2/contributors/quota",
265
+ data: payload,
266
+ host
267
+ }),
268
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
269
+ };
270
+ return metadata;
271
+ }
272
+ return __getContributorsQuota;
273
+ }
274
+
275
+ // src/identity-v1-contributor-contributors.universal.ts
276
+ var ResourceType = /* @__PURE__ */ ((ResourceType2) => {
277
+ ResourceType2["UNKNOWN_RESOURCE_TYPE"] = "UNKNOWN_RESOURCE_TYPE";
278
+ ResourceType2["SITE"] = "SITE";
279
+ return ResourceType2;
280
+ })(ResourceType || {});
281
+ var ConditionAttributeType = /* @__PURE__ */ ((ConditionAttributeType2) => {
282
+ ConditionAttributeType2["UNKNOWN_CONDITION_TYPE"] = "UNKNOWN_CONDITION_TYPE";
283
+ ConditionAttributeType2["FOLDER"] = "FOLDER";
284
+ return ConditionAttributeType2;
285
+ })(ConditionAttributeType || {});
286
+ var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
287
+ SubjectType2["UNKNOWN"] = "UNKNOWN";
288
+ SubjectType2["ACCOUNT"] = "ACCOUNT";
289
+ SubjectType2["USER"] = "USER";
290
+ SubjectType2["USER_GROUP"] = "USER_GROUP";
291
+ SubjectType2["MEMBER_GROUP"] = "MEMBER_GROUP";
292
+ SubjectType2["VISITOR_GROUP"] = "VISITOR_GROUP";
293
+ SubjectType2["EXTERNAL_APP"] = "EXTERNAL_APP";
294
+ SubjectType2["ACCOUNT_GROUP"] = "ACCOUNT_GROUP";
295
+ SubjectType2["WIX_APP"] = "WIX_APP";
296
+ return SubjectType2;
297
+ })(SubjectType || {});
298
+ var SubjectContextType = /* @__PURE__ */ ((SubjectContextType2) => {
299
+ SubjectContextType2["UNKNOWN_CTX"] = "UNKNOWN_CTX";
300
+ SubjectContextType2["ORG_CTX"] = "ORG_CTX";
301
+ SubjectContextType2["ACCOUNT_CTX"] = "ACCOUNT_CTX";
302
+ return SubjectContextType2;
303
+ })(SubjectContextType || {});
304
+ var InviteStatus = /* @__PURE__ */ ((InviteStatus2) => {
305
+ InviteStatus2["Pending"] = "Pending";
306
+ InviteStatus2["Used"] = "Used";
307
+ InviteStatus2["Deleted"] = "Deleted";
308
+ InviteStatus2["Declined"] = "Declined";
309
+ InviteStatus2["Expired"] = "Expired";
310
+ return InviteStatus2;
311
+ })(InviteStatus || {});
312
+ var Type = /* @__PURE__ */ ((Type2) => {
313
+ Type2["UNKNOWN"] = "UNKNOWN";
314
+ Type2["LIMITED"] = "LIMITED";
315
+ Type2["UNLIMITED"] = "UNLIMITED";
316
+ return Type2;
317
+ })(Type || {});
318
+ var FieldSet = /* @__PURE__ */ ((FieldSet2) => {
319
+ FieldSet2["UNKNOWN"] = "UNKNOWN";
320
+ FieldSet2["META_DATA"] = "META_DATA";
321
+ return FieldSet2;
322
+ })(FieldSet || {});
323
+ async function getSiteContributorsV22(options) {
324
+ const { httpClient, sideEffects } = arguments[1];
325
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
326
+ locale: options?.locale,
327
+ fields: options?.fields
328
+ });
329
+ const reqOpts = getSiteContributorsV2(payload);
330
+ sideEffects?.onSiteCall?.();
331
+ try {
332
+ const result = await httpClient.request(reqOpts);
333
+ sideEffects?.onSuccess?.(result);
334
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
335
+ } catch (err) {
336
+ const transformedError = (0, import_transform_error.transformError)(
337
+ err,
338
+ {
339
+ spreadPathsToArguments: {},
340
+ explicitPathsToArguments: {
341
+ locale: "$[0].locale",
342
+ fields: "$[0].fields"
343
+ },
344
+ singleArgumentUnchanged: false
345
+ },
346
+ ["options"]
347
+ );
348
+ sideEffects?.onError?.(err);
349
+ throw transformedError;
350
+ }
351
+ }
352
+ async function changeRole2(accountId, options) {
353
+ const { httpClient, sideEffects } = arguments[2];
354
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
355
+ accountId,
356
+ newRoles: options?.newRoles
357
+ });
358
+ const reqOpts = changeRole(payload);
359
+ sideEffects?.onSiteCall?.();
360
+ try {
361
+ const result = await httpClient.request(reqOpts);
362
+ sideEffects?.onSuccess?.(result);
363
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
364
+ } catch (err) {
365
+ const transformedError = (0, import_transform_error.transformError)(
366
+ err,
367
+ {
368
+ spreadPathsToArguments: {},
369
+ explicitPathsToArguments: {
370
+ accountId: "$[0]",
371
+ newRoles: "$[1].newRoles"
372
+ },
373
+ singleArgumentUnchanged: false
374
+ },
375
+ ["accountId", "options"]
376
+ );
377
+ sideEffects?.onError?.(err);
378
+ throw transformedError;
379
+ }
380
+ }
381
+ async function changeContributorLocation2(accountId, options) {
382
+ const { httpClient, sideEffects } = arguments[2];
383
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
384
+ accountId,
385
+ newLocations: options?.newLocations
386
+ });
387
+ const reqOpts = changeContributorLocation(payload);
388
+ sideEffects?.onSiteCall?.();
389
+ try {
390
+ const result = await httpClient.request(reqOpts);
391
+ sideEffects?.onSuccess?.(result);
392
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
393
+ } catch (err) {
394
+ const transformedError = (0, import_transform_error.transformError)(
395
+ err,
396
+ {
397
+ spreadPathsToArguments: {},
398
+ explicitPathsToArguments: {
399
+ accountId: "$[0]",
400
+ newLocations: "$[1].newLocations"
401
+ },
402
+ singleArgumentUnchanged: false
403
+ },
404
+ ["accountId", "options"]
405
+ );
406
+ sideEffects?.onError?.(err);
407
+ throw transformedError;
408
+ }
409
+ }
410
+ async function querySiteContributors2(options) {
411
+ const { httpClient, sideEffects } = arguments[1];
412
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
413
+ filter: options?.filter
414
+ });
415
+ const reqOpts = querySiteContributors(payload);
416
+ sideEffects?.onSiteCall?.();
417
+ try {
418
+ const result = await httpClient.request(reqOpts);
419
+ sideEffects?.onSuccess?.(result);
420
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
421
+ } catch (err) {
422
+ const transformedError = (0, import_transform_error.transformError)(
423
+ err,
424
+ {
425
+ spreadPathsToArguments: {},
426
+ explicitPathsToArguments: { filter: "$[0].filter" },
427
+ singleArgumentUnchanged: false
428
+ },
429
+ ["options"]
430
+ );
431
+ sideEffects?.onError?.(err);
432
+ throw transformedError;
433
+ }
434
+ }
435
+ async function getContributorsQuota2() {
436
+ const { httpClient, sideEffects } = arguments[0];
437
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
438
+ const reqOpts = getContributorsQuota(payload);
439
+ sideEffects?.onSiteCall?.();
440
+ try {
441
+ const result = await httpClient.request(reqOpts);
442
+ sideEffects?.onSuccess?.(result);
443
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
444
+ } catch (err) {
445
+ const transformedError = (0, import_transform_error.transformError)(
446
+ err,
447
+ {
448
+ spreadPathsToArguments: {},
449
+ explicitPathsToArguments: {},
450
+ singleArgumentUnchanged: false
451
+ },
452
+ []
453
+ );
454
+ sideEffects?.onError?.(err);
455
+ throw transformedError;
456
+ }
457
+ }
458
+ // Annotate the CommonJS export names for ESM import in node:
459
+ 0 && (module.exports = {
460
+ ConditionAttributeType,
461
+ FieldSet,
462
+ InviteStatus,
463
+ ResourceType,
464
+ SubjectContextType,
465
+ SubjectType,
466
+ Type,
467
+ changeContributorLocation,
468
+ changeRole,
469
+ getContributorsQuota,
470
+ getSiteContributorsV2,
471
+ querySiteContributors
472
+ });
473
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/identity-v1-contributor-contributors.universal.ts","../../src/identity-v1-contributor-contributors.http.ts"],"sourcesContent":["export * from './src/identity-v1-contributor-contributors.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixIdentityV1Contributor from './identity-v1-contributor-contributors.http.js';\n\nexport interface Contributor {\n /** Contributor's metadata. */\n metaData?: PersonMetaData;\n /** Whether the contributor account is a team account. */\n isTeam?: boolean | null;\n /** Date that the contributor joined the site. */\n joinedAt?: Date | null;\n /** Email address that received the invite. */\n invitedEmail?: string | null;\n /** Whether the contributor account is a client account. */\n isClient?: boolean | null;\n /**\n * Contributor's user ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n}\n\nexport interface PersonMetaData {\n /** Contributor's account ID. */\n _id?: string;\n /** Contributor's full name. */\n fullName?: string | null;\n /** URL for contributor's profile image. */\n imageUrl?: string | null;\n /** Contributor's email address. */\n email?: string | null;\n /** Contributor's access to assets and their assigned role (`policy`) for that asset. */\n assignments?: Assignment[];\n}\n\nexport interface Assignment {\n /** Role assigned to the user. */\n policy?: AssignedPolicy;\n /** Unique ID for this specific assignment. */\n assignmentId?: string;\n /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */\n subject?: Subject;\n}\n\nexport interface AssignedPolicy {\n /** Role ID. */\n policyId?: string;\n /** Role title. */\n title?: string | null;\n /** Role description. */\n description?: string | null;\n}\n\nexport interface Restriction extends RestrictionRestrictionsOneOf {\n /**\n * Deprecated.\n * @deprecated\n */\n resource?: Resource;\n /** List of conditions restricting the user's access. Currently only folder conditions are supported. */\n conditions?: Conditions;\n /** Site where the assignment restrictions apply. */\n site?: SiteRestriction;\n /** Location where the assignment restrictions apply. */\n locations?: LocationsRestriction;\n}\n\n/** @oneof */\nexport interface RestrictionRestrictionsOneOf {\n /**\n * Deprecated.\n * @deprecated\n */\n resource?: Resource;\n /** List of conditions restricting the user's access. Currently only folder conditions are supported. */\n conditions?: Conditions;\n /** Site where the assignment restrictions apply. */\n site?: SiteRestriction;\n /** Location where the assignment restrictions apply. */\n locations?: LocationsRestriction;\n}\n\nexport interface Resource {\n /** Resource type. */\n resourceType?: ResourceTypeWithLiterals;\n /** Resource ID. */\n _id?: string;\n value?: string | null;\n}\n\nexport enum ResourceType {\n UNKNOWN_RESOURCE_TYPE = 'UNKNOWN_RESOURCE_TYPE',\n SITE = 'SITE',\n}\n\n/** @enumType */\nexport type ResourceTypeWithLiterals =\n | ResourceType\n | 'UNKNOWN_RESOURCE_TYPE'\n | 'SITE';\n\nexport interface Conditions {\n /** List of conditions. */\n conditions?: Condition[];\n}\n\nexport interface Condition {\n /** Condition type. */\n conditionType?: ConditionAttributeTypeWithLiterals;\n /** Condition ID. */\n _id?: string;\n /** Expected value of the condition. When `conditionType` = \"FOLDER\", this is the folder path. */\n value?: string | null;\n}\n\nexport enum ConditionAttributeType {\n UNKNOWN_CONDITION_TYPE = 'UNKNOWN_CONDITION_TYPE',\n FOLDER = 'FOLDER',\n}\n\n/** @enumType */\nexport type ConditionAttributeTypeWithLiterals =\n | ConditionAttributeType\n | 'UNKNOWN_CONDITION_TYPE'\n | 'FOLDER';\n\nexport interface SiteRestriction {\n /** Site ID. */\n _id?: string;\n /** Site name. */\n value?: string | null;\n}\n\nexport interface CompanionResource {\n /** Asset ID (referred to here as resource ID). */\n _id?: string;\n /** Asset type (referred to here as resource type). as predefined in the authorization system */\n resourceType?: string;\n}\n\nexport interface LocationsRestriction {\n /**\n * Location IDs.\n * @format GUID\n * @maxSize 20\n */\n ids?: string[];\n}\n\nexport interface Subject {\n /** ID of identity assigned to the asset. */\n _id?: string;\n /** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */\n subjectType?: SubjectTypeWithLiterals;\n /** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */\n context?: SubjectContext;\n}\n\nexport enum SubjectType {\n UNKNOWN = 'UNKNOWN',\n ACCOUNT = 'ACCOUNT',\n USER = 'USER',\n USER_GROUP = 'USER_GROUP',\n MEMBER_GROUP = 'MEMBER_GROUP',\n VISITOR_GROUP = 'VISITOR_GROUP',\n EXTERNAL_APP = 'EXTERNAL_APP',\n ACCOUNT_GROUP = 'ACCOUNT_GROUP',\n WIX_APP = 'WIX_APP',\n}\n\n/** @enumType */\nexport type SubjectTypeWithLiterals =\n | SubjectType\n | 'UNKNOWN'\n | 'ACCOUNT'\n | 'USER'\n | 'USER_GROUP'\n | 'MEMBER_GROUP'\n | 'VISITOR_GROUP'\n | 'EXTERNAL_APP'\n | 'ACCOUNT_GROUP'\n | 'WIX_APP';\n\nexport interface SubjectContext {\n _id?: string;\n contextType?: SubjectContextTypeWithLiterals;\n}\n\nexport enum SubjectContextType {\n UNKNOWN_CTX = 'UNKNOWN_CTX',\n ORG_CTX = 'ORG_CTX',\n ACCOUNT_CTX = 'ACCOUNT_CTX',\n}\n\n/** @enumType */\nexport type SubjectContextTypeWithLiterals =\n | SubjectContextType\n | 'UNKNOWN_CTX'\n | 'ORG_CTX'\n | 'ACCOUNT_CTX';\n\nexport interface GetSiteContributorsRequest {\n /** The locale of the request. Defaults to en-us */\n locale?: string | null;\n}\n\nexport interface GetSiteContributorsResponse {\n users?: User[];\n teams?: Team[];\n invites?: SiteInvite[];\n policies?: Policy[];\n permissions?: string[];\n userId?: string;\n loggedInAccountId?: string;\n pendingOwner?: PendingOwner;\n contributorLimit?: ContributorLimit;\n predefinedRoles?: PredefinedRoles;\n}\n\nexport interface User {\n /** User ID. */\n _id?: string;\n /**\n * Deprecated.\n * @deprecated\n */\n roles?: string[];\n /** User's email address. */\n email?: string;\n /** User's name. */\n name?: Name;\n /** URL to user's profile image, when provided. */\n profileImage?: string | null;\n /** Date the user joined the team. */\n joinedTeamAt?: Date | null;\n /**\n * Deprecated.\n * @deprecated\n */\n policyIds?: string[];\n /** Resources the user can access. */\n assignments?: Assignment[];\n}\n\nexport interface Name {\n /** User's first name. */\n firstName?: string;\n /** User's last name. */\n lastName?: string;\n}\n\nexport interface Team {\n accountId?: string;\n accountInfo?: AccountInfo;\n policyIds?: string[];\n joinedAt?: Date | null;\n}\n\nexport interface AccountInfo {\n accountName?: string;\n accountImage?: string;\n isTeam?: boolean;\n}\n\nexport interface SiteInvite {\n /**\n * Invite ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Site ID the user is invited to as a collaborator.\n * @format GUID\n * @readonly\n */\n siteId?: string;\n /**\n * Email address where the invite was sent.\n * @format EMAIL\n */\n email?: string;\n /** Role IDs included in the invite. */\n policyIds?: string[];\n /**\n * Deprecated. Use `inviterAccountId`.\n * @readonly\n * @deprecated\n */\n inviterId?: string;\n /**\n * Invite Status.\n *\n * Supported values:\n * - **Pending:** The invite has been sent and is valid, waiting for the user's response.\n * - **Used:** The invite has been accepted.\n * - **Deleted:** The invite has been deleted or revoked.\n * - **Declined:** The user declined the invite.\n * - **Expired:** The invite has expired without being accepted.\n */\n status?: InviteStatusWithLiterals;\n /** Link to accept the invite. */\n acceptLink?: string;\n /**\n * Inviting account ID.\n * @format GUID\n * @readonly\n */\n inviterAccountId?: string;\n /**\n * Account ID that accepted the invite. Populated only once the invite is accepted.\n * @format GUID\n * @readonly\n */\n acceptedByAccountId?: string | null;\n /** Date the invite was created. */\n dateCreated?: Date | null;\n /**\n * User's Wix Bookings staff ID, if relevant.\n * @format GUID\n */\n staffId?: string | null;\n /** Invite expiration date */\n expirationDate?: Date | null;\n /**\n * Location ids included in the invite\n * @format GUID\n * @readonly\n * @maxSize 20\n */\n locationIds?: string[];\n}\n\n/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */\nexport enum InviteStatus {\n Pending = 'Pending',\n Used = 'Used',\n Deleted = 'Deleted',\n Declined = 'Declined',\n Expired = 'Expired',\n}\n\n/** @enumType */\nexport type InviteStatusWithLiterals =\n | InviteStatus\n | 'Pending'\n | 'Used'\n | 'Deleted'\n | 'Declined'\n | 'Expired';\n\nexport interface Policy {\n _id?: string;\n description?: string | null;\n name?: string | null;\n isCustom?: boolean;\n scopes?: string[];\n}\n\nexport interface PendingOwner {\n email?: string;\n expirationDate?: Date | null;\n acceptLink?: string;\n}\n\nexport interface ContributorLimit {\n contributorLimit?: number;\n}\n\nexport interface PredefinedRoles {\n roles?: PredefinedRole[];\n}\n\nexport interface PredefinedRole {\n titleKey?: string;\n roles?: Role[];\n title?: string | null;\n areaId?: string;\n}\n\nexport interface Role {\n _id?: string;\n deprecatedKey?: string;\n /** @deprecated */\n titleKey?: string;\n /** @deprecated */\n descriptionKey?: string;\n deprecated?: boolean;\n restrictFromLevel?: string;\n experiments?: string[];\n appDefIds?: string[];\n title?: string | null;\n description?: string | null;\n isCustom?: boolean;\n scopes?: string[];\n availableResourceTypes?: ResourceTypeWithLiterals[];\n availableConditions?: ConditionAttributeTypeWithLiterals[];\n limitToEditorTypes?: string[];\n}\n\nexport interface GetSiteContributorsV2Request {\n /** The locale of the request. Defaults to en-us. */\n locale?: string | null;\n /** The set of desired fields. */\n fields?: string[];\n}\n\nexport interface GetSiteContributorsV2Response {\n /** List of contributors of the given site. */\n contributors?: Contributor[];\n /** List of invites to contribute to the given site. */\n invites?: SiteInvite[];\n /** Quota information for contributors on the given site. */\n contributorsQuota?: ContributorsQuota;\n}\n\nexport interface ContributorsQuota extends ContributorsQuotaOptionsOneOf {\n /** Limited contributors quota details. */\n limitedOptions?: LimitedOptions;\n /** Type of contributors quota */\n type?: TypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ContributorsQuotaOptionsOneOf {\n /** Limited contributors quota details. */\n limitedOptions?: LimitedOptions;\n}\n\n/** Enum to represent different types of contributors quota. */\nexport enum Type {\n UNKNOWN = 'UNKNOWN',\n LIMITED = 'LIMITED',\n UNLIMITED = 'UNLIMITED',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNKNOWN' | 'LIMITED' | 'UNLIMITED';\n\n/** Details for a limited contributors quota. */\nexport interface LimitedOptions {\n /** Maximum number of contributors allowed. */\n limit?: number;\n /** Number of accepted or pending invitations. */\n used?: number;\n}\n\nexport interface HandleSiteTransferRequest {\n originalOwnerAccountId?: string;\n newOwnerAccountId?: string;\n metaSiteId?: string;\n keepOriginalOwnerAsContributor?: boolean;\n}\n\nexport interface HandleSiteTransferResponse {}\n\nexport interface GetCurrentUserRolesRequest {\n /** The locale of the request. Defaults to en-us */\n locale?: string | null;\n}\n\nexport interface GetCurrentUserRolesResponse {\n roles?: LocalizedRole[];\n}\n\nexport interface LocalizedRole {\n name?: string;\n description?: string | null;\n}\n\nexport interface BulkGetUserRolesOnSiteRequest {\n /** @maxSize 5 */\n users?: UserSubject[];\n /** The locale of the request. Defaults to en-us */\n locale?: string | null;\n}\n\nexport interface UserSubject {\n userId?: string;\n accountId?: string;\n}\n\nexport interface BulkGetUserRolesOnSiteResponse {\n userRoles?: UserLocalizedRoles[];\n}\n\nexport interface UserLocalizedRoles {\n user?: UserSubject;\n roles?: LocalizedRole[];\n}\n\nexport interface BulkValidateEmailInviteEligibilityRequest {\n /**\n * List of emails to be checked for invite eligibility.\n * @minSize 1\n * @maxSize 10\n * @format EMAIL\n */\n emails?: string[];\n}\n\nexport interface BulkValidateEmailInviteEligibilityResponse {\n /** List of email invite eligibility results. */\n emailsEligibility?: EmailInviteEligibility[];\n}\n\nexport interface EmailInviteEligibility {\n /**\n * The email address being checked.\n * @format EMAIL\n */\n email?: string;\n /** Whether the email is eligible for an invite. */\n eligible?: boolean;\n}\n\nexport interface ChangeContributorRoleRequest {\n /**\n * Contributor's account ID.\n * @format GUID\n */\n accountId: string;\n /** New roles to assign to the contributor on the site. */\n newRoles: SiteRoleAssignment[];\n}\n\nexport interface SiteRoleAssignment {\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 roleId?: string;\n /**\n * Assignment ID mapping the role to the contributor on the site.\n * @readonly\n */\n assignmentId?: string;\n}\n\nexport interface ChangeContributorRoleResponse {\n /** New roles assigned to the contributor on the site. */\n newAssignedRoles?: SiteRoleAssignment[];\n}\n\nexport interface ChangeContributorLocationRequest {\n /**\n * Contributor's account ID.\n * @format GUID\n */\n accountId: string;\n /**\n * New locations to assign to the contributor on the site.\n * @format GUID\n * @maxSize 20\n */\n newLocations: string[];\n}\n\nexport interface ChangeContributorLocationResponse {\n /**\n * New locations assigned to the contributor on the site.\n * @maxSize 20\n */\n newAssignedLocations?: SiteLocationAssignment[];\n}\n\nexport interface SiteLocationAssignment {\n /**\n * @format GUID\n * @maxSize 100\n */\n locationIds?: string[];\n /**\n * @readonly\n * @maxLength 20\n * @maxSize 999\n */\n assignmentIds?: string[];\n}\n\nexport interface QuerySiteContributorsRequest {\n filter?: QuerySiteContributorsFilter;\n}\n\nexport interface QuerySiteContributorsFilter {\n /**\n * Role IDs (referred to here as policy IDs) to return. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for available roles.\n * @maxSize 20\n */\n policyIds?: string[];\n /**\n * Location IDs.\n * @format GUID\n * @maxSize 20\n */\n locationIds?: string[];\n}\n\nexport enum FieldSet {\n UNKNOWN = 'UNKNOWN',\n /** Include only `account_id` and `account_owner_id` fields. */\n META_DATA = 'META_DATA',\n}\n\n/** @enumType */\nexport type FieldSetWithLiterals = FieldSet | 'UNKNOWN' | 'META_DATA';\n\nexport interface QuerySiteContributorsResponse {\n /** List of site contributors. */\n contributors?: ContributorV2[];\n}\n\nexport interface ContributorV2 {\n /** Contributor's account ID. */\n accountId?: string | null;\n /** User ID of the owner of the account that the contributor has joined. */\n accountOwnerId?: string | null;\n}\n\nexport interface GetContributorsQuotaRequest {}\n\nexport interface GetContributorsQuotaResponse {\n /** Quota information for contributors on the given site. */\n contributorsQuota?: ContributorsQuota;\n}\n\nexport interface GetAppContributorsRequest {\n /** @format GUID */\n appId?: string;\n /** The locale of the request. Defaults to en-us. */\n locale?: string | null;\n}\n\nexport interface GetAppContributorsResponse {\n contributors?: Contributor[];\n invites?: AppInvite[];\n}\n\nexport interface AppInvite {\n /**\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * TODO: amitis - remove this comment after the next merge\n * @format EMAIL\n */\n destEmail?: string;\n /**\n * @readonly\n * @maxLength 20\n */\n status?: string;\n /**\n * @format WEB_URL\n * @readonly\n */\n acceptLink?: string;\n /** @maxLength 50 */\n invitePurpose?: string | null;\n /** @maxSize 10 */\n policies?: AssignedPolicy[];\n /** @readonly */\n expirationDate?: Date | null;\n /** @readonly */\n dateCreated?: Date | null;\n /** @readonly */\n dateUpdated?: Date | null;\n}\n\ntype ContributorNonNullablePaths =\n | `metaData._id`\n | `metaData.assignments`\n | `metaData.assignments.${number}.policy.policyId`\n | `metaData.assignments.${number}.assignmentId`\n | `metaData.assignments.${number}.subject._id`\n | `metaData.assignments.${number}.subject.subjectType`\n | `metaData.assignments.${number}.subject.context._id`\n | `metaData.assignments.${number}.subject.context.contextType`\n | `_id`;\n\n/**\n * returns a list of all the contributors + invites to be contributors of a given meta site ID taken from the\n * context.\n * @internal\n * @documentationMaturity preview\n * @permissionId site-users.view-users\n * @applicableIdentity APP\n * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.GetSiteContributorsV2\n */\nexport async function getSiteContributorsV2(\n options?: GetSiteContributorsV2Options\n): Promise<\n NonNullablePaths<\n GetSiteContributorsV2Response,\n | {\n [P in ContributorNonNullablePaths]: `contributors.${number}.${P}`;\n }[ContributorNonNullablePaths]\n | `invites`\n | `invites.${number}._id`\n | `invites.${number}.siteId`\n | `invites.${number}.email`\n | `invites.${number}.inviterId`\n | `invites.${number}.status`\n | `invites.${number}.acceptLink`\n | `invites.${number}.inviterAccountId`\n | `contributorsQuota.limitedOptions.limit`\n | `contributorsQuota.limitedOptions.used`\n | `contributorsQuota.type`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n locale: options?.locale,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixIdentityV1Contributor.getSiteContributorsV2(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n locale: '$[0].locale',\n fields: '$[0].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSiteContributorsV2Options {\n /** The locale of the request. Defaults to en-us. */\n locale?: string | null;\n /** The set of desired fields. */\n fields?: string[];\n}\n\n/**\n * Overrides all the roles of a contributor for the specified site.\n * @param accountId - Contributor's account ID.\n * @public\n * @requiredField accountId\n * @requiredField options\n * @requiredField options.newRoles\n * @param options - Filter options. The `newRoles` field **must** be passed.\n * @permissionId SITE_ROLES.CHANGE_ROLE\n * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.ChangeRole\n */\nexport async function changeRole(\n accountId: string,\n options: NonNullablePaths<ChangeRoleOptions, `newRoles`>\n): Promise<\n NonNullablePaths<\n ChangeContributorRoleResponse,\n | `newAssignedRoles`\n | `newAssignedRoles.${number}.roleId`\n | `newAssignedRoles.${number}.assignmentId`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n accountId: accountId,\n newRoles: options?.newRoles,\n });\n\n const reqOpts = ambassadorWixIdentityV1Contributor.changeRole(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n accountId: '$[0]',\n newRoles: '$[1].newRoles',\n },\n singleArgumentUnchanged: false,\n },\n ['accountId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ChangeRoleOptions {\n /** New roles to assign to the contributor on the site. */\n newRoles: SiteRoleAssignment[];\n}\n\n/** @param accountId - Contributor's account ID.\n * @public\n * @documentationMaturity preview\n * @requiredField accountId\n * @requiredField options\n * @requiredField options.newLocations\n * @permissionId SITE_ROLES.CHANGE_LOCATION\n * @applicableIdentity APP\n * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.ChangeContributorLocation\n */\nexport async function changeContributorLocation(\n accountId: string,\n options: NonNullablePaths<ChangeContributorLocationOptions, `newLocations`>\n): Promise<\n NonNullablePaths<ChangeContributorLocationResponse, `newAssignedLocations`>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n accountId: accountId,\n newLocations: options?.newLocations,\n });\n\n const reqOpts =\n ambassadorWixIdentityV1Contributor.changeContributorLocation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n accountId: '$[0]',\n newLocations: '$[1].newLocations',\n },\n singleArgumentUnchanged: false,\n },\n ['accountId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ChangeContributorLocationOptions {\n /**\n * New locations to assign to the contributor on the site.\n * @format GUID\n * @maxSize 20\n */\n newLocations: string[];\n}\n\n/**\n * Retrieves a list of contributors for the specified site, given the provided filters.\n * @public\n * @param options - Filter options.\n * @permissionId site-users.view-users\n * @applicableIdentity APP\n * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.QuerySiteContributors\n */\nexport async function querySiteContributors(\n options?: QuerySiteContributorsOptions\n): Promise<NonNullablePaths<QuerySiteContributorsResponse, `contributors`>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n filter: options?.filter,\n });\n\n const reqOpts =\n ambassadorWixIdentityV1Contributor.querySiteContributors(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { filter: '$[0].filter' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface QuerySiteContributorsOptions {\n filter?: QuerySiteContributorsFilter;\n}\n\n/**\n * returns the quota information for contributors on the given site.\n * @internal\n * @documentationMaturity preview\n * @permissionId site-users.view-users\n * @applicableIdentity APP\n * @fqn com.wixpress.roles.management.api.SiteRolesManagementService.GetContributorsQuota\n */\nexport async function getContributorsQuota(): Promise<\n NonNullablePaths<\n GetContributorsQuotaResponse,\n | `contributorsQuota.limitedOptions.limit`\n | `contributorsQuota.limitedOptions.used`\n | `contributorsQuota.type`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixIdentityV1Contributor.getContributorsQuota(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/app/accept',\n destPath: '/app/accept',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/contributors',\n destPath: '/v2/contributors',\n },\n {\n srcPath: '/contributor/change/role',\n destPath: '/contributor/change/role',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/roles-management',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management/roles',\n destPath: '/roles',\n },\n {\n srcPath: '/roles-management/team',\n destPath: '/team',\n },\n {\n srcPath: '/roles-management/v3/team',\n destPath: '/v3/team',\n },\n {\n srcPath: '/roles-management/v2/team',\n destPath: '/v2/team',\n },\n {\n srcPath: '/roles-management/contributor/change',\n destPath: '/contributor/change',\n },\n {\n srcPath: '/roles-management/v2/contributors',\n destPath: '/v2/contributors',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_user-management_contributors';\n\n/**\n * returns a list of all the contributors + invites to be contributors of a given meta site ID taken from the\n * context.\n */\nexport function getSiteContributorsV2(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSiteContributorsV2({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fields' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.identity.v1.contributor',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.SiteRolesManagementService.GetSiteContributorsV2',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({\n protoPath: '/v2/contributors',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'contributors.joinedAt' },\n { path: 'invites.dateCreated' },\n { path: 'invites.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSiteContributorsV2;\n}\n\n/** Overrides all the roles of a contributor for the specified site. */\nexport function changeRole(payload: object): RequestOptionsFactory<any> {\n function __changeRole({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.v1.contributor',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.SiteRolesManagementService.ChangeRole',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({\n protoPath: '/contributor/change/role',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changeRole;\n}\n\nexport function changeContributorLocation(\n payload: object\n): RequestOptionsFactory<any> {\n function __changeContributorLocation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.v1.contributor',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.SiteRolesManagementService.ChangeContributorLocation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({\n protoPath: '/contributor/change/locations',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changeContributorLocation;\n}\n\n/** Retrieves a list of contributors for the specified site, given the provided filters. */\nexport function querySiteContributors(\n payload: object\n): RequestOptionsFactory<any> {\n function __querySiteContributors({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.v1.contributor',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.SiteRolesManagementService.QuerySiteContributors',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({\n protoPath: '/v2/contributors/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __querySiteContributors;\n}\n\n/** returns the quota information for contributors on the given site. */\nexport function getContributorsQuota(\n payload: object\n): RequestOptionsFactory<any> {\n function __getContributorsQuota({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.v1.contributor',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.SiteRolesManagementService.GetContributorsQuota',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({\n protoPath: '/v2/contributors/quota',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getContributorsQuota;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAAA;AAAA,EAAA,kBAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,6BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,kEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;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CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD,QAAQ,SAAS;AAAA,EACnB,CAAC;AAED,QAAM,UAC+B,sBAAsB,OAAO;AAElE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAH;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,QAAQ,cAAc;AAAA,QAClD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAcA,eAAsBI,wBAOpB;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC,CAAC,CAAC;AAExD,QAAM,UAC+B,qBAAqB,OAAO;AAEjE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAJ;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,CAAC;AAAA,QAC3B,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC;AAAA,IACH;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["changeContributorLocation","changeRole","getContributorsQuota","getSiteContributorsV2","querySiteContributors","import_rest_modules","payload","ResourceType","ConditionAttributeType","SubjectType","SubjectContextType","InviteStatus","Type","FieldSet","getSiteContributorsV2","sdkTransformError","changeRole","changeContributorLocation","querySiteContributors","getContributorsQuota"]}