-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.ts
More file actions
72 lines (65 loc) · 1.68 KB
/
Copy pathindex.ts
File metadata and controls
72 lines (65 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* @worldcoin/idkit-core
* Core bridge logic for IDKit powered by Rust/WASM
* Pure TypeScript - no dependencies
*/
// Main API (IDKit namespace)
export {
// IDKit namespace (main entry point)
IDKit,
// TODO: Re-enable when World ID 4.0 is live
// CredentialRequest,
// any,
// all,
// enumerate,
// Preset helpers
orbLegacy,
secureDocumentLegacy,
documentLegacy,
deviceLegacy,
selfieCheckLegacy,
// Types
type IDKitRequest,
type IDKitCompletionResult,
type WaitOptions,
type RpContext,
type Preset,
type OrbLegacyPreset,
type SecureDocumentLegacyPreset,
type DocumentLegacyPreset,
type DeviceLegacyPreset,
type SelfieCheckLegacyPreset,
} from "./request";
// Config types
export type {
IDKitRequestConfig,
IDKitSessionConfig,
AbiEncodedValue,
} from "./types/config";
// Result types (re-exported from WASM - source of truth in rust/core/src/wasm_bindings.rs)
export type {
// Uniqueness proof response types
IDKitResult,
ResponseItemV4,
ResponseItemV3,
// Session proof response types
ResponseItemSession,
IDKitResultSession,
// Status (includes both action and session confirmed)
Status,
// Shared types
CredentialType,
ConstraintNode,
CredentialRequestType,
} from "./types/result";
// Error codes
export { IDKitErrorCodes } from "./types/result";
export type { IDKitErrorCode } from "./types/result";
// Utilities
export { isReactNative, isWeb, isNode } from "./lib/platform";
export { isInWorldApp } from "./transports/native";
// RP Request Signing (server-side only)
export { signRequest } from "./signing";
export type { RpSignature } from "./signing";
// Hashing utilities
export { hashSignal } from "./lib/hashing";