From 301486e8c905342164437c5c236ec4cdb24be4c0 Mon Sep 17 00:00:00 2001 From: Samuel Date: Wed, 26 Jun 2024 17:47:36 +0200 Subject: [PATCH] Add client id guard to auth request endpoints (#361) --- apps/armory/src/armory.constant.ts | 2 +- .../http/rest/controller/client.controller.ts | 4 +- .../rest/controller/data-store.controller.ts | 8 +- .../authorization-request.controller.ts | 12 +- .../src/orchestration/orchestration.module.ts | 7 +- ...orator.ts => api-admin-guard.decorator.ts} | 2 +- .../api-client-id-guard.decorator.ts | 15 + .../decorator/api-client-id.decorator.ts | 13 - ...s => api-client-secret-guard.decorator.ts} | 4 +- .../src/shared/guard/client-id.guard.ts | 33 + .../rest/controller/account.controller.ts | 1 + packages/armory-sdk/src/lib/auth/client.ts | 2 +- packages/armory-sdk/src/lib/auth/type.ts | 2 +- .../armory-sdk/src/lib/data-store/client.ts | 4 +- .../armory-sdk/src/lib/data-store/type.ts | 2 +- .../armory-sdk/src/lib/http/client/README.md | 4 + .../src/lib/http/client/auth/api.ts | 6726 ++++++++--------- .../src/lib/http/client/vault/api.ts | 28 +- packages/armory-sdk/src/lib/vault/type.ts | 2 +- 19 files changed, 3342 insertions(+), 3529 deletions(-) rename apps/armory/src/shared/decorator/{admin-guard.decorator.ts => api-admin-guard.decorator.ts} (92%) create mode 100644 apps/armory/src/shared/decorator/api-client-id-guard.decorator.ts delete mode 100644 apps/armory/src/shared/decorator/api-client-id.decorator.ts rename apps/armory/src/shared/decorator/{client-guard.decorator.ts => api-client-secret-guard.decorator.ts} (81%) create mode 100644 apps/armory/src/shared/guard/client-id.guard.ts diff --git a/apps/armory/src/armory.constant.ts b/apps/armory/src/armory.constant.ts index 58ad526e3..18254c696 100644 --- a/apps/armory/src/armory.constant.ts +++ b/apps/armory/src/armory.constant.ts @@ -58,7 +58,7 @@ export const REQUEST_HEADER_API_KEY = 'x-api-key' // export const ADMIN_SECURITY = adminApiKeySecurity(REQUEST_HEADER_API_KEY) -export const CLIENT_ID_SECURITY = clientIdSecurity(REQUEST_HEADER_CLIENT_SECRET) +export const CLIENT_ID_SECURITY = clientIdSecurity(REQUEST_HEADER_CLIENT_ID) export const CLIENT_SECRET_SECURITY = clientSecretSecurity(REQUEST_HEADER_CLIENT_SECRET) // diff --git a/apps/armory/src/client/http/rest/controller/client.controller.ts b/apps/armory/src/client/http/rest/controller/client.controller.ts index abdab9c90..9a37400de 100644 --- a/apps/armory/src/client/http/rest/controller/client.controller.ts +++ b/apps/armory/src/client/http/rest/controller/client.controller.ts @@ -1,6 +1,6 @@ import { Body, Controller, HttpStatus, Post } from '@nestjs/common' import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger' -import { AdminGuard } from '../../../../shared/decorator/admin-guard.decorator' +import { ApiAdminGuard } from '../../../../shared/decorator/api-admin-guard.decorator' import { ClientService } from '../../../core/service/client.service' import { CreateClientRequestDto, CreateClientResponseDto } from '../dto/create-client.dto' @@ -10,7 +10,7 @@ export class ClientController { constructor(private clientService: ClientService) {} @Post() - @AdminGuard() + @ApiAdminGuard() @ApiOperation({ summary: 'Creates a new client' }) diff --git a/apps/armory/src/managed-data-store/http/rest/controller/data-store.controller.ts b/apps/armory/src/managed-data-store/http/rest/controller/data-store.controller.ts index d2c6bad44..d6bb2fadd 100644 --- a/apps/armory/src/managed-data-store/http/rest/controller/data-store.controller.ts +++ b/apps/armory/src/managed-data-store/http/rest/controller/data-store.controller.ts @@ -2,8 +2,8 @@ import { Criterion, EntityUtil, Then, UserRole } from '@narval/policy-engine-sha import { Body, Controller, Get, HttpCode, HttpStatus, Post, Query, UseGuards } from '@nestjs/common' import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger' import { ClusterService } from '../../../../policy-engine/core/service/cluster.service' +import { ApiClientSecretGuard } from '../../../../shared/decorator/api-client-secret-guard.decorator' import { ClientId } from '../../../../shared/decorator/client-id.decorator' -import { ClientSecretGuard } from '../../../../shared/guard/client-secret.guard' import { EntityDataStoreService } from '../../../core/service/entity-data-store.service' import { PolicyDataStoreService } from '../../../core/service/policy-data-store.service' import { DataStoreGuard } from '../../../shared/guard/data-store.guard' @@ -23,6 +23,7 @@ export class DataStoreController { ) {} @Get('/entities') + @UseGuards(DataStoreGuard) @ApiOperation({ summary: 'Gets the client entities' }) @@ -30,7 +31,6 @@ export class DataStoreController { status: HttpStatus.OK, type: EntityDataStoreDto }) - @UseGuards(DataStoreGuard) async getEntities(@Query('clientId') clientId: string): Promise { const entity = await this.entityDataStoreService.getEntities(clientId) @@ -47,6 +47,7 @@ export class DataStoreController { } @Get('/policies') + @UseGuards(DataStoreGuard) @ApiOperation({ summary: 'Gets the client policies' }) @@ -54,7 +55,6 @@ export class DataStoreController { status: HttpStatus.OK, type: PolicyDataStoreDto }) - @UseGuards(DataStoreGuard) async getPolicies(@Query('clientId') clientId: string): Promise { const policy = await this.policyDataStoreService.getPolicies(clientId) @@ -110,8 +110,8 @@ export class DataStoreController { } @Post('/sync') + @ApiClientSecretGuard() @HttpCode(HttpStatus.OK) - @UseGuards(ClientSecretGuard) @ApiOperation({ summary: 'Sync the client data store with the engine cluster' }) diff --git a/apps/armory/src/orchestration/http/rest/controller/authorization-request.controller.ts b/apps/armory/src/orchestration/http/rest/controller/authorization-request.controller.ts index 71dbc7b0f..2e859d3e5 100644 --- a/apps/armory/src/orchestration/http/rest/controller/authorization-request.controller.ts +++ b/apps/armory/src/orchestration/http/rest/controller/authorization-request.controller.ts @@ -1,6 +1,6 @@ import { Body, Controller, Get, HttpStatus, NotFoundException, Param, Post } from '@nestjs/common' -import { ApiHeader, ApiOperation, ApiResponse, ApiSecurity, ApiTags } from '@nestjs/swagger' -import { REQUEST_HEADER_CLIENT_ID } from '../../../../../src/armory.constant' +import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger' +import { ApiClientIdGuard } from '../../../../shared/decorator/api-client-id-guard.decorator' import { ClientId } from '../../../../shared/decorator/client-id.decorator' import { ErrorResponseDto } from '../../../../shared/dto/error-response.dto' import { AuthorizationRequestService } from '../../../core/service/authorization-request.service' @@ -14,14 +14,10 @@ export class AuthorizationRequestController { constructor(private authorizationRequestService: AuthorizationRequestService) {} @Post('/') - @ApiSecurity('CLIENT_ID') + @ApiClientIdGuard() @ApiOperation({ summary: 'Submits a new authorization request for evaluation by the policy engine' }) - @ApiHeader({ - name: REQUEST_HEADER_CLIENT_ID, - required: true - }) @ApiResponse({ description: 'The authorization request has been successfully submitted for evaluation', status: HttpStatus.CREATED, @@ -37,6 +33,7 @@ export class AuthorizationRequestController { } @Get('/:id') + @ApiClientIdGuard() @ApiOperation({ summary: 'Gets an authorization request by ID' }) @@ -61,6 +58,7 @@ export class AuthorizationRequestController { } @Post('/:id/approvals') + @ApiClientIdGuard() @ApiOperation({ summary: 'Approves an authorization request' }) diff --git a/apps/armory/src/orchestration/orchestration.module.ts b/apps/armory/src/orchestration/orchestration.module.ts index d4539472f..2336d42e6 100644 --- a/apps/armory/src/orchestration/orchestration.module.ts +++ b/apps/armory/src/orchestration/orchestration.module.ts @@ -6,9 +6,12 @@ import { BullModule } from '@nestjs/bull' import { Module } from '@nestjs/common' import { load } from '../armory.config' import { AUTHORIZATION_REQUEST_PROCESSING_QUEUE, DEFAULT_HTTP_MODULE_PROVIDERS } from '../armory.constant' +import { ClientModule } from '../client/client.module' import { DataFeedModule } from '../data-feed/data-feed.module' import { PolicyEngineModule } from '../policy-engine/policy-engine.module' import { PriceModule } from '../price/price.module' +import { ClientIdGuard } from '../shared/guard/client-id.guard' +import { ClientSecretGuard } from '../shared/guard/client-secret.guard' import { PersistenceModule } from '../shared/module/persistence/persistence.module' import { TransferTrackingModule } from '../transfer-tracking/transfer-tracking.module' import { AuthorizationRequestService } from './core/service/authorization-request.service' @@ -34,13 +37,15 @@ const INFRASTRUCTURE_MODULES = [ }) ] -const DOMAIN_MODULES = [TransferTrackingModule, PriceModule, DataFeedModule, PolicyEngineModule] +const DOMAIN_MODULES = [ClientModule, TransferTrackingModule, PriceModule, DataFeedModule, PolicyEngineModule] @Module({ imports: [...INFRASTRUCTURE_MODULES, ...DOMAIN_MODULES], controllers: [AuthorizationRequestController], providers: [ ...DEFAULT_HTTP_MODULE_PROVIDERS, + ClientIdGuard, + ClientSecretGuard, AuthorizationRequestService, AuthorizationRequestRepository, AuthorizationRequestProcessingConsumer, diff --git a/apps/armory/src/shared/decorator/admin-guard.decorator.ts b/apps/armory/src/shared/decorator/api-admin-guard.decorator.ts similarity index 92% rename from apps/armory/src/shared/decorator/admin-guard.decorator.ts rename to apps/armory/src/shared/decorator/api-admin-guard.decorator.ts index b0e00e834..a9c748a35 100644 --- a/apps/armory/src/shared/decorator/admin-guard.decorator.ts +++ b/apps/armory/src/shared/decorator/api-admin-guard.decorator.ts @@ -3,7 +3,7 @@ import { ApiHeader, ApiSecurity } from '@nestjs/swagger' import { ADMIN_SECURITY, REQUEST_HEADER_API_KEY } from '../../armory.constant' import { AdminApiKeyGuard } from '../guard/admin-api-key.guard' -export function AdminGuard() { +export function ApiAdminGuard() { return applyDecorators( UseGuards(AdminApiKeyGuard), ApiSecurity(ADMIN_SECURITY.name), diff --git a/apps/armory/src/shared/decorator/api-client-id-guard.decorator.ts b/apps/armory/src/shared/decorator/api-client-id-guard.decorator.ts new file mode 100644 index 000000000..290d2077f --- /dev/null +++ b/apps/armory/src/shared/decorator/api-client-id-guard.decorator.ts @@ -0,0 +1,15 @@ +import { UseGuards, applyDecorators } from '@nestjs/common' +import { ApiHeader, ApiSecurity } from '@nestjs/swagger' +import { CLIENT_ID_SECURITY, REQUEST_HEADER_CLIENT_ID } from '../../armory.constant' +import { ClientIdGuard } from '../guard/client-id.guard' + +export function ApiClientIdGuard() { + return applyDecorators( + UseGuards(ClientIdGuard), + ApiSecurity(CLIENT_ID_SECURITY.name), + ApiHeader({ + name: REQUEST_HEADER_CLIENT_ID, + required: true + }) + ) +} diff --git a/apps/armory/src/shared/decorator/api-client-id.decorator.ts b/apps/armory/src/shared/decorator/api-client-id.decorator.ts deleted file mode 100644 index 323856681..000000000 --- a/apps/armory/src/shared/decorator/api-client-id.decorator.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { applyDecorators } from '@nestjs/common' -import { ApiHeader, ApiSecurity } from '@nestjs/swagger' -import { CLIENT_SECRET_SECURITY, REQUEST_HEADER_CLIENT_ID } from '../../armory.constant' - -export function ApiClientId() { - return applyDecorators( - ApiSecurity(CLIENT_SECRET_SECURITY.name), - ApiHeader({ - name: REQUEST_HEADER_CLIENT_ID, - required: true - }) - ) -} diff --git a/apps/armory/src/shared/decorator/client-guard.decorator.ts b/apps/armory/src/shared/decorator/api-client-secret-guard.decorator.ts similarity index 81% rename from apps/armory/src/shared/decorator/client-guard.decorator.ts rename to apps/armory/src/shared/decorator/api-client-secret-guard.decorator.ts index b635ec9a0..22e398b6d 100644 --- a/apps/armory/src/shared/decorator/client-guard.decorator.ts +++ b/apps/armory/src/shared/decorator/api-client-secret-guard.decorator.ts @@ -2,12 +2,10 @@ import { UseGuards, applyDecorators } from '@nestjs/common' import { ApiHeader, ApiSecurity } from '@nestjs/swagger' import { CLIENT_SECRET_SECURITY, REQUEST_HEADER_CLIENT_SECRET } from '../../armory.constant' import { ClientSecretGuard } from '../guard/client-secret.guard' -import { ApiClientId } from './api-client-id.decorator' -export function ClientGuard() { +export function ApiClientSecretGuard() { return applyDecorators( UseGuards(ClientSecretGuard), - ApiClientId(), ApiSecurity(CLIENT_SECRET_SECURITY.name), ApiHeader({ required: true, diff --git a/apps/armory/src/shared/guard/client-id.guard.ts b/apps/armory/src/shared/guard/client-id.guard.ts new file mode 100644 index 000000000..a2e6e0866 --- /dev/null +++ b/apps/armory/src/shared/guard/client-id.guard.ts @@ -0,0 +1,33 @@ +import { CanActivate, ExecutionContext, HttpStatus, Injectable } from '@nestjs/common' +import { REQUEST_HEADER_CLIENT_ID } from '../../armory.constant' +import { ClientService } from '../../client/core/service/client.service' +import { ApplicationException } from '../exception/application.exception' + +@Injectable() +export class ClientIdGuard implements CanActivate { + constructor(private clientService: ClientService) {} + + async canActivate(context: ExecutionContext): Promise { + const req = context.switchToHttp().getRequest() + + const clientId = req.headers[REQUEST_HEADER_CLIENT_ID] + + if (!clientId) { + throw new ApplicationException({ + message: `Missing or invalid ${REQUEST_HEADER_CLIENT_ID} header`, + suggestedHttpStatusCode: HttpStatus.UNAUTHORIZED + }) + } + + const client = await this.clientService.findById(clientId) + + if (!client) { + throw new ApplicationException({ + message: `Client not found for ${REQUEST_HEADER_CLIENT_ID} header`, + suggestedHttpStatusCode: HttpStatus.NOT_FOUND + }) + } + + return true + } +} diff --git a/apps/vault/src/vault/http/rest/controller/account.controller.ts b/apps/vault/src/vault/http/rest/controller/account.controller.ts index 93178b656..f9f2e0c50 100644 --- a/apps/vault/src/vault/http/rest/controller/account.controller.ts +++ b/apps/vault/src/vault/http/rest/controller/account.controller.ts @@ -31,6 +31,7 @@ export class AccountController { @ApiOperation({ summary: 'Lists the client accounts' }) + @PermissionGuard(Permission.WALLET_READ) @ApiResponse({ status: HttpStatus.CREATED, type: AccountsDto diff --git a/packages/armory-sdk/src/lib/auth/client.ts b/packages/armory-sdk/src/lib/auth/client.ts index 4d74a7e7f..a2e62b9c4 100644 --- a/packages/armory-sdk/src/lib/auth/client.ts +++ b/packages/armory-sdk/src/lib/auth/client.ts @@ -133,7 +133,7 @@ export class AuthClient { * @returns A Promise that resolves to the retrieved AuthorizationResponseDto. */ async getAuthorizationById(id: string): Promise { - const { data } = await this.authorizationHttp.getById(id) + const { data } = await this.authorizationHttp.getById(this.config.clientId, id) return data } diff --git a/packages/armory-sdk/src/lib/auth/type.ts b/packages/armory-sdk/src/lib/auth/type.ts index e73e9453d..d2952cf45 100644 --- a/packages/armory-sdk/src/lib/auth/type.ts +++ b/packages/armory-sdk/src/lib/auth/type.ts @@ -54,7 +54,7 @@ export type AuthorizationHttp = { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getById(id: string, options?: RawAxiosRequestConfig): AxiosPromise + getById(id: string, clientId: string, options?: RawAxiosRequestConfig): AxiosPromise } export type AuthClientHttp = { diff --git a/packages/armory-sdk/src/lib/data-store/client.ts b/packages/armory-sdk/src/lib/data-store/client.ts index 1e1285ea9..a4c1f51b2 100644 --- a/packages/armory-sdk/src/lib/data-store/client.ts +++ b/packages/armory-sdk/src/lib/data-store/client.ts @@ -116,7 +116,7 @@ export class EntityStoreClient { async sync(): Promise { assert(this.config.clientSecret !== undefined, 'Missing clientSecret') - const { data } = await this.dataStoreHttp.sync({ + const { data } = await this.dataStoreHttp.sync(this.config.clientSecret, { headers: { [REQUEST_HEADER_CLIENT_ID]: this.config.clientId, [REQUEST_HEADER_CLIENT_SECRET]: this.config.clientSecret @@ -205,7 +205,7 @@ export class PolicyStoreClient { async sync(): Promise { assert(this.config.clientSecret !== undefined, 'Missing clientSecret') - const { data } = await this.dataStoreHttp.sync({ + const { data } = await this.dataStoreHttp.sync(this.config.clientSecret, { headers: { [REQUEST_HEADER_CLIENT_ID]: this.config.clientId, [REQUEST_HEADER_CLIENT_SECRET]: this.config.clientSecret diff --git a/packages/armory-sdk/src/lib/data-store/type.ts b/packages/armory-sdk/src/lib/data-store/type.ts index 585e494fa..d466d1553 100644 --- a/packages/armory-sdk/src/lib/data-store/type.ts +++ b/packages/armory-sdk/src/lib/data-store/type.ts @@ -84,5 +84,5 @@ export type DataStoreHttp = { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - sync(options?: RawAxiosRequestConfig): AxiosPromise + sync(clientSecret: string, options?: RawAxiosRequestConfig): AxiosPromise } diff --git a/packages/armory-sdk/src/lib/http/client/README.md b/packages/armory-sdk/src/lib/http/client/README.md index 6030e1421..f92dea720 100644 --- a/packages/armory-sdk/src/lib/http/client/README.md +++ b/packages/armory-sdk/src/lib/http/client/README.md @@ -14,6 +14,10 @@ servers. The generate targets uses `openapi-generator-cli` that depends on a running server hosting the Swagger documentation. +It requires JAVA to be installed so make sure it's installed by running `java -version` in your terminal. + +You can install it by running `brew install java` or by downloading it directly from [this website](https://www.oracle.com/java/technologies/downloads/#jdk22-mac). + ```bash # Start the server make armory/start/dev diff --git a/packages/armory-sdk/src/lib/http/client/auth/api.ts b/packages/armory-sdk/src/lib/http/client/auth/api.ts index 3b1625124..673dcdb40 100644 --- a/packages/armory-sdk/src/lib/http/client/auth/api.ts +++ b/packages/armory-sdk/src/lib/http/client/auth/api.ts @@ -5,3443 +5,3308 @@ * Armory is the most secure access management for web3 * * The version of the OpenAPI document: 1.0 - * + * * * 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 { AxiosInstance, AxiosPromise, RawAxiosRequestConfig } from 'axios' -import globalAxios from 'axios' -import type { Configuration } from './configuration' + +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 type { RequestArgs } from './base' -import { - DUMMY_BASE_URL, - assertParamExists, - createRequestFunction, - serializeDataIfNeeded, - setApiKeyToObject, - setSearchParams, - toPathString -} from './common' +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, BaseAPI, RequiredError, operationServerMap } from './base' +import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** - * + * * @export * @interface AuthorizationRequestDto */ export interface AuthorizationRequestDto { - /** - * - * @type {string} - * @memberof AuthorizationRequestDto - */ - authentication: string - /** - * - * @type {AuthorizationRequestDtoRequest} - * @memberof AuthorizationRequestDto - */ - request: AuthorizationRequestDtoRequest - /** - * - * @type {AuthorizationRequestDtoMetadata} - * @memberof AuthorizationRequestDto - */ - metadata?: AuthorizationRequestDtoMetadata - /** - * - * @type {Array} - * @memberof AuthorizationRequestDto - */ - approvals?: Array + /** + * + * @type {string} + * @memberof AuthorizationRequestDto + */ + 'authentication': string; + /** + * + * @type {AuthorizationRequestDtoRequest} + * @memberof AuthorizationRequestDto + */ + 'request': AuthorizationRequestDtoRequest; + /** + * + * @type {AuthorizationRequestDtoMetadata} + * @memberof AuthorizationRequestDto + */ + 'metadata'?: AuthorizationRequestDtoMetadata; + /** + * + * @type {Array} + * @memberof AuthorizationRequestDto + */ + 'approvals'?: Array; } /** - * + * * @export * @interface AuthorizationRequestDtoMetadata */ export interface AuthorizationRequestDtoMetadata { - /** - * - * @type {AuthorizationRequestDtoMetadataAudience} - * @memberof AuthorizationRequestDtoMetadata - */ - audience?: AuthorizationRequestDtoMetadataAudience - /** - * - * @type {number} - * @memberof AuthorizationRequestDtoMetadata - */ - expiresIn?: number + /** + * + * @type {AuthorizationRequestDtoMetadataAudience} + * @memberof AuthorizationRequestDtoMetadata + */ + 'audience'?: AuthorizationRequestDtoMetadataAudience; + /** + * + * @type {number} + * @memberof AuthorizationRequestDtoMetadata + */ + 'expiresIn'?: number; } /** * @type AuthorizationRequestDtoMetadataAudience * @export */ -export type AuthorizationRequestDtoMetadataAudience = Array | string +export type AuthorizationRequestDtoMetadataAudience = Array | string; /** * @type AuthorizationRequestDtoRequest * @export */ -export type AuthorizationRequestDtoRequest = - | AuthorizationRequestDtoRequestOneOf - | AuthorizationRequestDtoRequestOneOf1 - | AuthorizationRequestDtoRequestOneOf2 - | AuthorizationRequestDtoRequestOneOf3 - | AuthorizationRequestDtoRequestOneOf4 +export type AuthorizationRequestDtoRequest = AuthorizationRequestDtoRequestOneOf | AuthorizationRequestDtoRequestOneOf1 | AuthorizationRequestDtoRequestOneOf2 | AuthorizationRequestDtoRequestOneOf3 | AuthorizationRequestDtoRequestOneOf4; /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf */ export interface AuthorizationRequestDtoRequestOneOf { - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf - */ - action: AuthorizationRequestDtoRequestOneOfActionEnum - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf - */ - nonce: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf - */ - resourceId: string - /** - * - * @type {AuthorizationRequestDtoRequestOneOfTransactionRequest} - * @memberof AuthorizationRequestDtoRequestOneOf - */ - transactionRequest: AuthorizationRequestDtoRequestOneOfTransactionRequest + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf + */ + 'action': AuthorizationRequestDtoRequestOneOfActionEnum; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf + */ + 'nonce': string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf + */ + 'resourceId': string; + /** + * + * @type {AuthorizationRequestDtoRequestOneOfTransactionRequest} + * @memberof AuthorizationRequestDtoRequestOneOf + */ + 'transactionRequest': AuthorizationRequestDtoRequestOneOfTransactionRequest; } export const AuthorizationRequestDtoRequestOneOfActionEnum = { - SignTransaction: 'signTransaction' -} as const + SignTransaction: 'signTransaction' +} as const; -export type AuthorizationRequestDtoRequestOneOfActionEnum = - (typeof AuthorizationRequestDtoRequestOneOfActionEnum)[keyof typeof AuthorizationRequestDtoRequestOneOfActionEnum] +export type AuthorizationRequestDtoRequestOneOfActionEnum = typeof AuthorizationRequestDtoRequestOneOfActionEnum[keyof typeof AuthorizationRequestDtoRequestOneOfActionEnum]; /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf1 */ export interface AuthorizationRequestDtoRequestOneOf1 { - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf1 - */ - action: AuthorizationRequestDtoRequestOneOf1ActionEnum - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf1 - */ - nonce: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf1 - */ - resourceId: string - /** - * - * @type {AuthorizationRequestDtoRequestOneOf1Message} - * @memberof AuthorizationRequestDtoRequestOneOf1 - */ - message: AuthorizationRequestDtoRequestOneOf1Message + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf1 + */ + 'action': AuthorizationRequestDtoRequestOneOf1ActionEnum; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf1 + */ + 'nonce': string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf1 + */ + 'resourceId': string; + /** + * + * @type {AuthorizationRequestDtoRequestOneOf1Message} + * @memberof AuthorizationRequestDtoRequestOneOf1 + */ + 'message': AuthorizationRequestDtoRequestOneOf1Message; } export const AuthorizationRequestDtoRequestOneOf1ActionEnum = { - SignMessage: 'signMessage' -} as const + SignMessage: 'signMessage' +} as const; -export type AuthorizationRequestDtoRequestOneOf1ActionEnum = - (typeof AuthorizationRequestDtoRequestOneOf1ActionEnum)[keyof typeof AuthorizationRequestDtoRequestOneOf1ActionEnum] +export type AuthorizationRequestDtoRequestOneOf1ActionEnum = typeof AuthorizationRequestDtoRequestOneOf1ActionEnum[keyof typeof AuthorizationRequestDtoRequestOneOf1ActionEnum]; /** * @type AuthorizationRequestDtoRequestOneOf1Message * @export */ -export type AuthorizationRequestDtoRequestOneOf1Message = AuthorizationRequestDtoRequestOneOf1MessageOneOf | string +export type AuthorizationRequestDtoRequestOneOf1Message = AuthorizationRequestDtoRequestOneOf1MessageOneOf | string; /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf1MessageOneOf */ export interface AuthorizationRequestDtoRequestOneOf1MessageOneOf { - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOf1MessageOneOf - */ - raw: any + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOf1MessageOneOf + */ + 'raw': any; } /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf2 */ export interface AuthorizationRequestDtoRequestOneOf2 { - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf2 - */ - action: AuthorizationRequestDtoRequestOneOf2ActionEnum - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf2 - */ - nonce: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf2 - */ - resourceId: string - /** - * - * @type {AuthorizationRequestDtoRequestOneOf2TypedData} - * @memberof AuthorizationRequestDtoRequestOneOf2 - */ - typedData: AuthorizationRequestDtoRequestOneOf2TypedData + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf2 + */ + 'action': AuthorizationRequestDtoRequestOneOf2ActionEnum; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf2 + */ + 'nonce': string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf2 + */ + 'resourceId': string; + /** + * + * @type {AuthorizationRequestDtoRequestOneOf2TypedData} + * @memberof AuthorizationRequestDtoRequestOneOf2 + */ + 'typedData': AuthorizationRequestDtoRequestOneOf2TypedData; } export const AuthorizationRequestDtoRequestOneOf2ActionEnum = { - SignTypedData: 'signTypedData' -} as const + SignTypedData: 'signTypedData' +} as const; -export type AuthorizationRequestDtoRequestOneOf2ActionEnum = - (typeof AuthorizationRequestDtoRequestOneOf2ActionEnum)[keyof typeof AuthorizationRequestDtoRequestOneOf2ActionEnum] +export type AuthorizationRequestDtoRequestOneOf2ActionEnum = typeof AuthorizationRequestDtoRequestOneOf2ActionEnum[keyof typeof AuthorizationRequestDtoRequestOneOf2ActionEnum]; /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf2TypedData */ export interface AuthorizationRequestDtoRequestOneOf2TypedData { - /** - * - * @type {AuthorizationRequestDtoRequestOneOf2TypedDataDomain} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedData - */ - domain: AuthorizationRequestDtoRequestOneOf2TypedDataDomain - /** - * - * @type {{ [key: string]: Array; }} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedData - */ - types: { [key: string]: Array } - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedData - */ - primaryType: string - /** - * - * @type {{ [key: string]: any; }} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedData - */ - message: { [key: string]: any } + /** + * + * @type {AuthorizationRequestDtoRequestOneOf2TypedDataDomain} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedData + */ + 'domain': AuthorizationRequestDtoRequestOneOf2TypedDataDomain; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedData + */ + 'types': { [key: string]: Array; }; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedData + */ + 'primaryType': string; + /** + * + * @type {{ [key: string]: any; }} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedData + */ + 'message': { [key: string]: any; }; } /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf2TypedDataDomain */ export interface AuthorizationRequestDtoRequestOneOf2TypedDataDomain { - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain - */ - name?: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain - */ - version?: string - /** - * - * @type {number} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain - */ - chainId?: number - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain - */ - verifyingContract?: any - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain - */ - salt?: any + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain + */ + 'version'?: string; + /** + * + * @type {number} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain + */ + 'chainId'?: number; + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain + */ + 'verifyingContract'?: any; + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataDomain + */ + 'salt'?: any; } /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf2TypedDataTypesValueInner */ export interface AuthorizationRequestDtoRequestOneOf2TypedDataTypesValueInner { - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataTypesValueInner - */ - name: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataTypesValueInner - */ - type: string + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataTypesValueInner + */ + 'name': string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf2TypedDataTypesValueInner + */ + 'type': string; } /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf3 */ export interface AuthorizationRequestDtoRequestOneOf3 { - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf3 - */ - action: AuthorizationRequestDtoRequestOneOf3ActionEnum - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf3 - */ - nonce: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf3 - */ - resourceId: string - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOf3 - */ - rawMessage: any + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf3 + */ + 'action': AuthorizationRequestDtoRequestOneOf3ActionEnum; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf3 + */ + 'nonce': string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf3 + */ + 'resourceId': string; + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOf3 + */ + 'rawMessage': any; } export const AuthorizationRequestDtoRequestOneOf3ActionEnum = { - SignRaw: 'signRaw' -} as const + SignRaw: 'signRaw' +} as const; -export type AuthorizationRequestDtoRequestOneOf3ActionEnum = - (typeof AuthorizationRequestDtoRequestOneOf3ActionEnum)[keyof typeof AuthorizationRequestDtoRequestOneOf3ActionEnum] +export type AuthorizationRequestDtoRequestOneOf3ActionEnum = typeof AuthorizationRequestDtoRequestOneOf3ActionEnum[keyof typeof AuthorizationRequestDtoRequestOneOf3ActionEnum]; /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOf4 */ export interface AuthorizationRequestDtoRequestOneOf4 { - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf4 - */ - action: AuthorizationRequestDtoRequestOneOf4ActionEnum - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf4 - */ - nonce: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOf4 - */ - resourceId: string - /** - * - * @type {Array} - * @memberof AuthorizationRequestDtoRequestOneOf4 - */ - permissions: Array + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf4 + */ + 'action': AuthorizationRequestDtoRequestOneOf4ActionEnum; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf4 + */ + 'nonce': string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOf4 + */ + 'resourceId': string; + /** + * + * @type {Array} + * @memberof AuthorizationRequestDtoRequestOneOf4 + */ + 'permissions': Array; } export const AuthorizationRequestDtoRequestOneOf4ActionEnum = { - GrantPermission: 'grantPermission' -} as const + GrantPermission: 'grantPermission' +} as const; -export type AuthorizationRequestDtoRequestOneOf4ActionEnum = - (typeof AuthorizationRequestDtoRequestOneOf4ActionEnum)[keyof typeof AuthorizationRequestDtoRequestOneOf4ActionEnum] +export type AuthorizationRequestDtoRequestOneOf4ActionEnum = typeof AuthorizationRequestDtoRequestOneOf4ActionEnum[keyof typeof AuthorizationRequestDtoRequestOneOf4ActionEnum]; /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOfTransactionRequest */ export interface AuthorizationRequestDtoRequestOneOfTransactionRequest { - /** - * - * @type {number} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - chainId: number - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - from: any - /** - * - * @type {number} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - nonce?: number - /** - * - * @type {Array} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - accessList?: Array - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - data?: any - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - gas?: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - maxFeePerGas?: string - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - maxPriorityFeePerGas?: string - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - to?: any | null - /** - * - * @type {string} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - type?: AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest - */ - value?: any + /** + * + * @type {number} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'chainId': number; + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'from': any; + /** + * + * @type {number} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'nonce'?: number; + /** + * + * @type {Array} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'accessList'?: Array; + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'data'?: any; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'gas'?: string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'maxFeePerGas'?: string; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'maxPriorityFeePerGas'?: string; + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'to'?: any | null; + /** + * + * @type {string} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'type'?: AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum; + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequest + */ + 'value'?: any; } export const AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum = { - _2: '2' -} as const + _2: '2' +} as const; -export type AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum = - (typeof AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum)[keyof typeof AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum] +export type AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum = typeof AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum[keyof typeof AuthorizationRequestDtoRequestOneOfTransactionRequestTypeEnum]; /** - * + * * @export * @interface AuthorizationRequestDtoRequestOneOfTransactionRequestAccessListInner */ export interface AuthorizationRequestDtoRequestOneOfTransactionRequestAccessListInner { - /** - * - * @type {any} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequestAccessListInner - */ - address: any - /** - * - * @type {Array} - * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequestAccessListInner - */ - storageKeys: Array + /** + * + * @type {any} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequestAccessListInner + */ + 'address': any; + /** + * + * @type {Array} + * @memberof AuthorizationRequestDtoRequestOneOfTransactionRequestAccessListInner + */ + 'storageKeys': Array; } /** - * + * * @export * @interface AuthorizationResponseDto */ export interface AuthorizationResponseDto { - /** - * - * @type {Array} - * @memberof AuthorizationResponseDto - */ - approvals: Array - /** - * - * @type {string} - * @memberof AuthorizationResponseDto - */ - authentication: string - /** - * - * @type {string} - * @memberof AuthorizationResponseDto - */ - clientId: string - /** - * - * @type {any} - * @memberof AuthorizationResponseDto - */ - createdAt: any - /** - * - * @type {Array} - * @memberof AuthorizationResponseDto - */ - errors?: Array - /** - * - * @type {Array} - * @memberof AuthorizationResponseDto - */ - evaluations: Array - /** - * - * @type {string} - * @memberof AuthorizationResponseDto - */ - id: string - /** - * - * @type {string} - * @memberof AuthorizationResponseDto - */ - idempotencyKey?: string | null - /** - * - * @type {AuthorizationRequestDtoMetadata} - * @memberof AuthorizationResponseDto - */ - metadata?: AuthorizationRequestDtoMetadata - /** - * - * @type {AuthorizationRequestDtoRequest} - * @memberof AuthorizationResponseDto - */ - request: AuthorizationRequestDtoRequest - /** - * - * @type {string} - * @memberof AuthorizationResponseDto - */ - status: AuthorizationResponseDtoStatusEnum - /** - * - * @type {any} - * @memberof AuthorizationResponseDto - */ - updatedAt: any + /** + * + * @type {Array} + * @memberof AuthorizationResponseDto + */ + 'approvals': Array; + /** + * + * @type {string} + * @memberof AuthorizationResponseDto + */ + 'authentication': string; + /** + * + * @type {string} + * @memberof AuthorizationResponseDto + */ + 'clientId': string; + /** + * + * @type {any} + * @memberof AuthorizationResponseDto + */ + 'createdAt': any; + /** + * + * @type {Array} + * @memberof AuthorizationResponseDto + */ + 'errors'?: Array; + /** + * + * @type {Array} + * @memberof AuthorizationResponseDto + */ + 'evaluations': Array; + /** + * + * @type {string} + * @memberof AuthorizationResponseDto + */ + 'id': string; + /** + * + * @type {string} + * @memberof AuthorizationResponseDto + */ + 'idempotencyKey'?: string | null; + /** + * + * @type {AuthorizationRequestDtoMetadata} + * @memberof AuthorizationResponseDto + */ + 'metadata'?: AuthorizationRequestDtoMetadata; + /** + * + * @type {AuthorizationRequestDtoRequest} + * @memberof AuthorizationResponseDto + */ + 'request': AuthorizationRequestDtoRequest; + /** + * + * @type {string} + * @memberof AuthorizationResponseDto + */ + 'status': AuthorizationResponseDtoStatusEnum; + /** + * + * @type {any} + * @memberof AuthorizationResponseDto + */ + 'updatedAt': any; } export const AuthorizationResponseDtoStatusEnum = { - Created: 'CREATED', - Canceled: 'CANCELED', - Failed: 'FAILED', - Processing: 'PROCESSING', - Approving: 'APPROVING', - Permitted: 'PERMITTED', - Forbidden: 'FORBIDDEN' -} as const - -export type AuthorizationResponseDtoStatusEnum = - (typeof AuthorizationResponseDtoStatusEnum)[keyof typeof AuthorizationResponseDtoStatusEnum] + Created: 'CREATED', + Canceled: 'CANCELED', + Failed: 'FAILED', + Processing: 'PROCESSING', + Approving: 'APPROVING', + Permitted: 'PERMITTED', + Forbidden: 'FORBIDDEN' +} as const; + +export type AuthorizationResponseDtoStatusEnum = typeof AuthorizationResponseDtoStatusEnum[keyof typeof AuthorizationResponseDtoStatusEnum]; /** - * + * * @export * @interface AuthorizationResponseDtoErrorsInner */ export interface AuthorizationResponseDtoErrorsInner { - /** - * - * @type {any} - * @memberof AuthorizationResponseDtoErrorsInner - */ - context?: any - /** - * - * @type {string} - * @memberof AuthorizationResponseDtoErrorsInner - */ - id: string - /** - * - * @type {string} - * @memberof AuthorizationResponseDtoErrorsInner - */ - message: string - /** - * - * @type {string} - * @memberof AuthorizationResponseDtoErrorsInner - */ - name: string + /** + * + * @type {any} + * @memberof AuthorizationResponseDtoErrorsInner + */ + 'context'?: any; + /** + * + * @type {string} + * @memberof AuthorizationResponseDtoErrorsInner + */ + 'id': string; + /** + * + * @type {string} + * @memberof AuthorizationResponseDtoErrorsInner + */ + 'message': string; + /** + * + * @type {string} + * @memberof AuthorizationResponseDtoErrorsInner + */ + 'name': string; } /** - * + * * @export * @interface AuthorizationResponseDtoEvaluationsInner */ export interface AuthorizationResponseDtoEvaluationsInner { - /** - * - * @type {string} - * @memberof AuthorizationResponseDtoEvaluationsInner - */ - id: string - /** - * - * @type {string} - * @memberof AuthorizationResponseDtoEvaluationsInner - */ - decision: string - /** - * - * @type {string} - * @memberof AuthorizationResponseDtoEvaluationsInner - */ - signature: string | null - /** - * - * @type {any} - * @memberof AuthorizationResponseDtoEvaluationsInner - */ - createdAt: any + /** + * + * @type {string} + * @memberof AuthorizationResponseDtoEvaluationsInner + */ + 'id': string; + /** + * + * @type {string} + * @memberof AuthorizationResponseDtoEvaluationsInner + */ + 'decision': string; + /** + * + * @type {string} + * @memberof AuthorizationResponseDtoEvaluationsInner + */ + 'signature': string | null; + /** + * + * @type {any} + * @memberof AuthorizationResponseDtoEvaluationsInner + */ + 'createdAt': any; } /** - * + * * @export * @interface CreateClientRequestDto */ export interface CreateClientRequestDto { - /** - * - * @type {string} - * @memberof CreateClientRequestDto - */ - id?: string - /** - * - * @type {string} - * @memberof CreateClientRequestDto - */ - name: string - /** - * - * @type {boolean} - * @memberof CreateClientRequestDto - */ - useManagedDataStore?: boolean - /** - * - * @type {string} - * @memberof CreateClientRequestDto - */ - clientSecret?: string - /** - * - * @type {CreateClientRequestDtoDataStore} - * @memberof CreateClientRequestDto - */ - dataStore: CreateClientRequestDtoDataStore - /** - * - * @type {Array} - * @memberof CreateClientRequestDto - */ - policyEngineNodes?: Array + /** + * + * @type {string} + * @memberof CreateClientRequestDto + */ + 'id'?: string; + /** + * + * @type {string} + * @memberof CreateClientRequestDto + */ + 'name': string; + /** + * + * @type {boolean} + * @memberof CreateClientRequestDto + */ + 'useManagedDataStore'?: boolean; + /** + * + * @type {string} + * @memberof CreateClientRequestDto + */ + 'clientSecret'?: string; + /** + * + * @type {CreateClientRequestDtoDataStore} + * @memberof CreateClientRequestDto + */ + 'dataStore': CreateClientRequestDtoDataStore; + /** + * + * @type {Array} + * @memberof CreateClientRequestDto + */ + 'policyEngineNodes'?: Array; } /** - * + * * @export * @interface CreateClientRequestDtoDataStore */ export interface CreateClientRequestDtoDataStore { - /** - * - * @type {CreateClientRequestDtoDataStoreEntity} - * @memberof CreateClientRequestDtoDataStore - */ - entity: CreateClientRequestDtoDataStoreEntity - /** - * - * @type {CreateClientRequestDtoDataStoreEntity} - * @memberof CreateClientRequestDtoDataStore - */ - policy: CreateClientRequestDtoDataStoreEntity + /** + * + * @type {CreateClientRequestDtoDataStoreEntity} + * @memberof CreateClientRequestDtoDataStore + */ + 'entity': CreateClientRequestDtoDataStoreEntity; + /** + * + * @type {CreateClientRequestDtoDataStoreEntity} + * @memberof CreateClientRequestDtoDataStore + */ + 'policy': CreateClientRequestDtoDataStoreEntity; } /** - * + * * @export * @interface CreateClientRequestDtoDataStoreEntity */ export interface CreateClientRequestDtoDataStoreEntity { - /** - * - * @type {CreateClientRequestDtoDataStoreEntityData} - * @memberof CreateClientRequestDtoDataStoreEntity - */ - data: CreateClientRequestDtoDataStoreEntityData - /** - * - * @type {CreateClientRequestDtoDataStoreEntityData} - * @memberof CreateClientRequestDtoDataStoreEntity - */ - signature: CreateClientRequestDtoDataStoreEntityData - /** - * - * @type {Array} - * @memberof CreateClientRequestDtoDataStoreEntity - */ - keys: Array + /** + * + * @type {CreateClientRequestDtoDataStoreEntityData} + * @memberof CreateClientRequestDtoDataStoreEntity + */ + 'data': CreateClientRequestDtoDataStoreEntityData; + /** + * + * @type {CreateClientRequestDtoDataStoreEntityData} + * @memberof CreateClientRequestDtoDataStoreEntity + */ + 'signature': CreateClientRequestDtoDataStoreEntityData; + /** + * + * @type {Array} + * @memberof CreateClientRequestDtoDataStoreEntity + */ + 'keys': Array; } /** * @type CreateClientRequestDtoDataStoreEntityData * @export */ -export type CreateClientRequestDtoDataStoreEntityData = - | CreateClientRequestDtoDataStoreEntityDataOneOf - | CreateClientRequestDtoDataStoreEntityDataOneOf1 +export type CreateClientRequestDtoDataStoreEntityData = CreateClientRequestDtoDataStoreEntityDataOneOf | CreateClientRequestDtoDataStoreEntityDataOneOf1; /** - * + * * @export * @interface CreateClientRequestDtoDataStoreEntityDataOneOf */ export interface CreateClientRequestDtoDataStoreEntityDataOneOf { - /** - * - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf - */ - type: CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum - /** - * - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf - */ - url: string + /** + * + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf + */ + 'type': CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum; + /** + * + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf + */ + 'url': string; } export const CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum = { - File: 'FILE' -} as const + File: 'FILE' +} as const; -export type CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum = - (typeof CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum)[keyof typeof CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum] +export type CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum = typeof CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum[keyof typeof CreateClientRequestDtoDataStoreEntityDataOneOfTypeEnum]; /** - * + * * @export * @interface CreateClientRequestDtoDataStoreEntityDataOneOf1 */ export interface CreateClientRequestDtoDataStoreEntityDataOneOf1 { - /** - * - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf1 - */ - type: CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum - /** - * - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf1 - */ - url: string - /** - * - * @type {{ [key: string]: string; }} - * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf1 - */ - headers?: { [key: string]: string } + /** + * + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf1 + */ + 'type': CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum; + /** + * + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf1 + */ + 'url': string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof CreateClientRequestDtoDataStoreEntityDataOneOf1 + */ + 'headers'?: { [key: string]: string; }; } export const CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum = { - Http: 'HTTP', - Https: 'HTTPS' -} as const + Http: 'HTTP', + Https: 'HTTPS' +} as const; -export type CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum = - (typeof CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum)[keyof typeof CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum] +export type CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum = typeof CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum[keyof typeof CreateClientRequestDtoDataStoreEntityDataOneOf1TypeEnum]; /** - * + * * @export * @interface CreateClientRequestDtoDataStoreEntityKeysInner */ export interface CreateClientRequestDtoDataStoreEntityKeysInner { - /** - * Key Type (e.g. RSA or EC - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - kty?: CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum - /** - * Curve name - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - crv?: CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum - /** - * Algorithm - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - alg?: CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum - /** - * Public Key Use - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - use?: CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum - /** - * Unique key ID - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - kid?: string - /** - * (RSA) Key modulus - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - n?: string - /** - * (RSA) Key exponent - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - e?: string - /** - * (EC) X Coordinate - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - x?: string - /** - * (EC) Y Coordinate - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - y?: string - /** - * (EC) Private Key - * @type {string} - * @memberof CreateClientRequestDtoDataStoreEntityKeysInner - */ - d?: string + /** + * Key Type (e.g. RSA or EC + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'kty'?: CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum; + /** + * Curve name + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'crv'?: CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum; + /** + * Algorithm + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'alg'?: CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum; + /** + * Public Key Use + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'use'?: CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum; + /** + * Unique key ID + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'kid'?: string; + /** + * (RSA) Key modulus + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'n'?: string; + /** + * (RSA) Key exponent + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'e'?: string; + /** + * (EC) X Coordinate + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'x'?: string; + /** + * (EC) Y Coordinate + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'y'?: string; + /** + * (EC) Private Key + * @type {string} + * @memberof CreateClientRequestDtoDataStoreEntityKeysInner + */ + 'd'?: string; } export const CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum = { - Ec: 'EC', - Rsa: 'RSA' -} as const + Ec: 'EC', + Rsa: 'RSA' +} as const; -export type CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum = - (typeof CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum)[keyof typeof CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum] +export type CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum = typeof CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum[keyof typeof CreateClientRequestDtoDataStoreEntityKeysInnerKtyEnum]; export const CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum = { - Secp256k1: 'secp256k1', - P256: 'P-256' -} as const + Secp256k1: 'secp256k1', + P256: 'P-256' +} as const; -export type CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum = - (typeof CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum)[keyof typeof CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum] +export type CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum = typeof CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum[keyof typeof CreateClientRequestDtoDataStoreEntityKeysInnerCrvEnum]; export const CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum = { - Es256K: 'ES256K', - Es256: 'ES256', - Rs256: 'RS256' -} as const + Es256K: 'ES256K', + Es256: 'ES256', + Rs256: 'RS256' +} as const; -export type CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum = - (typeof CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum)[keyof typeof CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum] +export type CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum = typeof CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum[keyof typeof CreateClientRequestDtoDataStoreEntityKeysInnerAlgEnum]; export const CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum = { - Sig: 'sig', - Enc: 'enc' -} as const + Sig: 'sig', + Enc: 'enc' +} as const; -export type CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum = - (typeof CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum)[keyof typeof CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum] +export type CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum = typeof CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum[keyof typeof CreateClientRequestDtoDataStoreEntityKeysInnerUseEnum]; /** - * + * * @export * @interface CreateClientResponseDto */ export interface CreateClientResponseDto { - /** - * - * @type {string} - * @memberof CreateClientResponseDto - */ - id: string - /** - * - * @type {string} - * @memberof CreateClientResponseDto - */ - name: string - /** - * plaintext secret for authenticating to armory - * @type {string} - * @memberof CreateClientResponseDto - */ - clientSecret: string - /** - * plaintext secret for authenticating to data store - * @type {string} - * @memberof CreateClientResponseDto - */ - dataSecret: string | null - /** - * - * @type {any} - * @memberof CreateClientResponseDto - */ - createdAt: any - /** - * - * @type {any} - * @memberof CreateClientResponseDto - */ - updatedAt: any - /** - * - * @type {CreateClientResponseDtoDataStore} - * @memberof CreateClientResponseDto - */ - dataStore: CreateClientResponseDtoDataStore - /** - * - * @type {CreateClientResponseDtoPolicyEngine} - * @memberof CreateClientResponseDto - */ - policyEngine: CreateClientResponseDtoPolicyEngine + /** + * + * @type {string} + * @memberof CreateClientResponseDto + */ + 'id': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDto + */ + 'name': string; + /** + * plaintext secret for authenticating to armory + * @type {string} + * @memberof CreateClientResponseDto + */ + 'clientSecret': string; + /** + * plaintext secret for authenticating to data store + * @type {string} + * @memberof CreateClientResponseDto + */ + 'dataSecret': string | null; + /** + * + * @type {any} + * @memberof CreateClientResponseDto + */ + 'createdAt': any; + /** + * + * @type {any} + * @memberof CreateClientResponseDto + */ + 'updatedAt': any; + /** + * + * @type {CreateClientResponseDtoDataStore} + * @memberof CreateClientResponseDto + */ + 'dataStore': CreateClientResponseDtoDataStore; + /** + * + * @type {CreateClientResponseDtoPolicyEngine} + * @memberof CreateClientResponseDto + */ + 'policyEngine': CreateClientResponseDtoPolicyEngine; } /** - * + * * @export * @interface CreateClientResponseDtoDataStore */ export interface CreateClientResponseDtoDataStore { - /** - * - * @type {CreateClientRequestDtoDataStoreEntityKeysInner} - * @memberof CreateClientResponseDtoDataStore - */ - entityPublicKey: CreateClientRequestDtoDataStoreEntityKeysInner - /** - * - * @type {CreateClientRequestDtoDataStoreEntityKeysInner} - * @memberof CreateClientResponseDtoDataStore - */ - policyPublicKey: CreateClientRequestDtoDataStoreEntityKeysInner - /** - * - * @type {string} - * @memberof CreateClientResponseDtoDataStore - */ - entityDataUrl?: string - /** - * - * @type {string} - * @memberof CreateClientResponseDtoDataStore - */ - policyDataUrl?: string + /** + * + * @type {CreateClientRequestDtoDataStoreEntityKeysInner} + * @memberof CreateClientResponseDtoDataStore + */ + 'entityPublicKey': CreateClientRequestDtoDataStoreEntityKeysInner; + /** + * + * @type {CreateClientRequestDtoDataStoreEntityKeysInner} + * @memberof CreateClientResponseDtoDataStore + */ + 'policyPublicKey': CreateClientRequestDtoDataStoreEntityKeysInner; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoDataStore + */ + 'entityDataUrl'?: string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoDataStore + */ + 'policyDataUrl'?: string; } /** - * + * * @export * @interface CreateClientResponseDtoPolicyEngine */ export interface CreateClientResponseDtoPolicyEngine { - /** - * - * @type {Array} - * @memberof CreateClientResponseDtoPolicyEngine - */ - nodes: Array + /** + * + * @type {Array} + * @memberof CreateClientResponseDtoPolicyEngine + */ + 'nodes': Array; } /** - * + * * @export * @interface CreateClientResponseDtoPolicyEngineNodesInner */ export interface CreateClientResponseDtoPolicyEngineNodesInner { - /** - * - * @type {string} - * @memberof CreateClientResponseDtoPolicyEngineNodesInner - */ - id: string - /** - * - * @type {string} - * @memberof CreateClientResponseDtoPolicyEngineNodesInner - */ - clientId: string - /** - * - * @type {string} - * @memberof CreateClientResponseDtoPolicyEngineNodesInner - */ - clientSecret?: string - /** - * - * @type {EntityDataStoreDtoEntityDataCredentialsInnerKey} - * @memberof CreateClientResponseDtoPolicyEngineNodesInner - */ - publicKey: EntityDataStoreDtoEntityDataCredentialsInnerKey - /** - * - * @type {string} - * @memberof CreateClientResponseDtoPolicyEngineNodesInner - */ - url: string + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInner + */ + 'id': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInner + */ + 'clientId': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInner + */ + 'clientSecret'?: string; + /** + * + * @type {CreateClientResponseDtoPolicyEngineNodesInnerPublicKey} + * @memberof CreateClientResponseDtoPolicyEngineNodesInner + */ + 'publicKey': CreateClientResponseDtoPolicyEngineNodesInnerPublicKey; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInner + */ + 'url': string; } /** - * + * @type CreateClientResponseDtoPolicyEngineNodesInnerPublicKey * @export - * @interface EntityDataStoreDto */ -export interface EntityDataStoreDto { - /** - * - * @type {EntityDataStoreDtoEntity} - * @memberof EntityDataStoreDto - */ - entity: EntityDataStoreDtoEntity -} +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKey = CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf | CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 | CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 | CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3; + /** - * + * * @export - * @interface EntityDataStoreDtoEntity + * @interface CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf */ -export interface EntityDataStoreDtoEntity { - /** - * - * @type {EntityDataStoreDtoEntityData} - * @memberof EntityDataStoreDtoEntity - */ - data: EntityDataStoreDtoEntityData - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntity - */ - signature: string +export interface CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf { + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf + */ + 'kty': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfKtyEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf + */ + 'alg': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfAlgEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf + */ + 'use'?: CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfUseEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf + */ + 'kid': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf + */ + 'addr'?: string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf + */ + 'crv': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfCrvEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf + */ + 'x': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf + */ + 'y': string; } + +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfKtyEnum = { + Ec: 'EC' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfKtyEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfKtyEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfKtyEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfAlgEnum = { + Es256K: 'ES256K' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfAlgEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfAlgEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfAlgEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfUseEnum = { + Sig: 'sig', + Enc: 'enc' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfUseEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfUseEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfUseEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfCrvEnum = { + Secp256k1: 'secp256k1' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfCrvEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfCrvEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOfCrvEnum]; + /** - * + * * @export - * @interface EntityDataStoreDtoEntityData + * @interface CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 */ -export interface EntityDataStoreDtoEntityData { - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - addressBook: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - credentials: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - tokens: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - userGroupMembers: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - userGroups: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - userAccounts: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - users: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - accountGroupMembers: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - accountGroups: Array - /** - * - * @type {Array} - * @memberof EntityDataStoreDtoEntityData - */ - accounts: Array +export interface CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 { + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 + */ + 'kty': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1KtyEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 + */ + 'alg': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1AlgEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 + */ + 'use'?: CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1UseEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 + */ + 'kid': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 + */ + 'addr'?: string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 + */ + 'crv': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1CrvEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 + */ + 'x': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1 + */ + 'y': string; } + +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1KtyEnum = { + Ec: 'EC' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1KtyEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1KtyEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1KtyEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1AlgEnum = { + Es256: 'ES256' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1AlgEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1AlgEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1AlgEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1UseEnum = { + Sig: 'sig', + Enc: 'enc' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1UseEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1UseEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1UseEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1CrvEnum = { + P256: 'P-256' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1CrvEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1CrvEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf1CrvEnum]; + /** - * + * * @export - * @interface EntityDataStoreDtoEntityDataAccountGroupMembersInner + * @interface CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 */ -export interface EntityDataStoreDtoEntityDataAccountGroupMembersInner { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataAccountGroupMembersInner - */ - accountId: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataAccountGroupMembersInner - */ - groupId: string +export interface CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 { + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 + */ + 'kty': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2KtyEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 + */ + 'alg': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2AlgEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 + */ + 'use'?: CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2UseEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 + */ + 'kid': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 + */ + 'addr'?: string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 + */ + 'n': string; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2 + */ + 'e': string; } + +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2KtyEnum = { + Rsa: 'RSA' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2KtyEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2KtyEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2KtyEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2AlgEnum = { + Rs256: 'RS256' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2AlgEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2AlgEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2AlgEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2UseEnum = { + Sig: 'sig', + Enc: 'enc' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2UseEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2UseEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf2UseEnum]; + /** - * + * * @export - * @interface EntityDataStoreDtoEntityDataAccountsInner + * @interface CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3 */ -export interface EntityDataStoreDtoEntityDataAccountsInner { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataAccountsInner - */ - id: string - /** - * - * @type {any} - * @memberof EntityDataStoreDtoEntityDataAccountsInner - */ - address: any - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataAccountsInner - */ - accountType: EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum - /** - * - * @type {number} - * @memberof EntityDataStoreDtoEntityDataAccountsInner - */ - chainId?: number +export interface CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3 { + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3 + */ + 'kty': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3KtyEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3 + */ + 'crv': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3CrvEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3 + */ + 'alg': CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3AlgEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3 + */ + 'use'?: CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3UseEnum; + /** + * + * @type {string} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3 + */ + 'kid': string; + /** + * + * @type {any} + * @memberof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3 + */ + 'addr': any; } -export const EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum = { - Eoa: 'eoa', - _4337: '4337' -} as const +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3KtyEnum = { + Ec: 'EC' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3KtyEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3KtyEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3KtyEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3CrvEnum = { + Secp256k1: 'secp256k1' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3CrvEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3CrvEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3CrvEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3AlgEnum = { + Es256K: 'ES256K' +} as const; + +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3AlgEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3AlgEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3AlgEnum]; +export const CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3UseEnum = { + Sig: 'sig', + Enc: 'enc' +} as const; -export type EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum = - (typeof EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum)[keyof typeof EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum] +export type CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3UseEnum = typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3UseEnum[keyof typeof CreateClientResponseDtoPolicyEngineNodesInnerPublicKeyOneOf3UseEnum]; /** - * + * * @export - * @interface EntityDataStoreDtoEntityDataAddressBookInner + * @interface EntityDataStoreDto */ -export interface EntityDataStoreDtoEntityDataAddressBookInner { - /** - * - * @type {any} - * @memberof EntityDataStoreDtoEntityDataAddressBookInner - */ - id: any - /** - * - * @type {any} - * @memberof EntityDataStoreDtoEntityDataAddressBookInner - */ - address: any - /** - * - * @type {number} - * @memberof EntityDataStoreDtoEntityDataAddressBookInner - */ - chainId: number - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataAddressBookInner - */ - classification: EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum +export interface EntityDataStoreDto { + /** + * + * @type {EntityDataStoreDtoEntity} + * @memberof EntityDataStoreDto + */ + 'entity': EntityDataStoreDtoEntity; } - -export const EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum = { - External: 'external', - Counterparty: 'counterparty', - Internal: 'internal', - Managed: 'managed' -} as const - -export type EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum = - (typeof EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum)[keyof typeof EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum] - /** - * + * * @export - * @interface EntityDataStoreDtoEntityDataCredentialsInner + * @interface EntityDataStoreDtoEntity */ -export interface EntityDataStoreDtoEntityDataCredentialsInner { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInner - */ - id: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInner - */ - userId: string - /** - * - * @type {EntityDataStoreDtoEntityDataCredentialsInnerKey} - * @memberof EntityDataStoreDtoEntityDataCredentialsInner - */ - key: EntityDataStoreDtoEntityDataCredentialsInnerKey +export interface EntityDataStoreDtoEntity { + /** + * + * @type {EntityDataStoreDtoEntityData} + * @memberof EntityDataStoreDtoEntity + */ + 'data': EntityDataStoreDtoEntityData; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntity + */ + 'signature': string; } /** - * @type EntityDataStoreDtoEntityDataCredentialsInnerKey + * * @export + * @interface EntityDataStoreDtoEntityData */ -export type EntityDataStoreDtoEntityDataCredentialsInnerKey = - | EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - | EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - | EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 - | EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 - +export interface EntityDataStoreDtoEntityData { + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'addressBook': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'credentials': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'tokens': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'userGroupMembers': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'userGroups': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'userAccounts': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'users': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'accountGroupMembers': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'accountGroups': Array; + /** + * + * @type {Array} + * @memberof EntityDataStoreDtoEntityData + */ + 'accounts': Array; +} /** - * + * * @export - * @interface EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf + * @interface EntityDataStoreDtoEntityDataAccountGroupMembersInner */ -export interface EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - */ - kty: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfKtyEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - */ - alg: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfAlgEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - */ - use?: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfUseEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - */ - kid: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - */ - addr?: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - */ - crv: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfCrvEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - */ - x: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf - */ - y: string +export interface EntityDataStoreDtoEntityDataAccountGroupMembersInner { + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataAccountGroupMembersInner + */ + 'accountId': string; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataAccountGroupMembersInner + */ + 'groupId': string; } - -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfKtyEnum = { - Ec: 'EC' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfKtyEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfKtyEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfKtyEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfAlgEnum = { - Es256K: 'ES256K' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfAlgEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfAlgEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfAlgEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfUseEnum = { - Sig: 'sig', - Enc: 'enc' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfUseEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfUseEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfUseEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfCrvEnum = { - Secp256k1: 'secp256k1' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfCrvEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfCrvEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOfCrvEnum] - /** - * + * * @export - * @interface EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 + * @interface EntityDataStoreDtoEntityDataAccountsInner */ -export interface EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - */ - kty: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1KtyEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - */ - alg: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1AlgEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - */ - use?: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1UseEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - */ - kid: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - */ - addr?: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - */ - crv: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1CrvEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - */ - x: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1 - */ - y: string +export interface EntityDataStoreDtoEntityDataAccountsInner { + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataAccountsInner + */ + 'id': string; + /** + * + * @type {any} + * @memberof EntityDataStoreDtoEntityDataAccountsInner + */ + 'address': any; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataAccountsInner + */ + 'accountType': EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum; + /** + * + * @type {number} + * @memberof EntityDataStoreDtoEntityDataAccountsInner + */ + 'chainId'?: number; } -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1KtyEnum = { - Ec: 'EC' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1KtyEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1KtyEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1KtyEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1AlgEnum = { - Es256: 'ES256' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1AlgEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1AlgEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1AlgEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1UseEnum = { - Sig: 'sig', - Enc: 'enc' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1UseEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1UseEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1UseEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1CrvEnum = { - P256: 'P-256' -} as const +export const EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum = { + Eoa: 'eoa', + _4337: '4337' +} as const; -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1CrvEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1CrvEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf1CrvEnum] +export type EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum = typeof EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum[keyof typeof EntityDataStoreDtoEntityDataAccountsInnerAccountTypeEnum]; /** - * + * * @export - * @interface EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 + * @interface EntityDataStoreDtoEntityDataAddressBookInner */ -export interface EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 - */ - kty: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2KtyEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 - */ - alg: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2AlgEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 - */ - use?: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2UseEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 - */ - kid: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 - */ - addr?: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 - */ - n: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2 - */ - e: string +export interface EntityDataStoreDtoEntityDataAddressBookInner { + /** + * + * @type {any} + * @memberof EntityDataStoreDtoEntityDataAddressBookInner + */ + 'id': any; + /** + * + * @type {any} + * @memberof EntityDataStoreDtoEntityDataAddressBookInner + */ + 'address': any; + /** + * + * @type {number} + * @memberof EntityDataStoreDtoEntityDataAddressBookInner + */ + 'chainId': number; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataAddressBookInner + */ + 'classification': EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum; } -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2KtyEnum = { - Rsa: 'RSA' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2KtyEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2KtyEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2KtyEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2AlgEnum = { - Rs256: 'RS256' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2AlgEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2AlgEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2AlgEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2UseEnum = { - Sig: 'sig', - Enc: 'enc' -} as const +export const EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum = { + External: 'external', + Counterparty: 'counterparty', + Internal: 'internal', + Managed: 'managed' +} as const; -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2UseEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2UseEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf2UseEnum] +export type EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum = typeof EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum[keyof typeof EntityDataStoreDtoEntityDataAddressBookInnerClassificationEnum]; /** - * + * * @export - * @interface EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 + * @interface EntityDataStoreDtoEntityDataCredentialsInner */ -export interface EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 - */ - kty: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3KtyEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 - */ - crv: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3CrvEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 - */ - alg: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3AlgEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 - */ - use?: EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3UseEnum - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 - */ - kid: string - /** - * - * @type {any} - * @memberof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3 - */ - addr: any +export interface EntityDataStoreDtoEntityDataCredentialsInner { + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataCredentialsInner + */ + 'id': string; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataCredentialsInner + */ + 'userId': string; + /** + * + * @type {CreateClientResponseDtoPolicyEngineNodesInnerPublicKey} + * @memberof EntityDataStoreDtoEntityDataCredentialsInner + */ + 'key': CreateClientResponseDtoPolicyEngineNodesInnerPublicKey; } - -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3KtyEnum = { - Ec: 'EC' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3KtyEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3KtyEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3KtyEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3CrvEnum = { - Secp256k1: 'secp256k1' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3CrvEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3CrvEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3CrvEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3AlgEnum = { - Es256K: 'ES256K' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3AlgEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3AlgEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3AlgEnum] -export const EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3UseEnum = { - Sig: 'sig', - Enc: 'enc' -} as const - -export type EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3UseEnum = - (typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3UseEnum)[keyof typeof EntityDataStoreDtoEntityDataCredentialsInnerKeyOneOf3UseEnum] - /** - * + * * @export * @interface EntityDataStoreDtoEntityDataTokensInner */ export interface EntityDataStoreDtoEntityDataTokensInner { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataTokensInner - */ - id: string - /** - * - * @type {any} - * @memberof EntityDataStoreDtoEntityDataTokensInner - */ - address: any - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataTokensInner - */ - symbol: string | null - /** - * - * @type {number} - * @memberof EntityDataStoreDtoEntityDataTokensInner - */ - chainId: number - /** - * - * @type {number} - * @memberof EntityDataStoreDtoEntityDataTokensInner - */ - decimals: number + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataTokensInner + */ + 'id': string; + /** + * + * @type {any} + * @memberof EntityDataStoreDtoEntityDataTokensInner + */ + 'address': any; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataTokensInner + */ + 'symbol': string | null; + /** + * + * @type {number} + * @memberof EntityDataStoreDtoEntityDataTokensInner + */ + 'chainId': number; + /** + * + * @type {number} + * @memberof EntityDataStoreDtoEntityDataTokensInner + */ + 'decimals': number; } /** - * + * * @export * @interface EntityDataStoreDtoEntityDataUserAccountsInner */ export interface EntityDataStoreDtoEntityDataUserAccountsInner { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataUserAccountsInner - */ - userId: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataUserAccountsInner - */ - accountId: string + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataUserAccountsInner + */ + 'userId': string; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataUserAccountsInner + */ + 'accountId': string; } /** - * + * * @export * @interface EntityDataStoreDtoEntityDataUserGroupMembersInner */ export interface EntityDataStoreDtoEntityDataUserGroupMembersInner { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataUserGroupMembersInner - */ - userId: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataUserGroupMembersInner - */ - groupId: string + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataUserGroupMembersInner + */ + 'userId': string; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataUserGroupMembersInner + */ + 'groupId': string; } /** - * + * * @export * @interface EntityDataStoreDtoEntityDataUserGroupsInner */ export interface EntityDataStoreDtoEntityDataUserGroupsInner { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataUserGroupsInner - */ - id: string + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataUserGroupsInner + */ + 'id': string; } /** - * + * * @export * @interface EntityDataStoreDtoEntityDataUsersInner */ export interface EntityDataStoreDtoEntityDataUsersInner { - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataUsersInner - */ - id: string - /** - * - * @type {string} - * @memberof EntityDataStoreDtoEntityDataUsersInner - */ - role: EntityDataStoreDtoEntityDataUsersInnerRoleEnum + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataUsersInner + */ + 'id': string; + /** + * + * @type {string} + * @memberof EntityDataStoreDtoEntityDataUsersInner + */ + 'role': EntityDataStoreDtoEntityDataUsersInnerRoleEnum; } export const EntityDataStoreDtoEntityDataUsersInnerRoleEnum = { - Root: 'root', - Admin: 'admin', - Member: 'member', - Manager: 'manager' -} as const + Root: 'root', + Admin: 'admin', + Member: 'member', + Manager: 'manager' +} as const; -export type EntityDataStoreDtoEntityDataUsersInnerRoleEnum = - (typeof EntityDataStoreDtoEntityDataUsersInnerRoleEnum)[keyof typeof EntityDataStoreDtoEntityDataUsersInnerRoleEnum] +export type EntityDataStoreDtoEntityDataUsersInnerRoleEnum = typeof EntityDataStoreDtoEntityDataUsersInnerRoleEnum[keyof typeof EntityDataStoreDtoEntityDataUsersInnerRoleEnum]; /** - * + * * @export * @interface ErrorResponseDto */ export interface ErrorResponseDto { - /** - * - * @type {number} - * @memberof ErrorResponseDto - */ - status: ErrorResponseDtoStatusEnum - /** - * - * @type {string} - * @memberof ErrorResponseDto - */ - message: string - /** - * Extra data about the error - * @type {object} - * @memberof ErrorResponseDto - */ - context?: object - /** - * The error stacktrace (not available in production) - * @type {string} - * @memberof ErrorResponseDto - */ - stack?: string - /** - * The origin error (not available in production) - * @type {OriginErrorDto} - * @memberof ErrorResponseDto - */ - origin?: OriginErrorDto + /** + * + * @type {number} + * @memberof ErrorResponseDto + */ + 'status': ErrorResponseDtoStatusEnum; + /** + * + * @type {string} + * @memberof ErrorResponseDto + */ + 'message': string; + /** + * Extra data about the error + * @type {object} + * @memberof ErrorResponseDto + */ + 'context'?: object; + /** + * The error stacktrace (not available in production) + * @type {string} + * @memberof ErrorResponseDto + */ + 'stack'?: string; + /** + * The origin error (not available in production) + * @type {OriginErrorDto} + * @memberof ErrorResponseDto + */ + 'origin'?: OriginErrorDto; } export const ErrorResponseDtoStatusEnum = { - NUMBER_100: 100, - NUMBER_101: 101, - NUMBER_102: 102, - NUMBER_103: 103, - NUMBER_200: 200, - NUMBER_201: 201, - NUMBER_202: 202, - NUMBER_203: 203, - NUMBER_204: 204, - NUMBER_205: 205, - NUMBER_206: 206, - NUMBER_300: 300, - NUMBER_301: 301, - NUMBER_302: 302, - NUMBER_303: 303, - NUMBER_304: 304, - NUMBER_307: 307, - NUMBER_308: 308, - NUMBER_400: 400, - NUMBER_401: 401, - NUMBER_402: 402, - NUMBER_403: 403, - NUMBER_404: 404, - NUMBER_405: 405, - NUMBER_406: 406, - NUMBER_407: 407, - NUMBER_408: 408, - NUMBER_409: 409, - NUMBER_410: 410, - NUMBER_411: 411, - NUMBER_412: 412, - NUMBER_413: 413, - NUMBER_414: 414, - NUMBER_415: 415, - NUMBER_416: 416, - NUMBER_417: 417, - NUMBER_418: 418, - NUMBER_421: 421, - NUMBER_422: 422, - NUMBER_424: 424, - NUMBER_428: 428, - NUMBER_429: 429, - NUMBER_500: 500, - NUMBER_501: 501, - NUMBER_502: 502, - NUMBER_503: 503, - NUMBER_504: 504, - NUMBER_505: 505 -} as const - -export type ErrorResponseDtoStatusEnum = (typeof ErrorResponseDtoStatusEnum)[keyof typeof ErrorResponseDtoStatusEnum] + NUMBER_100: 100, + NUMBER_101: 101, + NUMBER_102: 102, + NUMBER_103: 103, + NUMBER_200: 200, + NUMBER_201: 201, + NUMBER_202: 202, + NUMBER_203: 203, + NUMBER_204: 204, + NUMBER_205: 205, + NUMBER_206: 206, + NUMBER_300: 300, + NUMBER_301: 301, + NUMBER_302: 302, + NUMBER_303: 303, + NUMBER_304: 304, + NUMBER_307: 307, + NUMBER_308: 308, + NUMBER_400: 400, + NUMBER_401: 401, + NUMBER_402: 402, + NUMBER_403: 403, + NUMBER_404: 404, + NUMBER_405: 405, + NUMBER_406: 406, + NUMBER_407: 407, + NUMBER_408: 408, + NUMBER_409: 409, + NUMBER_410: 410, + NUMBER_411: 411, + NUMBER_412: 412, + NUMBER_413: 413, + NUMBER_414: 414, + NUMBER_415: 415, + NUMBER_416: 416, + NUMBER_417: 417, + NUMBER_418: 418, + NUMBER_421: 421, + NUMBER_422: 422, + NUMBER_424: 424, + NUMBER_428: 428, + NUMBER_429: 429, + NUMBER_500: 500, + NUMBER_501: 501, + NUMBER_502: 502, + NUMBER_503: 503, + NUMBER_504: 504, + NUMBER_505: 505 +} as const; + +export type ErrorResponseDtoStatusEnum = typeof ErrorResponseDtoStatusEnum[keyof typeof ErrorResponseDtoStatusEnum]; /** - * + * * @export * @interface OriginErrorDto */ export interface OriginErrorDto { - /** - * - * @type {string} - * @memberof OriginErrorDto - */ - message: string - /** - * - * @type {string} - * @memberof OriginErrorDto - */ - name: string - /** - * The error stacktrace (not available in production) - * @type {string} - * @memberof OriginErrorDto - */ - stack?: string + /** + * + * @type {string} + * @memberof OriginErrorDto + */ + 'message': string; + /** + * + * @type {string} + * @memberof OriginErrorDto + */ + 'name': string; + /** + * The error stacktrace (not available in production) + * @type {string} + * @memberof OriginErrorDto + */ + 'stack'?: string; } /** - * + * * @export * @interface PolicyDataStoreDto */ export interface PolicyDataStoreDto { - /** - * - * @type {PolicyDataStoreDtoPolicy} - * @memberof PolicyDataStoreDto - */ - policy: PolicyDataStoreDtoPolicy + /** + * + * @type {PolicyDataStoreDtoPolicy} + * @memberof PolicyDataStoreDto + */ + 'policy': PolicyDataStoreDtoPolicy; } /** - * + * * @export * @interface PolicyDataStoreDtoPolicy */ export interface PolicyDataStoreDtoPolicy { - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicy - */ - data: Array - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicy - */ - signature: string + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicy + */ + 'data': Array; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicy + */ + 'signature': string; } /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInner */ export interface PolicyDataStoreDtoPolicyDataInner { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInner - */ - id: string - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInner - */ - description: string - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInner - */ - when: Array - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInner - */ - then: PolicyDataStoreDtoPolicyDataInnerThenEnum + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInner + */ + 'id': string; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInner + */ + 'description': string; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInner + */ + 'when': Array; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInner + */ + 'then': PolicyDataStoreDtoPolicyDataInnerThenEnum; } export const PolicyDataStoreDtoPolicyDataInnerThenEnum = { - Permit: 'permit', - Forbid: 'forbid' -} as const + Permit: 'permit', + Forbid: 'forbid' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerThenEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerThenEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerThenEnum] +export type PolicyDataStoreDtoPolicyDataInnerThenEnum = typeof PolicyDataStoreDtoPolicyDataInnerThenEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerThenEnum]; /** * @type PolicyDataStoreDtoPolicyDataInnerWhenInner * @export */ -export type PolicyDataStoreDtoPolicyDataInnerWhenInner = - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8 - | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9 +export type PolicyDataStoreDtoPolicyDataInnerWhenInner = PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8 | PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum = { - CheckAction: 'checkAction' -} as const + CheckAction: 'checkAction' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfCriterionEnum]; export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfArgsEnum = { - SignTransaction: 'signTransaction', - SignRaw: 'signRaw', - SignMessage: 'signMessage', - SignTypedData: 'signTypedData', - GrantPermission: 'grantPermission' -} as const + SignTransaction: 'signTransaction', + SignRaw: 'signRaw', + SignMessage: 'signMessage', + SignTypedData: 'signTypedData', + GrantPermission: 'grantPermission' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfArgsEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfArgsEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfArgsEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfArgsEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfArgsEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOfArgsEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum = { - CheckApprovals: 'checkApprovals' -} as const + CheckApprovals: 'checkApprovals' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10 - */ - args: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum; + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10 + */ + 'args': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum = { - CheckGasFeeAmount: 'checkGasFeeAmount' -} as const + CheckGasFeeAmount: 'checkGasFeeAmount' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args { - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsCurrency} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args - */ - currency: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsCurrency - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args - */ - operator: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args - */ - value: string + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsCurrency} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args + */ + 'currency': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsCurrency; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args + */ + 'operator': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args + */ + 'value': string; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum = { - Gt: 'gt', - Lt: 'lt', - Gte: 'gte', - Lte: 'lte', - Eq: 'eq', - Ne: 'ne' -} as const + Gt: 'gt', + Lt: 'lt', + Gte: 'gte', + Lte: 'lte', + Eq: 'eq', + Ne: 'ne' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsOperatorEnum]; /** * @type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsCurrency * @export */ -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsCurrency = string +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10ArgsCurrency = string; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum = { - CheckIntentAlgorithm: 'checkIntentAlgorithm' -} as const + CheckIntentAlgorithm: 'checkIntentAlgorithm' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11CriterionEnum]; export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11ArgsEnum = { - Es256K: 'ES256K', - Es256: 'ES256', - Rs256: 'RS256' -} as const + Es256K: 'ES256K', + Es256: 'ES256', + Rs256: 'RS256' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11ArgsEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11ArgsEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11ArgsEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11ArgsEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11ArgsEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf11ArgsEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12 - */ - args: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum; + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12 + */ + 'args': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf10Args; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum = { - CheckIntentAmount: 'checkIntentAmount' -} as const + CheckIntentAmount: 'checkIntentAmount' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf12CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum = { - CheckIntentChainId: 'checkIntentChainId' -} as const + CheckIntentChainId: 'checkIntentChainId' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf13CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum = { - CheckIntentContract: 'checkIntentContract' -} as const + CheckIntentContract: 'checkIntentContract' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf14CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15 - */ - args: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum; + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15 + */ + 'args': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum = { - CheckIntentDomain: 'checkIntentDomain' -} as const + CheckIntentDomain: 'checkIntentDomain' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args { - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args - */ - version?: Array - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args - */ - chainId?: Array - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args - */ - name?: Array - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args - */ - verifyingContract?: Array + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args + */ + 'version'?: Array; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args + */ + 'chainId'?: Array; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args + */ + 'name'?: Array; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf15Args + */ + 'verifyingContract'?: Array; } /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum = { - CheckIntentHexSignature: 'checkIntentHexSignature' -} as const + CheckIntentHexSignature: 'checkIntentHexSignature' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf16CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17 - */ - args: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum; + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17 + */ + 'args': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum = { - CheckIntentMessage: 'checkIntentMessage' -} as const + CheckIntentMessage: 'checkIntentMessage' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args { - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17ArgsOperator} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args - */ - operator: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17ArgsOperator - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args - */ - value: string + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17ArgsOperator} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args + */ + 'operator': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17ArgsOperator; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17Args + */ + 'value': string; } /** * @type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17ArgsOperator * @export */ -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17ArgsOperator = string +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf17ArgsOperator = string; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum = { - CheckIntentPayload: 'checkIntentPayload' -} as const + CheckIntentPayload: 'checkIntentPayload' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf18CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum = { - CheckIntentSpender: 'checkIntentSpender' -} as const + CheckIntentSpender: 'checkIntentSpender' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf19CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner { - /** - * - * @type {number} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner - */ - approvalCount: number - /** - * - * @type {boolean} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner - */ - countPrincipal: boolean - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner - */ - approvalEntityType: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner - */ - entityIds: Array + /** + * + * @type {number} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner + */ + 'approvalCount': number; + /** + * + * @type {boolean} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner + */ + 'countPrincipal': boolean; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner + */ + 'approvalEntityType': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInner + */ + 'entityIds': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum = { - User: 'Narval::User', - UserRole: 'Narval::UserRole', - UserGroup: 'Narval::UserGroup' -} as const + User: 'Narval::User', + UserRole: 'Narval::UserRole', + UserGroup: 'Narval::UserGroup' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf1ArgsInnerApprovalEntityTypeEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum = { - CheckChainId: 'checkChainId' -} as const + CheckChainId: 'checkChainId' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf2CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum = { - CheckIntentToken: 'checkIntentToken' -} as const + CheckIntentToken: 'checkIntentToken' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf20CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum = { - CheckIntentType: 'checkIntentType' -} as const + CheckIntentType: 'checkIntentType' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21CriterionEnum]; export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21ArgsEnum = { - TransferNative: 'transferNative', - TransferErc20: 'transferErc20', - TransferErc721: 'transferErc721', - TransferErc1155: 'transferErc1155', - ApproveTokenAllowance: 'approveTokenAllowance', - Permit: 'permit', - Permit2: 'permit2', - CallContract: 'callContract', - RetryTransaction: 'retryTransaction', - CancelTransaction: 'cancelTransaction', - DeployContract: 'deployContract', - DeployErc4337Account: 'deployErc4337Account', - DeploySafeAccount: 'deploySafeAccount', - SignMessage: 'signMessage', - SignRaw: 'signRaw', - SignTypedData: 'signTypedData', - UserOperation: 'userOperation' -} as const - -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21ArgsEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21ArgsEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21ArgsEnum] + TransferNative: 'transferNative', + TransferErc20: 'transferErc20', + TransferErc721: 'transferErc721', + TransferErc1155: 'transferErc1155', + ApproveTokenAllowance: 'approveTokenAllowance', + Permit: 'permit', + Permit2: 'permit2', + CallContract: 'callContract', + RetryTransaction: 'retryTransaction', + CancelTransaction: 'cancelTransaction', + DeployContract: 'deployContract', + DeployErc4337Account: 'deployErc4337Account', + DeploySafeAccount: 'deploySafeAccount', + SignMessage: 'signMessage', + SignRaw: 'signRaw', + SignTypedData: 'signTypedData', + UserOperation: 'userOperation' +} as const; + +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21ArgsEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21ArgsEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf21ArgsEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum - /** - * - * @type {any} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22 - */ - args: any + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum; + /** + * + * @type {any} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22 + */ + 'args': any; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum = { - CheckNonceNotExists: 'checkNonceNotExists' -} as const + CheckNonceNotExists: 'checkNonceNotExists' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf22CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum - /** - * - * @type {any} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23 - */ - args: any + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum; + /** + * + * @type {any} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23 + */ + 'args': any; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum = { - CheckNonceExists: 'checkNonceExists' -} as const + CheckNonceExists: 'checkNonceExists' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf23CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum = { - CheckPermission: 'checkPermission' -} as const + CheckPermission: 'checkPermission' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf24CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25 - */ - args: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum; + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25 + */ + 'args': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum = { - CheckPermitDeadline: 'checkPermitDeadline' -} as const + CheckPermitDeadline: 'checkPermitDeadline' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args - */ - operator: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args - */ - value: string + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args + */ + 'operator': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25Args + */ + 'value': string; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum = { - Gt: 'gt', - Lt: 'lt', - Gte: 'gte', - Lte: 'lte', - Eq: 'eq', - Ne: 'ne' -} as const + Gt: 'gt', + Lt: 'lt', + Gte: 'gte', + Lte: 'lte', + Eq: 'eq', + Ne: 'ne' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf25ArgsOperatorEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum = { - CheckPrincipalGroup: 'checkPrincipalGroup' -} as const + CheckPrincipalGroup: 'checkPrincipalGroup' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf26CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum = { - CheckPrincipalId: 'checkPrincipalId' -} as const + CheckPrincipalId: 'checkPrincipalId' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf27CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum = { - CheckPrincipalRole: 'checkPrincipalRole' -} as const + CheckPrincipalRole: 'checkPrincipalRole' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28CriterionEnum]; export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28ArgsEnum = { - Root: 'root', - Admin: 'admin', - Member: 'member', - Manager: 'manager' -} as const + Root: 'root', + Admin: 'admin', + Member: 'member', + Manager: 'manager' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28ArgsEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28ArgsEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28ArgsEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28ArgsEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28ArgsEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf28ArgsEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum = { - CheckResource: 'checkResource' -} as const + CheckResource: 'checkResource' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf29CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum = { - CheckDestinationAccountType: 'checkDestinationAccountType' -} as const + CheckDestinationAccountType: 'checkDestinationAccountType' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3CriterionEnum]; export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3ArgsEnum = { - Eoa: 'eoa', - _4337: '4337' -} as const + Eoa: 'eoa', + _4337: '4337' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3ArgsEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3ArgsEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3ArgsEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3ArgsEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3ArgsEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf3ArgsEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum - /** - * - * @type {any} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30 - */ - args: any + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum; + /** + * + * @type {any} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30 + */ + 'args': any; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum = { - CheckResourceIntegrity: 'checkResourceIntegrity' -} as const + CheckResourceIntegrity: 'checkResourceIntegrity' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf30CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31 - */ - args: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum; + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31 + */ + 'args': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum = { - CheckSpendingLimit: 'checkSpendingLimit' -} as const + CheckSpendingLimit: 'checkSpendingLimit' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args - */ - limit: string - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args - */ - operator: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args - */ - currency?: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args - */ - timeWindow?: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow - /** - * - * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args - */ - filters?: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args + */ + 'limit': string; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args + */ + 'operator': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args + */ + 'currency'?: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum; + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args + */ + 'timeWindow'?: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow; + /** + * + * @type {PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31Args + */ + 'filters'?: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum = { - Gt: 'gt', - Lt: 'lt', - Gte: 'gte', - Lte: 'lte', - Eq: 'eq', - Ne: 'ne' -} as const - -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum] + Gt: 'gt', + Lt: 'lt', + Gte: 'gte', + Lte: 'lte', + Eq: 'eq', + Ne: 'ne' +} as const; + +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsOperatorEnum]; export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum = { - Usd: 'fiat:usd', - Eur: 'fiat:eur' -} as const + Usd: 'fiat:usd', + Eur: 'fiat:eur' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsCurrencyEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters { - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters - */ - tokens?: Array - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters - */ - users?: Array - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters - */ - resources?: Array - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters - */ - chains?: Array - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters - */ - userGroups?: Array - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters - */ - accountGroups?: Array + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters + */ + 'tokens'?: Array; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters + */ + 'users'?: Array; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters + */ + 'resources'?: Array; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters + */ + 'chains'?: Array; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters + */ + 'userGroups'?: Array; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsFilters + */ + 'accountGroups'?: Array; } /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow - */ - type?: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum - /** - * - * @type {number} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow - */ - value?: number - /** - * - * @type {number} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow - */ - startDate?: number - /** - * - * @type {number} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow - */ - endDate?: number + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow + */ + 'type'?: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum; + /** + * + * @type {number} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow + */ + 'value'?: number; + /** + * + * @type {number} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow + */ + 'startDate'?: number; + /** + * + * @type {number} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindow + */ + 'endDate'?: number; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum = { - Rolling: 'rolling', - Fixed: 'fixed' -} as const + Rolling: 'rolling', + Fixed: 'fixed' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf31ArgsTimeWindowTypeEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum = { - CheckAccountAccountType: 'checkAccountAccountType' -} as const + CheckAccountAccountType: 'checkAccountAccountType' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32CriterionEnum]; export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32ArgsEnum = { - Eoa: 'eoa', - _4337: '4337' -} as const + Eoa: 'eoa', + _4337: '4337' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32ArgsEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32ArgsEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32ArgsEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32ArgsEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32ArgsEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf32ArgsEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum = { - CheckAccountAddress: 'checkAccountAddress' -} as const + CheckAccountAddress: 'checkAccountAddress' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf33CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum = { - CheckAccountGroup: 'checkAccountGroup' -} as const + CheckAccountGroup: 'checkAccountGroup' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf34CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum = { - CheckAccountId: 'checkAccountId' -} as const + CheckAccountId: 'checkAccountId' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf35CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum = { - CheckDestinationAddress: 'checkDestinationAddress' -} as const + CheckDestinationAddress: 'checkDestinationAddress' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf4CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum = { - CheckDestinationClassification: 'checkDestinationClassification' -} as const + CheckDestinationClassification: 'checkDestinationClassification' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf5CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum = { - CheckDestinationId: 'checkDestinationId' -} as const + CheckDestinationId: 'checkDestinationId' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf6CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum = { - CheckErc1155TokenId: 'checkERC1155TokenId' -} as const + CheckErc1155TokenId: 'checkERC1155TokenId' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf7CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum = { - CheckErc1155Transfers: 'checkERC1155Transfers' -} as const + CheckErc1155Transfers: 'checkERC1155Transfers' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8CriterionEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInner */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInner { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInner - */ - tokenId: string - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInner - */ - operator: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInner - */ - value: string + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInner + */ + 'tokenId': string; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInner + */ + 'operator': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum; + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInner + */ + 'value': string; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum = { - Gt: 'gt', - Lt: 'lt', - Gte: 'gte', - Lte: 'lte', - Eq: 'eq', - Ne: 'ne' -} as const + Gt: 'gt', + Lt: 'lt', + Gte: 'gte', + Lte: 'lte', + Eq: 'eq', + Ne: 'ne' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf8ArgsInnerOperatorEnum]; /** - * + * * @export * @interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9 */ export interface PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9 { - /** - * - * @type {string} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9 - */ - criterion: PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum - /** - * - * @type {Array} - * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9 - */ - args: Array + /** + * + * @type {string} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9 + */ + 'criterion': PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum; + /** + * + * @type {Array} + * @memberof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9 + */ + 'args': Array; } export const PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum = { - CheckErc721TokenId: 'checkERC721TokenId' -} as const + CheckErc721TokenId: 'checkERC721TokenId' +} as const; -export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum = - (typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum)[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum] +export type PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum = typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum[keyof typeof PolicyDataStoreDtoPolicyDataInnerWhenInnerOneOf9CriterionEnum]; /** - * + * * @export * @interface PongDto */ export interface PongDto { - /** - * - * @type {boolean} - * @memberof PongDto - */ - pong: boolean + /** + * + * @type {boolean} + * @memberof PongDto + */ + 'pong': boolean; } /** - * + * * @export * @interface SetEntityStoreDto */ export interface SetEntityStoreDto { - /** - * - * @type {EntityDataStoreDtoEntityData} - * @memberof SetEntityStoreDto - */ - data: EntityDataStoreDtoEntityData - /** - * - * @type {string} - * @memberof SetEntityStoreDto - */ - signature: string + /** + * + * @type {EntityDataStoreDtoEntityData} + * @memberof SetEntityStoreDto + */ + 'data': EntityDataStoreDtoEntityData; + /** + * + * @type {string} + * @memberof SetEntityStoreDto + */ + 'signature': string; } /** - * + * * @export * @interface SetEntityStoreResponseDto */ export interface SetEntityStoreResponseDto { - /** - * - * @type {EntityDataStoreDtoEntity} - * @memberof SetEntityStoreResponseDto - */ - entity: EntityDataStoreDtoEntity - /** - * - * @type {number} - * @memberof SetEntityStoreResponseDto - */ - version: number - /** - * - * @type {SetEntityStoreResponseDtoLatestSync} - * @memberof SetEntityStoreResponseDto - */ - latestSync: SetEntityStoreResponseDtoLatestSync + /** + * + * @type {EntityDataStoreDtoEntity} + * @memberof SetEntityStoreResponseDto + */ + 'entity': EntityDataStoreDtoEntity; + /** + * + * @type {number} + * @memberof SetEntityStoreResponseDto + */ + 'version': number; + /** + * + * @type {SetEntityStoreResponseDtoLatestSync} + * @memberof SetEntityStoreResponseDto + */ + 'latestSync': SetEntityStoreResponseDtoLatestSync; } /** - * + * * @export * @interface SetEntityStoreResponseDtoLatestSync */ export interface SetEntityStoreResponseDtoLatestSync { - /** - * - * @type {boolean} - * @memberof SetEntityStoreResponseDtoLatestSync - */ - success: boolean + /** + * + * @type {boolean} + * @memberof SetEntityStoreResponseDtoLatestSync + */ + 'success': boolean; } /** - * + * * @export * @interface SetPolicyStoreDto */ export interface SetPolicyStoreDto { - /** - * - * @type {Array} - * @memberof SetPolicyStoreDto - */ - data: Array - /** - * - * @type {string} - * @memberof SetPolicyStoreDto - */ - signature: string + /** + * + * @type {Array} + * @memberof SetPolicyStoreDto + */ + 'data': Array; + /** + * + * @type {string} + * @memberof SetPolicyStoreDto + */ + 'signature': string; } /** - * + * * @export * @interface SetPolicyStoreResponseDto */ export interface SetPolicyStoreResponseDto { - /** - * - * @type {PolicyDataStoreDtoPolicy} - * @memberof SetPolicyStoreResponseDto - */ - policy: PolicyDataStoreDtoPolicy - /** - * - * @type {number} - * @memberof SetPolicyStoreResponseDto - */ - version: number - /** - * - * @type {SetEntityStoreResponseDtoLatestSync} - * @memberof SetPolicyStoreResponseDto - */ - latestSync: SetEntityStoreResponseDtoLatestSync + /** + * + * @type {PolicyDataStoreDtoPolicy} + * @memberof SetPolicyStoreResponseDto + */ + 'policy': PolicyDataStoreDtoPolicy; + /** + * + * @type {number} + * @memberof SetPolicyStoreResponseDto + */ + 'version': number; + /** + * + * @type {SetEntityStoreResponseDtoLatestSync} + * @memberof SetPolicyStoreResponseDto + */ + 'latestSync': SetEntityStoreResponseDtoLatestSync; } /** - * + * * @export * @interface SyncDto */ export interface SyncDto { - /** - * - * @type {SetEntityStoreResponseDtoLatestSync} - * @memberof SyncDto - */ - latestSync: SetEntityStoreResponseDtoLatestSync + /** + * + * @type {SetEntityStoreResponseDtoLatestSync} + * @memberof SyncDto + */ + 'latestSync': SetEntityStoreResponseDtoLatestSync; } /** @@ -3449,88 +3314,77 @@ export interface SyncDto { * @export */ export const ApplicationApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - ping: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/ping` - // 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 - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ping: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/ping`; + // 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; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, } - } -} +}; /** * ApplicationApi - functional programming interface * @export */ -export const ApplicationApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = ApplicationApiAxiosParamCreator(configuration) - return { - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async ping( - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.ping(options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['ApplicationApi.ping']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) +export const ApplicationApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ApplicationApiAxiosParamCreator(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async ping(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.ping(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ApplicationApi.ping']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, } - } -} +}; /** * ApplicationApi - factory interface * @export */ -export const ApplicationApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ApplicationApiFp(configuration) - return { - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - ping(options?: any): AxiosPromise { - return localVarFp.ping(options).then((request) => request(axios, basePath)) - } - } -} +export const ApplicationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ApplicationApiFp(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ping(options?: any): AxiosPromise { + return localVarFp.ping(options).then((request) => request(axios, basePath)); + }, + }; +}; /** * ApplicationApi - object-oriented interface @@ -3539,455 +3393,414 @@ export const ApplicationApiFactory = function ( * @extends {BaseAPI} */ export class ApplicationApi extends BaseAPI { - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApplicationApi - */ - public ping(options?: RawAxiosRequestConfig) { - return ApplicationApiFp(this.configuration) - .ping(options) - .then((request) => request(this.axios, this.basePath)) - } + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApplicationApi + */ + public ping(options?: RawAxiosRequestConfig) { + return ApplicationApiFp(this.configuration).ping(options).then((request) => request(this.axios, this.basePath)); + } } + + /** * AuthorizationApi - axios parameter creator * @export */ export const AuthorizationApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Approves an authorization request - * @param {string} id - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - approve: async (id: string, body: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('approve', 'id', id) - // verify required parameter 'body' is not null or undefined - assertParamExists('approve', 'body', body) - const localVarPath = `/authorization-requests/{id}/approvals`.replace(`{${'id'}}`, encodeURIComponent(String(id))) - // 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 - - localVarHeaderParameter['Content-Type'] = 'application/json' - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } - }, - /** - * - * @summary Submits a new authorization request for evaluation by the policy engine - * @param {string} xClientId - * @param {AuthorizationRequestDto} authorizationRequestDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - evaluate: async ( - xClientId: string, - authorizationRequestDto: AuthorizationRequestDto, - options: RawAxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'xClientId' is not null or undefined - assertParamExists('evaluate', 'xClientId', xClientId) - // verify required parameter 'authorizationRequestDto' is not null or undefined - assertParamExists('evaluate', 'authorizationRequestDto', authorizationRequestDto) - const localVarPath = `/authorization-requests` - // 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 CLIENT_ID required - await setApiKeyToObject(localVarHeaderParameter, 'CLIENT_ID', configuration) - - if (xClientId != null) { - localVarHeaderParameter['x-client-id'] = String(xClientId) - } - - localVarHeaderParameter['Content-Type'] = 'application/json' - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - localVarRequestOptions.data = serializeDataIfNeeded( - authorizationRequestDto, - localVarRequestOptions, - configuration - ) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } - }, - /** - * - * @summary Gets an authorization request by ID - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getById: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('getById', 'id', id) - const localVarPath = `/authorization-requests/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))) - // 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 - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } + return { + /** + * + * @summary Approves an authorization request + * @param {string} id + * @param {string} xClientId + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approve: async (id: string, xClientId: string, body: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('approve', 'id', id) + // verify required parameter 'xClientId' is not null or undefined + assertParamExists('approve', 'xClientId', xClientId) + // verify required parameter 'body' is not null or undefined + assertParamExists('approve', 'body', body) + const localVarPath = `/authorization-requests/{id}/approvals` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 CLIENT_ID required + await setApiKeyToObject(localVarHeaderParameter, "CLIENT_ID", configuration) + + if (xClientId != null) { + localVarHeaderParameter['x-client-id'] = String(xClientId); + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Submits a new authorization request for evaluation by the policy engine + * @param {string} xClientId + * @param {AuthorizationRequestDto} authorizationRequestDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + evaluate: async (xClientId: string, authorizationRequestDto: AuthorizationRequestDto, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'xClientId' is not null or undefined + assertParamExists('evaluate', 'xClientId', xClientId) + // verify required parameter 'authorizationRequestDto' is not null or undefined + assertParamExists('evaluate', 'authorizationRequestDto', authorizationRequestDto) + const localVarPath = `/authorization-requests`; + // 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 CLIENT_ID required + await setApiKeyToObject(localVarHeaderParameter, "CLIENT_ID", configuration) + + if (xClientId != null) { + localVarHeaderParameter['x-client-id'] = String(xClientId); + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(authorizationRequestDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Gets an authorization request by ID + * @param {string} id + * @param {string} xClientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getById: async (id: string, xClientId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getById', 'id', id) + // verify required parameter 'xClientId' is not null or undefined + assertParamExists('getById', 'xClientId', xClientId) + const localVarPath = `/authorization-requests/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 CLIENT_ID required + await setApiKeyToObject(localVarHeaderParameter, "CLIENT_ID", configuration) + + if (xClientId != null) { + localVarHeaderParameter['x-client-id'] = String(xClientId); + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, } - } -} +}; /** * AuthorizationApi - functional programming interface * @export */ -export const AuthorizationApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = AuthorizationApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Approves an authorization request - * @param {string} id - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async approve( - id: string, - body: string, - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.approve(id, body, options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['AuthorizationApi.approve']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) - }, - /** - * - * @summary Submits a new authorization request for evaluation by the policy engine - * @param {string} xClientId - * @param {AuthorizationRequestDto} authorizationRequestDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async evaluate( - xClientId: string, - authorizationRequestDto: AuthorizationRequestDto, - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.evaluate(xClientId, authorizationRequestDto, options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['AuthorizationApi.evaluate']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) - }, - /** - * - * @summary Gets an authorization request by ID - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getById( - id: string, - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getById(id, options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['AuthorizationApi.getById']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) +export const AuthorizationApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AuthorizationApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Approves an authorization request + * @param {string} id + * @param {string} xClientId + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async approve(id: string, xClientId: string, body: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.approve(id, xClientId, body, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.approve']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Submits a new authorization request for evaluation by the policy engine + * @param {string} xClientId + * @param {AuthorizationRequestDto} authorizationRequestDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async evaluate(xClientId: string, authorizationRequestDto: AuthorizationRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.evaluate(xClientId, authorizationRequestDto, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.evaluate']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Gets an authorization request by ID + * @param {string} id + * @param {string} xClientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getById(id: string, xClientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getById(id, xClientId, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.getById']?.[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 { - /** - * +export const AuthorizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AuthorizationApiFp(configuration) + return { + /** + * + * @summary Approves an authorization request + * @param {string} id + * @param {string} xClientId + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approve(id: string, xClientId: string, body: string, options?: any): AxiosPromise { + return localVarFp.approve(id, xClientId, body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Submits a new authorization request for evaluation by the policy engine + * @param {string} xClientId + * @param {AuthorizationRequestDto} authorizationRequestDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + evaluate(xClientId: string, authorizationRequestDto: AuthorizationRequestDto, options?: any): AxiosPromise { + return localVarFp.evaluate(xClientId, authorizationRequestDto, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Gets an authorization request by ID + * @param {string} id + * @param {string} xClientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getById(id: string, xClientId: string, options?: any): AxiosPromise { + return localVarFp.getById(id, xClientId, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * AuthorizationApi - object-oriented interface + * @export + * @class AuthorizationApi + * @extends {BaseAPI} + */ +export class AuthorizationApi extends BaseAPI { + /** + * * @summary Approves an authorization request - * @param {string} id - * @param {string} body + * @param {string} id + * @param {string} xClientId + * @param {string} body * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof AuthorizationApi */ - approve(id: string, body: string, options?: any): AxiosPromise { - return localVarFp.approve(id, body, options).then((request) => request(axios, basePath)) - }, + public approve(id: string, xClientId: string, body: string, options?: RawAxiosRequestConfig) { + return AuthorizationApiFp(this.configuration).approve(id, xClientId, body, options).then((request) => request(this.axios, this.basePath)); + } + /** - * + * * @summary Submits a new authorization request for evaluation by the policy engine - * @param {string} xClientId - * @param {AuthorizationRequestDto} authorizationRequestDto + * @param {string} xClientId + * @param {AuthorizationRequestDto} authorizationRequestDto * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof AuthorizationApi */ - evaluate( - xClientId: string, - authorizationRequestDto: AuthorizationRequestDto, - options?: any - ): AxiosPromise { - return localVarFp - .evaluate(xClientId, authorizationRequestDto, options) - .then((request) => request(axios, basePath)) - }, - /** - * + public evaluate(xClientId: string, authorizationRequestDto: AuthorizationRequestDto, options?: RawAxiosRequestConfig) { + return AuthorizationApiFp(this.configuration).evaluate(xClientId, authorizationRequestDto, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * * @summary Gets an authorization request by ID - * @param {string} id + * @param {string} id + * @param {string} xClientId * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof AuthorizationApi */ - getById(id: string, options?: any): AxiosPromise { - return localVarFp.getById(id, options).then((request) => request(axios, basePath)) + public getById(id: string, xClientId: string, options?: RawAxiosRequestConfig) { + return AuthorizationApiFp(this.configuration).getById(id, xClientId, options).then((request) => request(this.axios, this.basePath)); } - } } -/** - * AuthorizationApi - object-oriented interface - * @export - * @class AuthorizationApi - * @extends {BaseAPI} - */ -export class AuthorizationApi extends BaseAPI { - /** - * - * @summary Approves an authorization request - * @param {string} id - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthorizationApi - */ - public approve(id: string, body: string, options?: RawAxiosRequestConfig) { - return AuthorizationApiFp(this.configuration) - .approve(id, body, options) - .then((request) => request(this.axios, this.basePath)) - } - - /** - * - * @summary Submits a new authorization request for evaluation by the policy engine - * @param {string} xClientId - * @param {AuthorizationRequestDto} authorizationRequestDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthorizationApi - */ - public evaluate( - xClientId: string, - authorizationRequestDto: AuthorizationRequestDto, - options?: RawAxiosRequestConfig - ) { - return AuthorizationApiFp(this.configuration) - .evaluate(xClientId, authorizationRequestDto, options) - .then((request) => request(this.axios, this.basePath)) - } - - /** - * - * @summary Gets an authorization request by ID - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthorizationApi - */ - public getById(id: string, options?: RawAxiosRequestConfig) { - return AuthorizationApiFp(this.configuration) - .getById(id, options) - .then((request) => request(this.axios, this.basePath)) - } -} + /** * ClientApi - axios parameter creator * @export */ export const ClientApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Creates a new client - * @param {string} xApiKey - * @param {CreateClientRequestDto} createClientRequestDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - create: async ( - xApiKey: string, - createClientRequestDto: CreateClientRequestDto, - options: RawAxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'xApiKey' is not null or undefined - assertParamExists('create', 'xApiKey', xApiKey) - // verify required parameter 'createClientRequestDto' is not null or undefined - assertParamExists('create', 'createClientRequestDto', createClientRequestDto) - const localVarPath = `/clients` - // 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 ADMIN_API_KEY required - await setApiKeyToObject(localVarHeaderParameter, 'ADMIN_API_KEY', configuration) - - if (xApiKey != null) { - localVarHeaderParameter['x-api-key'] = String(xApiKey) - } - - localVarHeaderParameter['Content-Type'] = 'application/json' - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - localVarRequestOptions.data = serializeDataIfNeeded(createClientRequestDto, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } + return { + /** + * + * @summary Creates a new client + * @param {string} xApiKey + * @param {CreateClientRequestDto} createClientRequestDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + create: async (xApiKey: string, createClientRequestDto: CreateClientRequestDto, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'xApiKey' is not null or undefined + assertParamExists('create', 'xApiKey', xApiKey) + // verify required parameter 'createClientRequestDto' is not null or undefined + assertParamExists('create', 'createClientRequestDto', createClientRequestDto) + const localVarPath = `/clients`; + // 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 ADMIN_API_KEY required + await setApiKeyToObject(localVarHeaderParameter, "ADMIN_API_KEY", configuration) + + if (xApiKey != null) { + localVarHeaderParameter['x-api-key'] = String(xApiKey); + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(createClientRequestDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, } - } -} +}; /** * ClientApi - functional programming interface * @export */ -export const ClientApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Creates a new client - * @param {string} xApiKey - * @param {CreateClientRequestDto} createClientRequestDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async create( - xApiKey: string, - createClientRequestDto: CreateClientRequestDto, - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.create(xApiKey, createClientRequestDto, options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['ClientApi.create']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) +export const ClientApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Creates a new client + * @param {string} xApiKey + * @param {CreateClientRequestDto} createClientRequestDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async create(xApiKey: string, createClientRequestDto: CreateClientRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.create(xApiKey, createClientRequestDto, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ClientApi.create']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, } - } -} +}; /** * ClientApi - factory interface * @export */ export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ClientApiFp(configuration) - return { - /** - * - * @summary Creates a new client - * @param {string} xApiKey - * @param {CreateClientRequestDto} createClientRequestDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - create( - xApiKey: string, - createClientRequestDto: CreateClientRequestDto, - options?: any - ): AxiosPromise { - return localVarFp.create(xApiKey, createClientRequestDto, options).then((request) => request(axios, basePath)) - } - } -} + const localVarFp = ClientApiFp(configuration) + return { + /** + * + * @summary Creates a new client + * @param {string} xApiKey + * @param {CreateClientRequestDto} createClientRequestDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + create(xApiKey: string, createClientRequestDto: CreateClientRequestDto, options?: any): AxiosPromise { + return localVarFp.create(xApiKey, createClientRequestDto, options).then((request) => request(axios, basePath)); + }, + }; +}; /** * ClientApi - object-oriented interface @@ -3996,494 +3809,439 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat * @extends {BaseAPI} */ export class ClientApi extends BaseAPI { - /** - * - * @summary Creates a new client - * @param {string} xApiKey - * @param {CreateClientRequestDto} createClientRequestDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientApi - */ - public create(xApiKey: string, createClientRequestDto: CreateClientRequestDto, options?: RawAxiosRequestConfig) { - return ClientApiFp(this.configuration) - .create(xApiKey, createClientRequestDto, options) - .then((request) => request(this.axios, this.basePath)) - } + /** + * + * @summary Creates a new client + * @param {string} xApiKey + * @param {CreateClientRequestDto} createClientRequestDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientApi + */ + public create(xApiKey: string, createClientRequestDto: CreateClientRequestDto, options?: RawAxiosRequestConfig) { + return ClientApiFp(this.configuration).create(xApiKey, createClientRequestDto, options).then((request) => request(this.axios, this.basePath)); + } } + + /** * ManagedDataStoreApi - axios parameter creator * @export */ export const ManagedDataStoreApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Gets the client entities - * @param {string} clientId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getEntities: async (clientId: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'clientId' is not null or undefined - assertParamExists('getEntities', 'clientId', clientId) - const localVarPath = `/data/entities` - // 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 - - if (clientId !== undefined) { - localVarQueryParameter['clientId'] = clientId - } - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } - }, - /** - * - * @summary Gets the client policies - * @param {string} clientId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getPolicies: async (clientId: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'clientId' is not null or undefined - assertParamExists('getPolicies', 'clientId', clientId) - const localVarPath = `/data/policies` - // 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 - - if (clientId !== undefined) { - localVarQueryParameter['clientId'] = clientId - } - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } - }, - /** - * - * @summary Sets the client entities - * @param {string} clientId - * @param {SetEntityStoreDto} setEntityStoreDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - setEntities: async ( - clientId: string, - setEntityStoreDto: SetEntityStoreDto, - options: RawAxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'clientId' is not null or undefined - assertParamExists('setEntities', 'clientId', clientId) - // verify required parameter 'setEntityStoreDto' is not null or undefined - assertParamExists('setEntities', 'setEntityStoreDto', setEntityStoreDto) - const localVarPath = `/data/entities` - // 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 - - if (clientId !== undefined) { - localVarQueryParameter['clientId'] = clientId - } - - localVarHeaderParameter['Content-Type'] = 'application/json' - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - localVarRequestOptions.data = serializeDataIfNeeded(setEntityStoreDto, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } - }, - /** - * - * @summary Sets the client policies - * @param {string} clientId - * @param {SetPolicyStoreDto} setPolicyStoreDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - setPolicies: async ( - clientId: string, - setPolicyStoreDto: SetPolicyStoreDto, - options: RawAxiosRequestConfig = {} - ): Promise => { - // verify required parameter 'clientId' is not null or undefined - assertParamExists('setPolicies', 'clientId', clientId) - // verify required parameter 'setPolicyStoreDto' is not null or undefined - assertParamExists('setPolicies', 'setPolicyStoreDto', setPolicyStoreDto) - const localVarPath = `/data/policies` - // 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 - - if (clientId !== undefined) { - localVarQueryParameter['clientId'] = clientId - } - - localVarHeaderParameter['Content-Type'] = 'application/json' - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - localVarRequestOptions.data = serializeDataIfNeeded(setPolicyStoreDto, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } - }, - /** - * - * @summary Sync the client data store with the engine cluster - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - sync: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/data/sync` - // 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 - - setSearchParams(localVarUrlObj, localVarQueryParameter) - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions - } + return { + /** + * + * @summary Gets the client entities + * @param {string} clientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getEntities: async (clientId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'clientId' is not null or undefined + assertParamExists('getEntities', 'clientId', clientId) + const localVarPath = `/data/entities`; + // 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; + + if (clientId !== undefined) { + localVarQueryParameter['clientId'] = clientId; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Gets the client policies + * @param {string} clientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPolicies: async (clientId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'clientId' is not null or undefined + assertParamExists('getPolicies', 'clientId', clientId) + const localVarPath = `/data/policies`; + // 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; + + if (clientId !== undefined) { + localVarQueryParameter['clientId'] = clientId; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Sets the client entities + * @param {string} clientId + * @param {SetEntityStoreDto} setEntityStoreDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setEntities: async (clientId: string, setEntityStoreDto: SetEntityStoreDto, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'clientId' is not null or undefined + assertParamExists('setEntities', 'clientId', clientId) + // verify required parameter 'setEntityStoreDto' is not null or undefined + assertParamExists('setEntities', 'setEntityStoreDto', setEntityStoreDto) + const localVarPath = `/data/entities`; + // 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; + + if (clientId !== undefined) { + localVarQueryParameter['clientId'] = clientId; + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(setEntityStoreDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Sets the client policies + * @param {string} clientId + * @param {SetPolicyStoreDto} setPolicyStoreDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setPolicies: async (clientId: string, setPolicyStoreDto: SetPolicyStoreDto, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'clientId' is not null or undefined + assertParamExists('setPolicies', 'clientId', clientId) + // verify required parameter 'setPolicyStoreDto' is not null or undefined + assertParamExists('setPolicies', 'setPolicyStoreDto', setPolicyStoreDto) + const localVarPath = `/data/policies`; + // 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; + + if (clientId !== undefined) { + localVarQueryParameter['clientId'] = clientId; + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(setPolicyStoreDto, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Sync the client data store with the engine cluster + * @param {string} xClientSecret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sync: async (xClientSecret: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'xClientSecret' is not null or undefined + assertParamExists('sync', 'xClientSecret', xClientSecret) + const localVarPath = `/data/sync`; + // 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 CLIENT_SECRET required + await setApiKeyToObject(localVarHeaderParameter, "CLIENT_SECRET", configuration) + + if (xClientSecret != null) { + localVarHeaderParameter['x-client-secret'] = String(xClientSecret); + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, } - } -} +}; /** * ManagedDataStoreApi - functional programming interface * @export */ -export const ManagedDataStoreApiFp = function (configuration?: Configuration) { - const localVarAxiosParamCreator = ManagedDataStoreApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Gets the client entities - * @param {string} clientId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getEntities( - clientId: string, - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getEntities(clientId, options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['ManagedDataStoreApi.getEntities']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) - }, - /** - * - * @summary Gets the client policies - * @param {string} clientId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getPolicies( - clientId: string, - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicies(clientId, options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['ManagedDataStoreApi.getPolicies']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) - }, - /** - * - * @summary Sets the client entities - * @param {string} clientId - * @param {SetEntityStoreDto} setEntityStoreDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async setEntities( - clientId: string, - setEntityStoreDto: SetEntityStoreDto, - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setEntities(clientId, setEntityStoreDto, options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['ManagedDataStoreApi.setEntities']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) - }, - /** - * - * @summary Sets the client policies - * @param {string} clientId - * @param {SetPolicyStoreDto} setPolicyStoreDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async setPolicies( - clientId: string, - setPolicyStoreDto: SetPolicyStoreDto, - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.setPolicies(clientId, setPolicyStoreDto, options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['ManagedDataStoreApi.setPolicies']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) - }, - /** - * - * @summary Sync the client data store with the engine cluster - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async sync( - options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.sync(options) - const localVarOperationServerIndex = configuration?.serverIndex ?? 0 - const localVarOperationServerBasePath = - operationServerMap['ManagedDataStoreApi.sync']?.[localVarOperationServerIndex]?.url - return (axios, basePath) => - createRequestFunction( - localVarAxiosArgs, - globalAxios, - BASE_PATH, - configuration - )(axios, localVarOperationServerBasePath || basePath) +export const ManagedDataStoreApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ManagedDataStoreApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Gets the client entities + * @param {string} clientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getEntities(clientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getEntities(clientId, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ManagedDataStoreApi.getEntities']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Gets the client policies + * @param {string} clientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPolicies(clientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicies(clientId, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ManagedDataStoreApi.getPolicies']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Sets the client entities + * @param {string} clientId + * @param {SetEntityStoreDto} setEntityStoreDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setEntities(clientId: string, setEntityStoreDto: SetEntityStoreDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setEntities(clientId, setEntityStoreDto, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ManagedDataStoreApi.setEntities']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Sets the client policies + * @param {string} clientId + * @param {SetPolicyStoreDto} setPolicyStoreDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setPolicies(clientId: string, setPolicyStoreDto: SetPolicyStoreDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setPolicies(clientId, setPolicyStoreDto, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ManagedDataStoreApi.setPolicies']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Sync the client data store with the engine cluster + * @param {string} xClientSecret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sync(xClientSecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.sync(xClientSecret, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ManagedDataStoreApi.sync']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, } - } -} +}; /** * ManagedDataStoreApi - factory interface * @export */ -export const ManagedDataStoreApiFactory = function ( - configuration?: Configuration, - basePath?: string, - axios?: AxiosInstance -) { - const localVarFp = ManagedDataStoreApiFp(configuration) - return { - /** - * +export const ManagedDataStoreApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ManagedDataStoreApiFp(configuration) + return { + /** + * + * @summary Gets the client entities + * @param {string} clientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getEntities(clientId: string, options?: any): AxiosPromise { + return localVarFp.getEntities(clientId, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Gets the client policies + * @param {string} clientId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPolicies(clientId: string, options?: any): AxiosPromise { + return localVarFp.getPolicies(clientId, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Sets the client entities + * @param {string} clientId + * @param {SetEntityStoreDto} setEntityStoreDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setEntities(clientId: string, setEntityStoreDto: SetEntityStoreDto, options?: any): AxiosPromise { + return localVarFp.setEntities(clientId, setEntityStoreDto, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Sets the client policies + * @param {string} clientId + * @param {SetPolicyStoreDto} setPolicyStoreDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setPolicies(clientId: string, setPolicyStoreDto: SetPolicyStoreDto, options?: any): AxiosPromise { + return localVarFp.setPolicies(clientId, setPolicyStoreDto, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Sync the client data store with the engine cluster + * @param {string} xClientSecret + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sync(xClientSecret: string, options?: any): AxiosPromise { + return localVarFp.sync(xClientSecret, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ManagedDataStoreApi - object-oriented interface + * @export + * @class ManagedDataStoreApi + * @extends {BaseAPI} + */ +export class ManagedDataStoreApi extends BaseAPI { + /** + * * @summary Gets the client entities - * @param {string} clientId + * @param {string} clientId * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ManagedDataStoreApi */ - getEntities(clientId: string, options?: any): AxiosPromise { - return localVarFp.getEntities(clientId, options).then((request) => request(axios, basePath)) - }, + public getEntities(clientId: string, options?: RawAxiosRequestConfig) { + return ManagedDataStoreApiFp(this.configuration).getEntities(clientId, options).then((request) => request(this.axios, this.basePath)); + } + /** - * + * * @summary Gets the client policies - * @param {string} clientId + * @param {string} clientId * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ManagedDataStoreApi */ - getPolicies(clientId: string, options?: any): AxiosPromise { - return localVarFp.getPolicies(clientId, options).then((request) => request(axios, basePath)) - }, + public getPolicies(clientId: string, options?: RawAxiosRequestConfig) { + return ManagedDataStoreApiFp(this.configuration).getPolicies(clientId, options).then((request) => request(this.axios, this.basePath)); + } + /** - * + * * @summary Sets the client entities - * @param {string} clientId - * @param {SetEntityStoreDto} setEntityStoreDto + * @param {string} clientId + * @param {SetEntityStoreDto} setEntityStoreDto * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ManagedDataStoreApi */ - setEntities( - clientId: string, - setEntityStoreDto: SetEntityStoreDto, - options?: any - ): AxiosPromise { - return localVarFp.setEntities(clientId, setEntityStoreDto, options).then((request) => request(axios, basePath)) - }, + public setEntities(clientId: string, setEntityStoreDto: SetEntityStoreDto, options?: RawAxiosRequestConfig) { + return ManagedDataStoreApiFp(this.configuration).setEntities(clientId, setEntityStoreDto, options).then((request) => request(this.axios, this.basePath)); + } + /** - * + * * @summary Sets the client policies - * @param {string} clientId - * @param {SetPolicyStoreDto} setPolicyStoreDto + * @param {string} clientId + * @param {SetPolicyStoreDto} setPolicyStoreDto * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ManagedDataStoreApi */ - setPolicies( - clientId: string, - setPolicyStoreDto: SetPolicyStoreDto, - options?: any - ): AxiosPromise { - return localVarFp.setPolicies(clientId, setPolicyStoreDto, options).then((request) => request(axios, basePath)) - }, + public setPolicies(clientId: string, setPolicyStoreDto: SetPolicyStoreDto, options?: RawAxiosRequestConfig) { + return ManagedDataStoreApiFp(this.configuration).setPolicies(clientId, setPolicyStoreDto, options).then((request) => request(this.axios, this.basePath)); + } + /** - * + * * @summary Sync the client data store with the engine cluster + * @param {string} xClientSecret * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ManagedDataStoreApi */ - sync(options?: any): AxiosPromise { - return localVarFp.sync(options).then((request) => request(axios, basePath)) + public sync(xClientSecret: string, options?: RawAxiosRequestConfig) { + return ManagedDataStoreApiFp(this.configuration).sync(xClientSecret, options).then((request) => request(this.axios, this.basePath)); } - } } -/** - * ManagedDataStoreApi - object-oriented interface - * @export - * @class ManagedDataStoreApi - * @extends {BaseAPI} - */ -export class ManagedDataStoreApi extends BaseAPI { - /** - * - * @summary Gets the client entities - * @param {string} clientId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ManagedDataStoreApi - */ - public getEntities(clientId: string, options?: RawAxiosRequestConfig) { - return ManagedDataStoreApiFp(this.configuration) - .getEntities(clientId, options) - .then((request) => request(this.axios, this.basePath)) - } - - /** - * - * @summary Gets the client policies - * @param {string} clientId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ManagedDataStoreApi - */ - public getPolicies(clientId: string, options?: RawAxiosRequestConfig) { - return ManagedDataStoreApiFp(this.configuration) - .getPolicies(clientId, options) - .then((request) => request(this.axios, this.basePath)) - } - - /** - * - * @summary Sets the client entities - * @param {string} clientId - * @param {SetEntityStoreDto} setEntityStoreDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ManagedDataStoreApi - */ - public setEntities(clientId: string, setEntityStoreDto: SetEntityStoreDto, options?: RawAxiosRequestConfig) { - return ManagedDataStoreApiFp(this.configuration) - .setEntities(clientId, setEntityStoreDto, options) - .then((request) => request(this.axios, this.basePath)) - } - - /** - * - * @summary Sets the client policies - * @param {string} clientId - * @param {SetPolicyStoreDto} setPolicyStoreDto - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ManagedDataStoreApi - */ - public setPolicies(clientId: string, setPolicyStoreDto: SetPolicyStoreDto, options?: RawAxiosRequestConfig) { - return ManagedDataStoreApiFp(this.configuration) - .setPolicies(clientId, setPolicyStoreDto, options) - .then((request) => request(this.axios, this.basePath)) - } - - /** - * - * @summary Sync the client data store with the engine cluster - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ManagedDataStoreApi - */ - public sync(options?: RawAxiosRequestConfig) { - return ManagedDataStoreApiFp(this.configuration) - .sync(options) - .then((request) => request(this.axios, this.basePath)) - } -} + + diff --git a/packages/armory-sdk/src/lib/http/client/vault/api.ts b/packages/armory-sdk/src/lib/http/client/vault/api.ts index af7c075ab..bb35e7724 100644 --- a/packages/armory-sdk/src/lib/http/client/vault/api.ts +++ b/packages/armory-sdk/src/lib/http/client/vault/api.ts @@ -1255,12 +1255,15 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati * * @summary Lists the client accounts * @param {string} xClientId + * @param {string} authorization * @param {*} [options] Override http request option. * @throws {RequiredError} */ - list: async (xClientId: string, options: RawAxiosRequestConfig = {}): Promise => { + list: async (xClientId: string, authorization: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xClientId' is not null or undefined assertParamExists('list', 'xClientId', xClientId) + // verify required parameter 'authorization' is not null or undefined + assertParamExists('list', 'authorization', authorization) const localVarPath = `/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1273,10 +1276,18 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication GNAP required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + if (xClientId != null) { localVarHeaderParameter['x-client-id'] = String(xClientId); } + if (authorization != null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -1332,11 +1343,12 @@ export const AccountApiFp = function(configuration?: Configuration) { * * @summary Lists the client accounts * @param {string} xClientId + * @param {string} authorization * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async list(xClientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.list(xClientId, options); + async list(xClientId: string, authorization: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.list(xClientId, authorization, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountApi.list']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1379,11 +1391,12 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa * * @summary Lists the client accounts * @param {string} xClientId + * @param {string} authorization * @param {*} [options] Override http request option. * @throws {RequiredError} */ - list(xClientId: string, options?: any): AxiosPromise { - return localVarFp.list(xClientId, options).then((request) => request(axios, basePath)); + list(xClientId: string, authorization: string, options?: any): AxiosPromise { + return localVarFp.list(xClientId, authorization, options).then((request) => request(axios, basePath)); }, }; }; @@ -1427,12 +1440,13 @@ export class AccountApi extends BaseAPI { * * @summary Lists the client accounts * @param {string} xClientId + * @param {string} authorization * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountApi */ - public list(xClientId: string, options?: RawAxiosRequestConfig) { - return AccountApiFp(this.configuration).list(xClientId, options).then((request) => request(this.axios, this.basePath)); + public list(xClientId: string, authorization: string, options?: RawAxiosRequestConfig) { + return AccountApiFp(this.configuration).list(xClientId, authorization, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/packages/armory-sdk/src/lib/vault/type.ts b/packages/armory-sdk/src/lib/vault/type.ts index 9723847c6..053b7df1f 100644 --- a/packages/armory-sdk/src/lib/vault/type.ts +++ b/packages/armory-sdk/src/lib/vault/type.ts @@ -147,7 +147,7 @@ export type AccountHttp = { * @param {RawAxiosRequestConfig} [options] Override http request option. * @throws {RequiredError} */ - list(clientId: string, options?: RawAxiosRequestConfig): AxiosPromise + list(clientId: string, accessToken: string, options?: RawAxiosRequestConfig): AxiosPromise } export type SignHttp = {