@vouchsafe/node 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/openapi/apis/DigitalIDApi.d.ts +73 -0
- package/dist/openapi/apis/DigitalIDApi.d.ts.map +1 -0
- package/dist/openapi/apis/DigitalIDApi.js +189 -0
- package/dist/openapi/apis/DigitalIDApi.js.map +1 -0
- package/dist/openapi/apis/index.d.ts +1 -0
- package/dist/openapi/apis/index.d.ts.map +1 -1
- package/dist/openapi/apis/index.js +1 -0
- package/dist/openapi/apis/index.js.map +1 -1
- package/dist/openapi/models/CreateDigitalIdSessionInput.d.ts +46 -0
- package/dist/openapi/models/CreateDigitalIdSessionInput.d.ts.map +1 -0
- package/dist/openapi/models/CreateDigitalIdSessionInput.js +56 -0
- package/dist/openapi/models/CreateDigitalIdSessionInput.js.map +1 -0
- package/dist/openapi/models/CreateDigitalIdSessionResponse.d.ts +51 -0
- package/dist/openapi/models/CreateDigitalIdSessionResponse.d.ts.map +1 -0
- package/dist/openapi/models/CreateDigitalIdSessionResponse.js +63 -0
- package/dist/openapi/models/CreateDigitalIdSessionResponse.js.map +1 -0
- package/dist/openapi/models/DigitalIdSession.d.ts +91 -0
- package/dist/openapi/models/DigitalIdSession.d.ts.map +1 -0
- package/dist/openapi/models/DigitalIdSession.js +91 -0
- package/dist/openapi/models/DigitalIdSession.js.map +1 -0
- package/dist/openapi/models/DigitalIdSessionStatus.d.ts +33 -0
- package/dist/openapi/models/DigitalIdSessionStatus.d.ts.map +1 -0
- package/dist/openapi/models/DigitalIdSessionStatus.js +59 -0
- package/dist/openapi/models/DigitalIdSessionStatus.js.map +1 -0
- package/dist/openapi/models/EnrichmentCheckResult.d.ts +50 -0
- package/dist/openapi/models/EnrichmentCheckResult.d.ts.map +1 -0
- package/dist/openapi/models/EnrichmentCheckResult.js +64 -0
- package/dist/openapi/models/EnrichmentCheckResult.js.map +1 -0
- package/dist/openapi/models/EnrichmentVerificationReport.d.ts +53 -0
- package/dist/openapi/models/EnrichmentVerificationReport.d.ts.map +1 -0
- package/dist/openapi/models/EnrichmentVerificationReport.js +68 -0
- package/dist/openapi/models/EnrichmentVerificationReport.js.map +1 -0
- package/dist/openapi/models/Enrichments.d.ts +59 -0
- package/dist/openapi/models/Enrichments.d.ts.map +1 -0
- package/dist/openapi/models/Enrichments.js +69 -0
- package/dist/openapi/models/Enrichments.js.map +1 -0
- package/dist/openapi/models/KnownClaims.d.ts +64 -0
- package/dist/openapi/models/KnownClaims.d.ts.map +1 -0
- package/dist/openapi/models/KnownClaims.js +60 -0
- package/dist/openapi/models/KnownClaims.js.map +1 -0
- package/dist/openapi/models/KnownClaimsAddress.d.ts +57 -0
- package/dist/openapi/models/KnownClaimsAddress.d.ts.map +1 -0
- package/dist/openapi/models/KnownClaimsAddress.js +57 -0
- package/dist/openapi/models/KnownClaimsAddress.js.map +1 -0
- package/dist/openapi/models/RadarReason.d.ts +26 -0
- package/dist/openapi/models/RadarReason.d.ts.map +1 -0
- package/dist/openapi/models/RadarReason.js +52 -0
- package/dist/openapi/models/RadarReason.js.map +1 -0
- package/dist/openapi/models/RadarResult.d.ts +48 -0
- package/dist/openapi/models/RadarResult.d.ts.map +1 -0
- package/dist/openapi/models/RadarResult.js +64 -0
- package/dist/openapi/models/RadarResult.js.map +1 -0
- package/dist/openapi/models/VerifiedClaims.d.ts +77 -0
- package/dist/openapi/models/VerifiedClaims.d.ts.map +1 -0
- package/dist/openapi/models/VerifiedClaims.js +65 -0
- package/dist/openapi/models/VerifiedClaims.js.map +1 -0
- package/dist/openapi/models/VerifiedClaimsAddress.d.ts +63 -0
- package/dist/openapi/models/VerifiedClaimsAddress.d.ts.map +1 -0
- package/dist/openapi/models/VerifiedClaimsAddress.js +59 -0
- package/dist/openapi/models/VerifiedClaimsAddress.js.map +1 -0
- package/dist/openapi/models/VerifiedClaimsDocument.d.ts +57 -0
- package/dist/openapi/models/VerifiedClaimsDocument.d.ts.map +1 -0
- package/dist/openapi/models/VerifiedClaimsDocument.js +57 -0
- package/dist/openapi/models/VerifiedClaimsDocument.js.map +1 -0
- package/dist/openapi/models/index.d.ts +14 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +14 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouchsafe API docs
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: help@vouchsafe.id
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreateDigitalIdSessionInput, CreateDigitalIdSessionResponse, DigitalIdSession } from '../models/index';
|
|
14
|
+
export interface CreateSessionRequest {
|
|
15
|
+
createDigitalIdSessionInput: CreateDigitalIdSessionInput;
|
|
16
|
+
}
|
|
17
|
+
export interface GetSessionRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ListSessionsRequest {
|
|
21
|
+
workflowId?: string;
|
|
22
|
+
status?: ListSessionsStatusEnum;
|
|
23
|
+
providerId?: string;
|
|
24
|
+
limit?: number;
|
|
25
|
+
offset?: number;
|
|
26
|
+
createdAfter?: string;
|
|
27
|
+
createdBefore?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare class DigitalIDApi extends runtime.BaseAPI {
|
|
33
|
+
/**
|
|
34
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> Create a new Digital ID verification session. This endpoint initiates a new identity verification session using Digital ID providers. The session will generate a unique URL that can be used to start the verification flow. You can optionally provide known claims about the user (e.g., their email, name, date of birth) to pre-populate the verification form and improve the user experience. The session will expire after a set period if not completed.
|
|
35
|
+
*/
|
|
36
|
+
createSessionRaw(requestParameters: CreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateDigitalIdSessionResponse>>;
|
|
37
|
+
/**
|
|
38
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> Create a new Digital ID verification session. This endpoint initiates a new identity verification session using Digital ID providers. The session will generate a unique URL that can be used to start the verification flow. You can optionally provide known claims about the user (e.g., their email, name, date of birth) to pre-populate the verification form and improve the user experience. The session will expire after a set period if not completed.
|
|
39
|
+
*/
|
|
40
|
+
createSession(requestParameters: CreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateDigitalIdSessionResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> Get a Digital ID verification session by ID. Retrieve details of a specific Digital ID verification session. Returns the session status, verified claims, enrichments (including Radar risk assessment and smart lookup results), and other session metadata. The `enrichments` field will be `null` until the session reaches `completed` status. Returns a 404 error if the session does not exist or does not belong to your team.
|
|
43
|
+
*/
|
|
44
|
+
getSessionRaw(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DigitalIdSession>>;
|
|
45
|
+
/**
|
|
46
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> Get a Digital ID verification session by ID. Retrieve details of a specific Digital ID verification session. Returns the session status, verified claims, enrichments (including Radar risk assessment and smart lookup results), and other session metadata. The `enrichments` field will be `null` until the session reaches `completed` status. Returns a 404 error if the session does not exist or does not belong to your team.
|
|
47
|
+
*/
|
|
48
|
+
getSession(requestParameters: GetSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DigitalIdSession>;
|
|
49
|
+
/**
|
|
50
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> List Digital ID verification sessions. Retrieve a list of Digital ID verification sessions for your team. You can filter sessions by workflow, status, provider, or creation date. Each session includes verified claims and enrichments (Radar risk assessment and smart lookup results) when available. The `enrichments` field will be `null` for sessions that haven\'t completed. Use pagination parameters (`limit` and `offset`) to page through large result sets.
|
|
51
|
+
*/
|
|
52
|
+
listSessionsRaw(requestParameters: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DigitalIdSession>>>;
|
|
53
|
+
/**
|
|
54
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> List Digital ID verification sessions. Retrieve a list of Digital ID verification sessions for your team. You can filter sessions by workflow, status, provider, or creation date. Each session includes verified claims and enrichments (Radar risk assessment and smart lookup results) when available. The `enrichments` field will be `null` for sessions that haven\'t completed. Use pagination parameters (`limit` and `offset`) to page through large result sets.
|
|
55
|
+
*/
|
|
56
|
+
listSessions(requestParameters?: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DigitalIdSession>>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const ListSessionsStatusEnum: {
|
|
62
|
+
readonly Created: "created";
|
|
63
|
+
readonly Started: "started";
|
|
64
|
+
readonly Verifying: "verifying";
|
|
65
|
+
readonly Verified: "verified";
|
|
66
|
+
readonly Enriching: "enriching";
|
|
67
|
+
readonly Completed: "completed";
|
|
68
|
+
readonly Failed: "failed";
|
|
69
|
+
readonly Expired: "expired";
|
|
70
|
+
readonly Cancelled: "cancelled";
|
|
71
|
+
};
|
|
72
|
+
export type ListSessionsStatusEnum = typeof ListSessionsStatusEnum[keyof typeof ListSessionsStatusEnum];
|
|
73
|
+
//# sourceMappingURL=DigitalIDApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DigitalIDApi.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/DigitalIDApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,2BAA2B,EAC3B,8BAA8B,EAC9B,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAYzB,MAAM,WAAW,oBAAoB;IACjC,2BAA2B,EAAE,2BAA2B,CAAC;CAC5D;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IA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G,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;CAKhK;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;CAUzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vouchsafe API docs
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: help@vouchsafe.id
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ListSessionsStatusEnum = exports.DigitalIDApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class DigitalIDApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> Create a new Digital ID verification session. This endpoint initiates a new identity verification session using Digital ID providers. The session will generate a unique URL that can be used to start the verification flow. You can optionally provide known claims about the user (e.g., their email, name, date of birth) to pre-populate the verification form and improve the user experience. The session will expire after a set period if not completed.
|
|
58
|
+
*/
|
|
59
|
+
async createSessionRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['createDigitalIdSessionInput'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('createDigitalIdSessionInput', 'Required parameter "createDigitalIdSessionInput" was null or undefined when calling createSession().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
+
const token = this.configuration.accessToken;
|
|
68
|
+
const tokenString = await token("bearerAuth", []);
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
let urlPath = `/digital-id/sessions`;
|
|
74
|
+
const response = await this.request({
|
|
75
|
+
path: urlPath,
|
|
76
|
+
method: 'POST',
|
|
77
|
+
headers: headerParameters,
|
|
78
|
+
query: queryParameters,
|
|
79
|
+
body: (0, index_1.CreateDigitalIdSessionInputToJSON)(requestParameters['createDigitalIdSessionInput']),
|
|
80
|
+
}, initOverrides);
|
|
81
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateDigitalIdSessionResponseFromJSON)(jsonValue));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> Create a new Digital ID verification session. This endpoint initiates a new identity verification session using Digital ID providers. The session will generate a unique URL that can be used to start the verification flow. You can optionally provide known claims about the user (e.g., their email, name, date of birth) to pre-populate the verification form and improve the user experience. The session will expire after a set period if not completed.
|
|
85
|
+
*/
|
|
86
|
+
async createSession(requestParameters, initOverrides) {
|
|
87
|
+
const response = await this.createSessionRaw(requestParameters, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> Get a Digital ID verification session by ID. Retrieve details of a specific Digital ID verification session. Returns the session status, verified claims, enrichments (including Radar risk assessment and smart lookup results), and other session metadata. The `enrichments` field will be `null` until the session reaches `completed` status. Returns a 404 error if the session does not exist or does not belong to your team.
|
|
92
|
+
*/
|
|
93
|
+
async getSessionRaw(requestParameters, initOverrides) {
|
|
94
|
+
if (requestParameters['id'] == null) {
|
|
95
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSession().');
|
|
96
|
+
}
|
|
97
|
+
const queryParameters = {};
|
|
98
|
+
const headerParameters = {};
|
|
99
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
100
|
+
const token = this.configuration.accessToken;
|
|
101
|
+
const tokenString = await token("bearerAuth", []);
|
|
102
|
+
if (tokenString) {
|
|
103
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
let urlPath = `/digital-id/sessions/{id}`;
|
|
107
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
108
|
+
const response = await this.request({
|
|
109
|
+
path: urlPath,
|
|
110
|
+
method: 'GET',
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters,
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DigitalIdSessionFromJSON)(jsonValue));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> Get a Digital ID verification session by ID. Retrieve details of a specific Digital ID verification session. Returns the session status, verified claims, enrichments (including Radar risk assessment and smart lookup results), and other session metadata. The `enrichments` field will be `null` until the session reaches `completed` status. Returns a 404 error if the session does not exist or does not belong to your team.
|
|
118
|
+
*/
|
|
119
|
+
async getSession(requestParameters, initOverrides) {
|
|
120
|
+
const response = await this.getSessionRaw(requestParameters, initOverrides);
|
|
121
|
+
return await response.value();
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> List Digital ID verification sessions. Retrieve a list of Digital ID verification sessions for your team. You can filter sessions by workflow, status, provider, or creation date. Each session includes verified claims and enrichments (Radar risk assessment and smart lookup results) when available. The `enrichments` field will be `null` for sessions that haven\'t completed. Use pagination parameters (`limit` and `offset`) to page through large result sets.
|
|
125
|
+
*/
|
|
126
|
+
async listSessionsRaw(requestParameters, initOverrides) {
|
|
127
|
+
const queryParameters = {};
|
|
128
|
+
if (requestParameters['workflowId'] != null) {
|
|
129
|
+
queryParameters['workflow_id'] = requestParameters['workflowId'];
|
|
130
|
+
}
|
|
131
|
+
if (requestParameters['status'] != null) {
|
|
132
|
+
queryParameters['status'] = requestParameters['status'];
|
|
133
|
+
}
|
|
134
|
+
if (requestParameters['providerId'] != null) {
|
|
135
|
+
queryParameters['provider_id'] = requestParameters['providerId'];
|
|
136
|
+
}
|
|
137
|
+
if (requestParameters['limit'] != null) {
|
|
138
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['offset'] != null) {
|
|
141
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
142
|
+
}
|
|
143
|
+
if (requestParameters['createdAfter'] != null) {
|
|
144
|
+
queryParameters['created_after'] = requestParameters['createdAfter'];
|
|
145
|
+
}
|
|
146
|
+
if (requestParameters['createdBefore'] != null) {
|
|
147
|
+
queryParameters['created_before'] = requestParameters['createdBefore'];
|
|
148
|
+
}
|
|
149
|
+
const headerParameters = {};
|
|
150
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
151
|
+
const token = this.configuration.accessToken;
|
|
152
|
+
const tokenString = await token("bearerAuth", []);
|
|
153
|
+
if (tokenString) {
|
|
154
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
let urlPath = `/digital-id/sessions`;
|
|
158
|
+
const response = await this.request({
|
|
159
|
+
path: urlPath,
|
|
160
|
+
method: 'GET',
|
|
161
|
+
headers: headerParameters,
|
|
162
|
+
query: queryParameters,
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.DigitalIdSessionFromJSON));
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* <div style=\"background-color: #ffebee; border-left: 4px solid #c62828; padding: 12px 16px; margin: 10px 0;\"> <strong style=\"color: #c62828;\">Experimental:</strong> This feature is brand new. <a href=\"https://vouchsafe.id/contact\">Contact us</a> to set it up. </div> List Digital ID verification sessions. Retrieve a list of Digital ID verification sessions for your team. You can filter sessions by workflow, status, provider, or creation date. Each session includes verified claims and enrichments (Radar risk assessment and smart lookup results) when available. The `enrichments` field will be `null` for sessions that haven\'t completed. Use pagination parameters (`limit` and `offset`) to page through large result sets.
|
|
168
|
+
*/
|
|
169
|
+
async listSessions(requestParameters = {}, initOverrides) {
|
|
170
|
+
const response = await this.listSessionsRaw(requestParameters, initOverrides);
|
|
171
|
+
return await response.value();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
exports.DigitalIDApi = DigitalIDApi;
|
|
175
|
+
/**
|
|
176
|
+
* @export
|
|
177
|
+
*/
|
|
178
|
+
exports.ListSessionsStatusEnum = {
|
|
179
|
+
Created: 'created',
|
|
180
|
+
Started: 'started',
|
|
181
|
+
Verifying: 'verifying',
|
|
182
|
+
Verified: 'verified',
|
|
183
|
+
Enriching: 'enriching',
|
|
184
|
+
Completed: 'completed',
|
|
185
|
+
Failed: 'failed',
|
|
186
|
+
Expired: 'expired',
|
|
187
|
+
Cancelled: 'cancelled'
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=DigitalIDApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DigitalIDApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/DigitalIDApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AAOtC,2CASyB;AAoBzB;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;OAEG;IACH,KAAK,CAAC,gBAAgB,CAAC,iBAAuC,EAAE,aAA0D;QACtH,IAAI,iBAAiB,CAAC,6BAA6B,CAAC,IAAI,IAAI,EAAE,CAAC;YAC3D,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,6BAA6B,EAC7B,sGAAsG,CACzG,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,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,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,gCAAwB,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,oBAAyC,EAAE,EAAE,aAA0D;QACtH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA/JD,oCA+JC;AAED;;GAEG;AACU,QAAA,sBAAsB,GAAG;IAClC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC"}
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AuthenticationApi"), exports);
|
|
20
|
+
__exportStar(require("./DigitalIDApi"), exports);
|
|
20
21
|
__exportStar(require("./FlowsApi"), exports);
|
|
21
22
|
__exportStar(require("./SmartLookupsApi"), exports);
|
|
22
23
|
__exportStar(require("./TeamApi"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,6CAA2B;AAC3B,oDAAkC;AAClC,4CAA0B;AAC1B,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,iDAA+B;AAC/B,6CAA2B;AAC3B,oDAAkC;AAClC,4CAA0B;AAC1B,qDAAmC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouchsafe API docs
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: help@vouchsafe.id
|
|
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 { KnownClaims } from './KnownClaims';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateDigitalIdSessionInput
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateDigitalIdSessionInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {KnownClaims}
|
|
22
|
+
* @memberof CreateDigitalIdSessionInput
|
|
23
|
+
*/
|
|
24
|
+
known_claims?: KnownClaims;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateDigitalIdSessionInput
|
|
29
|
+
*/
|
|
30
|
+
redirect_url?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateDigitalIdSessionInput
|
|
35
|
+
*/
|
|
36
|
+
workflow_id: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CreateDigitalIdSessionInput interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfCreateDigitalIdSessionInput(value: object): value is CreateDigitalIdSessionInput;
|
|
42
|
+
export declare function CreateDigitalIdSessionInputFromJSON(json: any): CreateDigitalIdSessionInput;
|
|
43
|
+
export declare function CreateDigitalIdSessionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDigitalIdSessionInput;
|
|
44
|
+
export declare function CreateDigitalIdSessionInputToJSON(json: any): CreateDigitalIdSessionInput;
|
|
45
|
+
export declare function CreateDigitalIdSessionInputToJSONTyped(value?: CreateDigitalIdSessionInput | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=CreateDigitalIdSessionInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateDigitalIdSessionInput.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/CreateDigitalIdSessionInput.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAGzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAU7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5I"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vouchsafe API docs
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: help@vouchsafe.id
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateDigitalIdSessionInput = instanceOfCreateDigitalIdSessionInput;
|
|
17
|
+
exports.CreateDigitalIdSessionInputFromJSON = CreateDigitalIdSessionInputFromJSON;
|
|
18
|
+
exports.CreateDigitalIdSessionInputFromJSONTyped = CreateDigitalIdSessionInputFromJSONTyped;
|
|
19
|
+
exports.CreateDigitalIdSessionInputToJSON = CreateDigitalIdSessionInputToJSON;
|
|
20
|
+
exports.CreateDigitalIdSessionInputToJSONTyped = CreateDigitalIdSessionInputToJSONTyped;
|
|
21
|
+
const KnownClaims_1 = require("./KnownClaims");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateDigitalIdSessionInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateDigitalIdSessionInput(value) {
|
|
26
|
+
if (!('workflow_id' in value) || value['workflow_id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function CreateDigitalIdSessionInputFromJSON(json) {
|
|
31
|
+
return CreateDigitalIdSessionInputFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function CreateDigitalIdSessionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'known_claims': json['known_claims'] == null ? undefined : (0, KnownClaims_1.KnownClaimsFromJSON)(json['known_claims']),
|
|
39
|
+
'redirect_url': json['redirect_url'] == null ? undefined : json['redirect_url'],
|
|
40
|
+
'workflow_id': json['workflow_id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function CreateDigitalIdSessionInputToJSON(json) {
|
|
44
|
+
return CreateDigitalIdSessionInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function CreateDigitalIdSessionInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'known_claims': (0, KnownClaims_1.KnownClaimsToJSON)(value['known_claims']),
|
|
52
|
+
'redirect_url': value['redirect_url'],
|
|
53
|
+
'workflow_id': value['workflow_id'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=CreateDigitalIdSessionInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateDigitalIdSessionInput.js","sourceRoot":"","sources":["../../../src/openapi/models/CreateDigitalIdSessionInput.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,sFAGC;AAED,kFAEC;AAED,4FAUC;AAED,8EAEC;AAED,wFAWC;AAxED,+CAKuB;AA4BvB;;GAEG;AACH,SAAgB,qCAAqC,CAAC,KAAa;IAC/D,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS,EAAE,mBAA4B;IAC5F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,iCAAmB,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACpG,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;QAC/E,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;KACrC,CAAC;AACN,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,KAA0C,EAAE,sBAA+B,KAAK;IACnI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,cAAc,EAAE,IAAA,+BAAiB,EAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QACxD,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;KACtC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouchsafe API docs
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: help@vouchsafe.id
|
|
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 CreateDigitalIdSessionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateDigitalIdSessionResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateDigitalIdSessionResponse
|
|
22
|
+
*/
|
|
23
|
+
expires_at: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateDigitalIdSessionResponse
|
|
28
|
+
*/
|
|
29
|
+
workflow_id: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateDigitalIdSessionResponse
|
|
34
|
+
*/
|
|
35
|
+
url: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateDigitalIdSessionResponse
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CreateDigitalIdSessionResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCreateDigitalIdSessionResponse(value: object): value is CreateDigitalIdSessionResponse;
|
|
47
|
+
export declare function CreateDigitalIdSessionResponseFromJSON(json: any): CreateDigitalIdSessionResponse;
|
|
48
|
+
export declare function CreateDigitalIdSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDigitalIdSessionResponse;
|
|
49
|
+
export declare function CreateDigitalIdSessionResponseToJSON(json: any): CreateDigitalIdSessionResponse;
|
|
50
|
+
export declare function CreateDigitalIdSessionResponseToJSONTyped(value?: CreateDigitalIdSessionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
//# sourceMappingURL=CreateDigitalIdSessionResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateDigitalIdSessionResponse.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/CreateDigitalIdSessionResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,8BAA8B,CAM/G;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAEhG;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,8BAA8B,CAWnI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAE9F;AAED,wBAAgB,yCAAyC,CAAC,KAAK,CAAC,EAAE,8BAA8B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYlJ"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vouchsafe API docs
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: help@vouchsafe.id
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateDigitalIdSessionResponse = instanceOfCreateDigitalIdSessionResponse;
|
|
17
|
+
exports.CreateDigitalIdSessionResponseFromJSON = CreateDigitalIdSessionResponseFromJSON;
|
|
18
|
+
exports.CreateDigitalIdSessionResponseFromJSONTyped = CreateDigitalIdSessionResponseFromJSONTyped;
|
|
19
|
+
exports.CreateDigitalIdSessionResponseToJSON = CreateDigitalIdSessionResponseToJSON;
|
|
20
|
+
exports.CreateDigitalIdSessionResponseToJSONTyped = CreateDigitalIdSessionResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateDigitalIdSessionResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateDigitalIdSessionResponse(value) {
|
|
25
|
+
if (!('expires_at' in value) || value['expires_at'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('workflow_id' in value) || value['workflow_id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function CreateDigitalIdSessionResponseFromJSON(json) {
|
|
36
|
+
return CreateDigitalIdSessionResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function CreateDigitalIdSessionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'expires_at': json['expires_at'],
|
|
44
|
+
'workflow_id': json['workflow_id'],
|
|
45
|
+
'url': json['url'],
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function CreateDigitalIdSessionResponseToJSON(json) {
|
|
50
|
+
return CreateDigitalIdSessionResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function CreateDigitalIdSessionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'expires_at': value['expires_at'],
|
|
58
|
+
'workflow_id': value['workflow_id'],
|
|
59
|
+
'url': value['url'],
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=CreateDigitalIdSessionResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateDigitalIdSessionResponse.js","sourceRoot":"","sources":["../../../src/openapi/models/CreateDigitalIdSessionResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,4FAMC;AAED,wFAEC;AAED,kGAWC;AAED,oFAEC;AAED,8FAYC;AA5CD;;GAEG;AACH,SAAgB,wCAAwC,CAAC,KAAa;IAClE,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,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