@trinsic/api 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +39 -29
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +18 -15
- package/src/apis/NetworkApi.ts +10 -4
- package/src/apis/SessionsApi.ts +63 -48
- package/src/models/{ExchangeAttachmentAccessKeyRequest.ts → GetAttachmentRequest.ts} +9 -9
- package/src/models/{ExchangeResultsKeyRequest.ts → GetSessionResultRequest.ts} +9 -9
- package/src/models/{ExchangeResultsKeyResponse.ts → GetSessionResultResponse.ts} +10 -10
- package/src/models/OrderDirection.ts +1 -1
- package/src/models/Session.ts +2 -0
- package/src/models/SessionFailCode.ts +1 -1
- package/src/models/SessionOrdering.ts +1 -1
- package/src/models/SessionState.ts +1 -1
- package/src/models/Verification.ts +2 -0
- package/src/models/VerificationFailCode.ts +1 -1
- package/src/models/index.ts +3 -3
- package/dist/apis/AttachmentsApi.d.ts +0 -50
- package/dist/apis/AttachmentsApi.js +0 -66
- package/dist/apis/NetworkApi.d.ts +0 -70
- package/dist/apis/NetworkApi.js +0 -100
- package/dist/apis/SessionsApi.d.ts +0 -178
- package/dist/apis/SessionsApi.js +0 -252
- package/dist/apis/index.d.ts +0 -3
- package/dist/apis/index.js +0 -21
- package/dist/esm/apis/AttachmentsApi.d.ts +0 -50
- package/dist/esm/apis/AttachmentsApi.js +0 -62
- package/dist/esm/apis/NetworkApi.d.ts +0 -70
- package/dist/esm/apis/NetworkApi.js +0 -96
- package/dist/esm/apis/SessionsApi.d.ts +0 -178
- package/dist/esm/apis/SessionsApi.js +0 -248
- package/dist/esm/apis/index.d.ts +0 -3
- package/dist/esm/apis/index.js +0 -5
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.js +0 -5
- package/dist/esm/models/Address.d.ts +0 -73
- package/dist/esm/models/Address.js +0 -52
- package/dist/esm/models/Attachments.d.ts +0 -51
- package/dist/esm/models/Attachments.js +0 -44
- package/dist/esm/models/CancelSessionResponse.d.ts +0 -32
- package/dist/esm/models/CancelSessionResponse.js +0 -41
- package/dist/esm/models/CreateSessionRequest.d.ts +0 -52
- package/dist/esm/models/CreateSessionRequest.js +0 -43
- package/dist/esm/models/CreateSessionResponse.d.ts +0 -45
- package/dist/esm/models/CreateSessionResponse.js +0 -43
- package/dist/esm/models/DisclosedFields.d.ts +0 -97
- package/dist/esm/models/DisclosedFields.js +0 -84
- package/dist/esm/models/DisclosedFieldsRequest.d.ts +0 -97
- package/dist/esm/models/DisclosedFieldsRequest.js +0 -60
- package/dist/esm/models/DocumentData.d.ts +0 -61
- package/dist/esm/models/DocumentData.js +0 -48
- package/dist/esm/models/ExchangeAttachmentAccessKeyRequest.d.ts +0 -31
- package/dist/esm/models/ExchangeAttachmentAccessKeyRequest.js +0 -40
- package/dist/esm/models/ExchangeResultsKeyRequest.d.ts +0 -31
- package/dist/esm/models/ExchangeResultsKeyRequest.js +0 -40
- package/dist/esm/models/ExchangeResultsKeyResponse.d.ts +0 -39
- package/dist/esm/models/ExchangeResultsKeyResponse.js +0 -44
- package/dist/esm/models/FailureMessage.d.ts +0 -31
- package/dist/esm/models/FailureMessage.js +0 -40
- package/dist/esm/models/GetSessionResponse.d.ts +0 -32
- package/dist/esm/models/GetSessionResponse.js +0 -41
- package/dist/esm/models/IdentityData.d.ts +0 -52
- package/dist/esm/models/IdentityData.js +0 -47
- package/dist/esm/models/IdentityLookupResponse.d.ts +0 -31
- package/dist/esm/models/IdentityLookupResponse.js +0 -40
- package/dist/esm/models/ListProvidersResponse.d.ts +0 -32
- package/dist/esm/models/ListProvidersResponse.js +0 -41
- package/dist/esm/models/ListSessionsResponse.d.ts +0 -44
- package/dist/esm/models/ListSessionsResponse.js +0 -49
- package/dist/esm/models/OrderDirection.d.ts +0 -24
- package/dist/esm/models/OrderDirection.js +0 -40
- package/dist/esm/models/PersonData.d.ts +0 -82
- package/dist/esm/models/PersonData.js +0 -55
- package/dist/esm/models/ProviderInfo.d.ts +0 -43
- package/dist/esm/models/ProviderInfo.js +0 -48
- package/dist/esm/models/Session.d.ts +0 -71
- package/dist/esm/models/Session.js +0 -66
- package/dist/esm/models/SessionFailCode.d.ts +0 -29
- package/dist/esm/models/SessionFailCode.js +0 -45
- package/dist/esm/models/SessionOrdering.d.ts +0 -25
- package/dist/esm/models/SessionOrdering.js +0 -41
- package/dist/esm/models/SessionState.d.ts +0 -28
- package/dist/esm/models/SessionState.js +0 -44
- package/dist/esm/models/ValidationResult.d.ts +0 -37
- package/dist/esm/models/ValidationResult.js +0 -41
- package/dist/esm/models/Verification.d.ts +0 -38
- package/dist/esm/models/Verification.js +0 -41
- package/dist/esm/models/VerificationFailCode.d.ts +0 -27
- package/dist/esm/models/VerificationFailCode.js +0 -43
- package/dist/esm/models/index.d.ts +0 -27
- package/dist/esm/models/index.js +0 -29
- package/dist/esm/runtime.d.ts +0 -181
- package/dist/esm/runtime.js +0 -326
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -21
- package/dist/models/Address.d.ts +0 -73
- package/dist/models/Address.js +0 -58
- package/dist/models/Attachments.d.ts +0 -51
- package/dist/models/Attachments.js +0 -50
- package/dist/models/CancelSessionResponse.d.ts +0 -32
- package/dist/models/CancelSessionResponse.js +0 -47
- package/dist/models/CreateSessionRequest.d.ts +0 -52
- package/dist/models/CreateSessionRequest.js +0 -49
- package/dist/models/CreateSessionResponse.d.ts +0 -45
- package/dist/models/CreateSessionResponse.js +0 -49
- package/dist/models/DisclosedFields.d.ts +0 -97
- package/dist/models/DisclosedFields.js +0 -90
- package/dist/models/DisclosedFieldsRequest.d.ts +0 -97
- package/dist/models/DisclosedFieldsRequest.js +0 -66
- package/dist/models/DocumentData.d.ts +0 -61
- package/dist/models/DocumentData.js +0 -54
- package/dist/models/ExchangeAttachmentAccessKeyRequest.d.ts +0 -31
- package/dist/models/ExchangeAttachmentAccessKeyRequest.js +0 -46
- package/dist/models/ExchangeResultsKeyRequest.d.ts +0 -31
- package/dist/models/ExchangeResultsKeyRequest.js +0 -46
- package/dist/models/ExchangeResultsKeyResponse.d.ts +0 -39
- package/dist/models/ExchangeResultsKeyResponse.js +0 -50
- package/dist/models/FailureMessage.d.ts +0 -31
- package/dist/models/FailureMessage.js +0 -46
- package/dist/models/GetSessionResponse.d.ts +0 -32
- package/dist/models/GetSessionResponse.js +0 -47
- package/dist/models/IdentityData.d.ts +0 -52
- package/dist/models/IdentityData.js +0 -53
- package/dist/models/IdentityLookupResponse.d.ts +0 -31
- package/dist/models/IdentityLookupResponse.js +0 -46
- package/dist/models/ListProvidersResponse.d.ts +0 -32
- package/dist/models/ListProvidersResponse.js +0 -47
- package/dist/models/ListSessionsResponse.d.ts +0 -44
- package/dist/models/ListSessionsResponse.js +0 -55
- package/dist/models/OrderDirection.d.ts +0 -24
- package/dist/models/OrderDirection.js +0 -47
- package/dist/models/PersonData.d.ts +0 -82
- package/dist/models/PersonData.js +0 -61
- package/dist/models/ProviderInfo.d.ts +0 -43
- package/dist/models/ProviderInfo.js +0 -54
- package/dist/models/Session.d.ts +0 -71
- package/dist/models/Session.js +0 -72
- package/dist/models/SessionFailCode.d.ts +0 -29
- package/dist/models/SessionFailCode.js +0 -52
- package/dist/models/SessionOrdering.d.ts +0 -25
- package/dist/models/SessionOrdering.js +0 -48
- package/dist/models/SessionState.d.ts +0 -28
- package/dist/models/SessionState.js +0 -51
- package/dist/models/ValidationResult.d.ts +0 -37
- package/dist/models/ValidationResult.js +0 -47
- package/dist/models/Verification.d.ts +0 -38
- package/dist/models/Verification.js +0 -47
- package/dist/models/VerificationFailCode.d.ts +0 -27
- package/dist/models/VerificationFailCode.js +0 -50
- package/dist/models/index.d.ts +0 -27
- package/dist/models/index.js +0 -45
- package/dist/runtime.d.ts +0 -181
- package/dist/runtime.js +0 -341
|
@@ -16,30 +16,30 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface GetSessionResultRequest
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface GetSessionResultRequest {
|
|
22
22
|
/**
|
|
23
23
|
* The Results Access Key to exchange
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof GetSessionResultRequest
|
|
26
26
|
*/
|
|
27
27
|
resultsAccessKey: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Check if a given object implements the
|
|
31
|
+
* Check if a given object implements the GetSessionResultRequest interface.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function instanceOfGetSessionResultRequest(value: object): value is GetSessionResultRequest {
|
|
34
34
|
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export function
|
|
39
|
-
return
|
|
38
|
+
export function GetSessionResultRequestFromJSON(json: any): GetSessionResultRequest {
|
|
39
|
+
return GetSessionResultRequestFromJSONTyped(json, false);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export function
|
|
42
|
+
export function GetSessionResultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSessionResultRequest {
|
|
43
43
|
if (json == null) {
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
@@ -49,7 +49,7 @@ export function ExchangeResultsKeyRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export function
|
|
52
|
+
export function GetSessionResultRequestToJSON(value?: GetSessionResultRequest | null): any {
|
|
53
53
|
if (value == null) {
|
|
54
54
|
return value;
|
|
55
55
|
}
|
|
@@ -29,36 +29,36 @@ import {
|
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @export
|
|
32
|
-
* @interface
|
|
32
|
+
* @interface GetSessionResultResponse
|
|
33
33
|
*/
|
|
34
|
-
export interface
|
|
34
|
+
export interface GetSessionResultResponse {
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {Session}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof GetSessionResultResponse
|
|
39
39
|
*/
|
|
40
40
|
session: Session;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {IdentityData}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof GetSessionResultResponse
|
|
45
45
|
*/
|
|
46
46
|
identityData?: IdentityData;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Check if a given object implements the
|
|
50
|
+
* Check if a given object implements the GetSessionResultResponse interface.
|
|
51
51
|
*/
|
|
52
|
-
export function
|
|
52
|
+
export function instanceOfGetSessionResultResponse(value: object): value is GetSessionResultResponse {
|
|
53
53
|
if (!('session' in value) || value['session'] === undefined) return false;
|
|
54
54
|
return true;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export function
|
|
58
|
-
return
|
|
57
|
+
export function GetSessionResultResponseFromJSON(json: any): GetSessionResultResponse {
|
|
58
|
+
return GetSessionResultResponseFromJSONTyped(json, false);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export function
|
|
61
|
+
export function GetSessionResultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSessionResultResponse {
|
|
62
62
|
if (json == null) {
|
|
63
63
|
return json;
|
|
64
64
|
}
|
|
@@ -69,7 +69,7 @@ export function ExchangeResultsKeyResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export function
|
|
72
|
+
export function GetSessionResultResponseToJSON(value?: GetSessionResultResponse | null): any {
|
|
73
73
|
if (value == null) {
|
|
74
74
|
return value;
|
|
75
75
|
}
|
|
@@ -27,7 +27,7 @@ export type OrderDirection = typeof OrderDirection[keyof typeof OrderDirection];
|
|
|
27
27
|
export function instanceOfOrderDirection(value: any): boolean {
|
|
28
28
|
for (const key in OrderDirection) {
|
|
29
29
|
if (Object.prototype.hasOwnProperty.call(OrderDirection, key)) {
|
|
30
|
-
if (
|
|
30
|
+
if (OrderDirection[key as keyof typeof OrderDirection] === value) {
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
33
|
}
|
package/src/models/Session.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type SessionFailCode = typeof SessionFailCode[keyof typeof SessionFailCod
|
|
|
32
32
|
export function instanceOfSessionFailCode(value: any): boolean {
|
|
33
33
|
for (const key in SessionFailCode) {
|
|
34
34
|
if (Object.prototype.hasOwnProperty.call(SessionFailCode, key)) {
|
|
35
|
-
if (
|
|
35
|
+
if (SessionFailCode[key as keyof typeof SessionFailCode] === value) {
|
|
36
36
|
return true;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -28,7 +28,7 @@ export type SessionOrdering = typeof SessionOrdering[keyof typeof SessionOrderin
|
|
|
28
28
|
export function instanceOfSessionOrdering(value: any): boolean {
|
|
29
29
|
for (const key in SessionOrdering) {
|
|
30
30
|
if (Object.prototype.hasOwnProperty.call(SessionOrdering, key)) {
|
|
31
|
-
if (
|
|
31
|
+
if (SessionOrdering[key as keyof typeof SessionOrdering] === value) {
|
|
32
32
|
return true;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -31,7 +31,7 @@ export type SessionState = typeof SessionState[keyof typeof SessionState];
|
|
|
31
31
|
export function instanceOfSessionState(value: any): boolean {
|
|
32
32
|
for (const key in SessionState) {
|
|
33
33
|
if (Object.prototype.hasOwnProperty.call(SessionState, key)) {
|
|
34
|
-
if (
|
|
34
|
+
if (SessionState[key as keyof typeof SessionState] === value) {
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -30,7 +30,7 @@ export type VerificationFailCode = typeof VerificationFailCode[keyof typeof Veri
|
|
|
30
30
|
export function instanceOfVerificationFailCode(value: any): boolean {
|
|
31
31
|
for (const key in VerificationFailCode) {
|
|
32
32
|
if (Object.prototype.hasOwnProperty.call(VerificationFailCode, key)) {
|
|
33
|
-
if (
|
|
33
|
+
if (VerificationFailCode[key as keyof typeof VerificationFailCode] === value) {
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -8,11 +8,11 @@ export * from './CreateSessionResponse';
|
|
|
8
8
|
export * from './DisclosedFields';
|
|
9
9
|
export * from './DisclosedFieldsRequest';
|
|
10
10
|
export * from './DocumentData';
|
|
11
|
-
export * from './ExchangeAttachmentAccessKeyRequest';
|
|
12
|
-
export * from './ExchangeResultsKeyRequest';
|
|
13
|
-
export * from './ExchangeResultsKeyResponse';
|
|
14
11
|
export * from './FailureMessage';
|
|
12
|
+
export * from './GetAttachmentRequest';
|
|
15
13
|
export * from './GetSessionResponse';
|
|
14
|
+
export * from './GetSessionResultRequest';
|
|
15
|
+
export * from './GetSessionResultResponse';
|
|
16
16
|
export * from './IdentityData';
|
|
17
17
|
export * from './IdentityLookupResponse';
|
|
18
18
|
export * from './ListProvidersResponse';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { ExchangeAttachmentAccessKeyRequest } from '../models/index';
|
|
14
|
-
export interface ExchangeAttachmentAccessKeyOperationRequest {
|
|
15
|
-
exchangeAttachmentAccessKeyRequest?: ExchangeAttachmentAccessKeyRequest;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* AttachmentsApi - interface
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface AttachmentsApiInterface
|
|
22
|
-
*/
|
|
23
|
-
export interface AttachmentsApiInterface {
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @summary Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
|
|
27
|
-
* @param {ExchangeAttachmentAccessKeyRequest} [exchangeAttachmentAccessKeyRequest]
|
|
28
|
-
* @param {*} [options] Override http request option.
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
* @memberof AttachmentsApiInterface
|
|
31
|
-
*/
|
|
32
|
-
exchangeAttachmentAccessKeyRaw(requestParameters: ExchangeAttachmentAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
33
|
-
/**
|
|
34
|
-
* Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
|
|
35
|
-
*/
|
|
36
|
-
exchangeAttachmentAccessKey(exchangeAttachmentAccessKeyRequest?: ExchangeAttachmentAccessKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export declare class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
|
|
42
|
-
/**
|
|
43
|
-
* Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
|
|
44
|
-
*/
|
|
45
|
-
exchangeAttachmentAccessKeyRaw(requestParameters: ExchangeAttachmentAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
46
|
-
/**
|
|
47
|
-
* Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
|
|
48
|
-
*/
|
|
49
|
-
exchangeAttachmentAccessKey(exchangeAttachmentAccessKeyRequest?: ExchangeAttachmentAccessKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
50
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Connect API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.AttachmentsApi = void 0;
|
|
26
|
-
const runtime = require("../runtime");
|
|
27
|
-
const index_1 = require("../models/index");
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
class AttachmentsApi extends runtime.BaseAPI {
|
|
32
|
-
/**
|
|
33
|
-
* Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
|
|
34
|
-
*/
|
|
35
|
-
exchangeAttachmentAccessKeyRaw(requestParameters, initOverrides) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
const queryParameters = {};
|
|
38
|
-
const headerParameters = {};
|
|
39
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
-
const token = this.configuration.accessToken;
|
|
42
|
-
const tokenString = yield token("Bearer", []);
|
|
43
|
-
if (tokenString) {
|
|
44
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const response = yield this.request({
|
|
48
|
-
path: `/api/v1/attachments/exchange`,
|
|
49
|
-
method: 'POST',
|
|
50
|
-
headers: headerParameters,
|
|
51
|
-
query: queryParameters,
|
|
52
|
-
body: (0, index_1.ExchangeAttachmentAccessKeyRequestToJSON)(requestParameters['exchangeAttachmentAccessKeyRequest']),
|
|
53
|
-
}, initOverrides);
|
|
54
|
-
return new runtime.VoidApiResponse(response);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
|
|
59
|
-
*/
|
|
60
|
-
exchangeAttachmentAccessKey(exchangeAttachmentAccessKeyRequest, initOverrides) {
|
|
61
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
yield this.exchangeAttachmentAccessKeyRaw({ exchangeAttachmentAccessKeyRequest: exchangeAttachmentAccessKeyRequest }, initOverrides);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.AttachmentsApi = AttachmentsApi;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { IdentityLookupResponse, ListProvidersResponse } from '../models/index';
|
|
14
|
-
export interface IdentityLookupRequest {
|
|
15
|
-
phoneNumber: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* NetworkApi - interface
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface NetworkApiInterface
|
|
22
|
-
*/
|
|
23
|
-
export interface NetworkApiInterface {
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @summary Query the availability of an identity in the Trinsic Network by phone number
|
|
27
|
-
* @param {string} phoneNumber
|
|
28
|
-
* @param {*} [options] Override http request option.
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
* @memberof NetworkApiInterface
|
|
31
|
-
*/
|
|
32
|
-
identityLookupRaw(requestParameters: IdentityLookupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdentityLookupResponse>>;
|
|
33
|
-
/**
|
|
34
|
-
* Query the availability of an identity in the Trinsic Network by phone number
|
|
35
|
-
*/
|
|
36
|
-
identityLookup(phoneNumber: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdentityLookupResponse>;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @summary List all identity providers available for use
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
* @memberof NetworkApiInterface
|
|
43
|
-
*/
|
|
44
|
-
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
45
|
-
/**
|
|
46
|
-
* List all identity providers available for use
|
|
47
|
-
*/
|
|
48
|
-
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
|
|
54
|
-
/**
|
|
55
|
-
* Query the availability of an identity in the Trinsic Network by phone number
|
|
56
|
-
*/
|
|
57
|
-
identityLookupRaw(requestParameters: IdentityLookupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdentityLookupResponse>>;
|
|
58
|
-
/**
|
|
59
|
-
* Query the availability of an identity in the Trinsic Network by phone number
|
|
60
|
-
*/
|
|
61
|
-
identityLookup(phoneNumber: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdentityLookupResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* List all identity providers available for use
|
|
64
|
-
*/
|
|
65
|
-
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
66
|
-
/**
|
|
67
|
-
* List all identity providers available for use
|
|
68
|
-
*/
|
|
69
|
-
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
70
|
-
}
|
package/dist/apis/NetworkApi.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Connect API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.NetworkApi = void 0;
|
|
26
|
-
const runtime = require("../runtime");
|
|
27
|
-
const index_1 = require("../models/index");
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
class NetworkApi extends runtime.BaseAPI {
|
|
32
|
-
/**
|
|
33
|
-
* Query the availability of an identity in the Trinsic Network by phone number
|
|
34
|
-
*/
|
|
35
|
-
identityLookupRaw(requestParameters, initOverrides) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['phoneNumber'] == null) {
|
|
38
|
-
throw new runtime.RequiredError('phoneNumber', 'Required parameter "phoneNumber" was null or undefined when calling identityLookup().');
|
|
39
|
-
}
|
|
40
|
-
const queryParameters = {};
|
|
41
|
-
const headerParameters = {};
|
|
42
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
-
const token = this.configuration.accessToken;
|
|
44
|
-
const tokenString = yield token("Bearer", []);
|
|
45
|
-
if (tokenString) {
|
|
46
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
const response = yield this.request({
|
|
50
|
-
path: `/api/v1/network/identities/{phoneNumber}`.replace(`{${"phoneNumber"}}`, encodeURIComponent(String(requestParameters['phoneNumber']))),
|
|
51
|
-
method: 'GET',
|
|
52
|
-
headers: headerParameters,
|
|
53
|
-
query: queryParameters,
|
|
54
|
-
}, initOverrides);
|
|
55
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IdentityLookupResponseFromJSON)(jsonValue));
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Query the availability of an identity in the Trinsic Network by phone number
|
|
60
|
-
*/
|
|
61
|
-
identityLookup(phoneNumber, initOverrides) {
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
const response = yield this.identityLookupRaw({ phoneNumber: phoneNumber }, initOverrides);
|
|
64
|
-
return yield response.value();
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* List all identity providers available for use
|
|
69
|
-
*/
|
|
70
|
-
listProvidersRaw(initOverrides) {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
const queryParameters = {};
|
|
73
|
-
const headerParameters = {};
|
|
74
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
75
|
-
const token = this.configuration.accessToken;
|
|
76
|
-
const tokenString = yield token("Bearer", []);
|
|
77
|
-
if (tokenString) {
|
|
78
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
const response = yield this.request({
|
|
82
|
-
path: `/api/v1/network/providers`,
|
|
83
|
-
method: 'GET',
|
|
84
|
-
headers: headerParameters,
|
|
85
|
-
query: queryParameters,
|
|
86
|
-
}, initOverrides);
|
|
87
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListProvidersResponseFromJSON)(jsonValue));
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* List all identity providers available for use
|
|
92
|
-
*/
|
|
93
|
-
listProviders(initOverrides) {
|
|
94
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
const response = yield this.listProvidersRaw(initOverrides);
|
|
96
|
-
return yield response.value();
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.NetworkApi = NetworkApi;
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connect API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { CancelSessionResponse, CreateSessionRequest, CreateSessionResponse, ExchangeResultsKeyRequest, ExchangeResultsKeyResponse, GetSessionResponse, ListSessionsResponse, OrderDirection, SessionOrdering } from '../models/index';
|
|
14
|
-
export interface CancelSessionRequest {
|
|
15
|
-
sessionId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CreateSessionOperationRequest {
|
|
18
|
-
createSessionRequest?: CreateSessionRequest;
|
|
19
|
-
}
|
|
20
|
-
export interface ExchangeResultsKeyOperationRequest {
|
|
21
|
-
sessionId: string;
|
|
22
|
-
exchangeResultsKeyRequest?: ExchangeResultsKeyRequest;
|
|
23
|
-
}
|
|
24
|
-
export interface GetSessionRequest {
|
|
25
|
-
sessionId: string;
|
|
26
|
-
}
|
|
27
|
-
export interface ListSessionsRequest {
|
|
28
|
-
orderBy?: SessionOrdering;
|
|
29
|
-
orderDirection?: OrderDirection;
|
|
30
|
-
pageSize?: number;
|
|
31
|
-
page?: number;
|
|
32
|
-
}
|
|
33
|
-
export interface RedactSessionRequest {
|
|
34
|
-
sessionId: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* SessionsApi - interface
|
|
38
|
-
*
|
|
39
|
-
* @export
|
|
40
|
-
* @interface SessionsApiInterface
|
|
41
|
-
*/
|
|
42
|
-
export interface SessionsApiInterface {
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @summary Cancel a Session by its ID
|
|
46
|
-
* @param {string} sessionId
|
|
47
|
-
* @param {*} [options] Override http request option.
|
|
48
|
-
* @throws {RequiredError}
|
|
49
|
-
* @memberof SessionsApiInterface
|
|
50
|
-
*/
|
|
51
|
-
cancelSessionRaw(requestParameters: CancelSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CancelSessionResponse>>;
|
|
52
|
-
/**
|
|
53
|
-
* Cancel a Session by its ID
|
|
54
|
-
*/
|
|
55
|
-
cancelSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelSessionResponse>;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @summary Create a Session to verify a user\'s identity
|
|
59
|
-
* @param {CreateSessionRequest} [createSessionRequest]
|
|
60
|
-
* @param {*} [options] Override http request option.
|
|
61
|
-
* @throws {RequiredError}
|
|
62
|
-
* @memberof SessionsApiInterface
|
|
63
|
-
*/
|
|
64
|
-
createSessionRaw(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSessionResponse>>;
|
|
65
|
-
/**
|
|
66
|
-
* Create a Session to verify a user\'s identity
|
|
67
|
-
*/
|
|
68
|
-
createSession(createSessionRequest?: CreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSessionResponse>;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @summary Exchange a Results Access Key for Identity Data
|
|
72
|
-
* @param {string} sessionId
|
|
73
|
-
* @param {ExchangeResultsKeyRequest} [exchangeResultsKeyRequest]
|
|
74
|
-
* @param {*} [options] Override http request option.
|
|
75
|
-
* @throws {RequiredError}
|
|
76
|
-
* @memberof SessionsApiInterface
|
|
77
|
-
*/
|
|
78
|
-
exchangeResultsKeyRaw(requestParameters: ExchangeResultsKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExchangeResultsKeyResponse>>;
|
|
79
|
-
/**
|
|
80
|
-
* Exchange a Results Access Key for Identity Data
|
|
81
|
-
*/
|
|
82
|
-
exchangeResultsKey(sessionId: string, exchangeResultsKeyRequest?: ExchangeResultsKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExchangeResultsKeyResponse>;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @summary Get a Session by its ID
|
|
86
|
-
* @param {string} sessionId
|
|
87
|
-
* @param {*} [options] Override http request option.
|
|
88
|
-
* @throws {RequiredError}
|
|
89
|
-
* @memberof SessionsApiInterface
|
|
90
|
-
*/
|
|
91
|
-
getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResponse>>;
|
|
92
|
-
/**
|
|
93
|
-
* Get a Session by its ID
|
|
94
|
-
*/
|
|
95
|
-
getSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResponse>;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @summary List Sessions created by your account
|
|
99
|
-
* @param {SessionOrdering} [orderBy] The field by which sessions should be ordered
|
|
100
|
-
* @param {OrderDirection} [orderDirection]
|
|
101
|
-
* @param {number} [pageSize] The number of items to return per page -- must be between `1` and `50`
|
|
102
|
-
* @param {number} [page] The page number to return -- starts at `1`
|
|
103
|
-
* @param {*} [options] Override http request option.
|
|
104
|
-
* @throws {RequiredError}
|
|
105
|
-
* @memberof SessionsApiInterface
|
|
106
|
-
*/
|
|
107
|
-
listSessionsRaw(requestParameters: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListSessionsResponse>>;
|
|
108
|
-
/**
|
|
109
|
-
* List Sessions created by your account
|
|
110
|
-
*/
|
|
111
|
-
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @summary Redact a Session, removing all identity data from Trinsic\'s servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
115
|
-
* @param {string} sessionId
|
|
116
|
-
* @param {*} [options] Override http request option.
|
|
117
|
-
* @throws {RequiredError}
|
|
118
|
-
* @memberof SessionsApiInterface
|
|
119
|
-
*/
|
|
120
|
-
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
121
|
-
/**
|
|
122
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
123
|
-
*/
|
|
124
|
-
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
export declare class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface {
|
|
130
|
-
/**
|
|
131
|
-
* Cancel a Session by its ID
|
|
132
|
-
*/
|
|
133
|
-
cancelSessionRaw(requestParameters: CancelSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CancelSessionResponse>>;
|
|
134
|
-
/**
|
|
135
|
-
* Cancel a Session by its ID
|
|
136
|
-
*/
|
|
137
|
-
cancelSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelSessionResponse>;
|
|
138
|
-
/**
|
|
139
|
-
* Create a Session to verify a user\'s identity
|
|
140
|
-
*/
|
|
141
|
-
createSessionRaw(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSessionResponse>>;
|
|
142
|
-
/**
|
|
143
|
-
* Create a Session to verify a user\'s identity
|
|
144
|
-
*/
|
|
145
|
-
createSession(createSessionRequest?: CreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSessionResponse>;
|
|
146
|
-
/**
|
|
147
|
-
* Exchange a Results Access Key for Identity Data
|
|
148
|
-
*/
|
|
149
|
-
exchangeResultsKeyRaw(requestParameters: ExchangeResultsKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExchangeResultsKeyResponse>>;
|
|
150
|
-
/**
|
|
151
|
-
* Exchange a Results Access Key for Identity Data
|
|
152
|
-
*/
|
|
153
|
-
exchangeResultsKey(sessionId: string, exchangeResultsKeyRequest?: ExchangeResultsKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExchangeResultsKeyResponse>;
|
|
154
|
-
/**
|
|
155
|
-
* Get a Session by its ID
|
|
156
|
-
*/
|
|
157
|
-
getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResponse>>;
|
|
158
|
-
/**
|
|
159
|
-
* Get a Session by its ID
|
|
160
|
-
*/
|
|
161
|
-
getSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResponse>;
|
|
162
|
-
/**
|
|
163
|
-
* List Sessions created by your account
|
|
164
|
-
*/
|
|
165
|
-
listSessionsRaw(requestParameters: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListSessionsResponse>>;
|
|
166
|
-
/**
|
|
167
|
-
* List Sessions created by your account
|
|
168
|
-
*/
|
|
169
|
-
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
170
|
-
/**
|
|
171
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
172
|
-
*/
|
|
173
|
-
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
174
|
-
/**
|
|
175
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
176
|
-
*/
|
|
177
|
-
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
178
|
-
}
|