@flipdish/authorization 0.2.38 → 0.2.40-rc.1781267640
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.
- package/.openapi-generator/FILES +1 -0
- package/api.ts +369 -2079
- package/configuration.ts +1 -1
- package/dist/api.d.ts +311 -1377
- package/dist/api.js +358 -2033
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -84,88 +84,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.
|
|
88
|
-
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = void 0;
|
|
87
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RoleNames = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.RemoveTeammateRequestBodyPrincipalTypeEnum = exports.RemoveTeammateRequestBodyActorTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.IsInRoleRequestCheckModeEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = void 0;
|
|
89
88
|
var axios_1 = require("axios");
|
|
90
89
|
// Some imports not used depending on template conditions
|
|
91
90
|
// @ts-ignore
|
|
92
91
|
var common_1 = require("./common");
|
|
93
92
|
// @ts-ignore
|
|
94
93
|
var base_1 = require("./base");
|
|
95
|
-
exports.AssignRoleRequestBodyRoleEnum = {
|
|
96
|
-
OrgViewer: 'OrgViewer',
|
|
97
|
-
OrgManager: 'OrgManager',
|
|
98
|
-
OrgAdmin: 'OrgAdmin',
|
|
99
|
-
BrandViewer: 'BrandViewer',
|
|
100
|
-
BrandManager: 'BrandManager',
|
|
101
|
-
BrandAdmin: 'BrandAdmin',
|
|
102
|
-
StoreViewer: 'StoreViewer',
|
|
103
|
-
StoreEditor: 'StoreEditor',
|
|
104
|
-
StoreManager: 'StoreManager',
|
|
105
|
-
CustomerViewer: 'CustomerViewer',
|
|
106
|
-
CustomerManager: 'CustomerManager',
|
|
107
|
-
VoucherViewer: 'VoucherViewer',
|
|
108
|
-
VoucherEditor: 'VoucherEditor',
|
|
109
|
-
VoucherManager: 'VoucherManager',
|
|
110
|
-
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
111
|
-
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
112
|
-
AnalyticsViewer: 'AnalyticsViewer',
|
|
113
|
-
ReportsViewer: 'ReportsViewer',
|
|
114
|
-
FinanceViewer: 'FinanceViewer',
|
|
115
|
-
FinanceManager: 'FinanceManager',
|
|
116
|
-
TeamViewer: 'TeamViewer',
|
|
117
|
-
TeamManager: 'TeamManager',
|
|
118
|
-
TeamAdmin: 'TeamAdmin',
|
|
119
|
-
TechViewer: 'TechViewer',
|
|
120
|
-
TechManager: 'TechManager',
|
|
121
|
-
AppStoreViewer: 'AppStoreViewer',
|
|
122
|
-
AppStoreManager: 'AppStoreManager',
|
|
123
|
-
SalesChannelViewer: 'SalesChannelViewer',
|
|
124
|
-
SalesChannelEditor: 'SalesChannelEditor',
|
|
125
|
-
SalesChannelManager: 'SalesChannelManager',
|
|
126
|
-
DeliveryViewer: 'DeliveryViewer',
|
|
127
|
-
DeliveryManager: 'DeliveryManager',
|
|
128
|
-
DriverManager: 'DriverManager',
|
|
129
|
-
AuditViewer: 'AuditViewer',
|
|
130
|
-
AuditManager: 'AuditManager',
|
|
131
|
-
AccountsViewer: 'AccountsViewer',
|
|
132
|
-
AccountsEditor: 'AccountsEditor',
|
|
133
|
-
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
134
|
-
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
135
|
-
PayrollViewer: 'PayrollViewer',
|
|
136
|
-
PayrollEditor: 'PayrollEditor',
|
|
137
|
-
PropertyViewer: 'PropertyViewer',
|
|
138
|
-
PropertyManager: 'PropertyManager',
|
|
139
|
-
PropertyAdmin: 'PropertyAdmin',
|
|
140
|
-
WebsiteContentEditor: 'WebsiteContentEditor',
|
|
141
|
-
WebsiteContentViewer: 'WebsiteContentViewer',
|
|
142
|
-
WebsiteTechViewer: 'WebsiteTechViewer',
|
|
143
|
-
MenuViewer: 'MenuViewer',
|
|
144
|
-
MenuEditor: 'MenuEditor',
|
|
145
|
-
MenuManager: 'MenuManager',
|
|
146
|
-
MenuMetaFieldManager: 'MenuMetaFieldManager',
|
|
147
|
-
MenuMetaFieldEditor: 'MenuMetaFieldEditor',
|
|
148
|
-
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
149
|
-
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
150
|
-
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
151
|
-
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
152
|
-
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
153
|
-
OrderManager: 'OrderManager',
|
|
154
|
-
OrderEditor: 'OrderEditor',
|
|
155
|
-
OrderViewer: 'OrderViewer',
|
|
156
|
-
InventoryManager: 'InventoryManager',
|
|
157
|
-
InventoryEditor: 'InventoryEditor',
|
|
158
|
-
InventoryViewer: 'InventoryViewer',
|
|
159
|
-
PaymentManager: 'PaymentManager',
|
|
160
|
-
OnboardingManager: 'OnboardingManager',
|
|
161
|
-
FeatureFlagManager: 'FeatureFlagManager',
|
|
162
|
-
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
163
|
-
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
164
|
-
IntegratorMisc: 'IntegratorMisc',
|
|
165
|
-
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
166
|
-
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
167
|
-
SupportMisc: 'SupportMisc'
|
|
168
|
-
};
|
|
169
94
|
exports.AuthenticateAndAuthorizeRequestCheckModeEnum = {
|
|
170
95
|
Any: 'any',
|
|
171
96
|
All: 'all'
|
|
@@ -198,37 +123,12 @@ exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = {
|
|
|
198
123
|
User: 'User',
|
|
199
124
|
Automation: 'Automation'
|
|
200
125
|
};
|
|
201
|
-
exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = {
|
|
202
|
-
Main: 'Main',
|
|
203
|
-
BrandOverride: 'BrandOverride',
|
|
204
|
-
OrgOverride: 'OrgOverride',
|
|
205
|
-
Forbidden: 'Forbidden',
|
|
206
|
-
NamedRole: 'NamedRole'
|
|
207
|
-
};
|
|
208
|
-
exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = {
|
|
209
|
-
Property: 'Property',
|
|
210
|
-
Org: 'Org',
|
|
211
|
-
Brand: 'Brand',
|
|
212
|
-
SalesChannel: 'SalesChannel'
|
|
213
|
-
};
|
|
214
|
-
exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = {
|
|
215
|
-
User: 'User',
|
|
216
|
-
Automation: 'Automation'
|
|
217
|
-
};
|
|
218
126
|
exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
219
127
|
Property: 'Property',
|
|
220
128
|
Org: 'Org',
|
|
221
129
|
Brand: 'Brand',
|
|
222
130
|
SalesChannel: 'SalesChannel'
|
|
223
131
|
};
|
|
224
|
-
exports.GrantTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
225
|
-
Owner: 'Owner',
|
|
226
|
-
ManagedOwner: 'ManagedOwner',
|
|
227
|
-
PropertyOwner: 'PropertyOwner',
|
|
228
|
-
PropertyManager: 'PropertyManager',
|
|
229
|
-
FinanceManager: 'FinanceManager',
|
|
230
|
-
Integrator: 'Integrator'
|
|
231
|
-
};
|
|
232
132
|
exports.IsInRoleRequestCheckModeEnum = {
|
|
233
133
|
Any: 'any',
|
|
234
134
|
All: 'all'
|
|
@@ -241,20 +141,6 @@ exports.ListOrgRolesSuccessResponseValueRolesEnum = {
|
|
|
241
141
|
PropertyManager: 'PropertyManager',
|
|
242
142
|
FinanceManager: 'FinanceManager'
|
|
243
143
|
};
|
|
244
|
-
exports.ListOrgRolesSuccessResponseValueAnyOfRolesEnum = {
|
|
245
|
-
Owner: 'Owner',
|
|
246
|
-
PropertyOwner: 'PropertyOwner',
|
|
247
|
-
ManagedOwner: 'ManagedOwner',
|
|
248
|
-
Integrator: 'Integrator',
|
|
249
|
-
PropertyManager: 'PropertyManager',
|
|
250
|
-
FinanceManager: 'FinanceManager'
|
|
251
|
-
};
|
|
252
|
-
exports.ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = {
|
|
253
|
-
Property: 'Property',
|
|
254
|
-
Org: 'Org',
|
|
255
|
-
Brand: 'Brand',
|
|
256
|
-
SalesChannel: 'SalesChannel'
|
|
257
|
-
};
|
|
258
144
|
/**
|
|
259
145
|
* Permissions
|
|
260
146
|
* @export
|
|
@@ -492,91 +378,29 @@ exports.Permissions = {
|
|
|
492
378
|
RoleFactory: 'RoleFactory',
|
|
493
379
|
RoleAuthDeveloper: 'RoleAuthDeveloper'
|
|
494
380
|
};
|
|
495
|
-
exports.
|
|
381
|
+
exports.RemoveTeammateRequestBodyActorTypeEnum = {
|
|
496
382
|
User: 'User',
|
|
497
383
|
Automation: 'Automation'
|
|
498
384
|
};
|
|
499
|
-
exports.
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
ManagedOwnerCompensating: 'ManagedOwnerCompensating',
|
|
503
|
-
IntegratorCompensating: 'IntegratorCompensating',
|
|
504
|
-
PropertyManagerCompensating: 'PropertyManagerCompensating',
|
|
505
|
-
FinanceManagerCompensating: 'FinanceManagerCompensating'
|
|
385
|
+
exports.RemoveTeammateRequestBodyPrincipalTypeEnum = {
|
|
386
|
+
User: 'User',
|
|
387
|
+
Automation: 'Automation'
|
|
506
388
|
};
|
|
507
|
-
exports.
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
BrandManager: 'BrandManager',
|
|
513
|
-
BrandAdmin: 'BrandAdmin',
|
|
514
|
-
StoreViewer: 'StoreViewer',
|
|
515
|
-
StoreEditor: 'StoreEditor',
|
|
516
|
-
StoreManager: 'StoreManager',
|
|
517
|
-
CustomerViewer: 'CustomerViewer',
|
|
518
|
-
CustomerManager: 'CustomerManager',
|
|
519
|
-
VoucherViewer: 'VoucherViewer',
|
|
520
|
-
VoucherEditor: 'VoucherEditor',
|
|
521
|
-
VoucherManager: 'VoucherManager',
|
|
522
|
-
VoucherCampaignManager: 'VoucherCampaignManager',
|
|
523
|
-
VoucherStatisticsViewer: 'VoucherStatisticsViewer',
|
|
524
|
-
AnalyticsViewer: 'AnalyticsViewer',
|
|
525
|
-
ReportsViewer: 'ReportsViewer',
|
|
526
|
-
FinanceViewer: 'FinanceViewer',
|
|
527
|
-
FinanceManager: 'FinanceManager',
|
|
528
|
-
TeamViewer: 'TeamViewer',
|
|
529
|
-
TeamManager: 'TeamManager',
|
|
530
|
-
TeamAdmin: 'TeamAdmin',
|
|
531
|
-
TechViewer: 'TechViewer',
|
|
532
|
-
TechManager: 'TechManager',
|
|
533
|
-
AppStoreViewer: 'AppStoreViewer',
|
|
534
|
-
AppStoreManager: 'AppStoreManager',
|
|
535
|
-
SalesChannelViewer: 'SalesChannelViewer',
|
|
536
|
-
SalesChannelEditor: 'SalesChannelEditor',
|
|
537
|
-
SalesChannelManager: 'SalesChannelManager',
|
|
538
|
-
DeliveryViewer: 'DeliveryViewer',
|
|
539
|
-
DeliveryManager: 'DeliveryManager',
|
|
540
|
-
DriverManager: 'DriverManager',
|
|
541
|
-
AuditViewer: 'AuditViewer',
|
|
542
|
-
AuditManager: 'AuditManager',
|
|
543
|
-
AccountsViewer: 'AccountsViewer',
|
|
544
|
-
AccountsEditor: 'AccountsEditor',
|
|
545
|
-
DocumentExplorerViewer: 'DocumentExplorerViewer',
|
|
546
|
-
DocumentExplorerEditor: 'DocumentExplorerEditor',
|
|
547
|
-
PayrollViewer: 'PayrollViewer',
|
|
548
|
-
PayrollEditor: 'PayrollEditor',
|
|
549
|
-
PropertyViewer: 'PropertyViewer',
|
|
389
|
+
exports.RoleAssignmentRequestBodyRoleNameEnum = {
|
|
390
|
+
Owner: 'Owner',
|
|
391
|
+
PropertyOwner: 'PropertyOwner',
|
|
392
|
+
ManagedOwner: 'ManagedOwner',
|
|
393
|
+
Integrator: 'Integrator',
|
|
550
394
|
PropertyManager: 'PropertyManager',
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
MenuMetaFieldViewer: 'MenuMetaFieldViewer',
|
|
561
|
-
StoreDeliveryZoneManager: 'StoreDeliveryZoneManager',
|
|
562
|
-
StoreDeliveryZoneEditor: 'StoreDeliveryZoneEditor',
|
|
563
|
-
StoreDeliveryZoneViewer: 'StoreDeliveryZoneViewer',
|
|
564
|
-
OrderFulfillmentManager: 'OrderFulfillmentManager',
|
|
565
|
-
OrderManager: 'OrderManager',
|
|
566
|
-
OrderEditor: 'OrderEditor',
|
|
567
|
-
OrderViewer: 'OrderViewer',
|
|
568
|
-
InventoryManager: 'InventoryManager',
|
|
569
|
-
InventoryEditor: 'InventoryEditor',
|
|
570
|
-
InventoryViewer: 'InventoryViewer',
|
|
571
|
-
PaymentManager: 'PaymentManager',
|
|
572
|
-
OnboardingManager: 'OnboardingManager',
|
|
573
|
-
FeatureFlagManager: 'FeatureFlagManager',
|
|
574
|
-
PropertyOwnerMisc: 'PropertyOwnerMisc',
|
|
575
|
-
ManagedOwnerMisc: 'ManagedOwnerMisc',
|
|
576
|
-
IntegratorMisc: 'IntegratorMisc',
|
|
577
|
-
PropertyManagerMisc: 'PropertyManagerMisc',
|
|
578
|
-
FinanceManagerMisc: 'FinanceManagerMisc',
|
|
579
|
-
SupportMisc: 'SupportMisc'
|
|
395
|
+
FinanceManager: 'FinanceManager'
|
|
396
|
+
};
|
|
397
|
+
exports.RoleAssignmentRequestBodyActorTypeEnum = {
|
|
398
|
+
User: 'User',
|
|
399
|
+
Automation: 'Automation'
|
|
400
|
+
};
|
|
401
|
+
exports.RoleAssignmentRequestBodyPrincipalTypeEnum = {
|
|
402
|
+
User: 'User',
|
|
403
|
+
Automation: 'Automation'
|
|
580
404
|
};
|
|
581
405
|
/**
|
|
582
406
|
* Role names
|
|
@@ -588,22 +412,6 @@ exports.RoleNames = {
|
|
|
588
412
|
Factory: 'Factory',
|
|
589
413
|
AuthDeveloper: 'AuthDeveloper'
|
|
590
414
|
};
|
|
591
|
-
exports.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
592
|
-
Owner: 'Owner',
|
|
593
|
-
ManagedOwner: 'ManagedOwner',
|
|
594
|
-
PropertyOwner: 'PropertyOwner',
|
|
595
|
-
PropertyManager: 'PropertyManager',
|
|
596
|
-
FinanceManager: 'FinanceManager',
|
|
597
|
-
Integrator: 'Integrator'
|
|
598
|
-
};
|
|
599
|
-
exports.V2UiRoleAssignmentRequestBodyAppAccessLevelEnum = {
|
|
600
|
-
Owner: 'Owner',
|
|
601
|
-
ManagedOwner: 'ManagedOwner',
|
|
602
|
-
PropertyOwner: 'PropertyOwner',
|
|
603
|
-
PropertyManager: 'PropertyManager',
|
|
604
|
-
FinanceManager: 'FinanceManager',
|
|
605
|
-
Integrator: 'Integrator'
|
|
606
|
-
};
|
|
607
415
|
/**
|
|
608
416
|
* AuthenticationApi - axios parameter creator
|
|
609
417
|
* @export
|
|
@@ -1563,12 +1371,12 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1563
1371
|
var _this = this;
|
|
1564
1372
|
return {
|
|
1565
1373
|
/**
|
|
1566
|
-
* List the available
|
|
1567
|
-
* @summary List
|
|
1374
|
+
* List the available permissions
|
|
1375
|
+
* @summary List Permissions
|
|
1568
1376
|
* @param {*} [options] Override http request option.
|
|
1569
1377
|
* @throws {RequiredError}
|
|
1570
1378
|
*/
|
|
1571
|
-
|
|
1379
|
+
listPermissions: function () {
|
|
1572
1380
|
var args_1 = [];
|
|
1573
1381
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1574
1382
|
args_1[_i] = arguments[_i];
|
|
@@ -1579,7 +1387,7 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1579
1387
|
return __generator(this, function (_a) {
|
|
1580
1388
|
switch (_a.label) {
|
|
1581
1389
|
case 0:
|
|
1582
|
-
localVarPath = "/config/
|
|
1390
|
+
localVarPath = "/config/permissions";
|
|
1583
1391
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1584
1392
|
if (configuration) {
|
|
1585
1393
|
baseOptions = configuration.baseOptions;
|
|
@@ -1604,12 +1412,12 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1604
1412
|
});
|
|
1605
1413
|
},
|
|
1606
1414
|
/**
|
|
1607
|
-
* List the available
|
|
1608
|
-
* @summary List
|
|
1415
|
+
* List the available roles
|
|
1416
|
+
* @summary List Roles
|
|
1609
1417
|
* @param {*} [options] Override http request option.
|
|
1610
1418
|
* @throws {RequiredError}
|
|
1611
1419
|
*/
|
|
1612
|
-
|
|
1420
|
+
listRoles: function () {
|
|
1613
1421
|
var args_1 = [];
|
|
1614
1422
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1615
1423
|
args_1[_i] = arguments[_i];
|
|
@@ -1620,7 +1428,7 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1620
1428
|
return __generator(this, function (_a) {
|
|
1621
1429
|
switch (_a.label) {
|
|
1622
1430
|
case 0:
|
|
1623
|
-
localVarPath = "/config/
|
|
1431
|
+
localVarPath = "/config/roles";
|
|
1624
1432
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1625
1433
|
if (configuration) {
|
|
1626
1434
|
baseOptions = configuration.baseOptions;
|
|
@@ -1644,70 +1452,162 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1644
1452
|
});
|
|
1645
1453
|
});
|
|
1646
1454
|
},
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1457
|
+
exports.ConfigurationDataApiAxiosParamCreator = ConfigurationDataApiAxiosParamCreator;
|
|
1458
|
+
/**
|
|
1459
|
+
* ConfigurationDataApi - functional programming interface
|
|
1460
|
+
* @export
|
|
1461
|
+
*/
|
|
1462
|
+
var ConfigurationDataApiFp = function (configuration) {
|
|
1463
|
+
var localVarAxiosParamCreator = (0, exports.ConfigurationDataApiAxiosParamCreator)(configuration);
|
|
1464
|
+
return {
|
|
1465
|
+
/**
|
|
1466
|
+
* List the available permissions
|
|
1467
|
+
* @summary List Permissions
|
|
1468
|
+
* @param {*} [options] Override http request option.
|
|
1469
|
+
* @throws {RequiredError}
|
|
1470
|
+
*/
|
|
1471
|
+
listPermissions: function (options) {
|
|
1472
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1473
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1474
|
+
var _a, _b, _c;
|
|
1475
|
+
return __generator(this, function (_d) {
|
|
1476
|
+
switch (_d.label) {
|
|
1477
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPermissions(options)];
|
|
1478
|
+
case 1:
|
|
1479
|
+
localVarAxiosArgs = _d.sent();
|
|
1480
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1481
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1482
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1483
|
+
}
|
|
1484
|
+
});
|
|
1485
|
+
});
|
|
1486
|
+
},
|
|
1647
1487
|
/**
|
|
1648
1488
|
* List the available roles
|
|
1649
1489
|
* @summary List Roles
|
|
1650
1490
|
* @param {*} [options] Override http request option.
|
|
1651
1491
|
* @throws {RequiredError}
|
|
1652
1492
|
*/
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
if (options === void 0) { options = {}; }
|
|
1661
|
-
return __generator(this, function (_a) {
|
|
1662
|
-
switch (_a.label) {
|
|
1663
|
-
case 0:
|
|
1664
|
-
localVarPath = "/config/roles";
|
|
1665
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1666
|
-
if (configuration) {
|
|
1667
|
-
baseOptions = configuration.baseOptions;
|
|
1668
|
-
}
|
|
1669
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1670
|
-
localVarHeaderParameter = {};
|
|
1671
|
-
localVarQueryParameter = {};
|
|
1672
|
-
// authentication ApiKeyAuth required
|
|
1673
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1493
|
+
listRoles: function (options) {
|
|
1494
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1495
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1496
|
+
var _a, _b, _c;
|
|
1497
|
+
return __generator(this, function (_d) {
|
|
1498
|
+
switch (_d.label) {
|
|
1499
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(options)];
|
|
1674
1500
|
case 1:
|
|
1675
|
-
|
|
1676
|
-
_a.
|
|
1677
|
-
(
|
|
1678
|
-
|
|
1679
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1680
|
-
return [2 /*return*/, {
|
|
1681
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1682
|
-
options: localVarRequestOptions,
|
|
1683
|
-
}];
|
|
1501
|
+
localVarAxiosArgs = _d.sent();
|
|
1502
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1503
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1504
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1684
1505
|
}
|
|
1685
1506
|
});
|
|
1686
1507
|
});
|
|
1687
1508
|
},
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
exports.ConfigurationDataApiFp = ConfigurationDataApiFp;
|
|
1512
|
+
/**
|
|
1513
|
+
* ConfigurationDataApi - factory interface
|
|
1514
|
+
* @export
|
|
1515
|
+
*/
|
|
1516
|
+
var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
|
|
1517
|
+
var localVarFp = (0, exports.ConfigurationDataApiFp)(configuration);
|
|
1518
|
+
return {
|
|
1519
|
+
/**
|
|
1520
|
+
* List the available permissions
|
|
1521
|
+
* @summary List Permissions
|
|
1522
|
+
* @param {*} [options] Override http request option.
|
|
1523
|
+
* @throws {RequiredError}
|
|
1524
|
+
*/
|
|
1525
|
+
listPermissions: function (options) {
|
|
1526
|
+
return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
1527
|
+
},
|
|
1528
|
+
/**
|
|
1529
|
+
* List the available roles
|
|
1530
|
+
* @summary List Roles
|
|
1531
|
+
* @param {*} [options] Override http request option.
|
|
1532
|
+
* @throws {RequiredError}
|
|
1533
|
+
*/
|
|
1534
|
+
listRoles: function (options) {
|
|
1535
|
+
return localVarFp.listRoles(options).then(function (request) { return request(axios, basePath); });
|
|
1536
|
+
},
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
exports.ConfigurationDataApiFactory = ConfigurationDataApiFactory;
|
|
1540
|
+
/**
|
|
1541
|
+
* ConfigurationDataApi - object-oriented interface
|
|
1542
|
+
* @export
|
|
1543
|
+
* @class ConfigurationDataApi
|
|
1544
|
+
* @extends {BaseAPI}
|
|
1545
|
+
*/
|
|
1546
|
+
var ConfigurationDataApi = /** @class */ (function (_super) {
|
|
1547
|
+
__extends(ConfigurationDataApi, _super);
|
|
1548
|
+
function ConfigurationDataApi() {
|
|
1549
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* List the available permissions
|
|
1553
|
+
* @summary List Permissions
|
|
1554
|
+
* @param {*} [options] Override http request option.
|
|
1555
|
+
* @throws {RequiredError}
|
|
1556
|
+
* @memberof ConfigurationDataApi
|
|
1557
|
+
*/
|
|
1558
|
+
ConfigurationDataApi.prototype.listPermissions = function (options) {
|
|
1559
|
+
var _this = this;
|
|
1560
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1561
|
+
};
|
|
1562
|
+
/**
|
|
1563
|
+
* List the available roles
|
|
1564
|
+
* @summary List Roles
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
* @memberof ConfigurationDataApi
|
|
1568
|
+
*/
|
|
1569
|
+
ConfigurationDataApi.prototype.listRoles = function (options) {
|
|
1570
|
+
var _this = this;
|
|
1571
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1572
|
+
};
|
|
1573
|
+
return ConfigurationDataApi;
|
|
1574
|
+
}(base_1.BaseAPI));
|
|
1575
|
+
exports.ConfigurationDataApi = ConfigurationDataApi;
|
|
1576
|
+
/**
|
|
1577
|
+
* RoleAssignmentApi - axios parameter creator
|
|
1578
|
+
* @export
|
|
1579
|
+
*/
|
|
1580
|
+
var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
1581
|
+
var _this = this;
|
|
1582
|
+
return {
|
|
1688
1583
|
/**
|
|
1689
|
-
*
|
|
1690
|
-
* @summary
|
|
1584
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
1585
|
+
* @summary Apply role assignment
|
|
1586
|
+
* @param {string} orgId
|
|
1587
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
1691
1588
|
* @param {*} [options] Override http request option.
|
|
1692
1589
|
* @throws {RequiredError}
|
|
1693
1590
|
*/
|
|
1694
|
-
|
|
1591
|
+
applyRoleAssignment: function (orgId_1, roleAssignmentRequestBody_1) {
|
|
1695
1592
|
var args_1 = [];
|
|
1696
|
-
for (var _i =
|
|
1697
|
-
args_1[_i] = arguments[_i];
|
|
1593
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1594
|
+
args_1[_i - 2] = arguments[_i];
|
|
1698
1595
|
}
|
|
1699
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1596
|
+
return __awaiter(_this, __spreadArray([orgId_1, roleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, roleAssignmentRequestBody, options) {
|
|
1700
1597
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1701
1598
|
if (options === void 0) { options = {}; }
|
|
1702
1599
|
return __generator(this, function (_a) {
|
|
1703
1600
|
switch (_a.label) {
|
|
1704
1601
|
case 0:
|
|
1705
|
-
|
|
1602
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1603
|
+
(0, common_1.assertParamExists)('applyRoleAssignment', 'orgId', orgId);
|
|
1604
|
+
localVarPath = "/orgs/{orgId}/roleAssignments/apply"
|
|
1605
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1706
1606
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1707
1607
|
if (configuration) {
|
|
1708
1608
|
baseOptions = configuration.baseOptions;
|
|
1709
1609
|
}
|
|
1710
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1610
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1711
1611
|
localVarHeaderParameter = {};
|
|
1712
1612
|
localVarQueryParameter = {};
|
|
1713
1613
|
// authentication ApiKeyAuth required
|
|
@@ -1715,9 +1615,11 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1715
1615
|
case 1:
|
|
1716
1616
|
// authentication ApiKeyAuth required
|
|
1717
1617
|
_a.sent();
|
|
1618
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1718
1619
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1719
1620
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1720
1621
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1622
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(roleAssignmentRequestBody, localVarRequestOptions, configuration);
|
|
1721
1623
|
return [2 /*return*/, {
|
|
1722
1624
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1723
1625
|
options: localVarRequestOptions,
|
|
@@ -1727,28 +1629,33 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1727
1629
|
});
|
|
1728
1630
|
},
|
|
1729
1631
|
/**
|
|
1730
|
-
*
|
|
1731
|
-
* @summary
|
|
1632
|
+
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
1633
|
+
* @summary Rematerialize Role Assignment
|
|
1634
|
+
* @param {string} orgId
|
|
1635
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
1732
1636
|
* @param {*} [options] Override http request option.
|
|
1733
1637
|
* @throws {RequiredError}
|
|
1734
1638
|
*/
|
|
1735
|
-
|
|
1639
|
+
rematerializeRoleAssignmentV2: function (orgId_1, rematerializeRoleAssignmentRequestBody_1) {
|
|
1736
1640
|
var args_1 = [];
|
|
1737
|
-
for (var _i =
|
|
1738
|
-
args_1[_i] = arguments[_i];
|
|
1641
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1642
|
+
args_1[_i - 2] = arguments[_i];
|
|
1739
1643
|
}
|
|
1740
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1644
|
+
return __awaiter(_this, __spreadArray([orgId_1, rematerializeRoleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, rematerializeRoleAssignmentRequestBody, options) {
|
|
1741
1645
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1742
1646
|
if (options === void 0) { options = {}; }
|
|
1743
1647
|
return __generator(this, function (_a) {
|
|
1744
1648
|
switch (_a.label) {
|
|
1745
1649
|
case 0:
|
|
1746
|
-
|
|
1650
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1651
|
+
(0, common_1.assertParamExists)('rematerializeRoleAssignmentV2', 'orgId', orgId);
|
|
1652
|
+
localVarPath = "/orgs/{orgId}/roleAssignments/rematerialize"
|
|
1653
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1747
1654
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1748
1655
|
if (configuration) {
|
|
1749
1656
|
baseOptions = configuration.baseOptions;
|
|
1750
1657
|
}
|
|
1751
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1658
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1752
1659
|
localVarHeaderParameter = {};
|
|
1753
1660
|
localVarQueryParameter = {};
|
|
1754
1661
|
// authentication ApiKeyAuth required
|
|
@@ -1756,9 +1663,11 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1756
1663
|
case 1:
|
|
1757
1664
|
// authentication ApiKeyAuth required
|
|
1758
1665
|
_a.sent();
|
|
1666
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1759
1667
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1760
1668
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1761
1669
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1670
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration);
|
|
1762
1671
|
return [2 /*return*/, {
|
|
1763
1672
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1764
1673
|
options: localVarRequestOptions,
|
|
@@ -1768,28 +1677,33 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1768
1677
|
});
|
|
1769
1678
|
},
|
|
1770
1679
|
/**
|
|
1771
|
-
*
|
|
1772
|
-
* @summary
|
|
1680
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
1681
|
+
* @summary Remove teammate
|
|
1682
|
+
* @param {string} orgId
|
|
1683
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
1773
1684
|
* @param {*} [options] Override http request option.
|
|
1774
1685
|
* @throws {RequiredError}
|
|
1775
1686
|
*/
|
|
1776
|
-
|
|
1687
|
+
removeTeammate: function (orgId_1, removeTeammateRequestBody_1) {
|
|
1777
1688
|
var args_1 = [];
|
|
1778
|
-
for (var _i =
|
|
1779
|
-
args_1[_i] = arguments[_i];
|
|
1689
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1690
|
+
args_1[_i - 2] = arguments[_i];
|
|
1780
1691
|
}
|
|
1781
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1692
|
+
return __awaiter(_this, __spreadArray([orgId_1, removeTeammateRequestBody_1], args_1, true), void 0, function (orgId, removeTeammateRequestBody, options) {
|
|
1782
1693
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1783
1694
|
if (options === void 0) { options = {}; }
|
|
1784
1695
|
return __generator(this, function (_a) {
|
|
1785
1696
|
switch (_a.label) {
|
|
1786
1697
|
case 0:
|
|
1787
|
-
|
|
1698
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
1699
|
+
(0, common_1.assertParamExists)('removeTeammate', 'orgId', orgId);
|
|
1700
|
+
localVarPath = "/orgs/{orgId}/roleAssignments/remove"
|
|
1701
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1788
1702
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1789
1703
|
if (configuration) {
|
|
1790
1704
|
baseOptions = configuration.baseOptions;
|
|
1791
1705
|
}
|
|
1792
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1706
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1793
1707
|
localVarHeaderParameter = {};
|
|
1794
1708
|
localVarQueryParameter = {};
|
|
1795
1709
|
// authentication ApiKeyAuth required
|
|
@@ -1797,9 +1711,11 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1797
1711
|
case 1:
|
|
1798
1712
|
// authentication ApiKeyAuth required
|
|
1799
1713
|
_a.sent();
|
|
1714
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1800
1715
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1801
1716
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1802
1717
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1718
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(removeTeammateRequestBody, localVarRequestOptions, configuration);
|
|
1803
1719
|
return [2 /*return*/, {
|
|
1804
1720
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1805
1721
|
options: localVarRequestOptions,
|
|
@@ -1810,1445 +1726,81 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1810
1726
|
},
|
|
1811
1727
|
};
|
|
1812
1728
|
};
|
|
1813
|
-
exports.
|
|
1729
|
+
exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
|
|
1814
1730
|
/**
|
|
1815
|
-
*
|
|
1731
|
+
* RoleAssignmentApi - functional programming interface
|
|
1816
1732
|
* @export
|
|
1817
1733
|
*/
|
|
1818
|
-
var
|
|
1819
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
1734
|
+
var RoleAssignmentApiFp = function (configuration) {
|
|
1735
|
+
var localVarAxiosParamCreator = (0, exports.RoleAssignmentApiAxiosParamCreator)(configuration);
|
|
1820
1736
|
return {
|
|
1821
1737
|
/**
|
|
1822
|
-
*
|
|
1823
|
-
* @summary
|
|
1824
|
-
* @param {*} [options] Override http request option.
|
|
1825
|
-
* @throws {RequiredError}
|
|
1826
|
-
*/
|
|
1827
|
-
configListFeatureBasedRoles: function (options) {
|
|
1828
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1829
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1830
|
-
var _a, _b, _c;
|
|
1831
|
-
return __generator(this, function (_d) {
|
|
1832
|
-
switch (_d.label) {
|
|
1833
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListFeatureBasedRoles(options)];
|
|
1834
|
-
case 1:
|
|
1835
|
-
localVarAxiosArgs = _d.sent();
|
|
1836
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1837
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListFeatureBasedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1838
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1839
|
-
}
|
|
1840
|
-
});
|
|
1841
|
-
});
|
|
1842
|
-
},
|
|
1843
|
-
/**
|
|
1844
|
-
* List the available permissions
|
|
1845
|
-
* @summary List Permissions
|
|
1846
|
-
* @param {*} [options] Override http request option.
|
|
1847
|
-
* @throws {RequiredError}
|
|
1848
|
-
*/
|
|
1849
|
-
configListPermissions: function (options) {
|
|
1850
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1851
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1852
|
-
var _a, _b, _c;
|
|
1853
|
-
return __generator(this, function (_d) {
|
|
1854
|
-
switch (_d.label) {
|
|
1855
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListPermissions(options)];
|
|
1856
|
-
case 1:
|
|
1857
|
-
localVarAxiosArgs = _d.sent();
|
|
1858
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1859
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1860
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1861
|
-
}
|
|
1862
|
-
});
|
|
1863
|
-
});
|
|
1864
|
-
},
|
|
1865
|
-
/**
|
|
1866
|
-
* List the available roles
|
|
1867
|
-
* @summary List Roles
|
|
1868
|
-
* @param {*} [options] Override http request option.
|
|
1869
|
-
* @throws {RequiredError}
|
|
1870
|
-
*/
|
|
1871
|
-
configListRoles: function (options) {
|
|
1872
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1873
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1874
|
-
var _a, _b, _c;
|
|
1875
|
-
return __generator(this, function (_d) {
|
|
1876
|
-
switch (_d.label) {
|
|
1877
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.configListRoles(options)];
|
|
1878
|
-
case 1:
|
|
1879
|
-
localVarAxiosArgs = _d.sent();
|
|
1880
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1881
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.configListRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1882
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1883
|
-
}
|
|
1884
|
-
});
|
|
1885
|
-
});
|
|
1886
|
-
},
|
|
1887
|
-
/**
|
|
1888
|
-
* List the available feature based roles
|
|
1889
|
-
* @summary List Feature Based Roles
|
|
1890
|
-
* @param {*} [options] Override http request option.
|
|
1891
|
-
* @throws {RequiredError}
|
|
1892
|
-
*/
|
|
1893
|
-
listFeatureBasedRoles: function (options) {
|
|
1894
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1895
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1896
|
-
var _a, _b, _c;
|
|
1897
|
-
return __generator(this, function (_d) {
|
|
1898
|
-
switch (_d.label) {
|
|
1899
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listFeatureBasedRoles(options)];
|
|
1900
|
-
case 1:
|
|
1901
|
-
localVarAxiosArgs = _d.sent();
|
|
1902
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1903
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listFeatureBasedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1904
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1905
|
-
}
|
|
1906
|
-
});
|
|
1907
|
-
});
|
|
1908
|
-
},
|
|
1909
|
-
/**
|
|
1910
|
-
* List the available permissions
|
|
1911
|
-
* @summary List Permissions
|
|
1912
|
-
* @param {*} [options] Override http request option.
|
|
1913
|
-
* @throws {RequiredError}
|
|
1914
|
-
*/
|
|
1915
|
-
listPermissions: function (options) {
|
|
1916
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1917
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1918
|
-
var _a, _b, _c;
|
|
1919
|
-
return __generator(this, function (_d) {
|
|
1920
|
-
switch (_d.label) {
|
|
1921
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPermissions(options)];
|
|
1922
|
-
case 1:
|
|
1923
|
-
localVarAxiosArgs = _d.sent();
|
|
1924
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1925
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1926
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1927
|
-
}
|
|
1928
|
-
});
|
|
1929
|
-
});
|
|
1930
|
-
},
|
|
1931
|
-
/**
|
|
1932
|
-
* List the available roles
|
|
1933
|
-
* @summary List Roles
|
|
1934
|
-
* @param {*} [options] Override http request option.
|
|
1935
|
-
* @throws {RequiredError}
|
|
1936
|
-
*/
|
|
1937
|
-
listRoles: function (options) {
|
|
1938
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1939
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1940
|
-
var _a, _b, _c;
|
|
1941
|
-
return __generator(this, function (_d) {
|
|
1942
|
-
switch (_d.label) {
|
|
1943
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(options)];
|
|
1944
|
-
case 1:
|
|
1945
|
-
localVarAxiosArgs = _d.sent();
|
|
1946
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1947
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1948
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1949
|
-
}
|
|
1950
|
-
});
|
|
1951
|
-
});
|
|
1952
|
-
},
|
|
1953
|
-
};
|
|
1954
|
-
};
|
|
1955
|
-
exports.ConfigurationDataApiFp = ConfigurationDataApiFp;
|
|
1956
|
-
/**
|
|
1957
|
-
* ConfigurationDataApi - factory interface
|
|
1958
|
-
* @export
|
|
1959
|
-
*/
|
|
1960
|
-
var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
|
|
1961
|
-
var localVarFp = (0, exports.ConfigurationDataApiFp)(configuration);
|
|
1962
|
-
return {
|
|
1963
|
-
/**
|
|
1964
|
-
* List the available feature based roles
|
|
1965
|
-
* @summary List Feature Based Roles
|
|
1966
|
-
* @param {*} [options] Override http request option.
|
|
1967
|
-
* @throws {RequiredError}
|
|
1968
|
-
*/
|
|
1969
|
-
configListFeatureBasedRoles: function (options) {
|
|
1970
|
-
return localVarFp.configListFeatureBasedRoles(options).then(function (request) { return request(axios, basePath); });
|
|
1971
|
-
},
|
|
1972
|
-
/**
|
|
1973
|
-
* List the available permissions
|
|
1974
|
-
* @summary List Permissions
|
|
1975
|
-
* @param {*} [options] Override http request option.
|
|
1976
|
-
* @throws {RequiredError}
|
|
1977
|
-
*/
|
|
1978
|
-
configListPermissions: function (options) {
|
|
1979
|
-
return localVarFp.configListPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
1980
|
-
},
|
|
1981
|
-
/**
|
|
1982
|
-
* List the available roles
|
|
1983
|
-
* @summary List Roles
|
|
1984
|
-
* @param {*} [options] Override http request option.
|
|
1985
|
-
* @throws {RequiredError}
|
|
1986
|
-
*/
|
|
1987
|
-
configListRoles: function (options) {
|
|
1988
|
-
return localVarFp.configListRoles(options).then(function (request) { return request(axios, basePath); });
|
|
1989
|
-
},
|
|
1990
|
-
/**
|
|
1991
|
-
* List the available feature based roles
|
|
1992
|
-
* @summary List Feature Based Roles
|
|
1993
|
-
* @param {*} [options] Override http request option.
|
|
1994
|
-
* @throws {RequiredError}
|
|
1995
|
-
*/
|
|
1996
|
-
listFeatureBasedRoles: function (options) {
|
|
1997
|
-
return localVarFp.listFeatureBasedRoles(options).then(function (request) { return request(axios, basePath); });
|
|
1998
|
-
},
|
|
1999
|
-
/**
|
|
2000
|
-
* List the available permissions
|
|
2001
|
-
* @summary List Permissions
|
|
2002
|
-
* @param {*} [options] Override http request option.
|
|
2003
|
-
* @throws {RequiredError}
|
|
2004
|
-
*/
|
|
2005
|
-
listPermissions: function (options) {
|
|
2006
|
-
return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
2007
|
-
},
|
|
2008
|
-
/**
|
|
2009
|
-
* List the available roles
|
|
2010
|
-
* @summary List Roles
|
|
2011
|
-
* @param {*} [options] Override http request option.
|
|
2012
|
-
* @throws {RequiredError}
|
|
2013
|
-
*/
|
|
2014
|
-
listRoles: function (options) {
|
|
2015
|
-
return localVarFp.listRoles(options).then(function (request) { return request(axios, basePath); });
|
|
2016
|
-
},
|
|
2017
|
-
};
|
|
2018
|
-
};
|
|
2019
|
-
exports.ConfigurationDataApiFactory = ConfigurationDataApiFactory;
|
|
2020
|
-
/**
|
|
2021
|
-
* ConfigurationDataApi - object-oriented interface
|
|
2022
|
-
* @export
|
|
2023
|
-
* @class ConfigurationDataApi
|
|
2024
|
-
* @extends {BaseAPI}
|
|
2025
|
-
*/
|
|
2026
|
-
var ConfigurationDataApi = /** @class */ (function (_super) {
|
|
2027
|
-
__extends(ConfigurationDataApi, _super);
|
|
2028
|
-
function ConfigurationDataApi() {
|
|
2029
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2030
|
-
}
|
|
2031
|
-
/**
|
|
2032
|
-
* List the available feature based roles
|
|
2033
|
-
* @summary List Feature Based Roles
|
|
2034
|
-
* @param {*} [options] Override http request option.
|
|
2035
|
-
* @throws {RequiredError}
|
|
2036
|
-
* @memberof ConfigurationDataApi
|
|
2037
|
-
*/
|
|
2038
|
-
ConfigurationDataApi.prototype.configListFeatureBasedRoles = function (options) {
|
|
2039
|
-
var _this = this;
|
|
2040
|
-
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListFeatureBasedRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2041
|
-
};
|
|
2042
|
-
/**
|
|
2043
|
-
* List the available permissions
|
|
2044
|
-
* @summary List Permissions
|
|
2045
|
-
* @param {*} [options] Override http request option.
|
|
2046
|
-
* @throws {RequiredError}
|
|
2047
|
-
* @memberof ConfigurationDataApi
|
|
2048
|
-
*/
|
|
2049
|
-
ConfigurationDataApi.prototype.configListPermissions = function (options) {
|
|
2050
|
-
var _this = this;
|
|
2051
|
-
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2052
|
-
};
|
|
2053
|
-
/**
|
|
2054
|
-
* List the available roles
|
|
2055
|
-
* @summary List Roles
|
|
2056
|
-
* @param {*} [options] Override http request option.
|
|
2057
|
-
* @throws {RequiredError}
|
|
2058
|
-
* @memberof ConfigurationDataApi
|
|
2059
|
-
*/
|
|
2060
|
-
ConfigurationDataApi.prototype.configListRoles = function (options) {
|
|
2061
|
-
var _this = this;
|
|
2062
|
-
return (0, exports.ConfigurationDataApiFp)(this.configuration).configListRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2063
|
-
};
|
|
2064
|
-
/**
|
|
2065
|
-
* List the available feature based roles
|
|
2066
|
-
* @summary List Feature Based Roles
|
|
2067
|
-
* @param {*} [options] Override http request option.
|
|
2068
|
-
* @throws {RequiredError}
|
|
2069
|
-
* @memberof ConfigurationDataApi
|
|
2070
|
-
*/
|
|
2071
|
-
ConfigurationDataApi.prototype.listFeatureBasedRoles = function (options) {
|
|
2072
|
-
var _this = this;
|
|
2073
|
-
return (0, exports.ConfigurationDataApiFp)(this.configuration).listFeatureBasedRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2074
|
-
};
|
|
2075
|
-
/**
|
|
2076
|
-
* List the available permissions
|
|
2077
|
-
* @summary List Permissions
|
|
2078
|
-
* @param {*} [options] Override http request option.
|
|
2079
|
-
* @throws {RequiredError}
|
|
2080
|
-
* @memberof ConfigurationDataApi
|
|
2081
|
-
*/
|
|
2082
|
-
ConfigurationDataApi.prototype.listPermissions = function (options) {
|
|
2083
|
-
var _this = this;
|
|
2084
|
-
return (0, exports.ConfigurationDataApiFp)(this.configuration).listPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2085
|
-
};
|
|
2086
|
-
/**
|
|
2087
|
-
* List the available roles
|
|
2088
|
-
* @summary List Roles
|
|
2089
|
-
* @param {*} [options] Override http request option.
|
|
2090
|
-
* @throws {RequiredError}
|
|
2091
|
-
* @memberof ConfigurationDataApi
|
|
2092
|
-
*/
|
|
2093
|
-
ConfigurationDataApi.prototype.listRoles = function (options) {
|
|
2094
|
-
var _this = this;
|
|
2095
|
-
return (0, exports.ConfigurationDataApiFp)(this.configuration).listRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2096
|
-
};
|
|
2097
|
-
return ConfigurationDataApi;
|
|
2098
|
-
}(base_1.BaseAPI));
|
|
2099
|
-
exports.ConfigurationDataApi = ConfigurationDataApi;
|
|
2100
|
-
/**
|
|
2101
|
-
* RoleAssignmentApi - axios parameter creator
|
|
2102
|
-
* @export
|
|
2103
|
-
*/
|
|
2104
|
-
var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
2105
|
-
var _this = this;
|
|
2106
|
-
return {
|
|
2107
|
-
/**
|
|
2108
|
-
* Assigns a specified role to a given principal (user, group, etc.)
|
|
2109
|
-
* @summary Assign Role to Principal
|
|
2110
|
-
* @param {string} orgId
|
|
2111
|
-
* @param {AssignRoleRequestBody} [assignRoleRequestBody]
|
|
2112
|
-
* @param {*} [options] Override http request option.
|
|
2113
|
-
* @throws {RequiredError}
|
|
2114
|
-
*/
|
|
2115
|
-
assignRoleToPrincipal: function (orgId_1, assignRoleRequestBody_1) {
|
|
2116
|
-
var args_1 = [];
|
|
2117
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2118
|
-
args_1[_i - 2] = arguments[_i];
|
|
2119
|
-
}
|
|
2120
|
-
return __awaiter(_this, __spreadArray([orgId_1, assignRoleRequestBody_1], args_1, true), void 0, function (orgId, assignRoleRequestBody, options) {
|
|
2121
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2122
|
-
if (options === void 0) { options = {}; }
|
|
2123
|
-
return __generator(this, function (_a) {
|
|
2124
|
-
switch (_a.label) {
|
|
2125
|
-
case 0:
|
|
2126
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2127
|
-
(0, common_1.assertParamExists)('assignRoleToPrincipal', 'orgId', orgId);
|
|
2128
|
-
localVarPath = "/orgs/{orgId}/roles/assignRoleToPrincipal"
|
|
2129
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2130
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2131
|
-
if (configuration) {
|
|
2132
|
-
baseOptions = configuration.baseOptions;
|
|
2133
|
-
}
|
|
2134
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2135
|
-
localVarHeaderParameter = {};
|
|
2136
|
-
localVarQueryParameter = {};
|
|
2137
|
-
// authentication ApiKeyAuth required
|
|
2138
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2139
|
-
case 1:
|
|
2140
|
-
// authentication ApiKeyAuth required
|
|
2141
|
-
_a.sent();
|
|
2142
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2143
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2144
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2145
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2146
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignRoleRequestBody, localVarRequestOptions, configuration);
|
|
2147
|
-
return [2 /*return*/, {
|
|
2148
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2149
|
-
options: localVarRequestOptions,
|
|
2150
|
-
}];
|
|
2151
|
-
}
|
|
2152
|
-
});
|
|
2153
|
-
});
|
|
2154
|
-
},
|
|
2155
|
-
/**
|
|
2156
|
-
* Get the active roles for a given principal
|
|
2157
|
-
* @summary Get Principal Roles
|
|
2158
|
-
* @param {string} orgId
|
|
2159
|
-
* @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
|
|
2160
|
-
* @param {*} [options] Override http request option.
|
|
2161
|
-
* @throws {RequiredError}
|
|
2162
|
-
*/
|
|
2163
|
-
getPrincipalRoles: function (orgId_1, getPrincipalRolesRequestBody_1) {
|
|
2164
|
-
var args_1 = [];
|
|
2165
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2166
|
-
args_1[_i - 2] = arguments[_i];
|
|
2167
|
-
}
|
|
2168
|
-
return __awaiter(_this, __spreadArray([orgId_1, getPrincipalRolesRequestBody_1], args_1, true), void 0, function (orgId, getPrincipalRolesRequestBody, options) {
|
|
2169
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2170
|
-
if (options === void 0) { options = {}; }
|
|
2171
|
-
return __generator(this, function (_a) {
|
|
2172
|
-
switch (_a.label) {
|
|
2173
|
-
case 0:
|
|
2174
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2175
|
-
(0, common_1.assertParamExists)('getPrincipalRoles', 'orgId', orgId);
|
|
2176
|
-
localVarPath = "/orgs/{orgId}/roles/getPrincipalRoles"
|
|
2177
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2178
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2179
|
-
if (configuration) {
|
|
2180
|
-
baseOptions = configuration.baseOptions;
|
|
2181
|
-
}
|
|
2182
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2183
|
-
localVarHeaderParameter = {};
|
|
2184
|
-
localVarQueryParameter = {};
|
|
2185
|
-
// authentication ApiKeyAuth required
|
|
2186
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2187
|
-
case 1:
|
|
2188
|
-
// authentication ApiKeyAuth required
|
|
2189
|
-
_a.sent();
|
|
2190
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2191
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2192
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2193
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2194
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getPrincipalRolesRequestBody, localVarRequestOptions, configuration);
|
|
2195
|
-
return [2 /*return*/, {
|
|
2196
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2197
|
-
options: localVarRequestOptions,
|
|
2198
|
-
}];
|
|
2199
|
-
}
|
|
2200
|
-
});
|
|
2201
|
-
});
|
|
2202
|
-
},
|
|
2203
|
-
/**
|
|
2204
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2205
|
-
* @summary Grant teammate access to a new user
|
|
2206
|
-
* @param {string} orgId
|
|
2207
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2208
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2209
|
-
* @param {*} [options] Override http request option.
|
|
2210
|
-
* @throws {RequiredError}
|
|
2211
|
-
*/
|
|
2212
|
-
grantTeammateAccess: function (orgId_1, userId_1, grantTeammateAccessRequestBody_1) {
|
|
2213
|
-
var args_1 = [];
|
|
2214
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2215
|
-
args_1[_i - 3] = arguments[_i];
|
|
2216
|
-
}
|
|
2217
|
-
return __awaiter(_this, __spreadArray([orgId_1, userId_1, grantTeammateAccessRequestBody_1], args_1, true), void 0, function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2218
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2219
|
-
if (options === void 0) { options = {}; }
|
|
2220
|
-
return __generator(this, function (_a) {
|
|
2221
|
-
switch (_a.label) {
|
|
2222
|
-
case 0:
|
|
2223
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2224
|
-
(0, common_1.assertParamExists)('grantTeammateAccess', 'orgId', orgId);
|
|
2225
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2226
|
-
(0, common_1.assertParamExists)('grantTeammateAccess', 'userId', userId);
|
|
2227
|
-
localVarPath = "/orgs/{orgId}/users/{userId}/grantTeammateAccess"
|
|
2228
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
2229
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2230
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2231
|
-
if (configuration) {
|
|
2232
|
-
baseOptions = configuration.baseOptions;
|
|
2233
|
-
}
|
|
2234
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2235
|
-
localVarHeaderParameter = {};
|
|
2236
|
-
localVarQueryParameter = {};
|
|
2237
|
-
// authentication ApiKeyAuth required
|
|
2238
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2239
|
-
case 1:
|
|
2240
|
-
// authentication ApiKeyAuth required
|
|
2241
|
-
_a.sent();
|
|
2242
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2243
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2244
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2245
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2246
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(grantTeammateAccessRequestBody, localVarRequestOptions, configuration);
|
|
2247
|
-
return [2 /*return*/, {
|
|
2248
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2249
|
-
options: localVarRequestOptions,
|
|
2250
|
-
}];
|
|
2251
|
-
}
|
|
2252
|
-
});
|
|
2253
|
-
});
|
|
2254
|
-
},
|
|
2255
|
-
/**
|
|
2256
|
-
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
2257
|
-
* @summary Grant v2 teammate access to a user
|
|
2258
|
-
* @param {string} orgId
|
|
2259
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2260
|
-
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
2261
|
-
* @param {*} [options] Override http request option.
|
|
2262
|
-
* @throws {RequiredError}
|
|
2263
|
-
*/
|
|
2264
|
-
grantTeammateAccessV2: function (orgId_1, userId_1, v2UiRoleAssignmentRequestBody_1) {
|
|
2265
|
-
var args_1 = [];
|
|
2266
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2267
|
-
args_1[_i - 3] = arguments[_i];
|
|
2268
|
-
}
|
|
2269
|
-
return __awaiter(_this, __spreadArray([orgId_1, userId_1, v2UiRoleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
|
|
2270
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2271
|
-
if (options === void 0) { options = {}; }
|
|
2272
|
-
return __generator(this, function (_a) {
|
|
2273
|
-
switch (_a.label) {
|
|
2274
|
-
case 0:
|
|
2275
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2276
|
-
(0, common_1.assertParamExists)('grantTeammateAccessV2', 'orgId', orgId);
|
|
2277
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2278
|
-
(0, common_1.assertParamExists)('grantTeammateAccessV2', 'userId', userId);
|
|
2279
|
-
localVarPath = "/v2/orgs/{orgId}/users/{userId}/grantTeammateAccess"
|
|
2280
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
2281
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2282
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2283
|
-
if (configuration) {
|
|
2284
|
-
baseOptions = configuration.baseOptions;
|
|
2285
|
-
}
|
|
2286
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2287
|
-
localVarHeaderParameter = {};
|
|
2288
|
-
localVarQueryParameter = {};
|
|
2289
|
-
// authentication ApiKeyAuth required
|
|
2290
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2291
|
-
case 1:
|
|
2292
|
-
// authentication ApiKeyAuth required
|
|
2293
|
-
_a.sent();
|
|
2294
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2295
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2296
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2297
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2298
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2UiRoleAssignmentRequestBody, localVarRequestOptions, configuration);
|
|
2299
|
-
return [2 /*return*/, {
|
|
2300
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2301
|
-
options: localVarRequestOptions,
|
|
2302
|
-
}];
|
|
2303
|
-
}
|
|
2304
|
-
});
|
|
2305
|
-
});
|
|
2306
|
-
},
|
|
2307
|
-
/**
|
|
2308
|
-
* Rematerializes a V2 role assignment and applies the resulting policy assignments
|
|
2309
|
-
* @summary Rematerialize V2 Role Assignment
|
|
2310
|
-
* @param {string} orgId
|
|
2311
|
-
* @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
|
|
2312
|
-
* @param {*} [options] Override http request option.
|
|
2313
|
-
* @throws {RequiredError}
|
|
2314
|
-
*/
|
|
2315
|
-
rematerializeRoleAssignmentV2: function (orgId_1, rematerializeRoleAssignmentV2RequestBody_1) {
|
|
2316
|
-
var args_1 = [];
|
|
2317
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2318
|
-
args_1[_i - 2] = arguments[_i];
|
|
2319
|
-
}
|
|
2320
|
-
return __awaiter(_this, __spreadArray([orgId_1, rematerializeRoleAssignmentV2RequestBody_1], args_1, true), void 0, function (orgId, rematerializeRoleAssignmentV2RequestBody, options) {
|
|
2321
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2322
|
-
if (options === void 0) { options = {}; }
|
|
2323
|
-
return __generator(this, function (_a) {
|
|
2324
|
-
switch (_a.label) {
|
|
2325
|
-
case 0:
|
|
2326
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2327
|
-
(0, common_1.assertParamExists)('rematerializeRoleAssignmentV2', 'orgId', orgId);
|
|
2328
|
-
localVarPath = "/orgs/{orgId}/roleAssignments/v2/rematerialize"
|
|
2329
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2330
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2331
|
-
if (configuration) {
|
|
2332
|
-
baseOptions = configuration.baseOptions;
|
|
2333
|
-
}
|
|
2334
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2335
|
-
localVarHeaderParameter = {};
|
|
2336
|
-
localVarQueryParameter = {};
|
|
2337
|
-
// authentication ApiKeyAuth required
|
|
2338
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2339
|
-
case 1:
|
|
2340
|
-
// authentication ApiKeyAuth required
|
|
2341
|
-
_a.sent();
|
|
2342
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2343
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2344
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2345
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2346
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rematerializeRoleAssignmentV2RequestBody, localVarRequestOptions, configuration);
|
|
2347
|
-
return [2 /*return*/, {
|
|
2348
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2349
|
-
options: localVarRequestOptions,
|
|
2350
|
-
}];
|
|
2351
|
-
}
|
|
2352
|
-
});
|
|
2353
|
-
});
|
|
2354
|
-
},
|
|
2355
|
-
/**
|
|
2356
|
-
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2357
|
-
* @summary Revoke Forbidden Role from Principal
|
|
2358
|
-
* @param {string} orgId
|
|
2359
|
-
* @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
|
|
2360
|
-
* @param {*} [options] Override http request option.
|
|
2361
|
-
* @throws {RequiredError}
|
|
2362
|
-
*/
|
|
2363
|
-
revokeForbiddenRoleFromPrincipal: function (orgId_1, revokeForbiddenRoleRequestBody_1) {
|
|
2364
|
-
var args_1 = [];
|
|
2365
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2366
|
-
args_1[_i - 2] = arguments[_i];
|
|
2367
|
-
}
|
|
2368
|
-
return __awaiter(_this, __spreadArray([orgId_1, revokeForbiddenRoleRequestBody_1], args_1, true), void 0, function (orgId, revokeForbiddenRoleRequestBody, options) {
|
|
2369
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2370
|
-
if (options === void 0) { options = {}; }
|
|
2371
|
-
return __generator(this, function (_a) {
|
|
2372
|
-
switch (_a.label) {
|
|
2373
|
-
case 0:
|
|
2374
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2375
|
-
(0, common_1.assertParamExists)('revokeForbiddenRoleFromPrincipal', 'orgId', orgId);
|
|
2376
|
-
localVarPath = "/orgs/{orgId}/roles/revokeForbiddenRoleFromPrincipal"
|
|
2377
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2378
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2379
|
-
if (configuration) {
|
|
2380
|
-
baseOptions = configuration.baseOptions;
|
|
2381
|
-
}
|
|
2382
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2383
|
-
localVarHeaderParameter = {};
|
|
2384
|
-
localVarQueryParameter = {};
|
|
2385
|
-
// authentication ApiKeyAuth required
|
|
2386
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2387
|
-
case 1:
|
|
2388
|
-
// authentication ApiKeyAuth required
|
|
2389
|
-
_a.sent();
|
|
2390
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2391
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2392
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2393
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2394
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revokeForbiddenRoleRequestBody, localVarRequestOptions, configuration);
|
|
2395
|
-
return [2 /*return*/, {
|
|
2396
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2397
|
-
options: localVarRequestOptions,
|
|
2398
|
-
}];
|
|
2399
|
-
}
|
|
2400
|
-
});
|
|
2401
|
-
});
|
|
2402
|
-
},
|
|
2403
|
-
/**
|
|
2404
|
-
* Revokes a specified role from a given principal (user, group, etc.)
|
|
2405
|
-
* @summary Revoke Role from Principal
|
|
2406
|
-
* @param {string} orgId
|
|
2407
|
-
* @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
|
|
2408
|
-
* @param {*} [options] Override http request option.
|
|
2409
|
-
* @throws {RequiredError}
|
|
2410
|
-
*/
|
|
2411
|
-
revokeRoleFromPrincipal: function (orgId_1, revokeRoleRequestBody_1) {
|
|
2412
|
-
var args_1 = [];
|
|
2413
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2414
|
-
args_1[_i - 2] = arguments[_i];
|
|
2415
|
-
}
|
|
2416
|
-
return __awaiter(_this, __spreadArray([orgId_1, revokeRoleRequestBody_1], args_1, true), void 0, function (orgId, revokeRoleRequestBody, options) {
|
|
2417
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2418
|
-
if (options === void 0) { options = {}; }
|
|
2419
|
-
return __generator(this, function (_a) {
|
|
2420
|
-
switch (_a.label) {
|
|
2421
|
-
case 0:
|
|
2422
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2423
|
-
(0, common_1.assertParamExists)('revokeRoleFromPrincipal', 'orgId', orgId);
|
|
2424
|
-
localVarPath = "/orgs/{orgId}/roles/revokeRoleFromPrincipal"
|
|
2425
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
2426
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2427
|
-
if (configuration) {
|
|
2428
|
-
baseOptions = configuration.baseOptions;
|
|
2429
|
-
}
|
|
2430
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2431
|
-
localVarHeaderParameter = {};
|
|
2432
|
-
localVarQueryParameter = {};
|
|
2433
|
-
// authentication ApiKeyAuth required
|
|
2434
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2435
|
-
case 1:
|
|
2436
|
-
// authentication ApiKeyAuth required
|
|
2437
|
-
_a.sent();
|
|
2438
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2439
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2440
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2441
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2442
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revokeRoleRequestBody, localVarRequestOptions, configuration);
|
|
2443
|
-
return [2 /*return*/, {
|
|
2444
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2445
|
-
options: localVarRequestOptions,
|
|
2446
|
-
}];
|
|
2447
|
-
}
|
|
2448
|
-
});
|
|
2449
|
-
});
|
|
2450
|
-
},
|
|
2451
|
-
/**
|
|
2452
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2453
|
-
* @summary Update teammate access for an existing user
|
|
2454
|
-
* @param {string} orgId
|
|
2455
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2456
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2457
|
-
* @param {*} [options] Override http request option.
|
|
2458
|
-
* @throws {RequiredError}
|
|
2459
|
-
*/
|
|
2460
|
-
updateTeammateAccess: function (orgId_1, userId_1, updateTeammateAccessRequestBody_1) {
|
|
2461
|
-
var args_1 = [];
|
|
2462
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2463
|
-
args_1[_i - 3] = arguments[_i];
|
|
2464
|
-
}
|
|
2465
|
-
return __awaiter(_this, __spreadArray([orgId_1, userId_1, updateTeammateAccessRequestBody_1], args_1, true), void 0, function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2466
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2467
|
-
if (options === void 0) { options = {}; }
|
|
2468
|
-
return __generator(this, function (_a) {
|
|
2469
|
-
switch (_a.label) {
|
|
2470
|
-
case 0:
|
|
2471
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2472
|
-
(0, common_1.assertParamExists)('updateTeammateAccess', 'orgId', orgId);
|
|
2473
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2474
|
-
(0, common_1.assertParamExists)('updateTeammateAccess', 'userId', userId);
|
|
2475
|
-
localVarPath = "/orgs/{orgId}/users/{userId}/updateTeammateAccess"
|
|
2476
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
2477
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2478
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2479
|
-
if (configuration) {
|
|
2480
|
-
baseOptions = configuration.baseOptions;
|
|
2481
|
-
}
|
|
2482
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2483
|
-
localVarHeaderParameter = {};
|
|
2484
|
-
localVarQueryParameter = {};
|
|
2485
|
-
// authentication ApiKeyAuth required
|
|
2486
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2487
|
-
case 1:
|
|
2488
|
-
// authentication ApiKeyAuth required
|
|
2489
|
-
_a.sent();
|
|
2490
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2491
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2492
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2493
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2494
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTeammateAccessRequestBody, localVarRequestOptions, configuration);
|
|
2495
|
-
return [2 /*return*/, {
|
|
2496
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2497
|
-
options: localVarRequestOptions,
|
|
2498
|
-
}];
|
|
2499
|
-
}
|
|
2500
|
-
});
|
|
2501
|
-
});
|
|
2502
|
-
},
|
|
2503
|
-
/**
|
|
2504
|
-
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
2505
|
-
* @summary Update v2 teammate access for a user
|
|
2506
|
-
* @param {string} orgId
|
|
2507
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2508
|
-
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
2509
|
-
* @param {*} [options] Override http request option.
|
|
2510
|
-
* @throws {RequiredError}
|
|
2511
|
-
*/
|
|
2512
|
-
updateTeammateAccessV2: function (orgId_1, userId_1, v2UiRoleAssignmentRequestBody_1) {
|
|
2513
|
-
var args_1 = [];
|
|
2514
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2515
|
-
args_1[_i - 3] = arguments[_i];
|
|
2516
|
-
}
|
|
2517
|
-
return __awaiter(_this, __spreadArray([orgId_1, userId_1, v2UiRoleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
|
|
2518
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2519
|
-
if (options === void 0) { options = {}; }
|
|
2520
|
-
return __generator(this, function (_a) {
|
|
2521
|
-
switch (_a.label) {
|
|
2522
|
-
case 0:
|
|
2523
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2524
|
-
(0, common_1.assertParamExists)('updateTeammateAccessV2', 'orgId', orgId);
|
|
2525
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2526
|
-
(0, common_1.assertParamExists)('updateTeammateAccessV2', 'userId', userId);
|
|
2527
|
-
localVarPath = "/v2/orgs/{orgId}/users/{userId}/updateTeammateAccess"
|
|
2528
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
2529
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2530
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2531
|
-
if (configuration) {
|
|
2532
|
-
baseOptions = configuration.baseOptions;
|
|
2533
|
-
}
|
|
2534
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2535
|
-
localVarHeaderParameter = {};
|
|
2536
|
-
localVarQueryParameter = {};
|
|
2537
|
-
// authentication ApiKeyAuth required
|
|
2538
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
2539
|
-
case 1:
|
|
2540
|
-
// authentication ApiKeyAuth required
|
|
2541
|
-
_a.sent();
|
|
2542
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2543
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2544
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2545
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2546
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2UiRoleAssignmentRequestBody, localVarRequestOptions, configuration);
|
|
2547
|
-
return [2 /*return*/, {
|
|
2548
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2549
|
-
options: localVarRequestOptions,
|
|
2550
|
-
}];
|
|
2551
|
-
}
|
|
2552
|
-
});
|
|
2553
|
-
});
|
|
2554
|
-
},
|
|
2555
|
-
};
|
|
2556
|
-
};
|
|
2557
|
-
exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
|
|
2558
|
-
/**
|
|
2559
|
-
* RoleAssignmentApi - functional programming interface
|
|
2560
|
-
* @export
|
|
2561
|
-
*/
|
|
2562
|
-
var RoleAssignmentApiFp = function (configuration) {
|
|
2563
|
-
var localVarAxiosParamCreator = (0, exports.RoleAssignmentApiAxiosParamCreator)(configuration);
|
|
2564
|
-
return {
|
|
2565
|
-
/**
|
|
2566
|
-
* Assigns a specified role to a given principal (user, group, etc.)
|
|
2567
|
-
* @summary Assign Role to Principal
|
|
2568
|
-
* @param {string} orgId
|
|
2569
|
-
* @param {AssignRoleRequestBody} [assignRoleRequestBody]
|
|
2570
|
-
* @param {*} [options] Override http request option.
|
|
2571
|
-
* @throws {RequiredError}
|
|
2572
|
-
*/
|
|
2573
|
-
assignRoleToPrincipal: function (orgId, assignRoleRequestBody, options) {
|
|
2574
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2575
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2576
|
-
var _a, _b, _c;
|
|
2577
|
-
return __generator(this, function (_d) {
|
|
2578
|
-
switch (_d.label) {
|
|
2579
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignRoleToPrincipal(orgId, assignRoleRequestBody, options)];
|
|
2580
|
-
case 1:
|
|
2581
|
-
localVarAxiosArgs = _d.sent();
|
|
2582
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2583
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.assignRoleToPrincipal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2584
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2585
|
-
}
|
|
2586
|
-
});
|
|
2587
|
-
});
|
|
2588
|
-
},
|
|
2589
|
-
/**
|
|
2590
|
-
* Get the active roles for a given principal
|
|
2591
|
-
* @summary Get Principal Roles
|
|
2592
|
-
* @param {string} orgId
|
|
2593
|
-
* @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
|
|
2594
|
-
* @param {*} [options] Override http request option.
|
|
2595
|
-
* @throws {RequiredError}
|
|
2596
|
-
*/
|
|
2597
|
-
getPrincipalRoles: function (orgId, getPrincipalRolesRequestBody, options) {
|
|
2598
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2599
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2600
|
-
var _a, _b, _c;
|
|
2601
|
-
return __generator(this, function (_d) {
|
|
2602
|
-
switch (_d.label) {
|
|
2603
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options)];
|
|
2604
|
-
case 1:
|
|
2605
|
-
localVarAxiosArgs = _d.sent();
|
|
2606
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2607
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.getPrincipalRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2608
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2609
|
-
}
|
|
2610
|
-
});
|
|
2611
|
-
});
|
|
2612
|
-
},
|
|
2613
|
-
/**
|
|
2614
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2615
|
-
* @summary Grant teammate access to a new user
|
|
2616
|
-
* @param {string} orgId
|
|
2617
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2618
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2619
|
-
* @param {*} [options] Override http request option.
|
|
2620
|
-
* @throws {RequiredError}
|
|
2621
|
-
*/
|
|
2622
|
-
grantTeammateAccess: function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2623
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2624
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2625
|
-
var _a, _b, _c;
|
|
2626
|
-
return __generator(this, function (_d) {
|
|
2627
|
-
switch (_d.label) {
|
|
2628
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options)];
|
|
2629
|
-
case 1:
|
|
2630
|
-
localVarAxiosArgs = _d.sent();
|
|
2631
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2632
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.grantTeammateAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2633
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2634
|
-
}
|
|
2635
|
-
});
|
|
2636
|
-
});
|
|
2637
|
-
},
|
|
2638
|
-
/**
|
|
2639
|
-
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
2640
|
-
* @summary Grant v2 teammate access to a user
|
|
2641
|
-
* @param {string} orgId
|
|
2642
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2643
|
-
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
2644
|
-
* @param {*} [options] Override http request option.
|
|
2645
|
-
* @throws {RequiredError}
|
|
2646
|
-
*/
|
|
2647
|
-
grantTeammateAccessV2: function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
|
|
2648
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2649
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2650
|
-
var _a, _b, _c;
|
|
2651
|
-
return __generator(this, function (_d) {
|
|
2652
|
-
switch (_d.label) {
|
|
2653
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options)];
|
|
2654
|
-
case 1:
|
|
2655
|
-
localVarAxiosArgs = _d.sent();
|
|
2656
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2657
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.grantTeammateAccessV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2658
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2659
|
-
}
|
|
2660
|
-
});
|
|
2661
|
-
});
|
|
2662
|
-
},
|
|
2663
|
-
/**
|
|
2664
|
-
* Rematerializes a V2 role assignment and applies the resulting policy assignments
|
|
2665
|
-
* @summary Rematerialize V2 Role Assignment
|
|
2666
|
-
* @param {string} orgId
|
|
2667
|
-
* @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
|
|
2668
|
-
* @param {*} [options] Override http request option.
|
|
2669
|
-
* @throws {RequiredError}
|
|
2670
|
-
*/
|
|
2671
|
-
rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentV2RequestBody, options) {
|
|
2672
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2673
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2674
|
-
var _a, _b, _c;
|
|
2675
|
-
return __generator(this, function (_d) {
|
|
2676
|
-
switch (_d.label) {
|
|
2677
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options)];
|
|
2678
|
-
case 1:
|
|
2679
|
-
localVarAxiosArgs = _d.sent();
|
|
2680
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2681
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2682
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2683
|
-
}
|
|
2684
|
-
});
|
|
2685
|
-
});
|
|
2686
|
-
},
|
|
2687
|
-
/**
|
|
2688
|
-
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2689
|
-
* @summary Revoke Forbidden Role from Principal
|
|
2690
|
-
* @param {string} orgId
|
|
2691
|
-
* @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
|
|
2692
|
-
* @param {*} [options] Override http request option.
|
|
2693
|
-
* @throws {RequiredError}
|
|
2694
|
-
*/
|
|
2695
|
-
revokeForbiddenRoleFromPrincipal: function (orgId, revokeForbiddenRoleRequestBody, options) {
|
|
2696
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2697
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2698
|
-
var _a, _b, _c;
|
|
2699
|
-
return __generator(this, function (_d) {
|
|
2700
|
-
switch (_d.label) {
|
|
2701
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.revokeForbiddenRoleFromPrincipal(orgId, revokeForbiddenRoleRequestBody, options)];
|
|
2702
|
-
case 1:
|
|
2703
|
-
localVarAxiosArgs = _d.sent();
|
|
2704
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2705
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.revokeForbiddenRoleFromPrincipal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2706
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2707
|
-
}
|
|
2708
|
-
});
|
|
2709
|
-
});
|
|
2710
|
-
},
|
|
2711
|
-
/**
|
|
2712
|
-
* Revokes a specified role from a given principal (user, group, etc.)
|
|
2713
|
-
* @summary Revoke Role from Principal
|
|
2714
|
-
* @param {string} orgId
|
|
2715
|
-
* @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
|
|
2716
|
-
* @param {*} [options] Override http request option.
|
|
2717
|
-
* @throws {RequiredError}
|
|
2718
|
-
*/
|
|
2719
|
-
revokeRoleFromPrincipal: function (orgId, revokeRoleRequestBody, options) {
|
|
2720
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2721
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2722
|
-
var _a, _b, _c;
|
|
2723
|
-
return __generator(this, function (_d) {
|
|
2724
|
-
switch (_d.label) {
|
|
2725
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options)];
|
|
2726
|
-
case 1:
|
|
2727
|
-
localVarAxiosArgs = _d.sent();
|
|
2728
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2729
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.revokeRoleFromPrincipal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2730
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2731
|
-
}
|
|
2732
|
-
});
|
|
2733
|
-
});
|
|
2734
|
-
},
|
|
2735
|
-
/**
|
|
2736
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2737
|
-
* @summary Update teammate access for an existing user
|
|
2738
|
-
* @param {string} orgId
|
|
2739
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2740
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2741
|
-
* @param {*} [options] Override http request option.
|
|
2742
|
-
* @throws {RequiredError}
|
|
2743
|
-
*/
|
|
2744
|
-
updateTeammateAccess: function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2745
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2746
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2747
|
-
var _a, _b, _c;
|
|
2748
|
-
return __generator(this, function (_d) {
|
|
2749
|
-
switch (_d.label) {
|
|
2750
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options)];
|
|
2751
|
-
case 1:
|
|
2752
|
-
localVarAxiosArgs = _d.sent();
|
|
2753
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2754
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.updateTeammateAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2755
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2756
|
-
}
|
|
2757
|
-
});
|
|
2758
|
-
});
|
|
2759
|
-
},
|
|
2760
|
-
/**
|
|
2761
|
-
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
2762
|
-
* @summary Update v2 teammate access for a user
|
|
2763
|
-
* @param {string} orgId
|
|
2764
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2765
|
-
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
2766
|
-
* @param {*} [options] Override http request option.
|
|
2767
|
-
* @throws {RequiredError}
|
|
2768
|
-
*/
|
|
2769
|
-
updateTeammateAccessV2: function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
|
|
2770
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2771
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2772
|
-
var _a, _b, _c;
|
|
2773
|
-
return __generator(this, function (_d) {
|
|
2774
|
-
switch (_d.label) {
|
|
2775
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options)];
|
|
2776
|
-
case 1:
|
|
2777
|
-
localVarAxiosArgs = _d.sent();
|
|
2778
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2779
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.updateTeammateAccessV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2780
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2781
|
-
}
|
|
2782
|
-
});
|
|
2783
|
-
});
|
|
2784
|
-
},
|
|
2785
|
-
};
|
|
2786
|
-
};
|
|
2787
|
-
exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
|
|
2788
|
-
/**
|
|
2789
|
-
* RoleAssignmentApi - factory interface
|
|
2790
|
-
* @export
|
|
2791
|
-
*/
|
|
2792
|
-
var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
2793
|
-
var localVarFp = (0, exports.RoleAssignmentApiFp)(configuration);
|
|
2794
|
-
return {
|
|
2795
|
-
/**
|
|
2796
|
-
* Assigns a specified role to a given principal (user, group, etc.)
|
|
2797
|
-
* @summary Assign Role to Principal
|
|
2798
|
-
* @param {string} orgId
|
|
2799
|
-
* @param {AssignRoleRequestBody} [assignRoleRequestBody]
|
|
2800
|
-
* @param {*} [options] Override http request option.
|
|
2801
|
-
* @throws {RequiredError}
|
|
2802
|
-
*/
|
|
2803
|
-
assignRoleToPrincipal: function (orgId, assignRoleRequestBody, options) {
|
|
2804
|
-
return localVarFp.assignRoleToPrincipal(orgId, assignRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2805
|
-
},
|
|
2806
|
-
/**
|
|
2807
|
-
* Get the active roles for a given principal
|
|
2808
|
-
* @summary Get Principal Roles
|
|
2809
|
-
* @param {string} orgId
|
|
2810
|
-
* @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
|
|
2811
|
-
* @param {*} [options] Override http request option.
|
|
2812
|
-
* @throws {RequiredError}
|
|
2813
|
-
*/
|
|
2814
|
-
getPrincipalRoles: function (orgId, getPrincipalRolesRequestBody, options) {
|
|
2815
|
-
return localVarFp.getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2816
|
-
},
|
|
2817
|
-
/**
|
|
2818
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2819
|
-
* @summary Grant teammate access to a new user
|
|
2820
|
-
* @param {string} orgId
|
|
2821
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2822
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2823
|
-
* @param {*} [options] Override http request option.
|
|
2824
|
-
* @throws {RequiredError}
|
|
2825
|
-
*/
|
|
2826
|
-
grantTeammateAccess: function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2827
|
-
return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2828
|
-
},
|
|
2829
|
-
/**
|
|
2830
|
-
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
2831
|
-
* @summary Grant v2 teammate access to a user
|
|
2832
|
-
* @param {string} orgId
|
|
2833
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2834
|
-
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
2835
|
-
* @param {*} [options] Override http request option.
|
|
2836
|
-
* @throws {RequiredError}
|
|
2837
|
-
*/
|
|
2838
|
-
grantTeammateAccessV2: function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
|
|
2839
|
-
return localVarFp.grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2840
|
-
},
|
|
2841
|
-
/**
|
|
2842
|
-
* Rematerializes a V2 role assignment and applies the resulting policy assignments
|
|
2843
|
-
* @summary Rematerialize V2 Role Assignment
|
|
2844
|
-
* @param {string} orgId
|
|
2845
|
-
* @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
|
|
2846
|
-
* @param {*} [options] Override http request option.
|
|
2847
|
-
* @throws {RequiredError}
|
|
2848
|
-
*/
|
|
2849
|
-
rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentV2RequestBody, options) {
|
|
2850
|
-
return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2851
|
-
},
|
|
2852
|
-
/**
|
|
2853
|
-
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2854
|
-
* @summary Revoke Forbidden Role from Principal
|
|
2855
|
-
* @param {string} orgId
|
|
2856
|
-
* @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
|
|
2857
|
-
* @param {*} [options] Override http request option.
|
|
2858
|
-
* @throws {RequiredError}
|
|
2859
|
-
*/
|
|
2860
|
-
revokeForbiddenRoleFromPrincipal: function (orgId, revokeForbiddenRoleRequestBody, options) {
|
|
2861
|
-
return localVarFp.revokeForbiddenRoleFromPrincipal(orgId, revokeForbiddenRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2862
|
-
},
|
|
2863
|
-
/**
|
|
2864
|
-
* Revokes a specified role from a given principal (user, group, etc.)
|
|
2865
|
-
* @summary Revoke Role from Principal
|
|
2866
|
-
* @param {string} orgId
|
|
2867
|
-
* @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
|
|
2868
|
-
* @param {*} [options] Override http request option.
|
|
2869
|
-
* @throws {RequiredError}
|
|
2870
|
-
*/
|
|
2871
|
-
revokeRoleFromPrincipal: function (orgId, revokeRoleRequestBody, options) {
|
|
2872
|
-
return localVarFp.revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2873
|
-
},
|
|
2874
|
-
/**
|
|
2875
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
2876
|
-
* @summary Update teammate access for an existing user
|
|
2877
|
-
* @param {string} orgId
|
|
2878
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2879
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
2880
|
-
* @param {*} [options] Override http request option.
|
|
2881
|
-
* @throws {RequiredError}
|
|
2882
|
-
*/
|
|
2883
|
-
updateTeammateAccess: function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
2884
|
-
return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2885
|
-
},
|
|
2886
|
-
/**
|
|
2887
|
-
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
2888
|
-
* @summary Update v2 teammate access for a user
|
|
2889
|
-
* @param {string} orgId
|
|
2890
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2891
|
-
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
2892
|
-
* @param {*} [options] Override http request option.
|
|
2893
|
-
* @throws {RequiredError}
|
|
2894
|
-
*/
|
|
2895
|
-
updateTeammateAccessV2: function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
|
|
2896
|
-
return localVarFp.updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
2897
|
-
},
|
|
2898
|
-
};
|
|
2899
|
-
};
|
|
2900
|
-
exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
|
|
2901
|
-
/**
|
|
2902
|
-
* RoleAssignmentApi - object-oriented interface
|
|
2903
|
-
* @export
|
|
2904
|
-
* @class RoleAssignmentApi
|
|
2905
|
-
* @extends {BaseAPI}
|
|
2906
|
-
*/
|
|
2907
|
-
var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
2908
|
-
__extends(RoleAssignmentApi, _super);
|
|
2909
|
-
function RoleAssignmentApi() {
|
|
2910
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2911
|
-
}
|
|
2912
|
-
/**
|
|
2913
|
-
* Assigns a specified role to a given principal (user, group, etc.)
|
|
2914
|
-
* @summary Assign Role to Principal
|
|
2915
|
-
* @param {string} orgId
|
|
2916
|
-
* @param {AssignRoleRequestBody} [assignRoleRequestBody]
|
|
2917
|
-
* @param {*} [options] Override http request option.
|
|
2918
|
-
* @throws {RequiredError}
|
|
2919
|
-
* @memberof RoleAssignmentApi
|
|
2920
|
-
*/
|
|
2921
|
-
RoleAssignmentApi.prototype.assignRoleToPrincipal = function (orgId, assignRoleRequestBody, options) {
|
|
2922
|
-
var _this = this;
|
|
2923
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).assignRoleToPrincipal(orgId, assignRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2924
|
-
};
|
|
2925
|
-
/**
|
|
2926
|
-
* Get the active roles for a given principal
|
|
2927
|
-
* @summary Get Principal Roles
|
|
2928
|
-
* @param {string} orgId
|
|
2929
|
-
* @param {GetPrincipalRolesRequestBody} [getPrincipalRolesRequestBody]
|
|
2930
|
-
* @param {*} [options] Override http request option.
|
|
2931
|
-
* @throws {RequiredError}
|
|
2932
|
-
* @memberof RoleAssignmentApi
|
|
2933
|
-
*/
|
|
2934
|
-
RoleAssignmentApi.prototype.getPrincipalRoles = function (orgId, getPrincipalRolesRequestBody, options) {
|
|
2935
|
-
var _this = this;
|
|
2936
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).getPrincipalRoles(orgId, getPrincipalRolesRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2937
|
-
};
|
|
2938
|
-
/**
|
|
2939
|
-
* Grant teammate app access and underlying permissions for a user being assigned within a brand for the first time. Email and name are persisted on first assignment only and must be supplied here.
|
|
2940
|
-
* @summary Grant teammate access to a new user
|
|
2941
|
-
* @param {string} orgId
|
|
2942
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2943
|
-
* @param {GrantTeammateAccessRequestBody} [grantTeammateAccessRequestBody]
|
|
2944
|
-
* @param {*} [options] Override http request option.
|
|
2945
|
-
* @throws {RequiredError}
|
|
2946
|
-
* @memberof RoleAssignmentApi
|
|
2947
|
-
*/
|
|
2948
|
-
RoleAssignmentApi.prototype.grantTeammateAccess = function (orgId, userId, grantTeammateAccessRequestBody, options) {
|
|
2949
|
-
var _this = this;
|
|
2950
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2951
|
-
};
|
|
2952
|
-
/**
|
|
2953
|
-
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
2954
|
-
* @summary Grant v2 teammate access to a user
|
|
2955
|
-
* @param {string} orgId
|
|
2956
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
2957
|
-
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
2958
|
-
* @param {*} [options] Override http request option.
|
|
2959
|
-
* @throws {RequiredError}
|
|
2960
|
-
* @memberof RoleAssignmentApi
|
|
2961
|
-
*/
|
|
2962
|
-
RoleAssignmentApi.prototype.grantTeammateAccessV2 = function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
|
|
2963
|
-
var _this = this;
|
|
2964
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2965
|
-
};
|
|
2966
|
-
/**
|
|
2967
|
-
* Rematerializes a V2 role assignment and applies the resulting policy assignments
|
|
2968
|
-
* @summary Rematerialize V2 Role Assignment
|
|
2969
|
-
* @param {string} orgId
|
|
2970
|
-
* @param {RematerializeRoleAssignmentV2RequestBody} [rematerializeRoleAssignmentV2RequestBody]
|
|
2971
|
-
* @param {*} [options] Override http request option.
|
|
2972
|
-
* @throws {RequiredError}
|
|
2973
|
-
* @memberof RoleAssignmentApi
|
|
2974
|
-
*/
|
|
2975
|
-
RoleAssignmentApi.prototype.rematerializeRoleAssignmentV2 = function (orgId, rematerializeRoleAssignmentV2RequestBody, options) {
|
|
2976
|
-
var _this = this;
|
|
2977
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentV2RequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2978
|
-
};
|
|
2979
|
-
/**
|
|
2980
|
-
* Revokes a forbidden role from a given principal (user, group, etc.)
|
|
2981
|
-
* @summary Revoke Forbidden Role from Principal
|
|
2982
|
-
* @param {string} orgId
|
|
2983
|
-
* @param {RevokeForbiddenRoleRequestBody} [revokeForbiddenRoleRequestBody]
|
|
2984
|
-
* @param {*} [options] Override http request option.
|
|
2985
|
-
* @throws {RequiredError}
|
|
2986
|
-
* @memberof RoleAssignmentApi
|
|
2987
|
-
*/
|
|
2988
|
-
RoleAssignmentApi.prototype.revokeForbiddenRoleFromPrincipal = function (orgId, revokeForbiddenRoleRequestBody, options) {
|
|
2989
|
-
var _this = this;
|
|
2990
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).revokeForbiddenRoleFromPrincipal(orgId, revokeForbiddenRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2991
|
-
};
|
|
2992
|
-
/**
|
|
2993
|
-
* Revokes a specified role from a given principal (user, group, etc.)
|
|
2994
|
-
* @summary Revoke Role from Principal
|
|
2995
|
-
* @param {string} orgId
|
|
2996
|
-
* @param {RevokeRoleRequestBody} [revokeRoleRequestBody]
|
|
2997
|
-
* @param {*} [options] Override http request option.
|
|
2998
|
-
* @throws {RequiredError}
|
|
2999
|
-
* @memberof RoleAssignmentApi
|
|
3000
|
-
*/
|
|
3001
|
-
RoleAssignmentApi.prototype.revokeRoleFromPrincipal = function (orgId, revokeRoleRequestBody, options) {
|
|
3002
|
-
var _this = this;
|
|
3003
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).revokeRoleFromPrincipal(orgId, revokeRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3004
|
-
};
|
|
3005
|
-
/**
|
|
3006
|
-
* Update teammate app access and underlying permissions for an existing teammate. The user must already have been granted access for this brand. Email and name are not accepted on update; existing values are reused. Returns 404 if no existing assignment is found.
|
|
3007
|
-
* @summary Update teammate access for an existing user
|
|
3008
|
-
* @param {string} orgId
|
|
3009
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3010
|
-
* @param {UpdateTeammateAccessRequestBody} [updateTeammateAccessRequestBody]
|
|
3011
|
-
* @param {*} [options] Override http request option.
|
|
3012
|
-
* @throws {RequiredError}
|
|
3013
|
-
* @memberof RoleAssignmentApi
|
|
3014
|
-
*/
|
|
3015
|
-
RoleAssignmentApi.prototype.updateTeammateAccess = function (orgId, userId, updateTeammateAccessRequestBody, options) {
|
|
3016
|
-
var _this = this;
|
|
3017
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3018
|
-
};
|
|
3019
|
-
/**
|
|
3020
|
-
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
3021
|
-
* @summary Update v2 teammate access for a user
|
|
3022
|
-
* @param {string} orgId
|
|
3023
|
-
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3024
|
-
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
3025
|
-
* @param {*} [options] Override http request option.
|
|
3026
|
-
* @throws {RequiredError}
|
|
3027
|
-
* @memberof RoleAssignmentApi
|
|
3028
|
-
*/
|
|
3029
|
-
RoleAssignmentApi.prototype.updateTeammateAccessV2 = function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
|
|
3030
|
-
var _this = this;
|
|
3031
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3032
|
-
};
|
|
3033
|
-
return RoleAssignmentApi;
|
|
3034
|
-
}(base_1.BaseAPI));
|
|
3035
|
-
exports.RoleAssignmentApi = RoleAssignmentApi;
|
|
3036
|
-
/**
|
|
3037
|
-
* UserManagementApi - axios parameter creator
|
|
3038
|
-
* @export
|
|
3039
|
-
*/
|
|
3040
|
-
var UserManagementApiAxiosParamCreator = function (configuration) {
|
|
3041
|
-
var _this = this;
|
|
3042
|
-
return {
|
|
3043
|
-
/**
|
|
3044
|
-
* List the users in a given org
|
|
3045
|
-
* @summary List Users in Org
|
|
3046
|
-
* @param {string} orgId
|
|
3047
|
-
* @param {*} [options] Override http request option.
|
|
3048
|
-
* @throws {RequiredError}
|
|
3049
|
-
*/
|
|
3050
|
-
listUsersInOrg: function (orgId_1) {
|
|
3051
|
-
var args_1 = [];
|
|
3052
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3053
|
-
args_1[_i - 1] = arguments[_i];
|
|
3054
|
-
}
|
|
3055
|
-
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
3056
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3057
|
-
if (options === void 0) { options = {}; }
|
|
3058
|
-
return __generator(this, function (_a) {
|
|
3059
|
-
switch (_a.label) {
|
|
3060
|
-
case 0:
|
|
3061
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3062
|
-
(0, common_1.assertParamExists)('listUsersInOrg', 'orgId', orgId);
|
|
3063
|
-
localVarPath = "/orgs/{orgId}/users"
|
|
3064
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
3065
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3066
|
-
if (configuration) {
|
|
3067
|
-
baseOptions = configuration.baseOptions;
|
|
3068
|
-
}
|
|
3069
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3070
|
-
localVarHeaderParameter = {};
|
|
3071
|
-
localVarQueryParameter = {};
|
|
3072
|
-
// authentication ApiKeyAuth required
|
|
3073
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
3074
|
-
case 1:
|
|
3075
|
-
// authentication ApiKeyAuth required
|
|
3076
|
-
_a.sent();
|
|
3077
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3078
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3079
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3080
|
-
return [2 /*return*/, {
|
|
3081
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3082
|
-
options: localVarRequestOptions,
|
|
3083
|
-
}];
|
|
3084
|
-
}
|
|
3085
|
-
});
|
|
3086
|
-
});
|
|
3087
|
-
},
|
|
3088
|
-
/**
|
|
3089
|
-
* List the users in a given org for the v2 control plane UI
|
|
3090
|
-
* @summary List Users in Org V2
|
|
3091
|
-
* @param {string} orgId
|
|
3092
|
-
* @param {*} [options] Override http request option.
|
|
3093
|
-
* @throws {RequiredError}
|
|
3094
|
-
*/
|
|
3095
|
-
listUsersInOrgV2: function (orgId_1) {
|
|
3096
|
-
var args_1 = [];
|
|
3097
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3098
|
-
args_1[_i - 1] = arguments[_i];
|
|
3099
|
-
}
|
|
3100
|
-
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
3101
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3102
|
-
if (options === void 0) { options = {}; }
|
|
3103
|
-
return __generator(this, function (_a) {
|
|
3104
|
-
switch (_a.label) {
|
|
3105
|
-
case 0:
|
|
3106
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3107
|
-
(0, common_1.assertParamExists)('listUsersInOrgV2', 'orgId', orgId);
|
|
3108
|
-
localVarPath = "/v2/orgs/{orgId}/users"
|
|
3109
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
3110
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3111
|
-
if (configuration) {
|
|
3112
|
-
baseOptions = configuration.baseOptions;
|
|
3113
|
-
}
|
|
3114
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3115
|
-
localVarHeaderParameter = {};
|
|
3116
|
-
localVarQueryParameter = {};
|
|
3117
|
-
// authentication ApiKeyAuth required
|
|
3118
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
3119
|
-
case 1:
|
|
3120
|
-
// authentication ApiKeyAuth required
|
|
3121
|
-
_a.sent();
|
|
3122
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3123
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3124
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3125
|
-
return [2 /*return*/, {
|
|
3126
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3127
|
-
options: localVarRequestOptions,
|
|
3128
|
-
}];
|
|
3129
|
-
}
|
|
3130
|
-
});
|
|
3131
|
-
});
|
|
3132
|
-
},
|
|
3133
|
-
/**
|
|
3134
|
-
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
3135
|
-
* @summary List Users in Org with teammate permission summary
|
|
3136
|
-
* @param {string} orgId
|
|
3137
|
-
* @param {*} [options] Override http request option.
|
|
3138
|
-
* @throws {RequiredError}
|
|
3139
|
-
*/
|
|
3140
|
-
listUsersInOrgWithTeammatePermissionSummary: function (orgId_1) {
|
|
3141
|
-
var args_1 = [];
|
|
3142
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3143
|
-
args_1[_i - 1] = arguments[_i];
|
|
3144
|
-
}
|
|
3145
|
-
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
3146
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3147
|
-
if (options === void 0) { options = {}; }
|
|
3148
|
-
return __generator(this, function (_a) {
|
|
3149
|
-
switch (_a.label) {
|
|
3150
|
-
case 0:
|
|
3151
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3152
|
-
(0, common_1.assertParamExists)('listUsersInOrgWithTeammatePermissionSummary', 'orgId', orgId);
|
|
3153
|
-
localVarPath = "/orgs/{orgId}/users/teammatePermissionSummary"
|
|
3154
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
3155
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3156
|
-
if (configuration) {
|
|
3157
|
-
baseOptions = configuration.baseOptions;
|
|
3158
|
-
}
|
|
3159
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3160
|
-
localVarHeaderParameter = {};
|
|
3161
|
-
localVarQueryParameter = {};
|
|
3162
|
-
// authentication ApiKeyAuth required
|
|
3163
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
3164
|
-
case 1:
|
|
3165
|
-
// authentication ApiKeyAuth required
|
|
3166
|
-
_a.sent();
|
|
3167
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3168
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3169
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3170
|
-
return [2 /*return*/, {
|
|
3171
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3172
|
-
options: localVarRequestOptions,
|
|
3173
|
-
}];
|
|
3174
|
-
}
|
|
3175
|
-
});
|
|
3176
|
-
});
|
|
3177
|
-
},
|
|
3178
|
-
};
|
|
3179
|
-
};
|
|
3180
|
-
exports.UserManagementApiAxiosParamCreator = UserManagementApiAxiosParamCreator;
|
|
3181
|
-
/**
|
|
3182
|
-
* UserManagementApi - functional programming interface
|
|
3183
|
-
* @export
|
|
3184
|
-
*/
|
|
3185
|
-
var UserManagementApiFp = function (configuration) {
|
|
3186
|
-
var localVarAxiosParamCreator = (0, exports.UserManagementApiAxiosParamCreator)(configuration);
|
|
3187
|
-
return {
|
|
3188
|
-
/**
|
|
3189
|
-
* List the users in a given org
|
|
3190
|
-
* @summary List Users in Org
|
|
1738
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
1739
|
+
* @summary Apply role assignment
|
|
3191
1740
|
* @param {string} orgId
|
|
1741
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
3192
1742
|
* @param {*} [options] Override http request option.
|
|
3193
1743
|
* @throws {RequiredError}
|
|
3194
1744
|
*/
|
|
3195
|
-
|
|
1745
|
+
applyRoleAssignment: function (orgId, roleAssignmentRequestBody, options) {
|
|
3196
1746
|
return __awaiter(this, void 0, void 0, function () {
|
|
3197
1747
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3198
1748
|
var _a, _b, _c;
|
|
3199
1749
|
return __generator(this, function (_d) {
|
|
3200
1750
|
switch (_d.label) {
|
|
3201
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1751
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.applyRoleAssignment(orgId, roleAssignmentRequestBody, options)];
|
|
3202
1752
|
case 1:
|
|
3203
1753
|
localVarAxiosArgs = _d.sent();
|
|
3204
1754
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3205
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1755
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.applyRoleAssignment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3206
1756
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3207
1757
|
}
|
|
3208
1758
|
});
|
|
3209
1759
|
});
|
|
3210
1760
|
},
|
|
3211
1761
|
/**
|
|
3212
|
-
*
|
|
3213
|
-
* @summary
|
|
1762
|
+
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
1763
|
+
* @summary Rematerialize Role Assignment
|
|
3214
1764
|
* @param {string} orgId
|
|
1765
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
3215
1766
|
* @param {*} [options] Override http request option.
|
|
3216
1767
|
* @throws {RequiredError}
|
|
3217
1768
|
*/
|
|
3218
|
-
|
|
1769
|
+
rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentRequestBody, options) {
|
|
3219
1770
|
return __awaiter(this, void 0, void 0, function () {
|
|
3220
1771
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3221
1772
|
var _a, _b, _c;
|
|
3222
1773
|
return __generator(this, function (_d) {
|
|
3223
1774
|
switch (_d.label) {
|
|
3224
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1775
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options)];
|
|
3225
1776
|
case 1:
|
|
3226
1777
|
localVarAxiosArgs = _d.sent();
|
|
3227
1778
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3228
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1779
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3229
1780
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3230
1781
|
}
|
|
3231
1782
|
});
|
|
3232
1783
|
});
|
|
3233
1784
|
},
|
|
3234
1785
|
/**
|
|
3235
|
-
*
|
|
3236
|
-
* @summary
|
|
1786
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
1787
|
+
* @summary Remove teammate
|
|
3237
1788
|
* @param {string} orgId
|
|
1789
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
3238
1790
|
* @param {*} [options] Override http request option.
|
|
3239
1791
|
* @throws {RequiredError}
|
|
3240
1792
|
*/
|
|
3241
|
-
|
|
1793
|
+
removeTeammate: function (orgId, removeTeammateRequestBody, options) {
|
|
3242
1794
|
return __awaiter(this, void 0, void 0, function () {
|
|
3243
1795
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3244
1796
|
var _a, _b, _c;
|
|
3245
1797
|
return __generator(this, function (_d) {
|
|
3246
1798
|
switch (_d.label) {
|
|
3247
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1799
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeTeammate(orgId, removeTeammateRequestBody, options)];
|
|
3248
1800
|
case 1:
|
|
3249
1801
|
localVarAxiosArgs = _d.sent();
|
|
3250
1802
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3251
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1803
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.removeTeammate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3252
1804
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3253
1805
|
}
|
|
3254
1806
|
});
|
|
@@ -3256,112 +1808,118 @@ var UserManagementApiFp = function (configuration) {
|
|
|
3256
1808
|
},
|
|
3257
1809
|
};
|
|
3258
1810
|
};
|
|
3259
|
-
exports.
|
|
1811
|
+
exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
|
|
3260
1812
|
/**
|
|
3261
|
-
*
|
|
1813
|
+
* RoleAssignmentApi - factory interface
|
|
3262
1814
|
* @export
|
|
3263
1815
|
*/
|
|
3264
|
-
var
|
|
3265
|
-
var localVarFp = (0, exports.
|
|
1816
|
+
var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
1817
|
+
var localVarFp = (0, exports.RoleAssignmentApiFp)(configuration);
|
|
3266
1818
|
return {
|
|
3267
1819
|
/**
|
|
3268
|
-
*
|
|
3269
|
-
* @summary
|
|
1820
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
1821
|
+
* @summary Apply role assignment
|
|
3270
1822
|
* @param {string} orgId
|
|
1823
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
3271
1824
|
* @param {*} [options] Override http request option.
|
|
3272
1825
|
* @throws {RequiredError}
|
|
3273
1826
|
*/
|
|
3274
|
-
|
|
3275
|
-
return localVarFp.
|
|
1827
|
+
applyRoleAssignment: function (orgId, roleAssignmentRequestBody, options) {
|
|
1828
|
+
return localVarFp.applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
3276
1829
|
},
|
|
3277
1830
|
/**
|
|
3278
|
-
*
|
|
3279
|
-
* @summary
|
|
1831
|
+
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
1832
|
+
* @summary Rematerialize Role Assignment
|
|
3280
1833
|
* @param {string} orgId
|
|
1834
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
3281
1835
|
* @param {*} [options] Override http request option.
|
|
3282
1836
|
* @throws {RequiredError}
|
|
3283
1837
|
*/
|
|
3284
|
-
|
|
3285
|
-
return localVarFp.
|
|
1838
|
+
rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentRequestBody, options) {
|
|
1839
|
+
return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
3286
1840
|
},
|
|
3287
1841
|
/**
|
|
3288
|
-
*
|
|
3289
|
-
* @summary
|
|
1842
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
1843
|
+
* @summary Remove teammate
|
|
3290
1844
|
* @param {string} orgId
|
|
1845
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
3291
1846
|
* @param {*} [options] Override http request option.
|
|
3292
1847
|
* @throws {RequiredError}
|
|
3293
1848
|
*/
|
|
3294
|
-
|
|
3295
|
-
return localVarFp.
|
|
1849
|
+
removeTeammate: function (orgId, removeTeammateRequestBody, options) {
|
|
1850
|
+
return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
3296
1851
|
},
|
|
3297
1852
|
};
|
|
3298
1853
|
};
|
|
3299
|
-
exports.
|
|
1854
|
+
exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
|
|
3300
1855
|
/**
|
|
3301
|
-
*
|
|
1856
|
+
* RoleAssignmentApi - object-oriented interface
|
|
3302
1857
|
* @export
|
|
3303
|
-
* @class
|
|
1858
|
+
* @class RoleAssignmentApi
|
|
3304
1859
|
* @extends {BaseAPI}
|
|
3305
1860
|
*/
|
|
3306
|
-
var
|
|
3307
|
-
__extends(
|
|
3308
|
-
function
|
|
1861
|
+
var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
1862
|
+
__extends(RoleAssignmentApi, _super);
|
|
1863
|
+
function RoleAssignmentApi() {
|
|
3309
1864
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3310
1865
|
}
|
|
3311
1866
|
/**
|
|
3312
|
-
*
|
|
3313
|
-
* @summary
|
|
1867
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
1868
|
+
* @summary Apply role assignment
|
|
3314
1869
|
* @param {string} orgId
|
|
1870
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
3315
1871
|
* @param {*} [options] Override http request option.
|
|
3316
1872
|
* @throws {RequiredError}
|
|
3317
|
-
* @memberof
|
|
1873
|
+
* @memberof RoleAssignmentApi
|
|
3318
1874
|
*/
|
|
3319
|
-
|
|
1875
|
+
RoleAssignmentApi.prototype.applyRoleAssignment = function (orgId, roleAssignmentRequestBody, options) {
|
|
3320
1876
|
var _this = this;
|
|
3321
|
-
return (0, exports.
|
|
1877
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3322
1878
|
};
|
|
3323
1879
|
/**
|
|
3324
|
-
*
|
|
3325
|
-
* @summary
|
|
1880
|
+
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
1881
|
+
* @summary Rematerialize Role Assignment
|
|
3326
1882
|
* @param {string} orgId
|
|
1883
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
3327
1884
|
* @param {*} [options] Override http request option.
|
|
3328
1885
|
* @throws {RequiredError}
|
|
3329
|
-
* @memberof
|
|
1886
|
+
* @memberof RoleAssignmentApi
|
|
3330
1887
|
*/
|
|
3331
|
-
|
|
1888
|
+
RoleAssignmentApi.prototype.rematerializeRoleAssignmentV2 = function (orgId, rematerializeRoleAssignmentRequestBody, options) {
|
|
3332
1889
|
var _this = this;
|
|
3333
|
-
return (0, exports.
|
|
1890
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3334
1891
|
};
|
|
3335
1892
|
/**
|
|
3336
|
-
*
|
|
3337
|
-
* @summary
|
|
1893
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
1894
|
+
* @summary Remove teammate
|
|
3338
1895
|
* @param {string} orgId
|
|
1896
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
3339
1897
|
* @param {*} [options] Override http request option.
|
|
3340
1898
|
* @throws {RequiredError}
|
|
3341
|
-
* @memberof
|
|
1899
|
+
* @memberof RoleAssignmentApi
|
|
3342
1900
|
*/
|
|
3343
|
-
|
|
1901
|
+
RoleAssignmentApi.prototype.removeTeammate = function (orgId, removeTeammateRequestBody, options) {
|
|
3344
1902
|
var _this = this;
|
|
3345
|
-
return (0, exports.
|
|
1903
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3346
1904
|
};
|
|
3347
|
-
return
|
|
1905
|
+
return RoleAssignmentApi;
|
|
3348
1906
|
}(base_1.BaseAPI));
|
|
3349
|
-
exports.
|
|
1907
|
+
exports.RoleAssignmentApi = RoleAssignmentApi;
|
|
3350
1908
|
/**
|
|
3351
|
-
*
|
|
1909
|
+
* UserManagementApi - axios parameter creator
|
|
3352
1910
|
* @export
|
|
3353
1911
|
*/
|
|
3354
|
-
var
|
|
1912
|
+
var UserManagementApiAxiosParamCreator = function (configuration) {
|
|
3355
1913
|
var _this = this;
|
|
3356
1914
|
return {
|
|
3357
1915
|
/**
|
|
3358
|
-
* List the
|
|
3359
|
-
* @summary List Org
|
|
1916
|
+
* List the users in a given org
|
|
1917
|
+
* @summary List Users in Org
|
|
3360
1918
|
* @param {string} orgId
|
|
3361
1919
|
* @param {*} [options] Override http request option.
|
|
3362
1920
|
* @throws {RequiredError}
|
|
3363
1921
|
*/
|
|
3364
|
-
|
|
1922
|
+
listUsersInOrg: function (orgId_1) {
|
|
3365
1923
|
var args_1 = [];
|
|
3366
1924
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3367
1925
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -3373,8 +1931,8 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
3373
1931
|
switch (_a.label) {
|
|
3374
1932
|
case 0:
|
|
3375
1933
|
// verify required parameter 'orgId' is not null or undefined
|
|
3376
|
-
(0, common_1.assertParamExists)('
|
|
3377
|
-
localVarPath = "/orgs/{orgId}/
|
|
1934
|
+
(0, common_1.assertParamExists)('listUsersInOrg', 'orgId', orgId);
|
|
1935
|
+
localVarPath = "/orgs/{orgId}/users"
|
|
3378
1936
|
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
3379
1937
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3380
1938
|
if (configuration) {
|
|
@@ -3399,59 +1957,103 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
3399
1957
|
});
|
|
3400
1958
|
});
|
|
3401
1959
|
},
|
|
1960
|
+
};
|
|
1961
|
+
};
|
|
1962
|
+
exports.UserManagementApiAxiosParamCreator = UserManagementApiAxiosParamCreator;
|
|
1963
|
+
/**
|
|
1964
|
+
* UserManagementApi - functional programming interface
|
|
1965
|
+
* @export
|
|
1966
|
+
*/
|
|
1967
|
+
var UserManagementApiFp = function (configuration) {
|
|
1968
|
+
var localVarAxiosParamCreator = (0, exports.UserManagementApiAxiosParamCreator)(configuration);
|
|
1969
|
+
return {
|
|
3402
1970
|
/**
|
|
3403
|
-
* List the
|
|
3404
|
-
* @summary List
|
|
1971
|
+
* List the users in a given org
|
|
1972
|
+
* @summary List Users in Org
|
|
3405
1973
|
* @param {string} orgId
|
|
3406
1974
|
* @param {*} [options] Override http request option.
|
|
3407
1975
|
* @throws {RequiredError}
|
|
3408
1976
|
*/
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
if (options === void 0) { options = {}; }
|
|
3417
|
-
return __generator(this, function (_a) {
|
|
3418
|
-
switch (_a.label) {
|
|
3419
|
-
case 0:
|
|
3420
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3421
|
-
(0, common_1.assertParamExists)('listOrgPermissionsV2', 'orgId', orgId);
|
|
3422
|
-
localVarPath = "/v2/orgs/{orgId}/permissions"
|
|
3423
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
3424
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3425
|
-
if (configuration) {
|
|
3426
|
-
baseOptions = configuration.baseOptions;
|
|
3427
|
-
}
|
|
3428
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3429
|
-
localVarHeaderParameter = {};
|
|
3430
|
-
localVarQueryParameter = {};
|
|
3431
|
-
// authentication ApiKeyAuth required
|
|
3432
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1977
|
+
listUsersInOrg: function (orgId, options) {
|
|
1978
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1979
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1980
|
+
var _a, _b, _c;
|
|
1981
|
+
return __generator(this, function (_d) {
|
|
1982
|
+
switch (_d.label) {
|
|
1983
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsersInOrg(orgId, options)];
|
|
3433
1984
|
case 1:
|
|
3434
|
-
|
|
3435
|
-
_a.
|
|
3436
|
-
(
|
|
3437
|
-
|
|
3438
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3439
|
-
return [2 /*return*/, {
|
|
3440
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3441
|
-
options: localVarRequestOptions,
|
|
3442
|
-
}];
|
|
1985
|
+
localVarAxiosArgs = _d.sent();
|
|
1986
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1987
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManagementApi.listUsersInOrg']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1988
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3443
1989
|
}
|
|
3444
1990
|
});
|
|
3445
1991
|
});
|
|
3446
1992
|
},
|
|
1993
|
+
};
|
|
1994
|
+
};
|
|
1995
|
+
exports.UserManagementApiFp = UserManagementApiFp;
|
|
1996
|
+
/**
|
|
1997
|
+
* UserManagementApi - factory interface
|
|
1998
|
+
* @export
|
|
1999
|
+
*/
|
|
2000
|
+
var UserManagementApiFactory = function (configuration, basePath, axios) {
|
|
2001
|
+
var localVarFp = (0, exports.UserManagementApiFp)(configuration);
|
|
2002
|
+
return {
|
|
2003
|
+
/**
|
|
2004
|
+
* List the users in a given org
|
|
2005
|
+
* @summary List Users in Org
|
|
2006
|
+
* @param {string} orgId
|
|
2007
|
+
* @param {*} [options] Override http request option.
|
|
2008
|
+
* @throws {RequiredError}
|
|
2009
|
+
*/
|
|
2010
|
+
listUsersInOrg: function (orgId, options) {
|
|
2011
|
+
return localVarFp.listUsersInOrg(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
2012
|
+
},
|
|
2013
|
+
};
|
|
2014
|
+
};
|
|
2015
|
+
exports.UserManagementApiFactory = UserManagementApiFactory;
|
|
2016
|
+
/**
|
|
2017
|
+
* UserManagementApi - object-oriented interface
|
|
2018
|
+
* @export
|
|
2019
|
+
* @class UserManagementApi
|
|
2020
|
+
* @extends {BaseAPI}
|
|
2021
|
+
*/
|
|
2022
|
+
var UserManagementApi = /** @class */ (function (_super) {
|
|
2023
|
+
__extends(UserManagementApi, _super);
|
|
2024
|
+
function UserManagementApi() {
|
|
2025
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2026
|
+
}
|
|
2027
|
+
/**
|
|
2028
|
+
* List the users in a given org
|
|
2029
|
+
* @summary List Users in Org
|
|
2030
|
+
* @param {string} orgId
|
|
2031
|
+
* @param {*} [options] Override http request option.
|
|
2032
|
+
* @throws {RequiredError}
|
|
2033
|
+
* @memberof UserManagementApi
|
|
2034
|
+
*/
|
|
2035
|
+
UserManagementApi.prototype.listUsersInOrg = function (orgId, options) {
|
|
2036
|
+
var _this = this;
|
|
2037
|
+
return (0, exports.UserManagementApiFp)(this.configuration).listUsersInOrg(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2038
|
+
};
|
|
2039
|
+
return UserManagementApi;
|
|
2040
|
+
}(base_1.BaseAPI));
|
|
2041
|
+
exports.UserManagementApi = UserManagementApi;
|
|
2042
|
+
/**
|
|
2043
|
+
* UserPermissionsApi - axios parameter creator
|
|
2044
|
+
* @export
|
|
2045
|
+
*/
|
|
2046
|
+
var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
2047
|
+
var _this = this;
|
|
2048
|
+
return {
|
|
3447
2049
|
/**
|
|
3448
|
-
* List the
|
|
3449
|
-
* @summary List Org
|
|
2050
|
+
* List the current permission assignments in the org
|
|
2051
|
+
* @summary List Org Permissions
|
|
3450
2052
|
* @param {string} orgId
|
|
3451
2053
|
* @param {*} [options] Override http request option.
|
|
3452
2054
|
* @throws {RequiredError}
|
|
3453
2055
|
*/
|
|
3454
|
-
|
|
2056
|
+
listOrgPermissions: function (orgId_1) {
|
|
3455
2057
|
var args_1 = [];
|
|
3456
2058
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3457
2059
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -3463,8 +2065,8 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
3463
2065
|
switch (_a.label) {
|
|
3464
2066
|
case 0:
|
|
3465
2067
|
// verify required parameter 'orgId' is not null or undefined
|
|
3466
|
-
(0, common_1.assertParamExists)('
|
|
3467
|
-
localVarPath = "/orgs/{orgId}/
|
|
2068
|
+
(0, common_1.assertParamExists)('listOrgPermissions', 'orgId', orgId);
|
|
2069
|
+
localVarPath = "/orgs/{orgId}/permissions"
|
|
3468
2070
|
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
3469
2071
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3470
2072
|
if (configuration) {
|
|
@@ -3490,13 +2092,13 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
3490
2092
|
});
|
|
3491
2093
|
},
|
|
3492
2094
|
/**
|
|
3493
|
-
* List the
|
|
3494
|
-
* @summary List Org Roles
|
|
2095
|
+
* List the current roles assignments in the org
|
|
2096
|
+
* @summary List Org Roles
|
|
3495
2097
|
* @param {string} orgId
|
|
3496
2098
|
* @param {*} [options] Override http request option.
|
|
3497
2099
|
* @throws {RequiredError}
|
|
3498
2100
|
*/
|
|
3499
|
-
|
|
2101
|
+
listOrgRoles: function (orgId_1) {
|
|
3500
2102
|
var args_1 = [];
|
|
3501
2103
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3502
2104
|
args_1[_i - 1] = arguments[_i];
|
|
@@ -3508,8 +2110,8 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
3508
2110
|
switch (_a.label) {
|
|
3509
2111
|
case 0:
|
|
3510
2112
|
// verify required parameter 'orgId' is not null or undefined
|
|
3511
|
-
(0, common_1.assertParamExists)('
|
|
3512
|
-
localVarPath = "/
|
|
2113
|
+
(0, common_1.assertParamExists)('listOrgRoles', 'orgId', orgId);
|
|
2114
|
+
localVarPath = "/orgs/{orgId}/roles"
|
|
3513
2115
|
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
3514
2116
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3515
2117
|
if (configuration) {
|
|
@@ -3579,51 +2181,6 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
3579
2181
|
});
|
|
3580
2182
|
});
|
|
3581
2183
|
},
|
|
3582
|
-
/**
|
|
3583
|
-
* List the v2 materialized permissions for the current user
|
|
3584
|
-
* @summary List Own Permissions V2
|
|
3585
|
-
* @param {string} orgId
|
|
3586
|
-
* @param {*} [options] Override http request option.
|
|
3587
|
-
* @throws {RequiredError}
|
|
3588
|
-
*/
|
|
3589
|
-
listOwnPermissionsV2: function (orgId_1) {
|
|
3590
|
-
var args_1 = [];
|
|
3591
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3592
|
-
args_1[_i - 1] = arguments[_i];
|
|
3593
|
-
}
|
|
3594
|
-
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
3595
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3596
|
-
if (options === void 0) { options = {}; }
|
|
3597
|
-
return __generator(this, function (_a) {
|
|
3598
|
-
switch (_a.label) {
|
|
3599
|
-
case 0:
|
|
3600
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3601
|
-
(0, common_1.assertParamExists)('listOwnPermissionsV2', 'orgId', orgId);
|
|
3602
|
-
localVarPath = "/v2/orgs/{orgId}/user/permissions"
|
|
3603
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
3604
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3605
|
-
if (configuration) {
|
|
3606
|
-
baseOptions = configuration.baseOptions;
|
|
3607
|
-
}
|
|
3608
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3609
|
-
localVarHeaderParameter = {};
|
|
3610
|
-
localVarQueryParameter = {};
|
|
3611
|
-
// authentication ApiKeyAuth required
|
|
3612
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
3613
|
-
case 1:
|
|
3614
|
-
// authentication ApiKeyAuth required
|
|
3615
|
-
_a.sent();
|
|
3616
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3617
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3618
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3619
|
-
return [2 /*return*/, {
|
|
3620
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3621
|
-
options: localVarRequestOptions,
|
|
3622
|
-
}];
|
|
3623
|
-
}
|
|
3624
|
-
});
|
|
3625
|
-
});
|
|
3626
|
-
},
|
|
3627
2184
|
/**
|
|
3628
2185
|
* List the available permissions for a given user
|
|
3629
2186
|
* @summary List User Permissions
|
|
@@ -3673,55 +2230,6 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
3673
2230
|
});
|
|
3674
2231
|
});
|
|
3675
2232
|
},
|
|
3676
|
-
/**
|
|
3677
|
-
* List the v2 materialized permissions for a given user
|
|
3678
|
-
* @summary List User Permissions V2
|
|
3679
|
-
* @param {string} orgId
|
|
3680
|
-
* @param {string} userId
|
|
3681
|
-
* @param {*} [options] Override http request option.
|
|
3682
|
-
* @throws {RequiredError}
|
|
3683
|
-
*/
|
|
3684
|
-
listUserPermissionsV2: function (orgId_1, userId_1) {
|
|
3685
|
-
var args_1 = [];
|
|
3686
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
3687
|
-
args_1[_i - 2] = arguments[_i];
|
|
3688
|
-
}
|
|
3689
|
-
return __awaiter(_this, __spreadArray([orgId_1, userId_1], args_1, true), void 0, function (orgId, userId, options) {
|
|
3690
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3691
|
-
if (options === void 0) { options = {}; }
|
|
3692
|
-
return __generator(this, function (_a) {
|
|
3693
|
-
switch (_a.label) {
|
|
3694
|
-
case 0:
|
|
3695
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3696
|
-
(0, common_1.assertParamExists)('listUserPermissionsV2', 'orgId', orgId);
|
|
3697
|
-
// verify required parameter 'userId' is not null or undefined
|
|
3698
|
-
(0, common_1.assertParamExists)('listUserPermissionsV2', 'userId', userId);
|
|
3699
|
-
localVarPath = "/v2/orgs/{orgId}/user/{userId}/permissions"
|
|
3700
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
|
|
3701
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
3702
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3703
|
-
if (configuration) {
|
|
3704
|
-
baseOptions = configuration.baseOptions;
|
|
3705
|
-
}
|
|
3706
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3707
|
-
localVarHeaderParameter = {};
|
|
3708
|
-
localVarQueryParameter = {};
|
|
3709
|
-
// authentication ApiKeyAuth required
|
|
3710
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
3711
|
-
case 1:
|
|
3712
|
-
// authentication ApiKeyAuth required
|
|
3713
|
-
_a.sent();
|
|
3714
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3715
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3716
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3717
|
-
return [2 /*return*/, {
|
|
3718
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3719
|
-
options: localVarRequestOptions,
|
|
3720
|
-
}];
|
|
3721
|
-
}
|
|
3722
|
-
});
|
|
3723
|
-
});
|
|
3724
|
-
},
|
|
3725
2233
|
};
|
|
3726
2234
|
};
|
|
3727
2235
|
exports.UserPermissionsApiAxiosParamCreator = UserPermissionsApiAxiosParamCreator;
|
|
@@ -3733,7 +2241,7 @@ var UserPermissionsApiFp = function (configuration) {
|
|
|
3733
2241
|
var localVarAxiosParamCreator = (0, exports.UserPermissionsApiAxiosParamCreator)(configuration);
|
|
3734
2242
|
return {
|
|
3735
2243
|
/**
|
|
3736
|
-
* List the
|
|
2244
|
+
* List the current permission assignments in the org
|
|
3737
2245
|
* @summary List Org Permissions
|
|
3738
2246
|
* @param {string} orgId
|
|
3739
2247
|
* @param {*} [options] Override http request option.
|
|
@@ -3756,30 +2264,7 @@ var UserPermissionsApiFp = function (configuration) {
|
|
|
3756
2264
|
});
|
|
3757
2265
|
},
|
|
3758
2266
|
/**
|
|
3759
|
-
* List the
|
|
3760
|
-
* @summary List Org Permissions V2
|
|
3761
|
-
* @param {string} orgId
|
|
3762
|
-
* @param {*} [options] Override http request option.
|
|
3763
|
-
* @throws {RequiredError}
|
|
3764
|
-
*/
|
|
3765
|
-
listOrgPermissionsV2: function (orgId, options) {
|
|
3766
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3767
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3768
|
-
var _a, _b, _c;
|
|
3769
|
-
return __generator(this, function (_d) {
|
|
3770
|
-
switch (_d.label) {
|
|
3771
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgPermissionsV2(orgId, options)];
|
|
3772
|
-
case 1:
|
|
3773
|
-
localVarAxiosArgs = _d.sent();
|
|
3774
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3775
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgPermissionsV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3776
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3777
|
-
}
|
|
3778
|
-
});
|
|
3779
|
-
});
|
|
3780
|
-
},
|
|
3781
|
-
/**
|
|
3782
|
-
* List the available roles for the current user
|
|
2267
|
+
* List the current roles assignments in the org
|
|
3783
2268
|
* @summary List Org Roles
|
|
3784
2269
|
* @param {string} orgId
|
|
3785
2270
|
* @param {*} [options] Override http request option.
|
|
@@ -3801,29 +2286,6 @@ var UserPermissionsApiFp = function (configuration) {
|
|
|
3801
2286
|
});
|
|
3802
2287
|
});
|
|
3803
2288
|
},
|
|
3804
|
-
/**
|
|
3805
|
-
* List the v2 role assignments for an org
|
|
3806
|
-
* @summary List Org Roles V2
|
|
3807
|
-
* @param {string} orgId
|
|
3808
|
-
* @param {*} [options] Override http request option.
|
|
3809
|
-
* @throws {RequiredError}
|
|
3810
|
-
*/
|
|
3811
|
-
listOrgRolesV2: function (orgId, options) {
|
|
3812
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3813
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3814
|
-
var _a, _b, _c;
|
|
3815
|
-
return __generator(this, function (_d) {
|
|
3816
|
-
switch (_d.label) {
|
|
3817
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgRolesV2(orgId, options)];
|
|
3818
|
-
case 1:
|
|
3819
|
-
localVarAxiosArgs = _d.sent();
|
|
3820
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3821
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgRolesV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3822
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3823
|
-
}
|
|
3824
|
-
});
|
|
3825
|
-
});
|
|
3826
|
-
},
|
|
3827
2289
|
/**
|
|
3828
2290
|
* List the available permissions for the current user
|
|
3829
2291
|
* @summary List Own Permissions
|
|
@@ -3847,29 +2309,6 @@ var UserPermissionsApiFp = function (configuration) {
|
|
|
3847
2309
|
});
|
|
3848
2310
|
});
|
|
3849
2311
|
},
|
|
3850
|
-
/**
|
|
3851
|
-
* List the v2 materialized permissions for the current user
|
|
3852
|
-
* @summary List Own Permissions V2
|
|
3853
|
-
* @param {string} orgId
|
|
3854
|
-
* @param {*} [options] Override http request option.
|
|
3855
|
-
* @throws {RequiredError}
|
|
3856
|
-
*/
|
|
3857
|
-
listOwnPermissionsV2: function (orgId, options) {
|
|
3858
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3859
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3860
|
-
var _a, _b, _c;
|
|
3861
|
-
return __generator(this, function (_d) {
|
|
3862
|
-
switch (_d.label) {
|
|
3863
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOwnPermissionsV2(orgId, options)];
|
|
3864
|
-
case 1:
|
|
3865
|
-
localVarAxiosArgs = _d.sent();
|
|
3866
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3867
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOwnPermissionsV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3868
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3869
|
-
}
|
|
3870
|
-
});
|
|
3871
|
-
});
|
|
3872
|
-
},
|
|
3873
2312
|
/**
|
|
3874
2313
|
* List the available permissions for a given user
|
|
3875
2314
|
* @summary List User Permissions
|
|
@@ -3894,30 +2333,6 @@ var UserPermissionsApiFp = function (configuration) {
|
|
|
3894
2333
|
});
|
|
3895
2334
|
});
|
|
3896
2335
|
},
|
|
3897
|
-
/**
|
|
3898
|
-
* List the v2 materialized permissions for a given user
|
|
3899
|
-
* @summary List User Permissions V2
|
|
3900
|
-
* @param {string} orgId
|
|
3901
|
-
* @param {string} userId
|
|
3902
|
-
* @param {*} [options] Override http request option.
|
|
3903
|
-
* @throws {RequiredError}
|
|
3904
|
-
*/
|
|
3905
|
-
listUserPermissionsV2: function (orgId, userId, options) {
|
|
3906
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3907
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3908
|
-
var _a, _b, _c;
|
|
3909
|
-
return __generator(this, function (_d) {
|
|
3910
|
-
switch (_d.label) {
|
|
3911
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUserPermissionsV2(orgId, userId, options)];
|
|
3912
|
-
case 1:
|
|
3913
|
-
localVarAxiosArgs = _d.sent();
|
|
3914
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3915
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listUserPermissionsV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3916
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3917
|
-
}
|
|
3918
|
-
});
|
|
3919
|
-
});
|
|
3920
|
-
},
|
|
3921
2336
|
};
|
|
3922
2337
|
};
|
|
3923
2338
|
exports.UserPermissionsApiFp = UserPermissionsApiFp;
|
|
@@ -3929,7 +2344,7 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
3929
2344
|
var localVarFp = (0, exports.UserPermissionsApiFp)(configuration);
|
|
3930
2345
|
return {
|
|
3931
2346
|
/**
|
|
3932
|
-
* List the
|
|
2347
|
+
* List the current permission assignments in the org
|
|
3933
2348
|
* @summary List Org Permissions
|
|
3934
2349
|
* @param {string} orgId
|
|
3935
2350
|
* @param {*} [options] Override http request option.
|
|
@@ -3939,17 +2354,7 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
3939
2354
|
return localVarFp.listOrgPermissions(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
3940
2355
|
},
|
|
3941
2356
|
/**
|
|
3942
|
-
* List the
|
|
3943
|
-
* @summary List Org Permissions V2
|
|
3944
|
-
* @param {string} orgId
|
|
3945
|
-
* @param {*} [options] Override http request option.
|
|
3946
|
-
* @throws {RequiredError}
|
|
3947
|
-
*/
|
|
3948
|
-
listOrgPermissionsV2: function (orgId, options) {
|
|
3949
|
-
return localVarFp.listOrgPermissionsV2(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
3950
|
-
},
|
|
3951
|
-
/**
|
|
3952
|
-
* List the available roles for the current user
|
|
2357
|
+
* List the current roles assignments in the org
|
|
3953
2358
|
* @summary List Org Roles
|
|
3954
2359
|
* @param {string} orgId
|
|
3955
2360
|
* @param {*} [options] Override http request option.
|
|
@@ -3958,16 +2363,6 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
3958
2363
|
listOrgRoles: function (orgId, options) {
|
|
3959
2364
|
return localVarFp.listOrgRoles(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
3960
2365
|
},
|
|
3961
|
-
/**
|
|
3962
|
-
* List the v2 role assignments for an org
|
|
3963
|
-
* @summary List Org Roles V2
|
|
3964
|
-
* @param {string} orgId
|
|
3965
|
-
* @param {*} [options] Override http request option.
|
|
3966
|
-
* @throws {RequiredError}
|
|
3967
|
-
*/
|
|
3968
|
-
listOrgRolesV2: function (orgId, options) {
|
|
3969
|
-
return localVarFp.listOrgRolesV2(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
3970
|
-
},
|
|
3971
2366
|
/**
|
|
3972
2367
|
* List the available permissions for the current user
|
|
3973
2368
|
* @summary List Own Permissions
|
|
@@ -3978,16 +2373,6 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
3978
2373
|
listOwnPermissions: function (orgId, options) {
|
|
3979
2374
|
return localVarFp.listOwnPermissions(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
3980
2375
|
},
|
|
3981
|
-
/**
|
|
3982
|
-
* List the v2 materialized permissions for the current user
|
|
3983
|
-
* @summary List Own Permissions V2
|
|
3984
|
-
* @param {string} orgId
|
|
3985
|
-
* @param {*} [options] Override http request option.
|
|
3986
|
-
* @throws {RequiredError}
|
|
3987
|
-
*/
|
|
3988
|
-
listOwnPermissionsV2: function (orgId, options) {
|
|
3989
|
-
return localVarFp.listOwnPermissionsV2(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
3990
|
-
},
|
|
3991
2376
|
/**
|
|
3992
2377
|
* List the available permissions for a given user
|
|
3993
2378
|
* @summary List User Permissions
|
|
@@ -3999,17 +2384,6 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
3999
2384
|
listUserPermissions: function (orgId, userId, options) {
|
|
4000
2385
|
return localVarFp.listUserPermissions(orgId, userId, options).then(function (request) { return request(axios, basePath); });
|
|
4001
2386
|
},
|
|
4002
|
-
/**
|
|
4003
|
-
* List the v2 materialized permissions for a given user
|
|
4004
|
-
* @summary List User Permissions V2
|
|
4005
|
-
* @param {string} orgId
|
|
4006
|
-
* @param {string} userId
|
|
4007
|
-
* @param {*} [options] Override http request option.
|
|
4008
|
-
* @throws {RequiredError}
|
|
4009
|
-
*/
|
|
4010
|
-
listUserPermissionsV2: function (orgId, userId, options) {
|
|
4011
|
-
return localVarFp.listUserPermissionsV2(orgId, userId, options).then(function (request) { return request(axios, basePath); });
|
|
4012
|
-
},
|
|
4013
2387
|
};
|
|
4014
2388
|
};
|
|
4015
2389
|
exports.UserPermissionsApiFactory = UserPermissionsApiFactory;
|
|
@@ -4025,7 +2399,7 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
4025
2399
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4026
2400
|
}
|
|
4027
2401
|
/**
|
|
4028
|
-
* List the
|
|
2402
|
+
* List the current permission assignments in the org
|
|
4029
2403
|
* @summary List Org Permissions
|
|
4030
2404
|
* @param {string} orgId
|
|
4031
2405
|
* @param {*} [options] Override http request option.
|
|
@@ -4037,19 +2411,7 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
4037
2411
|
return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgPermissions(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4038
2412
|
};
|
|
4039
2413
|
/**
|
|
4040
|
-
* List the
|
|
4041
|
-
* @summary List Org Permissions V2
|
|
4042
|
-
* @param {string} orgId
|
|
4043
|
-
* @param {*} [options] Override http request option.
|
|
4044
|
-
* @throws {RequiredError}
|
|
4045
|
-
* @memberof UserPermissionsApi
|
|
4046
|
-
*/
|
|
4047
|
-
UserPermissionsApi.prototype.listOrgPermissionsV2 = function (orgId, options) {
|
|
4048
|
-
var _this = this;
|
|
4049
|
-
return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgPermissionsV2(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4050
|
-
};
|
|
4051
|
-
/**
|
|
4052
|
-
* List the available roles for the current user
|
|
2414
|
+
* List the current roles assignments in the org
|
|
4053
2415
|
* @summary List Org Roles
|
|
4054
2416
|
* @param {string} orgId
|
|
4055
2417
|
* @param {*} [options] Override http request option.
|
|
@@ -4060,18 +2422,6 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
4060
2422
|
var _this = this;
|
|
4061
2423
|
return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgRoles(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4062
2424
|
};
|
|
4063
|
-
/**
|
|
4064
|
-
* List the v2 role assignments for an org
|
|
4065
|
-
* @summary List Org Roles V2
|
|
4066
|
-
* @param {string} orgId
|
|
4067
|
-
* @param {*} [options] Override http request option.
|
|
4068
|
-
* @throws {RequiredError}
|
|
4069
|
-
* @memberof UserPermissionsApi
|
|
4070
|
-
*/
|
|
4071
|
-
UserPermissionsApi.prototype.listOrgRolesV2 = function (orgId, options) {
|
|
4072
|
-
var _this = this;
|
|
4073
|
-
return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgRolesV2(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4074
|
-
};
|
|
4075
2425
|
/**
|
|
4076
2426
|
* List the available permissions for the current user
|
|
4077
2427
|
* @summary List Own Permissions
|
|
@@ -4084,18 +2434,6 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
4084
2434
|
var _this = this;
|
|
4085
2435
|
return (0, exports.UserPermissionsApiFp)(this.configuration).listOwnPermissions(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4086
2436
|
};
|
|
4087
|
-
/**
|
|
4088
|
-
* List the v2 materialized permissions for the current user
|
|
4089
|
-
* @summary List Own Permissions V2
|
|
4090
|
-
* @param {string} orgId
|
|
4091
|
-
* @param {*} [options] Override http request option.
|
|
4092
|
-
* @throws {RequiredError}
|
|
4093
|
-
* @memberof UserPermissionsApi
|
|
4094
|
-
*/
|
|
4095
|
-
UserPermissionsApi.prototype.listOwnPermissionsV2 = function (orgId, options) {
|
|
4096
|
-
var _this = this;
|
|
4097
|
-
return (0, exports.UserPermissionsApiFp)(this.configuration).listOwnPermissionsV2(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4098
|
-
};
|
|
4099
2437
|
/**
|
|
4100
2438
|
* List the available permissions for a given user
|
|
4101
2439
|
* @summary List User Permissions
|
|
@@ -4109,19 +2447,6 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
4109
2447
|
var _this = this;
|
|
4110
2448
|
return (0, exports.UserPermissionsApiFp)(this.configuration).listUserPermissions(orgId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4111
2449
|
};
|
|
4112
|
-
/**
|
|
4113
|
-
* List the v2 materialized permissions for a given user
|
|
4114
|
-
* @summary List User Permissions V2
|
|
4115
|
-
* @param {string} orgId
|
|
4116
|
-
* @param {string} userId
|
|
4117
|
-
* @param {*} [options] Override http request option.
|
|
4118
|
-
* @throws {RequiredError}
|
|
4119
|
-
* @memberof UserPermissionsApi
|
|
4120
|
-
*/
|
|
4121
|
-
UserPermissionsApi.prototype.listUserPermissionsV2 = function (orgId, userId, options) {
|
|
4122
|
-
var _this = this;
|
|
4123
|
-
return (0, exports.UserPermissionsApiFp)(this.configuration).listUserPermissionsV2(orgId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4124
|
-
};
|
|
4125
2450
|
return UserPermissionsApi;
|
|
4126
2451
|
}(base_1.BaseAPI));
|
|
4127
2452
|
exports.UserPermissionsApi = UserPermissionsApi;
|