@trinsic/api 0.4.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/README.md +39 -29
- package/package.json +1 -1
- package/dist/apis/AttachmentsApi.d.ts +0 -53
- package/dist/apis/AttachmentsApi.js +0 -68
- package/dist/apis/NetworkApi.d.ts +0 -76
- package/dist/apis/NetworkApi.js +0 -104
- package/dist/apis/SessionsApi.d.ts +0 -193
- package/dist/apis/SessionsApi.js +0 -262
- package/dist/apis/index.d.ts +0 -3
- package/dist/apis/index.js +0 -21
- package/dist/esm/apis/AttachmentsApi.d.ts +0 -53
- package/dist/esm/apis/AttachmentsApi.js +0 -64
- package/dist/esm/apis/NetworkApi.d.ts +0 -76
- package/dist/esm/apis/NetworkApi.js +0 -100
- package/dist/esm/apis/SessionsApi.d.ts +0 -193
- package/dist/esm/apis/SessionsApi.js +0 -258
- 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/FailureMessage.d.ts +0 -31
- package/dist/esm/models/FailureMessage.js +0 -40
- package/dist/esm/models/GetAttachmentRequest.d.ts +0 -31
- package/dist/esm/models/GetAttachmentRequest.js +0 -40
- package/dist/esm/models/GetSessionResponse.d.ts +0 -32
- package/dist/esm/models/GetSessionResponse.js +0 -41
- package/dist/esm/models/GetSessionResultRequest.d.ts +0 -31
- package/dist/esm/models/GetSessionResultRequest.js +0 -40
- package/dist/esm/models/GetSessionResultResponse.d.ts +0 -39
- package/dist/esm/models/GetSessionResultResponse.js +0 -44
- 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/FailureMessage.d.ts +0 -31
- package/dist/models/FailureMessage.js +0 -46
- package/dist/models/GetAttachmentRequest.d.ts +0 -31
- package/dist/models/GetAttachmentRequest.js +0 -46
- package/dist/models/GetSessionResponse.d.ts +0 -32
- package/dist/models/GetSessionResponse.js +0 -47
- package/dist/models/GetSessionResultRequest.d.ts +0 -31
- package/dist/models/GetSessionResultRequest.js +0 -46
- package/dist/models/GetSessionResultResponse.d.ts +0 -39
- package/dist/models/GetSessionResultResponse.js +0 -50
- 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
|
@@ -1,193 +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, GetSessionResponse, GetSessionResultRequest, GetSessionResultResponse, 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 GetSessionRequest {
|
|
21
|
-
sessionId: string;
|
|
22
|
-
}
|
|
23
|
-
export interface GetSessionResultOperationRequest {
|
|
24
|
-
sessionId: string;
|
|
25
|
-
getSessionResultRequest?: GetSessionResultRequest;
|
|
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
|
-
* Cancel a Session by its ID
|
|
45
|
-
* @summary Cancel Session
|
|
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
|
-
* Cancel Session
|
|
55
|
-
*/
|
|
56
|
-
cancelSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelSessionResponse>;
|
|
57
|
-
/**
|
|
58
|
-
* Create a Session to verify a user\'s identity
|
|
59
|
-
* @summary Create Session
|
|
60
|
-
* @param {CreateSessionRequest} [createSessionRequest]
|
|
61
|
-
* @param {*} [options] Override http request option.
|
|
62
|
-
* @throws {RequiredError}
|
|
63
|
-
* @memberof SessionsApiInterface
|
|
64
|
-
*/
|
|
65
|
-
createSessionRaw(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSessionResponse>>;
|
|
66
|
-
/**
|
|
67
|
-
* Create a Session to verify a user\'s identity
|
|
68
|
-
* Create Session
|
|
69
|
-
*/
|
|
70
|
-
createSession(createSessionRequest?: CreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSessionResponse>;
|
|
71
|
-
/**
|
|
72
|
-
* Get a Session by its ID
|
|
73
|
-
* @summary Get Session
|
|
74
|
-
* @param {string} sessionId
|
|
75
|
-
* @param {*} [options] Override http request option.
|
|
76
|
-
* @throws {RequiredError}
|
|
77
|
-
* @memberof SessionsApiInterface
|
|
78
|
-
*/
|
|
79
|
-
getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResponse>>;
|
|
80
|
-
/**
|
|
81
|
-
* Get a Session by its ID
|
|
82
|
-
* Get Session
|
|
83
|
-
*/
|
|
84
|
-
getSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResponse>;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @summary Get Session Results
|
|
88
|
-
* @param {string} sessionId
|
|
89
|
-
* @param {GetSessionResultRequest} [getSessionResultRequest]
|
|
90
|
-
* @param {*} [options] Override http request option.
|
|
91
|
-
* @throws {RequiredError}
|
|
92
|
-
* @memberof SessionsApiInterface
|
|
93
|
-
*/
|
|
94
|
-
getSessionResultRaw(requestParameters: GetSessionResultOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResultResponse>>;
|
|
95
|
-
/**
|
|
96
|
-
* Get Session Results
|
|
97
|
-
*/
|
|
98
|
-
getSessionResult(sessionId: string, getSessionResultRequest?: GetSessionResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResultResponse>;
|
|
99
|
-
/**
|
|
100
|
-
* List Sessions created by your account
|
|
101
|
-
* @summary List Sessions
|
|
102
|
-
* @param {SessionOrdering} [orderBy] The field by which sessions should be ordered
|
|
103
|
-
* @param {OrderDirection} [orderDirection]
|
|
104
|
-
* @param {number} [pageSize] The number of items to return per page -- must be between `1` and `50`
|
|
105
|
-
* @param {number} [page] The page number to return -- starts at `1`
|
|
106
|
-
* @param {*} [options] Override http request option.
|
|
107
|
-
* @throws {RequiredError}
|
|
108
|
-
* @memberof SessionsApiInterface
|
|
109
|
-
*/
|
|
110
|
-
listSessionsRaw(requestParameters: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListSessionsResponse>>;
|
|
111
|
-
/**
|
|
112
|
-
* List Sessions created by your account
|
|
113
|
-
* List Sessions
|
|
114
|
-
*/
|
|
115
|
-
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
116
|
-
/**
|
|
117
|
-
* 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.
|
|
118
|
-
* @summary Redact Session
|
|
119
|
-
* @param {string} sessionId
|
|
120
|
-
* @param {*} [options] Override http request option.
|
|
121
|
-
* @throws {RequiredError}
|
|
122
|
-
* @memberof SessionsApiInterface
|
|
123
|
-
*/
|
|
124
|
-
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
125
|
-
/**
|
|
126
|
-
* 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.
|
|
127
|
-
* Redact Session
|
|
128
|
-
*/
|
|
129
|
-
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
*
|
|
133
|
-
*/
|
|
134
|
-
export declare class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface {
|
|
135
|
-
/**
|
|
136
|
-
* Cancel a Session by its ID
|
|
137
|
-
* Cancel Session
|
|
138
|
-
*/
|
|
139
|
-
cancelSessionRaw(requestParameters: CancelSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CancelSessionResponse>>;
|
|
140
|
-
/**
|
|
141
|
-
* Cancel a Session by its ID
|
|
142
|
-
* Cancel Session
|
|
143
|
-
*/
|
|
144
|
-
cancelSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelSessionResponse>;
|
|
145
|
-
/**
|
|
146
|
-
* Create a Session to verify a user\'s identity
|
|
147
|
-
* Create Session
|
|
148
|
-
*/
|
|
149
|
-
createSessionRaw(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSessionResponse>>;
|
|
150
|
-
/**
|
|
151
|
-
* Create a Session to verify a user\'s identity
|
|
152
|
-
* Create Session
|
|
153
|
-
*/
|
|
154
|
-
createSession(createSessionRequest?: CreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSessionResponse>;
|
|
155
|
-
/**
|
|
156
|
-
* Get a Session by its ID
|
|
157
|
-
* Get Session
|
|
158
|
-
*/
|
|
159
|
-
getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResponse>>;
|
|
160
|
-
/**
|
|
161
|
-
* Get a Session by its ID
|
|
162
|
-
* Get Session
|
|
163
|
-
*/
|
|
164
|
-
getSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResponse>;
|
|
165
|
-
/**
|
|
166
|
-
* Get Session Results
|
|
167
|
-
*/
|
|
168
|
-
getSessionResultRaw(requestParameters: GetSessionResultOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResultResponse>>;
|
|
169
|
-
/**
|
|
170
|
-
* Get Session Results
|
|
171
|
-
*/
|
|
172
|
-
getSessionResult(sessionId: string, getSessionResultRequest?: GetSessionResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResultResponse>;
|
|
173
|
-
/**
|
|
174
|
-
* List Sessions created by your account
|
|
175
|
-
* List Sessions
|
|
176
|
-
*/
|
|
177
|
-
listSessionsRaw(requestParameters: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListSessionsResponse>>;
|
|
178
|
-
/**
|
|
179
|
-
* List Sessions created by your account
|
|
180
|
-
* List Sessions
|
|
181
|
-
*/
|
|
182
|
-
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
183
|
-
/**
|
|
184
|
-
* 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.
|
|
185
|
-
* Redact Session
|
|
186
|
-
*/
|
|
187
|
-
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
188
|
-
/**
|
|
189
|
-
* 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.
|
|
190
|
-
* Redact Session
|
|
191
|
-
*/
|
|
192
|
-
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
193
|
-
}
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Connect API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
import * as runtime from '../runtime';
|
|
24
|
-
import { CancelSessionResponseFromJSON, CreateSessionRequestToJSON, CreateSessionResponseFromJSON, GetSessionResponseFromJSON, GetSessionResultRequestToJSON, GetSessionResultResponseFromJSON, ListSessionsResponseFromJSON, } from '../models/index';
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export class SessionsApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Cancel a Session by its ID
|
|
31
|
-
* Cancel Session
|
|
32
|
-
*/
|
|
33
|
-
cancelSessionRaw(requestParameters, initOverrides) {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
if (requestParameters['sessionId'] == null) {
|
|
36
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling cancelSession().');
|
|
37
|
-
}
|
|
38
|
-
const queryParameters = {};
|
|
39
|
-
const headerParameters = {};
|
|
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/sessions/{sessionId}/cancel`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
49
|
-
method: 'POST',
|
|
50
|
-
headers: headerParameters,
|
|
51
|
-
query: queryParameters,
|
|
52
|
-
}, initOverrides);
|
|
53
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CancelSessionResponseFromJSON(jsonValue));
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Cancel a Session by its ID
|
|
58
|
-
* Cancel Session
|
|
59
|
-
*/
|
|
60
|
-
cancelSession(sessionId, initOverrides) {
|
|
61
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
const response = yield this.cancelSessionRaw({ sessionId: sessionId }, initOverrides);
|
|
63
|
-
return yield response.value();
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Create a Session to verify a user\'s identity
|
|
68
|
-
* Create Session
|
|
69
|
-
*/
|
|
70
|
-
createSessionRaw(requestParameters, initOverrides) {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
const queryParameters = {};
|
|
73
|
-
const headerParameters = {};
|
|
74
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
75
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
-
const token = this.configuration.accessToken;
|
|
77
|
-
const tokenString = yield token("Bearer", []);
|
|
78
|
-
if (tokenString) {
|
|
79
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const response = yield this.request({
|
|
83
|
-
path: `/api/v1/sessions`,
|
|
84
|
-
method: 'POST',
|
|
85
|
-
headers: headerParameters,
|
|
86
|
-
query: queryParameters,
|
|
87
|
-
body: CreateSessionRequestToJSON(requestParameters['createSessionRequest']),
|
|
88
|
-
}, initOverrides);
|
|
89
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CreateSessionResponseFromJSON(jsonValue));
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Create a Session to verify a user\'s identity
|
|
94
|
-
* Create Session
|
|
95
|
-
*/
|
|
96
|
-
createSession(createSessionRequest, initOverrides) {
|
|
97
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
const response = yield this.createSessionRaw({ createSessionRequest: createSessionRequest }, initOverrides);
|
|
99
|
-
return yield response.value();
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Get a Session by its ID
|
|
104
|
-
* Get Session
|
|
105
|
-
*/
|
|
106
|
-
getSessionRaw(requestParameters, initOverrides) {
|
|
107
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
if (requestParameters['sessionId'] == null) {
|
|
109
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getSession().');
|
|
110
|
-
}
|
|
111
|
-
const queryParameters = {};
|
|
112
|
-
const headerParameters = {};
|
|
113
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
114
|
-
const token = this.configuration.accessToken;
|
|
115
|
-
const tokenString = yield token("Bearer", []);
|
|
116
|
-
if (tokenString) {
|
|
117
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
const response = yield this.request({
|
|
121
|
-
path: `/api/v1/sessions/{sessionId}`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
122
|
-
method: 'GET',
|
|
123
|
-
headers: headerParameters,
|
|
124
|
-
query: queryParameters,
|
|
125
|
-
}, initOverrides);
|
|
126
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GetSessionResponseFromJSON(jsonValue));
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Get a Session by its ID
|
|
131
|
-
* Get Session
|
|
132
|
-
*/
|
|
133
|
-
getSession(sessionId, initOverrides) {
|
|
134
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
-
const response = yield this.getSessionRaw({ sessionId: sessionId }, initOverrides);
|
|
136
|
-
return yield response.value();
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Get Session Results
|
|
141
|
-
*/
|
|
142
|
-
getSessionResultRaw(requestParameters, initOverrides) {
|
|
143
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
if (requestParameters['sessionId'] == null) {
|
|
145
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getSessionResult().');
|
|
146
|
-
}
|
|
147
|
-
const queryParameters = {};
|
|
148
|
-
const headerParameters = {};
|
|
149
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
150
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
151
|
-
const token = this.configuration.accessToken;
|
|
152
|
-
const tokenString = yield token("Bearer", []);
|
|
153
|
-
if (tokenString) {
|
|
154
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
const response = yield this.request({
|
|
158
|
-
path: `/api/v1/sessions/{sessionId}/results`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
159
|
-
method: 'POST',
|
|
160
|
-
headers: headerParameters,
|
|
161
|
-
query: queryParameters,
|
|
162
|
-
body: GetSessionResultRequestToJSON(requestParameters['getSessionResultRequest']),
|
|
163
|
-
}, initOverrides);
|
|
164
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GetSessionResultResponseFromJSON(jsonValue));
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Get Session Results
|
|
169
|
-
*/
|
|
170
|
-
getSessionResult(sessionId, getSessionResultRequest, initOverrides) {
|
|
171
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
-
const response = yield this.getSessionResultRaw({ sessionId: sessionId, getSessionResultRequest: getSessionResultRequest }, initOverrides);
|
|
173
|
-
return yield response.value();
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* List Sessions created by your account
|
|
178
|
-
* List Sessions
|
|
179
|
-
*/
|
|
180
|
-
listSessionsRaw(requestParameters, initOverrides) {
|
|
181
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
-
const queryParameters = {};
|
|
183
|
-
if (requestParameters['orderBy'] != null) {
|
|
184
|
-
queryParameters['OrderBy'] = requestParameters['orderBy'];
|
|
185
|
-
}
|
|
186
|
-
if (requestParameters['orderDirection'] != null) {
|
|
187
|
-
queryParameters['OrderDirection'] = requestParameters['orderDirection'];
|
|
188
|
-
}
|
|
189
|
-
if (requestParameters['pageSize'] != null) {
|
|
190
|
-
queryParameters['PageSize'] = requestParameters['pageSize'];
|
|
191
|
-
}
|
|
192
|
-
if (requestParameters['page'] != null) {
|
|
193
|
-
queryParameters['Page'] = requestParameters['page'];
|
|
194
|
-
}
|
|
195
|
-
const headerParameters = {};
|
|
196
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
197
|
-
const token = this.configuration.accessToken;
|
|
198
|
-
const tokenString = yield token("Bearer", []);
|
|
199
|
-
if (tokenString) {
|
|
200
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
const response = yield this.request({
|
|
204
|
-
path: `/api/v1/sessions`,
|
|
205
|
-
method: 'GET',
|
|
206
|
-
headers: headerParameters,
|
|
207
|
-
query: queryParameters,
|
|
208
|
-
}, initOverrides);
|
|
209
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ListSessionsResponseFromJSON(jsonValue));
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* List Sessions created by your account
|
|
214
|
-
* List Sessions
|
|
215
|
-
*/
|
|
216
|
-
listSessions(orderBy, orderDirection, pageSize, page, initOverrides) {
|
|
217
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
-
const response = yield this.listSessionsRaw({ orderBy: orderBy, orderDirection: orderDirection, pageSize: pageSize, page: page }, initOverrides);
|
|
219
|
-
return yield response.value();
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* 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.
|
|
224
|
-
* Redact Session
|
|
225
|
-
*/
|
|
226
|
-
redactSessionRaw(requestParameters, initOverrides) {
|
|
227
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
-
if (requestParameters['sessionId'] == null) {
|
|
229
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling redactSession().');
|
|
230
|
-
}
|
|
231
|
-
const queryParameters = {};
|
|
232
|
-
const headerParameters = {};
|
|
233
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
234
|
-
const token = this.configuration.accessToken;
|
|
235
|
-
const tokenString = yield token("Bearer", []);
|
|
236
|
-
if (tokenString) {
|
|
237
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
const response = yield this.request({
|
|
241
|
-
path: `/api/v1/sessions/{sessionId}/redact`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
242
|
-
method: 'POST',
|
|
243
|
-
headers: headerParameters,
|
|
244
|
-
query: queryParameters,
|
|
245
|
-
}, initOverrides);
|
|
246
|
-
return new runtime.VoidApiResponse(response);
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* 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.
|
|
251
|
-
* Redact Session
|
|
252
|
-
*/
|
|
253
|
-
redactSession(sessionId, initOverrides) {
|
|
254
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
-
yield this.redactSessionRaw({ sessionId: sessionId }, initOverrides);
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
}
|
package/dist/esm/apis/index.d.ts
DELETED
package/dist/esm/apis/index.js
DELETED
package/dist/esm/index.d.ts
DELETED
package/dist/esm/index.js
DELETED
|
@@ -1,73 +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
|
-
/**
|
|
13
|
-
* Address information for an individual
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Address
|
|
16
|
-
*/
|
|
17
|
-
export interface Address {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Address
|
|
22
|
-
*/
|
|
23
|
-
line1?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Address
|
|
28
|
-
*/
|
|
29
|
-
line2?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Address
|
|
34
|
-
*/
|
|
35
|
-
line3?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof Address
|
|
40
|
-
*/
|
|
41
|
-
city?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof Address
|
|
46
|
-
*/
|
|
47
|
-
state?: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof Address
|
|
52
|
-
*/
|
|
53
|
-
postalCode?: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Address
|
|
58
|
-
*/
|
|
59
|
-
country?: string;
|
|
60
|
-
/**
|
|
61
|
-
* The full address as a single string
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof Address
|
|
64
|
-
*/
|
|
65
|
-
fullAddress?: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Check if a given object implements the Address interface.
|
|
69
|
-
*/
|
|
70
|
-
export declare function instanceOfAddress(value: object): value is Address;
|
|
71
|
-
export declare function AddressFromJSON(json: any): Address;
|
|
72
|
-
export declare function AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): Address;
|
|
73
|
-
export declare function AddressToJSON(value?: Address | null): any;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Connect API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Check if a given object implements the Address interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfAddress(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function AddressFromJSON(json) {
|
|
21
|
-
return AddressFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function AddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'line1': json['line1'] == null ? undefined : json['line1'],
|
|
29
|
-
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
30
|
-
'line3': json['line3'] == null ? undefined : json['line3'],
|
|
31
|
-
'city': json['city'] == null ? undefined : json['city'],
|
|
32
|
-
'state': json['state'] == null ? undefined : json['state'],
|
|
33
|
-
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
|
34
|
-
'country': json['country'] == null ? undefined : json['country'],
|
|
35
|
-
'fullAddress': json['fullAddress'] == null ? undefined : json['fullAddress'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function AddressToJSON(value) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'line1': value['line1'],
|
|
44
|
-
'line2': value['line2'],
|
|
45
|
-
'line3': value['line3'],
|
|
46
|
-
'city': value['city'],
|
|
47
|
-
'state': value['state'],
|
|
48
|
-
'postalCode': value['postalCode'],
|
|
49
|
-
'country': value['country'],
|
|
50
|
-
'fullAddress': value['fullAddress'],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,51 +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
|
-
/**
|
|
13
|
-
* Attachment Access Keys for attachments (eg document / selfie images)
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Attachments
|
|
16
|
-
*/
|
|
17
|
-
export interface Attachments {
|
|
18
|
-
/**
|
|
19
|
-
* Key to access the selfie image (if relevant) for this verification
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Attachments
|
|
22
|
-
*/
|
|
23
|
-
selfie?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Key to access the document front image (if relevant) for this verification
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Attachments
|
|
28
|
-
*/
|
|
29
|
-
documentFront?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Key to access the document back image (if relevant) for this verification
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Attachments
|
|
34
|
-
*/
|
|
35
|
-
documentBack?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Key to access the document portrait image (if relevant and available) for this verification.
|
|
38
|
-
*
|
|
39
|
-
* Specifically, this is a cropped version of the document front image which includes only the portrait on the document.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Attachments
|
|
42
|
-
*/
|
|
43
|
-
documentPortrait?: string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Check if a given object implements the Attachments interface.
|
|
47
|
-
*/
|
|
48
|
-
export declare function instanceOfAttachments(value: object): value is Attachments;
|
|
49
|
-
export declare function AttachmentsFromJSON(json: any): Attachments;
|
|
50
|
-
export declare function AttachmentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Attachments;
|
|
51
|
-
export declare function AttachmentsToJSON(value?: Attachments | null): any;
|