@trinsic/api
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -13,3 +13,3 @@ /** | ||
import * as runtime from '../runtime'; | ||
import type { GetAttachmentRequest } from '../models/index'; | ||
import type { GetAttachmentRequest, GetAttachmentResponse } from '../models/index'; | ||
export interface GetAttachmentOperationRequest { | ||
@@ -26,3 +26,3 @@ getAttachmentRequest?: GetAttachmentRequest; | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* @summary Get Attachment | ||
@@ -34,8 +34,8 @@ * @param {GetAttachmentRequest} [getAttachmentRequest] | ||
*/ | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>; | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>; | ||
} | ||
@@ -47,11 +47,11 @@ /** | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>; | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>; | ||
} |
@@ -33,3 +33,3 @@ "use strict"; | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
@@ -56,7 +56,7 @@ */ | ||
}, initOverrides); | ||
return new runtime.VoidApiResponse(response); | ||
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetAttachmentResponseFromJSON)(jsonValue)); | ||
}); | ||
} | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
@@ -66,3 +66,4 @@ */ | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.getAttachmentRaw({ getAttachmentRequest: getAttachmentRequest }, initOverrides); | ||
const response = yield this.getAttachmentRaw({ getAttachmentRequest: getAttachmentRequest }, initOverrides); | ||
return yield response.value(); | ||
}); | ||
@@ -69,0 +70,0 @@ } |
@@ -13,3 +13,3 @@ /** | ||
import * as runtime from '../runtime'; | ||
import type { GetAttachmentRequest } from '../models/index'; | ||
import type { GetAttachmentRequest, GetAttachmentResponse } from '../models/index'; | ||
export interface GetAttachmentOperationRequest { | ||
@@ -26,3 +26,3 @@ getAttachmentRequest?: GetAttachmentRequest; | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* @summary Get Attachment | ||
@@ -34,8 +34,8 @@ * @param {GetAttachmentRequest} [getAttachmentRequest] | ||
*/ | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>; | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>; | ||
} | ||
@@ -47,11 +47,11 @@ /** | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>; | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>; | ||
} |
@@ -24,3 +24,3 @@ /* tslint:disable */ | ||
import * as runtime from '../runtime'; | ||
import { GetAttachmentRequestToJSON, } from '../models/index'; | ||
import { GetAttachmentRequestToJSON, GetAttachmentResponseFromJSON, } from '../models/index'; | ||
/** | ||
@@ -31,3 +31,3 @@ * | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
@@ -54,7 +54,7 @@ */ | ||
}, initOverrides); | ||
return new runtime.VoidApiResponse(response); | ||
return new runtime.JSONApiResponse(response, (jsonValue) => GetAttachmentResponseFromJSON(jsonValue)); | ||
}); | ||
} | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
@@ -64,5 +64,6 @@ */ | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.getAttachmentRaw({ getAttachmentRequest: getAttachmentRequest }, initOverrides); | ||
const response = yield this.getAttachmentRaw({ getAttachmentRequest: getAttachmentRequest }, initOverrides); | ||
return yield response.value(); | ||
}); | ||
} | ||
} |
@@ -14,3 +14,3 @@ /** | ||
import type { PersonData } from './PersonData'; | ||
import type { Attachments } from './Attachments'; | ||
import type { AttachmentAccessKeys } from './AttachmentAccessKeys'; | ||
/** | ||
@@ -41,7 +41,7 @@ * | ||
/** | ||
* Access keys for attachments (eg document/selfie images) | ||
* @type {Attachments} | ||
* Attachment Access Keys for attachments (eg document / selfie images) | ||
* @type {AttachmentAccessKeys} | ||
* @memberof IdentityData | ||
*/ | ||
attachments?: Attachments; | ||
attachmentAccessKeys?: AttachmentAccessKeys; | ||
} | ||
@@ -48,0 +48,0 @@ /** |
@@ -16,3 +16,3 @@ /* tslint:disable */ | ||
import { PersonDataFromJSON, PersonDataToJSON, } from './PersonData'; | ||
import { AttachmentsFromJSON, AttachmentsToJSON, } from './Attachments'; | ||
import { AttachmentAccessKeysFromJSON, AttachmentAccessKeysToJSON, } from './AttachmentAccessKeys'; | ||
/** | ||
@@ -35,3 +35,3 @@ * Check if a given object implements the IdentityData interface. | ||
'document': json['document'] == null ? undefined : DocumentDataFromJSON(json['document']), | ||
'attachments': json['attachments'] == null ? undefined : AttachmentsFromJSON(json['attachments']), | ||
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : AttachmentAccessKeysFromJSON(json['attachmentAccessKeys']), | ||
}; | ||
@@ -47,4 +47,4 @@ } | ||
'document': DocumentDataToJSON(value['document']), | ||
'attachments': AttachmentsToJSON(value['attachments']), | ||
'attachmentAccessKeys': AttachmentAccessKeysToJSON(value['attachmentAccessKeys']), | ||
}; | ||
} |
export * from './Address'; | ||
export * from './Attachments'; | ||
export * from './AttachmentAccessKeys'; | ||
export * from './CancelSessionResponse'; | ||
@@ -11,2 +11,3 @@ export * from './CreateSessionRequest'; | ||
export * from './GetAttachmentRequest'; | ||
export * from './GetAttachmentResponse'; | ||
export * from './GetSessionResponse'; | ||
@@ -13,0 +14,0 @@ export * from './GetSessionResultRequest'; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export * from './Address'; | ||
export * from './Attachments'; | ||
export * from './AttachmentAccessKeys'; | ||
export * from './CancelSessionResponse'; | ||
@@ -13,2 +13,3 @@ export * from './CreateSessionRequest'; | ||
export * from './GetAttachmentRequest'; | ||
export * from './GetAttachmentResponse'; | ||
export * from './GetSessionResponse'; | ||
@@ -15,0 +16,0 @@ export * from './GetSessionResultRequest'; |
@@ -14,3 +14,3 @@ /** | ||
import type { PersonData } from './PersonData'; | ||
import type { Attachments } from './Attachments'; | ||
import type { AttachmentAccessKeys } from './AttachmentAccessKeys'; | ||
/** | ||
@@ -41,7 +41,7 @@ * | ||
/** | ||
* Access keys for attachments (eg document/selfie images) | ||
* @type {Attachments} | ||
* Attachment Access Keys for attachments (eg document / selfie images) | ||
* @type {AttachmentAccessKeys} | ||
* @memberof IdentityData | ||
*/ | ||
attachments?: Attachments; | ||
attachmentAccessKeys?: AttachmentAccessKeys; | ||
} | ||
@@ -48,0 +48,0 @@ /** |
@@ -22,3 +22,3 @@ "use strict"; | ||
const PersonData_1 = require("./PersonData"); | ||
const Attachments_1 = require("./Attachments"); | ||
const AttachmentAccessKeys_1 = require("./AttachmentAccessKeys"); | ||
/** | ||
@@ -41,3 +41,3 @@ * Check if a given object implements the IdentityData interface. | ||
'document': json['document'] == null ? undefined : (0, DocumentData_1.DocumentDataFromJSON)(json['document']), | ||
'attachments': json['attachments'] == null ? undefined : (0, Attachments_1.AttachmentsFromJSON)(json['attachments']), | ||
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : (0, AttachmentAccessKeys_1.AttachmentAccessKeysFromJSON)(json['attachmentAccessKeys']), | ||
}; | ||
@@ -53,4 +53,4 @@ } | ||
'document': (0, DocumentData_1.DocumentDataToJSON)(value['document']), | ||
'attachments': (0, Attachments_1.AttachmentsToJSON)(value['attachments']), | ||
'attachmentAccessKeys': (0, AttachmentAccessKeys_1.AttachmentAccessKeysToJSON)(value['attachmentAccessKeys']), | ||
}; | ||
} |
export * from './Address'; | ||
export * from './Attachments'; | ||
export * from './AttachmentAccessKeys'; | ||
export * from './CancelSessionResponse'; | ||
@@ -11,2 +11,3 @@ export * from './CreateSessionRequest'; | ||
export * from './GetAttachmentRequest'; | ||
export * from './GetAttachmentResponse'; | ||
export * from './GetSessionResponse'; | ||
@@ -13,0 +14,0 @@ export * from './GetSessionResultRequest'; |
@@ -20,3 +20,3 @@ "use strict"; | ||
__exportStar(require("./Address"), exports); | ||
__exportStar(require("./Attachments"), exports); | ||
__exportStar(require("./AttachmentAccessKeys"), exports); | ||
__exportStar(require("./CancelSessionResponse"), exports); | ||
@@ -30,2 +30,3 @@ __exportStar(require("./CreateSessionRequest"), exports); | ||
__exportStar(require("./GetAttachmentRequest"), exports); | ||
__exportStar(require("./GetAttachmentResponse"), exports); | ||
__exportStar(require("./GetSessionResponse"), exports); | ||
@@ -32,0 +33,0 @@ __exportStar(require("./GetSessionResultRequest"), exports); |
{ | ||
"name": "@trinsic/api", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Trinsic API TypeScript library.", | ||
@@ -5,0 +5,0 @@ "author": "Trinsic", |
@@ -6,4 +6,3 @@ # Trinsic API TypeScript Library | ||
The Trinsic API TypeScript library provides convenient access to the Trinsic API from | ||
applications written in server-side JavaScript/TypeScript. | ||
The Trinsic API TypeScript library provides convenient access to the Trinsic API from applications written in server-side JavaScript/TypeScript. | ||
@@ -40,12 +39,14 @@ ## Documentation | ||
You can find a full TS server example in the [samples](https://github.com/trinsic-id/sdk/tree/main/api-typescript/samples) folder. | ||
You can find a full TypeScript server example in the [samples](https://github.com/trinsic-id/sdk/tree/main/api-typescript/samples) folder. | ||
## SDK Versioning | ||
Trinsic follows a Semantic Versioning (SemVer) process where all releases will have a version X.Y.Z (like 1.0.0) pattern wherein Z would be a bug fix (e.g., 1.0.1), Y would be a minor release (1.1.0) and X would be a major release (2.0.0). We permit any breaking changes to only be released in major versions and strongly recommend reading changelogs before making any major version upgrades. | ||
var configuration = new Configuration { AccessToken = "your-access-token" }; | ||
var attachments = new AttachmentsApi(configuration); | ||
var network = new NetworkApi(configuration); | ||
var sessions = new SessionsApi(configuration); | ||
## Support | ||
New features and bug fixes are released on the latest major version of the package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates. | ||
Any issues, inquiries, and feature requests can be sent to [support@trinsic.id](mailto:support@trinsic.id), or feel free to open a GitHub issue [here](https://github.com/trinsic-id/sdk/issues). | ||
@@ -56,4 +57,4 @@ | ||
- [API Reference](https://docs.trinsic.id/reference) | ||
- [Developer Guide](https://github.com/stripe/stripe-node/wiki/Passing-Options) | ||
- [Developer Guide](https://docs.trinsic.id/docs/developer-tools) | ||
- [Our Blog](https://trinsic.id/blog/) | ||
- [Schedule a demo](https://trinsic.id/contact/) |
@@ -20,2 +20,3 @@ /* tslint:disable */ | ||
GetAttachmentRequest, | ||
GetAttachmentResponse, | ||
ValidationResult, | ||
@@ -28,2 +29,4 @@ } from '../models/index'; | ||
GetAttachmentRequestToJSON, | ||
GetAttachmentResponseFromJSON, | ||
GetAttachmentResponseToJSON, | ||
ValidationResultFromJSON, | ||
@@ -45,3 +48,3 @@ ValidationResultToJSON, | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* @summary Get Attachment | ||
@@ -53,9 +56,9 @@ * @param {GetAttachmentRequest} [getAttachmentRequest] | ||
*/ | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>; | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>; | ||
@@ -70,6 +73,6 @@ } | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
async getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> { | ||
async getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>> { | ||
const queryParameters: any = {}; | ||
@@ -97,13 +100,14 @@ | ||
return new runtime.VoidApiResponse(response); | ||
return new runtime.JSONApiResponse(response, (jsonValue) => GetAttachmentResponseFromJSON(jsonValue)); | ||
} | ||
/** | ||
* 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. | ||
* 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 503 code, and you should try again later. | ||
* Get Attachment | ||
*/ | ||
async getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> { | ||
await this.getAttachmentRaw({ getAttachmentRequest: getAttachmentRequest }, initOverrides); | ||
async getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse> { | ||
const response = await this.getAttachmentRaw({ getAttachmentRequest: getAttachmentRequest }, initOverrides); | ||
return await response.value(); | ||
} | ||
} |
@@ -28,8 +28,8 @@ /* tslint:disable */ | ||
} from './PersonData'; | ||
import type { Attachments } from './Attachments'; | ||
import type { AttachmentAccessKeys } from './AttachmentAccessKeys'; | ||
import { | ||
AttachmentsFromJSON, | ||
AttachmentsFromJSONTyped, | ||
AttachmentsToJSON, | ||
} from './Attachments'; | ||
AttachmentAccessKeysFromJSON, | ||
AttachmentAccessKeysFromJSONTyped, | ||
AttachmentAccessKeysToJSON, | ||
} from './AttachmentAccessKeys'; | ||
@@ -61,7 +61,7 @@ /** | ||
/** | ||
* Access keys for attachments (eg document/selfie images) | ||
* @type {Attachments} | ||
* Attachment Access Keys for attachments (eg document / selfie images) | ||
* @type {AttachmentAccessKeys} | ||
* @memberof IdentityData | ||
*/ | ||
attachments?: Attachments; | ||
attachmentAccessKeys?: AttachmentAccessKeys; | ||
} | ||
@@ -89,3 +89,3 @@ | ||
'document': json['document'] == null ? undefined : DocumentDataFromJSON(json['document']), | ||
'attachments': json['attachments'] == null ? undefined : AttachmentsFromJSON(json['attachments']), | ||
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : AttachmentAccessKeysFromJSON(json['attachmentAccessKeys']), | ||
}; | ||
@@ -103,5 +103,5 @@ } | ||
'document': DocumentDataToJSON(value['document']), | ||
'attachments': AttachmentsToJSON(value['attachments']), | ||
'attachmentAccessKeys': AttachmentAccessKeysToJSON(value['attachmentAccessKeys']), | ||
}; | ||
} | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export * from './Address'; | ||
export * from './Attachments'; | ||
export * from './AttachmentAccessKeys'; | ||
export * from './CancelSessionResponse'; | ||
@@ -13,2 +13,3 @@ export * from './CreateSessionRequest'; | ||
export * from './GetAttachmentRequest'; | ||
export * from './GetAttachmentResponse'; | ||
export * from './GetSessionResponse'; | ||
@@ -15,0 +16,0 @@ export * from './GetSessionResultRequest'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
408709
183
11217
58