@soliton-id/web-sdk 1.1.2 → 1.3.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.
- package/CHANGELOG.md +33 -0
- package/README.md +74 -7
- package/dist/core.d.ts +47 -0
- package/dist/hostedUrl.d.ts +7 -12
- package/dist/index.cjs +107 -73
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +107 -73
- package/dist/overlay.d.ts +14 -2
- package/dist/server.cjs +19 -1
- package/dist/server.d.ts +13 -0
- package/dist/server.mjs +19 -1
- package/dist/types.d.ts +5 -2
- package/dist/urlCheck.d.ts +23 -0
- package/dist/white-label.cjs +351 -0
- package/dist/white-label.d.ts +63 -0
- package/dist/white-label.mjs +331 -0
- package/package.json +6 -1
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __export = (target, all) => {
|
|
24
|
+
for (var name in all)
|
|
25
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
26
|
+
};
|
|
27
|
+
var __copyProps = (to, from, except, desc) => {
|
|
28
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
29
|
+
for (let key of __getOwnPropNames(from))
|
|
30
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
31
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
32
|
+
}
|
|
33
|
+
return to;
|
|
34
|
+
};
|
|
35
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
|
+
|
|
37
|
+
// sdk/src/white-label.ts
|
|
38
|
+
var white_label_exports = {};
|
|
39
|
+
__export(white_label_exports, {
|
|
40
|
+
default: () => white_label_default,
|
|
41
|
+
open: () => open
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(white_label_exports);
|
|
44
|
+
|
|
45
|
+
// sdk/src/overlay.ts
|
|
46
|
+
var MAX_Z_INDEX = "2147483647";
|
|
47
|
+
var openOverlayCount = 0;
|
|
48
|
+
var savedBodyOverflow = "";
|
|
49
|
+
function createOverlay(iframeSrc, onCloseClick, names) {
|
|
50
|
+
const doc = document;
|
|
51
|
+
const container = doc.createElement("div");
|
|
52
|
+
container.setAttribute(names.marker, "overlay");
|
|
53
|
+
container.style.cssText = [
|
|
54
|
+
"position:fixed",
|
|
55
|
+
"inset:0",
|
|
56
|
+
`z-index:${MAX_Z_INDEX}`,
|
|
57
|
+
"background:#0f110b",
|
|
58
|
+
"display:block"
|
|
59
|
+
].join(";");
|
|
60
|
+
const style = doc.createElement("style");
|
|
61
|
+
style.textContent = `@keyframes ${names.animation}{to{transform:rotate(360deg)}}`;
|
|
62
|
+
container.appendChild(style);
|
|
63
|
+
const loading = doc.createElement("div");
|
|
64
|
+
loading.setAttribute(names.marker, "loading");
|
|
65
|
+
loading.style.cssText = [
|
|
66
|
+
"position:absolute",
|
|
67
|
+
"inset:0",
|
|
68
|
+
"display:flex",
|
|
69
|
+
"flex-direction:column",
|
|
70
|
+
"align-items:center",
|
|
71
|
+
"justify-content:center",
|
|
72
|
+
"gap:14px",
|
|
73
|
+
"color:rgba(255,255,255,0.75)",
|
|
74
|
+
"font:14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif"
|
|
75
|
+
].join(";");
|
|
76
|
+
const spinner = doc.createElement("div");
|
|
77
|
+
spinner.style.cssText = [
|
|
78
|
+
"width:22px",
|
|
79
|
+
"height:22px",
|
|
80
|
+
"border-radius:999px",
|
|
81
|
+
"border:2px solid rgba(255,255,255,0.25)",
|
|
82
|
+
"border-top-color:rgba(255,255,255,0.9)",
|
|
83
|
+
`animation:${names.animation} 0.8s linear infinite`
|
|
84
|
+
].join(";");
|
|
85
|
+
const loadingText = doc.createElement("div");
|
|
86
|
+
loadingText.textContent = "Loading secure verification...";
|
|
87
|
+
loading.appendChild(spinner);
|
|
88
|
+
loading.appendChild(loadingText);
|
|
89
|
+
container.appendChild(loading);
|
|
90
|
+
const iframe = doc.createElement("iframe");
|
|
91
|
+
iframe.setAttribute("allow", "camera; microphone; fullscreen; autoplay");
|
|
92
|
+
iframe.setAttribute("title", names.title);
|
|
93
|
+
iframe.style.cssText = [
|
|
94
|
+
"position:absolute",
|
|
95
|
+
"inset:0",
|
|
96
|
+
"width:100%",
|
|
97
|
+
"height:100%",
|
|
98
|
+
"border:0",
|
|
99
|
+
"display:block"
|
|
100
|
+
].join(";");
|
|
101
|
+
iframe.src = iframeSrc;
|
|
102
|
+
container.appendChild(iframe);
|
|
103
|
+
const closeButton = doc.createElement("button");
|
|
104
|
+
closeButton.type = "button";
|
|
105
|
+
closeButton.setAttribute("aria-label", "Close verification");
|
|
106
|
+
closeButton.textContent = "\xD7";
|
|
107
|
+
closeButton.style.cssText = [
|
|
108
|
+
"position:absolute",
|
|
109
|
+
"top:14px",
|
|
110
|
+
"right:14px",
|
|
111
|
+
"width:36px",
|
|
112
|
+
"height:36px",
|
|
113
|
+
"border-radius:999px",
|
|
114
|
+
"border:1px solid rgba(255,255,255,0.3)",
|
|
115
|
+
"background:rgba(0,0,0,0.45)",
|
|
116
|
+
"color:rgba(255,255,255,0.85)",
|
|
117
|
+
"font:20px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif",
|
|
118
|
+
"cursor:pointer",
|
|
119
|
+
"padding:0"
|
|
120
|
+
].join(";");
|
|
121
|
+
closeButton.addEventListener("click", onCloseClick);
|
|
122
|
+
container.appendChild(closeButton);
|
|
123
|
+
if (openOverlayCount === 0) {
|
|
124
|
+
savedBodyOverflow = doc.body.style.overflow;
|
|
125
|
+
}
|
|
126
|
+
openOverlayCount += 1;
|
|
127
|
+
doc.body.style.overflow = "hidden";
|
|
128
|
+
doc.body.appendChild(container);
|
|
129
|
+
let destroyed = false;
|
|
130
|
+
return {
|
|
131
|
+
iframe,
|
|
132
|
+
markReady() {
|
|
133
|
+
loading.style.display = "none";
|
|
134
|
+
},
|
|
135
|
+
destroy() {
|
|
136
|
+
if (destroyed) return;
|
|
137
|
+
destroyed = true;
|
|
138
|
+
openOverlayCount -= 1;
|
|
139
|
+
if (openOverlayCount === 0) {
|
|
140
|
+
doc.body.style.overflow = savedBodyOverflow;
|
|
141
|
+
}
|
|
142
|
+
if (container.parentNode) container.parentNode.removeChild(container);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// sdk/src/core.ts
|
|
148
|
+
var AUTO_CLOSE_DELAY_MS = 250;
|
|
149
|
+
var HELLO_INTERVAL_MS = 250;
|
|
150
|
+
var HELLO_MAX_PINGS = 40;
|
|
151
|
+
var READY_TIMEOUT_MS = 3e4;
|
|
152
|
+
function openOverlay(options, names, parseUrl) {
|
|
153
|
+
var _a;
|
|
154
|
+
if (!options || typeof options.url !== "string") {
|
|
155
|
+
throw new Error(`${names.errorPrefix} open() requires an options object with a "url"`);
|
|
156
|
+
}
|
|
157
|
+
if (typeof options.onComplete !== "function") {
|
|
158
|
+
throw new Error(`${names.errorPrefix} open() requires an onComplete callback`);
|
|
159
|
+
}
|
|
160
|
+
const { url, hostedOrigin } = parseUrl(options.url, options.verificationOrigin);
|
|
161
|
+
const src = new URL(url.toString());
|
|
162
|
+
src.searchParams.set("mode", "embed");
|
|
163
|
+
src.searchParams.set("sdk", "1");
|
|
164
|
+
for (const [key, value] of (_a = names.params) != null ? _a : []) src.searchParams.set(key, value);
|
|
165
|
+
if (options.locale) src.searchParams.set("locale", options.locale);
|
|
166
|
+
let closed = false;
|
|
167
|
+
let terminalDelivered = false;
|
|
168
|
+
let loadTimedOut = false;
|
|
169
|
+
let autoCloseTimer = null;
|
|
170
|
+
let readyTimer = null;
|
|
171
|
+
const overlay = createOverlay(src.toString(), () => close(), names.overlay);
|
|
172
|
+
let helloPings = 0;
|
|
173
|
+
const postHello = () => {
|
|
174
|
+
var _a2;
|
|
175
|
+
helloPings += 1;
|
|
176
|
+
if (helloPings > HELLO_MAX_PINGS) {
|
|
177
|
+
stopHello();
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
try {
|
|
181
|
+
(_a2 = overlay.iframe.contentWindow) == null ? void 0 : _a2.postMessage(
|
|
182
|
+
{ protocol: names.protocol, type: names.hello },
|
|
183
|
+
hostedOrigin
|
|
184
|
+
);
|
|
185
|
+
} catch (e) {
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
const helloTimer = setInterval(postHello, HELLO_INTERVAL_MS);
|
|
189
|
+
const onIframeLoad = () => postHello();
|
|
190
|
+
overlay.iframe.addEventListener("load", onIframeLoad);
|
|
191
|
+
function stopHello() {
|
|
192
|
+
clearInterval(helloTimer);
|
|
193
|
+
overlay.iframe.removeEventListener("load", onIframeLoad);
|
|
194
|
+
}
|
|
195
|
+
function stopReadyWait() {
|
|
196
|
+
if (readyTimer !== null) clearTimeout(readyTimer);
|
|
197
|
+
readyTimer = null;
|
|
198
|
+
}
|
|
199
|
+
const onMessage = (event) => {
|
|
200
|
+
var _a2;
|
|
201
|
+
if (closed || loadTimedOut || terminalDelivered) return;
|
|
202
|
+
if (event.origin !== hostedOrigin) return;
|
|
203
|
+
if (!overlay.iframe.contentWindow || event.source !== overlay.iframe.contentWindow) {
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
const data = event.data;
|
|
207
|
+
if (!data || typeof data !== "object" || data.protocol !== names.protocol) {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
stopHello();
|
|
211
|
+
switch (data.type) {
|
|
212
|
+
case names.ready:
|
|
213
|
+
stopReadyWait();
|
|
214
|
+
overlay.markReady();
|
|
215
|
+
break;
|
|
216
|
+
case names.complete: {
|
|
217
|
+
if (terminalDelivered) break;
|
|
218
|
+
stopReadyWait();
|
|
219
|
+
terminalDelivered = true;
|
|
220
|
+
autoCloseTimer = setTimeout(() => close(), AUTO_CLOSE_DELAY_MS);
|
|
221
|
+
options.onComplete({
|
|
222
|
+
verificationId: typeof data.verificationId === "string" ? data.verificationId : ""
|
|
223
|
+
});
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
case names.error:
|
|
227
|
+
stopReadyWait();
|
|
228
|
+
(_a2 = options.onError) == null ? void 0 : _a2.call(options, {
|
|
229
|
+
code: typeof data.code === "string" ? data.code : "internal",
|
|
230
|
+
message: typeof data.message === "string" ? data.message : ""
|
|
231
|
+
});
|
|
232
|
+
break;
|
|
233
|
+
case names.close:
|
|
234
|
+
close();
|
|
235
|
+
break;
|
|
236
|
+
default:
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
window.addEventListener("message", onMessage);
|
|
241
|
+
readyTimer = setTimeout(() => {
|
|
242
|
+
var _a2;
|
|
243
|
+
if (readyTimer === null || closed || terminalDelivered) return;
|
|
244
|
+
loadTimedOut = true;
|
|
245
|
+
try {
|
|
246
|
+
(_a2 = options.onError) == null ? void 0 : _a2.call(options, {
|
|
247
|
+
code: "load_timeout",
|
|
248
|
+
message: "Verification did not load. Please try again."
|
|
249
|
+
});
|
|
250
|
+
} finally {
|
|
251
|
+
close();
|
|
252
|
+
}
|
|
253
|
+
}, READY_TIMEOUT_MS);
|
|
254
|
+
function close() {
|
|
255
|
+
var _a2;
|
|
256
|
+
if (closed) return;
|
|
257
|
+
closed = true;
|
|
258
|
+
if (autoCloseTimer !== null) clearTimeout(autoCloseTimer);
|
|
259
|
+
stopReadyWait();
|
|
260
|
+
stopHello();
|
|
261
|
+
window.removeEventListener("message", onMessage);
|
|
262
|
+
overlay.destroy();
|
|
263
|
+
if (!terminalDelivered) (_a2 = options.onClose) == null ? void 0 : _a2.call(options);
|
|
264
|
+
}
|
|
265
|
+
return { close };
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// sdk/src/trustedOrigin.ts
|
|
269
|
+
function trustedOrigin(value) {
|
|
270
|
+
const url = new URL(value);
|
|
271
|
+
const local = ["localhost", "127.0.0.1", "[::1]"].includes(url.hostname);
|
|
272
|
+
if (url.origin !== value || url.username || url.password || value.includes("*") || url.protocol !== "https:" && !(url.protocol === "http:" && local)) {
|
|
273
|
+
throw new Error("Use an exact HTTPS origin (HTTP loopback is allowed for development)");
|
|
274
|
+
}
|
|
275
|
+
return url.origin;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// sdk/src/urlCheck.ts
|
|
279
|
+
var HOSTED_PATH_RE = /^\/v\/[0-9a-f]{32}$/;
|
|
280
|
+
function checkHostedUrl(raw, prefix, configuredOrigin, checkUnconfigured) {
|
|
281
|
+
let url;
|
|
282
|
+
try {
|
|
283
|
+
url = new URL(raw);
|
|
284
|
+
} catch (e) {
|
|
285
|
+
throw new Error(`${prefix} "url" is not a valid absolute URL`);
|
|
286
|
+
}
|
|
287
|
+
if (configuredOrigin !== void 0) {
|
|
288
|
+
if (url.origin !== configuredOrigin) {
|
|
289
|
+
throw new Error(`${prefix} "url" does not match the configured verificationOrigin`);
|
|
290
|
+
}
|
|
291
|
+
} else if (checkUnconfigured) {
|
|
292
|
+
checkUnconfigured(url);
|
|
293
|
+
} else {
|
|
294
|
+
throw new Error(`${prefix} open() requires "verificationOrigin"`);
|
|
295
|
+
}
|
|
296
|
+
if (url.username || url.password) {
|
|
297
|
+
throw new Error(`${prefix} "url" must not embed credentials`);
|
|
298
|
+
}
|
|
299
|
+
if (!HOSTED_PATH_RE.test(url.pathname)) {
|
|
300
|
+
throw new Error(
|
|
301
|
+
`${prefix} "url" does not look like a hosted verification URL (/v/{token})`
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
return { url, hostedOrigin: url.origin };
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// sdk/src/white-label.ts
|
|
308
|
+
var ERROR_PREFIX = "Verification SDK:";
|
|
309
|
+
var DEFAULT_TITLE = "Identity verification";
|
|
310
|
+
var PROTOCOL = "idv-v1";
|
|
311
|
+
var NAMES = {
|
|
312
|
+
protocol: PROTOCOL,
|
|
313
|
+
hello: "idv:hello",
|
|
314
|
+
ready: "idv:ready",
|
|
315
|
+
complete: "idv:complete",
|
|
316
|
+
error: "idv:error",
|
|
317
|
+
close: "idv:close",
|
|
318
|
+
errorPrefix: ERROR_PREFIX,
|
|
319
|
+
overlay: {
|
|
320
|
+
marker: "data-idv-sdk",
|
|
321
|
+
animation: "idv-sdk-spin",
|
|
322
|
+
title: DEFAULT_TITLE
|
|
323
|
+
},
|
|
324
|
+
params: [["embed_protocol", PROTOCOL]]
|
|
325
|
+
};
|
|
326
|
+
function parseVerificationUrl(raw, verificationOrigin) {
|
|
327
|
+
if (typeof verificationOrigin !== "string" || verificationOrigin === "") {
|
|
328
|
+
throw new Error(
|
|
329
|
+
`${ERROR_PREFIX} open() requires "verificationOrigin", the exact origin of your verification host (for example https://verify.example.com)`
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
let configuredOrigin;
|
|
333
|
+
try {
|
|
334
|
+
configuredOrigin = trustedOrigin(verificationOrigin);
|
|
335
|
+
} catch (e) {
|
|
336
|
+
throw new Error(
|
|
337
|
+
`${ERROR_PREFIX} "verificationOrigin" must be an exact HTTPS origin such as https://verify.example.com (HTTP loopback is allowed for development)`
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
return checkHostedUrl(raw, ERROR_PREFIX, configuredOrigin);
|
|
341
|
+
}
|
|
342
|
+
function open(options) {
|
|
343
|
+
const title = options && typeof options.title === "string" && options.title.trim() !== "" ? options.title : DEFAULT_TITLE;
|
|
344
|
+
return openOverlay(
|
|
345
|
+
options,
|
|
346
|
+
__spreadProps(__spreadValues({}, NAMES), { overlay: __spreadProps(__spreadValues({}, NAMES.overlay), { title }) }),
|
|
347
|
+
parseVerificationUrl
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
var verification = { open };
|
|
351
|
+
var white_label_default = verification;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* White-label entry: the same open() as the default entry, for a
|
|
3
|
+
* verification page served on the integrator's own hostname. It has no
|
|
4
|
+
* built-in hosts (verificationOrigin is required and the URL must sit on
|
|
5
|
+
* exactly that origin) and uses neutral names everywhere the host page can
|
|
6
|
+
* see them: the iframe title, the overlay's DOM markers and spinner, thrown
|
|
7
|
+
* error messages, and the idv-v1 postMessage protocol.
|
|
8
|
+
*
|
|
9
|
+
* idv-v1 COMPATIBILITY CONTRACT: the same message shapes as the default
|
|
10
|
+
* protocol, under different names, frozen on the same terms. Parent -> child:
|
|
11
|
+
* { protocol: "idv-v1", type: "idv:hello" }. Child -> parent: idv:ready,
|
|
12
|
+
* idv:complete { verificationId }, idv:error { code, message }, idv:close.
|
|
13
|
+
* The iframe URL also carries embed_protocol=idv-v1 so the hosted page names
|
|
14
|
+
* even a message it sends before any hello arrives. The hosted-page
|
|
15
|
+
* counterpart is app/utils/embedMessaging.ts; keep the two in sync.
|
|
16
|
+
*
|
|
17
|
+
* Keep this module and everything it imports free of the default entry's
|
|
18
|
+
* names: sdk/build.mjs fails the build if its output contains them.
|
|
19
|
+
*/
|
|
20
|
+
export interface VerificationOptions {
|
|
21
|
+
/**
|
|
22
|
+
* Hosted verification URL minted by your backend. Its origin must equal
|
|
23
|
+
* verificationOrigin exactly.
|
|
24
|
+
*/
|
|
25
|
+
url: string;
|
|
26
|
+
/**
|
|
27
|
+
* Required. Exact HTTPS origin of your verification host, for example
|
|
28
|
+
* https://verify.example.com (HTTP loopback is allowed for development).
|
|
29
|
+
* Take it from your integration configuration, never from the URL or any
|
|
30
|
+
* other browser input. Only this origin is framed and trusted.
|
|
31
|
+
*/
|
|
32
|
+
verificationOrigin: string;
|
|
33
|
+
/**
|
|
34
|
+
* Terminal state reached (pass OR final fail; deliberately not
|
|
35
|
+
* distinguished here). Carries only the verification id: confirm the
|
|
36
|
+
* verdict server-side using the ID saved at creation.
|
|
37
|
+
*/
|
|
38
|
+
onComplete: (e: {
|
|
39
|
+
verificationId: string;
|
|
40
|
+
}) => void;
|
|
41
|
+
/** Flow-level errors: link_expired, link_invalid, origin_not_allowed,
|
|
42
|
+
* storage_unavailable, link_unavailable, consent_required, internal,
|
|
43
|
+
* load_timeout. A load_timeout closes the overlay after this callback and
|
|
44
|
+
* invokes onClose, never onComplete. */
|
|
45
|
+
onError?: (e: {
|
|
46
|
+
code: string;
|
|
47
|
+
message: string;
|
|
48
|
+
}) => void;
|
|
49
|
+
/** Flow closed before completion, including an initial load timeout. */
|
|
50
|
+
onClose?: () => void;
|
|
51
|
+
/** Reserved; passed through to the hosted page as a query param. */
|
|
52
|
+
locale?: string;
|
|
53
|
+
/** Accessible title of the iframe. Defaults to "Identity verification". */
|
|
54
|
+
title?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface VerificationHandle {
|
|
57
|
+
close(): void;
|
|
58
|
+
}
|
|
59
|
+
export declare function open(options: VerificationOptions): VerificationHandle;
|
|
60
|
+
declare const verification: {
|
|
61
|
+
open: typeof open;
|
|
62
|
+
};
|
|
63
|
+
export default verification;
|