@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
@@ -0,0 +1,39 @@
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 type { IdentityData } from './IdentityData';
13
+ import type { Session } from './Session';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetSessionResultResponse
18
+ */
19
+ export interface GetSessionResultResponse {
20
+ /**
21
+ *
22
+ * @type {Session}
23
+ * @memberof GetSessionResultResponse
24
+ */
25
+ session: Session;
26
+ /**
27
+ *
28
+ * @type {IdentityData}
29
+ * @memberof GetSessionResultResponse
30
+ */
31
+ identityData?: IdentityData;
32
+ }
33
+ /**
34
+ * Check if a given object implements the GetSessionResultResponse interface.
35
+ */
36
+ export declare function instanceOfGetSessionResultResponse(value: object): value is GetSessionResultResponse;
37
+ export declare function GetSessionResultResponseFromJSON(json: any): GetSessionResultResponse;
38
+ export declare function GetSessionResultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSessionResultResponse;
39
+ export declare function GetSessionResultResponseToJSON(value?: GetSessionResultResponse | null): any;
@@ -14,17 +14,17 @@
14
14
  import { IdentityDataFromJSON, IdentityDataToJSON, } from './IdentityData';
15
15
  import { SessionFromJSON, SessionToJSON, } from './Session';
16
16
  /**
17
- * Check if a given object implements the ExchangeResultsKeyResponse interface.
17
+ * Check if a given object implements the GetSessionResultResponse interface.
18
18
  */
