@flipdish/authorization 0.0.624-rc.1793123321 → 0.0.626-rc.1793283605

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
@@ -2046,6 +2046,25 @@ export interface ListJoinRequestsResponse {
2046
2046
  */
2047
2047
  'items': Array<GetJoinAccessRequest200Response>;
2048
2048
  }
2049
+ /**
2050
+ * The caller\'s timed access grants across every org
2051
+ * @export
2052
+ * @interface ListMyTimedAccessGrantsAcrossOrgsResponse
2053
+ */
2054
+ export interface ListMyTimedAccessGrantsAcrossOrgsResponse {
2055
+ /**
2056
+ *
2057
+ * @type {Array<TimedAccessGrant>}
2058
+ * @memberof ListMyTimedAccessGrantsAcrossOrgsResponse
2059
+ */
2060
+ 'grants': Array<TimedAccessGrant>;
2061
+ /**
2062
+ * Pass as the cursor query param to fetch the next page. Only present for expired grants with more pages
2063
+ * @type {string}
2064
+ * @memberof ListMyTimedAccessGrantsAcrossOrgsResponse
2065
+ */
2066
+ 'nextCursor'?: string;
2067
+ }
2049
2068
  /**
2050
2069
  * The named roles held by a user
2051
2070
  * @export
@@ -6847,6 +6866,54 @@ export const TimedAccessApiAxiosParamCreator = function (configuration?: Configu
6847
6866
 
6848
6867
 
6849
6868
 
6869
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6870
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6871
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6872
+
6873
+ return {
6874
+ url: toPathString(localVarUrlObj),
6875
+ options: localVarRequestOptions,
6876
+ };
6877
+ },
6878
+ /**
6879
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
6880
+ * @summary List the caller\'s timed access passes across every org
6881
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
6882
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
6883
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
6884
+ * @param {*} [options] Override http request option.
6885
+ * @throws {RequiredError}
6886
+ */
6887
+ listMyTimedAccessGrantsAcrossOrgs: async (status?: ListMyTimedAccessGrantsAcrossOrgsStatusEnum, limit?: number, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6888
+ const localVarPath = `/timedAccess/grants`;
6889
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6890
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6891
+ let baseOptions;
6892
+ if (configuration) {
6893
+ baseOptions = configuration.baseOptions;
6894
+ }
6895
+
6896
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6897
+ const localVarHeaderParameter = {} as any;
6898
+ const localVarQueryParameter = {} as any;
6899
+
6900
+ // authentication ApiKeyAuth required
6901
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6902
+
6903
+ if (status !== undefined) {
6904
+ localVarQueryParameter['status'] = status;
6905
+ }
6906
+
6907
+ if (limit !== undefined) {
6908
+ localVarQueryParameter['limit'] = limit;
6909
+ }
6910
+
6911
+ if (cursor !== undefined) {
6912
+ localVarQueryParameter['cursor'] = cursor;
6913
+ }
6914
+
6915
+
6916
+
6850
6917
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6851
6918
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6852
6919
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6909,6 +6976,21 @@ export const TimedAccessApiFp = function(configuration?: Configuration) {
6909
6976
  const localVarOperationServerBasePath = operationServerMap['TimedAccessApi.listMyTimedAccessGrants']?.[localVarOperationServerIndex]?.url;
6910
6977
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6911
6978
  },
6979
+ /**
6980
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
6981
+ * @summary List the caller\'s timed access passes across every org
6982
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
6983
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
6984
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
6985
+ * @param {*} [options] Override http request option.
6986
+ * @throws {RequiredError}
6987
+ */
6988
+ async listMyTimedAccessGrantsAcrossOrgs(status?: ListMyTimedAccessGrantsAcrossOrgsStatusEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListMyTimedAccessGrantsAcrossOrgsResponse>> {
6989
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMyTimedAccessGrantsAcrossOrgs(status, limit, cursor, options);
6990
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6991
+ const localVarOperationServerBasePath = operationServerMap['TimedAccessApi.listMyTimedAccessGrantsAcrossOrgs']?.[localVarOperationServerIndex]?.url;
6992
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6993
+ },
6912
6994
  }
6913
6995
  };
