@flipdish/authorization 0.0.475-rc.1789049557 → 0.0.476-rc.1789049776

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 CHANGED
@@ -1913,25 +1913,6 @@ export interface ListJoinRequestsResponse {
1913
1913
  */
1914
1914
  'items': Array<GetJoinAccessRequest200Response>;
1915
1915
  }
1916
- /**
1917
- * The named roles held by a user
1918
- * @export
1919
- * @interface ListNamedRolesResponse
1920
- */
1921
- export interface ListNamedRolesResponse {
1922
- /**
1923
- *
1924
- * @type {string}
1925
- * @memberof ListNamedRolesResponse
1926
- */
1927
- 'userId': string;
1928
- /**
1929
- * The named roles currently held by this user
1930
- * @type {Array<RoleNames>}
1931
- * @memberof ListNamedRolesResponse
1932
- */
1933
- 'roles': Array<RoleNames>;
1934
- }
1935
1916
  /**
1936
1917
  *
1937
1918
  * @export
@@ -5447,43 +5428,6 @@ export const NamedRolesApiAxiosParamCreator = function (configuration?: Configur
5447
5428
  options: localVarRequestOptions,
5448
5429
  };
5449
5430
  },
5450
- /**
5451
- * 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.
5452
- * @summary List named roles for a user
5453
- * @param {string} principalId
5454
- * @param {*} [options] Override http request option.
5455
- * @throws {RequiredError}
5456
- */
5457
- listNamedRoles: async (principalId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5458
- // verify required parameter 'principalId' is not null or undefined
5459
- assertParamExists('listNamedRoles', 'principalId', principalId)
5460
- const localVarPath = `/namedRoles/{principalId}`
5461
- .replace(`{${"principalId"}}`, encodeURIComponent(String(principalId)));
5462
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5463
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5464
- let baseOptions;
5465
- if (configuration) {
5466
- baseOptions = configuration.baseOptions;
5467
- }
5468
-
5469
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5470
- const localVarHeaderParameter = {} as any;
5471
- const localVarQueryParameter = {} as any;
5472
-
5473
- // authentication ApiKeyAuth required
5474
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5475
-
5476
-
5477
-
5478
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5479
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5480
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5481
-
5482
- return {
5483
- url: toPathString(localVarUrlObj),
5484
- options: localVarRequestOptions,
5485
- };
5486
- },
5487
5431
  /**
5488
5432
  * 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.
5489
5433
  * @summary Remove a named role
@@ -5544,19 +5488,6 @@ export const NamedRolesApiFp = function(configuration?: Configuration) {
5544
5488
  const localVarOperationServerBasePath = operationServerMap['NamedRolesApi.applyNamedRole']?.[localVarOperationServerIndex]?.url;
5545
5489
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5546
5490
  },
5547
- /**
5548
- * 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.
5549
- * @summary List named roles for a user
5550
- * @param {string} principalId
5551
- * @param {*} [options] Override http request option.
5552
- * @throws {RequiredError}
5553
- */
5554
- async listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNamedRolesResponse>> {
5555
- const localVarAxiosArgs = await localVarAxiosParamCreator.listNamedRoles(principalId, options);
5556
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5557
- const localVarOperationServerBasePath = operationServerMap['NamedRolesApi.listNamedRoles']?.[localVarOperationServerIndex]?.url;
5558
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5559
- },
5560
5491
  /**
5561
5492
  * 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.
5562
5493
  * @summary Remove a named role
@@ -5590,16 +5521,6 @@ export const NamedRolesApiFactory = function (configuration?: Configuration, bas
5590
5521
  applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<NamedRoleAssignmentResponse> {
5591
5522
  return localVarFp.applyNamedRole(applyNamedRoleRequestBody, options).then((request) => request(axios, basePath));
5592
5523
  },
5593
- /**
5594
- * 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.
5595
- * @summary List named roles for a user
5596
- * @param {string} principalId
5597
- * @param {*} [options] Override http request option.
5598
- * @throws {RequiredError}
5599
- */
5600
- listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): AxiosPromise<ListNamedRolesResponse> {
5601
- return localVarFp.listNamedRoles(principalId, options).then((request) => request(axios, basePath));
5602
- },
5603
5524
  /**
5604
5525
  * 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.
5605
5526
  * @summary Remove a named role
@@ -5632,18 +5553,6 @@ export class NamedRolesApi extends BaseAPI {
5632
5553
  return NamedRolesApiFp(this.configuration).applyNamedRole(applyNamedRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
5633
5554
  }
5634
5555
 
5635
- /**
5636
- * 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.
5637
- * @summary List named roles for a user
5638
- * @param {string} principalId
5639
- * @param {*} [options] Override http request option.
5640
- * @throws {RequiredError}
5641
- * @memberof NamedRolesApi
5642
- */
5643
- public listNamedRoles(principalId: string, options?: RawAxiosRequestConfig) {
5644
- return NamedRolesApiFp(this.configuration).listNamedRoles(principalId, options).then((request) => request(this.axios, this.basePath));
5645
- }
5646
-
5647
5556
  /**
5648
5557
  * 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.
5649
5558
  * @summary Remove a named role
package/configuration.ts CHANGED
@@ -100,7 +100,7 @@ export class Configuration {
100
100
 
101
101
  const extraHeaders = param.useDefaultUserAgent ? {} : {
102
102
  headers: {
103
- "user-agent": "Flipdish authorization typescript SDK / 0.0.475-rc.1789049557"
103
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.476-rc.1789049776"
104
104
  }
105
105
  };
106
106
 
package/dist/api.d.ts CHANGED
@@ -1830,25 +1830,6 @@ export interface ListJoinRequestsResponse {
1830
1830
  */