19
- export function instanceOfExchangeResultsKeyResponse(value) {
19
+ export function instanceOfGetSessionResultResponse(value) {
20
20
  if (!('session' in value) || value['session'] === undefined)
21
21
  return false;
22
22
  return true;
23
23
  }
24
- export function ExchangeResultsKeyResponseFromJSON(json) {
25
- return ExchangeResultsKeyResponseFromJSONTyped(json, false);
24
+ export function GetSessionResultResponseFromJSON(json) {
25
+ return GetSessionResultResponseFromJSONTyped(json, false);
26
26
  }
27
- export function ExchangeResultsKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ export function GetSessionResultResponseFromJSONTyped(json, ignoreDiscriminator) {
28
28
  if (json == null) {
29
29
  return json;
30
30
  }
@@ -33,7 +33,7 @@ export function ExchangeResultsKeyResponseFromJSONTyped(json, ignoreDiscriminato
33
33
  'identityData': json['identityData'] == null ? undefined : IdentityDataFromJSON(json['identityData']),
34
34
  };
35
35
  }
36
- export function ExchangeResultsKeyResponseToJSON(value) {
36
+ export function GetSessionResultResponseToJSON(value) {
37
37
  if (value == null) {
38
38
  return value;
39
39
  }
@@ -6,11 +6,11 @@ export * from './CreateSessionResponse';
6
6
  export * from './DisclosedFields';
7
7
  export * from './DisclosedFieldsRequest';
8
8
  export * from './DocumentData';
9
- export * from './ExchangeAttachmentAccessKeyRequest';
10
- export * from './ExchangeResultsKeyRequest';
11
- export * from './ExchangeResultsKeyResponse';
12
9
  export * from './FailureMessage';
10
+ export * from './GetAttachmentRequest';
13
11
  export * from './GetSessionResponse';
12
+ export * from './GetSessionResultRequest';
13
+ export * from './GetSessionResultResponse';
14
14
  export * from './IdentityData';
15
15
  export * from './IdentityLookupResponse';
16
16
  export * from './ListProvidersResponse';
@@ -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';
@@ -0,0 +1,31 @@
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 GetAttachmentRequest
16
+ */
17
+ export interface GetAttachmentRequest {
18
+ /**
19
+ * The Attachment Access Key to exchange for the raw file contents of the related Attachment
20
+ * @type {string}
21
+ * @memberof GetAttachmentRequest
22
+ */
23
+ attachmentAccessKey: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetAttachmentRequest interface.
27
+ */
28
+ export declare function instanceOfGetAttachmentRequest(value: object): value is GetAttachmentRequest;
29
+ export declare function GetAttachmentRequestFromJSON(json: any): GetAttachmentRequest;
30
+ export declare function GetAttachmentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAttachmentRequest;
31
+ export declare function GetAttachmentRequestToJSON(value?: GetAttachmentRequest | null): any;
@@ -13,22 +13,22 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfExchangeAttachmentAccessKeyRequest = instanceOfExchangeAttachmentAccessKeyRequest;
17
- exports.ExchangeAttachmentAccessKeyRequestFromJSON = ExchangeAttachmentAccessKeyRequestFromJSON;
18
- exports.ExchangeAttachmentAccessKeyRequestFromJSONTyped = ExchangeAttachmentAccessKeyRequestFromJSONTyped;
19
- exports.ExchangeAttachmentAccessKeyRequestToJSON = ExchangeAttachmentAccessKeyRequestToJSON;
16
+ exports.instanceOfGetAttachmentRequest = instanceOfGetAttachmentRequest;
17
+ exports.GetAttachmentRequestFromJSON = GetAttachmentRequestFromJSON;
18
+ exports.GetAttachmentRequestFromJSONTyped = GetAttachmentRequestFromJSONTyped;
19
+ exports.GetAttachmentRequestToJSON = GetAttachmentRequestToJSON;
20
20
  /**
21
- * Check if a given object implements the ExchangeAttachmentAccessKeyRequest interface.
21
+ * Check if a given object implements the GetAttachmentRequest interface.
22
22
  */
23
- function instanceOfExchangeAttachmentAccessKeyRequest(value) {
23
+ function instanceOfGetAttachmentRequest(value) {
24
24
  if (!('attachmentAccessKey' in value) || value['attachmentAccessKey'] === undefined)
25
25
  return false;
26
26
  return true;
27
27
  }
28
- function ExchangeAttachmentAccessKeyRequestFromJSON(json) {
29
- return ExchangeAttachmentAccessKeyRequestFromJSONTyped(json, false);
28
+ function GetAttachmentRequestFromJSON(json) {
29
+ return GetAttachmentRequestFromJSONTyped(json, false);
30
30
  }
31
- function ExchangeAttachmentAccessKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ function GetAttachmentRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  if (json == null) {
33
33
  return json;
34
34
  }
@@ -36,7 +36,7 @@ function ExchangeAttachmentAccessKeyRequestFromJSONTyped(json, ignoreDiscriminat
36
36
  'attachmentAccessKey': json['attachmentAccessKey'],
37
37
  };
38
38
  }
39
- function ExchangeAttachmentAccessKeyRequestToJSON(value) {
39
+ function GetAttachmentRequestToJSON(value) {
40
40
  if (value == null) {
41
41
  return value;
42
42
  }
@@ -0,0 +1,31 @@
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 GetSessionResultRequest
16
+ */
17
+ export interface GetSessionResultRequest {
18
+ /**
19
+ * The Results Access Key to exchange
20
+ * @type {string}
21
+ * @memberof GetSessionResultRequest
22
+ */
23
+ resultsAccessKey: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetSessionResultRequest interface.
27
+ */
28
+ export declare function instanceOfGetSessionResultRequest(value: object): value is GetSessionResultRequest;
29
+ export declare function GetSessionResultRequestFromJSON(json: any): GetSessionResultRequest;
30
+ export declare function GetSessionResultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSessionResultRequest;
31
+ export declare function GetSessionResultRequestToJSON(value?: GetSessionResultRequest | null): any;
@@ -13,22 +13,22 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfExchangeResultsKeyRequest = instanceOfExchangeResultsKeyRequest;
17
- exports.ExchangeResultsKeyRequestFromJSON = ExchangeResultsKeyRequestFromJSON;
18
- exports.ExchangeResultsKeyRequestFromJSONTyped = ExchangeResultsKeyRequestFromJSONTyped;
19
- exports.ExchangeResultsKeyRequestToJSON = ExchangeResultsKeyRequestToJSON;
16
+ exports.instanceOfGetSessionResultRequest = instanceOfGetSessionResultRequest;
17
+ exports.GetSessionResultRequestFromJSON = GetSessionResultRequestFromJSON;
18
+ exports.GetSessionResultRequestFromJSONTyped = GetSessionResultRequestFromJSONTyped;
19
+ exports.GetSessionResultRequestToJSON = GetSessionResultRequestToJSON;
20
20
  /**
21
- * Check if a given object implements the ExchangeResultsKeyRequest interface.
21
+ * Check if a given object implements the GetSessionResultRequest interface.
22
22
  */
23
- function instanceOfExchangeResultsKeyRequest(value) {
23
+ function instanceOfGetSessionResultRequest(value) {
24
24
  if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
25
25
  return false;
26
26
  return true;
27
27
  }
28
- function ExchangeResultsKeyRequestFromJSON(json) {
29
- return ExchangeResultsKeyRequestFromJSONTyped(json, false);
28
+ function GetSessionResultRequestFromJSON(json) {
29
+ return GetSessionResultRequestFromJSONTyped(json, false);
30
30
  }
31
- function ExchangeResultsKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ function GetSessionResultRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  if (json == null) {
33
33
  return json;
34
34
  }
@@ -36,7 +36,7 @@ function ExchangeResultsKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'resultsAccessKey': json['resultsAccessKey'],
37
37
  };
38
38
  }
39
- function ExchangeResultsKeyRequestToJSON(value) {
39
+ function GetSessionResultRequestToJSON(value) {
40
40
  if (value == null) {
41
41
  return value;
42
42
  }
@@ -0,0 +1,39 @@
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 type { IdentityData } from './IdentityData';
13
+ import type { Session } from './Session';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetSessionResultResponse
18
+ */
19
+ export interface GetSessionResultResponse {
20
+ /**
21
+ *
22
+ * @type {Session}
23
+ * @memberof GetSessionResultResponse
24
+ */
25
+ session: Session;
26
+ /**
27
+ *
28
+ * @type {IdentityData}
29
+ * @memberof GetSessionResultResponse
30
+ */
31
+ identityData?: IdentityData;
32
+ }
33
+ /**
34
+ * Check if a given object implements the GetSessionResultResponse interface.
35
+ */
36
+ export declare function instanceOfGetSessionResultResponse(value: object): value is GetSessionResultResponse;
37
+ export declare function GetSessionResultResponseFromJSON(json: any): GetSessionResultResponse;
38
+ export declare function GetSessionResultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSessionResultResponse;
39
+ export declare function GetSessionResultResponseToJSON(value?: GetSessionResultResponse | null): any;
@@ -13,24 +13,24 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfExchangeResultsKeyResponse = instanceOfExchangeResultsKeyResponse;
17
- exports.ExchangeResultsKeyResponseFromJSON = ExchangeResultsKeyResponseFromJSON;
18
- exports.ExchangeResultsKeyResponseFromJSONTyped = ExchangeResultsKeyResponseFromJSONTyped;
19
- exports.ExchangeResultsKeyResponseToJSON = ExchangeResultsKeyResponseToJSON;
16
+ exports.instanceOfGetSessionResultResponse = instanceOfGetSessionResultResponse;
17
+ exports.GetSessionResultResponseFromJSON = GetSessionResultResponseFromJSON;
18
+ exports.GetSessionResultResponseFromJSONTyped = GetSessionResultResponseFromJSONTyped;
19
+ exports.GetSessionResultResponseToJSON = GetSessionResultResponseToJSON;
20
20
  const IdentityData_1 = require("./IdentityData");
21
21
  const Session_1 = require("./Session");
22
22
  /**
23
- * Check if a given object implements the ExchangeResultsKeyResponse interface.
23
+ * Check if a given object implements the GetSessionResultResponse interface.
24
24
  */
25
- function instanceOfExchangeResultsKeyResponse(value) {
25
+ function instanceOfGetSessionResultResponse(value) {
26
26
  if (!('session' in value) || value['session'] === undefined)
27
27
  return false;
28
28
  return true;
29
29
  }
30
- function ExchangeResultsKeyResponseFromJSON(json) {
31
- return ExchangeResultsKeyResponseFromJSONTyped(json, false);
30
+ function GetSessionResultResponseFromJSON(json) {
31
+ return GetSessionResultResponseFromJSONTyped(json, false);
32
32
  }
33
- function ExchangeResultsKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ function GetSessionResultResponseFromJSONTyped(json, ignoreDiscriminator) {
34
34
  if (json == null) {
35
35
  return json;
36
36
  }
@@ -39,7 +39,7 @@ function ExchangeResultsKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'identityData': json['identityData'] == null ? undefined : (0, IdentityData_1.IdentityDataFromJSON)(json['identityData']),
40
40
  };
41
41
  }
42
- function ExchangeResultsKeyResponseToJSON(value) {
42
+ function GetSessionResultResponseToJSON(value) {
43
43
  if (value == null) {
44
44
  return value;
45
45
  }
@@ -6,11 +6,11 @@ export * from './CreateSessionResponse';
6
6
  export * from './DisclosedFields';
7
7
  export * from './DisclosedFieldsRequest';
8
8
  export * from './DocumentData';
9
- export * from './ExchangeAttachmentAccessKeyRequest';
10
- export * from './ExchangeResultsKeyRequest';
11
- export * from './ExchangeResultsKeyResponse';
12
9
  export * from './FailureMessage';
10
+ export * from './GetAttachmentRequest';
13
11
  export * from './GetSessionResponse';
12
+ export * from './GetSessionResultRequest';
13
+ export * from './GetSessionResultResponse';
14
14
  export * from './IdentityData';
15
15
  export * from './IdentityLookupResponse';
16
16
  export * from './ListProvidersResponse';
@@ -24,11 +24,11 @@ __exportStar(require("./CreateSessionResponse"), exports);
24
24
  __exportStar(require("./DisclosedFields"), exports);
25
25
  __exportStar(require("./DisclosedFieldsRequest"), exports);
26
26
  __exportStar(require("./DocumentData"), exports);
27
- __exportStar(require("./ExchangeAttachmentAccessKeyRequest"), exports);
28
- __exportStar(require("./ExchangeResultsKeyRequest"), exports);
29
- __exportStar(require("./ExchangeResultsKeyResponse"), exports);
30
27
  __exportStar(require("./FailureMessage"), exports);
28
+ __exportStar(require("./GetAttachmentRequest"), exports);
31
29
  __exportStar(require("./GetSessionResponse"), exports);
30
+ __exportStar(require("./GetSessionResultRequest"), exports);
31
+ __exportStar(require("./GetSessionResultResponse"), exports);
32
32
  __exportStar(require("./IdentityData"), exports);
33
33
  __exportStar(require("./IdentityLookupResponse"), exports);
34
34
  __exportStar(require("./ListProvidersResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trinsic/api",
3
- "version": "0.2.4",
3
+ "version": "0.4.0",
4
4
  "description": "OpenAPI client for @trinsic/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,21 +15,21 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- ExchangeAttachmentAccessKeyRequest,
19
18
  FailureMessage,
19
+ GetAttachmentRequest,
20
20
  ValidationResult,
21
21
  } from '../models/index';
22
22
  import {
23
- ExchangeAttachmentAccessKeyRequestFromJSON,
24
- ExchangeAttachmentAccessKeyRequestToJSON,
25
23
  FailureMessageFromJSON,
26
24
  FailureMessageToJSON,
25
+ GetAttachmentRequestFromJSON,
26
+ GetAttachmentRequestToJSON,
27
27
  ValidationResultFromJSON,
28
28
  ValidationResultToJSON,
29
29
  } from '../models/index';
30
30
 
31
- export interface ExchangeAttachmentAccessKeyOperationRequest {
32
- exchangeAttachmentAccessKeyRequest?: ExchangeAttachmentAccessKeyRequest;
31
+ export interface GetAttachmentOperationRequest {
32
+ getAttachmentRequest?: GetAttachmentRequest;
33
33
  }
34
34
 
35
35
  /**
@@ -40,19 +40,20 @@ export interface ExchangeAttachmentAccessKeyOperationRequest {
40
40
  */
41
41
  export interface AttachmentsApiInterface {
42
42
  /**
43
- *
44
- * @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.
45
- * @param {ExchangeAttachmentAccessKeyRequest} [exchangeAttachmentAccessKeyRequest]
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
+ * @summary Get Attachment
45
+ * @param {GetAttachmentRequest} [getAttachmentRequest]
46
46
  * @param {*} [options] Override http request option.
47
47
  * @throws {RequiredError}
48
48
  * @memberof AttachmentsApiInterface
49
49
  */
50
- exchangeAttachmentAccessKeyRaw(requestParameters: ExchangeAttachmentAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
50
+ getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
51
51
 
52
52
  /**
53
53
  * 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.
54
+ * Get Attachment
54
55
  */
55
- exchangeAttachmentAccessKey(exchangeAttachmentAccessKeyRequest?: ExchangeAttachmentAccessKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
56
+ getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
56
57
 
57
58
  }
58
59
 
@@ -63,8 +64,9 @@ export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInt
63
64
 
64
65
  /**
65
66
  * 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.
67
+ * Get Attachment
66
68
  */
67
- async exchangeAttachmentAccessKeyRaw(requestParameters: ExchangeAttachmentAccessKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
69
+ async getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
68
70
  const queryParameters: any = {};
69
71
 
70
72
  const headerParameters: runtime.HTTPHeaders = {};
@@ -80,11 +82,11 @@ export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInt
80
82
  }
81
83
  }
82
84
  const response = await this.request({
83
- path: `/api/v1/attachments/exchange`,
85
+ path: `/api/v1/attachments/attachment`,
84
86
  method: 'POST',
85
87
  headers: headerParameters,
86
88
  query: queryParameters,
87
- body: ExchangeAttachmentAccessKeyRequestToJSON(requestParameters['exchangeAttachmentAccessKeyRequest']),
89
+ body: GetAttachmentRequestToJSON(requestParameters['getAttachmentRequest']),
88
90
  }, initOverrides);
89
91
 
90
92
  return new runtime.VoidApiResponse(response);
@@ -92,9 +94,10 @@ export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInt
92
94
 
93
95
  /**
94
96
  * 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.
97
+ * Get Attachment
95
98
  */
96
- async exchangeAttachmentAccessKey(exchangeAttachmentAccessKeyRequest?: ExchangeAttachmentAccessKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
97
- await this.exchangeAttachmentAccessKeyRaw({ exchangeAttachmentAccessKeyRequest: exchangeAttachmentAccessKeyRequest }, initOverrides);
99
+ async getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
100
+ await this.getAttachmentRaw({ getAttachmentRequest: getAttachmentRequest }, initOverrides);
98
101
  }
99
102
 
100
103
  }
@@ -43,8 +43,8 @@ export interface IdentityLookupRequest {
43
43
  */
44
44
  export interface NetworkApiInterface {
45
45
  /**
46
- *
47
- * @summary Query the availability of an identity in the Trinsic Network by phone number
46
+ * Query the availability of an identity in the Trinsic Network by phone number
47
+ * @summary Lookup Identity
48
48
  * @param {string} phoneNumber
49
49
  * @param {*} [options] Override http request option.
50
50
  * @throws {RequiredError}
@@ -54,12 +54,13 @@ export interface NetworkApiInterface {
54
54
 
55
55
  /**
56
56
  * Query the availability of an identity in the Trinsic Network by phone number
57
+ * Lookup Identity
57
58
  */
58
59
  identityLookup(phoneNumber: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdentityLookupResponse>;
59
60
 
60
61
  /**
61
- *
62
- * @summary List all identity providers available for use
62
+ * List all identity providers available for use
63
+ * @summary List Identity Providers
63
64
  * @param {*} [options] Override http request option.
64
65
  * @throws {RequiredError}
65
66
  * @memberof NetworkApiInterface
@@ -68,6 +69,7 @@ export interface NetworkApiInterface {
68
69
 
69
70
  /**
70
71
  * List all identity providers available for use
72
+ * List Identity Providers
71
73
  */
72
74
  listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
73
75
 
@@ -80,6 +82,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
80
82
 
81
83
  /**
82
84
  * Query the availability of an identity in the Trinsic Network by phone number
85
+ * Lookup Identity
83
86
  */
84
87
  async identityLookupRaw(requestParameters: IdentityLookupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdentityLookupResponse>> {
85
88
  if (requestParameters['phoneNumber'] == null) {
@@ -113,6 +116,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
113
116
 
114
117
  /**
115
118
  * Query the availability of an identity in the Trinsic Network by phone number
119
+ * Lookup Identity
116
120
  */
117
121
  async identityLookup(phoneNumber: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdentityLookupResponse> {
118
122
  const response = await this.identityLookupRaw({ phoneNumber: phoneNumber }, initOverrides);
@@ -121,6 +125,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
121
125
 
122
126
  /**
123
127
  * List all identity providers available for use
128
+ * List Identity Providers
124
129
  */
125
130
  async listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>> {
126
131
  const queryParameters: any = {};
@@ -147,6 +152,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
147
152
 
148
153
  /**
149
154
  * List all identity providers available for use
155
+ * List Identity Providers
150
156
  */
151
157
  async listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse> {
152
158
  const response = await this.listProvidersRaw(initOverrides);