6914
6996
 
@@ -6953,6 +7035,18 @@ export const TimedAccessApiFactory = function (configuration?: Configuration, ba
6953
7035
  listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListTimedAccessGrantsResponse> {
6954
7036
  return localVarFp.listMyTimedAccessGrants(orgId, status, options).then((request) => request(axios, basePath));
6955
7037
  },
7038
+ /**
7039
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
7040
+ * @summary List the caller\'s timed access passes across every org
7041
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
7042
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
7043
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
7044
+ * @param {*} [options] Override http request option.
7045
+ * @throws {RequiredError}
7046
+ */
7047
+ listMyTimedAccessGrantsAcrossOrgs(status?: ListMyTimedAccessGrantsAcrossOrgsStatusEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListMyTimedAccessGrantsAcrossOrgsResponse> {
7048
+ return localVarFp.listMyTimedAccessGrantsAcrossOrgs(status, limit, cursor, options).then((request) => request(axios, basePath));
7049
+ },
6956
7050
  };
6957
7051
  };
6958
7052
 
@@ -7002,6 +7096,20 @@ export class TimedAccessApi extends BaseAPI {
7002
7096
  public listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig) {
7003
7097
  return TimedAccessApiFp(this.configuration).listMyTimedAccessGrants(orgId, status, options).then((request) => request(this.axios, this.basePath));
7004
7098
  }
7099
+
7100
+ /**
7101
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
7102
+ * @summary List the caller\'s timed access passes across every org
7103
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
7104
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
7105
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
7106
+ * @param {*} [options] Override http request option.
7107
+ * @throws {RequiredError}
7108
+ * @memberof TimedAccessApi
7109
+ */
7110
+ public listMyTimedAccessGrantsAcrossOrgs(status?: ListMyTimedAccessGrantsAcrossOrgsStatusEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) {
7111
+ return TimedAccessApiFp(this.configuration).listMyTimedAccessGrantsAcrossOrgs(status, limit, cursor, options).then((request) => request(this.axios, this.basePath));
7112
+ }
7005
7113
  }
7006
7114
 
7007
7115
  /**
@@ -7011,6 +7119,14 @@ export const ListMyTimedAccessGrantsStatusEnum = {
7011
7119
  Active: 'active'
7012
7120
  } as const;
7013
7121
  export type ListMyTimedAccessGrantsStatusEnum = typeof ListMyTimedAccessGrantsStatusEnum[keyof typeof ListMyTimedAccessGrantsStatusEnum];
7122
+ /**
7123
+ * @export
7124
+ */
7125
+ export const ListMyTimedAccessGrantsAcrossOrgsStatusEnum = {
7126
+ Active: 'active',
7127
+ Expired: 'expired'
7128
+ } as const;
7129
+ export type ListMyTimedAccessGrantsAcrossOrgsStatusEnum = typeof ListMyTimedAccessGrantsAcrossOrgsStatusEnum[keyof typeof ListMyTimedAccessGrantsAcrossOrgsStatusEnum];
7014
7130
 
7015
7131
 
7016
7132
  /**
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.624-rc.1793123321"
103
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.626-rc.1793283605"
104
104
  }
105
105
  };
106
106
 
package/dist/api.d.ts CHANGED
@@ -1960,6 +1960,25 @@ export interface ListJoinRequestsResponse {
1960
1960
  */
1961
1961
  'items': Array<GetJoinAccessRequest200Response>;
1962
1962
  }
1963
+ /**
1964
+ * The caller\'s timed access grants across every org
1965
+ * @export
1966
+ * @interface ListMyTimedAccessGrantsAcrossOrgsResponse
1967
+ */
1968
+ export interface ListMyTimedAccessGrantsAcrossOrgsResponse {
1969
+ /**
1970
+ *
1971
+ * @type {Array<TimedAccessGrant>}
1972
+ * @memberof ListMyTimedAccessGrantsAcrossOrgsResponse
1973
+ */
1974
+ 'grants': Array<TimedAccessGrant>;
1975
+ /**
1976
+ * Pass as the cursor query param to fetch the next page. Only present for expired grants with more pages
1977
+ * @type {string}
1978
+ * @memberof ListMyTimedAccessGrantsAcrossOrgsResponse
1979
+ */
1980
+ 'nextCursor'?: string;
1981
+ }
1963
1982
  /**
1964
1983
  * The named roles held by a user
1965
1984
  * @export
@@ -4996,6 +5015,16 @@ export declare const TimedAccessApiAxiosParamCreator: (configuration?: Configura
4996
5015
  * @throws {RequiredError}
4997
5016
  */
4998
5017
  listMyTimedAccessGrants: (orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5018
+ /**
5019
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
5020
+ * @summary List the caller\'s timed access passes across every org
5021
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
5022
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
5023
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
5024
+ * @param {*} [options] Override http request option.
5025
+ * @throws {RequiredError}
5026
+ */
5027
+ listMyTimedAccessGrantsAcrossOrgs: (status?: ListMyTimedAccessGrantsAcrossOrgsStatusEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4999
5028
  };
5000
5029
  /**
5001
5030
  * TimedAccessApi - functional programming interface
@@ -5030,6 +5059,16 @@ export declare const TimedAccessApiFp: (configuration?: Configuration) => {
5030
5059
  * @throws {RequiredError}
5031
5060
  */
5032
5061
  listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTimedAccessGrantsResponse>>;
5062
+ /**
5063
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
5064
+ * @summary List the caller\'s timed access passes across every org
5065
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
5066
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
5067
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
5068
+ * @param {*} [options] Override http request option.
5069
+ * @throws {RequiredError}
5070
+ */
5071
+ listMyTimedAccessGrantsAcrossOrgs(status?: ListMyTimedAccessGrantsAcrossOrgsStatusEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListMyTimedAccessGrantsAcrossOrgsResponse>>;
5033
5072
  };
5034
5073
  /**
5035
5074
  * TimedAccessApi - factory interface
@@ -5064,6 +5103,16 @@ export declare const TimedAccessApiFactory: (configuration?: Configuration, base
5064
5103
  * @throws {RequiredError}
5065
5104
  */
5066
5105
  listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListTimedAccessGrantsResponse>;
5106
+ /**
5107
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
5108
+ * @summary List the caller\'s timed access passes across every org
5109
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
5110
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
5111
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
5112
+ * @param {*} [options] Override http request option.
5113
+ * @throws {RequiredError}
5114
+ */
5115
+ listMyTimedAccessGrantsAcrossOrgs(status?: ListMyTimedAccessGrantsAcrossOrgsStatusEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListMyTimedAccessGrantsAcrossOrgsResponse>;
5067
5116
  };
5068
5117
  /**
5069
5118
  * TimedAccessApi - object-oriented interface
@@ -5103,6 +5152,17 @@ export declare class TimedAccessApi extends BaseAPI {
5103
5152
  * @memberof TimedAccessApi
5104
5153
  */
5105
5154
  listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTimedAccessGrantsResponse, any, {}, any>>;
5155
+ /**
5156
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
5157
+ * @summary List the caller\'s timed access passes across every org
5158
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
5159
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
5160
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
5161
+ * @param {*} [options] Override http request option.
5162
+ * @throws {RequiredError}
5163
+ * @memberof TimedAccessApi
5164
+ */
5165
+ listMyTimedAccessGrantsAcrossOrgs(status?: ListMyTimedAccessGrantsAcrossOrgsStatusEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListMyTimedAccessGrantsAcrossOrgsResponse, any, {}, any>>;
5106
5166
  }
5107
5167
  /**
5108
5168
  * @export
@@ -5111,6 +5171,14 @@ export declare const ListMyTimedAccessGrantsStatusEnum: {
5111
5171
  readonly Active: "active";
5112
5172
  };
5113
5173
  export type ListMyTimedAccessGrantsStatusEnum = typeof ListMyTimedAccessGrantsStatusEnum[keyof typeof ListMyTimedAccessGrantsStatusEnum];
5174
+ /**
5175
+ * @export
5176
+ */
5177
+ export declare const ListMyTimedAccessGrantsAcrossOrgsStatusEnum: {
5178
+ readonly Active: "active";
5179
+ readonly Expired: "expired";
5180
+ };
5181
+ export type ListMyTimedAccessGrantsAcrossOrgsStatusEnum = typeof ListMyTimedAccessGrantsAcrossOrgsStatusEnum[keyof typeof ListMyTimedAccessGrantsAcrossOrgsStatusEnum];
5114
5182
  /**
5115
5183
  * UserManagementApi - axios parameter creator
5116
5184
  * @export
package/dist/api.js CHANGED
@@ -85,7 +85,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
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;
88
+ exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.ListMyTimedAccessGrantsAcrossOrgsStatusEnum = 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
@@ -4625,6 +4625,59 @@ var TimedAccessApiAxiosParamCreator = function (configuration) {
4625
4625
  });
4626
4626
  });
4627
4627
  },
4628
+ /**
4629
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
4630
+ * @summary List the caller\'s timed access passes across every org
4631
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
4632
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
4633
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
4634
+ * @param {*} [options] Override http request option.
4635
+ * @throws {RequiredError}
4636
+ */
4637
+ listMyTimedAccessGrantsAcrossOrgs: function (status_1, limit_1, cursor_1) {
4638
+ var args_1 = [];
4639
+ for (var _i = 3; _i < arguments.length; _i++) {
4640
+ args_1[_i - 3] = arguments[_i];
4641
+ }
4642
+ return __awaiter(_this, __spreadArray([status_1, limit_1, cursor_1], args_1, true), void 0, function (status, limit, cursor, options) {
4643
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4644
+ if (options === void 0) { options = {}; }
4645
+ return __generator(this, function (_a) {
4646
+ switch (_a.label) {
4647
+ case 0:
4648
+ localVarPath = "/timedAccess/grants";
4649
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4650
+ if (configuration) {
4651
+ baseOptions = configuration.baseOptions;
4652
+ }
4653
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4654
+ localVarHeaderParameter = {};
4655
+ localVarQueryParameter = {};
4656
+ // authentication ApiKeyAuth required
4657
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
4658
+ case 1:
4659
+ // authentication ApiKeyAuth required
4660
+ _a.sent();
4661
+ if (status !== undefined) {
4662
+ localVarQueryParameter['status'] = status;
4663
+ }
4664
+ if (limit !== undefined) {
4665
+ localVarQueryParameter['limit'] = limit;
4666
+ }
4667
+ if (cursor !== undefined) {
4668
+ localVarQueryParameter['cursor'] = cursor;
4669
+ }
4670
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4671
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4672
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4673
+ return [2 /*return*/, {
4674
+ url: (0, common_1.toPathString)(localVarUrlObj),
4675
+ options: localVarRequestOptions,
4676
+ }];
4677
+ }
4678
+ });
4679
+ });
4680
+ },
4628
4681
  };
