@siglume/direct-request-payment 0.1.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.
@@ -0,0 +1,235 @@
1
+ declare const DEFAULT_SIGLUME_API_BASE = "https://siglume.com/v1";
2
+ declare const DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME = "siglume-external-402-v1";
3
+ declare const DIRECT_REQUEST_PAYMENT_MODE = "external_402";
4
+ declare const DIRECT_REQUEST_PAYMENT_RECEIPT_KIND = "api_store_direct_payment";
5
+ declare const DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND = "api_store_direct_payment_allowance";
6
+ declare const DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE = "api_store_direct_payment_requirement";
7
+ declare const DEFAULT_WEBHOOK_TOLERANCE_SECONDS = 300;
8
+ type DirectRequestPaymentCurrency = "JPY" | "USD";
9
+ type DirectRequestPaymentToken = "JPYC" | "USDC";
10
+ interface DirectRequestPaymentChallengeInput {
11
+ merchant: string;
12
+ amount_minor: number;
13
+ currency: DirectRequestPaymentCurrency | string;
14
+ secret: string;
15
+ nonce?: string;
16
+ }
17
+ interface DirectRequestPaymentChallenge {
18
+ scheme: typeof DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME;
19
+ merchant: string;
20
+ amount_minor: number;
21
+ currency: DirectRequestPaymentCurrency;
22
+ nonce: string;
23
+ signature: string;
24
+ challenge: string;
25
+ challenge_hash: string;
26
+ }
27
+ interface ParsedDirectRequestPaymentChallenge {
28
+ scheme: string;
29
+ nonce: string;
30
+ signature: string;
31
+ }
32
+ interface Web3TransactionRequest {
33
+ network?: string;
34
+ chain_id?: number;
35
+ from?: string;
36
+ to?: string;
37
+ data?: string;
38
+ value?: string | number;
39
+ metadata_jsonb?: Record<string, unknown>;
40
+ [key: string]: unknown;
41
+ }
42
+ interface DirectPaymentRequirement {
43
+ direct_payment_requirement_id: string;
44
+ requirement_id: string;
45
+ id: string;
46
+ mode: string;
47
+ merchant?: string | null;
48
+ challenge_hash?: string | null;
49
+ buyer_user_id: string;
50
+ agent_id?: string | null;
51
+ product_listing_id: string;
52
+ listing_id: string;
53
+ access_grant_id?: string | null;
54
+ capability_key: string;
55
+ requirement_hash: string;
56
+ request_hash: string;
57
+ siglume_signature: string;
58
+ token_symbol: string;
59
+ currency: string;
60
+ amount_minor: number;
61
+ fee_bps: number;
62
+ status: string;
63
+ expires_at?: string | null;
64
+ confirmed_at?: string | null;
65
+ spent_at?: string | null;
66
+ chain_receipt_id?: string | null;
67
+ transaction_request: Web3TransactionRequest;
68
+ approve_transaction_request?: Web3TransactionRequest | null;
69
+ buyer_confirmation?: string | null;
70
+ non_custodial: boolean;
71
+ metadata_jsonb?: Record<string, unknown>;
72
+ created_at?: string | null;
73
+ updated_at?: string | null;
74
+ }
75
+ interface DirectPaymentRequirementCreateInput {
76
+ merchant: string;
77
+ amount_minor: number;
78
+ currency: DirectRequestPaymentCurrency | string;
79
+ challenge: string;
80
+ token_symbol?: DirectRequestPaymentToken | string;
81
+ allowance_amount_minor?: number;
82
+ metadata?: Record<string, unknown>;
83
+ }
84
+ interface DirectPaymentVerifyInput {
85
+ receipt_id?: string | null;
86
+ chain_receipt_id?: string | null;
87
+ await_finality?: boolean;
88
+ await_required_status?: string | null;
89
+ await_timeout_seconds?: number;
90
+ await_poll_seconds?: number;
91
+ }
92
+ interface Web3PreparedTransactionExecutePayload {
93
+ transaction_request: Web3TransactionRequest;
94
+ receipt_kind: string;
95
+ reference_type: typeof DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE;
96
+ reference_id: string;
97
+ metadata?: Record<string, unknown>;
98
+ await_finality?: boolean;
99
+ }
100
+ interface Web3PreparedTransactionExecuteResult {
101
+ receipt?: Record<string, unknown>;
102
+ finalization?: Record<string, unknown>;
103
+ [key: string]: unknown;
104
+ }
105
+ interface DirectRequestPaymentClientOptions {
106
+ auth_token?: string;
107
+ base_url?: string;
108
+ fetch?: typeof fetch;
109
+ timeout_ms?: number;
110
+ user_agent?: string;
111
+ }
112
+ interface SiglumeEnvelopeMeta {
113
+ request_id?: string | null;
114
+ trace_id?: string | null;
115
+ [key: string]: unknown;
116
+ }
117
+ interface WebhookSignatureVerification {
118
+ timestamp: number;
119
+ signature: string;
120
+ }
121
+ interface DirectRequestPaymentWebhookEvent {
122
+ id: string;
123
+ type: "direct_payment.confirmed" | string;
124
+ api_version: string;
125
+ occurred_at: string;
126
+ data: {
127
+ mode?: string;
128
+ merchant?: string;
129
+ direct_payment_requirement_id?: string;
130
+ requirement_id?: string;
131
+ challenge_hash?: string;
132
+ amount_minor?: number;
133
+ currency?: string;
134
+ token_symbol?: string;
135
+ status?: string;
136
+ [key: string]: unknown;
137
+ };
138
+ [key: string]: unknown;
139
+ }
140
+ declare class SiglumeDirectRequestPaymentError extends Error {
141
+ constructor(message: string);
142
+ }
143
+ declare class SiglumeApiError extends SiglumeDirectRequestPaymentError {
144
+ readonly status: number;
145
+ readonly code: string;
146
+ readonly data: unknown;
147
+ constructor(message: string, options: {
148
+ status: number;
149
+ code?: string;
150
+ data?: unknown;
151
+ });
152
+ }
153
+ declare class SiglumeWebhookSignatureError extends SiglumeDirectRequestPaymentError {
154
+ constructor(message: string);
155
+ }
156
+ declare class SiglumeWebhookPayloadError extends SiglumeDirectRequestPaymentError {
157
+ constructor(message: string);
158
+ }
159
+ declare class DirectRequestPaymentClient {
160
+ readonly auth_token: string;
161
+ readonly base_url: string;
162
+ readonly timeout_ms: number;
163
+ readonly user_agent: string;
164
+ private readonly fetch_impl;
165
+ constructor(options?: DirectRequestPaymentClientOptions);
166
+ createPaymentRequirement(input: DirectPaymentRequirementCreateInput): Promise<DirectPaymentRequirement>;
167
+ getPaymentRequirement(requirement_id: string): Promise<DirectPaymentRequirement>;
168
+ verifyPaymentRequirement(requirement_id: string, input: DirectPaymentVerifyInput): Promise<DirectPaymentRequirement>;
169
+ executePreparedTransaction(payload: Web3PreparedTransactionExecutePayload): Promise<Web3PreparedTransactionExecuteResult>;
170
+ executePaymentTransaction(requirement: DirectPaymentRequirement, options?: {
171
+ await_finality?: boolean;
172
+ metadata?: Record<string, unknown>;
173
+ }): Promise<Web3PreparedTransactionExecuteResult>;
174
+ executeAllowanceTransaction(requirement: DirectPaymentRequirement, options?: {
175
+ await_finality?: boolean;
176
+ metadata?: Record<string, unknown>;
177
+ }): Promise<Web3PreparedTransactionExecuteResult>;
178
+ request<T>(method: string, path: string, json_body?: unknown): Promise<T>;
179
+ }
180
+ declare function createDirectRequestPaymentChallenge(input: DirectRequestPaymentChallengeInput): Promise<DirectRequestPaymentChallenge>;
181
+ declare function createDirectRequestPaymentChallengeSignature(secret: string, input: {
182
+ merchant: string;
183
+ amount_minor: number;
184
+ currency: DirectRequestPaymentCurrency | string;
185
+ nonce: string;
186
+ }): Promise<string>;
187
+ declare function parseDirectRequestPaymentChallenge(challenge: string): ParsedDirectRequestPaymentChallenge;
188
+ declare function verifyDirectRequestPaymentChallenge(secret: string, input: {
189
+ merchant: string;
190
+ amount_minor: number;
191
+ currency: DirectRequestPaymentCurrency | string;
192
+ challenge: string;
193
+ }): Promise<boolean>;
194
+ declare function directRequestPaymentChallengeHash(challenge: string): Promise<string>;
195
+ declare function directRequestPaymentRequestHash(input: {
196
+ merchant: string;
197
+ amount_minor: number;
198
+ currency: DirectRequestPaymentCurrency | string;
199
+ challenge: string;
200
+ }): Promise<string>;
201
+ declare function buildPaymentExecutionPayload(requirement: DirectPaymentRequirement, options?: {
202
+ await_finality?: boolean;
203
+ metadata?: Record<string, unknown>;
204
+ }): Web3PreparedTransactionExecutePayload;
205
+ declare function buildAllowanceExecutionPayload(requirement: DirectPaymentRequirement, options?: {
206
+ await_finality?: boolean;
207
+ metadata?: Record<string, unknown>;
208
+ }): Web3PreparedTransactionExecutePayload;
209
+ declare function buildPreparedTransactionExecutionPayload(requirement: DirectPaymentRequirement, transaction_request: Web3TransactionRequest, options: {
210
+ receipt_kind: string;
211
+ await_finality?: boolean;
212
+ metadata?: Record<string, unknown>;
213
+ }): Web3PreparedTransactionExecutePayload;
214
+ declare function computeWebhookSignature(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, options: {
215
+ timestamp: number;
216
+ }): Promise<string>;
217
+ declare function buildWebhookSignatureHeader(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, options?: {
218
+ timestamp?: number;
219
+ }): Promise<string>;
220
+ declare function verifyWebhookSignature(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, signature_header: string, options?: {
221
+ tolerance_seconds?: number;
222
+ now?: number;
223
+ }): Promise<WebhookSignatureVerification>;
224
+ declare function parseDirectRequestPaymentWebhookEvent(payload: unknown): DirectRequestPaymentWebhookEvent;
225
+ declare function verifyDirectRequestPaymentWebhook(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, signature_header: string, options?: {
226
+ tolerance_seconds?: number;
227
+ now?: number;
228
+ }): Promise<{
229
+ event: DirectRequestPaymentWebhookEvent;
230
+ verification: WebhookSignatureVerification;
231
+ }>;
232
+ declare const createExternal402Challenge: typeof createDirectRequestPaymentChallenge;
233
+ declare const verifyExternal402Challenge: typeof verifyDirectRequestPaymentChallenge;
234
+
235
+ export { DEFAULT_SIGLUME_API_BASE, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND, DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME, DIRECT_REQUEST_PAYMENT_MODE, DIRECT_REQUEST_PAYMENT_RECEIPT_KIND, DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE, type DirectPaymentRequirement, type DirectPaymentRequirementCreateInput, type DirectPaymentVerifyInput, type DirectRequestPaymentChallenge, type DirectRequestPaymentChallengeInput, DirectRequestPaymentClient, type DirectRequestPaymentClientOptions, type DirectRequestPaymentCurrency, type DirectRequestPaymentToken, type DirectRequestPaymentWebhookEvent, type ParsedDirectRequestPaymentChallenge, SiglumeApiError, SiglumeDirectRequestPaymentError, type SiglumeEnvelopeMeta, SiglumeWebhookPayloadError, SiglumeWebhookSignatureError, type Web3PreparedTransactionExecutePayload, type Web3PreparedTransactionExecuteResult, type Web3TransactionRequest, type WebhookSignatureVerification, buildAllowanceExecutionPayload, buildPaymentExecutionPayload, buildPreparedTransactionExecutionPayload, buildWebhookSignatureHeader, computeWebhookSignature, createDirectRequestPaymentChallenge, createDirectRequestPaymentChallengeSignature, createExternal402Challenge, directRequestPaymentChallengeHash, directRequestPaymentRequestHash, parseDirectRequestPaymentChallenge, parseDirectRequestPaymentWebhookEvent, verifyDirectRequestPaymentChallenge, verifyDirectRequestPaymentWebhook, verifyExternal402Challenge, verifyWebhookSignature };
@@ -0,0 +1,235 @@
1
+ declare const DEFAULT_SIGLUME_API_BASE = "https://siglume.com/v1";
2
+ declare const DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME = "siglume-external-402-v1";
3
+ declare const DIRECT_REQUEST_PAYMENT_MODE = "external_402";
4
+ declare const DIRECT_REQUEST_PAYMENT_RECEIPT_KIND = "api_store_direct_payment";
5
+ declare const DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND = "api_store_direct_payment_allowance";
6
+ declare const DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE = "api_store_direct_payment_requirement";
7
+ declare const DEFAULT_WEBHOOK_TOLERANCE_SECONDS = 300;
8
+ type DirectRequestPaymentCurrency = "JPY" | "USD";
9
+ type DirectRequestPaymentToken = "JPYC" | "USDC";
10
+ interface DirectRequestPaymentChallengeInput {
11
+ merchant: string;
12
+ amount_minor: number;
13
+ currency: DirectRequestPaymentCurrency | string;
14
+ secret: string;
15
+ nonce?: string;
16
+ }
17
+ interface DirectRequestPaymentChallenge {
18
+ scheme: typeof DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME;
19
+ merchant: string;
20
+ amount_minor: number;
21
+ currency: DirectRequestPaymentCurrency;
22
+ nonce: string;
23
+ signature: string;
24
+ challenge: string;
25
+ challenge_hash: string;
26
+ }
27
+ interface ParsedDirectRequestPaymentChallenge {
28
+ scheme: string;
29
+ nonce: string;
30
+ signature: string;
31
+ }
32
+ interface Web3TransactionRequest {
33
+ network?: string;
34
+ chain_id?: number;
35
+ from?: string;
36
+ to?: string;
37
+ data?: string;
38
+ value?: string | number;
39
+ metadata_jsonb?: Record<string, unknown>;
40
+ [key: string]: unknown;
41
+ }
42
+ interface DirectPaymentRequirement {
43
+ direct_payment_requirement_id: string;
44
+ requirement_id: string;
45
+ id: string;
46
+ mode: string;
47
+ merchant?: string | null;
48
+ challenge_hash?: string | null;
49
+ buyer_user_id: string;
50
+ agent_id?: string | null;
51
+ product_listing_id: string;
52
+ listing_id: string;
53
+ access_grant_id?: string | null;
54
+ capability_key: string;
55
+ requirement_hash: string;
56
+ request_hash: string;
57
+ siglume_signature: string;
58
+ token_symbol: string;
59
+ currency: string;
60
+ amount_minor: number;
61
+ fee_bps: number;
62
+ status: string;
63
+ expires_at?: string | null;
64
+ confirmed_at?: string | null;
65
+ spent_at?: string | null;
66
+ chain_receipt_id?: string | null;
67
+ transaction_request: Web3TransactionRequest;
68
+ approve_transaction_request?: Web3TransactionRequest | null;
69
+ buyer_confirmation?: string | null;
70
+ non_custodial: boolean;
71
+ metadata_jsonb?: Record<string, unknown>;
72
+ created_at?: string | null;
73
+ updated_at?: string | null;
74
+ }
75
+ interface DirectPaymentRequirementCreateInput {
76
+ merchant: string;
77
+ amount_minor: number;
78
+ currency: DirectRequestPaymentCurrency | string;
79
+ challenge: string;
80
+ token_symbol?: DirectRequestPaymentToken | string;
81
+ allowance_amount_minor?: number;
82
+ metadata?: Record<string, unknown>;
83
+ }
84
+ interface DirectPaymentVerifyInput {
85
+ receipt_id?: string | null;
86
+ chain_receipt_id?: string | null;
87
+ await_finality?: boolean;
88
+ await_required_status?: string | null;
89
+ await_timeout_seconds?: number;
90
+ await_poll_seconds?: number;
91
+ }
92
+ interface Web3PreparedTransactionExecutePayload {
93
+ transaction_request: Web3TransactionRequest;
94
+ receipt_kind: string;
95
+ reference_type: typeof DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE;
96
+ reference_id: string;
97
+ metadata?: Record<string, unknown>;
98
+ await_finality?: boolean;
99
+ }
100
+ interface Web3PreparedTransactionExecuteResult {
101
+ receipt?: Record<string, unknown>;
102
+ finalization?: Record<string, unknown>;
103
+ [key: string]: unknown;
104
+ }
105
+ interface DirectRequestPaymentClientOptions {
106
+ auth_token?: string;
107
+ base_url?: string;
108
+ fetch?: typeof fetch;
109
+ timeout_ms?: number;
110
+ user_agent?: string;
111
+ }
112
+ interface SiglumeEnvelopeMeta {
113
+ request_id?: string | null;
114
+ trace_id?: string | null;
115
+ [key: string]: unknown;
116
+ }
117
+ interface WebhookSignatureVerification {
118
+ timestamp: number;
119
+ signature: string;
120
+ }
121
+ interface DirectRequestPaymentWebhookEvent {
122
+ id: string;
123
+ type: "direct_payment.confirmed" | string;
124
+ api_version: string;
125
+ occurred_at: string;
126
+ data: {
127
+ mode?: string;
128
+ merchant?: string;
129
+ direct_payment_requirement_id?: string;
130
+ requirement_id?: string;
131
+ challenge_hash?: string;
132
+ amount_minor?: number;
133
+ currency?: string;
134
+ token_symbol?: string;
135
+ status?: string;
136
+ [key: string]: unknown;
137
+ };
138
+ [key: string]: unknown;
139
+ }
140
+ declare class SiglumeDirectRequestPaymentError extends Error {
141
+ constructor(message: string);
142
+ }
143
+ declare class SiglumeApiError extends SiglumeDirectRequestPaymentError {
144
+ readonly status: number;
145
+ readonly code: string;
146
+ readonly data: unknown;
147
+ constructor(message: string, options: {
148
+ status: number;
149
+ code?: string;
150
+ data?: unknown;
151
+ });
152
+ }
153
+ declare class SiglumeWebhookSignatureError extends SiglumeDirectRequestPaymentError {
154
+ constructor(message: string);
155
+ }
156
+ declare class SiglumeWebhookPayloadError extends SiglumeDirectRequestPaymentError {
157
+ constructor(message: string);
158
+ }
159
+ declare class DirectRequestPaymentClient {
160
+ readonly auth_token: string;
161
+ readonly base_url: string;
162
+ readonly timeout_ms: number;
163
+ readonly user_agent: string;
164
+ private readonly fetch_impl;
165
+ constructor(options?: DirectRequestPaymentClientOptions);
166
+ createPaymentRequirement(input: DirectPaymentRequirementCreateInput): Promise<DirectPaymentRequirement>;
167
+ getPaymentRequirement(requirement_id: string): Promise<DirectPaymentRequirement>;
168
+ verifyPaymentRequirement(requirement_id: string, input: DirectPaymentVerifyInput): Promise<DirectPaymentRequirement>;
169
+ executePreparedTransaction(payload: Web3PreparedTransactionExecutePayload): Promise<Web3PreparedTransactionExecuteResult>;
170
+ executePaymentTransaction(requirement: DirectPaymentRequirement, options?: {
171
+ await_finality?: boolean;
172
+ metadata?: Record<string, unknown>;
173
+ }): Promise<Web3PreparedTransactionExecuteResult>;
174
+ executeAllowanceTransaction(requirement: DirectPaymentRequirement, options?: {
175
+ await_finality?: boolean;
176
+ metadata?: Record<string, unknown>;
177
+ }): Promise<Web3PreparedTransactionExecuteResult>;
178
+ request<T>(method: string, path: string, json_body?: unknown): Promise<T>;
179
+ }
180
+ declare function createDirectRequestPaymentChallenge(input: DirectRequestPaymentChallengeInput): Promise<DirectRequestPaymentChallenge>;
181
+ declare function createDirectRequestPaymentChallengeSignature(secret: string, input: {
182
+ merchant: string;
183
+ amount_minor: number;
184
+ currency: DirectRequestPaymentCurrency | string;
185
+ nonce: string;
186
+ }): Promise<string>;
187
+ declare function parseDirectRequestPaymentChallenge(challenge: string): ParsedDirectRequestPaymentChallenge;
188
+ declare function verifyDirectRequestPaymentChallenge(secret: string, input: {
189
+ merchant: string;
190
+ amount_minor: number;
191
+ currency: DirectRequestPaymentCurrency | string;
192
+ challenge: string;
193
+ }): Promise<boolean>;
194
+ declare function directRequestPaymentChallengeHash(challenge: string): Promise<string>;
195
+ declare function directRequestPaymentRequestHash(input: {
196
+ merchant: string;
197
+ amount_minor: number;
198
+ currency: DirectRequestPaymentCurrency | string;
199
+ challenge: string;
200
+ }): Promise<string>;
201
+ declare function buildPaymentExecutionPayload(requirement: DirectPaymentRequirement, options?: {
202
+ await_finality?: boolean;
203
+ metadata?: Record<string, unknown>;
204
+ }): Web3PreparedTransactionExecutePayload;
205
+ declare function buildAllowanceExecutionPayload(requirement: DirectPaymentRequirement, options?: {
206
+ await_finality?: boolean;
207
+ metadata?: Record<string, unknown>;
208
+ }): Web3PreparedTransactionExecutePayload;
209
+ declare function buildPreparedTransactionExecutionPayload(requirement: DirectPaymentRequirement, transaction_request: Web3TransactionRequest, options: {
210
+ receipt_kind: string;
211
+ await_finality?: boolean;
212
+ metadata?: Record<string, unknown>;
213
+ }): Web3PreparedTransactionExecutePayload;
214
+ declare function computeWebhookSignature(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, options: {
215
+ timestamp: number;
216
+ }): Promise<string>;
217
+ declare function buildWebhookSignatureHeader(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, options?: {
218
+ timestamp?: number;
219
+ }): Promise<string>;
220
+ declare function verifyWebhookSignature(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, signature_header: string, options?: {
221
+ tolerance_seconds?: number;
222
+ now?: number;
223
+ }): Promise<WebhookSignatureVerification>;
224
+ declare function parseDirectRequestPaymentWebhookEvent(payload: unknown): DirectRequestPaymentWebhookEvent;
225
+ declare function verifyDirectRequestPaymentWebhook(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, signature_header: string, options?: {
226
+ tolerance_seconds?: number;
227
+ now?: number;
228
+ }): Promise<{
229
+ event: DirectRequestPaymentWebhookEvent;
230
+ verification: WebhookSignatureVerification;
231
+ }>;
232
+ declare const createExternal402Challenge: typeof createDirectRequestPaymentChallenge;
233
+ declare const verifyExternal402Challenge: typeof verifyDirectRequestPaymentChallenge;
234
+
235
+ export { DEFAULT_SIGLUME_API_BASE, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND, DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME, DIRECT_REQUEST_PAYMENT_MODE, DIRECT_REQUEST_PAYMENT_RECEIPT_KIND, DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE, type DirectPaymentRequirement, type DirectPaymentRequirementCreateInput, type DirectPaymentVerifyInput, type DirectRequestPaymentChallenge, type DirectRequestPaymentChallengeInput, DirectRequestPaymentClient, type DirectRequestPaymentClientOptions, type DirectRequestPaymentCurrency, type DirectRequestPaymentToken, type DirectRequestPaymentWebhookEvent, type ParsedDirectRequestPaymentChallenge, SiglumeApiError, SiglumeDirectRequestPaymentError, type SiglumeEnvelopeMeta, SiglumeWebhookPayloadError, SiglumeWebhookSignatureError, type Web3PreparedTransactionExecutePayload, type Web3PreparedTransactionExecuteResult, type Web3TransactionRequest, type WebhookSignatureVerification, buildAllowanceExecutionPayload, buildPaymentExecutionPayload, buildPreparedTransactionExecutionPayload, buildWebhookSignatureHeader, computeWebhookSignature, createDirectRequestPaymentChallenge, createDirectRequestPaymentChallengeSignature, createExternal402Challenge, directRequestPaymentChallengeHash, directRequestPaymentRequestHash, parseDirectRequestPaymentChallenge, parseDirectRequestPaymentWebhookEvent, verifyDirectRequestPaymentChallenge, verifyDirectRequestPaymentWebhook, verifyExternal402Challenge, verifyWebhookSignature };