diff --git a/.github/workflows/build-connect-typescript.yaml b/.github/workflows/build-connect-typescript.yaml index 8cc6b0587..edbbb25aa 100644 --- a/.github/workflows/build-connect-typescript.yaml +++ b/.github/workflows/build-connect-typescript.yaml @@ -28,4 +28,11 @@ jobs: run: ./devops/make-swagger.ps1 -language ${{ matrix.language[0] }} -swaggerFile ${{ matrix.swagger_json }} -outputFolder ${{ matrix.language[1] }} shell: pwsh - - uses: stefanzweifel/git-auto-commit-action@v4 + - name: Format code + run: | + npm ci + npm run build:prettier + working-directory: connect/typescript + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/.gitignore b/.gitignore index 79bd10833..45d129d1b 100644 --- a/.gitignore +++ b/.gitignore @@ -409,3 +409,4 @@ samples/grpc-web/build/ samples/grpc-web/lib/ samples/grpc-web/coverage/ web/dist/ +connect/typescript/lib diff --git a/connect/typescript/apis/SessionApi.ts b/connect/typescript/apis/SessionApi.ts index 3d08ef242..937715175 100644 --- a/connect/typescript/apis/SessionApi.ts +++ b/connect/typescript/apis/SessionApi.ts @@ -5,25 +5,24 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -import * as runtime from '../runtime'; +import * as runtime from "../runtime"; import type { - CancelSessionResponse, - CreateSessionRequest, - CreateSessionResponse, - FailureMessage, - GetSessionResponseV1, - ListSessionsRequest, - ListSessionsResponseV1, - ValidationResult, -} from '../models/index'; + CancelSessionResponse, + CreateSessionRequest, + CreateSessionResponse, + FailureMessage, + GetSessionResponseV1, + ListSessionsRequest, + ListSessionsResponseV1, + ValidationResult, +} from "../models/index"; import { CancelSessionResponseFromJSON, CancelSessionResponseToJSON, @@ -41,7 +40,7 @@ import { ListSessionsResponseV1ToJSON, ValidationResultFromJSON, ValidationResultToJSON, -} from '../models/index'; +} from "../models/index"; export interface SessionCancelSessionRequest { trinsicAuthorization: string; @@ -64,30 +63,34 @@ export interface SessionListSessionsRequest { } /** - * + * */ export class SessionApi extends runtime.BaseAPI { - /** */ - async sessionCancelSessionRaw(requestParameters: SessionCancelSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['trinsicAuthorization'] == null) { + async sessionCancelSessionRaw( + requestParameters: SessionCancelSessionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if (requestParameters["trinsicAuthorization"] == null) { throw new runtime.RequiredError( - 'trinsicAuthorization', - 'Required parameter "trinsicAuthorization" was null or undefined when calling sessionCancelSession().' + "trinsicAuthorization", + 'Required parameter "trinsicAuthorization" was null or undefined when calling sessionCancelSession().', ); } const queryParameters: any = {}; - if (requestParameters['sessionId'] != null) { - queryParameters['sessionId'] = requestParameters['sessionId']; + if (requestParameters["sessionId"] != null) { + queryParameters["sessionId"] = requestParameters["sessionId"]; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['trinsicAuthorization'] != null) { - headerParameters['TrinsicAuthorization'] = String(requestParameters['trinsicAuthorization']); + if (requestParameters["trinsicAuthorization"] != null) { + headerParameters["TrinsicAuthorization"] = String( + requestParameters["trinsicAuthorization"], + ); } if (this.configuration && this.configuration.accessToken) { @@ -98,30 +101,44 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - const response = await this.request({ - path: `/v1/sessions/cancel`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CancelSessionResponseFromJSON(jsonValue)); + const response = await this.request( + { + path: `/v1/sessions/cancel`, + method: "POST", + headers: headerParameters, + query: queryParameters, + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + CancelSessionResponseFromJSON(jsonValue), + ); } /** */ - async sessionCancelSession(requestParameters: SessionCancelSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.sessionCancelSessionRaw(requestParameters, initOverrides); + async sessionCancelSession( + requestParameters: SessionCancelSessionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.sessionCancelSessionRaw( + requestParameters, + initOverrides, + ); return await response.value(); } /** */ - async sessionCreateSessionRaw(requestParameters: SessionCreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['trinsicAuthorization'] == null) { + async sessionCreateSessionRaw( + requestParameters: SessionCreateSessionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if (requestParameters["trinsicAuthorization"] == null) { throw new runtime.RequiredError( - 'trinsicAuthorization', - 'Required parameter "trinsicAuthorization" was null or undefined when calling sessionCreateSession().' + "trinsicAuthorization", + 'Required parameter "trinsicAuthorization" was null or undefined when calling sessionCreateSession().', ); } @@ -129,10 +146,12 @@ export class SessionApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - headerParameters['Content-Type'] = 'application/json'; + headerParameters["Content-Type"] = "application/json"; - if (requestParameters['trinsicAuthorization'] != null) { - headerParameters['TrinsicAuthorization'] = String(requestParameters['trinsicAuthorization']); + if (requestParameters["trinsicAuthorization"] != null) { + headerParameters["TrinsicAuthorization"] = String( + requestParameters["trinsicAuthorization"], + ); } if (this.configuration && this.configuration.accessToken) { @@ -143,44 +162,62 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - const response = await this.request({ - path: `/v1/sessions`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CreateSessionRequestToJSON(requestParameters['createSessionRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CreateSessionResponseFromJSON(jsonValue)); + const response = await this.request( + { + path: `/v1/sessions`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: CreateSessionRequestToJSON( + requestParameters["createSessionRequest"], + ), + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + CreateSessionResponseFromJSON(jsonValue), + ); } /** */ - async sessionCreateSession(requestParameters: SessionCreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.sessionCreateSessionRaw(requestParameters, initOverrides); + async sessionCreateSession( + requestParameters: SessionCreateSessionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.sessionCreateSessionRaw( + requestParameters, + initOverrides, + ); return await response.value(); } /** */ - async sessionGetSessionRaw(requestParameters: SessionGetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['trinsicAuthorization'] == null) { + async sessionGetSessionRaw( + requestParameters: SessionGetSessionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if (requestParameters["trinsicAuthorization"] == null) { throw new runtime.RequiredError( - 'trinsicAuthorization', - 'Required parameter "trinsicAuthorization" was null or undefined when calling sessionGetSession().' + "trinsicAuthorization", + 'Required parameter "trinsicAuthorization" was null or undefined when calling sessionGetSession().', ); } const queryParameters: any = {}; - if (requestParameters['sessionId'] != null) { - queryParameters['sessionId'] = requestParameters['sessionId']; + if (requestParameters["sessionId"] != null) { + queryParameters["sessionId"] = requestParameters["sessionId"]; } const headerParameters: runtime.HTTPHeaders = {}; - if (requestParameters['trinsicAuthorization'] != null) { - headerParameters['TrinsicAuthorization'] = String(requestParameters['trinsicAuthorization']); + if (requestParameters["trinsicAuthorization"] != null) { + headerParameters["TrinsicAuthorization"] = String( + requestParameters["trinsicAuthorization"], + ); } if (this.configuration && this.configuration.accessToken) { @@ -191,30 +228,44 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - const response = await this.request({ - path: `/v1/sessions/get`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => GetSessionResponseV1FromJSON(jsonValue)); + const response = await this.request( + { + path: `/v1/sessions/get`, + method: "GET", + headers: headerParameters, + query: queryParameters, + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + GetSessionResponseV1FromJSON(jsonValue), + ); } /** */ - async sessionGetSession(requestParameters: SessionGetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.sessionGetSessionRaw(requestParameters, initOverrides); + async sessionGetSession( + requestParameters: SessionGetSessionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.sessionGetSessionRaw( + requestParameters, + initOverrides, + ); return await response.value(); } /** */ - async sessionListSessionsRaw(requestParameters: SessionListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['trinsicAuthorization'] == null) { + async sessionListSessionsRaw( + requestParameters: SessionListSessionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise> { + if (requestParameters["trinsicAuthorization"] == null) { throw new runtime.RequiredError( - 'trinsicAuthorization', - 'Required parameter "trinsicAuthorization" was null or undefined when calling sessionListSessions().' + "trinsicAuthorization", + 'Required parameter "trinsicAuthorization" was null or undefined when calling sessionListSessions().', ); } @@ -222,10 +273,12 @@ export class SessionApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - headerParameters['Content-Type'] = 'application/json'; + headerParameters["Content-Type"] = "application/json"; - if (requestParameters['trinsicAuthorization'] != null) { - headerParameters['TrinsicAuthorization'] = String(requestParameters['trinsicAuthorization']); + if (requestParameters["trinsicAuthorization"] != null) { + headerParameters["TrinsicAuthorization"] = String( + requestParameters["trinsicAuthorization"], + ); } if (this.configuration && this.configuration.accessToken) { @@ -236,22 +289,34 @@ export class SessionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - const response = await this.request({ - path: `/v1/sessions/list`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: ListSessionsRequestToJSON(requestParameters['listSessionsRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ListSessionsResponseV1FromJSON(jsonValue)); + const response = await this.request( + { + path: `/v1/sessions/list`, + method: "POST", + headers: headerParameters, + query: queryParameters, + body: ListSessionsRequestToJSON( + requestParameters["listSessionsRequest"], + ), + }, + initOverrides, + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + ListSessionsResponseV1FromJSON(jsonValue), + ); } /** */ - async sessionListSessions(requestParameters: SessionListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.sessionListSessionsRaw(requestParameters, initOverrides); + async sessionListSessions( + requestParameters: SessionListSessionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction, + ): Promise { + const response = await this.sessionListSessionsRaw( + requestParameters, + initOverrides, + ); return await response.value(); } - } diff --git a/connect/typescript/apis/index.ts b/connect/typescript/apis/index.ts index 73fbda798..77fcab3fc 100644 --- a/connect/typescript/apis/index.ts +++ b/connect/typescript/apis/index.ts @@ -1,3 +1,3 @@ /* tslint:disable */ /* eslint-disable */ -export * from './SessionApi'; +export * from "./SessionApi"; diff --git a/connect/typescript/index.ts b/connect/typescript/index.ts index bebe8bbbe..ee2637724 100644 --- a/connect/typescript/index.ts +++ b/connect/typescript/index.ts @@ -1,5 +1,5 @@ /* tslint:disable */ /* eslint-disable */ -export * from './runtime'; -export * from './apis/index'; -export * from './models/index'; +export * from "./runtime"; +export * from "./apis/index"; +export * from "./models/index"; diff --git a/connect/typescript/models/CancelSessionResponse.ts b/connect/typescript/models/CancelSessionResponse.ts index b79d3aa83..f852a95b2 100644 --- a/connect/typescript/models/CancelSessionResponse.ts +++ b/connect/typescript/models/CancelSessionResponse.ts @@ -5,29 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { Session } from './Session'; +import { mapValues } from "../runtime"; +import type { Session } from "./Session"; import { SessionFromJSON, SessionFromJSONTyped, SessionToJSON, -} from './Session'; +} from "./Session"; /** - * + * * @export * @interface CancelSessionResponse */ export interface CancelSessionResponse { /** - * + * * @type {Session} * @memberof CancelSessionResponse */ @@ -37,31 +37,40 @@ export interface CancelSessionResponse { /** * Check if a given object implements the CancelSessionResponse interface. */ -export function instanceOfCancelSessionResponse(value: object): value is CancelSessionResponse { +export function instanceOfCancelSessionResponse( + value: object, +): value is CancelSessionResponse { return true; } -export function CancelSessionResponseFromJSON(json: any): CancelSessionResponse { +export function CancelSessionResponseFromJSON( + json: any, +): CancelSessionResponse { return CancelSessionResponseFromJSONTyped(json, false); } -export function CancelSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelSessionResponse { +export function CancelSessionResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): CancelSessionResponse { if (json == null) { return json; } return { - - 'session': json['session'] == null ? undefined : SessionFromJSON(json['session']), + session: + json["session"] == null + ? undefined + : SessionFromJSON(json["session"]), }; } -export function CancelSessionResponseToJSON(value?: CancelSessionResponse | null): any { +export function CancelSessionResponseToJSON( + value?: CancelSessionResponse | null, +): any { if (value == null) { return value; } return { - - 'session': SessionToJSON(value['session']), + session: SessionToJSON(value["session"]), }; } - diff --git a/connect/typescript/models/CreateSessionRequest.ts b/connect/typescript/models/CreateSessionRequest.ts index 3e2f9a30d..b950f1dfb 100644 --- a/connect/typescript/models/CreateSessionRequest.ts +++ b/connect/typescript/models/CreateSessionRequest.ts @@ -5,29 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { RequestedVerification } from './RequestedVerification'; +import { mapValues } from "../runtime"; +import type { RequestedVerification } from "./RequestedVerification"; import { RequestedVerificationFromJSON, RequestedVerificationFromJSONTyped, RequestedVerificationToJSON, -} from './RequestedVerification'; +} from "./RequestedVerification"; /** - * + * * @export * @interface CreateSessionRequest */ export interface CreateSessionRequest { /** - * + * * @type {Array} * @memberof CreateSessionRequest */ @@ -37,7 +37,9 @@ export interface CreateSessionRequest { /** * Check if a given object implements the CreateSessionRequest interface. */ -export function instanceOfCreateSessionRequest(value: object): value is CreateSessionRequest { +export function instanceOfCreateSessionRequest( + value: object, +): value is CreateSessionRequest { return true; } @@ -45,23 +47,35 @@ export function CreateSessionRequestFromJSON(json: any): CreateSessionRequest { return CreateSessionRequestFromJSONTyped(json, false); } -export function CreateSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSessionRequest { +export function CreateSessionRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): CreateSessionRequest { if (json == null) { return json; } return { - - 'verifications': json['verifications'] == null ? undefined : ((json['verifications'] as Array).map(RequestedVerificationFromJSON)), + verifications: + json["verifications"] == null + ? undefined + : (json["verifications"] as Array).map( + RequestedVerificationFromJSON, + ), }; } -export function CreateSessionRequestToJSON(value?: CreateSessionRequest | null): any { +export function CreateSessionRequestToJSON( + value?: CreateSessionRequest | null, +): any { if (value == null) { return value; } return { - - 'verifications': value['verifications'] == null ? undefined : ((value['verifications'] as Array).map(RequestedVerificationToJSON)), + verifications: + value["verifications"] == null + ? undefined + : (value["verifications"] as Array).map( + RequestedVerificationToJSON, + ), }; } - diff --git a/connect/typescript/models/CreateSessionResponse.ts b/connect/typescript/models/CreateSessionResponse.ts index 48c63c058..dd4d263a2 100644 --- a/connect/typescript/models/CreateSessionResponse.ts +++ b/connect/typescript/models/CreateSessionResponse.ts @@ -5,29 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { Session } from './Session'; +import { mapValues } from "../runtime"; +import type { Session } from "./Session"; import { SessionFromJSON, SessionFromJSONTyped, SessionToJSON, -} from './Session'; +} from "./Session"; /** - * + * * @export * @interface CreateSessionResponse */ export interface CreateSessionResponse { /** - * + * * @type {Session} * @memberof CreateSessionResponse */ @@ -37,31 +37,40 @@ export interface CreateSessionResponse { /** * Check if a given object implements the CreateSessionResponse interface. */ -export function instanceOfCreateSessionResponse(value: object): value is CreateSessionResponse { +export function instanceOfCreateSessionResponse( + value: object, +): value is CreateSessionResponse { return true; } -export function CreateSessionResponseFromJSON(json: any): CreateSessionResponse { +export function CreateSessionResponseFromJSON( + json: any, +): CreateSessionResponse { return CreateSessionResponseFromJSONTyped(json, false); } -export function CreateSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSessionResponse { +export function CreateSessionResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): CreateSessionResponse { if (json == null) { return json; } return { - - 'session': json['session'] == null ? undefined : SessionFromJSON(json['session']), + session: + json["session"] == null + ? undefined + : SessionFromJSON(json["session"]), }; } -export function CreateSessionResponseToJSON(value?: CreateSessionResponse | null): any { +export function CreateSessionResponseToJSON( + value?: CreateSessionResponse | null, +): any { if (value == null) { return value; } return { - - 'session': SessionToJSON(value['session']), + session: SessionToJSON(value["session"]), }; } - diff --git a/connect/typescript/models/DebugIdvProviderSelection.ts b/connect/typescript/models/DebugIdvProviderSelection.ts index c4a6c0809..9dee7c6b2 100644 --- a/connect/typescript/models/DebugIdvProviderSelection.ts +++ b/connect/typescript/models/DebugIdvProviderSelection.ts @@ -5,33 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * + * * @export */ export const DebugIdvProviderSelection = { - Default: 'Default', - IdVerse: 'IdVerse', - Argos: 'Argos', - Clear: 'Clear', - Yoti: 'Yoti', - EidEasy: 'EidEasy' + Default: "Default", + IdVerse: "IdVerse", + Argos: "Argos", + Clear: "Clear", + Yoti: "Yoti", + EidEasy: "EidEasy", } as const; -export type DebugIdvProviderSelection = typeof DebugIdvProviderSelection[keyof typeof DebugIdvProviderSelection]; - +export type DebugIdvProviderSelection = + (typeof DebugIdvProviderSelection)[keyof typeof DebugIdvProviderSelection]; export function instanceOfDebugIdvProviderSelection(value: any): boolean { for (const key in DebugIdvProviderSelection) { - if (Object.prototype.hasOwnProperty.call(DebugIdvProviderSelection, key)) { - if ((DebugIdvProviderSelection as Record)[key] === value) { + if ( + Object.prototype.hasOwnProperty.call(DebugIdvProviderSelection, key) + ) { + if ( + ( + DebugIdvProviderSelection as Record< + string, + DebugIdvProviderSelection + > + )[key] === value + ) { return true; } } @@ -39,15 +47,21 @@ export function instanceOfDebugIdvProviderSelection(value: any): boolean { return false; } -export function DebugIdvProviderSelectionFromJSON(json: any): DebugIdvProviderSelection { +export function DebugIdvProviderSelectionFromJSON( + json: any, +): DebugIdvProviderSelection { return DebugIdvProviderSelectionFromJSONTyped(json, false); } -export function DebugIdvProviderSelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DebugIdvProviderSelection { +export function DebugIdvProviderSelectionFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): DebugIdvProviderSelection { return json as DebugIdvProviderSelection; } -export function DebugIdvProviderSelectionToJSON(value?: DebugIdvProviderSelection | null): any { +export function DebugIdvProviderSelectionToJSON( + value?: DebugIdvProviderSelection | null, +): any { return value as any; } - diff --git a/connect/typescript/models/FailureMessage.ts b/connect/typescript/models/FailureMessage.ts index f521d2eaa..4560c17bd 100644 --- a/connect/typescript/models/FailureMessage.ts +++ b/connect/typescript/models/FailureMessage.ts @@ -5,22 +5,22 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; +import { mapValues } from "../runtime"; /** - * + * * @export * @interface FailureMessage */ export interface FailureMessage { /** - * + * * @type {string} * @memberof FailureMessage */ @@ -30,7 +30,9 @@ export interface FailureMessage { /** * Check if a given object implements the FailureMessage interface. */ -export function instanceOfFailureMessage(value: object): value is FailureMessage { +export function instanceOfFailureMessage( + value: object, +): value is FailureMessage { return true; } @@ -38,13 +40,15 @@ export function FailureMessageFromJSON(json: any): FailureMessage { return FailureMessageFromJSONTyped(json, false); } -export function FailureMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): FailureMessage { +export function FailureMessageFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): FailureMessage { if (json == null) { return json; } return { - - 'message': json['message'] == null ? undefined : json['message'], + message: json["message"] == null ? undefined : json["message"], }; } @@ -53,8 +57,6 @@ export function FailureMessageToJSON(value?: FailureMessage | null): any { return value; } return { - - 'message': value['message'], + message: value["message"], }; } - diff --git a/connect/typescript/models/GetSessionResponseV1.ts b/connect/typescript/models/GetSessionResponseV1.ts index 0a87e38d9..c6098f730 100644 --- a/connect/typescript/models/GetSessionResponseV1.ts +++ b/connect/typescript/models/GetSessionResponseV1.ts @@ -5,29 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { Session } from './Session'; +import { mapValues } from "../runtime"; +import type { Session } from "./Session"; import { SessionFromJSON, SessionFromJSONTyped, SessionToJSON, -} from './Session'; +} from "./Session"; /** - * + * * @export * @interface GetSessionResponseV1 */ export interface GetSessionResponseV1 { /** - * + * * @type {Session} * @memberof GetSessionResponseV1 */ @@ -37,7 +37,9 @@ export interface GetSessionResponseV1 { /** * Check if a given object implements the GetSessionResponseV1 interface. */ -export function instanceOfGetSessionResponseV1(value: object): value is GetSessionResponseV1 { +export function instanceOfGetSessionResponseV1( + value: object, +): value is GetSessionResponseV1 { return true; } @@ -45,23 +47,28 @@ export function GetSessionResponseV1FromJSON(json: any): GetSessionResponseV1 { return GetSessionResponseV1FromJSONTyped(json, false); } -export function GetSessionResponseV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSessionResponseV1 { +export function GetSessionResponseV1FromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): GetSessionResponseV1 { if (json == null) { return json; } return { - - 'session': json['session'] == null ? undefined : SessionFromJSON(json['session']), + session: + json["session"] == null + ? undefined + : SessionFromJSON(json["session"]), }; } -export function GetSessionResponseV1ToJSON(value?: GetSessionResponseV1 | null): any { +export function GetSessionResponseV1ToJSON( + value?: GetSessionResponseV1 | null, +): any { if (value == null) { return value; } return { - - 'session': SessionToJSON(value['session']), + session: SessionToJSON(value["session"]), }; } - diff --git a/connect/typescript/models/GovernmentIDOptions.ts b/connect/typescript/models/GovernmentIDOptions.ts index d77999913..306aa7b73 100644 --- a/connect/typescript/models/GovernmentIDOptions.ts +++ b/connect/typescript/models/GovernmentIDOptions.ts @@ -5,64 +5,64 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; +import { mapValues } from "../runtime"; /** - * + * * @export * @interface GovernmentIDOptions */ export interface GovernmentIDOptions { /** - * + * * @type {boolean} * @memberof GovernmentIDOptions */ idNumber?: boolean; /** - * + * * @type {boolean} * @memberof GovernmentIDOptions */ givenName?: boolean; /** - * + * * @type {boolean} * @memberof GovernmentIDOptions */ familyName?: boolean; /** - * + * * @type {boolean} * @memberof GovernmentIDOptions */ address?: boolean; /** - * + * * @type {boolean} * @memberof GovernmentIDOptions */ dateOfBirth?: boolean; /** - * + * * @type {boolean} * @memberof GovernmentIDOptions */ country?: boolean; /** - * + * * @type {boolean} * @memberof GovernmentIDOptions */ issueDate?: boolean; /** - * + * * @type {boolean} * @memberof GovernmentIDOptions */ @@ -72,7 +72,9 @@ export interface GovernmentIDOptions { /** * Check if a given object implements the GovernmentIDOptions interface. */ -export function instanceOfGovernmentIDOptions(value: object): value is GovernmentIDOptions { +export function instanceOfGovernmentIDOptions( + value: object, +): value is GovernmentIDOptions { return true; } @@ -80,37 +82,41 @@ export function GovernmentIDOptionsFromJSON(json: any): GovernmentIDOptions { return GovernmentIDOptionsFromJSONTyped(json, false); } -export function GovernmentIDOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernmentIDOptions { +export function GovernmentIDOptionsFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): GovernmentIDOptions { if (json == null) { return json; } return { - - 'idNumber': json['idNumber'] == null ? undefined : json['idNumber'], - 'givenName': json['givenName'] == null ? undefined : json['givenName'], - 'familyName': json['familyName'] == null ? undefined : json['familyName'], - 'address': json['address'] == null ? undefined : json['address'], - 'dateOfBirth': json['dateOfBirth'] == null ? undefined : json['dateOfBirth'], - 'country': json['country'] == null ? undefined : json['country'], - 'issueDate': json['issueDate'] == null ? undefined : json['issueDate'], - 'expirationDate': json['expirationDate'] == null ? undefined : json['expirationDate'], + idNumber: json["idNumber"] == null ? undefined : json["idNumber"], + givenName: json["givenName"] == null ? undefined : json["givenName"], + familyName: json["familyName"] == null ? undefined : json["familyName"], + address: json["address"] == null ? undefined : json["address"], + dateOfBirth: + json["dateOfBirth"] == null ? undefined : json["dateOfBirth"], + country: json["country"] == null ? undefined : json["country"], + issueDate: json["issueDate"] == null ? undefined : json["issueDate"], + expirationDate: + json["expirationDate"] == null ? undefined : json["expirationDate"], }; } -export function GovernmentIDOptionsToJSON(value?: GovernmentIDOptions | null): any { +export function GovernmentIDOptionsToJSON( + value?: GovernmentIDOptions | null, +): any { if (value == null) { return value; } return { - - 'idNumber': value['idNumber'], - 'givenName': value['givenName'], - 'familyName': value['familyName'], - 'address': value['address'], - 'dateOfBirth': value['dateOfBirth'], - 'country': value['country'], - 'issueDate': value['issueDate'], - 'expirationDate': value['expirationDate'], + idNumber: value["idNumber"], + givenName: value["givenName"], + familyName: value["familyName"], + address: value["address"], + dateOfBirth: value["dateOfBirth"], + country: value["country"], + issueDate: value["issueDate"], + expirationDate: value["expirationDate"], }; } - diff --git a/connect/typescript/models/IDVSessionState.ts b/connect/typescript/models/IDVSessionState.ts index 4418be328..50ae305b2 100644 --- a/connect/typescript/models/IDVSessionState.ts +++ b/connect/typescript/models/IDVSessionState.ts @@ -5,33 +5,35 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * + * * @export */ export const IDVSessionState = { - IdvCreated: 'IdvCreated', - IdvInitiated: 'IdvInitiated', - IdvAuthenticating: 'IdvAuthenticating', - IdvInProgress: 'IdvInProgress', - IdvSuccess: 'IdvSuccess', - IdvFailed: 'IdvFailed' + IdvCreated: "IdvCreated", + IdvInitiated: "IdvInitiated", + IdvAuthenticating: "IdvAuthenticating", + IdvInProgress: "IdvInProgress", + IdvSuccess: "IdvSuccess", + IdvFailed: "IdvFailed", } as const; -export type IDVSessionState = typeof IDVSessionState[keyof typeof IDVSessionState]; - +export type IDVSessionState = + (typeof IDVSessionState)[keyof typeof IDVSessionState]; export function instanceOfIDVSessionState(value: any): boolean { for (const key in IDVSessionState) { if (Object.prototype.hasOwnProperty.call(IDVSessionState, key)) { - if ((IDVSessionState as Record)[key] === value) { + if ( + (IDVSessionState as Record)[key] === + value + ) { return true; } } @@ -43,11 +45,13 @@ export function IDVSessionStateFromJSON(json: any): IDVSessionState { return IDVSessionStateFromJSONTyped(json, false); } -export function IDVSessionStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IDVSessionState { +export function IDVSessionStateFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): IDVSessionState { return json as IDVSessionState; } export function IDVSessionStateToJSON(value?: IDVSessionState | null): any { return value as any; } - diff --git a/connect/typescript/models/ListSessionsRequest.ts b/connect/typescript/models/ListSessionsRequest.ts index e0823da26..0b4bf0441 100644 --- a/connect/typescript/models/ListSessionsRequest.ts +++ b/connect/typescript/models/ListSessionsRequest.ts @@ -5,53 +5,53 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { SessionOrdering } from './SessionOrdering'; +import { mapValues } from "../runtime"; +import type { SessionOrdering } from "./SessionOrdering"; import { SessionOrderingFromJSON, SessionOrderingFromJSONTyped, SessionOrderingToJSON, -} from './SessionOrdering'; -import type { OrderDirection } from './OrderDirection'; +} from "./SessionOrdering"; +import type { OrderDirection } from "./OrderDirection"; import { OrderDirectionFromJSON, OrderDirectionFromJSONTyped, OrderDirectionToJSON, -} from './OrderDirection'; +} from "./OrderDirection"; /** - * + * * @export * @interface ListSessionsRequest */ export interface ListSessionsRequest { /** - * + * * @type {SessionOrdering} * @memberof ListSessionsRequest */ orderBy: SessionOrdering; /** - * + * * @type {OrderDirection} * @memberof ListSessionsRequest */ orderDirection: OrderDirection; /** - * + * * @type {number} * @memberof ListSessionsRequest */ pageSize?: number; /** - * + * * @type {number} * @memberof ListSessionsRequest */ @@ -61,9 +61,12 @@ export interface ListSessionsRequest { /** * Check if a given object implements the ListSessionsRequest interface. */ -export function instanceOfListSessionsRequest(value: object): value is ListSessionsRequest { - if (!('orderBy' in value) || value['orderBy'] === undefined) return false; - if (!('orderDirection' in value) || value['orderDirection'] === undefined) return false; +export function instanceOfListSessionsRequest( + value: object, +): value is ListSessionsRequest { + if (!("orderBy" in value) || value["orderBy"] === undefined) return false; + if (!("orderDirection" in value) || value["orderDirection"] === undefined) + return false; return true; } @@ -71,29 +74,31 @@ export function ListSessionsRequestFromJSON(json: any): ListSessionsRequest { return ListSessionsRequestFromJSONTyped(json, false); } -export function ListSessionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListSessionsRequest { +export function ListSessionsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): ListSessionsRequest { if (json == null) { return json; } return { - - 'orderBy': SessionOrderingFromJSON(json['orderBy']), - 'orderDirection': OrderDirectionFromJSON(json['orderDirection']), - 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'], - 'page': json['page'] == null ? undefined : json['page'], + orderBy: SessionOrderingFromJSON(json["orderBy"]), + orderDirection: OrderDirectionFromJSON(json["orderDirection"]), + pageSize: json["pageSize"] == null ? undefined : json["pageSize"], + page: json["page"] == null ? undefined : json["page"], }; } -export function ListSessionsRequestToJSON(value?: ListSessionsRequest | null): any { +export function ListSessionsRequestToJSON( + value?: ListSessionsRequest | null, +): any { if (value == null) { return value; } return { - - 'orderBy': SessionOrderingToJSON(value['orderBy']), - 'orderDirection': OrderDirectionToJSON(value['orderDirection']), - 'pageSize': value['pageSize'], - 'page': value['page'], + orderBy: SessionOrderingToJSON(value["orderBy"]), + orderDirection: OrderDirectionToJSON(value["orderDirection"]), + pageSize: value["pageSize"], + page: value["page"], }; } - diff --git a/connect/typescript/models/ListSessionsResponseV1.ts b/connect/typescript/models/ListSessionsResponseV1.ts index bc825bf76..007cba0a1 100644 --- a/connect/typescript/models/ListSessionsResponseV1.ts +++ b/connect/typescript/models/ListSessionsResponseV1.ts @@ -5,29 +5,29 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { Session } from './Session'; +import { mapValues } from "../runtime"; +import type { Session } from "./Session"; import { SessionFromJSON, SessionFromJSONTyped, SessionToJSON, -} from './Session'; +} from "./Session"; /** - * + * * @export * @interface ListSessionsResponseV1 */ export interface ListSessionsResponseV1 { /** - * + * * @type {Array} * @memberof ListSessionsResponseV1 */ @@ -37,31 +37,43 @@ export interface ListSessionsResponseV1 { /** * Check if a given object implements the ListSessionsResponseV1 interface. */ -export function instanceOfListSessionsResponseV1(value: object): value is ListSessionsResponseV1 { +export function instanceOfListSessionsResponseV1( + value: object, +): value is ListSessionsResponseV1 { return true; } -export function ListSessionsResponseV1FromJSON(json: any): ListSessionsResponseV1 { +export function ListSessionsResponseV1FromJSON( + json: any, +): ListSessionsResponseV1 { return ListSessionsResponseV1FromJSONTyped(json, false); } -export function ListSessionsResponseV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): ListSessionsResponseV1 { +export function ListSessionsResponseV1FromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): ListSessionsResponseV1 { if (json == null) { return json; } return { - - 'sessions': json['sessions'] == null ? undefined : ((json['sessions'] as Array).map(SessionFromJSON)), + sessions: + json["sessions"] == null + ? undefined + : (json["sessions"] as Array).map(SessionFromJSON), }; } -export function ListSessionsResponseV1ToJSON(value?: ListSessionsResponseV1 | null): any { +export function ListSessionsResponseV1ToJSON( + value?: ListSessionsResponseV1 | null, +): any { if (value == null) { return value; } return { - - 'sessions': value['sessions'] == null ? undefined : ((value['sessions'] as Array).map(SessionToJSON)), + sessions: + value["sessions"] == null + ? undefined + : (value["sessions"] as Array).map(SessionToJSON), }; } - diff --git a/connect/typescript/models/NormalizedGovernmentIdData.ts b/connect/typescript/models/NormalizedGovernmentIdData.ts index b5ffeabb9..77b7a1b52 100644 --- a/connect/typescript/models/NormalizedGovernmentIdData.ts +++ b/connect/typescript/models/NormalizedGovernmentIdData.ts @@ -5,64 +5,64 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; +import { mapValues } from "../runtime"; /** - * + * * @export * @interface NormalizedGovernmentIdData */ export interface NormalizedGovernmentIdData { /** - * + * * @type {string} * @memberof NormalizedGovernmentIdData */ idNumber?: string; /** - * + * * @type {string} * @memberof NormalizedGovernmentIdData */ givenName?: string; /** - * + * * @type {string} * @memberof NormalizedGovernmentIdData */ familyName?: string; /** - * + * * @type {string} * @memberof NormalizedGovernmentIdData */ address?: string; /** - * + * * @type {string} * @memberof NormalizedGovernmentIdData */ dateOfBirth?: string; /** - * + * * @type {string} * @memberof NormalizedGovernmentIdData */ country?: string; /** - * + * * @type {string} * @memberof NormalizedGovernmentIdData */ issueDate?: string; /** - * + * * @type {string} * @memberof NormalizedGovernmentIdData */ @@ -72,45 +72,53 @@ export interface NormalizedGovernmentIdData { /** * Check if a given object implements the NormalizedGovernmentIdData interface. */ -export function instanceOfNormalizedGovernmentIdData(value: object): value is NormalizedGovernmentIdData { +export function instanceOfNormalizedGovernmentIdData( + value: object, +): value is NormalizedGovernmentIdData { return true; } -export function NormalizedGovernmentIdDataFromJSON(json: any): NormalizedGovernmentIdData { +export function NormalizedGovernmentIdDataFromJSON( + json: any, +): NormalizedGovernmentIdData { return NormalizedGovernmentIdDataFromJSONTyped(json, false); } -export function NormalizedGovernmentIdDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): NormalizedGovernmentIdData { +export function NormalizedGovernmentIdDataFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): NormalizedGovernmentIdData { if (json == null) { return json; } return { - - 'idNumber': json['idNumber'] == null ? undefined : json['idNumber'], - 'givenName': json['givenName'] == null ? undefined : json['givenName'], - 'familyName': json['familyName'] == null ? undefined : json['familyName'], - 'address': json['address'] == null ? undefined : json['address'], - 'dateOfBirth': json['dateOfBirth'] == null ? undefined : json['dateOfBirth'], - 'country': json['country'] == null ? undefined : json['country'], - 'issueDate': json['issueDate'] == null ? undefined : json['issueDate'], - 'expirationDate': json['expirationDate'] == null ? undefined : json['expirationDate'], + idNumber: json["idNumber"] == null ? undefined : json["idNumber"], + givenName: json["givenName"] == null ? undefined : json["givenName"], + familyName: json["familyName"] == null ? undefined : json["familyName"], + address: json["address"] == null ? undefined : json["address"], + dateOfBirth: + json["dateOfBirth"] == null ? undefined : json["dateOfBirth"], + country: json["country"] == null ? undefined : json["country"], + issueDate: json["issueDate"] == null ? undefined : json["issueDate"], + expirationDate: + json["expirationDate"] == null ? undefined : json["expirationDate"], }; } -export function NormalizedGovernmentIdDataToJSON(value?: NormalizedGovernmentIdData | null): any { +export function NormalizedGovernmentIdDataToJSON( + value?: NormalizedGovernmentIdData | null, +): any { if (value == null) { return value; } return { - - 'idNumber': value['idNumber'], - 'givenName': value['givenName'], - 'familyName': value['familyName'], - 'address': value['address'], - 'dateOfBirth': value['dateOfBirth'], - 'country': value['country'], - 'issueDate': value['issueDate'], - 'expirationDate': value['expirationDate'], + idNumber: value["idNumber"], + givenName: value["givenName"], + familyName: value["familyName"], + address: value["address"], + dateOfBirth: value["dateOfBirth"], + country: value["country"], + issueDate: value["issueDate"], + expirationDate: value["expirationDate"], }; } - diff --git a/connect/typescript/models/OrderDirection.ts b/connect/typescript/models/OrderDirection.ts index 7b03df3ff..55ccfc170 100644 --- a/connect/typescript/models/OrderDirection.ts +++ b/connect/typescript/models/OrderDirection.ts @@ -5,29 +5,31 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * + * * @export */ export const OrderDirection = { - Ascending: 'Ascending', - Descending: 'Descending' + Ascending: "Ascending", + Descending: "Descending", } as const; -export type OrderDirection = typeof OrderDirection[keyof typeof OrderDirection]; - +export type OrderDirection = + (typeof OrderDirection)[keyof typeof OrderDirection]; export function instanceOfOrderDirection(value: any): boolean { for (const key in OrderDirection) { if (Object.prototype.hasOwnProperty.call(OrderDirection, key)) { - if ((OrderDirection as Record)[key] === value) { + if ( + (OrderDirection as Record)[key] === + value + ) { return true; } } @@ -39,11 +41,13 @@ export function OrderDirectionFromJSON(json: any): OrderDirection { return OrderDirectionFromJSONTyped(json, false); } -export function OrderDirectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDirection { +export function OrderDirectionFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): OrderDirection { return json as OrderDirection; } export function OrderDirectionToJSON(value?: OrderDirection | null): any { return value as any; } - diff --git a/connect/typescript/models/RequestedVerification.ts b/connect/typescript/models/RequestedVerification.ts index bcb882b6e..8e05192e0 100644 --- a/connect/typescript/models/RequestedVerification.ts +++ b/connect/typescript/models/RequestedVerification.ts @@ -5,41 +5,41 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { VerificationType } from './VerificationType'; +import { mapValues } from "../runtime"; +import type { VerificationType } from "./VerificationType"; import { VerificationTypeFromJSON, VerificationTypeFromJSONTyped, VerificationTypeToJSON, -} from './VerificationType'; -import type { GovernmentIDOptions } from './GovernmentIDOptions'; +} from "./VerificationType"; +import type { GovernmentIDOptions } from "./GovernmentIDOptions"; import { GovernmentIDOptionsFromJSON, GovernmentIDOptionsFromJSONTyped, GovernmentIDOptionsToJSON, -} from './GovernmentIDOptions'; +} from "./GovernmentIDOptions"; /** - * + * * @export * @interface RequestedVerification */ export interface RequestedVerification { /** - * + * * @type {VerificationType} * @memberof RequestedVerification */ type?: VerificationType; /** - * + * * @type {GovernmentIDOptions} * @memberof RequestedVerification */ @@ -49,33 +49,47 @@ export interface RequestedVerification { /** * Check if a given object implements the RequestedVerification interface. */ -export function instanceOfRequestedVerification(value: object): value is RequestedVerification { +export function instanceOfRequestedVerification( + value: object, +): value is RequestedVerification { return true; } -export function RequestedVerificationFromJSON(json: any): RequestedVerification { +export function RequestedVerificationFromJSON( + json: any, +): RequestedVerification { return RequestedVerificationFromJSONTyped(json, false); } -export function RequestedVerificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestedVerification { +export function RequestedVerificationFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): RequestedVerification { if (json == null) { return json; } return { - - 'type': json['type'] == null ? undefined : VerificationTypeFromJSON(json['type']), - 'governmentIdOptions': json['governmentIdOptions'] == null ? undefined : GovernmentIDOptionsFromJSON(json['governmentIdOptions']), + type: + json["type"] == null + ? undefined + : VerificationTypeFromJSON(json["type"]), + governmentIdOptions: + json["governmentIdOptions"] == null + ? undefined + : GovernmentIDOptionsFromJSON(json["governmentIdOptions"]), }; } -export function RequestedVerificationToJSON(value?: RequestedVerification | null): any { +export function RequestedVerificationToJSON( + value?: RequestedVerification | null, +): any { if (value == null) { return value; } return { - - 'type': VerificationTypeToJSON(value['type']), - 'governmentIdOptions': GovernmentIDOptionsToJSON(value['governmentIdOptions']), + type: VerificationTypeToJSON(value["type"]), + governmentIdOptions: GovernmentIDOptionsToJSON( + value["governmentIdOptions"], + ), }; } - diff --git a/connect/typescript/models/Session.ts b/connect/typescript/models/Session.ts index ef10f0e11..0bd498f86 100644 --- a/connect/typescript/models/Session.ts +++ b/connect/typescript/models/Session.ts @@ -5,83 +5,83 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { SessionFailCode } from './SessionFailCode'; +import { mapValues } from "../runtime"; +import type { SessionFailCode } from "./SessionFailCode"; import { SessionFailCodeFromJSON, SessionFailCodeFromJSONTyped, SessionFailCodeToJSON, -} from './SessionFailCode'; -import type { Verification } from './Verification'; +} from "./SessionFailCode"; +import type { Verification } from "./Verification"; import { VerificationFromJSON, VerificationFromJSONTyped, VerificationToJSON, -} from './Verification'; -import type { IDVSessionState } from './IDVSessionState'; +} from "./Verification"; +import type { IDVSessionState } from "./IDVSessionState"; import { IDVSessionStateFromJSON, IDVSessionStateFromJSONTyped, IDVSessionStateToJSON, -} from './IDVSessionState'; +} from "./IDVSessionState"; /** - * + * * @export * @interface Session */ export interface Session { /** - * + * * @type {string} * @memberof Session */ id?: string; /** - * + * * @type {string} * @memberof Session */ clientToken?: string; /** - * + * * @type {IDVSessionState} * @memberof Session */ state?: IDVSessionState; /** - * + * * @type {{ [key: string]: Verification; }} * @memberof Session */ - verifications?: { [key: string]: Verification; }; + verifications?: { [key: string]: Verification }; /** - * + * * @type {SessionFailCode} * @memberof Session */ failCode?: SessionFailCode; /** - * + * * @type {string} * @memberof Session */ resultVp?: string; /** - * + * * @type {number} * @memberof Session */ created?: number; /** - * + * * @type {number} * @memberof Session */ @@ -99,20 +99,32 @@ export function SessionFromJSON(json: any): Session { return SessionFromJSONTyped(json, false); } -export function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Session { +export function SessionFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): Session { if (json == null) { return json; } return { - - 'id': json['id'] == null ? undefined : json['id'], - 'clientToken': json['clientToken'] == null ? undefined : json['clientToken'], - 'state': json['state'] == null ? undefined : IDVSessionStateFromJSON(json['state']), - 'verifications': json['verifications'] == null ? undefined : (mapValues(json['verifications'], VerificationFromJSON)), - 'failCode': json['failCode'] == null ? undefined : SessionFailCodeFromJSON(json['failCode']), - 'resultVp': json['resultVp'] == null ? undefined : json['resultVp'], - 'created': json['created'] == null ? undefined : json['created'], - 'updated': json['updated'] == null ? undefined : json['updated'], + id: json["id"] == null ? undefined : json["id"], + clientToken: + json["clientToken"] == null ? undefined : json["clientToken"], + state: + json["state"] == null + ? undefined + : IDVSessionStateFromJSON(json["state"]), + verifications: + json["verifications"] == null + ? undefined + : mapValues(json["verifications"], VerificationFromJSON), + failCode: + json["failCode"] == null + ? undefined + : SessionFailCodeFromJSON(json["failCode"]), + resultVp: json["resultVp"] == null ? undefined : json["resultVp"], + created: json["created"] == null ? undefined : json["created"], + updated: json["updated"] == null ? undefined : json["updated"], }; } @@ -121,15 +133,16 @@ export function SessionToJSON(value?: Session | null): any { return value; } return { - - 'id': value['id'], - 'clientToken': value['clientToken'], - 'state': IDVSessionStateToJSON(value['state']), - 'verifications': value['verifications'] == null ? undefined : (mapValues(value['verifications'], VerificationToJSON)), - 'failCode': SessionFailCodeToJSON(value['failCode']), - 'resultVp': value['resultVp'], - 'created': value['created'], - 'updated': value['updated'], + id: value["id"], + clientToken: value["clientToken"], + state: IDVSessionStateToJSON(value["state"]), + verifications: + value["verifications"] == null + ? undefined + : mapValues(value["verifications"], VerificationToJSON), + failCode: SessionFailCodeToJSON(value["failCode"]), + resultVp: value["resultVp"], + created: value["created"], + updated: value["updated"], }; } - diff --git a/connect/typescript/models/SessionFailCode.ts b/connect/typescript/models/SessionFailCode.ts index 070e995e1..d6640846a 100644 --- a/connect/typescript/models/SessionFailCode.ts +++ b/connect/typescript/models/SessionFailCode.ts @@ -5,34 +5,36 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * + * * @export */ export const SessionFailCode = { - SessionFailNone: 'SessionFailNone', - SessionFailInternal: 'SessionFailInternal', - SessionFailVerificationFailed: 'SessionFailVerificationFailed', - SessionFailAuthentication: 'SessionFailAuthentication', - SessionFailExpired: 'SessionFailExpired', - SessionFailUserCanceled: 'SessionFailUserCanceled', - SessionFailRpcCanceled: 'SessionFailRpcCanceled' + SessionFailNone: "SessionFailNone", + SessionFailInternal: "SessionFailInternal", + SessionFailVerificationFailed: "SessionFailVerificationFailed", + SessionFailAuthentication: "SessionFailAuthentication", + SessionFailExpired: "SessionFailExpired", + SessionFailUserCanceled: "SessionFailUserCanceled", + SessionFailRpcCanceled: "SessionFailRpcCanceled", } as const; -export type SessionFailCode = typeof SessionFailCode[keyof typeof SessionFailCode]; - +export type SessionFailCode = + (typeof SessionFailCode)[keyof typeof SessionFailCode]; export function instanceOfSessionFailCode(value: any): boolean { for (const key in SessionFailCode) { if (Object.prototype.hasOwnProperty.call(SessionFailCode, key)) { - if ((SessionFailCode as Record)[key] === value) { + if ( + (SessionFailCode as Record)[key] === + value + ) { return true; } } @@ -44,11 +46,13 @@ export function SessionFailCodeFromJSON(json: any): SessionFailCode { return SessionFailCodeFromJSONTyped(json, false); } -export function SessionFailCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionFailCode { +export function SessionFailCodeFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): SessionFailCode { return json as SessionFailCode; } export function SessionFailCodeToJSON(value?: SessionFailCode | null): any { return value as any; } - diff --git a/connect/typescript/models/SessionOrdering.ts b/connect/typescript/models/SessionOrdering.ts index f3b613782..c05351e4e 100644 --- a/connect/typescript/models/SessionOrdering.ts +++ b/connect/typescript/models/SessionOrdering.ts @@ -5,30 +5,32 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * + * * @export */ export const SessionOrdering = { - Created: 'Created', - Updated: 'Updated', - State: 'State' + Created: "Created", + Updated: "Updated", + State: "State", } as const; -export type SessionOrdering = typeof SessionOrdering[keyof typeof SessionOrdering]; - +export type SessionOrdering = + (typeof SessionOrdering)[keyof typeof SessionOrdering]; export function instanceOfSessionOrdering(value: any): boolean { for (const key in SessionOrdering) { if (Object.prototype.hasOwnProperty.call(SessionOrdering, key)) { - if ((SessionOrdering as Record)[key] === value) { + if ( + (SessionOrdering as Record)[key] === + value + ) { return true; } } @@ -40,11 +42,13 @@ export function SessionOrderingFromJSON(json: any): SessionOrdering { return SessionOrderingFromJSONTyped(json, false); } -export function SessionOrderingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionOrdering { +export function SessionOrderingFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): SessionOrdering { return json as SessionOrdering; } export function SessionOrderingToJSON(value?: SessionOrdering | null): any { return value as any; } - diff --git a/connect/typescript/models/ValidationResult.ts b/connect/typescript/models/ValidationResult.ts index 759c6ce48..d09def18e 100644 --- a/connect/typescript/models/ValidationResult.ts +++ b/connect/typescript/models/ValidationResult.ts @@ -5,28 +5,28 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; +import { mapValues } from "../runtime"; /** - * + * * @export * @interface ValidationResult */ export interface ValidationResult { /** - * + * * @type {Array} * @memberof ValidationResult */ readonly memberNames?: Array; /** - * + * * @type {string} * @memberof ValidationResult */ @@ -36,7 +36,9 @@ export interface ValidationResult { /** * Check if a given object implements the ValidationResult interface. */ -export function instanceOfValidationResult(value: object): value is ValidationResult { +export function instanceOfValidationResult( + value: object, +): value is ValidationResult { return true; } @@ -44,24 +46,28 @@ export function ValidationResultFromJSON(json: any): ValidationResult { return ValidationResultFromJSONTyped(json, false); } -export function ValidationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResult { +export function ValidationResultFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): ValidationResult { if (json == null) { return json; } return { - - 'memberNames': json['memberNames'] == null ? undefined : json['memberNames'], - 'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'], + memberNames: + json["memberNames"] == null ? undefined : json["memberNames"], + errorMessage: + json["errorMessage"] == null ? undefined : json["errorMessage"], }; } -export function ValidationResultToJSON(value?: Omit | null): any { +export function ValidationResultToJSON( + value?: Omit | null, +): any { if (value == null) { return value; } return { - - 'errorMessage': value['errorMessage'], + errorMessage: value["errorMessage"], }; } - diff --git a/connect/typescript/models/Verification.ts b/connect/typescript/models/Verification.ts index b610dc166..db4ae1344 100644 --- a/connect/typescript/models/Verification.ts +++ b/connect/typescript/models/Verification.ts @@ -5,95 +5,95 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from '../runtime'; -import type { NormalizedGovernmentIdData } from './NormalizedGovernmentIdData'; +import { mapValues } from "../runtime"; +import type { NormalizedGovernmentIdData } from "./NormalizedGovernmentIdData"; import { NormalizedGovernmentIdDataFromJSON, NormalizedGovernmentIdDataFromJSONTyped, NormalizedGovernmentIdDataToJSON, -} from './NormalizedGovernmentIdData'; -import type { VerificationType } from './VerificationType'; +} from "./NormalizedGovernmentIdData"; +import type { VerificationType } from "./VerificationType"; import { VerificationTypeFromJSON, VerificationTypeFromJSONTyped, VerificationTypeToJSON, -} from './VerificationType'; -import type { VerificationState } from './VerificationState'; +} from "./VerificationType"; +import type { VerificationState } from "./VerificationState"; import { VerificationStateFromJSON, VerificationStateFromJSONTyped, VerificationStateToJSON, -} from './VerificationState'; -import type { GovernmentIDOptions } from './GovernmentIDOptions'; +} from "./VerificationState"; +import type { GovernmentIDOptions } from "./GovernmentIDOptions"; import { GovernmentIDOptionsFromJSON, GovernmentIDOptionsFromJSONTyped, GovernmentIDOptionsToJSON, -} from './GovernmentIDOptions'; -import type { VerificationFailCode } from './VerificationFailCode'; +} from "./GovernmentIDOptions"; +import type { VerificationFailCode } from "./VerificationFailCode"; import { VerificationFailCodeFromJSON, VerificationFailCodeFromJSONTyped, VerificationFailCodeToJSON, -} from './VerificationFailCode'; +} from "./VerificationFailCode"; /** - * + * * @export * @interface Verification */ export interface Verification { /** - * + * * @type {string} * @memberof Verification */ id?: string; /** - * + * * @type {VerificationType} * @memberof Verification */ type?: VerificationType; /** - * + * * @type {VerificationState} * @memberof Verification */ state?: VerificationState; /** - * + * * @type {VerificationFailCode} * @memberof Verification */ failCode?: VerificationFailCode; /** - * + * * @type {boolean} * @memberof Verification */ reused?: boolean; /** - * + * * @type {number} * @memberof Verification */ updated?: number; /** - * + * * @type {GovernmentIDOptions} * @memberof Verification */ governmentIdOptions?: GovernmentIDOptions; /** - * + * * @type {NormalizedGovernmentIdData} * @memberof Verification */ @@ -111,20 +111,39 @@ export function VerificationFromJSON(json: any): Verification { return VerificationFromJSONTyped(json, false); } -export function VerificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Verification { +export function VerificationFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): Verification { if (json == null) { return json; } return { - - 'id': json['id'] == null ? undefined : json['id'], - 'type': json['type'] == null ? undefined : VerificationTypeFromJSON(json['type']), - 'state': json['state'] == null ? undefined : VerificationStateFromJSON(json['state']), - 'failCode': json['failCode'] == null ? undefined : VerificationFailCodeFromJSON(json['failCode']), - 'reused': json['reused'] == null ? undefined : json['reused'], - 'updated': json['updated'] == null ? undefined : json['updated'], - 'governmentIdOptions': json['governmentIdOptions'] == null ? undefined : GovernmentIDOptionsFromJSON(json['governmentIdOptions']), - 'normalizedGovernmentIdData': json['normalizedGovernmentIdData'] == null ? undefined : NormalizedGovernmentIdDataFromJSON(json['normalizedGovernmentIdData']), + id: json["id"] == null ? undefined : json["id"], + type: + json["type"] == null + ? undefined + : VerificationTypeFromJSON(json["type"]), + state: + json["state"] == null + ? undefined + : VerificationStateFromJSON(json["state"]), + failCode: + json["failCode"] == null + ? undefined + : VerificationFailCodeFromJSON(json["failCode"]), + reused: json["reused"] == null ? undefined : json["reused"], + updated: json["updated"] == null ? undefined : json["updated"], + governmentIdOptions: + json["governmentIdOptions"] == null + ? undefined + : GovernmentIDOptionsFromJSON(json["governmentIdOptions"]), + normalizedGovernmentIdData: + json["normalizedGovernmentIdData"] == null + ? undefined + : NormalizedGovernmentIdDataFromJSON( + json["normalizedGovernmentIdData"], + ), }; } @@ -133,15 +152,17 @@ export function VerificationToJSON(value?: Verification | null): any { return value; } return { - - 'id': value['id'], - 'type': VerificationTypeToJSON(value['type']), - 'state': VerificationStateToJSON(value['state']), - 'failCode': VerificationFailCodeToJSON(value['failCode']), - 'reused': value['reused'], - 'updated': value['updated'], - 'governmentIdOptions': GovernmentIDOptionsToJSON(value['governmentIdOptions']), - 'normalizedGovernmentIdData': NormalizedGovernmentIdDataToJSON(value['normalizedGovernmentIdData']), + id: value["id"], + type: VerificationTypeToJSON(value["type"]), + state: VerificationStateToJSON(value["state"]), + failCode: VerificationFailCodeToJSON(value["failCode"]), + reused: value["reused"], + updated: value["updated"], + governmentIdOptions: GovernmentIDOptionsToJSON( + value["governmentIdOptions"], + ), + normalizedGovernmentIdData: NormalizedGovernmentIdDataToJSON( + value["normalizedGovernmentIdData"], + ), }; } - diff --git a/connect/typescript/models/VerificationFailCode.ts b/connect/typescript/models/VerificationFailCode.ts index 798ecaaa8..c492a73af 100644 --- a/connect/typescript/models/VerificationFailCode.ts +++ b/connect/typescript/models/VerificationFailCode.ts @@ -5,32 +5,35 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * + * * @export */ export const VerificationFailCode = { - VerificationFailNone: 'VerificationFailNone', - VerificationFailInternal: 'VerificationFailInternal', - VerificationFailInvalidImage: 'VerificationFailInvalidImage', - VerificationFailInauthentic: 'VerificationFailInauthentic', - VerificationFailUnsupportedDocument: 'VerificationFailUnsupportedDocument' + VerificationFailNone: "VerificationFailNone", + VerificationFailInternal: "VerificationFailInternal", + VerificationFailInvalidImage: "VerificationFailInvalidImage", + VerificationFailInauthentic: "VerificationFailInauthentic", + VerificationFailUnsupportedDocument: "VerificationFailUnsupportedDocument", } as const; -export type VerificationFailCode = typeof VerificationFailCode[keyof typeof VerificationFailCode]; - +export type VerificationFailCode = + (typeof VerificationFailCode)[keyof typeof VerificationFailCode]; export function instanceOfVerificationFailCode(value: any): boolean { for (const key in VerificationFailCode) { if (Object.prototype.hasOwnProperty.call(VerificationFailCode, key)) { - if ((VerificationFailCode as Record)[key] === value) { + if ( + (VerificationFailCode as Record)[ + key + ] === value + ) { return true; } } @@ -42,11 +45,15 @@ export function VerificationFailCodeFromJSON(json: any): VerificationFailCode { return VerificationFailCodeFromJSONTyped(json, false); } -export function VerificationFailCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerificationFailCode { +export function VerificationFailCodeFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): VerificationFailCode { return json as VerificationFailCode; } -export function VerificationFailCodeToJSON(value?: VerificationFailCode | null): any { +export function VerificationFailCodeToJSON( + value?: VerificationFailCode | null, +): any { return value as any; } - diff --git a/connect/typescript/models/VerificationState.ts b/connect/typescript/models/VerificationState.ts index 12fd33ef7..4e6cc7780 100644 --- a/connect/typescript/models/VerificationState.ts +++ b/connect/typescript/models/VerificationState.ts @@ -5,30 +5,33 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * + * * @export */ export const VerificationState = { - VerificationPending: 'VerificationPending', - VerificationSuccess: 'VerificationSuccess', - VerificationFailed: 'VerificationFailed' + VerificationPending: "VerificationPending", + VerificationSuccess: "VerificationSuccess", + VerificationFailed: "VerificationFailed", } as const; -export type VerificationState = typeof VerificationState[keyof typeof VerificationState]; - +export type VerificationState = + (typeof VerificationState)[keyof typeof VerificationState]; export function instanceOfVerificationState(value: any): boolean { for (const key in VerificationState) { if (Object.prototype.hasOwnProperty.call(VerificationState, key)) { - if ((VerificationState as Record)[key] === value) { + if ( + (VerificationState as Record)[ + key + ] === value + ) { return true; } } @@ -40,11 +43,13 @@ export function VerificationStateFromJSON(json: any): VerificationState { return VerificationStateFromJSONTyped(json, false); } -export function VerificationStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerificationState { +export function VerificationStateFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): VerificationState { return json as VerificationState; } export function VerificationStateToJSON(value?: VerificationState | null): any { return value as any; } - diff --git a/connect/typescript/models/VerificationType.ts b/connect/typescript/models/VerificationType.ts index 4f8a778cc..9f30ca42f 100644 --- a/connect/typescript/models/VerificationType.ts +++ b/connect/typescript/models/VerificationType.ts @@ -5,28 +5,30 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * + * * @export */ export const VerificationType = { - GovernmentId: 'GovernmentId' + GovernmentId: "GovernmentId", } as const; -export type VerificationType = typeof VerificationType[keyof typeof VerificationType]; - +export type VerificationType = + (typeof VerificationType)[keyof typeof VerificationType]; export function instanceOfVerificationType(value: any): boolean { for (const key in VerificationType) { if (Object.prototype.hasOwnProperty.call(VerificationType, key)) { - if ((VerificationType as Record)[key] === value) { + if ( + (VerificationType as Record)[key] === + value + ) { return true; } } @@ -38,11 +40,13 @@ export function VerificationTypeFromJSON(json: any): VerificationType { return VerificationTypeFromJSONTyped(json, false); } -export function VerificationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerificationType { +export function VerificationTypeFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): VerificationType { return json as VerificationType; } export function VerificationTypeToJSON(value?: VerificationType | null): any { return value as any; } - diff --git a/connect/typescript/models/index.ts b/connect/typescript/models/index.ts index c81116a6d..703b2caed 100644 --- a/connect/typescript/models/index.ts +++ b/connect/typescript/models/index.ts @@ -1,23 +1,23 @@ /* tslint:disable */ /* eslint-disable */ -export * from './CancelSessionResponse'; -export * from './CreateSessionRequest'; -export * from './CreateSessionResponse'; -export * from './DebugIdvProviderSelection'; -export * from './FailureMessage'; -export * from './GetSessionResponseV1'; -export * from './GovernmentIDOptions'; -export * from './IDVSessionState'; -export * from './ListSessionsRequest'; -export * from './ListSessionsResponseV1'; -export * from './NormalizedGovernmentIdData'; -export * from './OrderDirection'; -export * from './RequestedVerification'; -export * from './Session'; -export * from './SessionFailCode'; -export * from './SessionOrdering'; -export * from './ValidationResult'; -export * from './Verification'; -export * from './VerificationFailCode'; -export * from './VerificationState'; -export * from './VerificationType'; +export * from "./CancelSessionResponse"; +export * from "./CreateSessionRequest"; +export * from "./CreateSessionResponse"; +export * from "./DebugIdvProviderSelection"; +export * from "./FailureMessage"; +export * from "./GetSessionResponseV1"; +export * from "./GovernmentIDOptions"; +export * from "./IDVSessionState"; +export * from "./ListSessionsRequest"; +export * from "./ListSessionsResponseV1"; +export * from "./NormalizedGovernmentIdData"; +export * from "./OrderDirection"; +export * from "./RequestedVerification"; +export * from "./Session"; +export * from "./SessionFailCode"; +export * from "./SessionOrdering"; +export * from "./ValidationResult"; +export * from "./Verification"; +export * from "./VerificationFailCode"; +export * from "./VerificationState"; +export * from "./VerificationType"; diff --git a/connect/typescript/package-lock.json b/connect/typescript/package-lock.json new file mode 100644 index 000000000..b2b3ce582 --- /dev/null +++ b/connect/typescript/package-lock.json @@ -0,0 +1,1385 @@ +{ + "name": "@trinsic/connect", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@trinsic/connect", + "version": "0.0.1", + "license": "ISC", + "devDependencies": { + "prettier": "3.3.0", + "typescript": "4.7.4", + "webpack": "5.76.0", + "webpack-cli": "4.10.0" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@types/eslint": { + "version": "8.56.10", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.10.tgz", + "integrity": "sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.14.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.1.tgz", + "integrity": "sha512-T2MzSGEu+ysB/FkWfqmhV3PLyQlowdptmmgD20C6QxsS8Fmv5SjpZ1ayXaEC0S21/h5UJ9iA6W/5vSNU5l00OA==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", + "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", + "dev": true, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x", + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", + "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", + "dev": true, + "dependencies": { + "envinfo": "^7.7.3" + }, + "peerDependencies": { + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", + "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", + "dev": true, + "peerDependencies": { + "webpack-cli": "4.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/browserslist": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", + "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001587", + "electron-to-chromium": "^1.4.668", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001627", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001627.tgz", + "integrity": "sha512-4zgNiB8nTyV/tHhwZrFs88ryjls/lHiqFhrxCW4qSTeuRByBVnPYpDInchOIySWknznucaf31Z4KYqjfbrecVw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chrome-trace-event": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", + "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.789", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.789.tgz", + "integrity": "sha512-0VbyiaXoT++Fi2vHGo2ThOeS6X3vgRCWrjPeO2FeIAWL6ItiSJ9BqlH8LfCXe3X1IdcG+S0iLoNaxQWhfZoGzQ==", + "dev": true + }, + "node_modules/enhanced-resolve": { + "version": "5.16.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.16.1.tgz", + "integrity": "sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/envinfo": { + "version": "7.13.0", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.13.0.tgz", + "integrity": "sha512-cvcaMr7KqXVh4nyzGTVqTum+gAiL265x5jUWQIDLq//zOGbW+gSW/C+OWLleY/rs9Qole6AZLMXPbtIFQbqu+Q==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "dev": true, + "bin": { + "flat": "cli.js" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prettier": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.0.tgz", + "integrity": "sha512-J9odKxERhCQ10OC2yb93583f6UnYutOeiV5i0zEDS7UGTdUt0u+y8erxl3lBKvwo/JHyyoEdXjwp4dke9oyZ/g==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/terser": { + "version": "5.31.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.31.0.tgz", + "integrity": "sha512-Q1JFAoUKE5IMfI4Z/lkE/E6+SwgzO+x4tq4v1AyBLRj8VSYvRO6A/rQrPg1yud4g0En9EKI1TvFRF2tQFcoUkg==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.20", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.26.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/update-browserslist-db": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", + "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/watchpack": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.1.tgz", + "integrity": "sha512-8wrBCMtVhqcXP2Sup1ctSkga6uc2Bx0IIvKyT7yTFier5AXHooSI+QyQQAtTb7+E0IUCCKyTFmXqdqgum2XWGg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack": { + "version": "5.76.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.76.0.tgz", + "integrity": "sha512-l5sOdYBDunyf72HW8dF23rFtWq/7Zgvt/9ftMof71E/yUb1YLOBmTgA2K4vQthB3kotMrSj609txVE0dnr2fjA==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.10.0", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-cli": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", + "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.2.0", + "@webpack-cli/info": "^1.5.0", + "@webpack-cli/serve": "^1.7.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "cross-spawn": "^7.0.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "@webpack-cli/migrate": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/webpack-cli/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-merge": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", + "integrity": "sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "flat": "^5.0.2", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wildcard": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", + "dev": true + } + } +} diff --git a/connect/typescript/package.json b/connect/typescript/package.json new file mode 100644 index 000000000..8e87adb92 --- /dev/null +++ b/connect/typescript/package.json @@ -0,0 +1,31 @@ +{ + "name": "@trinsic/connect", + "version": "0.0.1", + "description": "Trinsic Connect SDK", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "files": [ + "lib/**/*", + "dist/**/*" + ], + "scripts": { + "build": "npm run build:typescript", + "build:prettier": "npx -y prettier ./ --write", + "build:typescript": "npx tsc" + }, + "author": "Trinsic", + "contributors": [ + { + "name": "Scott Phillips", + "email": "polygonguru@gmail.com" + } + ], + "license": "ISC", + "dependencies": {}, + "devDependencies": { + "typescript": "4.7.4", + "webpack": "5.76.0", + "webpack-cli": "4.10.0", + "prettier": "3.3.0" + } +} diff --git a/connect/typescript/runtime.ts b/connect/typescript/runtime.ts index 433ba21c4..0f7f448a8 100644 --- a/connect/typescript/runtime.ts +++ b/connect/typescript/runtime.ts @@ -5,14 +5,13 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - export const BASE_PATH = "https://connect-api.trinsic.id".replace(/\/+$/, ""); export interface ConfigurationParameters { @@ -22,8 +21,14 @@ export interface ConfigurationParameters { queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings username?: string; // parameter for basic security password?: string; // parameter for basic security - apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + apiKey?: + | string + | Promise + | ((name: string) => string | Promise); // parameter for apiKey security + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security headers?: HTTPHeaders; //header params we want to use on every request credentials?: RequestCredentials; //value for the credentials param we want to use on each request } @@ -36,7 +41,9 @@ export class Configuration { } get basePath(): string { - return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + return this.configuration.basePath != null + ? this.configuration.basePath + : BASE_PATH; } get fetchApi(): FetchAPI | undefined { @@ -62,15 +69,19 @@ export class Configuration { get apiKey(): ((name: string) => string | Promise) | undefined { const apiKey = this.configuration.apiKey; if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; + return typeof apiKey === "function" ? apiKey : () => apiKey; } return undefined; } - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + get accessToken(): + | ((name?: string, scopes?: string[]) => string | Promise) + | undefined { const accessToken = this.configuration.accessToken; if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; + return typeof accessToken === "function" + ? accessToken + : async () => accessToken; } return undefined; } @@ -90,8 +101,10 @@ export const DefaultConfig = new Configuration(); * This is the base class for all generated API classes. */ export class BaseAPI { - - private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + private static readonly jsonRegex = new RegExp( + "^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", + "i", + ); private middleware: Middleware[]; constructor(protected configuration = DefaultConfig) { @@ -104,12 +117,18 @@ export class BaseAPI { return next; } - withPreMiddleware(this: T, ...preMiddlewares: Array) { + withPreMiddleware( + this: T, + ...preMiddlewares: Array + ) { const middlewares = preMiddlewares.map((pre) => ({ pre })); return this.withMiddleware(...middlewares); } - withPostMiddleware(this: T, ...postMiddlewares: Array) { + withPostMiddleware( + this: T, + ...postMiddlewares: Array + ) { const middlewares = postMiddlewares.map((post) => ({ post })); return this.withMiddleware(...middlewares); } @@ -131,26 +150,44 @@ export class BaseAPI { return BaseAPI.jsonRegex.test(mime); } - protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); + protected async request( + context: RequestOpts, + initOverrides?: RequestInit | InitOverrideFunction, + ): Promise { + const { url, init } = await this.createFetchParams( + context, + initOverrides, + ); const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { + if (response && response.status >= 200 && response.status < 300) { return response; } - throw new ResponseError(response, 'Response returned an error code'); + throw new ResponseError(response, "Response returned an error code"); } - private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { + private async createFetchParams( + context: RequestOpts, + initOverrides?: RequestInit | InitOverrideFunction, + ) { let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { + if ( + context.query !== undefined && + Object.keys(context.query).length !== 0 + ) { // only add the querystring to the URL if there are query parameters. // this is done to avoid urls ending with a "?" character which buggy webservers // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); + url += "?" + this.configuration.queryParamsStringify(context.query); } - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + const headers = Object.assign( + {}, + this.configuration.headers, + context.headers, + ); + Object.keys(headers).forEach((key) => + headers[key] === undefined ? delete headers[key] : {}, + ); const initOverrideFn = typeof initOverrides === "function" @@ -169,23 +206,25 @@ export class BaseAPI { ...(await initOverrideFn({ init: initParams, context, - })) + })), }; let body: any; - if (isFormData(overriddenInit.body) - || (overriddenInit.body instanceof URLSearchParams) - || isBlob(overriddenInit.body)) { - body = overriddenInit.body; - } else if (this.isJsonMime(headers['Content-Type'])) { - body = JSON.stringify(overriddenInit.body); + if ( + isFormData(overriddenInit.body) || + overriddenInit.body instanceof URLSearchParams || + isBlob(overriddenInit.body) + ) { + body = overriddenInit.body; + } else if (this.isJsonMime(headers["Content-Type"])) { + body = JSON.stringify(overriddenInit.body); } else { - body = overriddenInit.body; + body = overriddenInit.body; } const init: RequestInit = { ...overriddenInit, - body + body, }; return { url, init }; @@ -195,47 +234,56 @@ export class BaseAPI { let fetchParams = { url, init }; for (const middleware of this.middleware) { if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; + fetchParams = + (await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + })) || fetchParams; } } let response: Response | undefined = undefined; try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + response = await (this.configuration.fetchApi || fetch)( + fetchParams.url, + fetchParams.init, + ); } catch (e) { for (const middleware of this.middleware) { if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; + response = + (await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + })) || response; } } if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } else { - throw e; - } + if (e instanceof Error) { + throw new FetchError( + e, + "The request failed and the interceptors did not return an alternative response", + ); + } else { + throw e; + } } } for (const middleware of this.middleware) { if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; + response = + (await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + })) || response; } } return response; - } + }; /** * Create a shallow clone of `this` by constructing a new instance @@ -247,10 +295,10 @@ export class BaseAPI { next.middleware = this.middleware.slice(); return next; } -}; +} function isBlob(value: any): value is Blob { - return typeof Blob !== 'undefined' && value instanceof Blob; + return typeof Blob !== "undefined" && value instanceof Blob; } function isFormData(value: any): value is FormData { @@ -259,21 +307,30 @@ function isFormData(value: any): value is FormData { export class ResponseError extends Error { override name: "ResponseError" = "ResponseError"; - constructor(public response: Response, msg?: string) { + constructor( + public response: Response, + msg?: string, + ) { super(msg); } } export class FetchError extends Error { override name: "FetchError" = "FetchError"; - constructor(public cause: Error, msg?: string) { + constructor( + public cause: Error, + msg?: string, + ) { super(msg); } } export class RequiredError extends Error { override name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { + constructor( + public field: string, + msg?: string, + ) { super(msg); } } @@ -285,17 +342,45 @@ export const COLLECTION_FORMATS = { pipes: "|", }; -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; +export type FetchAPI = WindowOrWorkerGlobalScope["fetch"]; export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPMethod = + | "GET" + | "POST" + | "PUT" + | "PATCH" + | "DELETE" + | "OPTIONS" + | "HEAD"; export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; +export type HTTPQuery = { + [key: string]: + | string + | number + | null + | boolean + | Array + | Set + | HTTPQuery; +}; export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; +export type HTTPRequestInit = { + headers?: HTTPHeaders; + method: HTTPMethod; + credentials?: RequestCredentials; + body?: HTTPBody; +}; +export type ModelPropertyNaming = + | "camelCase" + | "snake_case" + | "PascalCase" + | "original"; -export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise +export type InitOverrideFunction = (requestContext: { + init: HTTPRequestInit; + context: RequestOpts; +}) => Promise; export interface FetchParams { url: string; @@ -310,17 +395,30 @@ export interface RequestOpts { body?: HTTPBody; } -export function querystring(params: HTTPQuery, prefix: string = ''): string { +export function querystring(params: HTTPQuery, prefix: string = ""): string { return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); + .map((key) => querystringSingleKey(key, params[key], prefix)) + .filter((part) => part.length > 0) + .join("&"); } -function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { +function querystringSingleKey( + key: string, + value: + | string + | number + | null + | undefined + | boolean + | Array + | Set + | HTTPQuery, + keyPrefix: string = "", +): string { const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + const multiValue = value + .map((singleValue) => encodeURIComponent(String(singleValue))) .join(`&${encodeURIComponent(fullKey)}=`); return `${encodeURIComponent(fullKey)}=${multiValue}`; } @@ -338,15 +436,15 @@ function querystringSingleKey(key: string, value: string | number | null | undef } export function mapValues(data: any, fn: (item: any) => any) { - return Object.keys(data).reduce( - (acc, key) => ({ ...acc, [key]: fn(data[key]) }), - {} - ); + return Object.keys(data).reduce( + (acc, key) => ({ ...acc, [key]: fn(data[key]) }), + {}, + ); } export function canConsumeForm(consumes: Consume[]): boolean { for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { + if ("multipart/form-data" === consume.contentType) { return true; } } @@ -394,7 +492,11 @@ export interface ResponseTransformer { } export class JSONApiResponse { - constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} + constructor( + public raw: Response, + private transformer: ResponseTransformer = (jsonValue: any) => + jsonValue, + ) {} async value(): Promise { return this.transformer(await this.raw.json()); @@ -414,7 +516,7 @@ export class BlobApiResponse { async value(): Promise { return await this.raw.blob(); - }; + } } export class TextApiResponse { @@ -422,5 +524,5 @@ export class TextApiResponse { async value(): Promise { return await this.raw.text(); - }; + } } diff --git a/connect/typescript/tsconfig.json b/connect/typescript/tsconfig.json new file mode 100644 index 000000000..9b8523703 --- /dev/null +++ b/connect/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2017", + "module": "CommonJS", + "moduleResolution": "node", + "declaration": true, + "sourceMap": true, + "outDir": "./lib", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "noImplicitAny": false + }, + "include": ["./**/*.ts"], + "exclude": ["node_modules", "lib", "dist"] +}