4629
4682
  };
4630
4683
  exports.TimedAccessApiAxiosParamCreator = TimedAccessApiAxiosParamCreator;
@@ -4708,6 +4761,31 @@ var TimedAccessApiFp = function (configuration) {
4708
4761
  });
4709
4762
  });
4710
4763
  },
4764
+ /**
4765
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
4766
+ * @summary List the caller\'s timed access passes across every org
4767
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
4768
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
4769
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
4770
+ * @param {*} [options] Override http request option.
4771
+ * @throws {RequiredError}
4772
+ */
4773
+ listMyTimedAccessGrantsAcrossOrgs: function (status, limit, cursor, options) {
4774
+ return __awaiter(this, void 0, void 0, function () {
4775
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
4776
+ var _a, _b, _c;
4777
+ return __generator(this, function (_d) {
4778
+ switch (_d.label) {
4779
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listMyTimedAccessGrantsAcrossOrgs(status, limit, cursor, options)];
4780
+ case 1:
4781
+ localVarAxiosArgs = _d.sent();
4782
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4783
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TimedAccessApi.listMyTimedAccessGrantsAcrossOrgs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4784
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
4785
+ }
4786
+ });
4787
+ });
4788
+ },
4711
4789
  };
4712
4790
  };
4713
4791
  exports.TimedAccessApiFp = TimedAccessApiFp;