1831
1831
  'items': Array<GetJoinAccessRequest200Response>;
1832
1832
  }
1833
- /**
1834
- * The named roles held by a user
1835
- * @export
1836
- * @interface ListNamedRolesResponse
1837
- */
1838
- export interface ListNamedRolesResponse {
1839
- /**
1840
- *
1841
- * @type {string}
1842
- * @memberof ListNamedRolesResponse
1843
- */
1844
- 'userId': string;
1845
- /**
1846
- * The named roles currently held by this user
1847
- * @type {Array<RoleNames>}
1848
- * @memberof ListNamedRolesResponse
1849
- */
1850
- 'roles': Array<RoleNames>;
1851
- }
1852
1833
  /**
1853
1834
  *
1854
1835
  * @export
@@ -4202,14 +4183,6 @@ export declare const NamedRolesApiAxiosParamCreator: (configuration?: Configurat
4202
4183
  * @throws {RequiredError}
4203
4184
  */
4204
4185
  applyNamedRole: (applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4205
- /**
4206
- * 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.
4207
- * @summary List named roles for a user
4208
- * @param {string} principalId
4209
- * @param {*} [options] Override http request option.
4210
- * @throws {RequiredError}
4211
- */
4212
- listNamedRoles: (principalId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4213
4186
  /**
4214
4187
  * 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.
4215
4188
  * @summary Remove a named role
@@ -4232,14 +4205,6 @@ export declare const NamedRolesApiFp: (configuration?: Configuration) => {
4232
4205
  * @throws {RequiredError}
4233
4206
  */
4234
4207
  applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NamedRoleAssignmentResponse>>;
4235
- /**
4236
- * 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.
4237
- * @summary List named roles for a user
4238
- * @param {string} principalId
4239
- * @param {*} [options] Override http request option.
4240
- * @throws {RequiredError}
4241
- */
4242
- listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNamedRolesResponse>>;
4243
4208
  /**
4244
4209
  * 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.
4245
4210
  * @summary Remove a named role
@@ -4262,14 +4227,6 @@ export declare const NamedRolesApiFactory: (configuration?: Configuration, baseP
4262
4227
  * @throws {RequiredError}
4263
4228
  */
4264
4229
  applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<NamedRoleAssignmentResponse>;
4265
- /**
4266
- * 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.
4267
- * @summary List named roles for a user
4268
- * @param {string} principalId
4269
- * @param {*} [options] Override http request option.
4270
- * @throws {RequiredError}
4271
- */
4272
- listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): AxiosPromise<ListNamedRolesResponse>;
4273
4230
  /**
4274
4231
  * 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.
4275
4232
  * @summary Remove a named role
@@ -4295,15 +4252,6 @@ export declare class NamedRolesApi extends BaseAPI {
4295
4252
  * @memberof NamedRolesApi
4296
4253
  */
4297
4254
  applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<NamedRoleAssignmentResponse, any, {}, any>>;
4298
- /**
4299
- * 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.
4300
- * @summary List named roles for a user
4301
- * @param {string} principalId
4302
- * @param {*} [options] Override http request option.
4303
- * @throws {RequiredError}
4304
- * @memberof NamedRolesApi
4305
- */
4306
- listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNamedRolesResponse, any, {}, any>>;
4307
4255
  /**
4308
4256
  * 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.
4309
4257
  * @summary Remove a named role
package/dist/api.js CHANGED
@@ -3197,51 +3197,6 @@ var NamedRolesApiAxiosParamCreator = function (configuration) {
3197
3197
  });
3198
3198
  });
3199
3199
  },
3200
- /**
3201
- * 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.
3202
- * @summary List named roles for a user
3203
- * @param {string} principalId
3204
- * @param {*} [options] Override http request option.
3205
- * @throws {RequiredError}
3206
- */
3207
- listNamedRoles: function (principalId_1) {
3208
- var args_1 = [];
3209
- for (var _i = 1; _i < arguments.length; _i++) {
3210
- args_1[_i - 1] = arguments[_i];
3211
- }
3212
- return __awaiter(_this, __spreadArray([principalId_1], args_1, true), void 0, function (principalId, options) {
3213
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3214
- if (options === void 0) { options = {}; }
3215
- return __generator(this, function (_a) {
3216
- switch (_a.label) {
3217
- case 0:
3218
- // verify required parameter 'principalId' is not null or undefined
3219
- (0, common_1.assertParamExists)('listNamedRoles', 'principalId', principalId);
3220
- localVarPath = "/namedRoles/{principalId}"
3221
- .replace("{".concat("principalId", "}"), encodeURIComponent(String(principalId)));
3222
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3223
- if (configuration) {
3224
- baseOptions = configuration.baseOptions;
3225
- }
3226
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3227
- localVarHeaderParameter = {};
3228
- localVarQueryParameter = {};
3229
- // authentication ApiKeyAuth required
3230
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3231
- case 1:
3232
- // authentication ApiKeyAuth required
3233
- _a.sent();
3234
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3235
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3236
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3237
- return [2 /*return*/, {
3238
- url: (0, common_1.toPathString)(localVarUrlObj),
3239
- options: localVarRequestOptions,
3240
- }];
3241
- }
3242
- });
3243
- });
3244
- },
3245
3200
  /**
3246
3201
  * 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.
3247
3202
  * @summary Remove a named role
@@ -3319,29 +3274,6 @@ var NamedRolesApiFp = function (configuration) {
3319
3274
  });
3320
3275
  });
3321
3276
  },
3322
- /**
3323
- * 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.
3324
- * @summary List named roles for a user
3325
- * @param {string} principalId
3326
- * @param {*} [options] Override http request option.
3327
- * @throws {RequiredError}
3328
- */
3329
- listNamedRoles: function (principalId, options) {
3330
- return __awaiter(this, void 0, void 0, function () {
3331
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3332
- var _a, _b, _c;
3333
- return __generator(this, function (_d) {
3334
- switch (_d.label) {
3335
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listNamedRoles(principalId, options)];
3336
- case 1:
3337
- localVarAxiosArgs = _d.sent();
3338
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3339
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NamedRolesApi.listNamedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3340
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3341
- }
3342
- });
3343
- });
3344
- },
3345
3277
  /**
3346
3278
  * 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.
3347
3279
  * @summary Remove a named role
@@ -3385,16 +3317,6 @@ var NamedRolesApiFactory = function (configuration, basePath, axios) {
3385
3317
  applyNamedRole: function (applyNamedRoleRequestBody, options) {
3386
3318
  return localVarFp.applyNamedRole(applyNamedRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
3387
3319
  },
3388
- /**
3389
- * 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.
3390
- * @summary List named roles for a user
3391
- * @param {string} principalId
3392
- * @param {*} [options] Override http request option.
3393
- * @throws {RequiredError}
3394
- */
3395
- listNamedRoles: function (principalId, options) {
3396
- return localVarFp.listNamedRoles(principalId, options).then(function (request) { return request(axios, basePath); });
3397
- },
3398
3320
  /**
3399
3321
  * 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.
3400
3322
  * @summary Remove a named role
@@ -3431,18 +3353,6 @@ var NamedRolesApi = /** @class */ (function (_super) {
3431
3353
  var _this = this;
3432
3354
  return (0, exports.NamedRolesApiFp)(this.configuration).applyNamedRole(applyNamedRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3433
3355
  };
3434
- /**
3435
- * 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.
3436
- * @summary List named roles for a user
3437
- * @param {string} principalId
3438
- * @param {*} [options] Override http request option.
3439
- * @throws {RequiredError}
3440
- * @memberof NamedRolesApi
3441
- */
3442
- NamedRolesApi.prototype.listNamedRoles = function (principalId, options) {
3443
- var _this = this;
3444
- return (0, exports.NamedRolesApiFp)(this.configuration).listNamedRoles(principalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3445
- };
3446
3356
  /**
3447
3357
  * 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.
3448
3358
  * @summary Remove a named role
@@ -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.0.475-rc.1789049557"
39
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.476-rc.1789049776"
40
40
  }
41
41
  };
42
42
  this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipdish/authorization",
3
- "version": "0.0.475-rc.1789049557",
3
+ "version": "0.0.476-rc.1789049776",
4
4
  "description": "OpenAPI client for @flipdish/authorization",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {