@trinsic/api 0.2.4 → 0.4.0

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.
Files changed (52) hide show
  1. package/.openapi-generator/FILES +3 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/AttachmentsApi.d.ts +13 -10
  5. package/dist/apis/AttachmentsApi.js +7 -5
  6. package/dist/apis/NetworkApi.d.ts +10 -4
  7. package/dist/apis/NetworkApi.js +4 -0
  8. package/dist/apis/SessionsApi.d.ts +45 -30
  9. package/dist/apis/SessionsApi.js +30 -20
  10. package/dist/esm/apis/AttachmentsApi.d.ts +13 -10
  11. package/dist/esm/apis/AttachmentsApi.js +8 -6
  12. package/dist/esm/apis/NetworkApi.d.ts +10 -4
  13. package/dist/esm/apis/NetworkApi.js +4 -0
  14. package/dist/esm/apis/SessionsApi.d.ts +45 -30
  15. package/dist/esm/apis/SessionsApi.js +31 -21
  16. package/dist/esm/models/GetAttachmentRequest.d.ts +31 -0
  17. package/dist/esm/models/{ExchangeAttachmentAccessKeyRequest.js → GetAttachmentRequest.js} +6 -6
  18. package/dist/esm/models/GetSessionResultRequest.d.ts +31 -0
  19. package/dist/esm/models/{ExchangeResultsKeyRequest.js → GetSessionResultRequest.js} +6 -6
  20. package/dist/esm/models/GetSessionResultResponse.d.ts +39 -0
  21. package/dist/esm/models/{ExchangeResultsKeyResponse.js → GetSessionResultResponse.js} +6 -6
  22. package/dist/esm/models/index.d.ts +3 -3
  23. package/dist/esm/models/index.js +3 -3
  24. package/dist/models/GetAttachmentRequest.d.ts +31 -0
  25. package/dist/models/{ExchangeAttachmentAccessKeyRequest.js → GetAttachmentRequest.js} +10 -10
  26. package/dist/models/GetSessionResultRequest.d.ts +31 -0
  27. package/dist/models/{ExchangeResultsKeyRequest.js → GetSessionResultRequest.js} +10 -10
  28. package/dist/models/GetSessionResultResponse.d.ts +39 -0
  29. package/dist/models/{ExchangeResultsKeyResponse.js → GetSessionResultResponse.js} +10 -10
  30. package/dist/models/index.d.ts +3 -3
  31. package/dist/models/index.js +3 -3
  32. package/package.json +1 -1
  33. package/src/apis/AttachmentsApi.ts +18 -15
  34. package/src/apis/NetworkApi.ts +10 -4
  35. package/src/apis/SessionsApi.ts +63 -48
  36. package/src/models/{ExchangeAttachmentAccessKeyRequest.ts → GetAttachmentRequest.ts} +9 -9
  37. package/src/models/{ExchangeResultsKeyRequest.ts → GetSessionResultRequest.ts} +9 -9
  38. package/src/models/{ExchangeResultsKeyResponse.ts → GetSessionResultResponse.ts} +10 -10
  39. package/src/models/OrderDirection.ts +1 -1
  40. package/src/models/Session.ts +2 -0
  41. package/src/models/SessionFailCode.ts +1 -1
  42. package/src/models/SessionOrdering.ts +1 -1
  43. package/src/models/SessionState.ts +1 -1
  44. package/src/models/Verification.ts +2 -0
  45. package/src/models/VerificationFailCode.ts +1 -1
  46. package/src/models/index.ts +3 -3
  47. package/dist/esm/models/ExchangeAttachmentAccessKeyRequest.d.ts +0 -31
  48. package/dist/esm/models/ExchangeResultsKeyRequest.d.ts +0 -31
  49. package/dist/esm/models/ExchangeResultsKeyResponse.d.ts +0 -39
  50. package/dist/models/ExchangeAttachmentAccessKeyRequest.d.ts +0 -31
  51. package/dist/models/ExchangeResultsKeyRequest.d.ts +0 -31
  52. package/dist/models/ExchangeResultsKeyResponse.d.ts +0 -39