@@ -4752,6 +4830,18 @@ var TimedAccessApiFactory = function (configuration, basePath, axios) {
4752
4830
  listMyTimedAccessGrants: function (orgId, status, options) {
4753
4831
  return localVarFp.listMyTimedAccessGrants(orgId, status, options).then(function (request) { return request(axios, basePath); });
4754
4832
  },
4833
+ /**
4834
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
4835
+ * @summary List the caller\'s timed access passes across every org
4836
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
4837
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
4838
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
4839
+ * @param {*} [options] Override http request option.
4840
+ * @throws {RequiredError}
4841
+ */
4842
+ listMyTimedAccessGrantsAcrossOrgs: function (status, limit, cursor, options) {
4843
+ return localVarFp.listMyTimedAccessGrantsAcrossOrgs(status, limit, cursor, options).then(function (request) { return request(axios, basePath); });
4844
+ },
4755
4845
  };
4756
4846
  };
4757
4847
  exports.TimedAccessApiFactory = TimedAccessApiFactory;
@@ -4806,6 +4896,20 @@ var TimedAccessApi = /** @class */ (function (_super) {
4806
4896
  var _this = this;
4807
4897
  return (0, exports.TimedAccessApiFp)(this.configuration).listMyTimedAccessGrants(orgId, status, options).then(function (request) { return request(_this.axios, _this.basePath); });
4808
4898
  };
4899
+ /**
4900
+ * Returns the authenticated caller\'s active passes across all orgs, or their expired passes (most recent first, paginated) when status=expired. Used to show which orgs the caller already has access to.
4901
+ * @summary List the caller\'s timed access passes across every org
4902
+ * @param {ListMyTimedAccessGrantsAcrossOrgsStatusEnum} [status] Which grants to return. Defaults to active. The caller comes from the auth context
4903
+ * @param {number} [limit] Page size for expired grants, defaults to a server-chosen value
4904
+ * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous expired page
4905
+ * @param {*} [options] Override http request option.
4906
+ * @throws {RequiredError}
4907
+ * @memberof TimedAccessApi
4908
+ */
4909
+ TimedAccessApi.prototype.listMyTimedAccessGrantsAcrossOrgs = function (status, limit, cursor, options) {
4910
+ var _this = this;
4911
+ return (0, exports.TimedAccessApiFp)(this.configuration).listMyTimedAccessGrantsAcrossOrgs(status, limit, cursor, options).then(function (request) { return request(_this.axios, _this.basePath); });
4912
+ };
4809
4913
  return TimedAccessApi;
4810
4914
  }(base_1.BaseAPI));
4811
4915
  exports.TimedAccessApi = TimedAccessApi;
@@ -4815,6 +4919,13 @@ exports.TimedAccessApi = TimedAccessApi;
4815
4919
  exports.ListMyTimedAccessGrantsStatusEnum = {
4816
4920
  Active: 'active'
4817
4921
  };
4922
+ /**
4923
+ * @export
4924
+ */
4925
+ exports.ListMyTimedAccessGrantsAcrossOrgsStatusEnum = {
4926
+ Active: 'active',
4927
+ Expired: 'expired'
4928
+ };
4818
4929
  /**
4819
4930
  * UserManagementApi - axios parameter creator
4820
4931
  * @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.0.624-rc.1793123321"
39
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.626-rc.1793283605"
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.624-rc.1793123321",
3
+ "version": "0.0.626-rc.1793283605",
4
4
  "description": "OpenAPI client for @flipdish/authorization",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {