@worldcoin/idkit-core 4.0.7 → 4.0.8
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/README.md +3 -3
- package/dist/idkit_wasm_bg.wasm +0 -0
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,19 +56,19 @@ const request = await IDKit.request({
|
|
|
56
56
|
const qrUrl = request.connectorURI;
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
**Available presets:** `orbLegacy`, `documentLegacy`, `secureDocumentLegacy`, `
|
|
59
|
+
**Available presets:** `orbLegacy`, `documentLegacy`, `secureDocumentLegacy`, `selfieCheckLegacy`
|
|
60
60
|
|
|
61
61
|
Selfie check preset example:
|
|
62
62
|
|
|
63
63
|
```typescript
|
|
64
|
-
import { IDKit,
|
|
64
|
+
import { IDKit, selfieCheckLegacy } from "@worldcoin/idkit-core";
|
|
65
65
|
|
|
66
66
|
const request = await IDKit.request({
|
|
67
67
|
app_id: "app_xxxxx",
|
|
68
68
|
action: "my-action",
|
|
69
69
|
rp_context: rpContext,
|
|
70
70
|
allow_legacy_proofs: false,
|
|
71
|
-
}).preset(
|
|
71
|
+
}).preset(selfieCheckLegacy({ signal: "user-123" }));
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
## Handling the Result
|
package/dist/idkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -392,12 +392,12 @@ function hashSignal(signal) {
|
|
|
392
392
|
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function __wasm_bindgen_func_elem_605(arg0, arg1) {
|
|
396
|
-
wasm.__wasm_bindgen_func_elem_605(arg0, arg1);
|
|
397
|
-
}
|
|
398
395
|
function __wasm_bindgen_func_elem_968(arg0, arg1, arg2) {
|
|
399
396
|
wasm.__wasm_bindgen_func_elem_968(arg0, arg1, addHeapObject(arg2));
|
|
400
397
|
}
|
|
398
|
+
function __wasm_bindgen_func_elem_605(arg0, arg1) {
|
|
399
|
+
wasm.__wasm_bindgen_func_elem_605(arg0, arg1);
|
|
400
|
+
}
|
|
401
401
|
function __wasm_bindgen_func_elem_1353(arg0, arg1, arg2, arg3) {
|
|
402
402
|
wasm.__wasm_bindgen_func_elem_1353(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
403
403
|
}
|
|
@@ -2180,8 +2180,8 @@ function secureDocumentLegacy(opts = {}) {
|
|
|
2180
2180
|
function documentLegacy(opts = {}) {
|
|
2181
2181
|
return { type: "DocumentLegacy", signal: opts.signal };
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2184
|
-
return { type: "
|
|
2183
|
+
function selfieCheckLegacy(opts = {}) {
|
|
2184
|
+
return { type: "SelfieCheckLegacy", signal: opts.signal };
|
|
2185
2185
|
}
|
|
2186
2186
|
function createWasmBuilderFromConfig(config) {
|
|
2187
2187
|
if (!config.rp_context) {
|
|
@@ -2264,7 +2264,7 @@ var IDKitBuilder2 = class {
|
|
|
2264
2264
|
* Presets provide a simplified way to create requests with predefined
|
|
2265
2265
|
* credential configurations.
|
|
2266
2266
|
*
|
|
2267
|
-
* @param preset - A preset object from orbLegacy(), secureDocumentLegacy(), documentLegacy(), or
|
|
2267
|
+
* @param preset - A preset object from orbLegacy(), secureDocumentLegacy(), documentLegacy(), or selfieCheckLegacy()
|
|
2268
2268
|
* @returns A new IDKitRequest instance
|
|
2269
2269
|
*
|
|
2270
2270
|
* @example
|
|
@@ -2341,8 +2341,8 @@ var IDKit = {
|
|
|
2341
2341
|
secureDocumentLegacy,
|
|
2342
2342
|
/** Create a DocumentLegacy preset for World ID 3.0 legacy support */
|
|
2343
2343
|
documentLegacy,
|
|
2344
|
-
/** Create a
|
|
2345
|
-
|
|
2344
|
+
/** Create a SelfieCheckLegacy preset for face verification */
|
|
2345
|
+
selfieCheckLegacy
|
|
2346
2346
|
};
|
|
2347
2347
|
|
|
2348
2348
|
// src/lib/platform.ts
|
|
@@ -2389,4 +2389,4 @@ exports.isReactNative = isReactNative;
|
|
|
2389
2389
|
exports.isWeb = isWeb;
|
|
2390
2390
|
exports.orbLegacy = orbLegacy;
|
|
2391
2391
|
exports.secureDocumentLegacy = secureDocumentLegacy;
|
|
2392
|
-
exports.
|
|
2392
|
+
exports.selfieCheckLegacy = selfieCheckLegacy;
|
package/dist/index.d.cts
CHANGED
|
@@ -84,27 +84,31 @@ type IDKitSessionConfig = {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
interface OrbLegacyPreset {
|
|
87
|
+
/** This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions. */
|
|
87
88
|
type: "OrbLegacy";
|
|
88
89
|
signal?: string;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
interface SecureDocumentLegacyPreset {
|
|
93
|
+
/** This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions. */
|
|
92
94
|
type: "SecureDocumentLegacy";
|
|
93
95
|
signal?: string;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
interface DocumentLegacyPreset {
|
|
99
|
+
/** This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions. */
|
|
97
100
|
type: "DocumentLegacy";
|
|
98
101
|
signal?: string;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
|
-
interface
|
|
104
|
+
interface SelfieCheckLegacyPreset {
|
|
105
|
+
/** This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions. */
|
|
102
106
|
/** Preview: Selfie Check is currently in preview. Contact us if you need it enabled. */
|
|
103
|
-
type: "
|
|
107
|
+
type: "SelfieCheckLegacy";
|
|
104
108
|
signal?: string;
|
|
105
109
|
}
|
|
106
110
|
|
|
107
|
-
type Preset = OrbLegacyPreset | SecureDocumentLegacyPreset | DocumentLegacyPreset |
|
|
111
|
+
type Preset = OrbLegacyPreset | SecureDocumentLegacyPreset | DocumentLegacyPreset | SelfieCheckLegacyPreset;
|
|
108
112
|
|
|
109
113
|
|
|
110
114
|
|
|
@@ -339,8 +343,7 @@ interface IDKitRequest {
|
|
|
339
343
|
/**
|
|
340
344
|
* Creates an OrbLegacy preset for World ID 3.0 legacy support
|
|
341
345
|
*
|
|
342
|
-
* This preset
|
|
343
|
-
* Use this when you need backward compatibility with older World App versions.
|
|
346
|
+
* This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions.
|
|
344
347
|
*
|
|
345
348
|
* @param opts - Optional configuration with signal
|
|
346
349
|
* @returns An OrbLegacy preset
|
|
@@ -357,8 +360,7 @@ declare function orbLegacy(opts?: {
|
|
|
357
360
|
/**
|
|
358
361
|
* Creates a SecureDocumentLegacy preset for World ID 3.0 legacy support
|
|
359
362
|
*
|
|
360
|
-
* This preset
|
|
361
|
-
* Use this when you need backward compatibility with older World App versions.
|
|
363
|
+
* This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions.
|
|
362
364
|
*
|
|
363
365
|
* @param opts - Optional configuration with signal
|
|
364
366
|
* @returns A SecureDocumentLegacy preset
|
|
@@ -375,8 +377,7 @@ declare function secureDocumentLegacy(opts?: {
|
|
|
375
377
|
/**
|
|
376
378
|
* Creates a DocumentLegacy preset for World ID 3.0 legacy support
|
|
377
379
|
*
|
|
378
|
-
* This preset
|
|
379
|
-
* Use this when you need backward compatibility with older World App versions.
|
|
380
|
+
* This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions.
|
|
380
381
|
*
|
|
381
382
|
* @param opts - Optional configuration with signal
|
|
382
383
|
* @returns A DocumentLegacy preset
|
|
@@ -391,26 +392,25 @@ declare function documentLegacy(opts?: {
|
|
|
391
392
|
signal?: string;
|
|
392
393
|
}): DocumentLegacyPreset;
|
|
393
394
|
/**
|
|
394
|
-
* Creates a
|
|
395
|
+
* Creates a SelfieCheckLegacy preset for face verification
|
|
395
396
|
*
|
|
396
397
|
* Preview: Selfie Check is currently in preview.
|
|
397
398
|
* Contact us if you need it enabled.
|
|
398
399
|
*
|
|
399
|
-
* This preset
|
|
400
|
-
* In legacy compatibility fields, it maps to verification level "face".
|
|
400
|
+
* This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions.
|
|
401
401
|
*
|
|
402
402
|
* @param opts - Optional configuration with signal
|
|
403
|
-
* @returns A
|
|
403
|
+
* @returns A SelfieCheckLegacy preset
|
|
404
404
|
*
|
|
405
405
|
* @example
|
|
406
406
|
* ```typescript
|
|
407
407
|
* const request = await IDKit.request({ app_id, action, rp_context, allow_legacy_proofs: false })
|
|
408
|
-
* .preset(
|
|
408
|
+
* .preset(selfieCheckLegacy({ signal: 'user-123' }))
|
|
409
409
|
* ```
|
|
410
410
|
*/
|
|
411
|
-
declare function
|
|
411
|
+
declare function selfieCheckLegacy(opts?: {
|
|
412
412
|
signal?: string;
|
|
413
|
-
}):
|
|
413
|
+
}): SelfieCheckLegacyPreset;
|
|
414
414
|
/**
|
|
415
415
|
* Builder for IDKit requests
|
|
416
416
|
*
|
|
@@ -440,7 +440,7 @@ declare class IDKitBuilder {
|
|
|
440
440
|
* Presets provide a simplified way to create requests with predefined
|
|
441
441
|
* credential configurations.
|
|
442
442
|
*
|
|
443
|
-
* @param preset - A preset object from orbLegacy(), secureDocumentLegacy(), documentLegacy(), or
|
|
443
|
+
* @param preset - A preset object from orbLegacy(), secureDocumentLegacy(), documentLegacy(), or selfieCheckLegacy()
|
|
444
444
|
* @returns A new IDKitRequest instance
|
|
445
445
|
*
|
|
446
446
|
* @example
|
|
@@ -520,8 +520,8 @@ declare const IDKit: {
|
|
|
520
520
|
secureDocumentLegacy: typeof secureDocumentLegacy;
|
|
521
521
|
/** Create a DocumentLegacy preset for World ID 3.0 legacy support */
|
|
522
522
|
documentLegacy: typeof documentLegacy;
|
|
523
|
-
/** Create a
|
|
524
|
-
|
|
523
|
+
/** Create a SelfieCheckLegacy preset for face verification */
|
|
524
|
+
selfieCheckLegacy: typeof selfieCheckLegacy;
|
|
525
525
|
};
|
|
526
526
|
|
|
527
527
|
/**
|
|
@@ -546,4 +546,4 @@ declare const isWeb: () => boolean;
|
|
|
546
546
|
*/
|
|
547
547
|
declare const isNode: () => boolean;
|
|
548
548
|
|
|
549
|
-
export { type AbiEncodedValue, type ConstraintNode, type CredentialRequestType, type CredentialType, type DocumentLegacyPreset, IDKit, type IDKitCompletionResult, type IDKitErrorCode, IDKitErrorCodes, type IDKitRequest, type IDKitRequestConfig, type IDKitResult, type IDKitResultSession, type IDKitSessionConfig, type OrbLegacyPreset, type Preset, type ResponseItemSession, type ResponseItemV3, type ResponseItemV4, type RpContext, type SecureDocumentLegacyPreset, type
|
|
549
|
+
export { type AbiEncodedValue, type ConstraintNode, type CredentialRequestType, type CredentialType, type DocumentLegacyPreset, IDKit, type IDKitCompletionResult, type IDKitErrorCode, IDKitErrorCodes, type IDKitRequest, type IDKitRequestConfig, type IDKitResult, type IDKitResultSession, type IDKitSessionConfig, type OrbLegacyPreset, type Preset, type ResponseItemSession, type ResponseItemV3, type ResponseItemV4, type RpContext, type SecureDocumentLegacyPreset, type SelfieCheckLegacyPreset, type Status$1 as Status, type WaitOptions, documentLegacy, isNode, isReactNative, isWeb, orbLegacy, secureDocumentLegacy, selfieCheckLegacy };
|
package/dist/index.d.ts
CHANGED
|
@@ -84,27 +84,31 @@ type IDKitSessionConfig = {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
interface OrbLegacyPreset {
|
|
87
|
+
/** This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions. */
|
|
87
88
|
type: "OrbLegacy";
|
|
88
89
|
signal?: string;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
interface SecureDocumentLegacyPreset {
|
|
93
|
+
/** This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions. */
|
|
92
94
|
type: "SecureDocumentLegacy";
|
|
93
95
|
signal?: string;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
interface DocumentLegacyPreset {
|
|
99
|
+
/** This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions. */
|
|
97
100
|
type: "DocumentLegacy";
|
|
98
101
|
signal?: string;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
|
-
interface
|
|
104
|
+
interface SelfieCheckLegacyPreset {
|
|
105
|
+
/** This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions. */
|
|
102
106
|
/** Preview: Selfie Check is currently in preview. Contact us if you need it enabled. */
|
|
103
|
-
type: "
|
|
107
|
+
type: "SelfieCheckLegacy";
|
|
104
108
|
signal?: string;
|
|
105
109
|
}
|
|
106
110
|
|
|
107
|
-
type Preset = OrbLegacyPreset | SecureDocumentLegacyPreset | DocumentLegacyPreset |
|
|
111
|
+
type Preset = OrbLegacyPreset | SecureDocumentLegacyPreset | DocumentLegacyPreset | SelfieCheckLegacyPreset;
|
|
108
112
|
|
|
109
113
|
|
|
110
114
|
|
|
@@ -339,8 +343,7 @@ interface IDKitRequest {
|
|
|
339
343
|
/**
|
|
340
344
|
* Creates an OrbLegacy preset for World ID 3.0 legacy support
|
|
341
345
|
*
|
|
342
|
-
* This preset
|
|
343
|
-
* Use this when you need backward compatibility with older World App versions.
|
|
346
|
+
* This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions.
|
|
344
347
|
*
|
|
345
348
|
* @param opts - Optional configuration with signal
|
|
346
349
|
* @returns An OrbLegacy preset
|
|
@@ -357,8 +360,7 @@ declare function orbLegacy(opts?: {
|
|
|
357
360
|
/**
|
|
358
361
|
* Creates a SecureDocumentLegacy preset for World ID 3.0 legacy support
|
|
359
362
|
*
|
|
360
|
-
* This preset
|
|
361
|
-
* Use this when you need backward compatibility with older World App versions.
|
|
363
|
+
* This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions.
|
|
362
364
|
*
|
|
363
365
|
* @param opts - Optional configuration with signal
|
|
364
366
|
* @returns A SecureDocumentLegacy preset
|
|
@@ -375,8 +377,7 @@ declare function secureDocumentLegacy(opts?: {
|
|
|
375
377
|
/**
|
|
376
378
|
* Creates a DocumentLegacy preset for World ID 3.0 legacy support
|
|
377
379
|
*
|
|
378
|
-
* This preset
|
|
379
|
-
* Use this when you need backward compatibility with older World App versions.
|
|
380
|
+
* This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions.
|
|
380
381
|
*
|
|
381
382
|
* @param opts - Optional configuration with signal
|
|
382
383
|
* @returns A DocumentLegacy preset
|
|
@@ -391,26 +392,25 @@ declare function documentLegacy(opts?: {
|
|
|
391
392
|
signal?: string;
|
|
392
393
|
}): DocumentLegacyPreset;
|
|
393
394
|
/**
|
|
394
|
-
* Creates a
|
|
395
|
+
* Creates a SelfieCheckLegacy preset for face verification
|
|
395
396
|
*
|
|
396
397
|
* Preview: Selfie Check is currently in preview.
|
|
397
398
|
* Contact us if you need it enabled.
|
|
398
399
|
*
|
|
399
|
-
* This preset
|
|
400
|
-
* In legacy compatibility fields, it maps to verification level "face".
|
|
400
|
+
* This preset only returns World ID 3.0 proofs. Use it for compatibility with older IDKit versions.
|
|
401
401
|
*
|
|
402
402
|
* @param opts - Optional configuration with signal
|
|
403
|
-
* @returns A
|
|
403
|
+
* @returns A SelfieCheckLegacy preset
|
|
404
404
|
*
|
|
405
405
|
* @example
|
|
406
406
|
* ```typescript
|
|
407
407
|
* const request = await IDKit.request({ app_id, action, rp_context, allow_legacy_proofs: false })
|
|
408
|
-
* .preset(
|
|
408
|
+
* .preset(selfieCheckLegacy({ signal: 'user-123' }))
|
|
409
409
|
* ```
|
|
410
410
|
*/
|
|
411
|
-
declare function
|
|
411
|
+
declare function selfieCheckLegacy(opts?: {
|
|
412
412
|
signal?: string;
|
|
413
|
-
}):
|
|
413
|
+
}): SelfieCheckLegacyPreset;
|
|
414
414
|
/**
|
|
415
415
|
* Builder for IDKit requests
|
|
416
416
|
*
|
|
@@ -440,7 +440,7 @@ declare class IDKitBuilder {
|
|
|
440
440
|
* Presets provide a simplified way to create requests with predefined
|
|
441
441
|
* credential configurations.
|
|
442
442
|
*
|
|
443
|
-
* @param preset - A preset object from orbLegacy(), secureDocumentLegacy(), documentLegacy(), or
|
|
443
|
+
* @param preset - A preset object from orbLegacy(), secureDocumentLegacy(), documentLegacy(), or selfieCheckLegacy()
|
|
444
444
|
* @returns A new IDKitRequest instance
|
|
445
445
|
*
|
|
446
446
|
* @example
|
|
@@ -520,8 +520,8 @@ declare const IDKit: {
|
|
|
520
520
|
secureDocumentLegacy: typeof secureDocumentLegacy;
|
|
521
521
|
/** Create a DocumentLegacy preset for World ID 3.0 legacy support */
|
|
522
522
|
documentLegacy: typeof documentLegacy;
|
|
523
|
-
/** Create a
|
|
524
|
-
|
|
523
|
+
/** Create a SelfieCheckLegacy preset for face verification */
|
|
524
|
+
selfieCheckLegacy: typeof selfieCheckLegacy;
|
|
525
525
|
};
|
|
526
526
|
|
|
527
527
|
/**
|
|
@@ -546,4 +546,4 @@ declare const isWeb: () => boolean;
|
|
|
546
546
|
*/
|
|
547
547
|
declare const isNode: () => boolean;
|
|
548
548
|
|
|
549
|
-
export { type AbiEncodedValue, type ConstraintNode, type CredentialRequestType, type CredentialType, type DocumentLegacyPreset, IDKit, type IDKitCompletionResult, type IDKitErrorCode, IDKitErrorCodes, type IDKitRequest, type IDKitRequestConfig, type IDKitResult, type IDKitResultSession, type IDKitSessionConfig, type OrbLegacyPreset, type Preset, type ResponseItemSession, type ResponseItemV3, type ResponseItemV4, type RpContext, type SecureDocumentLegacyPreset, type
|
|
549
|
+
export { type AbiEncodedValue, type ConstraintNode, type CredentialRequestType, type CredentialType, type DocumentLegacyPreset, IDKit, type IDKitCompletionResult, type IDKitErrorCode, IDKitErrorCodes, type IDKitRequest, type IDKitRequestConfig, type IDKitResult, type IDKitResultSession, type IDKitSessionConfig, type OrbLegacyPreset, type Preset, type ResponseItemSession, type ResponseItemV3, type ResponseItemV4, type RpContext, type SecureDocumentLegacyPreset, type SelfieCheckLegacyPreset, type Status$1 as Status, type WaitOptions, documentLegacy, isNode, isReactNative, isWeb, orbLegacy, secureDocumentLegacy, selfieCheckLegacy };
|
package/dist/index.js
CHANGED
|
@@ -389,12 +389,12 @@ function hashSignal(signal) {
|
|
|
389
389
|
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function __wasm_bindgen_func_elem_605(arg0, arg1) {
|
|
393
|
-
wasm.__wasm_bindgen_func_elem_605(arg0, arg1);
|
|
394
|
-
}
|
|
395
392
|
function __wasm_bindgen_func_elem_968(arg0, arg1, arg2) {
|
|
396
393
|
wasm.__wasm_bindgen_func_elem_968(arg0, arg1, addHeapObject(arg2));
|
|
397
394
|
}
|
|
395
|
+
function __wasm_bindgen_func_elem_605(arg0, arg1) {
|
|
396
|
+
wasm.__wasm_bindgen_func_elem_605(arg0, arg1);
|
|
397
|
+
}
|
|
398
398
|
function __wasm_bindgen_func_elem_1353(arg0, arg1, arg2, arg3) {
|
|
399
399
|
wasm.__wasm_bindgen_func_elem_1353(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
400
400
|
}
|
|
@@ -2177,8 +2177,8 @@ function secureDocumentLegacy(opts = {}) {
|
|
|
2177
2177
|
function documentLegacy(opts = {}) {
|
|
2178
2178
|
return { type: "DocumentLegacy", signal: opts.signal };
|
|
2179
2179
|
}
|
|
2180
|
-
function
|
|
2181
|
-
return { type: "
|
|
2180
|
+
function selfieCheckLegacy(opts = {}) {
|
|
2181
|
+
return { type: "SelfieCheckLegacy", signal: opts.signal };
|
|
2182
2182
|
}
|
|
2183
2183
|
function createWasmBuilderFromConfig(config) {
|
|
2184
2184
|
if (!config.rp_context) {
|
|
@@ -2261,7 +2261,7 @@ var IDKitBuilder2 = class {
|
|
|
2261
2261
|
* Presets provide a simplified way to create requests with predefined
|
|
2262
2262
|
* credential configurations.
|
|
2263
2263
|
*
|
|
2264
|
-
* @param preset - A preset object from orbLegacy(), secureDocumentLegacy(), documentLegacy(), or
|
|
2264
|
+
* @param preset - A preset object from orbLegacy(), secureDocumentLegacy(), documentLegacy(), or selfieCheckLegacy()
|
|
2265
2265
|
* @returns A new IDKitRequest instance
|
|
2266
2266
|
*
|
|
2267
2267
|
* @example
|
|
@@ -2338,8 +2338,8 @@ var IDKit = {
|
|
|
2338
2338
|
secureDocumentLegacy,
|
|
2339
2339
|
/** Create a DocumentLegacy preset for World ID 3.0 legacy support */
|
|
2340
2340
|
documentLegacy,
|
|
2341
|
-
/** Create a
|
|
2342
|
-
|
|
2341
|
+
/** Create a SelfieCheckLegacy preset for face verification */
|
|
2342
|
+
selfieCheckLegacy
|
|
2343
2343
|
};
|
|
2344
2344
|
|
|
2345
2345
|
// src/lib/platform.ts
|
|
@@ -2373,4 +2373,4 @@ function isValidHex(s) {
|
|
|
2373
2373
|
return /^[0-9a-fA-F]+$/.test(s);
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
|
-
export { IDKit, IDKitErrorCodes, documentLegacy, hashSignal2 as hashSignal, isNode, isReactNative, isWeb, orbLegacy, secureDocumentLegacy,
|
|
2376
|
+
export { IDKit, IDKitErrorCodes, documentLegacy, hashSignal2 as hashSignal, isNode, isReactNative, isWeb, orbLegacy, secureDocumentLegacy, selfieCheckLegacy };
|