/* tslint:disable */ /* eslint-disable */ /** * Authorization API * Authorization API * * The version of the OpenAPI document: 0.0.1 * Contact: support@flipdish.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; import type { RequestArgs } from './base'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * * @export * @interface AcceptJoinRequest */ export interface AcceptJoinRequest { /** * * @type {string} * @memberof AcceptJoinRequest */ 'roleName'?: AcceptJoinRequestRoleNameEnum; /** * * @type {Array} * @memberof AcceptJoinRequest */ 'propertyIds'?: Array; } export const AcceptJoinRequestRoleNameEnum = { Owner: 'Owner', PropertyOwner: 'PropertyOwner', ManagedOwner: 'ManagedOwner', Integrator: 'Integrator', PropertyManager: 'PropertyManager', FinanceManager: 'FinanceManager', StaffMember: 'StaffMember', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type AcceptJoinRequestRoleNameEnum = typeof AcceptJoinRequestRoleNameEnum[keyof typeof AcceptJoinRequestRoleNameEnum]; /** * * @export * @interface AccessBlockStateResponse */ export interface AccessBlockStateResponse { /** * * @type {AccessBlockStateResponseBlockedPrincipal} * @memberof AccessBlockStateResponse */ 'principal': AccessBlockStateResponseBlockedPrincipal; /** * * @type {string} * @memberof AccessBlockStateResponse */ 'reason'?: string; /** * * @type {string} * @memberof AccessBlockStateResponse */ 'blockedAt': string; /** * * @type {AccessBlockStateResponseBlockedBlockedBy} * @memberof AccessBlockStateResponse */ 'blockedBy': AccessBlockStateResponseBlockedBlockedBy; } /** * * @export * @interface AccessBlockStateResponseBlocked */ export interface AccessBlockStateResponseBlocked { /** * * @type {AccessBlockStateResponseBlockedPrincipal} * @memberof AccessBlockStateResponseBlocked */ 'principal': AccessBlockStateResponseBlockedPrincipal; /** * * @type {string} * @memberof AccessBlockStateResponseBlocked */ 'reason'?: string; /** * * @type {string} * @memberof AccessBlockStateResponseBlocked */ 'blockedAt': string; /** * * @type {AccessBlockStateResponseBlockedBlockedBy} * @memberof AccessBlockStateResponseBlocked */ 'blockedBy': AccessBlockStateResponseBlockedBlockedBy; } /** * * @export * @interface AccessBlockStateResponseBlockedBlockedBy */ export interface AccessBlockStateResponseBlockedBlockedBy { /** * * @type {string} * @memberof AccessBlockStateResponseBlockedBlockedBy */ 'principalId': string; /** * * @type {string} * @memberof AccessBlockStateResponseBlockedBlockedBy */ 'email': string; } /** * * @export * @interface AccessBlockStateResponseBlockedPrincipal */ export interface AccessBlockStateResponseBlockedPrincipal { /** * * @type {string} * @memberof AccessBlockStateResponseBlockedPrincipal */ 'type': AccessBlockStateResponseBlockedPrincipalTypeEnum; /** * * @type {string} * @memberof AccessBlockStateResponseBlockedPrincipal */ 'id': string; } export const AccessBlockStateResponseBlockedPrincipalTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type AccessBlockStateResponseBlockedPrincipalTypeEnum = typeof AccessBlockStateResponseBlockedPrincipalTypeEnum[keyof typeof AccessBlockStateResponseBlockedPrincipalTypeEnum]; /** * * @export * @interface AccessRequestResponse */ export interface AccessRequestResponse { /** * * @type {string} * @memberof AccessRequestResponse */ 'requestId': string; /** * * @type {string} * @memberof AccessRequestResponse */ 'state': AccessRequestResponseStateEnum; /** * * @type {string} * @memberof AccessRequestResponse */ 'requesterUserId': string; /** * * @type {string} * @memberof AccessRequestResponse */ 'requesterEmail': string; /** * * @type {string} * @memberof AccessRequestResponse */ 'requesterName'?: string; /** * * @type {string} * @memberof AccessRequestResponse */ 'orgId': string; /** * * @type {string} * @memberof AccessRequestResponse */ 'orgName': string; /** * * @type {Array} * @memberof AccessRequestResponse */ 'propertyIds': Array; /** * * @type {Array} * @memberof AccessRequestResponse */ 'brandIds': Array; /** * * @type {Array} * @memberof AccessRequestResponse */ 'salesChannelIds': Array; /** * * @type {string} * @memberof AccessRequestResponse */ 'roleName': AccessRequestResponseRoleNameEnum; /** * * @type {string} * @memberof AccessRequestResponse */ 'createdAt': string; /** * * @type {string} * @memberof AccessRequestResponse */ 'decidedAt'?: string; /** * * @type {string} * @memberof AccessRequestResponse */ 'decidedByUserId'?: string; } export const AccessRequestResponseStateEnum = { Pending: 'Pending', Approved: 'Approved', Rejected: 'Rejected', Expired: 'Expired' } as const; export type AccessRequestResponseStateEnum = typeof AccessRequestResponseStateEnum[keyof typeof AccessRequestResponseStateEnum]; export const AccessRequestResponseRoleNameEnum = { Owner: 'Owner', PropertyOwner: 'PropertyOwner', ManagedOwner: 'ManagedOwner', Integrator: 'Integrator', PropertyManager: 'PropertyManager', FinanceManager: 'FinanceManager', StaffMember: 'StaffMember', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type AccessRequestResponseRoleNameEnum = typeof AccessRequestResponseRoleNameEnum[keyof typeof AccessRequestResponseRoleNameEnum]; /** * * @export * @interface ApplyNamedRoleRequestBody */ export interface ApplyNamedRoleRequestBody { /** * The user receiving the role * @type {string} * @memberof ApplyNamedRoleRequestBody */ 'userId': string; /** * * @type {RoleNames} * @memberof ApplyNamedRoleRequestBody */ 'roleName': RoleNames; } /** * Request to check if a user is authorized to perform an action(s). If you pass in an array of permissions, you will receive a single allow / deny response (based on an AND of the result for each permission). For a granular response to multiple permissions, call the /authorize/batch endpoint. * @export * @interface AuthenticateAndAuthorizeRequest */ export interface AuthenticateAndAuthorizeRequest { /** * Incoming request headers to be used for authentication * @type {{ [key: string]: string; }} * @memberof AuthenticateAndAuthorizeRequest */ 'headers': { [key: string]: string; }; /** * * @type {AuthorizationRequestAction} * @memberof AuthenticateAndAuthorizeRequest */ 'action': AuthorizationRequestAction; /** * * @type {AuthorizationRequestResource} * @memberof AuthenticateAndAuthorizeRequest */ 'resource'?: AuthorizationRequestResource; /** * How to check authorisation - any or all of the actions must be allowed * @type {string} * @memberof AuthenticateAndAuthorizeRequest */ 'checkMode'?: AuthenticateAndAuthorizeRequestCheckModeEnum; } export const AuthenticateAndAuthorizeRequestCheckModeEnum = { Any: 'any', All: 'all' } as const; export type AuthenticateAndAuthorizeRequestCheckModeEnum = typeof AuthenticateAndAuthorizeRequestCheckModeEnum[keyof typeof AuthenticateAndAuthorizeRequestCheckModeEnum]; /** * Response containing the authentication and authorization decision * @export * @interface AuthenticateAndAuthorizeResponse */ export interface AuthenticateAndAuthorizeResponse { /** * * @type {AuthenticateAndCheckIsInRoleResponseAuthentication} * @memberof AuthenticateAndAuthorizeResponse */ 'authentication': AuthenticateAndCheckIsInRoleResponseAuthentication; /** * Opaque credential to forward to downstream services. Callers should propagate this value without inspecting it. * @type {string} * @memberof AuthenticateAndAuthorizeResponse */ 'forwardableCredential'?: string; /** * * @type {AuthorizationResponse} * @memberof AuthenticateAndAuthorizeResponse */ 'authorization'?: AuthorizationResponse; } /** * * @export * @interface AuthenticateAndCheckIsInRoleRequest */ export interface AuthenticateAndCheckIsInRoleRequest { /** * Incoming request headers to be used for authentication * @type {{ [key: string]: string; }} * @memberof AuthenticateAndCheckIsInRoleRequest */ 'headers': { [key: string]: string; }; /** * Array of roles to check if the principal is in * @type {Array} * @memberof AuthenticateAndCheckIsInRoleRequest */ 'roles': Array; /** * * @type {string} * @memberof AuthenticateAndCheckIsInRoleRequest */ 'checkMode'?: AuthenticateAndCheckIsInRoleRequestCheckModeEnum; } export const AuthenticateAndCheckIsInRoleRequestCheckModeEnum = { Any: 'any', All: 'all' } as const; export type AuthenticateAndCheckIsInRoleRequestCheckModeEnum = typeof AuthenticateAndCheckIsInRoleRequestCheckModeEnum[keyof typeof AuthenticateAndCheckIsInRoleRequestCheckModeEnum]; /** * Response containing whether the principal is in any/all of the roles * @export * @interface AuthenticateAndCheckIsInRoleResponse */ export interface AuthenticateAndCheckIsInRoleResponse { /** * * @type {AuthenticateAndCheckIsInRoleResponseAuthentication} * @memberof AuthenticateAndCheckIsInRoleResponse */ 'authentication': AuthenticateAndCheckIsInRoleResponseAuthentication; /** * result of the check - whether the principal is in any/all of the roles * @type {boolean} * @memberof AuthenticateAndCheckIsInRoleResponse */ 'authorized': boolean; } /** * * @export * @interface AuthenticateAndCheckIsInRoleResponseAuthentication */ export interface AuthenticateAndCheckIsInRoleResponseAuthentication { /** * * @type {AuthorizationRequestPrincipal} * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication */ 'principal': AuthorizationRequestPrincipal; /** * Whether the user is authenticated * @type {boolean} * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication */ 'authenticated': boolean; /** * The reason for the authentication failure * @type {string} * @memberof AuthenticateAndCheckIsInRoleResponseAuthentication */ 'reason'?: string; } /** * * @export * @interface AuthenticateApiKey200Response */ export interface AuthenticateApiKey200Response { /** * * @type {boolean} * @memberof AuthenticateApiKey200Response */ 'ok': AuthenticateApiKey200ResponseOkEnum; } export const AuthenticateApiKey200ResponseOkEnum = { True: true } as const; export type AuthenticateApiKey200ResponseOkEnum = typeof AuthenticateApiKey200ResponseOkEnum[keyof typeof AuthenticateApiKey200ResponseOkEnum]; /** * * @export * @interface AuthorizationBatchRequest */ export interface AuthorizationBatchRequest { /** * * @type {AuthorizationRequestPrincipal} * @memberof AuthorizationBatchRequest */ 'principal': AuthorizationRequestPrincipal; /** * * @type {Permissions} * @memberof AuthorizationBatchRequest */ 'action': Permissions; /** * Array of resources to check authorisation for * @type {Array} * @memberof AuthorizationBatchRequest */ 'resources': Array; } /** * * @export * @interface AuthorizationBatchResponse */ export interface AuthorizationBatchResponse { /** * Array of allowed resources * @type {Array} * @memberof AuthorizationBatchResponse */ 'allowedResources': Array; /** * Array of denied resources * @type {Array} * @memberof AuthorizationBatchResponse */ 'deniedResources': Array; } /** * * @export * @interface AuthorizationBatchResponseAllowedResourcesInner */ export interface AuthorizationBatchResponseAllowedResourcesInner { /** * The authorization decision * @type {string} * @memberof AuthorizationBatchResponseAllowedResourcesInner */ 'decision': string; /** * Whether the action is allowed * @type {boolean} * @memberof AuthorizationBatchResponseAllowedResourcesInner */ 'allowed': boolean; /** * The policy IDs that were used to make the decision * @type {Array} * @memberof AuthorizationBatchResponseAllowedResourcesInner */ 'policyIds': Array; /** * * @type {AuthorizationBatchResponseAllowedResourcesInnerPrincipal} * @memberof AuthorizationBatchResponseAllowedResourcesInner */ 'principal': AuthorizationBatchResponseAllowedResourcesInnerPrincipal; /** * * @type {AuthorizationBatchResponseAllowedResourcesInnerResource} * @memberof AuthorizationBatchResponseAllowedResourcesInner */ 'resource': AuthorizationBatchResponseAllowedResourcesInnerResource; /** * * @type {Permissions} * @memberof AuthorizationBatchResponseAllowedResourcesInner */ 'action': Permissions; } /** * Principal that the action was checked for * @export * @interface AuthorizationBatchResponseAllowedResourcesInnerPrincipal */ export interface AuthorizationBatchResponseAllowedResourcesInnerPrincipal { /** * * @type {string} * @memberof AuthorizationBatchResponseAllowedResourcesInnerPrincipal */ 'type': AuthorizationBatchResponseAllowedResourcesInnerPrincipalTypeEnum; /** * * @type {string} * @memberof AuthorizationBatchResponseAllowedResourcesInnerPrincipal */ 'id': string; /** * * @type {string} * @memberof AuthorizationBatchResponseAllowedResourcesInnerPrincipal */ 'name'?: string; /** * * @type {string} * @memberof AuthorizationBatchResponseAllowedResourcesInnerPrincipal */ 'email'?: string; /** * * @type {string} * @memberof AuthorizationBatchResponseAllowedResourcesInnerPrincipal */ 'phone'?: string; } export const AuthorizationBatchResponseAllowedResourcesInnerPrincipalTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type AuthorizationBatchResponseAllowedResourcesInnerPrincipalTypeEnum = typeof AuthorizationBatchResponseAllowedResourcesInnerPrincipalTypeEnum[keyof typeof AuthorizationBatchResponseAllowedResourcesInnerPrincipalTypeEnum]; /** * @type AuthorizationBatchResponseAllowedResourcesInnerResource * Resource that the action was checked for * @export */ export type AuthorizationBatchResponseAllowedResourcesInnerResource = AuthorizationRequestResourceOneOf | AuthorizationRequestResourceOneOf1 | AuthorizationRequestResourceOneOf2 | AuthorizationRequestResourceOneOf3; /** * * @export * @interface AuthorizationChecksBatchRequest */ export interface AuthorizationChecksBatchRequest { /** * Principal/resource/action tuples to check authorisation for. Checks that share a principal or a resource are evaluated most efficiently; batches spanning too many distinct combinations are rejected with a 400. * @type {Array} * @memberof AuthorizationChecksBatchRequest */ 'checks': Array; } /** * * @export * @interface AuthorizationChecksBatchRequestChecksInner */ export interface AuthorizationChecksBatchRequestChecksInner { /** * * @type {AuthorizationRequestPrincipal} * @memberof AuthorizationChecksBatchRequestChecksInner */ 'principal': AuthorizationRequestPrincipal; /** * * @type {AuthorizationRequestResource} * @memberof AuthorizationChecksBatchRequestChecksInner */ 'resource': AuthorizationRequestResource; /** * * @type {Permissions} * @memberof AuthorizationChecksBatchRequestChecksInner */ 'action': Permissions; } /** * * @export * @interface AuthorizationChecksBatchResponse */ export interface AuthorizationChecksBatchResponse { /** * Allowed principal/resource checks * @type {Array} * @memberof AuthorizationChecksBatchResponse */ 'allowedResources': Array; /** * Denied principal/resource checks * @type {Array} * @memberof AuthorizationChecksBatchResponse */ 'deniedResources': Array; } /** * Request to check if a user is authorized to perform an action(s). If you pass in an array of permissions, you will receive a single allow / deny response (based on the checkMode - any or all of the permissions must be allowed). * @export * @interface AuthorizationRequest */ export interface AuthorizationRequest { /** * * @type {AuthorizationRequestPrincipal} * @memberof AuthorizationRequest */ 'principal': AuthorizationRequestPrincipal; /** * * @type {AuthorizationRequestAction} * @memberof AuthorizationRequest */ 'action': AuthorizationRequestAction; /** * * @type {AuthorizationRequestResource} * @memberof AuthorizationRequest */ 'resource'?: AuthorizationRequestResource; /** * How to check authorisation - any or all of the actions must be allowed * @type {string} * @memberof AuthorizationRequest */ 'checkMode'?: AuthorizationRequestCheckModeEnum; } export const AuthorizationRequestCheckModeEnum = { Any: 'any', All: 'all' } as const; export type AuthorizationRequestCheckModeEnum = typeof AuthorizationRequestCheckModeEnum[keyof typeof AuthorizationRequestCheckModeEnum]; /** * Permission or array of permissions - note that you still only receive a single allow / deny response (calculated based on the checkMode) * @export * @interface AuthorizationRequestAction */ export interface AuthorizationRequestAction { } /** * * @export * @interface AuthorizationRequestPrincipal */ export interface AuthorizationRequestPrincipal { /** * * @type {string} * @memberof AuthorizationRequestPrincipal */ 'type': AuthorizationRequestPrincipalTypeEnum; /** * * @type {string} * @memberof AuthorizationRequestPrincipal */ 'id': string; /** * * @type {string} * @memberof AuthorizationRequestPrincipal */ 'name'?: string; /** * * @type {string} * @memberof AuthorizationRequestPrincipal */ 'email'?: string; /** * * @type {string} * @memberof AuthorizationRequestPrincipal */ 'phone'?: string; } export const AuthorizationRequestPrincipalTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type AuthorizationRequestPrincipalTypeEnum = typeof AuthorizationRequestPrincipalTypeEnum[keyof typeof AuthorizationRequestPrincipalTypeEnum]; /** * @type AuthorizationRequestResource * @export */ export type AuthorizationRequestResource = AuthorizationRequestResourceOneOf | AuthorizationRequestResourceOneOf1 | AuthorizationRequestResourceOneOf2 | AuthorizationRequestResourceOneOf3; /** * * @export * @interface AuthorizationRequestResourceOneOf */ export interface AuthorizationRequestResourceOneOf { /** * * @type {string} * @memberof AuthorizationRequestResourceOneOf */ 'type': AuthorizationRequestResourceOneOfTypeEnum; /** * * @type {string} * @memberof AuthorizationRequestResourceOneOf */ 'id': string; } export const AuthorizationRequestResourceOneOfTypeEnum = { Property: 'Property' } as const; export type AuthorizationRequestResourceOneOfTypeEnum = typeof AuthorizationRequestResourceOneOfTypeEnum[keyof typeof AuthorizationRequestResourceOneOfTypeEnum]; /** * * @export * @interface AuthorizationRequestResourceOneOf1 */ export interface AuthorizationRequestResourceOneOf1 { /** * * @type {string} * @memberof AuthorizationRequestResourceOneOf1 */ 'type': AuthorizationRequestResourceOneOf1TypeEnum; /** * * @type {string} * @memberof AuthorizationRequestResourceOneOf1 */ 'id': string; } export const AuthorizationRequestResourceOneOf1TypeEnum = { Org: 'Org' } as const; export type AuthorizationRequestResourceOneOf1TypeEnum = typeof AuthorizationRequestResourceOneOf1TypeEnum[keyof typeof AuthorizationRequestResourceOneOf1TypeEnum]; /** * * @export * @interface AuthorizationRequestResourceOneOf2 */ export interface AuthorizationRequestResourceOneOf2 { /** * * @type {string} * @memberof AuthorizationRequestResourceOneOf2 */ 'type': AuthorizationRequestResourceOneOf2TypeEnum; /** * * @type {string} * @memberof AuthorizationRequestResourceOneOf2 */ 'id': string; } export const AuthorizationRequestResourceOneOf2TypeEnum = { Brand: 'Brand' } as const; export type AuthorizationRequestResourceOneOf2TypeEnum = typeof AuthorizationRequestResourceOneOf2TypeEnum[keyof typeof AuthorizationRequestResourceOneOf2TypeEnum]; /** * * @export * @interface AuthorizationRequestResourceOneOf3 */ export interface AuthorizationRequestResourceOneOf3 { /** * * @type {string} * @memberof AuthorizationRequestResourceOneOf3 */ 'type': AuthorizationRequestResourceOneOf3TypeEnum; /** * * @type {string} * @memberof AuthorizationRequestResourceOneOf3 */ 'id': string; } export const AuthorizationRequestResourceOneOf3TypeEnum = { SalesChannel: 'SalesChannel' } as const; export type AuthorizationRequestResourceOneOf3TypeEnum = typeof AuthorizationRequestResourceOneOf3TypeEnum[keyof typeof AuthorizationRequestResourceOneOf3TypeEnum]; /** * Response containing the authorization decision * @export * @interface AuthorizationResponse */ export interface AuthorizationResponse { /** * Whether the action is allowed * @type {boolean} * @memberof AuthorizationResponse */ 'allowed': boolean; /** * The authorization decision * @type {string} * @memberof AuthorizationResponse */ 'decision': string; /** * The policy IDs that were used to make the decision * @type {Array} * @memberof AuthorizationResponse */ 'policyIds': Array; } /** * * @export * @interface AuthorizeBatchChecks400Response */ export interface AuthorizeBatchChecks400Response { /** * * @type {string} * @memberof AuthorizeBatchChecks400Response */ 'message': string; } /** * * @export * @interface AuthorizeBatchChecks400ResponseAnyOf */ export interface AuthorizeBatchChecks400ResponseAnyOf { /** * * @type {string} * @memberof AuthorizeBatchChecks400ResponseAnyOf */ 'message': string; } /** * * @export * @interface AuthorizeBatchChecks400ResponseAnyOfInner */ export interface AuthorizeBatchChecks400ResponseAnyOfInner { /** * * @type {Array} * @memberof AuthorizeBatchChecks400ResponseAnyOfInner */ 'path'?: Array; /** * * @type {string} * @memberof AuthorizeBatchChecks400ResponseAnyOfInner */ 'message': string; } /** * * @export * @interface AuthorizeBatchChecks400ResponseAnyOfInnerPathInner */ export interface AuthorizeBatchChecks400ResponseAnyOfInnerPathInner { } /** * * @export * @interface BlockPrincipalAccessRequest */ export interface BlockPrincipalAccessRequest { /** * * @type {AccessBlockStateResponseBlockedPrincipal} * @memberof BlockPrincipalAccessRequest */ 'principal': AccessBlockStateResponseBlockedPrincipal; /** * * @type {string} * @memberof BlockPrincipalAccessRequest */ 'reason'?: string; } /** * * @export * @interface CreateGlobalApiKeyRequest */ export interface CreateGlobalApiKeyRequest { /** * * @type {string} * @memberof CreateGlobalApiKeyRequest */ 'name': string; /** * * @type {Array} * @memberof CreateGlobalApiKeyRequest */ 'permissions': Array; /** * * @type {CreateGlobalApiKeyRequestResource} * @memberof CreateGlobalApiKeyRequest */ 'resource'?: CreateGlobalApiKeyRequestResource; /** * * @type {boolean} * @memberof CreateGlobalApiKeyRequest */ 'global'?: boolean; /** * * @type {string} * @memberof CreateGlobalApiKeyRequest */ 'expiresAt'?: string; /** * * @type {string} * @memberof CreateGlobalApiKeyRequest */ 'orgId'?: string; } /** * @type CreateGlobalApiKeyRequestResource * Single resource the key is scoped to (required when global is false) * @export */ export type CreateGlobalApiKeyRequestResource = AuthorizationRequestResourceOneOf | AuthorizationRequestResourceOneOf1 | AuthorizationRequestResourceOneOf2 | AuthorizationRequestResourceOneOf3; /** * * @export * @interface CreateGlobalApiKeyResponse */ export interface CreateGlobalApiKeyResponse { /** * Raw API key secret — returned only once at creation * @type {string} * @memberof CreateGlobalApiKeyResponse */ 'apiKey': string; /** * * @type {GlobalApiKeyStateResponse} * @memberof CreateGlobalApiKeyResponse */ 'state': GlobalApiKeyStateResponse; } /** * * @export * @interface CreateInviteTokenRequest */ export interface CreateInviteTokenRequest { /** * * @type {string} * @memberof CreateInviteTokenRequest */ 'storefrontId': string; /** * * @type {string} * @memberof CreateInviteTokenRequest */ 'propertyId': string; /** * * @type {string} * @memberof CreateInviteTokenRequest */ 'orgName': string; } /** * * @export * @interface CreateJoinRequest */ export interface CreateJoinRequest { /** * * @type {string} * @memberof CreateJoinRequest */ 'token': string; } /** * * @export * @interface ErrorResponse */ export interface ErrorResponse { /** * * @type {string} * @memberof ErrorResponse */ 'message': string; } /** * Request to get authorized brands for a principal or the authenticated user based on the headers. Either principal or headers must be provided, but not both. If both are provided, the principal will be used. * @export * @interface GetAuthorizedBrandsRequest */ export interface GetAuthorizedBrandsRequest { /** * * @type {GetAuthorizedOrgsRequestPrincipal} * @memberof GetAuthorizedBrandsRequest */ 'principal'?: GetAuthorizedOrgsRequestPrincipal; /** * Incoming request headers to be used for authentication * @type {{ [key: string]: string; }} * @memberof GetAuthorizedBrandsRequest */ 'headers'?: { [key: string]: string; }; /** * * @type {Permissions} * @memberof GetAuthorizedBrandsRequest */ 'action': Permissions; } /** * Response containing the authorized brands * @export * @interface GetAuthorizedBrandsResponse */ export interface GetAuthorizedBrandsResponse { /** * Array of allowed resources * @type {Array} * @memberof GetAuthorizedBrandsResponse */ 'allowedResources': Array; /** * Array of denied resources * @type {Array} * @memberof GetAuthorizedBrandsResponse */ 'deniedResources': Array; } /** * Request to get authorized orgs for a principal or the authenticated user based on the headers. Either principal or headers must be provided, but not both. If both are provided, the principal will be used. * @export * @interface GetAuthorizedOrgsRequest */ export interface GetAuthorizedOrgsRequest { /** * * @type {GetAuthorizedOrgsRequestPrincipal} * @memberof GetAuthorizedOrgsRequest */ 'principal'?: GetAuthorizedOrgsRequestPrincipal; /** * Incoming request headers to be used for authentication * @type {{ [key: string]: string; }} * @memberof GetAuthorizedOrgsRequest */ 'headers'?: { [key: string]: string; }; /** * * @type {Permissions} * @memberof GetAuthorizedOrgsRequest */ 'action': Permissions; } /** * The principal to get authorized entities for * @export * @interface GetAuthorizedOrgsRequestPrincipal */ export interface GetAuthorizedOrgsRequestPrincipal { /** * * @type {string} * @memberof GetAuthorizedOrgsRequestPrincipal */ 'type': GetAuthorizedOrgsRequestPrincipalTypeEnum; /** * * @type {string} * @memberof GetAuthorizedOrgsRequestPrincipal */ 'id': string; /** * * @type {string} * @memberof GetAuthorizedOrgsRequestPrincipal */ 'name'?: string; /** * * @type {string} * @memberof GetAuthorizedOrgsRequestPrincipal */ 'email'?: string; /** * * @type {string} * @memberof GetAuthorizedOrgsRequestPrincipal */ 'phone'?: string; } export const GetAuthorizedOrgsRequestPrincipalTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type GetAuthorizedOrgsRequestPrincipalTypeEnum = typeof GetAuthorizedOrgsRequestPrincipalTypeEnum[keyof typeof GetAuthorizedOrgsRequestPrincipalTypeEnum]; /** * Response containing the authorized orgs * @export * @interface GetAuthorizedOrgsResponse */ export interface GetAuthorizedOrgsResponse { /** * Array of allowed resources * @type {Array} * @memberof GetAuthorizedOrgsResponse */ 'allowedResources': Array; /** * Array of denied resources * @type {Array} * @memberof GetAuthorizedOrgsResponse */ 'deniedResources': Array; } /** * Request to get authorized properties for a principal or the authenticated user based on the headers. Either principal or headers must be provided, but not both. If both are provided, the principal will be used. * @export * @interface GetAuthorizedPropertiesRequest */ export interface GetAuthorizedPropertiesRequest { /** * * @type {GetAuthorizedOrgsRequestPrincipal} * @memberof GetAuthorizedPropertiesRequest */ 'principal'?: GetAuthorizedOrgsRequestPrincipal; /** * Incoming request headers to be used for authentication * @type {{ [key: string]: string; }} * @memberof GetAuthorizedPropertiesRequest */ 'headers'?: { [key: string]: string; }; /** * * @type {Permissions} * @memberof GetAuthorizedPropertiesRequest */ 'action': Permissions; } /** * Response containing the authorized properties * @export * @interface GetAuthorizedPropertiesResponse */ export interface GetAuthorizedPropertiesResponse { /** * Array of allowed resources * @type {Array} * @memberof GetAuthorizedPropertiesResponse */ 'allowedResources': Array; /** * Array of denied resources * @type {Array} * @memberof GetAuthorizedPropertiesResponse */ 'deniedResources': Array; } /** * * @export * @interface GetJoinAccessRequest200Response */ export interface GetJoinAccessRequest200Response { /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'requestId': string; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'state': GetJoinAccessRequest200ResponseStateEnum; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'requesterUserId': string; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'requesterEmail': string; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'requesterName'?: string; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'orgId': string; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'orgName': string; /** * * @type {Array} * @memberof GetJoinAccessRequest200Response */ 'propertyIds': Array; /** * * @type {Array} * @memberof GetJoinAccessRequest200Response */ 'brandIds': Array; /** * * @type {Array} * @memberof GetJoinAccessRequest200Response */ 'salesChannelIds': Array; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'roleName': GetJoinAccessRequest200ResponseRoleNameEnum; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'createdAt': string; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'decidedAt'?: string; /** * * @type {string} * @memberof GetJoinAccessRequest200Response */ 'decidedByUserId'?: string; } export const GetJoinAccessRequest200ResponseStateEnum = { Pending: 'Pending', Approved: 'Approved', Rejected: 'Rejected', Expired: 'Expired' } as const; export type GetJoinAccessRequest200ResponseStateEnum = typeof GetJoinAccessRequest200ResponseStateEnum[keyof typeof GetJoinAccessRequest200ResponseStateEnum]; export const GetJoinAccessRequest200ResponseRoleNameEnum = { Owner: 'Owner', PropertyOwner: 'PropertyOwner', ManagedOwner: 'ManagedOwner', Integrator: 'Integrator', PropertyManager: 'PropertyManager', FinanceManager: 'FinanceManager', StaffMember: 'StaffMember', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type GetJoinAccessRequest200ResponseRoleNameEnum = typeof GetJoinAccessRequest200ResponseRoleNameEnum[keyof typeof GetJoinAccessRequest200ResponseRoleNameEnum]; /** * * @export * @interface GetJoinAccessRequest200ResponsePropertyIdsInner */ export interface GetJoinAccessRequest200ResponsePropertyIdsInner { } /** * Successful user permissions retrieval response * @export * @interface GetUserPermissionsSuccessResponse */ export interface GetUserPermissionsSuccessResponse { /** * Map of resource IDs to permissions * @type {{ [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }} * @memberof GetUserPermissionsSuccessResponse */ 'resources': { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; } /** * * @export * @interface GetUserPermissionsSuccessResponseResourcesValue */ export interface GetUserPermissionsSuccessResponseResourcesValue { /** * Type of resource the permissions are assigned to * @type {string} * @memberof GetUserPermissionsSuccessResponseResourcesValue */ 'resourceType': GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum; /** * * @type {GetUserPermissionsSuccessResponseResourcesValueResourceId} * @memberof GetUserPermissionsSuccessResponseResourcesValue */ 'resourceId': GetUserPermissionsSuccessResponseResourcesValueResourceId; /** * List of permissions that are assigned to the user for the resource * @type {Array} * @memberof GetUserPermissionsSuccessResponseResourcesValue */ 'permissions': Array; } export const GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = { Property: 'Property', Org: 'Org', Brand: 'Brand', SalesChannel: 'SalesChannel' } as const; export type GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = typeof GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum[keyof typeof GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum]; /** * ID of the resource the permissions are assigned to * @export * @interface GetUserPermissionsSuccessResponseResourcesValueResourceId */ export interface GetUserPermissionsSuccessResponseResourcesValueResourceId { } /** * * @export * @interface GlobalApiKeyStateResponse */ export interface GlobalApiKeyStateResponse { /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'principalId': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'name'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'status': GlobalApiKeyStateResponseStatusEnum; /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'expiresAt'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'orgId'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'createdByEmail': string; /** * * @type {Array} * @memberof GlobalApiKeyStateResponse */ 'permissions': Array; /** * * @type {Array} * @memberof GlobalApiKeyStateResponse */ 'resources'?: Array; /** * When true, the key is authorized for all resources (unbound Cedar resource) * @type {boolean} * @memberof GlobalApiKeyStateResponse */ 'global': boolean; /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'avpPolicyId': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'createdAt': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponse */ 'updatedAt': string; /** * ISO-8601 timestamp of the most recent successful authentication with this key * @type {string} * @memberof GlobalApiKeyStateResponse */ 'lastUsedAt'?: string; } export const GlobalApiKeyStateResponseStatusEnum = { Active: 'active', Revoked: 'revoked' } as const; export type GlobalApiKeyStateResponseStatusEnum = typeof GlobalApiKeyStateResponseStatusEnum[keyof typeof GlobalApiKeyStateResponseStatusEnum]; /** * * @export * @interface GlobalApiKeyStateResponseRevoked */ export interface GlobalApiKeyStateResponseRevoked { /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'principalId': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'name'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'status': GlobalApiKeyStateResponseRevokedStatusEnum; /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'expiresAt'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'orgId'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'createdByEmail': string; /** * * @type {Array} * @memberof GlobalApiKeyStateResponseRevoked */ 'permissions': Array; /** * * @type {Array} * @memberof GlobalApiKeyStateResponseRevoked */ 'resources'?: Array; /** * When true, the key is authorized for all resources (unbound Cedar resource) * @type {boolean} * @memberof GlobalApiKeyStateResponseRevoked */ 'global': boolean; /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'avpPolicyId': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'createdAt': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'updatedAt': string; /** * ISO-8601 timestamp of the most recent successful authentication with this key * @type {string} * @memberof GlobalApiKeyStateResponseRevoked */ 'lastUsedAt'?: string; } export const GlobalApiKeyStateResponseRevokedStatusEnum = { Active: 'active', Revoked: 'revoked' } as const; export type GlobalApiKeyStateResponseRevokedStatusEnum = typeof GlobalApiKeyStateResponseRevokedStatusEnum[keyof typeof GlobalApiKeyStateResponseRevokedStatusEnum]; /** * * @export * @interface GlobalApiKeyStateResponseUpdated */ export interface GlobalApiKeyStateResponseUpdated { /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'principalId': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'name'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'status': GlobalApiKeyStateResponseUpdatedStatusEnum; /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'expiresAt'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'orgId'?: string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'createdByEmail': string; /** * * @type {Array} * @memberof GlobalApiKeyStateResponseUpdated */ 'permissions': Array; /** * * @type {Array} * @memberof GlobalApiKeyStateResponseUpdated */ 'resources'?: Array; /** * When true, the key is authorized for all resources (unbound Cedar resource) * @type {boolean} * @memberof GlobalApiKeyStateResponseUpdated */ 'global': boolean; /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'avpPolicyId': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'createdAt': string; /** * * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'updatedAt': string; /** * ISO-8601 timestamp of the most recent successful authentication with this key * @type {string} * @memberof GlobalApiKeyStateResponseUpdated */ 'lastUsedAt'?: string; } export const GlobalApiKeyStateResponseUpdatedStatusEnum = { Active: 'active', Revoked: 'revoked' } as const; export type GlobalApiKeyStateResponseUpdatedStatusEnum = typeof GlobalApiKeyStateResponseUpdatedStatusEnum[keyof typeof GlobalApiKeyStateResponseUpdatedStatusEnum]; /** * * @export * @interface InviteTokenResponse */ export interface InviteTokenResponse { /** * * @type {string} * @memberof InviteTokenResponse */ 'tokenId': string; /** * * @type {string} * @memberof InviteTokenResponse */ 'joinUrl': string; /** * * @type {string} * @memberof InviteTokenResponse */ 'expiresAt': string; /** * * @type {string} * @memberof InviteTokenResponse */ 'orgId': string; /** * * @type {Array} * @memberof InviteTokenResponse */ 'brandIds': Array; /** * * @type {Array} * @memberof InviteTokenResponse */ 'propertyIds': Array; /** * * @type {Array} * @memberof InviteTokenResponse */ 'salesChannelIds': Array; /** * * @type {string} * @memberof InviteTokenResponse */ 'roleName': InviteTokenResponseRoleNameEnum; } export const InviteTokenResponseRoleNameEnum = { Owner: 'Owner', PropertyOwner: 'PropertyOwner', ManagedOwner: 'ManagedOwner', Integrator: 'Integrator', PropertyManager: 'PropertyManager', FinanceManager: 'FinanceManager', StaffMember: 'StaffMember', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type InviteTokenResponseRoleNameEnum = typeof InviteTokenResponseRoleNameEnum[keyof typeof InviteTokenResponseRoleNameEnum]; /** * * @export * @interface IsInRoleRequest */ export interface IsInRoleRequest { /** * * @type {AuthorizationRequestPrincipal} * @memberof IsInRoleRequest */ 'principal': AuthorizationRequestPrincipal; /** * Array of roles to check if the principal is in * @type {Array} * @memberof IsInRoleRequest */ 'roles': Array; /** * How to check authorisation - any or all of the actions must be allowed * @type {string} * @memberof IsInRoleRequest */ 'checkMode'?: IsInRoleRequestCheckModeEnum; } export const IsInRoleRequestCheckModeEnum = { Any: 'any', All: 'all' } as const; export type IsInRoleRequestCheckModeEnum = typeof IsInRoleRequestCheckModeEnum[keyof typeof IsInRoleRequestCheckModeEnum]; /** * Response containing whether the principal is in any/all of the roles * @export * @interface IsInRoleResponse */ export interface IsInRoleResponse { /** * result of the check - whether the principal is in any/all of the roles * @type {boolean} * @memberof IsInRoleResponse */ 'authorized': boolean; } /** * * @export * @interface JoinAccessErrorResponse */ export interface JoinAccessErrorResponse { /** * * @type {string} * @memberof JoinAccessErrorResponse */ 'code': JoinAccessErrorResponseCodeEnum; /** * * @type {string} * @memberof JoinAccessErrorResponse */ 'message': string; } export const JoinAccessErrorResponseCodeEnum = { AlreadyMember: 'ALREADY_MEMBER' } as const; export type JoinAccessErrorResponseCodeEnum = typeof JoinAccessErrorResponseCodeEnum[keyof typeof JoinAccessErrorResponseCodeEnum]; /** * An org\'s expired timed access grants, most recent first * @export * @interface ListExpiredTimedAccessGrantsResponse */ export interface ListExpiredTimedAccessGrantsResponse { /** * * @type {Array} * @memberof ListExpiredTimedAccessGrantsResponse */ 'grants': Array; /** * Pass as the cursor query param to fetch the next page. Absent on the last page * @type {string} * @memberof ListExpiredTimedAccessGrantsResponse */ 'nextCursor'?: string; } /** * * @export * @interface ListGlobalApiKeysResponse */ export interface ListGlobalApiKeysResponse { /** * * @type {Array} * @memberof ListGlobalApiKeysResponse */ 'items': Array; } /** * * @export * @interface ListJoinRequestsResponse */ export interface ListJoinRequestsResponse { /** * * @type {Array} * @memberof ListJoinRequestsResponse */ 'items': Array; } /** * * @export * @interface ListOrgRolesSuccessResponseValue */ export interface ListOrgRolesSuccessResponseValue { /** * * @type {ListOrgRolesSuccessResponseValueOrgId} * @memberof ListOrgRolesSuccessResponseValue */ 'orgId': ListOrgRolesSuccessResponseValueOrgId; /** * List of roles that are assigned to the user in the org * @type {Array} * @memberof ListOrgRolesSuccessResponseValue */ 'roles': Array; /** * Optional permission set keys applied to the roles * @type {Array} * @memberof ListOrgRolesSuccessResponseValue */ 'optionalPermissionSetKeys'?: Array; /** * Property IDs, or * for all properties, the roles are scoped to * @type {Array} * @memberof ListOrgRolesSuccessResponseValue */ 'properties'?: Array; /** * Brand IDs, or * for all brands, the roles are scoped to * @type {Array} * @memberof ListOrgRolesSuccessResponseValue */ 'brands'?: Array; /** * Sales channel IDs, or * for all sales channels, the roles are scoped to * @type {Array} * @memberof ListOrgRolesSuccessResponseValue */ 'salesChannels'?: Array; } export const ListOrgRolesSuccessResponseValueRolesEnum = { Owner: 'Owner', PropertyOwner: 'PropertyOwner', ManagedOwner: 'ManagedOwner', Integrator: 'Integrator', PropertyManager: 'PropertyManager', FinanceManager: 'FinanceManager', StaffMember: 'StaffMember', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type ListOrgRolesSuccessResponseValueRolesEnum = typeof ListOrgRolesSuccessResponseValueRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueRolesEnum]; /** * * @export * @interface ListOrgRolesSuccessResponseValueBrandsInner */ export interface ListOrgRolesSuccessResponseValueBrandsInner { } /** * ID of the org the roles are assigned in * @export * @interface ListOrgRolesSuccessResponseValueOrgId */ export interface ListOrgRolesSuccessResponseValueOrgId { } /** * * @export * @interface ListOrgRolesSuccessResponseValueSalesChannelsInner */ export interface ListOrgRolesSuccessResponseValueSalesChannelsInner { } /** * Successful permissions retrieval response * @export * @interface ListPermissionsSuccessResponse */ export interface ListPermissionsSuccessResponse { /** * * @type {Permissions & Array} * @memberof ListPermissionsSuccessResponse */ 'permissions': Permissions & Array; } /** * * @export * @interface ListPrincipalAccessBlocksResponse */ export interface ListPrincipalAccessBlocksResponse { /** * * @type {Array} * @memberof ListPrincipalAccessBlocksResponse */ 'items': Array; } /** * Successful role definitions retrieval response * @export * @interface ListRoleDefinitionsSuccessResponse */ export interface ListRoleDefinitionsSuccessResponse { /** * Roles and the permissions they grant at each hierarchy level * @type {Array} * @memberof ListRoleDefinitionsSuccessResponse */ 'roles': Array; } /** * * @export * @interface ListRoleDefinitionsSuccessResponseRolesInner */ export interface ListRoleDefinitionsSuccessResponseRolesInner { /** * Name of the role * @type {string} * @memberof ListRoleDefinitionsSuccessResponseRolesInner */ 'name': ListRoleDefinitionsSuccessResponseRolesInnerNameEnum; /** * * @type {RoleLevels} * @memberof ListRoleDefinitionsSuccessResponseRolesInner */ 'levels': RoleLevels; /** * Permission sets that can be granted on top of the role * @type {Array} * @memberof ListRoleDefinitionsSuccessResponseRolesInner */ 'optionalPermissionSets': Array; } export const ListRoleDefinitionsSuccessResponseRolesInnerNameEnum = { Owner: 'Owner', PropertyOwner: 'PropertyOwner', ManagedOwner: 'ManagedOwner', Integrator: 'Integrator', PropertyManager: 'PropertyManager', FinanceManager: 'FinanceManager', StaffMember: 'StaffMember', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type ListRoleDefinitionsSuccessResponseRolesInnerNameEnum = typeof ListRoleDefinitionsSuccessResponseRolesInnerNameEnum[keyof typeof ListRoleDefinitionsSuccessResponseRolesInnerNameEnum]; /** * * @export * @interface ListRoleDefinitionsSuccessResponseRolesInnerOptionalPermissionSetsInner */ export interface ListRoleDefinitionsSuccessResponseRolesInnerOptionalPermissionSetsInner { /** * Key used to add this permission set to a role assignment * @type {string} * @memberof ListRoleDefinitionsSuccessResponseRolesInnerOptionalPermissionSetsInner */ 'key': string; /** * Human readable name of the permission set * @type {string} * @memberof ListRoleDefinitionsSuccessResponseRolesInnerOptionalPermissionSetsInner */ 'name': string; /** * * @type {RoleLevels} * @memberof ListRoleDefinitionsSuccessResponseRolesInnerOptionalPermissionSetsInner */ 'levels': RoleLevels; } /** * Successful roles retrieval response * @export * @interface ListRolesSuccessResponse */ export interface ListRolesSuccessResponse { /** * List of named roles * @type {Array} * @memberof ListRolesSuccessResponse */ 'roles': Array; } /** * The caller\'s active timed access grants * @export * @interface ListTimedAccessGrantsResponse */ export interface ListTimedAccessGrantsResponse { /** * * @type {Array} * @memberof ListTimedAccessGrantsResponse */ 'grants': Array; } /** * The named role assignment * @export * @interface NamedRoleAssignmentResponse */ export interface NamedRoleAssignmentResponse { /** * * @type {string} * @memberof NamedRoleAssignmentResponse */ 'userId': string; /** * Best-effort; omitted if the principal has no known email on file * @type {string} * @memberof NamedRoleAssignmentResponse */ 'email'?: string; /** * * @type {RoleNames} * @memberof NamedRoleAssignmentResponse */ 'role': RoleNames; /** * * @type {string} * @memberof NamedRoleAssignmentResponse */ 'assignedAt': string; } /** * Permissions * @export * @enum {string} */ export const Permissions = { AnyAuditLogs: 'AnyAuditLogs', ViewApp: 'ViewApp', CreateApp: 'CreateApp', UpdateApp: 'UpdateApp', ViewAppName: 'ViewAppName', EditAppAssets: 'EditAppAssets', EditAppFeatures: 'EditAppFeatures', ViewTeammates: 'ViewTeammates', EditTeammates: 'EditTeammates', CreateTeammateOwner: 'CreateTeammateOwner', CreateTeammateManagedOwner: 'CreateTeammateManagedOwner', CreateTeammateStoreOwner: 'CreateTeammateStoreOwner', CreateTeammateStoreManager: 'CreateTeammateStoreManager', CreateTeammateStoreStaff: 'CreateTeammateStoreStaff', CreateTeammateStoreReadAccess: 'CreateTeammateStoreReadAccess', CreateTeammateFinanceManager: 'CreateTeammateFinanceManager', CreateTeammateIntegrator: 'CreateTeammateIntegrator', CreateTeammateOnboarding: 'CreateTeammateOnboarding', CreateTeammatePropertyManager: 'CreateTeammatePropertyManager', CreateTeammatePropertyOwner: 'CreateTeammatePropertyOwner', CreateTeammateStaffMember: 'CreateTeammateStaffMember', ViewApmConfigurations: 'ViewApmConfigurations', EditApmConfigurations: 'EditApmConfigurations', ViewCampaignsConfigurations: 'ViewCampaignsConfigurations', CreateCampaignsConfigurations: 'CreateCampaignsConfigurations', UpdateCampaignsConfigurations: 'UpdateCampaignsConfigurations', DeleteCampaignsConfigurations: 'DeleteCampaignsConfigurations', StampLoyaltyCardAgainstCampaignsConfigurations: 'StampLoyaltyCardAgainstCampaignsConfigurations', ViewDevelopersSettings: 'ViewDevelopersSettings', EditDevelopersSettings: 'EditDevelopersSettings', ViewOrders: 'ViewOrders', UpdateOrdersAccept: 'UpdateOrdersAccept', UpdateOrdersReject: 'UpdateOrdersReject', UpdateOrdersRefund: 'UpdateOrdersRefund', UpdateOrdersDispatch: 'UpdateOrdersDispatch', ViewStores: 'ViewStores', CreateStores: 'CreateStores', EditStores: 'EditStores', ViewStoresOpeningHours: 'ViewStoresOpeningHours', UpdateStoresOpenForCollectionOrDelivery: 'UpdateStoresOpenForCollectionOrDelivery', UpdateStoresOpeningHours: 'UpdateStoresOpeningHours', ViewStoresOpeningHoursOverride: 'ViewStoresOpeningHoursOverride', EditStoresOpeningHoursOverride: 'EditStoresOpeningHoursOverride', EditStoresOpeningHoursOverrideTemporary: 'EditStoresOpeningHoursOverrideTemporary', UpdateStoresName: 'UpdateStoresName', EditStoreKioskSettings: 'EditStoreKioskSettings', EditStoreOrderCapacity: 'EditStoreOrderCapacity', EditStoreNotifications: 'EditStoreNotifications', ArchiveStores: 'ArchiveStores', PublishStores: 'PublishStores', UpdatePrinterTerminalsAssign: 'UpdatePrinterTerminalsAssign', UpdatePrinterTerminalsToggle: 'UpdatePrinterTerminalsToggle', ViewStoreGroups: 'ViewStoreGroups', CreateStoreGroups: 'CreateStoreGroups', UpdateStoreGroups: 'UpdateStoreGroups', DeleteStoreGroups: 'DeleteStoreGroups', ViewDeliveryZones: 'ViewDeliveryZones', CreateDeliveryZones: 'CreateDeliveryZones', UpdateDeliveryZones: 'UpdateDeliveryZones', DeleteDeliveryZones: 'DeleteDeliveryZones', ViewMenu: 'ViewMenu', CreateGlobalApiKey: 'CreateGlobalAPIKey', ListGlobalApiKeys: 'ListGlobalAPIKeys', BlockPrincipalAccess: 'BlockPrincipalAccess', CreateMenu: 'CreateMenu', UpdateMenu: 'UpdateMenu', DeleteMenu: 'DeleteMenu', UpdateMenuLock: 'UpdateMenuLock', UpdateMenuItemsHideTemporarily: 'UpdateMenuItemsHideTemporarily', EditMenuImage: 'EditMenuImage', ViewVouchers: 'ViewVouchers', EditVouchers: 'EditVouchers', ViewWebsiteContent: 'ViewWebsiteContent', EditWebsiteContent: 'EditWebsiteContent', ViewWebsiteDnsVerified: 'ViewWebsiteDnsVerified', ViewWebsiteCertificateCreated: 'ViewWebsiteCertificateCreated', ViewWebsiteCertificateRenewed: 'ViewWebsiteCertificateRenewed', ViewBankAccounts: 'ViewBankAccounts', CreateBankAccounts: 'CreateBankAccounts', UpdateBankAccounts: 'UpdateBankAccounts', UpdateBankAccountsAssign: 'UpdateBankAccountsAssign', ViewAssignedBankAccount: 'ViewAssignedBankAccount', VerifyBankAccounts: 'VerifyBankAccounts', ViewServiceChargeConfigurations: 'ViewServiceChargeConfigurations', EditServiceChargeConfigurations: 'EditServiceChargeConfigurations', EditStoreDeliveryZoneFees: 'EditStoreDeliveryZoneFees', EditStoreDeliveryFeesLimited: 'EditStoreDeliveryFeesLimited', ViewHydraConfig: 'ViewHydraConfig', UpdateHydraConfigManage: 'UpdateHydraConfigManage', InitiateBluetoothPairingMode: 'InitiateBluetoothPairingMode', DeleteTerminal: 'DeleteTerminal', ViewKioskTelemetry: 'ViewKioskTelemetry', HydraOnly: 'HydraOnly', ViewCustomers: 'ViewCustomers', EditCustomers: 'EditCustomers', CreateCustomers: 'CreateCustomers', CreateCatalogElements: 'CreateCatalogElements', UpdateCatalogElements: 'UpdateCatalogElements', ViewCatalogElements: 'ViewCatalogElements', DeleteCatalogElements: 'DeleteCatalogElements', ViewMetafieldDefinitions: 'ViewMetafieldDefinitions', CreateMetafieldDefinitions: 'CreateMetafieldDefinitions', UpdateMetafieldDefinitions: 'UpdateMetafieldDefinitions', DeleteMetafieldDefinitions: 'DeleteMetafieldDefinitions', UpdateMetafields: 'UpdateMetafields', ViewCatalogMenuChanges: 'ViewCatalogMenuChanges', PublishCatalogMenuChanges: 'PublishCatalogMenuChanges', ViewAppStatistics: 'ViewAppStatistics', ViewApmStatistics: 'ViewApmStatistics', ViewCampaignsStatistics: 'ViewCampaignsStatistics', ViewCustomerStatistics: 'ViewCustomerStatistics', ViewLiveStatistics: 'ViewLiveStatistics', ViewOrderStatistics: 'ViewOrderStatistics', ViewSalesStatistics: 'ViewSalesStatistics', ViewSalesEndOfDayStatistics: 'ViewSalesEndOfDayStatistics', ViewVouchersStatistics: 'ViewVouchersStatistics', DownloadCustomerCsvExport: 'DownloadCustomerCsvExport', ViewApmAuditLogs: 'ViewApmAuditLogs', ViewStoreAuditLogs: 'ViewStoreAuditLogs', ViewMenuAuditLogs: 'ViewMenuAuditLogs', ViewBankAccountAuditLogs: 'ViewBankAccountAuditLogs', ViewFeeConfigurationsAuditLogs: 'ViewFeeConfigurationsAuditLogs', ViewOrdersAuditLogs: 'ViewOrdersAuditLogs', ViewVouchersAuditLogs: 'ViewVouchersAuditLogs', ViewUserEventsAuditLogs: 'ViewUserEventsAuditLogs', ViewCampaignsAuditLogs: 'ViewCampaignsAuditLogs', ViewTeammatesAuditLogs: 'ViewTeammatesAuditLogs', ViewTimedAccessAuditLogs: 'ViewTimedAccessAuditLogs', ViewAppAuditLogs: 'ViewAppAuditLogs', ViewCustomerAuditLogs: 'ViewCustomerAuditLogs', ViewPrinterAuditLogs: 'ViewPrinterAuditLogs', ViewHydraAuditLogs: 'ViewHydraAuditLogs', ViewPushNotificationAuditLogs: 'ViewPushNotificationAuditLogs', ViewStripeCustomConnectedAccountAuditLogs: 'ViewStripeCustomConnectedAccountAuditLogs', ViewKioskBluetoothDeviceAuditLogs: 'ViewKioskBluetoothDeviceAuditLogs', ViewExternalAuditLogs: 'ViewExternalAuditLogs', CreateExternalAuditLogEvents: 'CreateExternalAuditLogEvents', ViewCatalogAuditLogs: 'ViewCatalogAuditLogs', ViewOrderFulfillmentAuditLogs: 'ViewOrderFulfillmentAuditLogs', ViewChannelAuditLogs: 'ViewChannelAuditLogs', ViewAppStoreAuditLogs: 'ViewAppStoreAuditLogs', SendPushNotificationToCustomer: 'SendPushNotificationToCustomer', InviteDriverToApp: 'InviteDriverToApp', GetDriverForApp: 'GetDriverForApp', RemoveDriverFromApp: 'RemoveDriverFromApp', AssignDriverToOrder: 'AssignDriverToOrder', UnassignDriverFromOrder: 'UnassignDriverFromOrder', UpdateOrdersDeliveryTrackingStatus: 'UpdateOrdersDeliveryTrackingStatus', UpdateOrderFulfillmentStatus: 'UpdateOrderFulfillmentStatus', ViewFulfillmentStatesConfiguration: 'ViewFulfillmentStatesConfiguration', CreateFulfillmentStatesConfiguration: 'CreateFulfillmentStatesConfiguration', UpdateFulfillmentStatesConfiguration: 'UpdateFulfillmentStatesConfiguration', DeleteFulfillmentStatesConfiguration: 'DeleteFulfillmentStatesConfiguration', ViewPayouts: 'ViewPayouts', ViewChannels: 'ViewChannels', ViewOnboarding: 'ViewOnboarding', UpdateOnboarding: 'UpdateOnboarding', ViewClientDevices: 'ViewClientDevices', UpdateClientDevices: 'UpdateClientDevices', EnrollClientDevices: 'EnrollClientDevices', AssignClientDevices: 'AssignClientDevices', ViewClientAuditLogs: 'ViewClientAuditLogs', CreateAppStoreAppConfiguration: 'CreateAppStoreAppConfiguration', ViewAppStoreAppConfiguration: 'ViewAppStoreAppConfiguration', UpdateAppStoreAppConfiguration: 'UpdateAppStoreAppConfiguration', DeleteAppStoreAppConfiguration: 'DeleteAppStoreAppConfiguration', UpdateAppStoreAppConfigurationSettings: 'UpdateAppStoreAppConfigurationSettings', CreateAppStoreSubscription: 'CreateAppStoreSubscription', UpdateAppStoreSubscription: 'UpdateAppStoreSubscription', DeleteAppStoreSubscription: 'DeleteAppStoreSubscription', ViewSalesChannels: 'ViewSalesChannels', EditSalesChannels: 'EditSalesChannels', CreateSalesChannel: 'CreateSalesChannel', ArchiveSalesChannel: 'ArchiveSalesChannel', UnarchiveSalesChannel: 'UnarchiveSalesChannel', PublishSalesChannel: 'PublishSalesChannel', UnpublishSalesChannel: 'UnpublishSalesChannel', CloneSalesChannel: 'CloneSalesChannel', ViewPayGreenWhiteLabelConfiguration: 'ViewPayGreenWhiteLabelConfiguration', CreatePayGreenWhiteLabelConfiguration: 'CreatePayGreenWhiteLabelConfiguration', UpdatePayGreenWhiteLabelConfiguration: 'UpdatePayGreenWhiteLabelConfiguration', UpdatePayGreenStoreConfiguration: 'UpdatePayGreenStoreConfiguration', ViewSubscriptions: 'ViewSubscriptions', ViewInvoices: 'ViewInvoices', EditAccountsBills: 'EditAccountsBills', ViewAccountsBills: 'ViewAccountsBills', EditAccountsCategories: 'EditAccountsCategories', ViewAccountsCategories: 'ViewAccountsCategories', EditAccountsCreditAccounts: 'EditAccountsCreditAccounts', ViewAccountsCreditAccounts: 'ViewAccountsCreditAccounts', EditAccountsCreditBooks: 'EditAccountsCreditBooks', ViewAccountsCreditBooks: 'ViewAccountsCreditBooks', EditAccountsExpenses: 'EditAccountsExpenses', ViewAccountsExpenses: 'ViewAccountsExpenses', EditAccountsTransactionAccounts: 'EditAccountsTransactionAccounts', ViewAccountsTransactionAccounts: 'ViewAccountsTransactionAccounts', EditDocumentExplorer: 'EditDocumentExplorer', ViewDocumentExplorer: 'ViewDocumentExplorer', ViewInventoryReports: 'ViewInventoryReports', EditInventoryPurchaseOrders: 'EditInventoryPurchaseOrders', ViewInventoryPurchaseOrders: 'ViewInventoryPurchaseOrders', EditInventoryStockItems: 'EditInventoryStockItems', ViewInventoryStockItems: 'ViewInventoryStockItems', EditInventorySupplier: 'EditInventorySupplier', ViewInventorySupplier: 'ViewInventorySupplier', EditInventoryTrackingProfiles: 'EditInventoryTrackingProfiles', ViewInventoryTrackingProfiles: 'ViewInventoryTrackingProfiles', ViewPayrollReports: 'ViewPayrollReports', EditPayrollHoliday: 'EditPayrollHoliday', ViewPayrollHoliday: 'ViewPayrollHoliday', EditPayrollRota: 'EditPayrollRota', ViewPayrollRota: 'ViewPayrollRota', EditPayrollStaff: 'EditPayrollStaff', ViewPayrollStaff: 'ViewPayrollStaff', ViewSalesReports: 'ViewSalesReports', ViewCostReports: 'ViewCostReports', ViewMenuReports: 'ViewMenuReports', ViewBrand: 'ViewBrand', EditBrand: 'EditBrand', CreateBrand: 'CreateBrand', TransferBrand: 'TransferBrand', ViewProperty: 'ViewProperty', EditProperty: 'EditProperty', CreateProperty: 'CreateProperty', ArchiveProperty: 'ArchiveProperty', ViewEntityFeatureFlags: 'ViewEntityFeatureFlags', EditEntityFeatureFlags: 'EditEntityFeatureFlags', CreateOrg: 'CreateOrg', CreateOrgApiKey: 'CreateOrgAPIKey', EditOrg: 'EditOrg', ViewOrg: 'ViewOrg', ViewWebhooks: 'ViewWebhooks', EditWebhooks: 'EditWebhooks', ViewOwnPermissions: 'ViewOwnPermissions', CreatePosSale: 'CreatePosSale', ComplimentPosItems: 'ComplimentPosItems', ApplyPosDiscounts: 'ApplyPosDiscounts', CancelPosSales: 'CancelPosSales', DeliverSale: 'DeliverSale', PerformCashingUp: 'PerformCashingUp', OpenCashDrawer: 'OpenCashDrawer', EditPosSettings: 'EditPosSettings', EditPosLayout: 'EditPosLayout', ViewPosDailySummaryReport: 'ViewPosDailySummaryReport', ViewPosDriverSalesReport: 'ViewPosDriverSalesReport', CreatePurchaseOrder: 'CreatePurchaseOrder', SubmitPurchaseOrder: 'SubmitPurchaseOrder', ReceivePurchaseOrder: 'ReceivePurchaseOrder', ViewBusinessInsights: 'ViewBusinessInsights', SnoozePosMenu: 'SnoozePosMenu', SnoozePosMenuIndefinitely: 'SnoozePosMenuIndefinitely', SnoozePosItem: 'SnoozePosItem', SnoozePosItemIndefinitely: 'SnoozePosItemIndefinitely', SnoozePosProperty: 'SnoozePosProperty', RoleAdmin: 'RoleAdmin', RoleFactory: 'RoleFactory', RoleAuthDeveloper: 'RoleAuthDeveloper', RoleFlipdishStaff: 'RoleFlipdishStaff' } as const; export type Permissions = typeof Permissions[keyof typeof Permissions]; /** * Principal in an org, optionally including last active timestamp * @export * @interface PrincipalInOrg */ export interface PrincipalInOrg { /** * * @type {string} * @memberof PrincipalInOrg */ 'type': PrincipalInOrgTypeEnum; /** * * @type {string} * @memberof PrincipalInOrg */ 'id': string; /** * * @type {string} * @memberof PrincipalInOrg */ 'name'?: string; /** * * @type {string} * @memberof PrincipalInOrg */ 'email'?: string; /** * * @type {string} * @memberof PrincipalInOrg */ 'phone'?: string; /** * ISO-8601 UTC timestamp of last authorization activity in this org * @type {string} * @memberof PrincipalInOrg */ 'lastActiveAt'?: string; } export const PrincipalInOrgTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type PrincipalInOrgTypeEnum = typeof PrincipalInOrgTypeEnum[keyof typeof PrincipalInOrgTypeEnum]; /** * Principals in org * @export * @interface PrincipalsInOrgResponse */ export interface PrincipalsInOrgResponse { /** * * @type {string} * @memberof PrincipalsInOrgResponse */ 'orgId': string; /** * List of principals in org * @type {Array} * @memberof PrincipalsInOrgResponse */ 'principals': Array; } /** * Role assignment key to rematerialize * @export * @interface RematerializeRoleAssignmentRequestBody */ export interface RematerializeRoleAssignmentRequestBody { /** * * @type {string} * @memberof RematerializeRoleAssignmentRequestBody */ 'pk': string; /** * * @type {string} * @memberof RematerializeRoleAssignmentRequestBody */ 'sk': string; } /** * Successful role assignment rematerialization response (reconcile: add missing + revoke leftovers) * @export * @interface RematerializeRoleAssignmentSuccessResponse */ export interface RematerializeRoleAssignmentSuccessResponse { /** * * @type {RematerializeRoleAssignmentSuccessResponseRoleAssignment} * @memberof RematerializeRoleAssignmentSuccessResponse */ 'roleAssignment': RematerializeRoleAssignmentSuccessResponseRoleAssignment; /** * * @type {number} * @memberof RematerializeRoleAssignmentSuccessResponse */ 'added': number; /** * * @type {number} * @memberof RematerializeRoleAssignmentSuccessResponse */ 'revoked': number; /** * * @type {number} * @memberof RematerializeRoleAssignmentSuccessResponse */ 'unchanged': number; } /** * * @export * @interface RematerializeRoleAssignmentSuccessResponseRoleAssignment */ export interface RematerializeRoleAssignmentSuccessResponseRoleAssignment { /** * * @type {string} * @memberof RematerializeRoleAssignmentSuccessResponseRoleAssignment */ 'pk': string; /** * * @type {string} * @memberof RematerializeRoleAssignmentSuccessResponseRoleAssignment */ 'sk': string; /** * * @type {string} * @memberof RematerializeRoleAssignmentSuccessResponseRoleAssignment */ 'assignmentId': string; } /** * * @export * @interface RemoveNamedRoleRequestBody */ export interface RemoveNamedRoleRequestBody { /** * The user losing the role * @type {string} * @memberof RemoveNamedRoleRequestBody */ 'userId': string; /** * * @type {RoleNames} * @memberof RemoveNamedRoleRequestBody */ 'roleName': RoleNames; } /** * * @export * @interface RemoveTeammateRequestBody */ export interface RemoveTeammateRequestBody { /** * * @type {RemoveTeammateRequestBodyPrincipal} * @memberof RemoveTeammateRequestBody */ 'principal': RemoveTeammateRequestBodyPrincipal; /** * * @type {RemoveTeammateRequestBodyActor} * @memberof RemoveTeammateRequestBody */ 'actor'?: RemoveTeammateRequestBodyActor; } /** * Actor performing the removal * @export * @interface RemoveTeammateRequestBodyActor */ export interface RemoveTeammateRequestBodyActor { /** * * @type {string} * @memberof RemoveTeammateRequestBodyActor */ 'type': RemoveTeammateRequestBodyActorTypeEnum; /** * * @type {string} * @memberof RemoveTeammateRequestBodyActor */ 'id': string; /** * * @type {string} * @memberof RemoveTeammateRequestBodyActor */ 'name'?: string; /** * * @type {string} * @memberof RemoveTeammateRequestBodyActor */ 'email'?: string; /** * * @type {string} * @memberof RemoveTeammateRequestBodyActor */ 'phone'?: string; } export const RemoveTeammateRequestBodyActorTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type RemoveTeammateRequestBodyActorTypeEnum = typeof RemoveTeammateRequestBodyActorTypeEnum[keyof typeof RemoveTeammateRequestBodyActorTypeEnum]; /** * Principal to remove from the org * @export * @interface RemoveTeammateRequestBodyPrincipal */ export interface RemoveTeammateRequestBodyPrincipal { /** * * @type {string} * @memberof RemoveTeammateRequestBodyPrincipal */ 'type': RemoveTeammateRequestBodyPrincipalTypeEnum; /** * * @type {string} * @memberof RemoveTeammateRequestBodyPrincipal */ 'id': string; /** * * @type {string} * @memberof RemoveTeammateRequestBodyPrincipal */ 'name'?: string; /** * * @type {string} * @memberof RemoveTeammateRequestBodyPrincipal */ 'email'?: string; /** * * @type {string} * @memberof RemoveTeammateRequestBodyPrincipal */ 'phone'?: string; } export const RemoveTeammateRequestBodyPrincipalTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type RemoveTeammateRequestBodyPrincipalTypeEnum = typeof RemoveTeammateRequestBodyPrincipalTypeEnum[keyof typeof RemoveTeammateRequestBodyPrincipalTypeEnum]; /** * Teammate removed from org * @export * @interface RemoveTeammateSuccessResponse */ export interface RemoveTeammateSuccessResponse { /** * * @type {string} * @memberof RemoveTeammateSuccessResponse */ 'message': string; } /** * * @export * @interface RoleAssignmentRequestBody */ export interface RoleAssignmentRequestBody { /** * * @type {RoleAssignmentRequestBodyPrincipal} * @memberof RoleAssignmentRequestBody */ 'principal': RoleAssignmentRequestBodyPrincipal; /** * Role name * @type {string} * @memberof RoleAssignmentRequestBody */ 'roleName': RoleAssignmentRequestBodyRoleNameEnum; /** * Property resource ids (e.g. p123) when scoped to properties * @type {Array} * @memberof RoleAssignmentRequestBody */ 'properties'?: Array; /** * Brand resource ids (e.g. b123) when scoped to brands * @type {Array} * @memberof RoleAssignmentRequestBody */ 'brands'?: Array; /** * Sales channel resource ids (e.g. sc123) when scoped to sales channels * @type {Array} * @memberof RoleAssignmentRequestBody */ 'salesChannels'?: Array; /** * Optional permission set keys to apply to this role assignment * @type {Array} * @memberof RoleAssignmentRequestBody */ 'optionalPermissionSetKeys'?: Array; /** * * @type {RoleAssignmentRequestBodyActor} * @memberof RoleAssignmentRequestBody */ 'actor'?: RoleAssignmentRequestBodyActor; } export const RoleAssignmentRequestBodyRoleNameEnum = { Owner: 'Owner', PropertyOwner: 'PropertyOwner', ManagedOwner: 'ManagedOwner', Integrator: 'Integrator', PropertyManager: 'PropertyManager', FinanceManager: 'FinanceManager', StaffMember: 'StaffMember', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type RoleAssignmentRequestBodyRoleNameEnum = typeof RoleAssignmentRequestBodyRoleNameEnum[keyof typeof RoleAssignmentRequestBodyRoleNameEnum]; /** * Actor making the assignment * @export * @interface RoleAssignmentRequestBodyActor */ export interface RoleAssignmentRequestBodyActor { /** * * @type {string} * @memberof RoleAssignmentRequestBodyActor */ 'type': RoleAssignmentRequestBodyActorTypeEnum; /** * * @type {string} * @memberof RoleAssignmentRequestBodyActor */ 'id': string; /** * * @type {string} * @memberof RoleAssignmentRequestBodyActor */ 'name'?: string; /** * * @type {string} * @memberof RoleAssignmentRequestBodyActor */ 'email'?: string; /** * * @type {string} * @memberof RoleAssignmentRequestBodyActor */ 'phone'?: string; } export const RoleAssignmentRequestBodyActorTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type RoleAssignmentRequestBodyActorTypeEnum = typeof RoleAssignmentRequestBodyActorTypeEnum[keyof typeof RoleAssignmentRequestBodyActorTypeEnum]; /** * Principal to assign the role to * @export * @interface RoleAssignmentRequestBodyPrincipal */ export interface RoleAssignmentRequestBodyPrincipal { /** * * @type {string} * @memberof RoleAssignmentRequestBodyPrincipal */ 'type': RoleAssignmentRequestBodyPrincipalTypeEnum; /** * * @type {string} * @memberof RoleAssignmentRequestBodyPrincipal */ 'id': string; /** * * @type {string} * @memberof RoleAssignmentRequestBodyPrincipal */ 'name'?: string; /** * * @type {string} * @memberof RoleAssignmentRequestBodyPrincipal */ 'email'?: string; /** * * @type {string} * @memberof RoleAssignmentRequestBodyPrincipal */ 'phone'?: string; } export const RoleAssignmentRequestBodyPrincipalTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type RoleAssignmentRequestBodyPrincipalTypeEnum = typeof RoleAssignmentRequestBodyPrincipalTypeEnum[keyof typeof RoleAssignmentRequestBodyPrincipalTypeEnum]; /** * Role assignment applied * @export * @interface RoleAssignmentSuccessResponse */ export interface RoleAssignmentSuccessResponse { /** * * @type {string} * @memberof RoleAssignmentSuccessResponse */ 'message': string; } /** * Permissions granted at a single hierarchy level * @export * @interface RoleLevelDefinition */ export interface RoleLevelDefinition { /** * input grants the permissions on the resources named in the assignment, all grants them on every resource of that level in the org * @type {string} * @memberof RoleLevelDefinition */ 'scope': RoleLevelDefinitionScopeEnum; /** * Permissions granted at this hierarchy level * @type {Array} * @memberof RoleLevelDefinition */ 'permissions': Array; } export const RoleLevelDefinitionScopeEnum = { Input: 'input', All: 'all' } as const; export type RoleLevelDefinitionScopeEnum = typeof RoleLevelDefinitionScopeEnum[keyof typeof RoleLevelDefinitionScopeEnum]; /** * Permissions granted, keyed by hierarchy level * @export * @interface RoleLevels */ export interface RoleLevels { /** * * @type {RoleLevelDefinition} * @memberof RoleLevels */ 'org'?: RoleLevelDefinition; /** * * @type {RoleLevelDefinition} * @memberof RoleLevels */ 'brand'?: RoleLevelDefinition; /** * * @type {RoleLevelDefinition} * @memberof RoleLevels */ 'property'?: RoleLevelDefinition; /** * * @type {RoleLevelDefinition} * @memberof RoleLevels */ 'salesChannel'?: RoleLevelDefinition; /** * * @type {RoleLevelDefinition} * @memberof RoleLevels */ 'global'?: RoleLevelDefinition; /** * * @type {RoleLevelDefinition} * @memberof RoleLevels */ 'self'?: RoleLevelDefinition; } /** * Role names * @export * @enum {string} */ export const RoleNames = { Admin: 'Admin', Factory: 'Factory', AuthDeveloper: 'AuthDeveloper', FlipdishStaff: 'FlipdishStaff' } as const; export type RoleNames = typeof RoleNames[keyof typeof RoleNames]; /** * A temporary timed access grant * @export * @interface TimedAccessGrant */ export interface TimedAccessGrant { /** * * @type {string} * @memberof TimedAccessGrant */ 'grantId': string; /** * * @type {string} * @memberof TimedAccessGrant */ 'principalType': TimedAccessGrantPrincipalTypeEnum; /** * * @type {string} * @memberof TimedAccessGrant */ 'principalId': string; /** * * @type {string} * @memberof TimedAccessGrant */ 'email': string; /** * * @type {string} * @memberof TimedAccessGrant */ 'orgId': string; /** * * @type {string} * @memberof TimedAccessGrant */ 'roleName': string; /** * * @type {Array} * @memberof TimedAccessGrant */ 'propertyIds': Array; /** * * @type {Array} * @memberof TimedAccessGrant */ 'brandIds': Array; /** * * @type {Array} * @memberof TimedAccessGrant */ 'salesChannelIds': Array; /** * * @type {string} * @memberof TimedAccessGrant */ 'startsAt': string; /** * * @type {string} * @memberof TimedAccessGrant */ 'expiresAt': string; /** * * @type {string} * @memberof TimedAccessGrant */ 'status': TimedAccessGrantStatusEnum; } export const TimedAccessGrantPrincipalTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type TimedAccessGrantPrincipalTypeEnum = typeof TimedAccessGrantPrincipalTypeEnum[keyof typeof TimedAccessGrantPrincipalTypeEnum]; export const TimedAccessGrantStatusEnum = { Active: 'active', Expired: 'expired' } as const; export type TimedAccessGrantStatusEnum = typeof TimedAccessGrantStatusEnum[keyof typeof TimedAccessGrantStatusEnum]; /** * * @export * @interface TimedAccessGrantRequestBody */ export interface TimedAccessGrantRequestBody { /** * Must match the authenticated caller * @type {string} * @memberof TimedAccessGrantRequestBody */ 'userId': string; /** * The org to grant temporary access to * @type {string} * @memberof TimedAccessGrantRequestBody */ 'orgId': string; /** * Role the pass grants * @type {string} * @memberof TimedAccessGrantRequestBody */ 'roleName': TimedAccessGrantRequestBodyRoleNameEnum; /** * Optional property scope * @type {Array} * @memberof TimedAccessGrantRequestBody */ 'propertyIds'?: Array; /** * Optional brand scope * @type {Array} * @memberof TimedAccessGrantRequestBody */ 'brandIds'?: Array; /** * Optional sales channel scope * @type {Array} * @memberof TimedAccessGrantRequestBody */ 'salesChannelIds'?: Array; } export const TimedAccessGrantRequestBodyRoleNameEnum = { Owner: 'Owner' } as const; export type TimedAccessGrantRequestBodyRoleNameEnum = typeof TimedAccessGrantRequestBodyRoleNameEnum[keyof typeof TimedAccessGrantRequestBodyRoleNameEnum]; /** * The timed access grant that was created or refreshed * @export * @interface TimedAccessGrantResponse */ export interface TimedAccessGrantResponse { /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'grantId': string; /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'principalType': TimedAccessGrantResponsePrincipalTypeEnum; /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'principalId': string; /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'email': string; /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'orgId': string; /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'roleName': string; /** * * @type {Array} * @memberof TimedAccessGrantResponse */ 'propertyIds': Array; /** * * @type {Array} * @memberof TimedAccessGrantResponse */ 'brandIds': Array; /** * * @type {Array} * @memberof TimedAccessGrantResponse */ 'salesChannelIds': Array; /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'startsAt': string; /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'expiresAt': string; /** * * @type {string} * @memberof TimedAccessGrantResponse */ 'status': TimedAccessGrantResponseStatusEnum; } export const TimedAccessGrantResponsePrincipalTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type TimedAccessGrantResponsePrincipalTypeEnum = typeof TimedAccessGrantResponsePrincipalTypeEnum[keyof typeof TimedAccessGrantResponsePrincipalTypeEnum]; export const TimedAccessGrantResponseStatusEnum = { Active: 'active', Expired: 'expired' } as const; export type TimedAccessGrantResponseStatusEnum = typeof TimedAccessGrantResponseStatusEnum[keyof typeof TimedAccessGrantResponseStatusEnum]; /** * * @export * @interface UnblockPrincipalAccessRequest */ export interface UnblockPrincipalAccessRequest { /** * * @type {AccessBlockStateResponseBlockedPrincipal} * @memberof UnblockPrincipalAccessRequest */ 'principal': AccessBlockStateResponseBlockedPrincipal; } /** * * @export * @interface UnblockPrincipalAccessResponse */ export interface UnblockPrincipalAccessResponse { /** * * @type {AccessBlockStateResponseBlockedPrincipal} * @memberof UnblockPrincipalAccessResponse */ 'principal': AccessBlockStateResponseBlockedPrincipal; /** * * @type {string} * @memberof UnblockPrincipalAccessResponse */ 'status': UnblockPrincipalAccessResponseStatusEnum; } export const UnblockPrincipalAccessResponseStatusEnum = { RestorationInProgress: 'restoration_in_progress', NotBlocked: 'not_blocked' } as const; export type UnblockPrincipalAccessResponseStatusEnum = typeof UnblockPrincipalAccessResponseStatusEnum[keyof typeof UnblockPrincipalAccessResponseStatusEnum]; /** * * @export * @interface UpdateGlobalApiKeyRequest */ export interface UpdateGlobalApiKeyRequest { /** * * @type {string} * @memberof UpdateGlobalApiKeyRequest */ 'name'?: string; /** * * @type {Array} * @memberof UpdateGlobalApiKeyRequest */ 'permissions'?: Array; /** * * @type {AuthorizationRequestResource} * @memberof UpdateGlobalApiKeyRequest */ 'resource'?: AuthorizationRequestResource; /** * * @type {boolean} * @memberof UpdateGlobalApiKeyRequest */ 'global'?: boolean; /** * * @type {string} * @memberof UpdateGlobalApiKeyRequest */ 'expiresAt'?: string; } /** * APIKeysApi - axios parameter creator * @export */ export const APIKeysApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Authenticates the presented Automation API key (x-api-key or Authorization: ApiKey ) and returns status only: 200 when the key is active and not expired, 401 otherwise. Not authenticated by cookie/JWT sessions. * @summary Authenticate API key * @param {*} [options] Override http request option. * @throws {RequiredError} */ authenticateApiKey: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/apiKey/authenticate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create an Automation API key (optional org association). Requires CreateGlobalAPIKey. Raw secret is returned once. * @summary Create global API key * @param {CreateGlobalApiKeyRequest} [createGlobalApiKeyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createGlobalApiKey: async (createGlobalApiKeyRequest?: CreateGlobalApiKeyRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/apiKeys`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createGlobalApiKeyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Self-introspection for the authenticated Automation API key (x-api-key). Returns non-secret fields only. * @summary Get current API key state * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGlobalApiKeyMe: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/apiKeys/me`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys. * @summary List global API keys * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status * @param {*} [options] Override http request option. * @throws {RequiredError} */ listGlobalApiKeys: async (status?: ListGlobalApiKeysStatusEnum, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/apiKeys`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (status !== undefined) { localVarQueryParameter['status'] = status; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Delete the STATIC AVP policy and mark the API key revoked. * @summary Revoke global API key * @param {string} apiKeyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeGlobalApiKey: async (apiKeyId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'apiKeyId' is not null or undefined assertParamExists('revokeGlobalApiKey', 'apiKeyId', apiKeyId) const localVarPath = `/apiKeys/{apiKeyId}/revoke` .replace(`{${"apiKeyId"}}`, encodeURIComponent(String(apiKeyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update permissions, resources, and/or expiry for any Automation API key. Rotates the STATIC AVP policy. * @summary Update global API key * @param {string} apiKeyId * @param {UpdateGlobalApiKeyRequest} [updateGlobalApiKeyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateGlobalApiKey: async (apiKeyId: string, updateGlobalApiKeyRequest?: UpdateGlobalApiKeyRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'apiKeyId' is not null or undefined assertParamExists('updateGlobalApiKey', 'apiKeyId', apiKeyId) const localVarPath = `/apiKeys/{apiKeyId}` .replace(`{${"apiKeyId"}}`, encodeURIComponent(String(apiKeyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateGlobalApiKeyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * APIKeysApi - functional programming interface * @export */ export const APIKeysApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = APIKeysApiAxiosParamCreator(configuration) return { /** * Authenticates the presented Automation API key (x-api-key or Authorization: ApiKey ) and returns status only: 200 when the key is active and not expired, 401 otherwise. Not authenticated by cookie/JWT sessions. * @summary Authenticate API key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async authenticateApiKey(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateApiKey(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['APIKeysApi.authenticateApiKey']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create an Automation API key (optional org association). Requires CreateGlobalAPIKey. Raw secret is returned once. * @summary Create global API key * @param {CreateGlobalApiKeyRequest} [createGlobalApiKeyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createGlobalApiKey(createGlobalApiKeyRequest?: CreateGlobalApiKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createGlobalApiKey(createGlobalApiKeyRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['APIKeysApi.createGlobalApiKey']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Self-introspection for the authenticated Automation API key (x-api-key). Returns non-secret fields only. * @summary Get current API key state * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getGlobalApiKeyMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalApiKeyMe(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['APIKeysApi.getGlobalApiKeyMe']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys. * @summary List global API keys * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listGlobalApiKeys(status, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['APIKeysApi.listGlobalApiKeys']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete the STATIC AVP policy and mark the API key revoked. * @summary Revoke global API key * @param {string} apiKeyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async revokeGlobalApiKey(apiKeyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeGlobalApiKey(apiKeyId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['APIKeysApi.revokeGlobalApiKey']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update permissions, resources, and/or expiry for any Automation API key. Rotates the STATIC AVP policy. * @summary Update global API key * @param {string} apiKeyId * @param {UpdateGlobalApiKeyRequest} [updateGlobalApiKeyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateGlobalApiKey(apiKeyId: string, updateGlobalApiKeyRequest?: UpdateGlobalApiKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateGlobalApiKey(apiKeyId, updateGlobalApiKeyRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['APIKeysApi.updateGlobalApiKey']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * APIKeysApi - factory interface * @export */ export const APIKeysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = APIKeysApiFp(configuration) return { /** * Authenticates the presented Automation API key (x-api-key or Authorization: ApiKey ) and returns status only: 200 when the key is active and not expired, 401 otherwise. Not authenticated by cookie/JWT sessions. * @summary Authenticate API key * @param {*} [options] Override http request option. * @throws {RequiredError} */ authenticateApiKey(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.authenticateApiKey(options).then((request) => request(axios, basePath)); }, /** * Create an Automation API key (optional org association). Requires CreateGlobalAPIKey. Raw secret is returned once. * @summary Create global API key * @param {CreateGlobalApiKeyRequest} [createGlobalApiKeyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createGlobalApiKey(createGlobalApiKeyRequest?: CreateGlobalApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createGlobalApiKey(createGlobalApiKeyRequest, options).then((request) => request(axios, basePath)); }, /** * Self-introspection for the authenticated Automation API key (x-api-key). Returns non-secret fields only. * @summary Get current API key state * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGlobalApiKeyMe(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getGlobalApiKeyMe(options).then((request) => request(axios, basePath)); }, /** * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys. * @summary List global API keys * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status * @param {*} [options] Override http request option. * @throws {RequiredError} */ listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listGlobalApiKeys(status, options).then((request) => request(axios, basePath)); }, /** * Delete the STATIC AVP policy and mark the API key revoked. * @summary Revoke global API key * @param {string} apiKeyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeGlobalApiKey(apiKeyId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.revokeGlobalApiKey(apiKeyId, options).then((request) => request(axios, basePath)); }, /** * Update permissions, resources, and/or expiry for any Automation API key. Rotates the STATIC AVP policy. * @summary Update global API key * @param {string} apiKeyId * @param {UpdateGlobalApiKeyRequest} [updateGlobalApiKeyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateGlobalApiKey(apiKeyId: string, updateGlobalApiKeyRequest?: UpdateGlobalApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateGlobalApiKey(apiKeyId, updateGlobalApiKeyRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * APIKeysApi - object-oriented interface * @export * @class APIKeysApi * @extends {BaseAPI} */ export class APIKeysApi extends BaseAPI { /** * Authenticates the presented Automation API key (x-api-key or Authorization: ApiKey ) and returns status only: 200 when the key is active and not expired, 401 otherwise. Not authenticated by cookie/JWT sessions. * @summary Authenticate API key * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof APIKeysApi */ public authenticateApiKey(options?: RawAxiosRequestConfig) { return APIKeysApiFp(this.configuration).authenticateApiKey(options).then((request) => request(this.axios, this.basePath)); } /** * Create an Automation API key (optional org association). Requires CreateGlobalAPIKey. Raw secret is returned once. * @summary Create global API key * @param {CreateGlobalApiKeyRequest} [createGlobalApiKeyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof APIKeysApi */ public createGlobalApiKey(createGlobalApiKeyRequest?: CreateGlobalApiKeyRequest, options?: RawAxiosRequestConfig) { return APIKeysApiFp(this.configuration).createGlobalApiKey(createGlobalApiKeyRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Self-introspection for the authenticated Automation API key (x-api-key). Returns non-secret fields only. * @summary Get current API key state * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof APIKeysApi */ public getGlobalApiKeyMe(options?: RawAxiosRequestConfig) { return APIKeysApiFp(this.configuration).getGlobalApiKeyMe(options).then((request) => request(this.axios, this.basePath)); } /** * List Automation API keys (non-secret fields). Optional status filter (active|revoked). Requires ListGlobalAPIKeys. * @summary List global API keys * @param {ListGlobalApiKeysStatusEnum} [status] When set, only return keys with this status * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof APIKeysApi */ public listGlobalApiKeys(status?: ListGlobalApiKeysStatusEnum, options?: RawAxiosRequestConfig) { return APIKeysApiFp(this.configuration).listGlobalApiKeys(status, options).then((request) => request(this.axios, this.basePath)); } /** * Delete the STATIC AVP policy and mark the API key revoked. * @summary Revoke global API key * @param {string} apiKeyId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof APIKeysApi */ public revokeGlobalApiKey(apiKeyId: string, options?: RawAxiosRequestConfig) { return APIKeysApiFp(this.configuration).revokeGlobalApiKey(apiKeyId, options).then((request) => request(this.axios, this.basePath)); } /** * Update permissions, resources, and/or expiry for any Automation API key. Rotates the STATIC AVP policy. * @summary Update global API key * @param {string} apiKeyId * @param {UpdateGlobalApiKeyRequest} [updateGlobalApiKeyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof APIKeysApi */ public updateGlobalApiKey(apiKeyId: string, updateGlobalApiKeyRequest?: UpdateGlobalApiKeyRequest, options?: RawAxiosRequestConfig) { return APIKeysApiFp(this.configuration).updateGlobalApiKey(apiKeyId, updateGlobalApiKeyRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const ListGlobalApiKeysStatusEnum = { Active: 'active', Revoked: 'revoked' } as const; export type ListGlobalApiKeysStatusEnum = typeof ListGlobalApiKeysStatusEnum[keyof typeof ListGlobalApiKeysStatusEnum]; /** * AuthenticationApi - axios parameter creator * @export */ export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Authenticate and authorize a user to perform an action * @summary Authenticate and authorize Request * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ authenticateAndAuthorize: async (authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined assertParamExists('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest) const localVarPath = `/authenticateAndAuthorize`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AuthenticationApi - functional programming interface * @export */ export const AuthenticationApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration) return { /** * Authenticate and authorize a user to perform an action * @summary Authenticate and authorize Request * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthenticationApi.authenticateAndAuthorize']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AuthenticationApi - factory interface * @export */ export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AuthenticationApiFp(configuration) return { /** * Authenticate and authorize a user to perform an action * @summary Authenticate and authorize Request * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * AuthenticationApi - object-oriented interface * @export * @class AuthenticationApi * @extends {BaseAPI} */ export class AuthenticationApi extends BaseAPI { /** * Authenticate and authorize a user to perform an action * @summary Authenticate and authorize Request * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthenticationApi */ public authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig) { return AuthenticationApiFp(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * AuthorizationApi - axios parameter creator * @export */ export const AuthorizationApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Authenticate and authorize a user to perform an action * @summary Authenticate and authorize Request * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ authenticateAndAuthorize: async (authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'authenticateAndAuthorizeRequest' is not null or undefined assertParamExists('authenticateAndAuthorize', 'authenticateAndAuthorizeRequest', authenticateAndAuthorizeRequest) const localVarPath = `/authenticateAndAuthorize`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndAuthorizeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Authenticate and check if a user is in any/all of the roles * @summary Authenticate and Check Is In Role * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ authenticateAndCheckIsInRole: async (authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/authenticateAndCheckIsInRole`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(authenticateAndCheckIsInRoleRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check if a user is authorized to perform an action * @summary Authorize Request * @param {AuthorizationRequest} [authorizationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ authorize: async (authorizationRequest?: AuthorizationRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/authorize`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(authorizationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check if a user is authorized to perform an action on multiple resources * @summary Authorize Batch Request * @param {AuthorizationBatchRequest} [authorizationBatchRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ authorizeBatch: async (authorizationBatchRequest?: AuthorizationBatchRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/authorize/batch`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(authorizationBatchRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check whether each principal/resource/action tuple is authorized * @summary Authorize Batch Checks Request * @param {AuthorizationChecksBatchRequest} [authorizationChecksBatchRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ authorizeBatchChecks: async (authorizationChecksBatchRequest?: AuthorizationChecksBatchRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/authorize/batch/checks`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(authorizationChecksBatchRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check if a user is in any/all of the roles * @summary Check Is In Role * @param {IsInRoleRequest} [isInRoleRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkIsInRole: async (isInRoleRequest?: IsInRoleRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/checkIsInRole`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(isInRoleRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AuthorizationApi - functional programming interface * @export */ export const AuthorizationApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AuthorizationApiAxiosParamCreator(configuration) return { /** * Authenticate and authorize a user to perform an action * @summary Authenticate and authorize Request * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authenticateAndAuthorize']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Authenticate and check if a user is in any/all of the roles * @summary Authenticate and Check Is In Role * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authenticateAndCheckIsInRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Check if a user is authorized to perform an action * @summary Authorize Request * @param {AuthorizationRequest} [authorizationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.authorize(authorizationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorize']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Check if a user is authorized to perform an action on multiple resources * @summary Authorize Batch Request * @param {AuthorizationBatchRequest} [authorizationBatchRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeBatch(authorizationBatchRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorizeBatch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Check whether each principal/resource/action tuple is authorized * @summary Authorize Batch Checks Request * @param {AuthorizationChecksBatchRequest} [authorizationChecksBatchRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async authorizeBatchChecks(authorizationChecksBatchRequest?: AuthorizationChecksBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeBatchChecks(authorizationChecksBatchRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorizeBatchChecks']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Check if a user is in any/all of the roles * @summary Check Is In Role * @param {IsInRoleRequest} [isInRoleRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkIsInRole(isInRoleRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.checkIsInRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AuthorizationApi - factory interface * @export */ export const AuthorizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AuthorizationApiFp(configuration) return { /** * Authenticate and authorize a user to perform an action * @summary Authenticate and authorize Request * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(axios, basePath)); }, /** * Authenticate and check if a user is in any/all of the roles * @summary Authenticate and Check Is In Role * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then((request) => request(axios, basePath)); }, /** * Check if a user is authorized to perform an action * @summary Authorize Request * @param {AuthorizationRequest} [authorizationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.authorize(authorizationRequest, options).then((request) => request(axios, basePath)); }, /** * Check if a user is authorized to perform an action on multiple resources * @summary Authorize Batch Request * @param {AuthorizationBatchRequest} [authorizationBatchRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.authorizeBatch(authorizationBatchRequest, options).then((request) => request(axios, basePath)); }, /** * Check whether each principal/resource/action tuple is authorized * @summary Authorize Batch Checks Request * @param {AuthorizationChecksBatchRequest} [authorizationChecksBatchRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ authorizeBatchChecks(authorizationChecksBatchRequest?: AuthorizationChecksBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.authorizeBatchChecks(authorizationChecksBatchRequest, options).then((request) => request(axios, basePath)); }, /** * Check if a user is in any/all of the roles * @summary Check Is In Role * @param {IsInRoleRequest} [isInRoleRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.checkIsInRole(isInRoleRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * AuthorizationApi - object-oriented interface * @export * @class AuthorizationApi * @extends {BaseAPI} */ export class AuthorizationApi extends BaseAPI { /** * Authenticate and authorize a user to perform an action * @summary Authenticate and authorize Request * @param {AuthenticateAndAuthorizeRequest} authenticateAndAuthorizeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizationApi */ public authenticateAndAuthorize(authenticateAndAuthorizeRequest: AuthenticateAndAuthorizeRequest, options?: RawAxiosRequestConfig) { return AuthorizationApiFp(this.configuration).authenticateAndAuthorize(authenticateAndAuthorizeRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Authenticate and check if a user is in any/all of the roles * @summary Authenticate and Check Is In Role * @param {AuthenticateAndCheckIsInRoleRequest} [authenticateAndCheckIsInRoleRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizationApi */ public authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest?: AuthenticateAndCheckIsInRoleRequest, options?: RawAxiosRequestConfig) { return AuthorizationApiFp(this.configuration).authenticateAndCheckIsInRole(authenticateAndCheckIsInRoleRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Check if a user is authorized to perform an action * @summary Authorize Request * @param {AuthorizationRequest} [authorizationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizationApi */ public authorize(authorizationRequest?: AuthorizationRequest, options?: RawAxiosRequestConfig) { return AuthorizationApiFp(this.configuration).authorize(authorizationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Check if a user is authorized to perform an action on multiple resources * @summary Authorize Batch Request * @param {AuthorizationBatchRequest} [authorizationBatchRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizationApi */ public authorizeBatch(authorizationBatchRequest?: AuthorizationBatchRequest, options?: RawAxiosRequestConfig) { return AuthorizationApiFp(this.configuration).authorizeBatch(authorizationBatchRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Check whether each principal/resource/action tuple is authorized * @summary Authorize Batch Checks Request * @param {AuthorizationChecksBatchRequest} [authorizationChecksBatchRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizationApi */ public authorizeBatchChecks(authorizationChecksBatchRequest?: AuthorizationChecksBatchRequest, options?: RawAxiosRequestConfig) { return AuthorizationApiFp(this.configuration).authorizeBatchChecks(authorizationChecksBatchRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Check if a user is in any/all of the roles * @summary Check Is In Role * @param {IsInRoleRequest} [isInRoleRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizationApi */ public checkIsInRole(isInRoleRequest?: IsInRoleRequest, options?: RawAxiosRequestConfig) { return AuthorizationApiFp(this.configuration).checkIsInRole(isInRoleRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * AuthorizedEntitiesApi - axios parameter creator * @export */ export const AuthorizedEntitiesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Get the authorized brands for a given org * @summary Get Authorized Brands * @param {string} orgId * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizedBrands: async (orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('getAuthorizedBrands', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/getAuthorizedBrands` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(getAuthorizedBrandsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the authorized orgs for a given principal * @summary Get Authorized Orgs * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizedOrgs: async (getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getAuthorizedOrgs`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(getAuthorizedOrgsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the authorized properties for a given org * @summary Get Authorized Properties * @param {string} orgId * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizedProperties: async (orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('getAuthorizedProperties', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/getAuthorizedProperties` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(getAuthorizedPropertiesRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AuthorizedEntitiesApi - functional programming interface * @export */ export const AuthorizedEntitiesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AuthorizedEntitiesApiAxiosParamCreator(configuration) return { /** * Get the authorized brands for a given org * @summary Get Authorized Brands * @param {string} orgId * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAuthorizedBrands(orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizedEntitiesApi.getAuthorizedBrands']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the authorized orgs for a given principal * @summary Get Authorized Orgs * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAuthorizedOrgs(getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthorizedOrgs(getAuthorizedOrgsRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizedEntitiesApi.getAuthorizedOrgs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the authorized properties for a given org * @summary Get Authorized Properties * @param {string} orgId * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAuthorizedProperties(orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AuthorizedEntitiesApi.getAuthorizedProperties']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AuthorizedEntitiesApi - factory interface * @export */ export const AuthorizedEntitiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AuthorizedEntitiesApiFp(configuration) return { /** * Get the authorized brands for a given org * @summary Get Authorized Brands * @param {string} orgId * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizedBrands(orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options).then((request) => request(axios, basePath)); }, /** * Get the authorized orgs for a given principal * @summary Get Authorized Orgs * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizedOrgs(getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAuthorizedOrgs(getAuthorizedOrgsRequest, options).then((request) => request(axios, basePath)); }, /** * Get the authorized properties for a given org * @summary Get Authorized Properties * @param {string} orgId * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizedProperties(orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * AuthorizedEntitiesApi - object-oriented interface * @export * @class AuthorizedEntitiesApi * @extends {BaseAPI} */ export class AuthorizedEntitiesApi extends BaseAPI { /** * Get the authorized brands for a given org * @summary Get Authorized Brands * @param {string} orgId * @param {GetAuthorizedBrandsRequest} [getAuthorizedBrandsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizedEntitiesApi */ public getAuthorizedBrands(orgId: string, getAuthorizedBrandsRequest?: GetAuthorizedBrandsRequest, options?: RawAxiosRequestConfig) { return AuthorizedEntitiesApiFp(this.configuration).getAuthorizedBrands(orgId, getAuthorizedBrandsRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Get the authorized orgs for a given principal * @summary Get Authorized Orgs * @param {GetAuthorizedOrgsRequest} [getAuthorizedOrgsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizedEntitiesApi */ public getAuthorizedOrgs(getAuthorizedOrgsRequest?: GetAuthorizedOrgsRequest, options?: RawAxiosRequestConfig) { return AuthorizedEntitiesApiFp(this.configuration).getAuthorizedOrgs(getAuthorizedOrgsRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Get the authorized properties for a given org * @summary Get Authorized Properties * @param {string} orgId * @param {GetAuthorizedPropertiesRequest} [getAuthorizedPropertiesRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizedEntitiesApi */ public getAuthorizedProperties(orgId: string, getAuthorizedPropertiesRequest?: GetAuthorizedPropertiesRequest, options?: RawAxiosRequestConfig) { return AuthorizedEntitiesApiFp(this.configuration).getAuthorizedProperties(orgId, getAuthorizedPropertiesRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * ConfigurationDataApi - axios parameter creator * @export */ export const ConfigurationDataApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * List the available permissions * @summary List Permissions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPermissions: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/config/permissions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List the teammate roles with the permissions they grant at each hierarchy level, including optional permission sets * @summary List Role Definitions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRoleDefinitions: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/config/roleDefinitions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List the available roles * @summary List Roles * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRoles: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/config/roles`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ConfigurationDataApi - functional programming interface * @export */ export const ConfigurationDataApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ConfigurationDataApiAxiosParamCreator(configuration) return { /** * List the available permissions * @summary List Permissions * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listPermissions(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listPermissions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List the teammate roles with the permissions they grant at each hierarchy level, including optional permission sets * @summary List Role Definitions * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listRoleDefinitions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listRoleDefinitions(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listRoleDefinitions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List the available roles * @summary List Roles * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ConfigurationDataApi - factory interface * @export */ export const ConfigurationDataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ConfigurationDataApiFp(configuration) return { /** * List the available permissions * @summary List Permissions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPermissions(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listPermissions(options).then((request) => request(axios, basePath)); }, /** * List the teammate roles with the permissions they grant at each hierarchy level, including optional permission sets * @summary List Role Definitions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRoleDefinitions(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listRoleDefinitions(options).then((request) => request(axios, basePath)); }, /** * List the available roles * @summary List Roles * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRoles(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listRoles(options).then((request) => request(axios, basePath)); }, }; }; /** * ConfigurationDataApi - object-oriented interface * @export * @class ConfigurationDataApi * @extends {BaseAPI} */ export class ConfigurationDataApi extends BaseAPI { /** * List the available permissions * @summary List Permissions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConfigurationDataApi */ public listPermissions(options?: RawAxiosRequestConfig) { return ConfigurationDataApiFp(this.configuration).listPermissions(options).then((request) => request(this.axios, this.basePath)); } /** * List the teammate roles with the permissions they grant at each hierarchy level, including optional permission sets * @summary List Role Definitions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConfigurationDataApi */ public listRoleDefinitions(options?: RawAxiosRequestConfig) { return ConfigurationDataApiFp(this.configuration).listRoleDefinitions(options).then((request) => request(this.axios, this.basePath)); } /** * List the available roles * @summary List Roles * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConfigurationDataApi */ public listRoles(options?: RawAxiosRequestConfig) { return ConfigurationDataApiFp(this.configuration).listRoles(options).then((request) => request(this.axios, this.basePath)); } } /** * JoinAccessApi - axios parameter creator * @export */ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token. * @summary Accept a pending join access request * @param {string} orgId * @param {string} requestId * @param {AcceptJoinRequest} [acceptJoinRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ acceptJoinAccessRequest: async (orgId: string, requestId: string, acceptJoinRequest?: AcceptJoinRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('acceptJoinAccessRequest', 'orgId', orgId) // verify required parameter 'requestId' is not null or undefined assertParamExists('acceptJoinAccessRequest', 'requestId', requestId) const localVarPath = `/orgs/{orgId}/joinRequests/{requestId}/accept` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(acceptJoinRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one. * @summary Create an invite token * @param {string} orgId * @param {CreateInviteTokenRequest} [createInviteTokenRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInviteToken: async (orgId: string, createInviteTokenRequest?: CreateInviteTokenRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('createInviteToken', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/inviteTokens` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createInviteTokenRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Validates the opaque invite token and creates (or returns) a pending AccessRequest for the property/role encoded on the token. * @summary Submit a join access request from an invite token * @param {string} orgId * @param {CreateJoinRequest} [createJoinRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createJoinAccessRequest: async (orgId: string, createJoinRequest?: CreateJoinRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('createJoinAccessRequest', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/joinRequests` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createJoinRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns request status for the authenticated requester only. Owners should use the list endpoint. * @summary Get a join access request by id * @param {string} orgId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getJoinAccessRequest: async (orgId: string, requestId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('getJoinAccessRequest', 'orgId', orgId) // verify required parameter 'requestId' is not null or undefined assertParamExists('getJoinAccessRequest', 'requestId', requestId) const localVarPath = `/orgs/{orgId}/joinRequests/{requestId}` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns pending AccessRequests for an org. Optional propertyId/brandId filters. Requires ViewTeammates on orgId. * @summary List pending join requests for an organization * @param {string} orgId * @param {string} [propertyId] * @param {string} [brandId] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listJoinAccessRequests: async (orgId: string, propertyId?: string, brandId?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('listJoinAccessRequests', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/joinRequests` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (propertyId !== undefined) { localVarQueryParameter['propertyId'] = propertyId; } if (brandId !== undefined) { localVarQueryParameter['brandId'] = brandId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Rejects a pending AccessRequest without granting access. * @summary Reject a pending join access request * @param {string} orgId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ rejectJoinAccessRequest: async (orgId: string, requestId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('rejectJoinAccessRequest', 'orgId', orgId) // verify required parameter 'requestId' is not null or undefined assertParamExists('rejectJoinAccessRequest', 'requestId', requestId) const localVarPath = `/orgs/{orgId}/joinRequests/{requestId}/reject` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * JoinAccessApi - functional programming interface * @export */ export const JoinAccessApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = JoinAccessApiAxiosParamCreator(configuration) return { /** * Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token. * @summary Accept a pending join access request * @param {string} orgId * @param {string} requestId * @param {AcceptJoinRequest} [acceptJoinRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async acceptJoinAccessRequest(orgId: string, requestId: string, acceptJoinRequest?: AcceptJoinRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.acceptJoinAccessRequest']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one. * @summary Create an invite token * @param {string} orgId * @param {CreateInviteTokenRequest} [createInviteTokenRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createInviteToken(orgId: string, createInviteTokenRequest?: CreateInviteTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createInviteToken(orgId, createInviteTokenRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.createInviteToken']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Validates the opaque invite token and creates (or returns) a pending AccessRequest for the property/role encoded on the token. * @summary Submit a join access request from an invite token * @param {string} orgId * @param {CreateJoinRequest} [createJoinRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createJoinAccessRequest(orgId: string, createJoinRequest?: CreateJoinRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createJoinAccessRequest(orgId, createJoinRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.createJoinAccessRequest']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns request status for the authenticated requester only. Owners should use the list endpoint. * @summary Get a join access request by id * @param {string} orgId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJoinAccessRequest(orgId, requestId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.getJoinAccessRequest']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns pending AccessRequests for an org. Optional propertyId/brandId filters. Requires ViewTeammates on orgId. * @summary List pending join requests for an organization * @param {string} orgId * @param {string} [propertyId] * @param {string} [brandId] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listJoinAccessRequests(orgId: string, propertyId?: string, brandId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listJoinAccessRequests(orgId, propertyId, brandId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.listJoinAccessRequests']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Rejects a pending AccessRequest without granting access. * @summary Reject a pending join access request * @param {string} orgId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rejectJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rejectJoinAccessRequest(orgId, requestId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.rejectJoinAccessRequest']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * JoinAccessApi - factory interface * @export */ export const JoinAccessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = JoinAccessApiFp(configuration) return { /** * Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token. * @summary Accept a pending join access request * @param {string} orgId * @param {string} requestId * @param {AcceptJoinRequest} [acceptJoinRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ acceptJoinAccessRequest(orgId: string, requestId: string, acceptJoinRequest?: AcceptJoinRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options).then((request) => request(axios, basePath)); }, /** * Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one. * @summary Create an invite token * @param {string} orgId * @param {CreateInviteTokenRequest} [createInviteTokenRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInviteToken(orgId: string, createInviteTokenRequest?: CreateInviteTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createInviteToken(orgId, createInviteTokenRequest, options).then((request) => request(axios, basePath)); }, /** * Validates the opaque invite token and creates (or returns) a pending AccessRequest for the property/role encoded on the token. * @summary Submit a join access request from an invite token * @param {string} orgId * @param {CreateJoinRequest} [createJoinRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createJoinAccessRequest(orgId: string, createJoinRequest?: CreateJoinRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createJoinAccessRequest(orgId, createJoinRequest, options).then((request) => request(axios, basePath)); }, /** * Returns request status for the authenticated requester only. Owners should use the list endpoint. * @summary Get a join access request by id * @param {string} orgId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getJoinAccessRequest(orgId, requestId, options).then((request) => request(axios, basePath)); }, /** * Returns pending AccessRequests for an org. Optional propertyId/brandId filters. Requires ViewTeammates on orgId. * @summary List pending join requests for an organization * @param {string} orgId * @param {string} [propertyId] * @param {string} [brandId] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listJoinAccessRequests(orgId: string, propertyId?: string, brandId?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listJoinAccessRequests(orgId, propertyId, brandId, options).then((request) => request(axios, basePath)); }, /** * Rejects a pending AccessRequest without granting access. * @summary Reject a pending join access request * @param {string} orgId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ rejectJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rejectJoinAccessRequest(orgId, requestId, options).then((request) => request(axios, basePath)); }, }; }; /** * JoinAccessApi - object-oriented interface * @export * @class JoinAccessApi * @extends {BaseAPI} */ export class JoinAccessApi extends BaseAPI { /** * Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token. * @summary Accept a pending join access request * @param {string} orgId * @param {string} requestId * @param {AcceptJoinRequest} [acceptJoinRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinAccessApi */ public acceptJoinAccessRequest(orgId: string, requestId: string, acceptJoinRequest?: AcceptJoinRequest, options?: RawAxiosRequestConfig) { return JoinAccessApiFp(this.configuration).acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one. * @summary Create an invite token * @param {string} orgId * @param {CreateInviteTokenRequest} [createInviteTokenRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinAccessApi */ public createInviteToken(orgId: string, createInviteTokenRequest?: CreateInviteTokenRequest, options?: RawAxiosRequestConfig) { return JoinAccessApiFp(this.configuration).createInviteToken(orgId, createInviteTokenRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Validates the opaque invite token and creates (or returns) a pending AccessRequest for the property/role encoded on the token. * @summary Submit a join access request from an invite token * @param {string} orgId * @param {CreateJoinRequest} [createJoinRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinAccessApi */ public createJoinAccessRequest(orgId: string, createJoinRequest?: CreateJoinRequest, options?: RawAxiosRequestConfig) { return JoinAccessApiFp(this.configuration).createJoinAccessRequest(orgId, createJoinRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Returns request status for the authenticated requester only. Owners should use the list endpoint. * @summary Get a join access request by id * @param {string} orgId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinAccessApi */ public getJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig) { return JoinAccessApiFp(this.configuration).getJoinAccessRequest(orgId, requestId, options).then((request) => request(this.axios, this.basePath)); } /** * Returns pending AccessRequests for an org. Optional propertyId/brandId filters. Requires ViewTeammates on orgId. * @summary List pending join requests for an organization * @param {string} orgId * @param {string} [propertyId] * @param {string} [brandId] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinAccessApi */ public listJoinAccessRequests(orgId: string, propertyId?: string, brandId?: string, options?: RawAxiosRequestConfig) { return JoinAccessApiFp(this.configuration).listJoinAccessRequests(orgId, propertyId, brandId, options).then((request) => request(this.axios, this.basePath)); } /** * Rejects a pending AccessRequest without granting access. * @summary Reject a pending join access request * @param {string} orgId * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinAccessApi */ public rejectJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig) { return JoinAccessApiFp(this.configuration).rejectJoinAccessRequest(orgId, requestId, options).then((request) => request(this.axios, this.basePath)); } } /** * NamedRolesApi - axios parameter creator * @export */ export const NamedRolesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Grants a user the named role given in the body. The caller must themselves hold a named role, and may only assign roles at or below their own privilege level (see NamedRolePrivilegeLevel in auth-config); AuthDeveloper can never be assigned here, it\'s IaC-only. Idempotent: assigning twice returns the same result. Mirrors /orgs/{orgId}/roleAssignments/apply. * @summary Assign a named role * @param {ApplyNamedRoleRequestBody} [applyNamedRoleRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ applyNamedRole: async (applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/namedRoles/apply`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(applyNamedRoleRequestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * 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. * @summary Remove a named role * @param {RemoveNamedRoleRequestBody} [removeNamedRoleRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeNamedRole: async (removeNamedRoleRequestBody?: RemoveNamedRoleRequestBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/namedRoles/remove`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(removeNamedRoleRequestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * NamedRolesApi - functional programming interface * @export */ export const NamedRolesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = NamedRolesApiAxiosParamCreator(configuration) return { /** * Grants a user the named role given in the body. The caller must themselves hold a named role, and may only assign roles at or below their own privilege level (see NamedRolePrivilegeLevel in auth-config); AuthDeveloper can never be assigned here, it\'s IaC-only. Idempotent: assigning twice returns the same result. Mirrors /orgs/{orgId}/roleAssignments/apply. * @summary Assign a named role * @param {ApplyNamedRoleRequestBody} [applyNamedRoleRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.applyNamedRole(applyNamedRoleRequestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['NamedRolesApi.applyNamedRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * 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. * @summary Remove a named role * @param {RemoveNamedRoleRequestBody} [removeNamedRoleRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removeNamedRole(removeNamedRoleRequestBody?: RemoveNamedRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeNamedRole(removeNamedRoleRequestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['NamedRolesApi.removeNamedRole']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * NamedRolesApi - factory interface * @export */ export const NamedRolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = NamedRolesApiFp(configuration) return { /** * Grants a user the named role given in the body. The caller must themselves hold a named role, and may only assign roles at or below their own privilege level (see NamedRolePrivilegeLevel in auth-config); AuthDeveloper can never be assigned here, it\'s IaC-only. Idempotent: assigning twice returns the same result. Mirrors /orgs/{orgId}/roleAssignments/apply. * @summary Assign a named role * @param {ApplyNamedRoleRequestBody} [applyNamedRoleRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.applyNamedRole(applyNamedRoleRequestBody, options).then((request) => request(axios, basePath)); }, /** * 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. * @summary Remove a named role * @param {RemoveNamedRoleRequestBody} [removeNamedRoleRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeNamedRole(removeNamedRoleRequestBody?: RemoveNamedRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.removeNamedRole(removeNamedRoleRequestBody, options).then((request) => request(axios, basePath)); }, }; }; /** * NamedRolesApi - object-oriented interface * @export * @class NamedRolesApi * @extends {BaseAPI} */ export class NamedRolesApi extends BaseAPI { /** * Grants a user the named role given in the body. The caller must themselves hold a named role, and may only assign roles at or below their own privilege level (see NamedRolePrivilegeLevel in auth-config); AuthDeveloper can never be assigned here, it\'s IaC-only. Idempotent: assigning twice returns the same result. Mirrors /orgs/{orgId}/roleAssignments/apply. * @summary Assign a named role * @param {ApplyNamedRoleRequestBody} [applyNamedRoleRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof NamedRolesApi */ public applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig) { return NamedRolesApiFp(this.configuration).applyNamedRole(applyNamedRoleRequestBody, options).then((request) => request(this.axios, this.basePath)); } /** * 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. * @summary Remove a named role * @param {RemoveNamedRoleRequestBody} [removeNamedRoleRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof NamedRolesApi */ public removeNamedRole(removeNamedRoleRequestBody?: RemoveNamedRoleRequestBody, options?: RawAxiosRequestConfig) { return NamedRolesApiFp(this.configuration).removeNamedRole(removeNamedRoleRequestBody, options).then((request) => request(this.axios, this.basePath)); } } /** * PrincipalAccessBlockApi - axios parameter creator * @export */ export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Write an access_block flag and a temporary AVP forbid so authorization checks DENY. Decision-cache bust is delayed like other grant changes. Grant drain/restore runs asynchronously. Authentication still succeeds. Requires BlockPrincipalAccess. * @summary Block principal access * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ blockPrincipalAccess: async (blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/principals/block`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(blockPrincipalAccessRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the current access block for a principal. Requires BlockPrincipalAccess. * @summary Get principal access block * @param {GetPrincipalAccessBlockTypeEnum} type * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPrincipalAccessBlock: async (type: GetPrincipalAccessBlockTypeEnum, id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'type' is not null or undefined assertParamExists('getPrincipalAccessBlock', 'type', type) // verify required parameter 'id' is not null or undefined assertParamExists('getPrincipalAccessBlock', 'id', id) const localVarPath = `/principals/block`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (type !== undefined) { localVarQueryParameter['type'] = type; } if (id !== undefined) { localVarQueryParameter['id'] = id; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess. * @summary List principal access blocks * @param {ListPrincipalAccessBlocksTypeEnum} [type] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPrincipalAccessBlocks: async (type?: ListPrincipalAccessBlocksTypeEnum, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/principals/blocks`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (type !== undefined) { localVarQueryParameter['type'] = type; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess. * @summary Unblock principal access * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unblockPrincipalAccess: async (unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/principals/unblock`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(unblockPrincipalAccessRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * PrincipalAccessBlockApi - functional programming interface * @export */ export const PrincipalAccessBlockApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PrincipalAccessBlockApiAxiosParamCreator(configuration) return { /** * Write an access_block flag and a temporary AVP forbid so authorization checks DENY. Decision-cache bust is delayed like other grant changes. Grant drain/restore runs asynchronously. Authentication still succeeds. Requires BlockPrincipalAccess. * @summary Block principal access * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.blockPrincipalAccess(blockPrincipalAccessRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.blockPrincipalAccess']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the current access block for a principal. Requires BlockPrincipalAccess. * @summary Get principal access block * @param {GetPrincipalAccessBlockTypeEnum} type * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPrincipalAccessBlock(type, id, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.getPrincipalAccessBlock']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess. * @summary List principal access blocks * @param {ListPrincipalAccessBlocksTypeEnum} [type] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listPrincipalAccessBlocks(type, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.listPrincipalAccessBlocks']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess. * @summary Unblock principal access * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unblockPrincipalAccess(unblockPrincipalAccessRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.unblockPrincipalAccess']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * PrincipalAccessBlockApi - factory interface * @export */ export const PrincipalAccessBlockApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PrincipalAccessBlockApiFp(configuration) return { /** * Write an access_block flag and a temporary AVP forbid so authorization checks DENY. Decision-cache bust is delayed like other grant changes. Grant drain/restore runs asynchronously. Authentication still succeeds. Requires BlockPrincipalAccess. * @summary Block principal access * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(axios, basePath)); }, /** * Get the current access block for a principal. Requires BlockPrincipalAccess. * @summary Get principal access block * @param {GetPrincipalAccessBlockTypeEnum} type * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPrincipalAccessBlock(type, id, options).then((request) => request(axios, basePath)); }, /** * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess. * @summary List principal access blocks * @param {ListPrincipalAccessBlocksTypeEnum} [type] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listPrincipalAccessBlocks(type, options).then((request) => request(axios, basePath)); }, /** * Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess. * @summary Unblock principal access * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * PrincipalAccessBlockApi - object-oriented interface * @export * @class PrincipalAccessBlockApi * @extends {BaseAPI} */ export class PrincipalAccessBlockApi extends BaseAPI { /** * Write an access_block flag and a temporary AVP forbid so authorization checks DENY. Decision-cache bust is delayed like other grant changes. Grant drain/restore runs asynchronously. Authentication still succeeds. Requires BlockPrincipalAccess. * @summary Block principal access * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PrincipalAccessBlockApi */ public blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig) { return PrincipalAccessBlockApiFp(this.configuration).blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Get the current access block for a principal. Requires BlockPrincipalAccess. * @summary Get principal access block * @param {GetPrincipalAccessBlockTypeEnum} type * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PrincipalAccessBlockApi */ public getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig) { return PrincipalAccessBlockApiFp(this.configuration).getPrincipalAccessBlock(type, id, options).then((request) => request(this.axios, this.basePath)); } /** * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess. * @summary List principal access blocks * @param {ListPrincipalAccessBlocksTypeEnum} [type] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PrincipalAccessBlockApi */ public listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig) { return PrincipalAccessBlockApiFp(this.configuration).listPrincipalAccessBlocks(type, options).then((request) => request(this.axios, this.basePath)); } /** * Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess. * @summary Unblock principal access * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PrincipalAccessBlockApi */ public unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig) { return PrincipalAccessBlockApiFp(this.configuration).unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const GetPrincipalAccessBlockTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type GetPrincipalAccessBlockTypeEnum = typeof GetPrincipalAccessBlockTypeEnum[keyof typeof GetPrincipalAccessBlockTypeEnum]; /** * @export */ export const ListPrincipalAccessBlocksTypeEnum = { User: 'User', Automation: 'Automation', Kiosk: 'Kiosk', Terminal: 'Terminal' } as const; export type ListPrincipalAccessBlocksTypeEnum = typeof ListPrincipalAccessBlocksTypeEnum[keyof typeof ListPrincipalAccessBlocksTypeEnum]; /** * RoleAssignmentApi - axios parameter creator * @export */ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows. * @summary Apply role assignment * @param {string} orgId * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ applyRoleAssignment: async (orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('applyRoleAssignment', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/roleAssignments/apply` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(roleAssignmentRequestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits * @summary Rematerialize Role Assignment * @param {string} orgId * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rematerializeRoleAssignmentV2: async (orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('rematerializeRoleAssignmentV2', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/roleAssignments/rematerialize` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus. * @summary Remove teammate * @param {string} orgId * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeTeammate: async (orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('removeTeammate', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/roleAssignments/remove` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(removeTeammateRequestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * RoleAssignmentApi - functional programming interface * @export */ export const RoleAssignmentApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = RoleAssignmentApiAxiosParamCreator(configuration) return { /** * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows. * @summary Apply role assignment * @param {string} orgId * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.applyRoleAssignment(orgId, roleAssignmentRequestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.applyRoleAssignment']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits * @summary Rematerialize Role Assignment * @param {string} orgId * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus. * @summary Remove teammate * @param {string} orgId * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeTeammate(orgId, removeTeammateRequestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.removeTeammate']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * RoleAssignmentApi - factory interface * @export */ export const RoleAssignmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = RoleAssignmentApiFp(configuration) return { /** * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows. * @summary Apply role assignment * @param {string} orgId * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then((request) => request(axios, basePath)); }, /** * Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits * @summary Rematerialize Role Assignment * @param {string} orgId * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then((request) => request(axios, basePath)); }, /** * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus. * @summary Remove teammate * @param {string} orgId * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(axios, basePath)); }, }; }; /** * RoleAssignmentApi - object-oriented interface * @export * @class RoleAssignmentApi * @extends {BaseAPI} */ export class RoleAssignmentApi extends BaseAPI { /** * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows. * @summary Apply role assignment * @param {string} orgId * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RoleAssignmentApi */ public applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig) { return RoleAssignmentApiFp(this.configuration).applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath)); } /** * Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits * @summary Rematerialize Role Assignment * @param {string} orgId * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RoleAssignmentApi */ public rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) { return RoleAssignmentApiFp(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath)); } /** * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus. * @summary Remove teammate * @param {string} orgId * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RoleAssignmentApi */ public removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig) { return RoleAssignmentApiFp(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(this.axios, this.basePath)); } } /** * TimedAccessApi - axios parameter creator * @export */ export const TimedAccessApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one. * @summary Create a timed access pass * @param {string} orgId * @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTimedAccessGrant: async (orgId: string, timedAccessGrantRequestBody?: TimedAccessGrantRequestBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('createTimedAccessGrant', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/timedAccess/grants` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(timedAccessGrantRequestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the org’s expired timed access passes, most recent first. Intended for client-facing visibility into Flipdish staff access to their org, not for the staff member themselves. * @summary An org\'s expired timed access grant history * @param {string} orgId * @param {number} [limit] Page size, defaults to a server-chosen value * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous page * @param {*} [options] Override http request option. * @throws {RequiredError} */ listExpiredTimedAccessGrantsForOrg: async (orgId: string, limit?: number, cursor?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('listExpiredTimedAccessGrantsForOrg', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/timedAccess/grants/expired` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (cursor !== undefined) { localVarQueryParameter['cursor'] = cursor; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the authenticated caller\'s active pass for the requested org. * @summary List the caller\'s active timed access pass for an org * @param {string} orgId * @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context * @param {*} [options] Override http request option. * @throws {RequiredError} */ listMyTimedAccessGrants: async (orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('listMyTimedAccessGrants', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/timedAccess/grants` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (status !== undefined) { localVarQueryParameter['status'] = status; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * TimedAccessApi - functional programming interface * @export */ export const TimedAccessApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TimedAccessApiAxiosParamCreator(configuration) return { /** * Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one. * @summary Create a timed access pass * @param {string} orgId * @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createTimedAccessGrant(orgId: string, timedAccessGrantRequestBody?: TimedAccessGrantRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TimedAccessApi.createTimedAccessGrant']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the org’s expired timed access passes, most recent first. Intended for client-facing visibility into Flipdish staff access to their org, not for the staff member themselves. * @summary An org\'s expired timed access grant history * @param {string} orgId * @param {number} [limit] Page size, defaults to a server-chosen value * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous page * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listExpiredTimedAccessGrantsForOrg(orgId: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listExpiredTimedAccessGrantsForOrg(orgId, limit, cursor, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TimedAccessApi.listExpiredTimedAccessGrantsForOrg']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the authenticated caller\'s active pass for the requested org. * @summary List the caller\'s active timed access pass for an org * @param {string} orgId * @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listMyTimedAccessGrants(orgId, status, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TimedAccessApi.listMyTimedAccessGrants']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * TimedAccessApi - factory interface * @export */ export const TimedAccessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TimedAccessApiFp(configuration) return { /** * Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one. * @summary Create a timed access pass * @param {string} orgId * @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTimedAccessGrant(orgId: string, timedAccessGrantRequestBody?: TimedAccessGrantRequestBody, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options).then((request) => request(axios, basePath)); }, /** * Returns the org’s expired timed access passes, most recent first. Intended for client-facing visibility into Flipdish staff access to their org, not for the staff member themselves. * @summary An org\'s expired timed access grant history * @param {string} orgId * @param {number} [limit] Page size, defaults to a server-chosen value * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous page * @param {*} [options] Override http request option. * @throws {RequiredError} */ listExpiredTimedAccessGrantsForOrg(orgId: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listExpiredTimedAccessGrantsForOrg(orgId, limit, cursor, options).then((request) => request(axios, basePath)); }, /** * Returns the authenticated caller\'s active pass for the requested org. * @summary List the caller\'s active timed access pass for an org * @param {string} orgId * @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context * @param {*} [options] Override http request option. * @throws {RequiredError} */ listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listMyTimedAccessGrants(orgId, status, options).then((request) => request(axios, basePath)); }, }; }; /** * TimedAccessApi - object-oriented interface * @export * @class TimedAccessApi * @extends {BaseAPI} */ export class TimedAccessApi extends BaseAPI { /** * Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one. * @summary Create a timed access pass * @param {string} orgId * @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TimedAccessApi */ public createTimedAccessGrant(orgId: string, timedAccessGrantRequestBody?: TimedAccessGrantRequestBody, options?: RawAxiosRequestConfig) { return TimedAccessApiFp(this.configuration).createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the org’s expired timed access passes, most recent first. Intended for client-facing visibility into Flipdish staff access to their org, not for the staff member themselves. * @summary An org\'s expired timed access grant history * @param {string} orgId * @param {number} [limit] Page size, defaults to a server-chosen value * @param {string} [cursor] Opaque pagination cursor returned as nextCursor on a previous page * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TimedAccessApi */ public listExpiredTimedAccessGrantsForOrg(orgId: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) { return TimedAccessApiFp(this.configuration).listExpiredTimedAccessGrantsForOrg(orgId, limit, cursor, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the authenticated caller\'s active pass for the requested org. * @summary List the caller\'s active timed access pass for an org * @param {string} orgId * @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TimedAccessApi */ public listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig) { return TimedAccessApiFp(this.configuration).listMyTimedAccessGrants(orgId, status, options).then((request) => request(this.axios, this.basePath)); } } /** * @export */ export const ListMyTimedAccessGrantsStatusEnum = { Active: 'active' } as const; export type ListMyTimedAccessGrantsStatusEnum = typeof ListMyTimedAccessGrantsStatusEnum[keyof typeof ListMyTimedAccessGrantsStatusEnum]; /** * UserManagementApi - axios parameter creator * @export */ export const UserManagementApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * List the users in a given org * @summary List Users in Org * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUsersInOrg: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('listUsersInOrg', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/users` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * UserManagementApi - functional programming interface * @export */ export const UserManagementApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = UserManagementApiAxiosParamCreator(configuration) return { /** * List the users in a given org * @summary List Users in Org * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrg(orgId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrg']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * UserManagementApi - factory interface * @export */ export const UserManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = UserManagementApiFp(configuration) return { /** * List the users in a given org * @summary List Users in Org * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listUsersInOrg(orgId, options).then((request) => request(axios, basePath)); }, }; }; /** * UserManagementApi - object-oriented interface * @export * @class UserManagementApi * @extends {BaseAPI} */ export class UserManagementApi extends BaseAPI { /** * List the users in a given org * @summary List Users in Org * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserManagementApi */ public listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig) { return UserManagementApiFp(this.configuration).listUsersInOrg(orgId, options).then((request) => request(this.axios, this.basePath)); } } /** * UserPermissionsApi - axios parameter creator * @export */ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * List the current permission assignments in the org * @summary List Org Permissions * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listOrgPermissions: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('listOrgPermissions', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/permissions` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List the current roles assignments in the org * @summary List Org Roles * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listOrgRoles: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('listOrgRoles', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/roles` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List the available permissions for the current user * @summary List Own Permissions * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listOwnPermissions: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('listOwnPermissions', 'orgId', orgId) const localVarPath = `/orgs/{orgId}/user/permissions` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List the available permissions for a given user * @summary List User Permissions * @param {string} orgId * @param {string} userId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUserPermissions: async (orgId: string, userId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgId' is not null or undefined assertParamExists('listUserPermissions', 'orgId', orgId) // verify required parameter 'userId' is not null or undefined assertParamExists('listUserPermissions', 'userId', userId) const localVarPath = `/orgs/{orgId}/user/{userId}/permissions` .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) .replace(`{${"userId"}}`, encodeURIComponent(String(userId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * UserPermissionsApi - functional programming interface * @export */ export const UserPermissionsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = UserPermissionsApiAxiosParamCreator(configuration) return { /** * List the current permission assignments in the org * @summary List Org Permissions * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgPermissions(orgId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgPermissions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List the current roles assignments in the org * @summary List Org Roles * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgRoles(orgId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgRoles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List the available permissions for the current user * @summary List Own Permissions * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOwnPermissions(orgId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOwnPermissions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List the available permissions for a given user * @summary List User Permissions * @param {string} orgId * @param {string} userId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPermissions(orgId, userId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listUserPermissions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * UserPermissionsApi - factory interface * @export */ export const UserPermissionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = UserPermissionsApiFp(configuration) return { /** * List the current permission assignments in the org * @summary List Org Permissions * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }> { return localVarFp.listOrgPermissions(orgId, options).then((request) => request(axios, basePath)); }, /** * List the current roles assignments in the org * @summary List Org Roles * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }> { return localVarFp.listOrgRoles(orgId, options).then((request) => request(axios, basePath)); }, /** * List the available permissions for the current user * @summary List Own Permissions * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listOwnPermissions(orgId, options).then((request) => request(axios, basePath)); }, /** * List the available permissions for a given user * @summary List User Permissions * @param {string} orgId * @param {string} userId * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listUserPermissions(orgId, userId, options).then((request) => request(axios, basePath)); }, }; }; /** * UserPermissionsApi - object-oriented interface * @export * @class UserPermissionsApi * @extends {BaseAPI} */ export class UserPermissionsApi extends BaseAPI { /** * List the current permission assignments in the org * @summary List Org Permissions * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserPermissionsApi */ public listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig) { return UserPermissionsApiFp(this.configuration).listOrgPermissions(orgId, options).then((request) => request(this.axios, this.basePath)); } /** * List the current roles assignments in the org * @summary List Org Roles * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserPermissionsApi */ public listOrgRoles(orgId: string, options?: RawAxiosRequestConfig) { return UserPermissionsApiFp(this.configuration).listOrgRoles(orgId, options).then((request) => request(this.axios, this.basePath)); } /** * List the available permissions for the current user * @summary List Own Permissions * @param {string} orgId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserPermissionsApi */ public listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig) { return UserPermissionsApiFp(this.configuration).listOwnPermissions(orgId, options).then((request) => request(this.axios, this.basePath)); } /** * List the available permissions for a given user * @summary List User Permissions * @param {string} orgId * @param {string} userId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserPermissionsApi */ public listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig) { return UserPermissionsApiFp(this.configuration).listUserPermissions(orgId, userId, options).then((request) => request(this.axios, this.basePath)); } }