@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
@@ -1,653 +0,0 @@
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
- AccountGroup: () => AccountGroup,
24
- ConditionAttributeType: () => ConditionAttributeType,
25
- FieldSet: () => FieldSet,
26
- InviteStatus: () => InviteStatus,
27
- ResourceType: () => ResourceType,
28
- SubjectContextType: () => SubjectContextType,
29
- SubjectType: () => SubjectType,
30
- Type: () => Type,
31
- WebhookIdentityType: () => WebhookIdentityType,
32
- changeContributorLocation: () => changeContributorLocation2,
33
- changeRole: () => changeRole2,
34
- getContributorsQuota: () => getContributorsQuota2,
35
- getCurrentContributor: () => getCurrentContributor2,
36
- getSiteContributorsV2: () => getSiteContributorsV22,
37
- querySiteContributors: () => querySiteContributors2,
38
- removeContributor: () => removeContributor2
39
- });
40
- module.exports = __toCommonJS(index_typings_exports);
41
-
42
- // src/identity-v1-contributor-contributors.universal.ts
43
- var import_transform_error = require("@wix/sdk-runtime/transform-error");
44
- var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
45
-
46
- // src/identity-v1-contributor-contributors.http.ts
47
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
48
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
49
- var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
50
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
51
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
52
- function resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl(opts) {
53
- const domainToMappings = {
54
- "manage._base_domain_": [
55
- {
56
- srcPath: "/contributors/accept",
57
- destPath: "/contributors/accept"
58
- },
59
- {
60
- srcPath: "/roles-management-web",
61
- destPath: ""
62
- },
63
- {
64
- srcPath: "/team/accept",
65
- destPath: "/team/accept"
66
- },
67
- {
68
- srcPath: "/_api/roles-management-web",
69
- destPath: ""
70
- },
71
- {
72
- srcPath: "/app/accept",
73
- destPath: "/app/accept"
74
- }
75
- ],
76
- "api._api_base_domain_": [
77
- {
78
- srcPath: "/roles-management-web",
79
- destPath: ""
80
- }
81
- ],
82
- "editor._base_domain_": [
83
- {
84
- srcPath: "/_api/roles-management-web",
85
- destPath: ""
86
- }
87
- ],
88
- "blocks._base_domain_": [
89
- {
90
- srcPath: "/_api/roles-management-web",
91
- destPath: ""
92
- }
93
- ],
94
- "create.editorx": [
95
- {
96
- srcPath: "/_api/roles-management-web",
97
- destPath: ""
98
- }
99
- ],
100
- "www._base_domain_": [
101
- {
102
- srcPath: "/_api/roles-management-web",
103
- destPath: ""
104
- },
105
- {
106
- srcPath: "/roles-management-web",
107
- destPath: ""
108
- },
109
- {
110
- srcPath: "/contributors/accept",
111
- destPath: "/contributors/accept"
112
- },
113
- {
114
- srcPath: "/team/accept",
115
- destPath: "/team/accept"
116
- }
117
- ],
118
- "dev._base_domain_": [
119
- {
120
- srcPath: "/_api/roles-management-web",
121
- destPath: ""
122
- }
123
- ],
124
- "platform.rise.ai": [
125
- {
126
- srcPath: "/v2/contributors",
127
- destPath: "/v2/contributors"
128
- },
129
- {
130
- srcPath: "/contributor/change/role",
131
- destPath: "/contributor/change/role"
132
- }
133
- ],
134
- "www.wixapis.com": [
135
- {
136
- srcPath: "/roles-management",
137
- destPath: ""
138
- },
139
- {
140
- srcPath: "/roles-management-web",
141
- destPath: ""
142
- },
143
- {
144
- srcPath: "/roles-management/roles",
145
- destPath: "/roles"
146
- },
147
- {
148
- srcPath: "/roles-management/team",
149
- destPath: "/team"
150
- },
151
- {
152
- srcPath: "/roles-management/v3/team",
153
- destPath: "/v3/team"
154
- },
155
- {
156
- srcPath: "/roles-management/v2/team",
157
- destPath: "/v2/team"
158
- },
159
- {
160
- srcPath: "/roles-management/contributor/change",
161
- destPath: "/contributor/change"
162
- },
163
- {
164
- srcPath: "/roles-management/v2/contributors",
165
- destPath: "/v2/contributors"
166
- },
167
- {
168
- srcPath: "/roles-management/contributor/remove",
169
- destPath: "/contributor/remove"
170
- }
171
- ],
172
- "*.dev.wix-code.com": [
173
- {
174
- srcPath: "/identity/contributor",
175
- destPath: "/contributor"
176
- }
177
- ],
178
- "vibe._base_domain_": [
179
- {
180
- srcPath: "/roles-management-web/v2/contributors",
181
- destPath: "/v2/contributors"
182
- },
183
- {
184
- srcPath: "/roles-management-web/myRoles",
185
- destPath: "/roles-management-web/myRoles"
186
- }
187
- ],
188
- _: [
189
- {
190
- srcPath: "/identity/contributor",
191
- destPath: "/contributor"
192
- }
193
- ],
194
- "bo._base_domain_": [
195
- {
196
- srcPath: "/_api/roles-management-web",
197
- destPath: ""
198
- }
199
- ],
200
- "wixbo.ai": [
201
- {
202
- srcPath: "/_api/roles-management-web",
203
- destPath: ""
204
- }
205
- ],
206
- "wix-bo.com": [
207
- {
208
- srcPath: "/_api/roles-management-web",
209
- destPath: ""
210
- }
211
- ]
212
- };
213
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
214
- }
215
- var PACKAGE_NAME = "@wix/auto_sdk_user-management_contributors";
216
- function getSiteContributorsV2(payload) {
217
- function __getSiteContributorsV2({ host }) {
218
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
219
- {
220
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
221
- paths: [{ path: "fields" }]
222
- }
223
- ]);
224
- const metadata = {
225
- entityFqdn: "wix.identity.v1.contributor",
226
- method: "GET",
227
- methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetSiteContributorsV2",
228
- packageName: PACKAGE_NAME,
229
- migrationOptions: {
230
- optInTransformResponse: true
231
- },
232
- url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
233
- protoPath: "/v2/contributors",
234
- data: serializedData,
235
- host
236
- }),
237
- params: (0, import_rest_modules.toURLSearchParams)(serializedData),
238
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
239
- {
240
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
241
- paths: [
242
- { path: "contributors.joinedAt" },
243
- { path: "invites.dateCreated" },
244
- { path: "invites.expirationDate" },
245
- { path: "pendingOwner.expirationDate" },
246
- { path: "enrichedInvites.dateCreated" },
247
- { path: "enrichedInvites.expirationDate" }
248
- ]
249
- }
250
- ])
251
- };
252
- return metadata;
253
- }
254
- return __getSiteContributorsV2;
255
- }
256
- function getCurrentContributor(payload) {
257
- function __getCurrentContributor({ host }) {
258
- const metadata = {
259
- entityFqdn: "wix.identity.v1.contributor",
260
- method: "GET",
261
- methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetCurrentContributor",
262
- packageName: PACKAGE_NAME,
263
- migrationOptions: {
264
- optInTransformResponse: true
265
- },
266
- url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
267
- protoPath: "/v2/contributors/current",
268
- data: payload,
269
- host
270
- }),
271
- params: (0, import_rest_modules.toURLSearchParams)(payload),
272
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
273
- {
274
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
275
- paths: [{ path: "contributor.joinedAt" }]
276
- }
277
- ])
278
- };
279
- return metadata;
280
- }
281
- return __getCurrentContributor;
282
- }
283
- function changeRole(payload) {
284
- function __changeRole({ host }) {
285
- const metadata = {
286
- entityFqdn: "wix.identity.v1.contributor",
287
- method: "PUT",
288
- methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.ChangeRole",
289
- packageName: PACKAGE_NAME,
290
- migrationOptions: {
291
- optInTransformResponse: true
292
- },
293
- url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
294
- protoPath: "/contributor/change/role",
295
- data: payload,
296
- host
297
- }),
298
- data: payload
299
- };
300
- return metadata;
301
- }
302
- return __changeRole;
303
- }
304
- function changeContributorLocation(payload) {
305
- function __changeContributorLocation({ host }) {
306
- const metadata = {
307
- entityFqdn: "wix.identity.v1.contributor",
308
- method: "PUT",
309
- methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.ChangeContributorLocation",
310
- packageName: PACKAGE_NAME,
311
- migrationOptions: {
312
- optInTransformResponse: true
313
- },
314
- url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
315
- protoPath: "/contributor/change/locations",
316
- data: payload,
317
- host
318
- }),
319
- data: payload
320
- };
321
- return metadata;
322
- }
323
- return __changeContributorLocation;
324
- }
325
- function querySiteContributors(payload) {
326
- function __querySiteContributors({ host }) {
327
- const metadata = {
328
- entityFqdn: "wix.identity.v1.contributor",
329
- method: "GET",
330
- methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.QuerySiteContributors",
331
- packageName: PACKAGE_NAME,
332
- migrationOptions: {
333
- optInTransformResponse: true
334
- },
335
- url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
336
- protoPath: "/v2/contributors/query",
337
- data: payload,
338
- host
339
- }),
340
- params: (0, import_rest_modules.toURLSearchParams)(payload)
341
- };
342
- return metadata;
343
- }
344
- return __querySiteContributors;
345
- }
346
- function getContributorsQuota(payload) {
347
- function __getContributorsQuota({ host }) {
348
- const metadata = {
349
- entityFqdn: "wix.identity.v1.contributor",
350
- method: "GET",
351
- methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetContributorsQuota",
352
- packageName: PACKAGE_NAME,
353
- migrationOptions: {
354
- optInTransformResponse: true
355
- },
356
- url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
357
- protoPath: "/v2/contributors/quota",
358
- data: payload,
359
- host
360
- }),
361
- params: (0, import_rest_modules.toURLSearchParams)(payload)
362
- };
363
- return metadata;
364
- }
365
- return __getContributorsQuota;
366
- }
367
- function removeContributor(payload) {
368
- function __removeContributor({ host }) {
369
- const metadata = {
370
- entityFqdn: "wix.identity.v1.contributor",
371
- method: "POST",
372
- methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.RemoveContributor",
373
- packageName: PACKAGE_NAME,
374
- migrationOptions: {
375
- optInTransformResponse: true
376
- },
377
- url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
378
- protoPath: "/contributor/remove",
379
- data: payload,
380
- host
381
- }),
382
- data: payload
383
- };
384
- return metadata;
385
- }
386
- return __removeContributor;
387
- }
388
-
389
- // src/identity-v1-contributor-contributors.universal.ts
390
- var ResourceType = /* @__PURE__ */ ((ResourceType2) => {
391
- ResourceType2["UNKNOWN_RESOURCE_TYPE"] = "UNKNOWN_RESOURCE_TYPE";
392
- ResourceType2["SITE"] = "SITE";
393
- return ResourceType2;
394
- })(ResourceType || {});
395
- var ConditionAttributeType = /* @__PURE__ */ ((ConditionAttributeType2) => {
396
- ConditionAttributeType2["UNKNOWN_CONDITION_TYPE"] = "UNKNOWN_CONDITION_TYPE";
397
- ConditionAttributeType2["FOLDER"] = "FOLDER";
398
- return ConditionAttributeType2;
399
- })(ConditionAttributeType || {});
400
- var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
401
- SubjectType2["UNKNOWN"] = "UNKNOWN";
402
- SubjectType2["ACCOUNT"] = "ACCOUNT";
403
- SubjectType2["USER"] = "USER";
404
- SubjectType2["USER_GROUP"] = "USER_GROUP";
405
- SubjectType2["MEMBER_GROUP"] = "MEMBER_GROUP";
406
- SubjectType2["VISITOR_GROUP"] = "VISITOR_GROUP";
407
- SubjectType2["EXTERNAL_APP"] = "EXTERNAL_APP";
408
- SubjectType2["ACCOUNT_GROUP"] = "ACCOUNT_GROUP";
409
- SubjectType2["WIX_APP"] = "WIX_APP";
410
- return SubjectType2;
411
- })(SubjectType || {});
412
- var SubjectContextType = /* @__PURE__ */ ((SubjectContextType2) => {
413
- SubjectContextType2["UNKNOWN_CTX"] = "UNKNOWN_CTX";
414
- SubjectContextType2["ORG_CTX"] = "ORG_CTX";
415
- SubjectContextType2["ACCOUNT_CTX"] = "ACCOUNT_CTX";
416
- return SubjectContextType2;
417
- })(SubjectContextType || {});
418
- var AccountGroup = /* @__PURE__ */ ((AccountGroup2) => {
419
- AccountGroup2["ENTERPRISE"] = "ENTERPRISE";
420
- AccountGroup2["CHANNELS"] = "CHANNELS";
421
- return AccountGroup2;
422
- })(AccountGroup || {});
423
- var InviteStatus = /* @__PURE__ */ ((InviteStatus2) => {
424
- InviteStatus2["Pending"] = "Pending";
425
- InviteStatus2["Used"] = "Used";
426
- InviteStatus2["Deleted"] = "Deleted";
427
- InviteStatus2["Declined"] = "Declined";
428
- InviteStatus2["Expired"] = "Expired";
429
- return InviteStatus2;
430
- })(InviteStatus || {});
431
- var Type = /* @__PURE__ */ ((Type2) => {
432
- Type2["UNKNOWN"] = "UNKNOWN";
433
- Type2["LIMITED"] = "LIMITED";
434
- Type2["UNLIMITED"] = "UNLIMITED";
435
- return Type2;
436
- })(Type || {});
437
- var FieldSet = /* @__PURE__ */ ((FieldSet2) => {
438
- FieldSet2["UNKNOWN"] = "UNKNOWN";
439
- FieldSet2["META_DATA"] = "META_DATA";
440
- return FieldSet2;
441
- })(FieldSet || {});
442
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
443
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
444
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
445
- WebhookIdentityType2["MEMBER"] = "MEMBER";
446
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
447
- WebhookIdentityType2["APP"] = "APP";
448
- return WebhookIdentityType2;
449
- })(WebhookIdentityType || {});
450
- async function getSiteContributorsV22(options) {
451
- const { httpClient, sideEffects } = arguments[1];
452
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
453
- locale: options?.locale,
454
- fields: options?.fields,
455
- host: options?.host
456
- });
457
- const reqOpts = getSiteContributorsV2(payload);
458
- sideEffects?.onSiteCall?.();
459
- try {
460
- const result = await httpClient.request(reqOpts);
461
- sideEffects?.onSuccess?.(result);
462
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
463
- } catch (err) {
464
- const transformedError = (0, import_transform_error.transformError)(
465
- err,
466
- {
467
- spreadPathsToArguments: {},
468
- explicitPathsToArguments: {
469
- locale: "$[0].locale",
470
- fields: "$[0].fields",
471
- host: "$[0].host"
472
- },
473
- singleArgumentUnchanged: false
474
- },
475
- ["options"]
476
- );
477
- sideEffects?.onError?.(err);
478
- throw transformedError;
479
- }
480
- }
481
- async function getCurrentContributor2() {
482
- const { httpClient, sideEffects } = arguments[0];
483
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
484
- const reqOpts = getCurrentContributor(payload);
485
- sideEffects?.onSiteCall?.();
486
- try {
487
- const result = await httpClient.request(reqOpts);
488
- sideEffects?.onSuccess?.(result);
489
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
490
- } catch (err) {
491
- const transformedError = (0, import_transform_error.transformError)(
492
- err,
493
- {
494
- spreadPathsToArguments: {},
495
- explicitPathsToArguments: {},
496
- singleArgumentUnchanged: false
497
- },
498
- []
499
- );
500
- sideEffects?.onError?.(err);
501
- throw transformedError;
502
- }
503
- }
504
- async function changeRole2(accountId, options) {
505
- const { httpClient, sideEffects } = arguments[2];
506
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
507
- accountId,
508
- newRoles: options?.newRoles
509
- });
510
- const reqOpts = changeRole(payload);
511
- sideEffects?.onSiteCall?.();
512
- try {
513
- const result = await httpClient.request(reqOpts);
514
- sideEffects?.onSuccess?.(result);
515
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
516
- } catch (err) {
517
- const transformedError = (0, import_transform_error.transformError)(
518
- err,
519
- {
520
- spreadPathsToArguments: {},
521
- explicitPathsToArguments: {
522
- accountId: "$[0]",
523
- newRoles: "$[1].newRoles"
524
- },
525
- singleArgumentUnchanged: false
526
- },
527
- ["accountId", "options"]
528
- );
529
- sideEffects?.onError?.(err);
530
- throw transformedError;
531
- }
532
- }
533
- async function changeContributorLocation2(accountId, options) {
534
- const { httpClient, sideEffects } = arguments[2];
535
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
536
- accountId,
537
- newLocations: options?.newLocations
538
- });
539
- const reqOpts = changeContributorLocation(payload);
540
- sideEffects?.onSiteCall?.();
541
- try {
542
- const result = await httpClient.request(reqOpts);
543
- sideEffects?.onSuccess?.(result);
544
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
545
- } catch (err) {
546
- const transformedError = (0, import_transform_error.transformError)(
547
- err,
548
- {
549
- spreadPathsToArguments: {},
550
- explicitPathsToArguments: {
551
- accountId: "$[0]",
552
- newLocations: "$[1].newLocations"
553
- },
554
- singleArgumentUnchanged: false
555
- },
556
- ["accountId", "options"]
557
- );
558
- sideEffects?.onError?.(err);
559
- throw transformedError;
560
- }
561
- }
562
- async function querySiteContributors2(options) {
563
- const { httpClient, sideEffects } = arguments[1];
564
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
565
- filter: options?.filter
566
- });
567
- const reqOpts = querySiteContributors(payload);
568
- sideEffects?.onSiteCall?.();
569
- try {
570
- const result = await httpClient.request(reqOpts);
571
- sideEffects?.onSuccess?.(result);
572
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
573
- } catch (err) {
574
- const transformedError = (0, import_transform_error.transformError)(
575
- err,
576
- {
577
- spreadPathsToArguments: {},
578
- explicitPathsToArguments: { filter: "$[0].filter" },
579
- singleArgumentUnchanged: false
580
- },
581
- ["options"]
582
- );
583
- sideEffects?.onError?.(err);
584
- throw transformedError;
585
- }
586
- }
587
- async function getContributorsQuota2() {
588
- const { httpClient, sideEffects } = arguments[0];
589
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
590
- const reqOpts = getContributorsQuota(payload);
591
- sideEffects?.onSiteCall?.();
592
- try {
593
- const result = await httpClient.request(reqOpts);
594
- sideEffects?.onSuccess?.(result);
595
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
596
- } catch (err) {
597
- const transformedError = (0, import_transform_error.transformError)(
598
- err,
599
- {
600
- spreadPathsToArguments: {},
601
- explicitPathsToArguments: {},
602
- singleArgumentUnchanged: false
603
- },
604
- []
605
- );
606
- sideEffects?.onError?.(err);
607
- throw transformedError;
608
- }
609
- }
610
- async function removeContributor2(accountId) {
611
- const { httpClient, sideEffects } = arguments[1];
612
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
613
- accountId
614
- });
615
- const reqOpts = removeContributor(payload);
616
- sideEffects?.onSiteCall?.();
617
- try {
618
- const result = await httpClient.request(reqOpts);
619
- sideEffects?.onSuccess?.(result);
620
- } catch (err) {
621
- const transformedError = (0, import_transform_error.transformError)(
622
- err,
623
- {
624
- spreadPathsToArguments: {},
625
- explicitPathsToArguments: { accountId: "$[0]" },
626
- singleArgumentUnchanged: false
627
- },
628
- ["accountId"]
629
- );
630
- sideEffects?.onError?.(err);
631
- throw transformedError;
632
- }
633
- }
634
- // Annotate the CommonJS export names for ESM import in node:
635
- 0 && (module.exports = {
636
- AccountGroup,
637
- ConditionAttributeType,
638
- FieldSet,
639
- InviteStatus,
640
- ResourceType,
641
- SubjectContextType,
642
- SubjectType,
643
- Type,
644
- WebhookIdentityType,
645
- changeContributorLocation,
646
- changeRole,
647
- getContributorsQuota,
648
- getCurrentContributor,
649
- getSiteContributorsV2,
650
- querySiteContributors,
651
- removeContributor
652
- });
653
- //# sourceMappingURL=index.typings.js.map