@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
package/dist/apis/SessionsApi.js
DELETED
|
@@ -1,252 +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.SessionsApi = void 0;
|
|
26
|
-
const runtime = require("../runtime");
|
|
27
|
-
const index_1 = require("../models/index");
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
class SessionsApi extends runtime.BaseAPI {
|
|
32
|
-
/**
|
|
33
|
-
* Cancel a Session by its ID
|
|
34
|
-
*/
|
|
35
|
-
cancelSessionRaw(requestParameters, initOverrides) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['sessionId'] == null) {
|
|
38
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling cancelSession().');
|
|
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/sessions/{sessionId}/cancel`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
51
|
-
method: 'POST',
|
|
52
|
-
headers: headerParameters,
|
|
53
|
-
query: queryParameters,
|
|
54
|
-
}, initOverrides);
|
|
55
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CancelSessionResponseFromJSON)(jsonValue));
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Cancel a Session by its ID
|
|
60
|
-
*/
|
|
61
|
-
cancelSession(sessionId, initOverrides) {
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
const response = yield this.cancelSessionRaw({ sessionId: sessionId }, initOverrides);
|
|
64
|
-
return yield response.value();
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Create a Session to verify a user\'s identity
|
|
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: (0, index_1.CreateSessionRequestToJSON)(requestParameters['createSessionRequest']),
|
|
88
|
-
}, initOverrides);
|
|
89
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateSessionResponseFromJSON)(jsonValue));
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Create a Session to verify a user\'s identity
|
|
94
|
-
*/
|
|
95
|
-
createSession(createSessionRequest, initOverrides) {
|
|
96
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
const response = yield this.createSessionRaw({ createSessionRequest: createSessionRequest }, initOverrides);
|
|
98
|
-
return yield response.value();
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Exchange a Results Access Key for Identity Data
|
|
103
|
-
*/
|
|
104
|
-
exchangeResultsKeyRaw(requestParameters, initOverrides) {
|
|
105
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
if (requestParameters['sessionId'] == null) {
|
|
107
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling exchangeResultsKey().');
|
|
108
|
-
}
|
|
109
|
-
const queryParameters = {};
|
|
110
|
-
const headerParameters = {};
|
|
111
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
112
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
113
|
-
const token = this.configuration.accessToken;
|
|
114
|
-
const tokenString = yield token("Bearer", []);
|
|
115
|
-
if (tokenString) {
|
|
116
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
const response = yield this.request({
|
|
120
|
-
path: `/api/v1/sessions/{sessionId}/results/exchange`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
121
|
-
method: 'POST',
|
|
122
|
-
headers: headerParameters,
|
|
123
|
-
query: queryParameters,
|
|
124
|
-
body: (0, index_1.ExchangeResultsKeyRequestToJSON)(requestParameters['exchangeResultsKeyRequest']),
|
|
125
|
-
}, initOverrides);
|
|
126
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ExchangeResultsKeyResponseFromJSON)(jsonValue));
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Exchange a Results Access Key for Identity Data
|
|
131
|
-
*/
|
|
132
|
-
exchangeResultsKey(sessionId, exchangeResultsKeyRequest, initOverrides) {
|
|
133
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
-
const response = yield this.exchangeResultsKeyRaw({ sessionId: sessionId, exchangeResultsKeyRequest: exchangeResultsKeyRequest }, initOverrides);
|
|
135
|
-
return yield response.value();
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Get a Session by its ID
|
|
140
|
-
*/
|
|
141
|
-
getSessionRaw(requestParameters, initOverrides) {
|
|
142
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
if (requestParameters['sessionId'] == null) {
|
|
144
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getSession().');
|
|
145
|
-
}
|
|
146
|
-
const queryParameters = {};
|
|
147
|
-
const headerParameters = {};
|
|
148
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
149
|
-
const token = this.configuration.accessToken;
|
|
150
|
-
const tokenString = yield token("Bearer", []);
|
|
151
|
-
if (tokenString) {
|
|
152
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
const response = yield this.request({
|
|
156
|
-
path: `/api/v1/sessions/{sessionId}`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
157
|
-
method: 'GET',
|
|
158
|
-
headers: headerParameters,
|
|
159
|
-
query: queryParameters,
|
|
160
|
-
}, initOverrides);
|
|
161
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSessionResponseFromJSON)(jsonValue));
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Get a Session by its ID
|
|
166
|
-
*/
|
|
167
|
-
getSession(sessionId, initOverrides) {
|
|
168
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
-
const response = yield this.getSessionRaw({ sessionId: sessionId }, initOverrides);
|
|
170
|
-
return yield response.value();
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* List Sessions created by your account
|
|
175
|
-
*/
|
|
176
|
-
listSessionsRaw(requestParameters, initOverrides) {
|
|
177
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
-
const queryParameters = {};
|
|
179
|
-
if (requestParameters['orderBy'] != null) {
|
|
180
|
-
queryParameters['OrderBy'] = requestParameters['orderBy'];
|
|
181
|
-
}
|
|
182
|
-
if (requestParameters['orderDirection'] != null) {
|
|
183
|
-
queryParameters['OrderDirection'] = requestParameters['orderDirection'];
|
|
184
|
-
}
|
|
185
|
-
if (requestParameters['pageSize'] != null) {
|
|
186
|
-
queryParameters['PageSize'] = requestParameters['pageSize'];
|
|
187
|
-
}
|
|
188
|
-
if (requestParameters['page'] != null) {
|
|
189
|
-
queryParameters['Page'] = requestParameters['page'];
|
|
190
|
-
}
|
|
191
|
-
const headerParameters = {};
|
|
192
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
193
|
-
const token = this.configuration.accessToken;
|
|
194
|
-
const tokenString = yield token("Bearer", []);
|
|
195
|
-
if (tokenString) {
|
|
196
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
const response = yield this.request({
|
|
200
|
-
path: `/api/v1/sessions`,
|
|
201
|
-
method: 'GET',
|
|
202
|
-
headers: headerParameters,
|
|
203
|
-
query: queryParameters,
|
|
204
|
-
}, initOverrides);
|
|
205
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListSessionsResponseFromJSON)(jsonValue));
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* List Sessions created by your account
|
|
210
|
-
*/
|
|
211
|
-
listSessions(orderBy, orderDirection, pageSize, page, initOverrides) {
|
|
212
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
-
const response = yield this.listSessionsRaw({ orderBy: orderBy, orderDirection: orderDirection, pageSize: pageSize, page: page }, initOverrides);
|
|
214
|
-
return yield response.value();
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* 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.
|
|
219
|
-
*/
|
|
220
|
-
redactSessionRaw(requestParameters, initOverrides) {
|
|
221
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
-
if (requestParameters['sessionId'] == null) {
|
|
223
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling redactSession().');
|
|
224
|
-
}
|
|
225
|
-
const queryParameters = {};
|
|
226
|
-
const headerParameters = {};
|
|
227
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
228
|
-
const token = this.configuration.accessToken;
|
|
229
|
-
const tokenString = yield token("Bearer", []);
|
|
230
|
-
if (tokenString) {
|
|
231
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
const response = yield this.request({
|
|
235
|
-
path: `/api/v1/sessions/{sessionId}/redact`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
236
|
-
method: 'POST',
|
|
237
|
-
headers: headerParameters,
|
|
238
|
-
query: queryParameters,
|
|
239
|
-
}, initOverrides);
|
|
240
|
-
return new runtime.VoidApiResponse(response);
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* 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.
|
|
245
|
-
*/
|
|
246
|
-
redactSession(sessionId, initOverrides) {
|
|
247
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
-
yield this.redactSessionRaw({ sessionId: sessionId }, initOverrides);
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
exports.SessionsApi = SessionsApi;
|
package/dist/apis/index.d.ts
DELETED
package/dist/apis/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/* tslint:disable */
|
|
18
|
-
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./AttachmentsApi"), exports);
|
|
20
|
-
__exportStar(require("./NetworkApi"), exports);
|
|
21
|
-
__exportStar(require("./SessionsApi"), exports);
|
|
@@ -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,62 +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 { ExchangeAttachmentAccessKeyRequestToJSON, } from '../models/index';
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export class AttachmentsApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* 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.
|
|
31
|
-
*/
|
|
32
|
-
exchangeAttachmentAccessKeyRaw(requestParameters, initOverrides) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const queryParameters = {};
|
|
35
|
-
const headerParameters = {};
|
|
36
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
37
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
38
|
-
const token = this.configuration.accessToken;
|
|
39
|
-
const tokenString = yield token("Bearer", []);
|
|
40
|
-
if (tokenString) {
|
|
41
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
const response = yield this.request({
|
|
45
|
-
path: `/api/v1/attachments/exchange`,
|
|
46
|
-
method: 'POST',
|
|
47
|
-
headers: headerParameters,
|
|
48
|
-
query: queryParameters,
|
|
49
|
-
body: ExchangeAttachmentAccessKeyRequestToJSON(requestParameters['exchangeAttachmentAccessKeyRequest']),
|
|
50
|
-
}, initOverrides);
|
|
51
|
-
return new runtime.VoidApiResponse(response);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* 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.
|
|
56
|
-
*/
|
|
57
|
-
exchangeAttachmentAccessKey(exchangeAttachmentAccessKeyRequest, initOverrides) {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
yield this.exchangeAttachmentAccessKeyRaw({ exchangeAttachmentAccessKeyRequest: exchangeAttachmentAccessKeyRequest }, initOverrides);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -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
|
-
}
|
|
@@ -1,96 +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 { IdentityLookupResponseFromJSON, ListProvidersResponseFromJSON, } from '../models/index';
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export class NetworkApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Query the availability of an identity in the Trinsic Network by phone number
|
|
31
|
-
*/
|
|
32
|
-
identityLookupRaw(requestParameters, initOverrides) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['phoneNumber'] == null) {
|
|
35
|
-
throw new runtime.RequiredError('phoneNumber', 'Required parameter "phoneNumber" was null or undefined when calling identityLookup().');
|
|
36
|
-
}
|
|
37
|
-
const queryParameters = {};
|
|
38
|
-
const headerParameters = {};
|
|
39
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
-
const token = this.configuration.accessToken;
|
|
41
|
-
const tokenString = yield token("Bearer", []);
|
|
42
|
-
if (tokenString) {
|
|
43
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const response = yield this.request({
|
|
47
|
-
path: `/api/v1/network/identities/{phoneNumber}`.replace(`{${"phoneNumber"}}`, encodeURIComponent(String(requestParameters['phoneNumber']))),
|
|
48
|
-
method: 'GET',
|
|
49
|
-
headers: headerParameters,
|
|
50
|
-
query: queryParameters,
|
|
51
|
-
}, initOverrides);
|
|
52
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IdentityLookupResponseFromJSON(jsonValue));
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Query the availability of an identity in the Trinsic Network by phone number
|
|
57
|
-
*/
|
|
58
|
-
identityLookup(phoneNumber, initOverrides) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
const response = yield this.identityLookupRaw({ phoneNumber: phoneNumber }, initOverrides);
|
|
61
|
-
return yield response.value();
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* List all identity providers available for use
|
|
66
|
-
*/
|
|
67
|
-
listProvidersRaw(initOverrides) {
|
|
68
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
const queryParameters = {};
|
|
70
|
-
const headerParameters = {};
|
|
71
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
72
|
-
const token = this.configuration.accessToken;
|
|
73
|
-
const tokenString = yield token("Bearer", []);
|
|
74
|
-
if (tokenString) {
|
|
75
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
const response = yield this.request({
|
|
79
|
-
path: `/api/v1/network/providers`,
|
|
80
|
-
method: 'GET',
|
|
81
|
-
headers: headerParameters,
|
|
82
|
-
query: queryParameters,
|
|
83
|
-
}, initOverrides);
|
|
84
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ListProvidersResponseFromJSON(jsonValue));
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* List all identity providers available for use
|
|
89
|
-
*/
|
|
90
|
-
listProviders(initOverrides) {
|
|
91
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
const response = yield this.listProvidersRaw(initOverrides);
|
|
93
|
-
return yield response.value();
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|