@flipdish/authorization 0.2.49 → 0.2.50

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
@@ -1466,6 +1466,19 @@ export const JoinAccessErrorResponseCodeEnum = {
1466
1466
 
1467
1467
  export type JoinAccessErrorResponseCodeEnum = typeof JoinAccessErrorResponseCodeEnum[keyof typeof JoinAccessErrorResponseCodeEnum];
1468
1468
 
1469
+ /**
1470
+ *
1471
+ * @export
1472
+ * @interface ListGlobalApiKeysResponse
1473
+ */
1474
+ export interface ListGlobalApiKeysResponse {
1475
+ /**
1476
+ *
1477
+ * @type {Array<GlobalApiKeyStateResponse>}
1478
+ * @memberof ListGlobalApiKeysResponse
1479
+ */
1480
+ 'items': Array<GlobalApiKeyStateResponse>;
1481
+ }
1469
1482
  /**
1470
1483
  *
1471
1484
  * @export
@@ -1660,6 +1673,7 @@ export const Permissions = {
1660
1673
  DeleteDeliveryZones: 'DeleteDeliveryZones',
1661
1674
  ViewMenu: 'ViewMenu',
1662
1675
  CreateGlobalApiKey: 'CreateGlobalAPIKey',
1676
+ ListGlobalApiKeys: 'ListGlobalAPIKeys',
1663
1677
  CreateMenu: 'CreateMenu',
1664
1678
  UpdateMenu: 'UpdateMenu',
1665
1679
  DeleteMenu: 'DeleteMenu',
@@ -2452,6 +2466,44 @@ export const APIKeysApiAxiosParamCreator = function (configuration?: Configurati
2452
2466
 
2453
2467
 
2454
2468
 
2469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2471
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2472
+
2473
+ return {
2474
+ url: toPathString(localVarUrlObj),
2475
+ options: localVarRequestOptions,
2476
+ };
2477
+ },
2478
+ /**
2479
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
2480
+ * @summary List global API keys
2481
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
2482
+ * @param {*} [options] Override http request option.
2483
+ * @throws {RequiredError}
2484
+ */
2485
+ listGlobalApiKeys: async (status?: ListGlobalApiKeysStatusEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2486
+ const localVarPath = `/apiKeys`;
2487
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2488
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2489
+ let baseOptions;
2490
+ if (configuration) {
2491
+ baseOptions = configuration.baseOptions;
2492
+ }
2493
+
2494
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2495
+ const localVarHeaderParameter = {} as any;
2496
+ const localVarQueryParameter = {} as any;
2497
+
2498
+ // authentication ApiKeyAuth required
2499
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2500
+
2501
+ if (status !== undefined) {
2502
+ localVarQueryParameter['status'] = status;
2503
+ }
2504
+
2505
+
2506
+
2455
2507
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2456
2508
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2457
2509
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2574,6 +2626,19 @@ export const APIKeysApiFp = function(configuration?: Configuration) {
2574
2626
  const localVarOperationServerBasePath = operationServerMap['APIKeysApi.getGlobalApiKeyMe']?.[localVarOperationServerIndex]?.url;
2575
2627
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2576
2628
  },
2629
+ /**
2630
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
2631
+ * @summary List global API keys
2632
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
2633
+ * @param {*} [options] Override http request option.
2634
+ * @throws {RequiredError}
2635
+ */
2636
+ async listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListGlobalApiKeysResponse>> {
2637
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listGlobalApiKeys(status, options);
2638
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2639
+ const localVarOperationServerBasePath = operationServerMap['APIKeysApi.listGlobalApiKeys']?.[localVarOperationServerIndex]?.url;
2640
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2641
+ },
2577
2642
  /**
2578
2643
  * Delete the STATIC AVP policy and mark the API key revoked.
2579
2644
  * @summary Revoke global API key
@@ -2630,6 +2695,16 @@ export const APIKeysApiFactory = function (configuration?: Configuration, basePa
2630
2695
  getGlobalApiKeyMe(options?: RawAxiosRequestConfig): AxiosPromise<GlobalApiKeyStateResponse> {
2631
2696
  return localVarFp.getGlobalApiKeyMe(options).then((request) => request(axios, basePath));
2632
2697
  },
2698
+ /**
2699
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
2700
+ * @summary List global API keys
2701
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
2702
+ * @param {*} [options] Override http request option.
2703
+ * @throws {RequiredError}
2704
+ */
2705
+ listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListGlobalApiKeysResponse> {
2706
+ return localVarFp.listGlobalApiKeys(status, options).then((request) => request(axios, basePath));
2707
+ },
2633
2708
  /**
2634
2709
  * Delete the STATIC AVP policy and mark the API key revoked.
2635
2710
  * @summary Revoke global API key
@@ -2684,6 +2759,18 @@ export class APIKeysApi extends BaseAPI {
2684
2759
  return APIKeysApiFp(this.configuration).getGlobalApiKeyMe(options).then((request) => request(this.axios, this.basePath));
2685
2760
  }
2686
2761
 
2762
+ /**
2763
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
2764
+ * @summary List global API keys
2765
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
2766
+ * @param {*} [options] Override http request option.
2767
+ * @throws {RequiredError}
2768
+ * @memberof APIKeysApi
2769
+ */
2770
+ public listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig) {
2771
+ return APIKeysApiFp(this.configuration).listGlobalApiKeys(status, options).then((request) => request(this.axios, this.basePath));
2772
+ }
2773
+
2687
2774
  /**
2688
2775
  * Delete the STATIC AVP policy and mark the API key revoked.
2689
2776
  * @summary Revoke global API key
@@ -2710,6 +2797,14 @@ export class APIKeysApi extends BaseAPI {
2710
2797
  }
2711
2798
  }
2712
2799
 
2800
+ /**
2801
+ * @export
2802
+ */
2803
+ export const ListGlobalApiKeysStatusEnum = {
2804
+ Active: 'active',
2805
+ Revoked: 'revoked'
2806
+ } as const;
2807
+ export type ListGlobalApiKeysStatusEnum = typeof ListGlobalApiKeysStatusEnum[keyof typeof ListGlobalApiKeysStatusEnum];
2713
2808
 
2714
2809
 
2715
2810
  /**
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.2.49"
103
+ "user-agent": "Flipdish authorization typescript SDK / 0.2.50"
104
104
  }
105
105
  };
106
106
 
package/dist/api.d.ts CHANGED
@@ -1402,6 +1402,19 @@ export declare const JoinAccessErrorResponseCodeEnum: {
1402
1402
  readonly AlreadyMember: "ALREADY_MEMBER";
1403
1403
  };
1404
1404
  export type JoinAccessErrorResponseCodeEnum = typeof JoinAccessErrorResponseCodeEnum[keyof typeof JoinAccessErrorResponseCodeEnum];
1405
+ /**
1406
+ *
1407
+ * @export
1408
+ * @interface ListGlobalApiKeysResponse
1409
+ */
1410
+ export interface ListGlobalApiKeysResponse {
1411
+ /**
1412
+ *
1413
+ * @type {Array<GlobalApiKeyStateResponse>}
1414
+ * @memberof ListGlobalApiKeysResponse
1415
+ */
1416
+ 'items': Array<GlobalApiKeyStateResponse>;
1417
+ }
1405
1418
  /**
1406
1419
  *
1407
1420
  * @export
@@ -1592,6 +1605,7 @@ export declare const Permissions: {
1592
1605
  readonly DeleteDeliveryZones: "DeleteDeliveryZones";
1593
1606
  readonly ViewMenu: "ViewMenu";
1594
1607
  readonly CreateGlobalApiKey: "CreateGlobalAPIKey";
1608
+ readonly ListGlobalApiKeys: "ListGlobalAPIKeys";
1595
1609
  readonly CreateMenu: "CreateMenu";
1596
1610
  readonly UpdateMenu: "UpdateMenu";
1597
1611
  readonly DeleteMenu: "DeleteMenu";
@@ -2311,6 +2325,14 @@ export declare const APIKeysApiAxiosParamCreator: (configuration?: Configuration
2311
2325
  * @throws {RequiredError}
2312
2326
  */
2313
2327
  getGlobalApiKeyMe: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2328
+ /**
2329
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
2330
+ * @summary List global API keys
2331
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
2332
+ * @param {*} [options] Override http request option.
2333
+ * @throws {RequiredError}
2334
+ */
2335
+ listGlobalApiKeys: (status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2314
2336
  /**
2315
2337
  * Delete the STATIC AVP policy and mark the API key revoked.
2316
2338
  * @summary Revoke global API key
@@ -2349,6 +2371,14 @@ export declare const APIKeysApiFp: (configuration?: Configuration) => {
2349
2371
  * @throws {RequiredError}
2350
2372
  */
2351
2373
  getGlobalApiKeyMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GlobalApiKeyStateResponse>>;
2374
+ /**
2375
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
2376
+ * @summary List global API keys
2377
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
2378
+ * @param {*} [options] Override http request option.
2379
+ * @throws {RequiredError}
2380
+ */
2381
+ listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListGlobalApiKeysResponse>>;
2352
2382
  /**
2353
2383
  * Delete the STATIC AVP policy and mark the API key revoked.
2354
2384
  * @summary Revoke global API key
@@ -2387,6 +2417,14 @@ export declare const APIKeysApiFactory: (configuration?: Configuration, basePath
2387
2417
  * @throws {RequiredError}
2388
2418
  */
2389
2419
  getGlobalApiKeyMe(options?: RawAxiosRequestConfig): AxiosPromise<GlobalApiKeyStateResponse>;
2420
+ /**
2421
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
2422
+ * @summary List global API keys
2423
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
2424
+ * @param {*} [options] Override http request option.
2425
+ * @throws {RequiredError}
2426
+ */
2427
+ listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListGlobalApiKeysResponse>;
2390
2428
  /**
2391
2429
  * Delete the STATIC AVP policy and mark the API key revoked.
2392
2430
  * @summary Revoke global API key
@@ -2429,6 +2467,15 @@ export declare class APIKeysApi extends BaseAPI {
2429
2467
  * @memberof APIKeysApi
2430
2468
  */
2431
2469
  getGlobalApiKeyMe(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GlobalApiKeyStateResponse, any, {}, any>>;
2470
+ /**
2471
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
2472
+ * @summary List global API keys
2473
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
2474
+ * @param {*} [options] Override http request option.
2475
+ * @throws {RequiredError}
2476
+ * @memberof APIKeysApi
2477
+ */
2478
+ listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListGlobalApiKeysResponse, any, {}, any>>;
2432
2479
  /**
2433
2480
  * Delete the STATIC AVP policy and mark the API key revoked.
2434
2481
  * @summary Revoke global API key
@@ -2449,6 +2496,14 @@ export declare class APIKeysApi extends BaseAPI {
2449
2496
  */
2450
2497
  updateGlobalApiKey(apiKeyId: string, updateGlobalApiKeyRequest?: UpdateGlobalApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GlobalApiKeyStateResponseUpdated, any, {}, any>>;
2451
2498
  }
2499
+ /**
2500
+ * @export
2501
+ */
2502
+ export declare const ListGlobalApiKeysStatusEnum: {
2503
+ readonly Active: "active";
2504
+ readonly Revoked: "revoked";
2505
+ };
2506
+ export type ListGlobalApiKeysStatusEnum = typeof ListGlobalApiKeysStatusEnum[keyof typeof ListGlobalApiKeysStatusEnum];
2452
2507
  /**
2453
2508
  * AuthenticationApi - axios parameter creator
2454
2509
  * @export
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.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 = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.APIKeysApi = exports.APIKeysApiFactory = exports.APIKeysApiFp = exports.APIKeysApiAxiosParamCreator = exports.RoleNames = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.RemoveTeammateRequestBodyPrincipalTypeEnum = exports.RemoveTeammateRequestBodyActorTypeEnum = exports.PrincipalInOrgTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.JoinAccessErrorResponseCodeEnum = exports.IsInRoleRequestCheckModeEnum = exports.InviteTokenResponseRoleNameEnum = exports.GlobalApiKeyStateResponseUpdatedStatusEnum = exports.GlobalApiKeyStateResponseRevokedStatusEnum = exports.GlobalApiKeyStateResponseStatusEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetJoinAccessRequest200ResponseRoleNameEnum = exports.GetJoinAccessRequest200ResponseStateEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AccessRequestResponseRoleNameEnum = exports.AccessRequestResponseStateEnum = void 0;
88
- 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.JoinAccessApi = exports.JoinAccessApiFactory = exports.JoinAccessApiFp = void 0;
87
+ 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.ListGlobalApiKeysStatusEnum = exports.APIKeysApi = exports.APIKeysApiFactory = exports.APIKeysApiFp = exports.APIKeysApiAxiosParamCreator = exports.RoleNames = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.RemoveTeammateRequestBodyPrincipalTypeEnum = exports.RemoveTeammateRequestBodyActorTypeEnum = exports.PrincipalInOrgTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.JoinAccessErrorResponseCodeEnum = exports.IsInRoleRequestCheckModeEnum = exports.InviteTokenResponseRoleNameEnum = exports.GlobalApiKeyStateResponseUpdatedStatusEnum = exports.GlobalApiKeyStateResponseRevokedStatusEnum = exports.GlobalApiKeyStateResponseStatusEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetJoinAccessRequest200ResponseRoleNameEnum = exports.GetJoinAccessRequest200ResponseStateEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AccessRequestResponseRoleNameEnum = exports.AccessRequestResponseStateEnum = void 0;
88
+ 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.JoinAccessApi = exports.JoinAccessApiFactory = exports.JoinAccessApiFp = exports.JoinAccessApiAxiosParamCreator = void 0;
89
89
  var axios_1 = require("axios");
90
90
  // Some imports not used depending on template conditions
91
91
  // @ts-ignore
@@ -277,6 +277,7 @@ exports.Permissions = {
277
277
  DeleteDeliveryZones: 'DeleteDeliveryZones',
278
278
  ViewMenu: 'ViewMenu',
279
279
  CreateGlobalApiKey: 'CreateGlobalAPIKey',
280
+ ListGlobalApiKeys: 'ListGlobalAPIKeys',
280
281
  CreateMenu: 'CreateMenu',
281
282
  UpdateMenu: 'UpdateMenu',
282
283
  DeleteMenu: 'DeleteMenu',
@@ -593,6 +594,51 @@ var APIKeysApiAxiosParamCreator = function (configuration) {
593
594
  });
594
595
  });
595
596
  },
597
+ /**
598
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
599
+ * @summary List global API keys
600
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ listGlobalApiKeys: function (status_1) {
605
+ var args_1 = [];
606
+ for (var _i = 1; _i < arguments.length; _i++) {
607
+ args_1[_i - 1] = arguments[_i];
608
+ }
609
+ return __awaiter(_this, __spreadArray([status_1], args_1, true), void 0, function (status, options) {
610
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
611
+ if (options === void 0) { options = {}; }
612
+ return __generator(this, function (_a) {
613
+ switch (_a.label) {
614
+ case 0:
615
+ localVarPath = "/apiKeys";
616
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
617
+ if (configuration) {
618
+ baseOptions = configuration.baseOptions;
619
+ }
620
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
621
+ localVarHeaderParameter = {};
622
+ localVarQueryParameter = {};
623
+ // authentication ApiKeyAuth required
624
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
625
+ case 1:
626
+ // authentication ApiKeyAuth required
627
+ _a.sent();
628
+ if (status !== undefined) {
629
+ localVarQueryParameter['status'] = status;
630
+ }
631
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
632
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
633
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
634
+ return [2 /*return*/, {
635
+ url: (0, common_1.toPathString)(localVarUrlObj),
636
+ options: localVarRequestOptions,
637
+ }];
638
+ }
639
+ });
640
+ });
641
+ },
596
642
  /**
597
643
  * Delete the STATIC AVP policy and mark the API key revoked.
598
644
  * @summary Revoke global API key
@@ -741,6 +787,29 @@ var APIKeysApiFp = function (configuration) {
741
787
  });
742
788
  });
743
789
  },
790
+ /**
791
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
792
+ * @summary List global API keys
793
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
794
+ * @param {*} [options] Override http request option.
795
+ * @throws {RequiredError}
796
+ */
797
+ listGlobalApiKeys: function (status, options) {
798
+ return __awaiter(this, void 0, void 0, function () {
799
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
800
+ var _a, _b, _c;
801
+ return __generator(this, function (_d) {
802
+ switch (_d.label) {
803
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listGlobalApiKeys(status, options)];
804
+ case 1:
805
+ localVarAxiosArgs = _d.sent();
806
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
807
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['APIKeysApi.listGlobalApiKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
808
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
809
+ }
810
+ });
811
+ });
812
+ },
744
813
  /**
745
814
  * Delete the STATIC AVP policy and mark the API key revoked.
746
815
  * @summary Revoke global API key
@@ -817,6 +886,16 @@ var APIKeysApiFactory = function (configuration, basePath, axios) {
817
886
  getGlobalApiKeyMe: function (options) {
818
887
  return localVarFp.getGlobalApiKeyMe(options).then(function (request) { return request(axios, basePath); });
819
888
  },
889
+ /**
890
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
891
+ * @summary List global API keys
892
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ */
896
+ listGlobalApiKeys: function (status, options) {
897
+ return localVarFp.listGlobalApiKeys(status, options).then(function (request) { return request(axios, basePath); });
898
+ },
820
899
  /**
821
900
  * Delete the STATIC AVP policy and mark the API key revoked.
822
901
  * @summary Revoke global API key
@@ -875,6 +954,18 @@ var APIKeysApi = /** @class */ (function (_super) {
875
954
  var _this = this;
876
955
  return (0, exports.APIKeysApiFp)(this.configuration).getGlobalApiKeyMe(options).then(function (request) { return request(_this.axios, _this.basePath); });
877
956
  };
957
+ /**
958
+ * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys.
959
+ * @summary List global API keys
960
+ * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status
961
+ * @param {*} [options] Override http request option.
962
+ * @throws {RequiredError}
963
+ * @memberof APIKeysApi
964
+ */
965
+ APIKeysApi.prototype.listGlobalApiKeys = function (status, options) {
966
+ var _this = this;
967
+ return (0, exports.APIKeysApiFp)(this.configuration).listGlobalApiKeys(status, options).then(function (request) { return request(_this.axios, _this.basePath); });
968
+ };
878
969
  /**
879
970
  * Delete the STATIC AVP policy and mark the API key revoked.
880
971
  * @summary Revoke global API key
@@ -903,6 +994,13 @@ var APIKeysApi = /** @class */ (function (_super) {
903
994
  return APIKeysApi;
904
995
  }(base_1.BaseAPI));
905
996
  exports.APIKeysApi = APIKeysApi;
997
+ /**
998
+ * @export
999
+ */
1000
+ exports.ListGlobalApiKeysStatusEnum = {
1001
+ Active: 'active',
1002
+ Revoked: 'revoked'
1003
+ };
906
1004
  /**
907
1005
  * AuthenticationApi - axios parameter creator
908
1006
  * @export
@@ -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.49"
39
+ "user-agent": "Flipdish authorization typescript SDK / 0.2.50"
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.2.49",
3
+ "version": "0.2.50",
4
4
  "description": "OpenAPI client for @flipdish/authorization",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {