@aibtc/tx-schemas 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.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +73 -0
  3. package/dist/core/enums.d.ts +161 -0
  4. package/dist/core/enums.d.ts.map +1 -0
  5. package/dist/core/enums.js +98 -0
  6. package/dist/core/enums.js.map +1 -0
  7. package/dist/core/index.d.ts +6 -0
  8. package/dist/core/index.d.ts.map +1 -0
  9. package/dist/core/index.js +6 -0
  10. package/dist/core/index.js.map +1 -0
  11. package/dist/core/payment.d.ts +267 -0
  12. package/dist/core/payment.d.ts.map +1 -0
  13. package/dist/core/payment.js +85 -0
  14. package/dist/core/payment.js.map +1 -0
  15. package/dist/core/primitives.d.ts +11 -0
  16. package/dist/core/primitives.d.ts.map +1 -0
  17. package/dist/core/primitives.js +29 -0
  18. package/dist/core/primitives.js.map +1 -0
  19. package/dist/core/schemas.d.ts +2 -0
  20. package/dist/core/schemas.d.ts.map +1 -0
  21. package/dist/core/schemas.js +2 -0
  22. package/dist/core/schemas.js.map +1 -0
  23. package/dist/core/terminal-reasons.d.ts +154 -0
  24. package/dist/core/terminal-reasons.d.ts.map +1 -0
  25. package/dist/core/terminal-reasons.js +82 -0
  26. package/dist/core/terminal-reasons.js.map +1 -0
  27. package/dist/http/index.d.ts +2 -0
  28. package/dist/http/index.d.ts.map +1 -0
  29. package/dist/http/index.js +2 -0
  30. package/dist/http/index.js.map +1 -0
  31. package/dist/http/schemas.d.ts +424 -0
  32. package/dist/http/schemas.d.ts.map +1 -0
  33. package/dist/http/schemas.js +171 -0
  34. package/dist/http/schemas.js.map +1 -0
  35. package/dist/index.d.ts +4 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +4 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/rpc/index.d.ts +2 -0
  40. package/dist/rpc/index.d.ts.map +1 -0
  41. package/dist/rpc/index.js +2 -0
  42. package/dist/rpc/index.js.map +1 -0
  43. package/dist/rpc/schemas.d.ts +339 -0
  44. package/dist/rpc/schemas.d.ts.map +1 -0
  45. package/dist/rpc/schemas.js +91 -0
  46. package/dist/rpc/schemas.js.map +1 -0
  47. package/docs/package-schemas.md +52 -0
  48. package/docs/x402-approval-spec.md +530 -0
  49. package/docs/x402-state-machines.md +241 -0
  50. package/package.json +101 -0
@@ -0,0 +1,424 @@
1
+ import { z } from "zod";
2
+ export declare const HTTP_SETTLE_ERROR_REASONS: readonly ["invalid_payload", "invalid_payment_requirements", "invalid_network", "unrecognized_asset", "invalid_transaction_state", "recipient_mismatch", "amount_insufficient", "sender_mismatch", "broadcast_failed", "transaction_failed", "unexpected_settle_error", "payment_identifier_conflict"];
3
+ export declare const HttpSettleErrorReasonSchema: z.ZodEnum<{
4
+ invalid_payload: "invalid_payload";
5
+ invalid_payment_requirements: "invalid_payment_requirements";
6
+ invalid_network: "invalid_network";
7
+ unrecognized_asset: "unrecognized_asset";
8
+ invalid_transaction_state: "invalid_transaction_state";
9
+ recipient_mismatch: "recipient_mismatch";
10
+ amount_insufficient: "amount_insufficient";
11
+ sender_mismatch: "sender_mismatch";
12
+ broadcast_failed: "broadcast_failed";
13
+ transaction_failed: "transaction_failed";
14
+ unexpected_settle_error: "unexpected_settle_error";
15
+ payment_identifier_conflict: "payment_identifier_conflict";
16
+ }>;
17
+ export declare const HttpPaymentIdentifierExtensionSchema: z.ZodObject<{
18
+ info: z.ZodObject<{
19
+ id: z.ZodString;
20
+ }, z.core.$strip>;
21
+ }, z.core.$strip>;
22
+ export declare const HttpPaymentPayloadSchema: z.ZodObject<{
23
+ x402Version: z.ZodOptional<z.ZodNumber>;
24
+ accepted: z.ZodOptional<z.ZodObject<{
25
+ scheme: z.ZodString;
26
+ network: z.ZodString;
27
+ amount: z.ZodString;
28
+ asset: z.ZodString;
29
+ payTo: z.ZodString;
30
+ maxTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
31
+ }, z.core.$strip>>;
32
+ resource: z.ZodOptional<z.ZodObject<{
33
+ url: z.ZodString;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ mimeType: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ payload: z.ZodObject<{
38
+ transaction: z.ZodString;
39
+ }, z.core.$strip>;
40
+ extensions: z.ZodOptional<z.ZodObject<{
41
+ "payment-identifier": z.ZodOptional<z.ZodObject<{
42
+ info: z.ZodObject<{
43
+ id: z.ZodString;
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$catchall<z.ZodUnknown>>>;
47
+ }, z.core.$strip>;
48
+ export declare const HttpPaymentRequirementSchema: z.ZodObject<{
49
+ scheme: z.ZodDefault<z.ZodLiteral<"exact">>;
50
+ network: z.ZodString;
51
+ amount: z.ZodString;
52
+ asset: z.ZodString;
53
+ payTo: z.ZodString;
54
+ maxTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
55
+ description: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strip>;
57
+ export declare const HttpPaymentRequiredSchema: z.ZodObject<{
58
+ x402Version: z.ZodNumber;
59
+ error: z.ZodOptional<z.ZodString>;
60
+ resource: z.ZodObject<{
61
+ url: z.ZodString;
62
+ description: z.ZodOptional<z.ZodString>;
63
+ mimeType: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>;
65
+ accepts: z.ZodArray<z.ZodObject<{
66
+ scheme: z.ZodDefault<z.ZodLiteral<"exact">>;
67
+ network: z.ZodString;
68
+ amount: z.ZodString;
69
+ asset: z.ZodString;
70
+ payTo: z.ZodString;
71
+ maxTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
72
+ description: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$strip>>;
74
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
75
+ }, z.core.$strip>;
76
+ export declare const HttpPaymentRequiredBodySchema: z.ZodObject<{
77
+ error: z.ZodString;
78
+ message: z.ZodOptional<z.ZodString>;
79
+ code: z.ZodOptional<z.ZodString>;
80
+ x402: z.ZodObject<{
81
+ x402Version: z.ZodNumber;
82
+ error: z.ZodOptional<z.ZodString>;
83
+ resource: z.ZodObject<{
84
+ url: z.ZodString;
85
+ description: z.ZodOptional<z.ZodString>;
86
+ mimeType: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>;
88
+ accepts: z.ZodArray<z.ZodObject<{
89
+ scheme: z.ZodDefault<z.ZodLiteral<"exact">>;
90
+ network: z.ZodString;
91
+ amount: z.ZodString;
92
+ asset: z.ZodString;
93
+ payTo: z.ZodString;
94
+ maxTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
95
+ description: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strip>>;
97
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
+ }, z.core.$strip>;
99
+ }, z.core.$strip>;
100
+ export declare const HttpSettleRequestSchema: z.ZodObject<{
101
+ x402Version: z.ZodOptional<z.ZodNumber>;
102
+ paymentPayload: z.ZodObject<{
103
+ x402Version: z.ZodOptional<z.ZodNumber>;
104
+ accepted: z.ZodOptional<z.ZodObject<{
105
+ scheme: z.ZodString;
106
+ network: z.ZodString;
107
+ amount: z.ZodString;
108
+ asset: z.ZodString;
109
+ payTo: z.ZodString;
110
+ maxTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
111
+ }, z.core.$strip>>;
112
+ resource: z.ZodOptional<z.ZodObject<{
113
+ url: z.ZodString;
114
+ description: z.ZodOptional<z.ZodString>;
115
+ mimeType: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strip>>;
117
+ payload: z.ZodObject<{
118
+ transaction: z.ZodString;
119
+ }, z.core.$strip>;
120
+ extensions: z.ZodOptional<z.ZodObject<{
121
+ "payment-identifier": z.ZodOptional<z.ZodObject<{
122
+ info: z.ZodObject<{
123
+ id: z.ZodString;
124
+ }, z.core.$strip>;
125
+ }, z.core.$strip>>;
126
+ }, z.core.$catchall<z.ZodUnknown>>>;
127
+ }, z.core.$strip>;
128
+ paymentRequirements: z.ZodObject<{
129
+ scheme: z.ZodDefault<z.ZodLiteral<"exact">>;
130
+ network: z.ZodString;
131
+ amount: z.ZodString;
132
+ asset: z.ZodString;
133
+ payTo: z.ZodString;
134
+ maxTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
135
+ description: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strip>;
137
+ }, z.core.$strip>;
138
+ export declare const HttpQueueInfoSchema: z.ZodObject<{
139
+ status: z.ZodLiteral<"held">;
140
+ senderNonce: z.ZodNumber;
141
+ nextExpectedNonce: z.ZodNumber;
142
+ missingNonces: z.ZodArray<z.ZodNumber>;
143
+ handSize: z.ZodNumber;
144
+ estimatedDispatchMs: z.ZodNullable<z.ZodNumber>;
145
+ expiresAt: z.ZodString;
146
+ help: z.ZodString;
147
+ recentlyExpired: z.ZodOptional<z.ZodObject<{
148
+ nonces: z.ZodArray<z.ZodNumber>;
149
+ expiredAt: z.ZodString;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>;
152
+ export declare const HttpSettleSuccessResponseSchema: z.ZodObject<{
153
+ success: z.ZodLiteral<true>;
154
+ transaction: z.ZodString;
155
+ network: z.ZodString;
156
+ payer: z.ZodOptional<z.ZodString>;
157
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
158
+ }, z.core.$strip>;
159
+ export declare const HttpSettleFailureResponseSchema: z.ZodObject<{
160
+ success: z.ZodLiteral<false>;
161
+ errorReason: z.ZodEnum<{
162
+ invalid_payload: "invalid_payload";
163
+ invalid_payment_requirements: "invalid_payment_requirements";
164
+ invalid_network: "invalid_network";
165
+ unrecognized_asset: "unrecognized_asset";
166
+ invalid_transaction_state: "invalid_transaction_state";
167
+ recipient_mismatch: "recipient_mismatch";
168
+ amount_insufficient: "amount_insufficient";
169
+ sender_mismatch: "sender_mismatch";
170
+ broadcast_failed: "broadcast_failed";
171
+ transaction_failed: "transaction_failed";
172
+ unexpected_settle_error: "unexpected_settle_error";
173
+ payment_identifier_conflict: "payment_identifier_conflict";
174
+ }>;
175
+ transaction: z.ZodString;
176
+ network: z.ZodString;
177
+ payer: z.ZodOptional<z.ZodString>;
178
+ queue: z.ZodOptional<z.ZodObject<{
179
+ status: z.ZodLiteral<"held">;
180
+ senderNonce: z.ZodNumber;
181
+ nextExpectedNonce: z.ZodNumber;
182
+ missingNonces: z.ZodArray<z.ZodNumber>;
183
+ handSize: z.ZodNumber;
184
+ estimatedDispatchMs: z.ZodNullable<z.ZodNumber>;
185
+ expiresAt: z.ZodString;
186
+ help: z.ZodString;
187
+ recentlyExpired: z.ZodOptional<z.ZodObject<{
188
+ nonces: z.ZodArray<z.ZodNumber>;
189
+ expiredAt: z.ZodString;
190
+ }, z.core.$strip>>;
191
+ }, z.core.$strip>>;
192
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
193
+ }, z.core.$strip>;
194
+ export declare const HttpSettleResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
195
+ success: z.ZodLiteral<true>;
196
+ transaction: z.ZodString;
197
+ network: z.ZodString;
198
+ payer: z.ZodOptional<z.ZodString>;
199
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ success: z.ZodLiteral<false>;
202
+ errorReason: z.ZodEnum<{
203
+ invalid_payload: "invalid_payload";
204
+ invalid_payment_requirements: "invalid_payment_requirements";
205
+ invalid_network: "invalid_network";
206
+ unrecognized_asset: "unrecognized_asset";
207
+ invalid_transaction_state: "invalid_transaction_state";
208
+ recipient_mismatch: "recipient_mismatch";
209
+ amount_insufficient: "amount_insufficient";
210
+ sender_mismatch: "sender_mismatch";
211
+ broadcast_failed: "broadcast_failed";
212
+ transaction_failed: "transaction_failed";
213
+ unexpected_settle_error: "unexpected_settle_error";
214
+ payment_identifier_conflict: "payment_identifier_conflict";
215
+ }>;
216
+ transaction: z.ZodString;
217
+ network: z.ZodString;
218
+ payer: z.ZodOptional<z.ZodString>;
219
+ queue: z.ZodOptional<z.ZodObject<{
220
+ status: z.ZodLiteral<"held">;
221
+ senderNonce: z.ZodNumber;
222
+ nextExpectedNonce: z.ZodNumber;
223
+ missingNonces: z.ZodArray<z.ZodNumber>;
224
+ handSize: z.ZodNumber;
225
+ estimatedDispatchMs: z.ZodNullable<z.ZodNumber>;
226
+ expiresAt: z.ZodString;
227
+ help: z.ZodString;
228
+ recentlyExpired: z.ZodOptional<z.ZodObject<{
229
+ nonces: z.ZodArray<z.ZodNumber>;
230
+ expiredAt: z.ZodString;
231
+ }, z.core.$strip>>;
232
+ }, z.core.$strip>>;
233
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
234
+ }, z.core.$strip>], "success">;
235
+ export declare const HttpVerifyResponseSchema: z.ZodObject<{
236
+ isValid: z.ZodBoolean;
237
+ invalidReason: z.ZodOptional<z.ZodEnum<{
238
+ invalid_payload: "invalid_payload";
239
+ invalid_payment_requirements: "invalid_payment_requirements";
240
+ invalid_network: "invalid_network";
241
+ unrecognized_asset: "unrecognized_asset";
242
+ invalid_transaction_state: "invalid_transaction_state";
243
+ recipient_mismatch: "recipient_mismatch";
244
+ amount_insufficient: "amount_insufficient";
245
+ sender_mismatch: "sender_mismatch";
246
+ }>>;
247
+ payer: z.ZodOptional<z.ZodString>;
248
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
249
+ }, z.core.$strip>;
250
+ export declare const HttpSupportedKindSchema: z.ZodObject<{
251
+ x402Version: z.ZodNumber;
252
+ scheme: z.ZodString;
253
+ network: z.ZodString;
254
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
255
+ }, z.core.$strip>;
256
+ export declare const HttpSupportedResponseSchema: z.ZodObject<{
257
+ kinds: z.ZodArray<z.ZodObject<{
258
+ x402Version: z.ZodNumber;
259
+ scheme: z.ZodString;
260
+ network: z.ZodString;
261
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
262
+ }, z.core.$strip>>;
263
+ extensions: z.ZodArray<z.ZodString>;
264
+ signers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
265
+ }, z.core.$strip>;
266
+ export declare const HttpPaymentStatusResponseSchema: z.ZodObject<{
267
+ paymentId: z.ZodString;
268
+ status: z.ZodEnum<{
269
+ submitted: "submitted";
270
+ queued: "queued";
271
+ broadcasting: "broadcasting";
272
+ mempool: "mempool";
273
+ confirmed: "confirmed";
274
+ failed: "failed";
275
+ replaced: "replaced";
276
+ not_found: "not_found";
277
+ }>;
278
+ txid: z.ZodOptional<z.ZodString>;
279
+ blockHeight: z.ZodOptional<z.ZodNumber>;
280
+ confirmedAt: z.ZodOptional<z.ZodString>;
281
+ explorerUrl: z.ZodOptional<z.ZodString>;
282
+ error: z.ZodOptional<z.ZodString>;
283
+ errorCode: z.ZodOptional<z.ZodString>;
284
+ retryable: z.ZodOptional<z.ZodBoolean>;
285
+ checkStatusUrl: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strip>;
287
+ export declare const HttpErrorResponseSchema: z.ZodObject<{
288
+ error: z.ZodString;
289
+ code: z.ZodOptional<z.ZodString>;
290
+ retryable: z.ZodOptional<z.ZodBoolean>;
291
+ hint: z.ZodOptional<z.ZodString>;
292
+ }, z.core.$strip>;
293
+ export type HttpSettleRequest = z.infer<typeof HttpSettleRequestSchema>;
294
+ export type HttpSettleResponse = z.infer<typeof HttpSettleResponseSchema>;
295
+ export type HttpVerifyResponse = z.infer<typeof HttpVerifyResponseSchema>;
296
+ export type HttpSupportedResponse = z.infer<typeof HttpSupportedResponseSchema>;
297
+ export type HttpPaymentStatusResponse = z.infer<typeof HttpPaymentStatusResponseSchema>;
298
+ export type HttpErrorResponse = z.infer<typeof HttpErrorResponseSchema>;
299
+ export declare const SettleHttpRequestSchema: z.ZodObject<{
300
+ x402Version: z.ZodOptional<z.ZodNumber>;
301
+ paymentPayload: z.ZodObject<{
302
+ x402Version: z.ZodOptional<z.ZodNumber>;
303
+ accepted: z.ZodOptional<z.ZodObject<{
304
+ scheme: z.ZodString;
305
+ network: z.ZodString;
306
+ amount: z.ZodString;
307
+ asset: z.ZodString;
308
+ payTo: z.ZodString;
309
+ maxTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
310
+ }, z.core.$strip>>;
311
+ resource: z.ZodOptional<z.ZodObject<{
312
+ url: z.ZodString;
313
+ description: z.ZodOptional<z.ZodString>;
314
+ mimeType: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$strip>>;
316
+ payload: z.ZodObject<{
317
+ transaction: z.ZodString;
318
+ }, z.core.$strip>;
319
+ extensions: z.ZodOptional<z.ZodObject<{
320
+ "payment-identifier": z.ZodOptional<z.ZodObject<{
321
+ info: z.ZodObject<{
322
+ id: z.ZodString;
323
+ }, z.core.$strip>;
324
+ }, z.core.$strip>>;
325
+ }, z.core.$catchall<z.ZodUnknown>>>;
326
+ }, z.core.$strip>;
327
+ paymentRequirements: z.ZodObject<{
328
+ scheme: z.ZodDefault<z.ZodLiteral<"exact">>;
329
+ network: z.ZodString;
330
+ amount: z.ZodString;
331
+ asset: z.ZodString;
332
+ payTo: z.ZodString;
333
+ maxTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
334
+ description: z.ZodOptional<z.ZodString>;
335
+ }, z.core.$strip>;
336
+ }, z.core.$strip>;
337
+ export declare const SettleHttpResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
338
+ success: z.ZodLiteral<true>;
339
+ transaction: z.ZodString;
340
+ network: z.ZodString;
341
+ payer: z.ZodOptional<z.ZodString>;
342
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
343
+ }, z.core.$strip>, z.ZodObject<{
344
+ success: z.ZodLiteral<false>;
345
+ errorReason: z.ZodEnum<{
346
+ invalid_payload: "invalid_payload";
347
+ invalid_payment_requirements: "invalid_payment_requirements";
348
+ invalid_network: "invalid_network";
349
+ unrecognized_asset: "unrecognized_asset";
350
+ invalid_transaction_state: "invalid_transaction_state";
351
+ recipient_mismatch: "recipient_mismatch";
352
+ amount_insufficient: "amount_insufficient";
353
+ sender_mismatch: "sender_mismatch";
354
+ broadcast_failed: "broadcast_failed";
355
+ transaction_failed: "transaction_failed";
356
+ unexpected_settle_error: "unexpected_settle_error";
357
+ payment_identifier_conflict: "payment_identifier_conflict";
358
+ }>;
359
+ transaction: z.ZodString;
360
+ network: z.ZodString;
361
+ payer: z.ZodOptional<z.ZodString>;
362
+ queue: z.ZodOptional<z.ZodObject<{
363
+ status: z.ZodLiteral<"held">;
364
+ senderNonce: z.ZodNumber;
365
+ nextExpectedNonce: z.ZodNumber;
366
+ missingNonces: z.ZodArray<z.ZodNumber>;
367
+ handSize: z.ZodNumber;
368
+ estimatedDispatchMs: z.ZodNullable<z.ZodNumber>;
369
+ expiresAt: z.ZodString;
370
+ help: z.ZodString;
371
+ recentlyExpired: z.ZodOptional<z.ZodObject<{
372
+ nonces: z.ZodArray<z.ZodNumber>;
373
+ expiredAt: z.ZodString;
374
+ }, z.core.$strip>>;
375
+ }, z.core.$strip>>;
376
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
377
+ }, z.core.$strip>], "success">;
378
+ export declare const VerifyHttpResponseSchema: z.ZodObject<{
379
+ isValid: z.ZodBoolean;
380
+ invalidReason: z.ZodOptional<z.ZodEnum<{
381
+ invalid_payload: "invalid_payload";
382
+ invalid_payment_requirements: "invalid_payment_requirements";
383
+ invalid_network: "invalid_network";
384
+ unrecognized_asset: "unrecognized_asset";
385
+ invalid_transaction_state: "invalid_transaction_state";
386
+ recipient_mismatch: "recipient_mismatch";
387
+ amount_insufficient: "amount_insufficient";
388
+ sender_mismatch: "sender_mismatch";
389
+ }>>;
390
+ payer: z.ZodOptional<z.ZodString>;
391
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
392
+ }, z.core.$strip>;
393
+ export declare const SupportedHttpResponseSchema: z.ZodObject<{
394
+ kinds: z.ZodArray<z.ZodObject<{
395
+ x402Version: z.ZodNumber;
396
+ scheme: z.ZodString;
397
+ network: z.ZodString;
398
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
+ }, z.core.$strip>>;
400
+ extensions: z.ZodArray<z.ZodString>;
401
+ signers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
402
+ }, z.core.$strip>;
403
+ export declare const PaymentStatusHttpResponseSchema: z.ZodObject<{
404
+ paymentId: z.ZodString;
405
+ status: z.ZodEnum<{
406
+ submitted: "submitted";
407
+ queued: "queued";
408
+ broadcasting: "broadcasting";
409
+ mempool: "mempool";
410
+ confirmed: "confirmed";
411
+ failed: "failed";
412
+ replaced: "replaced";
413
+ not_found: "not_found";
414
+ }>;
415
+ txid: z.ZodOptional<z.ZodString>;
416
+ blockHeight: z.ZodOptional<z.ZodNumber>;
417
+ confirmedAt: z.ZodOptional<z.ZodString>;
418
+ explorerUrl: z.ZodOptional<z.ZodString>;
419
+ error: z.ZodOptional<z.ZodString>;
420
+ errorCode: z.ZodOptional<z.ZodString>;
421
+ retryable: z.ZodOptional<z.ZodBoolean>;
422
+ checkStatusUrl: z.ZodOptional<z.ZodString>;
423
+ }, z.core.$strip>;
424
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/http/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,yBAAyB,wSAa5B,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;EAAoC,CAAC;AAE7E,eAAO,MAAM,oCAAoC;;;;iBAI/C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BnC,CAAC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,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0B,CAAC;AAC/D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAA2B,CAAC;AACjE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;iBAA2B,CAAC;AACjE,eAAO,MAAM,2BAA2B;;;;;;;;;iBAA8B,CAAC;AACvE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAC"}
@@ -0,0 +1,171 @@
1
+ import { z } from "zod";
2
+ import { TrackedPaymentStateSchema } from "../core/enums.js";
3
+ import { AmountStringSchema, NonNegativeIntegerSchema, PaymentIdSchema, PositiveIntegerSchema, StacksAddressSchema, TransactionHexSchema, TransactionIdSchema, UrlSchema, } from "../core/primitives.js";
4
+ export const HTTP_SETTLE_ERROR_REASONS = [
5
+ "invalid_payload",
6
+ "invalid_payment_requirements",
7
+ "invalid_network",
8
+ "unrecognized_asset",
9
+ "invalid_transaction_state",
10
+ "recipient_mismatch",
11
+ "amount_insufficient",
12
+ "sender_mismatch",
13
+ "broadcast_failed",
14
+ "transaction_failed",
15
+ "unexpected_settle_error",
16
+ "payment_identifier_conflict",
17
+ ];
18
+ export const HttpSettleErrorReasonSchema = z.enum(HTTP_SETTLE_ERROR_REASONS);
19
+ export const HttpPaymentIdentifierExtensionSchema = z.object({
20
+ info: z.object({
21
+ id: PaymentIdSchema,
22
+ }),
23
+ });
24
+ export const HttpPaymentPayloadSchema = z.object({
25
+ x402Version: z.number().int().positive().optional(),
26
+ accepted: z
27
+ .object({
28
+ scheme: z.string().min(1),
29
+ network: z.string().min(1),
30
+ amount: AmountStringSchema,
31
+ asset: z.string().min(1),
32
+ payTo: StacksAddressSchema,
33
+ maxTimeoutSeconds: PositiveIntegerSchema.optional(),
34
+ })
35
+ .optional(),
36
+ resource: z
37
+ .object({
38
+ url: UrlSchema,
39
+ description: z.string().min(1).optional(),
40
+ mimeType: z.string().min(1).optional(),
41
+ })
42
+ .optional(),
43
+ payload: z.object({
44
+ transaction: TransactionHexSchema,
45
+ }),
46
+ extensions: z
47
+ .object({
48
+ "payment-identifier": HttpPaymentIdentifierExtensionSchema.optional(),
49
+ })
50
+ .catchall(z.unknown())
51
+ .optional(),
52
+ });
53
+ export const HttpPaymentRequirementSchema = z.object({
54
+ scheme: z.literal("exact").default("exact"),
55
+ network: z.string().min(1),
56
+ amount: AmountStringSchema,
57
+ asset: z.string().min(1),
58
+ payTo: StacksAddressSchema,
59
+ maxTimeoutSeconds: PositiveIntegerSchema.optional(),
60
+ description: z.string().min(1).optional(),
61
+ });
62
+ export const HttpPaymentRequiredSchema = z.object({
63
+ x402Version: z.number().int().positive(),
64
+ error: z.string().min(1).optional(),
65
+ resource: z.object({
66
+ url: UrlSchema,
67
+ description: z.string().min(1).optional(),
68
+ mimeType: z.string().min(1).optional(),
69
+ }),
70
+ accepts: z.array(HttpPaymentRequirementSchema).min(1),
71
+ extensions: z.record(z.string(), z.unknown()).optional(),
72
+ });
73
+ export const HttpPaymentRequiredBodySchema = z.object({
74
+ error: z.string().min(1),
75
+ message: z.string().min(1).optional(),
76
+ code: z.string().min(1).optional(),
77
+ x402: HttpPaymentRequiredSchema,
78
+ });
79
+ export const HttpSettleRequestSchema = z.object({
80
+ x402Version: z.number().int().positive().optional(),
81
+ paymentPayload: HttpPaymentPayloadSchema,
82
+ paymentRequirements: HttpPaymentRequirementSchema,
83
+ });
84
+ export const HttpQueueInfoSchema = z.object({
85
+ status: z.literal("held"),
86
+ senderNonce: NonNegativeIntegerSchema,
87
+ nextExpectedNonce: NonNegativeIntegerSchema,
88
+ missingNonces: z.array(NonNegativeIntegerSchema),
89
+ handSize: NonNegativeIntegerSchema,
90
+ estimatedDispatchMs: NonNegativeIntegerSchema.nullable(),
91
+ expiresAt: z.string().datetime({ offset: true }),
92
+ help: z.string().min(1),
93
+ recentlyExpired: z
94
+ .object({
95
+ nonces: z.array(NonNegativeIntegerSchema),
96
+ expiredAt: z.string().datetime({ offset: true }),
97
+ })
98
+ .optional(),
99
+ });
100
+ export const HttpSettleSuccessResponseSchema = z.object({
101
+ success: z.literal(true),
102
+ transaction: TransactionIdSchema,
103
+ network: z.string().min(1),
104
+ payer: StacksAddressSchema.optional(),
105
+ extensions: z.record(z.string(), z.unknown()).optional(),
106
+ });
107
+ export const HttpSettleFailureResponseSchema = z.object({
108
+ success: z.literal(false),
109
+ errorReason: HttpSettleErrorReasonSchema,
110
+ transaction: z.string(),
111
+ network: z.string().min(1),
112
+ payer: StacksAddressSchema.optional(),
113
+ queue: HttpQueueInfoSchema.optional(),
114
+ extensions: z.record(z.string(), z.unknown()).optional(),
115
+ });
116
+ export const HttpSettleResponseSchema = z.discriminatedUnion("success", [
117
+ HttpSettleSuccessResponseSchema,
118
+ HttpSettleFailureResponseSchema,
119
+ ]);
120
+ export const HttpVerifyResponseSchema = z.object({
121
+ isValid: z.boolean(),
122
+ invalidReason: z
123
+ .enum([
124
+ "invalid_payload",
125
+ "invalid_payment_requirements",
126
+ "invalid_network",
127
+ "unrecognized_asset",
128
+ "invalid_transaction_state",
129
+ "recipient_mismatch",
130
+ "amount_insufficient",
131
+ "sender_mismatch",
132
+ ])
133
+ .optional(),
134
+ payer: StacksAddressSchema.optional(),
135
+ extensions: z.record(z.string(), z.unknown()).optional(),
136
+ });
137
+ export const HttpSupportedKindSchema = z.object({
138
+ x402Version: z.number().int().positive(),
139
+ scheme: z.string().min(1),
140
+ network: z.string().min(1),
141
+ extra: z.record(z.string(), z.unknown()).optional(),
142
+ });
143
+ export const HttpSupportedResponseSchema = z.object({
144
+ kinds: z.array(HttpSupportedKindSchema),
145
+ extensions: z.array(z.string().min(1)),
146
+ signers: z.record(z.string(), z.array(StacksAddressSchema)),
147
+ });
148
+ export const HttpPaymentStatusResponseSchema = z.object({
149
+ paymentId: PaymentIdSchema,
150
+ status: TrackedPaymentStateSchema,
151
+ txid: TransactionIdSchema.optional(),
152
+ blockHeight: NonNegativeIntegerSchema.optional(),
153
+ confirmedAt: z.string().datetime({ offset: true }).optional(),
154
+ explorerUrl: UrlSchema.optional(),
155
+ error: z.string().min(1).optional(),
156
+ errorCode: z.string().min(1).optional(),
157
+ retryable: z.boolean().optional(),
158
+ checkStatusUrl: z.string().min(1).optional(),
159
+ });
160
+ export const HttpErrorResponseSchema = z.object({
161
+ error: z.string().min(1),
162
+ code: z.string().min(1).optional(),
163
+ retryable: z.boolean().optional(),
164
+ hint: z.string().min(1).optional(),
165
+ });
166
+ export const SettleHttpRequestSchema = HttpSettleRequestSchema;
167
+ export const SettleHttpResponseSchema = HttpSettleResponseSchema;
168
+ export const VerifyHttpResponseSchema = HttpVerifyResponseSchema;
169
+ export const SupportedHttpResponseSchema = HttpSupportedResponseSchema;
170
+ export const PaymentStatusHttpResponseSchema = HttpPaymentStatusResponseSchema;
171
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/http/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,GACV,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB;IACjB,8BAA8B;IAC9B,iBAAiB;IACjB,oBAAoB;IACpB,2BAA2B;IAC3B,oBAAoB;IACpB,qBAAqB;IACrB,iBAAiB;IACjB,kBAAkB;IAClB,oBAAoB;IACpB,yBAAyB;IACzB,6BAA6B;CACrB,CAAC;AAEX,MAAM,CAAC,MAA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AwB,GAAG,wBAAwB,CAAC;AACjE,MAAM,CAAC,MAAM,2BAA2B,GAAG,2BAA2B,CAAC;AACvE,MAAM,CAAC,MAAM,+BAA+B,GAAG,+BAA+B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./core/index.js";
2
+ export * from "./rpc/index.js";
3
+ export * from "./http/index.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./core/index.js";
2
+ export * from "./rpc/index.js";
3
+ export * from "./http/index.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./schemas.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./schemas.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}