@@ -18,10 +18,10 @@ import type {
18
18
  CancelSessionResponse,
19
19
  CreateSessionRequest,
20
20
  CreateSessionResponse,
21
- ExchangeResultsKeyRequest,
22
- ExchangeResultsKeyResponse,
23
21
  FailureMessage,
24
22
  GetSessionResponse,
23
+ GetSessionResultRequest,
24
+ GetSessionResultResponse,
25
25
  ListSessionsResponse,
26
26
  OrderDirection,
27
27
  SessionOrdering,
@@ -34,14 +34,14 @@ import {
34
34
  CreateSessionRequestToJSON,
35
35
  CreateSessionResponseFromJSON,
36
36
  CreateSessionResponseToJSON,
37
- ExchangeResultsKeyRequestFromJSON,
38
- ExchangeResultsKeyRequestToJSON,
39
- ExchangeResultsKeyResponseFromJSON,
40
- ExchangeResultsKeyResponseToJSON,
41
37
  FailureMessageFromJSON,
42
38
  FailureMessageToJSON,
43
39
  GetSessionResponseFromJSON,
44
40
  GetSessionResponseToJSON,
41
+ GetSessionResultRequestFromJSON,
42
+ GetSessionResultRequestToJSON,
43
+ GetSessionResultResponseFromJSON,
44
+ GetSessionResultResponseToJSON,
45
45
  ListSessionsResponseFromJSON,
46
46
  ListSessionsResponseToJSON,
47
47
  OrderDirectionFromJSON,
@@ -60,13 +60,13 @@ export interface CreateSessionOperationRequest {
60
60
  createSessionRequest?: CreateSessionRequest;
61
61
  }
62
62
 
63
- export interface ExchangeResultsKeyOperationRequest {
63
+ export interface GetSessionRequest {
64
64
  sessionId: string;
65
- exchangeResultsKeyRequest?: ExchangeResultsKeyRequest;
66
65
  }
67
66
 
68
- export interface GetSessionRequest {
67
+ export interface GetSessionResultOperationRequest {
69
68
  sessionId: string;
69
+ getSessionResultRequest?: GetSessionResultRequest;
70
70
  }
71
71
 
72
72
  export interface ListSessionsRequest {
@@ -88,8 +88,8 @@ export interface RedactSessionRequest {
88
88
  */
89
89
  export interface SessionsApiInterface {
90
90
  /**
91
- *
92
- * @summary Cancel a Session by its ID
91
+ * Cancel a Session by its ID
92
+ * @summary Cancel Session
93
93
  * @param {string} sessionId
94
94
  * @param {*} [options] Override http request option.
95
95
  * @throws {RequiredError}
@@ -99,12 +99,13 @@ export interface SessionsApiInterface {
99
99
 
100
100
  /**
101
101
  * Cancel a Session by its ID
102
+ * Cancel Session
102
103
  */
103
104
  cancelSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelSessionResponse>;
104
105
 
105
106
  /**
106
- *
107
- * @summary Create a Session to verify a user\'s identity
107
+ * Create a Session to verify a user\'s identity
108
+ * @summary Create Session
108
109
  * @param {CreateSessionRequest} [createSessionRequest]
109
110
  * @param {*} [options] Override http request option.
110
111
  * @throws {RequiredError}
@@ -114,43 +115,45 @@ export interface SessionsApiInterface {
114
115
 
115
116
  /**
116
117
  * Create a Session to verify a user\'s identity
118
+ * Create Session
117
119
  */
118
120
  createSession(createSessionRequest?: CreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSessionResponse>;
119
121
 
120
122
  /**
121
- *
122
- * @summary Exchange a Results Access Key for Identity Data
123
+ * Get a Session by its ID
124
+ * @summary Get Session
123
125
  * @param {string} sessionId
124
- * @param {ExchangeResultsKeyRequest} [exchangeResultsKeyRequest]
125
126
  * @param {*} [options] Override http request option.
126
127
  * @throws {RequiredError}
127
128
  * @memberof SessionsApiInterface
128
129
  */
129
- exchangeResultsKeyRaw(requestParameters: ExchangeResultsKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExchangeResultsKeyResponse>>;
130
+ getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResponse>>;
130
131
 
131
132
  /**
132
- * Exchange a Results Access Key for Identity Data
133
+ * Get a Session by its ID
134
+ * Get Session
133
135
  */
134
- exchangeResultsKey(sessionId: string, exchangeResultsKeyRequest?: ExchangeResultsKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExchangeResultsKeyResponse>;
136
+ getSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResponse>;
135
137
 
136
138
  /**
137
139
  *
138
- * @summary Get a Session by its ID
140
+ * @summary Get Session Results
139
141
  * @param {string} sessionId
142
+ * @param {GetSessionResultRequest} [getSessionResultRequest]
140
143
  * @param {*} [options] Override http request option.
141
144
  * @throws {RequiredError}
142
145
  * @memberof SessionsApiInterface
143
146
  */
144
- getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResponse>>;
147
+ getSessionResultRaw(requestParameters: GetSessionResultOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResultResponse>>;
145
148
 
146
149
  /**
147
- * Get a Session by its ID
150
+ * Get Session Results
148
151
  */
149
- getSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResponse>;
152
+ getSessionResult(sessionId: string, getSessionResultRequest?: GetSessionResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResultResponse>;
150
153
 
151
154
  /**
152
- *
153
- * @summary List Sessions created by your account
155
+ * List Sessions created by your account
156
+ * @summary List Sessions
154
157
  * @param {SessionOrdering} [orderBy] The field by which sessions should be ordered
155
158
  * @param {OrderDirection} [orderDirection]
156
159
  * @param {number} [pageSize] The number of items to return per page -- must be between &#x60;1&#x60; and &#x60;50&#x60;
@@ -163,12 +166,13 @@ export interface SessionsApiInterface {
163
166
 
164
167
  /**
165
168
  * List Sessions created by your account
169
+ * List Sessions
166
170
  */
167
171
  listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
168
172
 
169
173
  /**
170
- *
171
- * @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.
174
+ * 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.
175
+ * @summary Redact Session
172
176
  * @param {string} sessionId
173
177
  * @param {*} [options] Override http request option.
174
178
  * @throws {RequiredError}
@@ -178,6 +182,7 @@ export interface SessionsApiInterface {
178
182
 
179
183
  /**
180
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
181
186
  */
182
187
  redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
183
188
 
@@ -190,6 +195,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
190
195
 
191
196
  /**
192
197
  * Cancel a Session by its ID
198
+ * Cancel Session
193
199
  */
194
200
  async cancelSessionRaw(requestParameters: CancelSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CancelSessionResponse>> {
195
201
  if (requestParameters['sessionId'] == null) {
@@ -223,6 +229,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
223
229
 
224
230
  /**
225
231
  * Cancel a Session by its ID
232
+ * Cancel Session
226
233
  */
227
234
  async cancelSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelSessionResponse> {
228
235
  const response = await this.cancelSessionRaw({ sessionId: sessionId }, initOverrides);
@@ -231,6 +238,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
231
238
 
232
239
  /**
233
240
  * Create a Session to verify a user\'s identity
241
+ * Create Session
234
242
  */
235
243
  async createSessionRaw(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSessionResponse>> {
236
244
  const queryParameters: any = {};
@@ -260,6 +268,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
260
268
 
261
269
  /**
262
270
  * Create a Session to verify a user\'s identity
271
+ * Create Session
263
272
  */
264
273
  async createSession(createSessionRequest?: CreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSessionResponse> {
265
274
  const response = await this.createSessionRaw({ createSessionRequest: createSessionRequest }, initOverrides);
@@ -267,13 +276,14 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
267
276
  }
268
277
 
269
278
  /**
270
- * Exchange a Results Access Key for Identity Data
279
+ * Get a Session by its ID
280
+ * Get Session
271
281
  */
272
- async exchangeResultsKeyRaw(requestParameters: ExchangeResultsKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExchangeResultsKeyResponse>> {
282
+ async getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResponse>> {
273
283
  if (requestParameters['sessionId'] == null) {
274
284
  throw new runtime.RequiredError(
275
285
  'sessionId',
276
- 'Required parameter "sessionId" was null or undefined when calling exchangeResultsKey().'
286
+ 'Required parameter "sessionId" was null or undefined when calling getSession().'
277
287
  );
278
288
  }
279
289
 
@@ -281,8 +291,6 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
281
291
 
282
292
  const headerParameters: runtime.HTTPHeaders = {};
283
293
 
284
- headerParameters['Content-Type'] = 'application/json';
285
-
286
294
  if (this.configuration && this.configuration.accessToken) {
287
295
  const token = this.configuration.accessToken;
288
296
  const tokenString = await token("Bearer", []);
@@ -292,32 +300,32 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
292
300
  }
293
301
  }
294
302
  const response = await this.request({
295
- path: `/api/v1/sessions/{sessionId}/results/exchange`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
296
- method: 'POST',
303
+ path: `/api/v1/sessions/{sessionId}`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
304
+ method: 'GET',
297
305
  headers: headerParameters,
298
306
  query: queryParameters,
299
- body: ExchangeResultsKeyRequestToJSON(requestParameters['exchangeResultsKeyRequest']),
300
307
  }, initOverrides);
301
308
 
302
- return new runtime.JSONApiResponse(response, (jsonValue) => ExchangeResultsKeyResponseFromJSON(jsonValue));
309
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSessionResponseFromJSON(jsonValue));
303
310
  }
304
311
 
305
312
  /**
306
- * Exchange a Results Access Key for Identity Data
313
+ * Get a Session by its ID
314
+ * Get Session
307
315
  */
308
- async exchangeResultsKey(sessionId: string, exchangeResultsKeyRequest?: ExchangeResultsKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExchangeResultsKeyResponse> {
309
- const response = await this.exchangeResultsKeyRaw({ sessionId: sessionId, exchangeResultsKeyRequest: exchangeResultsKeyRequest }, initOverrides);
316
+ async getSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResponse> {
317
+ const response = await this.getSessionRaw({ sessionId: sessionId }, initOverrides);
310
318
  return await response.value();
311
319
  }
312
320
 
313
321
  /**
314
- * Get a Session by its ID
322
+ * Get Session Results
315
323
  */
316
- async getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResponse>> {
324
+ async getSessionResultRaw(requestParameters: GetSessionResultOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSessionResultResponse>> {
317
325
  if (requestParameters['sessionId'] == null) {
318
326
  throw new runtime.RequiredError(
319
327
  'sessionId',
320
- 'Required parameter "sessionId" was null or undefined when calling getSession().'
328
+ 'Required parameter "sessionId" was null or undefined when calling getSessionResult().'
321
329
  );
322
330
  }
323
331
 
@@ -325,6 +333,8 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
325
333
 
326
334
  const headerParameters: runtime.HTTPHeaders = {};
327
335
 
336
+ headerParameters['Content-Type'] = 'application/json';
337
+
328
338
  if (this.configuration && this.configuration.accessToken) {
329
339
  const token = this.configuration.accessToken;
330
340
  const tokenString = await token("Bearer", []);
@@ -334,25 +344,27 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
334
344
  }
335
345
  }
336
346
  const response = await this.request({
337
- path: `/api/v1/sessions/{sessionId}`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
338
- method: 'GET',
347
+ path: `/api/v1/sessions/{sessionId}/results`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
348
+ method: 'POST',
339
349
  headers: headerParameters,
340
350
  query: queryParameters,
351
+ body: GetSessionResultRequestToJSON(requestParameters['getSessionResultRequest']),
341
352
  }, initOverrides);
342
353
 
343
- return new runtime.JSONApiResponse(response, (jsonValue) => GetSessionResponseFromJSON(jsonValue));
354
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSessionResultResponseFromJSON(jsonValue));
344
355
  }
345
356
 
346
357
  /**
347
- * Get a Session by its ID
358
+ * Get Session Results
348
359
  */
349
- async getSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResponse> {
350
- const response = await this.getSessionRaw({ sessionId: sessionId }, initOverrides);
360
+ async getSessionResult(sessionId: string, getSessionResultRequest?: GetSessionResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSessionResultResponse> {
361
+ const response = await this.getSessionResultRaw({ sessionId: sessionId, getSessionResultRequest: getSessionResultRequest }, initOverrides);
351
362
  return await response.value();
352
363
  }
353
364
 
354
365
  /**
355
366
  * List Sessions created by your account
367
+ * List Sessions
356
368
  */
357
369
  async listSessionsRaw(requestParameters: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListSessionsResponse>> {
358
370
  const queryParameters: any = {};
@@ -395,6 +407,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
395
407
 
396
408
  /**
397
409
  * List Sessions created by your account
410
+ * List Sessions
398
411
  */
399
412
  async listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse> {
400
413
  const response = await this.listSessionsRaw({ orderBy: orderBy, orderDirection: orderDirection, pageSize: pageSize, page: page }, initOverrides);
@@ -403,6 +416,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
403
416
 
404
417
  /**
405
418
  * 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.
419
+ * Redact Session
406
420
  */
407
421
  async redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
408
422
  if (requestParameters['sessionId'] == null) {
@@ -436,6 +450,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
436
450
 
437
451
  /**
438
452
  * 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.
453
+ * Redact Session
439
454
  */
440
455
  async redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
441
456
  await this.redactSessionRaw({ sessionId: sessionId }, initOverrides);
@@ -16,30 +16,30 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface ExchangeAttachmentAccessKeyRequest
19
+ * @interface GetAttachmentRequest
20
20
  */
21
- export interface ExchangeAttachmentAccessKeyRequest {
21
+ export interface GetAttachmentRequest {
22
22
  /**
23
23
  * The Attachment Access Key to exchange for the raw file contents of the related Attachment
24
24
  * @type {string}
25
- * @memberof ExchangeAttachmentAccessKeyRequest
25
+ * @memberof GetAttachmentRequest
26
26
  */
27
27
  attachmentAccessKey: string;
28
28
  }
29
29
 
30
30
  /**
31
- * Check if a given object implements the ExchangeAttachmentAccessKeyRequest interface.
31
+ * Check if a given object implements the GetAttachmentRequest interface.
32
32
  */
33
- export function instanceOfExchangeAttachmentAccessKeyRequest(value: object): value is ExchangeAttachmentAccessKeyRequest {
33
+ export function instanceOfGetAttachmentRequest(value: object): value is GetAttachmentRequest {
34
34
  if (!('attachmentAccessKey' in value) || value['attachmentAccessKey'] === undefined) return false;
35
35
  return true;
36
36
  }
37
37
 
38
- export function ExchangeAttachmentAccessKeyRequestFromJSON(json: any): ExchangeAttachmentAccessKeyRequest {
39
- return ExchangeAttachmentAccessKeyRequestFromJSONTyped(json, false);
38
+ export function GetAttachmentRequestFromJSON(json: any): GetAttachmentRequest {
39
+ return GetAttachmentRequestFromJSONTyped(json, false);
40
40
  }
41
41
 
42
- export function ExchangeAttachmentAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeAttachmentAccessKeyRequest {
42
+ export function GetAttachmentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAttachmentRequest {
43
43
  if (json == null) {
44
44
  return json;
45
45
  }
@@ -49,7 +49,7 @@ export function ExchangeAttachmentAccessKeyRequestFromJSONTyped(json: any, ignor
49
49
  };
50
50
  }
51
51
 
52
- export function ExchangeAttachmentAccessKeyRequestToJSON(value?: ExchangeAttachmentAccessKeyRequest | null): any {
52
+ export function GetAttachmentRequestToJSON(value?: GetAttachmentRequest | null): any {
53
53
  if (value == null) {
54
54
  return value;
55
55
  }
@@ -16,30 +16,30 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface ExchangeResultsKeyRequest
19
+ * @interface GetSessionResultRequest
20
20
  */
21
- export interface ExchangeResultsKeyRequest {
21
+ export interface GetSessionResultRequest {
22
22
  /**
23
23
  * The Results Access Key to exchange
24
24
  * @type {string}
25
- * @memberof ExchangeResultsKeyRequest
25
+ * @memberof GetSessionResultRequest
26
26
  */
27
27
  resultsAccessKey: string;
28
28
  }
29
29
 
30
30
  /**
31
- * Check if a given object implements the ExchangeResultsKeyRequest interface.
31
+ * Check if a given object implements the GetSessionResultRequest interface.
32
32
  */
33
- export function instanceOfExchangeResultsKeyRequest(value: object): value is ExchangeResultsKeyRequest {
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 ExchangeResultsKeyRequestFromJSON(json: any): ExchangeResultsKeyRequest {
39
- return ExchangeResultsKeyRequestFromJSONTyped(json, false);
38
+ export function GetSessionResultRequestFromJSON(json: any): GetSessionResultRequest {
39
+ return GetSessionResultRequestFromJSONTyped(json, false);
40
40
  }
41
41
 
42
- export function ExchangeResultsKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeResultsKeyRequest {
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 ExchangeResultsKeyRequestToJSON(value?: ExchangeResultsKeyRequest | null): any {
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 ExchangeResultsKeyResponse
32
+ * @interface GetSessionResultResponse
33
33
  */
34
- export interface ExchangeResultsKeyResponse {
34
+ export interface GetSessionResultResponse {
35
35
  /**
36
36
  *
37
37
  * @type {Session}
38
- * @memberof ExchangeResultsKeyResponse
38
+ * @memberof GetSessionResultResponse
39
39
  */
40
40
  session: Session;
41
41
  /**
42
42
  *
43
43
  * @type {IdentityData}
44
- * @memberof ExchangeResultsKeyResponse
44
+ * @memberof GetSessionResultResponse
45
45
  */
46
46
  identityData?: IdentityData;
47
47
  }
48
48
 
49
49
  /**
50
- * Check if a given object implements the ExchangeResultsKeyResponse interface.
50
+ * Check if a given object implements the GetSessionResultResponse interface.
51
51
  */
52
- export function instanceOfExchangeResultsKeyResponse(value: object): value is ExchangeResultsKeyResponse {
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 ExchangeResultsKeyResponseFromJSON(json: any): ExchangeResultsKeyResponse {
58
- return ExchangeResultsKeyResponseFromJSONTyped(json, false);
57
+ export function GetSessionResultResponseFromJSON(json: any): GetSessionResultResponse {
58
+ return GetSessionResultResponseFromJSONTyped(json, false);
59
59
  }
60
60
 
61
- export function ExchangeResultsKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeResultsKeyResponse {
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 ExchangeResultsKeyResponseToJSON(value?: ExchangeResultsKeyResponse | null): any {
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 ((OrderDirection as Record<string, OrderDirection>)[key] === value) {
30
+ if (OrderDirection[key as keyof typeof OrderDirection] === value) {
31
31
  return true;
32
32
  }
33
33
  }
@@ -88,6 +88,8 @@ export interface Session {
88
88
  updated: number;
89
89
  }
90
90
 
91
+
92
+
91
93
  /**
92
94
  * Check if a given object implements the Session interface.
93
95
  */
@@ -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 ((SessionFailCode as Record<string, SessionFailCode>)[key] === value) {
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 ((SessionOrdering as Record<string, SessionOrdering>)[key] === value) {
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 ((SessionState as Record<string, SessionState>)[key] === value) {
34
+ if (SessionState[key as keyof typeof SessionState] === value) {
35
35
  return true;
36
36
  }
37
37
  }
@@ -40,6 +40,8 @@ export interface Verification {
40
40
  failCode?: VerificationFailCode;
41
41
  }
42
42
 
43
+
44
+
43
45
  /**
44
46
  * Check if a given object implements the Verification interface.
45
47
  */
@@ -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 ((VerificationFailCode as Record<string, VerificationFailCode>)[key] === value) {
33
+ if (VerificationFailCode[key as keyof typeof VerificationFailCode] === value) {
34
34
  return true;
35
35
  }
36
36
  }
@@ -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,31 +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
- *
14
- * @export
15
- * @interface ExchangeAttachmentAccessKeyRequest
16
- */
17
- export interface ExchangeAttachmentAccessKeyRequest {
18
- /**
19
- * The Attachment Access Key to exchange for the raw file contents of the related Attachment
20
- * @type {string}
21
- * @memberof ExchangeAttachmentAccessKeyRequest
22
- */
23
- attachmentAccessKey: string;
24
- }
25
- /**
26
- * Check if a given object implements the ExchangeAttachmentAccessKeyRequest interface.
27
- */
28
- export declare function instanceOfExchangeAttachmentAccessKeyRequest(value: object): value is ExchangeAttachmentAccessKeyRequest;
29
- export declare function ExchangeAttachmentAccessKeyRequestFromJSON(json: any): ExchangeAttachmentAccessKeyRequest;
30
- export declare function ExchangeAttachmentAccessKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeAttachmentAccessKeyRequest;
31
- export declare function ExchangeAttachmentAccessKeyRequestToJSON(value?: ExchangeAttachmentAccessKeyRequest | null): any;
@@ -1,31 +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
- *
14
- * @export
15
- * @interface ExchangeResultsKeyRequest
16
- */
17
- export interface ExchangeResultsKeyRequest {
18
- /**
19
- * The Results Access Key to exchange
20
- * @type {string}
21
- * @memberof ExchangeResultsKeyRequest
22
- */
23
- resultsAccessKey: string;
24
- }
25
- /**
26
- * Check if a given object implements the ExchangeResultsKeyRequest interface.
27
- */
28
- export declare function instanceOfExchangeResultsKeyRequest(value: object): value is ExchangeResultsKeyRequest;
29
- export declare function ExchangeResultsKeyRequestFromJSON(json: any): ExchangeResultsKeyRequest;
30
- export declare function ExchangeResultsKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeResultsKeyRequest;
31
- export declare function ExchangeResultsKeyRequestToJSON(value?: ExchangeResultsKeyRequest | null): any;