@flipdish/authorization 0.2.57 → 0.2.58
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/api.ts +479 -31
- package/configuration.ts +1 -1
- package/dist/api.d.ts +307 -31
- package/dist/api.js +429 -2
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -84,8 +84,8 @@ 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.
|
|
88
|
-
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.ListMyTimedAccessGrantsStatusEnum = exports.TimedAccessApi = exports.TimedAccessApiFactory = exports.TimedAccessApiFp = exports.TimedAccessApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ListPrincipalAccessBlocksTypeEnum = exports.GetPrincipalAccessBlockTypeEnum = exports.PrincipalAccessBlockApi = exports.PrincipalAccessBlockApiFactory = exports.PrincipalAccessBlockApiFp = exports.PrincipalAccessBlockApiAxiosParamCreator = exports.NamedRolesApi = exports.NamedRolesApiFactory = exports.NamedRolesApiFp = exports.NamedRolesApiAxiosParamCreator = exports.JoinAccessApi = exports.JoinAccessApiFactory = exports.JoinAccessApiFp = exports.JoinAccessApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = void 0;
|
|
87
|
+
exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.ListGlobalApiKeysStatusEnum = exports.APIKeysApi = exports.APIKeysApiFactory = exports.APIKeysApiFp = exports.APIKeysApiAxiosParamCreator = exports.UnblockPrincipalAccessResponseStatusEnum = exports.TimedAccessGrantResponseStatusEnum = exports.TimedAccessGrantResponsePrincipalTypeEnum = exports.TimedAccessGrantRequestBodyRoleNameEnum = exports.TimedAccessGrantStatusEnum = exports.TimedAccessGrantPrincipalTypeEnum = exports.RoleNames = exports.RoleLevelDefinitionScopeEnum = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.RemoveTeammateRequestBodyPrincipalTypeEnum = exports.RemoveTeammateRequestBodyActorTypeEnum = exports.PrincipalInOrgTypeEnum = exports.Permissions = exports.ListRoleDefinitionsSuccessResponseRolesInnerNameEnum = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.JoinAccessErrorResponseCodeEnum = exports.IsInRoleRequestCheckModeEnum = exports.InviteTokenResponseRoleNameEnum = exports.GlobalApiKeyStateResponseUpdatedStatusEnum = exports.GlobalApiKeyStateResponseRevokedStatusEnum = exports.GlobalApiKeyStateResponseStatusEnum = exports.GetUserRolesSuccessResponseRolesEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetJoinAccessRequest200ResponseRoleNameEnum = exports.GetJoinAccessRequest200ResponseStateEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthorizationBatchResponseAllowedResourcesInnerPrincipalTypeEnum = exports.AuthenticateApiKey200ResponseOkEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AccessRequestResponseRoleNameEnum = exports.AccessRequestResponseStateEnum = exports.AccessBlockStateResponseBlockedPrincipalTypeEnum = exports.AcceptJoinRequestRoleNameEnum = void 0;
|
|
88
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.ListMyTimedAccessGrantsStatusEnum = exports.TimedAccessApi = exports.TimedAccessApiFactory = exports.TimedAccessApiFp = exports.TimedAccessApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.PrincipalsApi = exports.PrincipalsApiFactory = exports.PrincipalsApiFp = exports.PrincipalsApiAxiosParamCreator = exports.ListPrincipalAccessBlocksTypeEnum = exports.GetPrincipalAccessBlockTypeEnum = exports.PrincipalAccessBlockApi = exports.PrincipalAccessBlockApiFactory = exports.PrincipalAccessBlockApiFp = exports.PrincipalAccessBlockApiAxiosParamCreator = exports.NamedRolesApi = exports.NamedRolesApiFactory = exports.NamedRolesApiFp = exports.NamedRolesApiAxiosParamCreator = exports.JoinAccessApi = exports.JoinAccessApiFactory = exports.JoinAccessApiFp = exports.JoinAccessApiAxiosParamCreator = 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 = void 0;
|
|
89
89
|
var axios_1 = require("axios");
|
|
90
90
|
// Some imports not used depending on template conditions
|
|
91
91
|
// @ts-ignore
|
|
@@ -100,6 +100,7 @@ exports.AcceptJoinRequestRoleNameEnum = {
|
|
|
100
100
|
PropertyManager: 'PropertyManager',
|
|
101
101
|
FinanceManager: 'FinanceManager',
|
|
102
102
|
StaffMember: 'StaffMember',
|
|
103
|
+
Courier: 'Courier',
|
|
103
104
|
Kiosk: 'Kiosk',
|
|
104
105
|
Terminal: 'Terminal'
|
|
105
106
|
};
|
|
@@ -123,6 +124,7 @@ exports.AccessRequestResponseRoleNameEnum = {
|
|
|
123
124
|
PropertyManager: 'PropertyManager',
|
|
124
125
|
FinanceManager: 'FinanceManager',
|
|
125
126
|
StaffMember: 'StaffMember',
|
|
127
|
+
Courier: 'Courier',
|
|
126
128
|
Kiosk: 'Kiosk',
|
|
127
129
|
Terminal: 'Terminal'
|
|
128
130
|
};
|
|
@@ -185,6 +187,7 @@ exports.GetJoinAccessRequest200ResponseRoleNameEnum = {
|
|
|
185
187
|
PropertyManager: 'PropertyManager',
|
|
186
188
|
FinanceManager: 'FinanceManager',
|
|
187
189
|
StaffMember: 'StaffMember',
|
|
190
|
+
Courier: 'Courier',
|
|
188
191
|
Kiosk: 'Kiosk',
|
|
189
192
|
Terminal: 'Terminal'
|
|
190
193
|
};
|
|
@@ -194,6 +197,18 @@ exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = {
|
|
|
194
197
|
Brand: 'Brand',
|
|
195
198
|
SalesChannel: 'SalesChannel'
|
|
196
199
|
};
|
|
200
|
+
exports.GetUserRolesSuccessResponseRolesEnum = {
|
|
201
|
+
Owner: 'Owner',
|
|
202
|
+
PropertyOwner: 'PropertyOwner',
|
|
203
|
+
ManagedOwner: 'ManagedOwner',
|
|
204
|
+
Integrator: 'Integrator',
|
|
205
|
+
PropertyManager: 'PropertyManager',
|
|
206
|
+
FinanceManager: 'FinanceManager',
|
|
207
|
+
StaffMember: 'StaffMember',
|
|
208
|
+
Courier: 'Courier',
|
|
209
|
+
Kiosk: 'Kiosk',
|
|
210
|
+
Terminal: 'Terminal'
|
|
211
|
+
};
|
|
197
212
|
exports.GlobalApiKeyStateResponseStatusEnum = {
|
|
198
213
|
Active: 'active',
|
|
199
214
|
Revoked: 'revoked'
|
|
@@ -214,6 +229,7 @@ exports.InviteTokenResponseRoleNameEnum = {
|
|
|
214
229
|
PropertyManager: 'PropertyManager',
|
|
215
230
|
FinanceManager: 'FinanceManager',
|
|
216
231
|
StaffMember: 'StaffMember',
|
|
232
|
+
Courier: 'Courier',
|
|
217
233
|
Kiosk: 'Kiosk',
|
|
218
234
|
Terminal: 'Terminal'
|
|
219
235
|
};
|
|
@@ -232,6 +248,7 @@ exports.ListOrgRolesSuccessResponseValueRolesEnum = {
|
|
|
232
248
|
PropertyManager: 'PropertyManager',
|
|
233
249
|
FinanceManager: 'FinanceManager',
|
|
234
250
|
StaffMember: 'StaffMember',
|
|
251
|
+
Courier: 'Courier',
|
|
235
252
|
Kiosk: 'Kiosk',
|
|
236
253
|
Terminal: 'Terminal'
|
|
237
254
|
};
|
|
@@ -243,6 +260,7 @@ exports.ListRoleDefinitionsSuccessResponseRolesInnerNameEnum = {
|
|
|
243
260
|
PropertyManager: 'PropertyManager',
|
|
244
261
|
FinanceManager: 'FinanceManager',
|
|
245
262
|
StaffMember: 'StaffMember',
|
|
263
|
+
Courier: 'Courier',
|
|
246
264
|
Kiosk: 'Kiosk',
|
|
247
265
|
Terminal: 'Terminal'
|
|
248
266
|
};
|
|
@@ -273,6 +291,7 @@ exports.Permissions = {
|
|
|
273
291
|
CreateTeammatePropertyManager: 'CreateTeammatePropertyManager',
|
|
274
292
|
CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner',
|
|
275
293
|
CreateTeammateStaffMember: 'CreateTeammateStaffMember',
|
|
294
|
+
CreateTeammateCourier: 'CreateTeammateCourier',
|
|
276
295
|
ViewApmConfigurations: 'ViewApmConfigurations',
|
|
277
296
|
EditApmConfigurations: 'EditApmConfigurations',
|
|
278
297
|
ViewCampaignsConfigurations: 'ViewCampaignsConfigurations',
|
|
@@ -316,6 +335,7 @@ exports.Permissions = {
|
|
|
316
335
|
CreateGlobalApiKey: 'CreateGlobalAPIKey',
|
|
317
336
|
ListGlobalApiKeys: 'ListGlobalAPIKeys',
|
|
318
337
|
BlockPrincipalAccess: 'BlockPrincipalAccess',
|
|
338
|
+
ListPrincipalOrgs: 'ListPrincipalOrgs',
|
|
319
339
|
CreateMenu: 'CreateMenu',
|
|
320
340
|
UpdateMenu: 'UpdateMenu',
|
|
321
341
|
DeleteMenu: 'DeleteMenu',
|
|
@@ -486,6 +506,7 @@ exports.Permissions = {
|
|
|
486
506
|
ViewWebhooks: 'ViewWebhooks',
|
|
487
507
|
EditWebhooks: 'EditWebhooks',
|
|
488
508
|
ViewOwnPermissions: 'ViewOwnPermissions',
|
|
509
|
+
LeaveOrg: 'LeaveOrg',
|
|
489
510
|
CreatePosSale: 'CreatePosSale',
|
|
490
511
|
ComplimentPosItems: 'ComplimentPosItems',
|
|
491
512
|
ApplyPosDiscounts: 'ApplyPosDiscounts',
|
|
@@ -506,6 +527,7 @@ exports.Permissions = {
|
|
|
506
527
|
SnoozePosItem: 'SnoozePosItem',
|
|
507
528
|
SnoozePosItemIndefinitely: 'SnoozePosItemIndefinitely',
|
|
508
529
|
SnoozePosProperty: 'SnoozePosProperty',
|
|
530
|
+
SendSmsToCustomers: 'SendSmsToCustomers',
|
|
509
531
|
RoleAdmin: 'RoleAdmin',
|
|
510
532
|
RoleFactory: 'RoleFactory',
|
|
511
533
|
RoleAuthDeveloper: 'RoleAuthDeveloper',
|
|
@@ -537,6 +559,7 @@ exports.RoleAssignmentRequestBodyRoleNameEnum = {
|
|
|
537
559
|
PropertyManager: 'PropertyManager',
|
|
538
560
|
FinanceManager: 'FinanceManager',
|
|
539
561
|
StaffMember: 'StaffMember',
|
|
562
|
+
Courier: 'Courier',
|
|
540
563
|
Kiosk: 'Kiosk',
|
|
541
564
|
Terminal: 'Terminal'
|
|
542
565
|
};
|
|
@@ -3197,6 +3220,51 @@ var NamedRolesApiAxiosParamCreator = function (configuration) {
|
|
|
3197
3220
|
});
|
|
3198
3221
|
});
|
|
3199
3222
|
},
|
|
3223
|
+
/**
|
|
3224
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
3225
|
+
* @summary List named roles for a user
|
|
3226
|
+
* @param {string} principalId
|
|
3227
|
+
* @param {*} [options] Override http request option.
|
|
3228
|
+
* @throws {RequiredError}
|
|
3229
|
+
*/
|
|
3230
|
+
listNamedRoles: function (principalId_1) {
|
|
3231
|
+
var args_1 = [];
|
|
3232
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3233
|
+
args_1[_i - 1] = arguments[_i];
|
|
3234
|
+
}
|
|
3235
|
+
return __awaiter(_this, __spreadArray([principalId_1], args_1, true), void 0, function (principalId, options) {
|
|
3236
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3237
|
+
if (options === void 0) { options = {}; }
|
|
3238
|
+
return __generator(this, function (_a) {
|
|
3239
|
+
switch (_a.label) {
|
|
3240
|
+
case 0:
|
|
3241
|
+
// verify required parameter 'principalId' is not null or undefined
|
|
3242
|
+
(0, common_1.assertParamExists)('listNamedRoles', 'principalId', principalId);
|
|
3243
|
+
localVarPath = "/namedRoles/{principalId}"
|
|
3244
|
+
.replace("{".concat("principalId", "}"), encodeURIComponent(String(principalId)));
|
|
3245
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3246
|
+
if (configuration) {
|
|
3247
|
+
baseOptions = configuration.baseOptions;
|
|
3248
|
+
}
|
|
3249
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3250
|
+
localVarHeaderParameter = {};
|
|
3251
|
+
localVarQueryParameter = {};
|
|
3252
|
+
// authentication ApiKeyAuth required
|
|
3253
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
3254
|
+
case 1:
|
|
3255
|
+
// authentication ApiKeyAuth required
|
|
3256
|
+
_a.sent();
|
|
3257
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3258
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3259
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3260
|
+
return [2 /*return*/, {
|
|
3261
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3262
|
+
options: localVarRequestOptions,
|
|
3263
|
+
}];
|
|
3264
|
+
}
|
|
3265
|
+
});
|
|
3266
|
+
});
|
|
3267
|
+
},
|
|
3200
3268
|
/**
|
|
3201
3269
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
3202
3270
|
* @summary Remove a named role
|
|
@@ -3274,6 +3342,29 @@ var NamedRolesApiFp = function (configuration) {
|
|
|
3274
3342
|
});
|
|
3275
3343
|
});
|
|
3276
3344
|
},
|
|
3345
|
+
/**
|
|
3346
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
3347
|
+
* @summary List named roles for a user
|
|
3348
|
+
* @param {string} principalId
|
|
3349
|
+
* @param {*} [options] Override http request option.
|
|
3350
|
+
* @throws {RequiredError}
|
|
3351
|
+
*/
|
|
3352
|
+
listNamedRoles: function (principalId, options) {
|
|
3353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3354
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3355
|
+
var _a, _b, _c;
|
|
3356
|
+
return __generator(this, function (_d) {
|
|
3357
|
+
switch (_d.label) {
|
|
3358
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listNamedRoles(principalId, options)];
|
|
3359
|
+
case 1:
|
|
3360
|
+
localVarAxiosArgs = _d.sent();
|
|
3361
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3362
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NamedRolesApi.listNamedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3363
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3364
|
+
}
|
|
3365
|
+
});
|
|
3366
|
+
});
|
|
3367
|
+
},
|
|
3277
3368
|
/**
|
|
3278
3369
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
3279
3370
|
* @summary Remove a named role
|
|
@@ -3317,6 +3408,16 @@ var NamedRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
3317
3408
|
applyNamedRole: function (applyNamedRoleRequestBody, options) {
|
|
3318
3409
|
return localVarFp.applyNamedRole(applyNamedRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
3319
3410
|
},
|
|
3411
|
+
/**
|
|
3412
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
3413
|
+
* @summary List named roles for a user
|
|
3414
|
+
* @param {string} principalId
|
|
3415
|
+
* @param {*} [options] Override http request option.
|
|
3416
|
+
* @throws {RequiredError}
|
|
3417
|
+
*/
|
|
3418
|
+
listNamedRoles: function (principalId, options) {
|
|
3419
|
+
return localVarFp.listNamedRoles(principalId, options).then(function (request) { return request(axios, basePath); });
|
|
3420
|
+
},
|
|
3320
3421
|
/**
|
|
3321
3422
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
3322
3423
|
* @summary Remove a named role
|
|
@@ -3353,6 +3454,18 @@ var NamedRolesApi = /** @class */ (function (_super) {
|
|
|
3353
3454
|
var _this = this;
|
|
3354
3455
|
return (0, exports.NamedRolesApiFp)(this.configuration).applyNamedRole(applyNamedRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3355
3456
|
};
|
|
3457
|
+
/**
|
|
3458
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
3459
|
+
* @summary List named roles for a user
|
|
3460
|
+
* @param {string} principalId
|
|
3461
|
+
* @param {*} [options] Override http request option.
|
|
3462
|
+
* @throws {RequiredError}
|
|
3463
|
+
* @memberof NamedRolesApi
|
|
3464
|
+
*/
|
|
3465
|
+
NamedRolesApi.prototype.listNamedRoles = function (principalId, options) {
|
|
3466
|
+
var _this = this;
|
|
3467
|
+
return (0, exports.NamedRolesApiFp)(this.configuration).listNamedRoles(principalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3468
|
+
};
|
|
3356
3469
|
/**
|
|
3357
3470
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
3358
3471
|
* @summary Remove a named role
|
|
@@ -3799,6 +3912,140 @@ exports.ListPrincipalAccessBlocksTypeEnum = {
|
|
|
3799
3912
|
Kiosk: 'Kiosk',
|
|
3800
3913
|
Terminal: 'Terminal'
|
|
3801
3914
|
};
|
|
3915
|
+
/**
|
|
3916
|
+
* PrincipalsApi - axios parameter creator
|
|
3917
|
+
* @export
|
|
3918
|
+
*/
|
|
3919
|
+
var PrincipalsApiAxiosParamCreator = function (configuration) {
|
|
3920
|
+
var _this = this;
|
|
3921
|
+
return {
|
|
3922
|
+
/**
|
|
3923
|
+
* Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
|
|
3924
|
+
* @summary Get principal org memberships
|
|
3925
|
+
* @param {string} principalId
|
|
3926
|
+
* @param {*} [options] Override http request option.
|
|
3927
|
+
* @throws {RequiredError}
|
|
3928
|
+
*/
|
|
3929
|
+
getPrincipalOrgs: function (principalId_1) {
|
|
3930
|
+
var args_1 = [];
|
|
3931
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3932
|
+
args_1[_i - 1] = arguments[_i];
|
|
3933
|
+
}
|
|
3934
|
+
return __awaiter(_this, __spreadArray([principalId_1], args_1, true), void 0, function (principalId, options) {
|
|
3935
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3936
|
+
if (options === void 0) { options = {}; }
|
|
3937
|
+
return __generator(this, function (_a) {
|
|
3938
|
+
switch (_a.label) {
|
|
3939
|
+
case 0:
|
|
3940
|
+
// verify required parameter 'principalId' is not null or undefined
|
|
3941
|
+
(0, common_1.assertParamExists)('getPrincipalOrgs', 'principalId', principalId);
|
|
3942
|
+
localVarPath = "/principals/{principalId}/orgs"
|
|
3943
|
+
.replace("{".concat("principalId", "}"), encodeURIComponent(String(principalId)));
|
|
3944
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3945
|
+
if (configuration) {
|
|
3946
|
+
baseOptions = configuration.baseOptions;
|
|
3947
|
+
}
|
|
3948
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3949
|
+
localVarHeaderParameter = {};
|
|
3950
|
+
localVarQueryParameter = {};
|
|
3951
|
+
// authentication ApiKeyAuth required
|
|
3952
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
3953
|
+
case 1:
|
|
3954
|
+
// authentication ApiKeyAuth required
|
|
3955
|
+
_a.sent();
|
|
3956
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3957
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3958
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3959
|
+
return [2 /*return*/, {
|
|
3960
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3961
|
+
options: localVarRequestOptions,
|
|
3962
|
+
}];
|
|
3963
|
+
}
|
|
3964
|
+
});
|
|
3965
|
+
});
|
|
3966
|
+
},
|
|
3967
|
+
};
|
|
3968
|
+
};
|
|
3969
|
+
exports.PrincipalsApiAxiosParamCreator = PrincipalsApiAxiosParamCreator;
|
|
3970
|
+
/**
|
|
3971
|
+
* PrincipalsApi - functional programming interface
|
|
3972
|
+
* @export
|
|
3973
|
+
*/
|
|
3974
|
+
var PrincipalsApiFp = function (configuration) {
|
|
3975
|
+
var localVarAxiosParamCreator = (0, exports.PrincipalsApiAxiosParamCreator)(configuration);
|
|
3976
|
+
return {
|
|
3977
|
+
/**
|
|
3978
|
+
* Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
|
|
3979
|
+
* @summary Get principal org memberships
|
|
3980
|
+
* @param {string} principalId
|
|
3981
|
+
* @param {*} [options] Override http request option.
|
|
3982
|
+
* @throws {RequiredError}
|
|
3983
|
+
*/
|
|
3984
|
+
getPrincipalOrgs: function (principalId, options) {
|
|
3985
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3986
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3987
|
+
var _a, _b, _c;
|
|
3988
|
+
return __generator(this, function (_d) {
|
|
3989
|
+
switch (_d.label) {
|
|
3990
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrincipalOrgs(principalId, options)];
|
|
3991
|
+
case 1:
|
|
3992
|
+
localVarAxiosArgs = _d.sent();
|
|
3993
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3994
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrincipalsApi.getPrincipalOrgs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3995
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3996
|
+
}
|
|
3997
|
+
});
|
|
3998
|
+
});
|
|
3999
|
+
},
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
4002
|
+
exports.PrincipalsApiFp = PrincipalsApiFp;
|
|
4003
|
+
/**
|
|
4004
|
+
* PrincipalsApi - factory interface
|
|
4005
|
+
* @export
|
|
4006
|
+
*/
|
|
4007
|
+
var PrincipalsApiFactory = function (configuration, basePath, axios) {
|
|
4008
|
+
var localVarFp = (0, exports.PrincipalsApiFp)(configuration);
|
|
4009
|
+
return {
|
|
4010
|
+
/**
|
|
4011
|
+
* Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
|
|
4012
|
+
* @summary Get principal org memberships
|
|
4013
|
+
* @param {string} principalId
|
|
4014
|
+
* @param {*} [options] Override http request option.
|
|
4015
|
+
* @throws {RequiredError}
|
|
4016
|
+
*/
|
|
4017
|
+
getPrincipalOrgs: function (principalId, options) {
|
|
4018
|
+
return localVarFp.getPrincipalOrgs(principalId, options).then(function (request) { return request(axios, basePath); });
|
|
4019
|
+
},
|
|
4020
|
+
};
|
|
4021
|
+
};
|
|
4022
|
+
exports.PrincipalsApiFactory = PrincipalsApiFactory;
|
|
4023
|
+
/**
|
|
4024
|
+
* PrincipalsApi - object-oriented interface
|
|
4025
|
+
* @export
|
|
4026
|
+
* @class PrincipalsApi
|
|
4027
|
+
* @extends {BaseAPI}
|
|
4028
|
+
*/
|
|
4029
|
+
var PrincipalsApi = /** @class */ (function (_super) {
|
|
4030
|
+
__extends(PrincipalsApi, _super);
|
|
4031
|
+
function PrincipalsApi() {
|
|
4032
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4033
|
+
}
|
|
4034
|
+
/**
|
|
4035
|
+
* Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
|
|
4036
|
+
* @summary Get principal org memberships
|
|
4037
|
+
* @param {string} principalId
|
|
4038
|
+
* @param {*} [options] Override http request option.
|
|
4039
|
+
* @throws {RequiredError}
|
|
4040
|
+
* @memberof PrincipalsApi
|
|
4041
|
+
*/
|
|
4042
|
+
PrincipalsApi.prototype.getPrincipalOrgs = function (principalId, options) {
|
|
4043
|
+
var _this = this;
|
|
4044
|
+
return (0, exports.PrincipalsApiFp)(this.configuration).getPrincipalOrgs(principalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4045
|
+
};
|
|
4046
|
+
return PrincipalsApi;
|
|
4047
|
+
}(base_1.BaseAPI));
|
|
4048
|
+
exports.PrincipalsApi = PrincipalsApi;
|
|
3802
4049
|
/**
|
|
3803
4050
|
* RoleAssignmentApi - axios parameter creator
|
|
3804
4051
|
* @export
|
|
@@ -3854,6 +4101,51 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
3854
4101
|
});
|
|
3855
4102
|
});
|
|
3856
4103
|
},
|
|
4104
|
+
/**
|
|
4105
|
+
* Removes the caller from the org: revokes all of their V2 role assignments, reconciles away their policies, and removes them from the org user list. Does not change their Zeus teammate record.
|
|
4106
|
+
* @summary Leave org
|
|
4107
|
+
* @param {string} orgId
|
|
4108
|
+
* @param {*} [options] Override http request option.
|
|
4109
|
+
* @throws {RequiredError}
|
|
4110
|
+
*/
|
|
4111
|
+
leaveOrg: function (orgId_1) {
|
|
4112
|
+
var args_1 = [];
|
|
4113
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4114
|
+
args_1[_i - 1] = arguments[_i];
|
|
4115
|
+
}
|
|
4116
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
4117
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4118
|
+
if (options === void 0) { options = {}; }
|
|
4119
|
+
return __generator(this, function (_a) {
|
|
4120
|
+
switch (_a.label) {
|
|
4121
|
+
case 0:
|
|
4122
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4123
|
+
(0, common_1.assertParamExists)('leaveOrg', 'orgId', orgId);
|
|
4124
|
+
localVarPath = "/orgs/{orgId}/leave"
|
|
4125
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
4126
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4127
|
+
if (configuration) {
|
|
4128
|
+
baseOptions = configuration.baseOptions;
|
|
4129
|
+
}
|
|
4130
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
4131
|
+
localVarHeaderParameter = {};
|
|
4132
|
+
localVarQueryParameter = {};
|
|
4133
|
+
// authentication ApiKeyAuth required
|
|
4134
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
4135
|
+
case 1:
|
|
4136
|
+
// authentication ApiKeyAuth required
|
|
4137
|
+
_a.sent();
|
|
4138
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4139
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4140
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4141
|
+
return [2 /*return*/, {
|
|
4142
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4143
|
+
options: localVarRequestOptions,
|
|
4144
|
+
}];
|
|
4145
|
+
}
|
|
4146
|
+
});
|
|
4147
|
+
});
|
|
4148
|
+
},
|
|
3857
4149
|
/**
|
|
3858
4150
|
* Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
|
|
3859
4151
|
* @summary Rematerialize Role Assignment
|
|
@@ -3984,6 +4276,29 @@ var RoleAssignmentApiFp = function (configuration) {
|
|
|
3984
4276
|
});
|
|
3985
4277
|
});
|
|
3986
4278
|
},
|
|
4279
|
+
/**
|
|
4280
|
+
* Removes the caller from the org: revokes all of their V2 role assignments, reconciles away their policies, and removes them from the org user list. Does not change their Zeus teammate record.
|
|
4281
|
+
* @summary Leave org
|
|
4282
|
+
* @param {string} orgId
|
|
4283
|
+
* @param {*} [options] Override http request option.
|
|
4284
|
+
* @throws {RequiredError}
|
|
4285
|
+
*/
|
|
4286
|
+
leaveOrg: function (orgId, options) {
|
|
4287
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4288
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
4289
|
+
var _a, _b, _c;
|
|
4290
|
+
return __generator(this, function (_d) {
|
|
4291
|
+
switch (_d.label) {
|
|
4292
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.leaveOrg(orgId, options)];
|
|
4293
|
+
case 1:
|
|
4294
|
+
localVarAxiosArgs = _d.sent();
|
|
4295
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4296
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.leaveOrg']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4297
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
4298
|
+
}
|
|
4299
|
+
});
|
|
4300
|
+
});
|
|
4301
|
+
},
|
|
3987
4302
|
/**
|
|
3988
4303
|
* Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
|
|
3989
4304
|
* @summary Rematerialize Role Assignment
|
|
@@ -4053,6 +4368,16 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
|
4053
4368
|
applyRoleAssignment: function (orgId, roleAssignmentRequestBody, options) {
|
|
4054
4369
|
return localVarFp.applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
4055
4370
|
},
|
|
4371
|
+
/**
|
|
4372
|
+
* Removes the caller from the org: revokes all of their V2 role assignments, reconciles away their policies, and removes them from the org user list. Does not change their Zeus teammate record.
|
|
4373
|
+
* @summary Leave org
|
|
4374
|
+
* @param {string} orgId
|
|
4375
|
+
* @param {*} [options] Override http request option.
|
|
4376
|
+
* @throws {RequiredError}
|
|
4377
|
+
*/
|
|
4378
|
+
leaveOrg: function (orgId, options) {
|
|
4379
|
+
return localVarFp.leaveOrg(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
4380
|
+
},
|
|
4056
4381
|
/**
|
|
4057
4382
|
* Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
|
|
4058
4383
|
* @summary Rematerialize Role Assignment
|
|
@@ -4102,6 +4427,18 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
4102
4427
|
var _this = this;
|
|
4103
4428
|
return (0, exports.RoleAssignmentApiFp)(this.configuration).applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4104
4429
|
};
|
|
4430
|
+
/**
|
|
4431
|
+
* Removes the caller from the org: revokes all of their V2 role assignments, reconciles away their policies, and removes them from the org user list. Does not change their Zeus teammate record.
|
|
4432
|
+
* @summary Leave org
|
|
4433
|
+
* @param {string} orgId
|
|
4434
|
+
* @param {*} [options] Override http request option.
|
|
4435
|
+
* @throws {RequiredError}
|
|
4436
|
+
* @memberof RoleAssignmentApi
|
|
4437
|
+
*/
|
|
4438
|
+
RoleAssignmentApi.prototype.leaveOrg = function (orgId, options) {
|
|
4439
|
+
var _this = this;
|
|
4440
|
+
return (0, exports.RoleAssignmentApiFp)(this.configuration).leaveOrg(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4441
|
+
};
|
|
4105
4442
|
/**
|
|
4106
4443
|
* Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
|
|
4107
4444
|
* @summary Rematerialize Role Assignment
|
|
@@ -4754,6 +5091,51 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
|
|
|
4754
5091
|
});
|
|
4755
5092
|
});
|
|
4756
5093
|
},
|
|
5094
|
+
/**
|
|
5095
|
+
* List the role assignments for the current user in the org
|
|
5096
|
+
* @summary List Own Roles
|
|
5097
|
+
* @param {string} orgId
|
|
5098
|
+
* @param {*} [options] Override http request option.
|
|
5099
|
+
* @throws {RequiredError}
|
|
5100
|
+
*/
|
|
5101
|
+
listOwnRoles: function (orgId_1) {
|
|
5102
|
+
var args_1 = [];
|
|
5103
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
5104
|
+
args_1[_i - 1] = arguments[_i];
|
|
5105
|
+
}
|
|
5106
|
+
return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
|
|
5107
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5108
|
+
if (options === void 0) { options = {}; }
|
|
5109
|
+
return __generator(this, function (_a) {
|
|
5110
|
+
switch (_a.label) {
|
|
5111
|
+
case 0:
|
|
5112
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
5113
|
+
(0, common_1.assertParamExists)('listOwnRoles', 'orgId', orgId);
|
|
5114
|
+
localVarPath = "/orgs/{orgId}/user/roles"
|
|
5115
|
+
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
5116
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5117
|
+
if (configuration) {
|
|
5118
|
+
baseOptions = configuration.baseOptions;
|
|
5119
|
+
}
|
|
5120
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5121
|
+
localVarHeaderParameter = {};
|
|
5122
|
+
localVarQueryParameter = {};
|
|
5123
|
+
// authentication ApiKeyAuth required
|
|
5124
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
5125
|
+
case 1:
|
|
5126
|
+
// authentication ApiKeyAuth required
|
|
5127
|
+
_a.sent();
|
|
5128
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5129
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5130
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5131
|
+
return [2 /*return*/, {
|
|
5132
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5133
|
+
options: localVarRequestOptions,
|
|
5134
|
+
}];
|
|
5135
|
+
}
|
|
5136
|
+
});
|
|
5137
|
+
});
|
|
5138
|
+
},
|
|
4757
5139
|
/**
|
|
4758
5140
|
* List the available permissions for a given user
|
|
4759
5141
|
* @summary List User Permissions
|
|
@@ -4882,6 +5264,29 @@ var UserPermissionsApiFp = function (configuration) {
|
|
|
4882
5264
|
});
|
|
4883
5265
|
});
|
|
4884
5266
|
},
|
|
5267
|
+
/**
|
|
5268
|
+
* List the role assignments for the current user in the org
|
|
5269
|
+
* @summary List Own Roles
|
|
5270
|
+
* @param {string} orgId
|
|
5271
|
+
* @param {*} [options] Override http request option.
|
|
5272
|
+
* @throws {RequiredError}
|
|
5273
|
+
*/
|
|
5274
|
+
listOwnRoles: function (orgId, options) {
|
|
5275
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5276
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5277
|
+
var _a, _b, _c;
|
|
5278
|
+
return __generator(this, function (_d) {
|
|
5279
|
+
switch (_d.label) {
|
|
5280
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOwnRoles(orgId, options)];
|
|
5281
|
+
case 1:
|
|
5282
|
+
localVarAxiosArgs = _d.sent();
|
|
5283
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5284
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOwnRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5285
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
5286
|
+
}
|
|
5287
|
+
});
|
|
5288
|
+
});
|
|
5289
|
+
},
|
|
4885
5290
|
/**
|
|
4886
5291
|
* List the available permissions for a given user
|
|
4887
5292
|
* @summary List User Permissions
|
|
@@ -4946,6 +5351,16 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
4946
5351
|
listOwnPermissions: function (orgId, options) {
|
|
4947
5352
|
return localVarFp.listOwnPermissions(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
4948
5353
|
},
|
|
5354
|
+
/**
|
|
5355
|
+
* List the role assignments for the current user in the org
|
|
5356
|
+
* @summary List Own Roles
|
|
5357
|
+
* @param {string} orgId
|
|
5358
|
+
* @param {*} [options] Override http request option.
|
|
5359
|
+
* @throws {RequiredError}
|
|
5360
|
+
*/
|
|
5361
|
+
listOwnRoles: function (orgId, options) {
|
|
5362
|
+
return localVarFp.listOwnRoles(orgId, options).then(function (request) { return request(axios, basePath); });
|
|
5363
|
+
},
|
|
4949
5364
|
/**
|
|
4950
5365
|
* List the available permissions for a given user
|
|
4951
5366
|
* @summary List User Permissions
|
|
@@ -5007,6 +5422,18 @@ var UserPermissionsApi = /** @class */ (function (_super) {
|
|
|
5007
5422
|
var _this = this;
|
|
5008
5423
|
return (0, exports.UserPermissionsApiFp)(this.configuration).listOwnPermissions(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5009
5424
|
};
|
|
5425
|
+
/**
|
|
5426
|
+
* List the role assignments for the current user in the org
|
|
5427
|
+
* @summary List Own Roles
|
|
5428
|
+
* @param {string} orgId
|
|
5429
|
+
* @param {*} [options] Override http request option.
|
|
5430
|
+
* @throws {RequiredError}
|
|
5431
|
+
* @memberof UserPermissionsApi
|
|
5432
|
+
*/
|
|
5433
|
+
UserPermissionsApi.prototype.listOwnRoles = function (orgId, options) {
|
|
5434
|
+
var _this = this;
|
|
5435
|
+
return (0, exports.UserPermissionsApiFp)(this.configuration).listOwnRoles(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5436
|
+
};
|
|
5010
5437
|
/**
|
|
5011
5438
|
* List the available permissions for a given user
|
|
5012
5439
|
* @summary List User Permissions
|
package/dist/configuration.js
CHANGED
|
@@ -36,7 +36,7 @@ var Configuration = /** @class */ (function () {
|
|
|
36
36
|
this.serverIndex = param.serverIndex;
|
|
37
37
|
var extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
38
38
|
headers: {
|
|
39
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.2.
|
|
39
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.2.58"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|