@strimz/shared-types 0.6.0 → 0.7.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 (75) hide show
  1. package/README.md +7 -4
  2. package/dist/agents.cjs.map +1 -1
  3. package/dist/agents.d.cts +7 -5
  4. package/dist/agents.d.ts +7 -5
  5. package/dist/agents.js.map +1 -1
  6. package/dist/api-keys.cjs.map +1 -1
  7. package/dist/api-keys.d.cts +11 -9
  8. package/dist/api-keys.d.ts +11 -9
  9. package/dist/api-keys.js.map +1 -1
  10. package/dist/common.cjs.map +1 -1
  11. package/dist/common.d.cts +3 -2
  12. package/dist/common.d.ts +3 -2
  13. package/dist/common.js.map +1 -1
  14. package/dist/compliance.cjs.map +1 -1
  15. package/dist/compliance.d.cts +4 -4
  16. package/dist/compliance.d.ts +4 -4
  17. package/dist/compliance.js.map +1 -1
  18. package/dist/customers.cjs.map +1 -1
  19. package/dist/customers.d.cts +5 -4
  20. package/dist/customers.d.ts +5 -4
  21. package/dist/customers.js.map +1 -1
  22. package/dist/events.cjs.map +1 -1
  23. package/dist/events.d.cts +276 -276
  24. package/dist/events.d.ts +276 -276
  25. package/dist/events.js.map +1 -1
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +22 -20
  28. package/dist/index.d.ts +22 -20
  29. package/dist/index.js.map +1 -1
  30. package/dist/invoices.cjs.map +1 -1
  31. package/dist/invoices.d.cts +5 -4
  32. package/dist/invoices.d.ts +5 -4
  33. package/dist/invoices.js.map +1 -1
  34. package/dist/merchants.cjs.map +1 -1
  35. package/dist/merchants.d.cts +19 -13
  36. package/dist/merchants.d.ts +19 -13
  37. package/dist/merchants.js.map +1 -1
  38. package/dist/payment-sessions.cjs.map +1 -1
  39. package/dist/payment-sessions.d.cts +5 -3
  40. package/dist/payment-sessions.d.ts +5 -3
  41. package/dist/payment-sessions.js.map +1 -1
  42. package/dist/refunds.cjs.map +1 -1
  43. package/dist/refunds.d.cts +5 -3
  44. package/dist/refunds.d.ts +5 -3
  45. package/dist/refunds.js.map +1 -1
  46. package/dist/storefronts.cjs.map +1 -1
  47. package/dist/storefronts.d.cts +11 -8
  48. package/dist/storefronts.d.ts +11 -8
  49. package/dist/storefronts.js.map +1 -1
  50. package/dist/subscriptions.cjs.map +1 -1
  51. package/dist/subscriptions.d.cts +11 -8
  52. package/dist/subscriptions.d.ts +11 -8
  53. package/dist/subscriptions.js.map +1 -1
  54. package/dist/transactions.cjs.map +1 -1
  55. package/dist/transactions.d.cts +4 -4
  56. package/dist/transactions.d.ts +4 -4
  57. package/dist/transactions.js.map +1 -1
  58. package/dist/webhooks.cjs.map +1 -1
  59. package/dist/webhooks.d.cts +11 -9
  60. package/dist/webhooks.d.ts +11 -9
  61. package/dist/webhooks.js.map +1 -1
  62. package/package.json +1 -1
  63. package/src/agents.ts +4 -2
  64. package/src/api-keys.ts +4 -2
  65. package/src/common.ts +2 -1
  66. package/src/contact.ts +2 -1
  67. package/src/customers.ts +2 -1
  68. package/src/invoices.ts +2 -1
  69. package/src/merchants.ts +12 -6
  70. package/src/notifications.ts +2 -1
  71. package/src/payment-sessions.ts +4 -2
  72. package/src/refunds.ts +4 -2
  73. package/src/storefronts.ts +6 -3
  74. package/src/subscriptions.ts +6 -3
  75. package/src/webhooks.ts +4 -2
package/dist/events.d.cts CHANGED
@@ -94,6 +94,7 @@ declare const paymentCreatedEventSchema: z.ZodObject<{
94
94
  }, "strip", z.ZodTypeAny, {
95
95
  type: "payment.created";
96
96
  id: string;
97
+ mode: "test" | "live";
97
98
  createdAt: string;
98
99
  data: {
99
100
  status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
@@ -120,11 +121,11 @@ declare const paymentCreatedEventSchema: z.ZodObject<{
120
121
  expiresAt: string;
121
122
  updatedAt: string;
122
123
  };
123
- mode: "test" | "live";
124
124
  apiVersion: string;
125
125
  }, {
126
126
  type: "payment.created";
127
127
  id: string;
128
+ mode: "test" | "live";
128
129
  createdAt: string;
129
130
  data: {
130
131
  status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
@@ -151,7 +152,6 @@ declare const paymentCreatedEventSchema: z.ZodObject<{
151
152
  updatedAt: string;
152
153
  metadata?: Record<string, string | number | boolean | null> | undefined;
153
154
  };
154
- mode: "test" | "live";
155
155
  apiVersion: string;
156
156
  }>;
157
157
  declare const paymentCompletedEventSchema: z.ZodObject<{
@@ -258,10 +258,10 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
258
258
  status: "confirmed" | "failed" | "pending";
259
259
  id: string;
260
260
  merchantId: string;
261
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
262
+ createdAt: string;
261
263
  sessionId: string | null;
262
264
  subscriptionId: string | null;
263
- createdAt: string;
264
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
265
265
  customerId: string | null;
266
266
  amount: string;
267
267
  currency: "USDC" | "EURC";
@@ -278,10 +278,10 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
278
278
  status: "confirmed" | "failed" | "pending";
279
279
  id: string;
280
280
  merchantId: string;
281
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
282
+ createdAt: string;
281
283
  sessionId: string | null;
282
284
  subscriptionId: string | null;
283
- createdAt: string;
284
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
285
285
  customerId: string | null;
286
286
  amount: string;
287
287
  currency: "USDC" | "EURC";
@@ -325,10 +325,10 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
325
325
  status: "confirmed" | "failed" | "pending";
326
326
  id: string;
327
327
  merchantId: string;
328
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
329
+ createdAt: string;
328
330
  sessionId: string | null;
329
331
  subscriptionId: string | null;
330
- createdAt: string;
331
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
332
332
  customerId: string | null;
333
333
  amount: string;
334
334
  currency: "USDC" | "EURC";
@@ -372,10 +372,10 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
372
372
  status: "confirmed" | "failed" | "pending";
373
373
  id: string;
374
374
  merchantId: string;
375
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
376
+ createdAt: string;
375
377
  sessionId: string | null;
376
378
  subscriptionId: string | null;
377
- createdAt: string;
378
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
379
379
  customerId: string | null;
380
380
  amount: string;
381
381
  currency: "USDC" | "EURC";
@@ -393,6 +393,7 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
393
393
  }, "strip", z.ZodTypeAny, {
394
394
  type: "payment.completed";
395
395
  id: string;
396
+ mode: "test" | "live";
396
397
  createdAt: string;
397
398
  data: {
398
399
  session: {
@@ -424,10 +425,10 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
424
425
  status: "confirmed" | "failed" | "pending";
425
426
  id: string;
426
427
  merchantId: string;
428
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
429
+ createdAt: string;
427
430
  sessionId: string | null;
428
431
  subscriptionId: string | null;
429
- createdAt: string;
430
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
431
432
  customerId: string | null;
432
433
  amount: string;
433
434
  currency: "USDC" | "EURC";
@@ -442,11 +443,11 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
442
443
  blockTimestamp: string;
443
444
  };
444
445
  };
445
- mode: "test" | "live";
446
446
  apiVersion: string;
447
447
  }, {
448
448
  type: "payment.completed";
449
449
  id: string;
450
+ mode: "test" | "live";
450
451
  createdAt: string;
451
452
  data: {
452
453
  session: {
@@ -478,10 +479,10 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
478
479
  status: "confirmed" | "failed" | "pending";
479
480
  id: string;
480
481
  merchantId: string;
482
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
483
+ createdAt: string;
481
484
  sessionId: string | null;
482
485
  subscriptionId: string | null;
483
- createdAt: string;
484
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
485
486
  customerId: string | null;
486
487
  amount: string;
487
488
  currency: "USDC" | "EURC";
@@ -496,7 +497,6 @@ declare const paymentCompletedEventSchema: z.ZodObject<{
496
497
  blockTimestamp: string;
497
498
  };
498
499
  };
499
- mode: "test" | "live";
500
500
  apiVersion: string;
501
501
  }>;
502
502
  declare const paymentFailedEventSchema: z.ZodObject<{
@@ -638,6 +638,7 @@ declare const paymentFailedEventSchema: z.ZodObject<{
638
638
  }, "strip", z.ZodTypeAny, {
639
639
  type: "payment.failed";
640
640
  id: string;
641
+ mode: "test" | "live";
641
642
  createdAt: string;
642
643
  data: {
643
644
  reason: string;
@@ -667,11 +668,11 @@ declare const paymentFailedEventSchema: z.ZodObject<{
667
668
  updatedAt: string;
668
669
  };
669
670
  };
670
- mode: "test" | "live";
671
671
  apiVersion: string;
672
672
  }, {
673
673
  type: "payment.failed";
674
674
  id: string;
675
+ mode: "test" | "live";
675
676
  createdAt: string;
676
677
  data: {
677
678
  reason: string;
@@ -701,7 +702,6 @@ declare const paymentFailedEventSchema: z.ZodObject<{
701
702
  metadata?: Record<string, string | number | boolean | null> | undefined;
702
703
  };
703
704
  };
704
- mode: "test" | "live";
705
705
  apiVersion: string;
706
706
  }>;
707
707
  declare const subscriptionCreatedEventSchema: z.ZodObject<{
@@ -777,6 +777,7 @@ declare const subscriptionCreatedEventSchema: z.ZodObject<{
777
777
  }, "strip", z.ZodTypeAny, {
778
778
  type: "subscription.created";
779
779
  id: string;
780
+ mode: "test" | "live";
780
781
  createdAt: string;
781
782
  data: {
782
783
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -800,11 +801,11 @@ declare const subscriptionCreatedEventSchema: z.ZodObject<{
800
801
  gracePeriodHours: number;
801
802
  cancelledAt: string | null;
802
803
  };
803
- mode: "test" | "live";
804
804
  apiVersion: string;
805
805
  }, {
806
806
  type: "subscription.created";
807
807
  id: string;
808
+ mode: "test" | "live";
808
809
  createdAt: string;
809
810
  data: {
810
811
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -828,7 +829,6 @@ declare const subscriptionCreatedEventSchema: z.ZodObject<{
828
829
  cancelledAt: string | null;
829
830
  metadata?: Record<string, string | number | boolean | null> | undefined;
830
831
  };
831
- mode: "test" | "live";
832
832
  apiVersion: string;
833
833
  }>;
834
834
  declare const subscriptionChargedEventSchema: z.ZodObject<{
@@ -924,8 +924,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
924
924
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
925
925
  id: string;
926
926
  merchantId: string;
927
- subscriptionId: string;
928
927
  createdAt: string;
928
+ subscriptionId: string;
929
929
  amount: string;
930
930
  currency: "USDC" | "EURC";
931
931
  onchainTxHash: string | null;
@@ -942,8 +942,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
942
942
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
943
943
  id: string;
944
944
  merchantId: string;
945
- subscriptionId: string;
946
945
  createdAt: string;
946
+ subscriptionId: string;
947
947
  amount: string;
948
948
  currency: "USDC" | "EURC";
949
949
  onchainTxHash: string | null;
@@ -981,10 +981,10 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
981
981
  status: "confirmed" | "failed" | "pending";
982
982
  id: string;
983
983
  merchantId: string;
984
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
985
+ createdAt: string;
984
986
  sessionId: string | null;
985
987
  subscriptionId: string | null;
986
- createdAt: string;
987
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
988
988
  customerId: string | null;
989
989
  amount: string;
990
990
  currency: "USDC" | "EURC";
@@ -1001,10 +1001,10 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1001
1001
  status: "confirmed" | "failed" | "pending";
1002
1002
  id: string;
1003
1003
  merchantId: string;
1004
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1005
+ createdAt: string;
1004
1006
  sessionId: string | null;
1005
1007
  subscriptionId: string | null;
1006
- createdAt: string;
1007
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1008
1008
  customerId: string | null;
1009
1009
  amount: string;
1010
1010
  currency: "USDC" | "EURC";
@@ -1023,10 +1023,10 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1023
1023
  status: "confirmed" | "failed" | "pending";
1024
1024
  id: string;
1025
1025
  merchantId: string;
1026
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1027
+ createdAt: string;
1026
1028
  sessionId: string | null;
1027
1029
  subscriptionId: string | null;
1028
- createdAt: string;
1029
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1030
1030
  customerId: string | null;
1031
1031
  amount: string;
1032
1032
  currency: "USDC" | "EURC";
@@ -1066,8 +1066,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1066
1066
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1067
1067
  id: string;
1068
1068
  merchantId: string;
1069
- subscriptionId: string;
1070
1069
  createdAt: string;
1070
+ subscriptionId: string;
1071
1071
  amount: string;
1072
1072
  currency: "USDC" | "EURC";
1073
1073
  onchainTxHash: string | null;
@@ -1086,10 +1086,10 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1086
1086
  status: "confirmed" | "failed" | "pending";
1087
1087
  id: string;
1088
1088
  merchantId: string;
1089
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1090
+ createdAt: string;
1089
1091
  sessionId: string | null;
1090
1092
  subscriptionId: string | null;
1091
- createdAt: string;
1092
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1093
1093
  customerId: string | null;
1094
1094
  amount: string;
1095
1095
  currency: "USDC" | "EURC";
@@ -1129,8 +1129,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1129
1129
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1130
1130
  id: string;
1131
1131
  merchantId: string;
1132
- subscriptionId: string;
1133
1132
  createdAt: string;
1133
+ subscriptionId: string;
1134
1134
  amount: string;
1135
1135
  currency: "USDC" | "EURC";
1136
1136
  onchainTxHash: string | null;
@@ -1148,16 +1148,17 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1148
1148
  }, "strip", z.ZodTypeAny, {
1149
1149
  type: "subscription.charged";
1150
1150
  id: string;
1151
+ mode: "test" | "live";
1151
1152
  createdAt: string;
1152
1153
  data: {
1153
1154
  transaction: {
1154
1155
  status: "confirmed" | "failed" | "pending";
1155
1156
  id: string;
1156
1157
  merchantId: string;
1158
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1159
+ createdAt: string;
1157
1160
  sessionId: string | null;
1158
1161
  subscriptionId: string | null;
1159
- createdAt: string;
1160
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1161
1162
  customerId: string | null;
1162
1163
  amount: string;
1163
1164
  currency: "USDC" | "EURC";
@@ -1197,8 +1198,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1197
1198
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1198
1199
  id: string;
1199
1200
  merchantId: string;
1200
- subscriptionId: string;
1201
1201
  createdAt: string;
1202
+ subscriptionId: string;
1202
1203
  amount: string;
1203
1204
  currency: "USDC" | "EURC";
1204
1205
  onchainTxHash: string | null;
@@ -1213,21 +1214,21 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1213
1214
  failureReason: string | null;
1214
1215
  };
1215
1216
  };
1216
- mode: "test" | "live";
1217
1217
  apiVersion: string;
1218
1218
  }, {
1219
1219
  type: "subscription.charged";
1220
1220
  id: string;
1221
+ mode: "test" | "live";
1221
1222
  createdAt: string;
1222
1223
  data: {
1223
1224
  transaction: {
1224
1225
  status: "confirmed" | "failed" | "pending";
1225
1226
  id: string;
1226
1227
  merchantId: string;
1228
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1229
+ createdAt: string;
1227
1230
  sessionId: string | null;
1228
1231
  subscriptionId: string | null;
1229
- createdAt: string;
1230
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
1231
1232
  customerId: string | null;
1232
1233
  amount: string;
1233
1234
  currency: "USDC" | "EURC";
@@ -1267,8 +1268,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1267
1268
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1268
1269
  id: string;
1269
1270
  merchantId: string;
1270
- subscriptionId: string;
1271
1271
  createdAt: string;
1272
+ subscriptionId: string;
1272
1273
  amount: string;
1273
1274
  currency: "USDC" | "EURC";
1274
1275
  onchainTxHash: string | null;
@@ -1283,7 +1284,6 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
1283
1284
  failureReason: string | null;
1284
1285
  };
1285
1286
  };
1286
- mode: "test" | "live";
1287
1287
  apiVersion: string;
1288
1288
  }>;
1289
1289
  declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
@@ -1379,8 +1379,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1379
1379
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1380
1380
  id: string;
1381
1381
  merchantId: string;
1382
- subscriptionId: string;
1383
1382
  createdAt: string;
1383
+ subscriptionId: string;
1384
1384
  amount: string;
1385
1385
  currency: "USDC" | "EURC";
1386
1386
  onchainTxHash: string | null;
@@ -1397,8 +1397,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1397
1397
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1398
1398
  id: string;
1399
1399
  merchantId: string;
1400
- subscriptionId: string;
1401
1400
  createdAt: string;
1401
+ subscriptionId: string;
1402
1402
  amount: string;
1403
1403
  currency: "USDC" | "EURC";
1404
1404
  onchainTxHash: string | null;
@@ -1439,8 +1439,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1439
1439
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1440
1440
  id: string;
1441
1441
  merchantId: string;
1442
- subscriptionId: string;
1443
1442
  createdAt: string;
1443
+ subscriptionId: string;
1444
1444
  amount: string;
1445
1445
  currency: "USDC" | "EURC";
1446
1446
  onchainTxHash: string | null;
@@ -1481,8 +1481,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1481
1481
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1482
1482
  id: string;
1483
1483
  merchantId: string;
1484
- subscriptionId: string;
1485
1484
  createdAt: string;
1485
+ subscriptionId: string;
1486
1486
  amount: string;
1487
1487
  currency: "USDC" | "EURC";
1488
1488
  onchainTxHash: string | null;
@@ -1500,6 +1500,7 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1500
1500
  }, "strip", z.ZodTypeAny, {
1501
1501
  type: "subscription.charge_failed";
1502
1502
  id: string;
1503
+ mode: "test" | "live";
1503
1504
  createdAt: string;
1504
1505
  data: {
1505
1506
  subscription: {
@@ -1528,8 +1529,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1528
1529
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1529
1530
  id: string;
1530
1531
  merchantId: string;
1531
- subscriptionId: string;
1532
1532
  createdAt: string;
1533
+ subscriptionId: string;
1533
1534
  amount: string;
1534
1535
  currency: "USDC" | "EURC";
1535
1536
  onchainTxHash: string | null;
@@ -1544,11 +1545,11 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1544
1545
  failureReason: string | null;
1545
1546
  };
1546
1547
  };
1547
- mode: "test" | "live";
1548
1548
  apiVersion: string;
1549
1549
  }, {
1550
1550
  type: "subscription.charge_failed";
1551
1551
  id: string;
1552
+ mode: "test" | "live";
1552
1553
  createdAt: string;
1553
1554
  data: {
1554
1555
  subscription: {
@@ -1577,8 +1578,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1577
1578
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
1578
1579
  id: string;
1579
1580
  merchantId: string;
1580
- subscriptionId: string;
1581
1581
  createdAt: string;
1582
+ subscriptionId: string;
1582
1583
  amount: string;
1583
1584
  currency: "USDC" | "EURC";
1584
1585
  onchainTxHash: string | null;
@@ -1593,7 +1594,6 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
1593
1594
  failureReason: string | null;
1594
1595
  };
1595
1596
  };
1596
- mode: "test" | "live";
1597
1597
  apiVersion: string;
1598
1598
  }>;
1599
1599
  declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
@@ -1720,6 +1720,7 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
1720
1720
  }, "strip", z.ZodTypeAny, {
1721
1721
  type: "subscription.recovery_attempt";
1722
1722
  id: string;
1723
+ mode: "test" | "live";
1723
1724
  createdAt: string;
1724
1725
  data: {
1725
1726
  attemptNumber: number;
@@ -1746,11 +1747,11 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
1746
1747
  cancelledAt: string | null;
1747
1748
  };
1748
1749
  };
1749
- mode: "test" | "live";
1750
1750
  apiVersion: string;
1751
1751
  }, {
1752
1752
  type: "subscription.recovery_attempt";
1753
1753
  id: string;
1754
+ mode: "test" | "live";
1754
1755
  createdAt: string;
1755
1756
  data: {
1756
1757
  attemptNumber: number;
@@ -1777,7 +1778,6 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
1777
1778
  metadata?: Record<string, string | number | boolean | null> | undefined;
1778
1779
  };
1779
1780
  };
1780
- mode: "test" | "live";
1781
1781
  apiVersion: string;
1782
1782
  }>;
1783
1783
  declare const subscriptionRecoveryOutcomeEventSchema: z.ZodObject<{
@@ -1904,6 +1904,7 @@ declare const subscriptionRecoveryOutcomeEventSchema: z.ZodObject<{
1904
1904
  }, "strip", z.ZodTypeAny, {
1905
1905
  type: "subscription.recovery_outcome";
1906
1906
  id: string;
1907
+ mode: "test" | "live";
1907
1908
  createdAt: string;
1908
1909
  data: {
1909
1910
  outcome: "recovered" | "churned";
@@ -1930,11 +1931,11 @@ declare const subscriptionRecoveryOutcomeEventSchema: z.ZodObject<{
1930
1931
  cancelledAt: string | null;
1931
1932
  };
1932
1933
  };
1933
- mode: "test" | "live";
1934
1934
  apiVersion: string;
1935
1935
  }, {
1936
1936
  type: "subscription.recovery_outcome";
1937
1937
  id: string;
1938
+ mode: "test" | "live";
1938
1939
  createdAt: string;
1939
1940
  data: {
1940
1941
  outcome: "recovered" | "churned";
@@ -1961,7 +1962,6 @@ declare const subscriptionRecoveryOutcomeEventSchema: z.ZodObject<{
1961
1962
  metadata?: Record<string, string | number | boolean | null> | undefined;
1962
1963
  };
1963
1964
  };
1964
- mode: "test" | "live";
1965
1965
  apiVersion: string;
1966
1966
  }>;
1967
1967
  declare const subscriptionCancelledEventSchema: z.ZodObject<{
@@ -2037,6 +2037,7 @@ declare const subscriptionCancelledEventSchema: z.ZodObject<{
2037
2037
  }, "strip", z.ZodTypeAny, {
2038
2038
  type: "subscription.cancelled";
2039
2039
  id: string;
2040
+ mode: "test" | "live";
2040
2041
  createdAt: string;
2041
2042
  data: {
2042
2043
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -2060,11 +2061,11 @@ declare const subscriptionCancelledEventSchema: z.ZodObject<{
2060
2061
  gracePeriodHours: number;
2061
2062
  cancelledAt: string | null;
2062
2063
  };
2063
- mode: "test" | "live";
2064
2064
  apiVersion: string;
2065
2065
  }, {
2066
2066
  type: "subscription.cancelled";
2067
2067
  id: string;
2068
+ mode: "test" | "live";
2068
2069
  createdAt: string;
2069
2070
  data: {
2070
2071
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -2088,7 +2089,6 @@ declare const subscriptionCancelledEventSchema: z.ZodObject<{
2088
2089
  cancelledAt: string | null;
2089
2090
  metadata?: Record<string, string | number | boolean | null> | undefined;
2090
2091
  };
2091
- mode: "test" | "live";
2092
2092
  apiVersion: string;
2093
2093
  }>;
2094
2094
  declare const subscriptionLapsedEventSchema: z.ZodObject<{
@@ -2164,6 +2164,7 @@ declare const subscriptionLapsedEventSchema: z.ZodObject<{
2164
2164
  }, "strip", z.ZodTypeAny, {
2165
2165
  type: "subscription.lapsed";
2166
2166
  id: string;
2167
+ mode: "test" | "live";
2167
2168
  createdAt: string;
2168
2169
  data: {
2169
2170
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -2187,11 +2188,11 @@ declare const subscriptionLapsedEventSchema: z.ZodObject<{
2187
2188
  gracePeriodHours: number;
2188
2189
  cancelledAt: string | null;
2189
2190
  };
2190
- mode: "test" | "live";
2191
2191
  apiVersion: string;
2192
2192
  }, {
2193
2193
  type: "subscription.lapsed";
2194
2194
  id: string;
2195
+ mode: "test" | "live";
2195
2196
  createdAt: string;
2196
2197
  data: {
2197
2198
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -2215,7 +2216,6 @@ declare const subscriptionLapsedEventSchema: z.ZodObject<{
2215
2216
  cancelledAt: string | null;
2216
2217
  metadata?: Record<string, string | number | boolean | null> | undefined;
2217
2218
  };
2218
- mode: "test" | "live";
2219
2219
  apiVersion: string;
2220
2220
  }>;
2221
2221
  declare const refundCreatedEventSchema: z.ZodObject<{
@@ -2273,6 +2273,7 @@ declare const refundCreatedEventSchema: z.ZodObject<{
2273
2273
  }, "strip", z.ZodTypeAny, {
2274
2274
  type: "refund.created";
2275
2275
  id: string;
2276
+ mode: "test" | "live";
2276
2277
  createdAt: string;
2277
2278
  data: {
2278
2279
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
@@ -2290,11 +2291,11 @@ declare const refundCreatedEventSchema: z.ZodObject<{
2290
2291
  initiatedBy: string;
2291
2292
  completedAt: string | null;
2292
2293
  };
2293
- mode: "test" | "live";
2294
2294
  apiVersion: string;
2295
2295
  }, {
2296
2296
  type: "refund.created";
2297
2297
  id: string;
2298
+ mode: "test" | "live";
2298
2299
  createdAt: string;
2299
2300
  data: {
2300
2301
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
@@ -2312,7 +2313,6 @@ declare const refundCreatedEventSchema: z.ZodObject<{
2312
2313
  initiatedBy: string;
2313
2314
  completedAt: string | null;
2314
2315
  };
2315
- mode: "test" | "live";
2316
2316
  apiVersion: string;
2317
2317
  }>;
2318
2318
  declare const refundCompletedEventSchema: z.ZodObject<{
@@ -2392,10 +2392,10 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2392
2392
  status: "confirmed" | "failed" | "pending";
2393
2393
  id: string;
2394
2394
  merchantId: string;
2395
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2396
+ createdAt: string;
2395
2397
  sessionId: string | null;
2396
2398
  subscriptionId: string | null;
2397
- createdAt: string;
2398
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2399
2399
  customerId: string | null;
2400
2400
  amount: string;
2401
2401
  currency: "USDC" | "EURC";
@@ -2412,10 +2412,10 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2412
2412
  status: "confirmed" | "failed" | "pending";
2413
2413
  id: string;
2414
2414
  merchantId: string;
2415
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2416
+ createdAt: string;
2415
2417
  sessionId: string | null;
2416
2418
  subscriptionId: string | null;
2417
- createdAt: string;
2418
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2419
2419
  customerId: string | null;
2420
2420
  amount: string;
2421
2421
  currency: "USDC" | "EURC";
@@ -2450,10 +2450,10 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2450
2450
  status: "confirmed" | "failed" | "pending";
2451
2451
  id: string;
2452
2452
  merchantId: string;
2453
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2454
+ createdAt: string;
2453
2455
  sessionId: string | null;
2454
2456
  subscriptionId: string | null;
2455
- createdAt: string;
2456
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2457
2457
  customerId: string | null;
2458
2458
  amount: string;
2459
2459
  currency: "USDC" | "EURC";
@@ -2488,10 +2488,10 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2488
2488
  status: "confirmed" | "failed" | "pending";
2489
2489
  id: string;
2490
2490
  merchantId: string;
2491
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2492
+ createdAt: string;
2491
2493
  sessionId: string | null;
2492
2494
  subscriptionId: string | null;
2493
- createdAt: string;
2494
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2495
2495
  customerId: string | null;
2496
2496
  amount: string;
2497
2497
  currency: "USDC" | "EURC";
@@ -2509,6 +2509,7 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2509
2509
  }, "strip", z.ZodTypeAny, {
2510
2510
  type: "refund.completed";
2511
2511
  id: string;
2512
+ mode: "test" | "live";
2512
2513
  createdAt: string;
2513
2514
  data: {
2514
2515
  refund: {
@@ -2531,10 +2532,10 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2531
2532
  status: "confirmed" | "failed" | "pending";
2532
2533
  id: string;
2533
2534
  merchantId: string;
2535
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2536
+ createdAt: string;
2534
2537
  sessionId: string | null;
2535
2538
  subscriptionId: string | null;
2536
- createdAt: string;
2537
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2538
2539
  customerId: string | null;
2539
2540
  amount: string;
2540
2541
  currency: "USDC" | "EURC";
@@ -2549,11 +2550,11 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2549
2550
  blockTimestamp: string;
2550
2551
  };
2551
2552
  };
2552
- mode: "test" | "live";
2553
2553
  apiVersion: string;
2554
2554
  }, {
2555
2555
  type: "refund.completed";
2556
2556
  id: string;
2557
+ mode: "test" | "live";
2557
2558
  createdAt: string;
2558
2559
  data: {
2559
2560
  refund: {
@@ -2576,10 +2577,10 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2576
2577
  status: "confirmed" | "failed" | "pending";
2577
2578
  id: string;
2578
2579
  merchantId: string;
2580
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2581
+ createdAt: string;
2579
2582
  sessionId: string | null;
2580
2583
  subscriptionId: string | null;
2581
- createdAt: string;
2582
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
2583
2584
  customerId: string | null;
2584
2585
  amount: string;
2585
2586
  currency: "USDC" | "EURC";
@@ -2594,7 +2595,6 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2594
2595
  blockTimestamp: string;
2595
2596
  };
2596
2597
  };
2597
- mode: "test" | "live";
2598
2598
  apiVersion: string;
2599
2599
  }>;
2600
2600
  declare const refundFailedEventSchema: z.ZodObject<{
@@ -2691,6 +2691,7 @@ declare const refundFailedEventSchema: z.ZodObject<{
2691
2691
  }, "strip", z.ZodTypeAny, {
2692
2692
  type: "refund.failed";
2693
2693
  id: string;
2694
+ mode: "test" | "live";
2694
2695
  createdAt: string;
2695
2696
  data: {
2696
2697
  refund: {
@@ -2711,11 +2712,11 @@ declare const refundFailedEventSchema: z.ZodObject<{
2711
2712
  };
2712
2713
  reason: string;
2713
2714
  };
2714
- mode: "test" | "live";
2715
2715
  apiVersion: string;
2716
2716
  }, {
2717
2717
  type: "refund.failed";
2718
2718
  id: string;
2719
+ mode: "test" | "live";
2719
2720
  createdAt: string;
2720
2721
  data: {
2721
2722
  refund: {
@@ -2736,7 +2737,6 @@ declare const refundFailedEventSchema: z.ZodObject<{
2736
2737
  };
2737
2738
  reason: string;
2738
2739
  };
2739
- mode: "test" | "live";
2740
2740
  apiVersion: string;
2741
2741
  }>;
2742
2742
  declare const invoiceCreatedEventSchema: z.ZodObject<{
@@ -2780,8 +2780,8 @@ declare const invoiceCreatedEventSchema: z.ZodObject<{
2780
2780
  status: "void" | "draft" | "sent" | "paid" | "overdue";
2781
2781
  id: string;
2782
2782
  merchantId: string;
2783
- sessionId: string | null;
2784
2783
  createdAt: string;
2784
+ sessionId: string | null;
2785
2785
  currency: "USDC" | "EURC";
2786
2786
  updatedAt: string;
2787
2787
  note: string | null;
@@ -2806,8 +2806,8 @@ declare const invoiceCreatedEventSchema: z.ZodObject<{
2806
2806
  status: "void" | "draft" | "sent" | "paid" | "overdue";
2807
2807
  id: string;
2808
2808
  merchantId: string;
2809
- sessionId: string | null;
2810
2809
  createdAt: string;
2810
+ sessionId: string | null;
2811
2811
  currency: "USDC" | "EURC";
2812
2812
  updatedAt: string;
2813
2813
  note: string | null;
@@ -2831,14 +2831,15 @@ declare const invoiceCreatedEventSchema: z.ZodObject<{
2831
2831
  }, "strip", z.ZodTypeAny, {
2832
2832
  type: "invoice.created";
2833
2833
  id: string;
2834
+ mode: "test" | "live";
2834
2835
  createdAt: string;
2835
2836
  data: {
2836
2837
  number: string;
2837
2838
  status: "void" | "draft" | "sent" | "paid" | "overdue";
2838
2839
  id: string;
2839
2840
  merchantId: string;
2840
- sessionId: string | null;
2841
2841
  createdAt: string;
2842
+ sessionId: string | null;
2842
2843
  currency: "USDC" | "EURC";
2843
2844
  updatedAt: string;
2844
2845
  note: string | null;
@@ -2859,19 +2860,19 @@ declare const invoiceCreatedEventSchema: z.ZodObject<{
2859
2860
  paidAt: string | null;
2860
2861
  sentAt: string | null;
2861
2862
  };
2862
- mode: "test" | "live";
2863
2863
  apiVersion: string;
2864
2864
  }, {
2865
2865
  type: "invoice.created";
2866
2866
  id: string;
2867
+ mode: "test" | "live";
2867
2868
  createdAt: string;
2868
2869
  data: {
2869
2870
  number: string;
2870
2871
  status: "void" | "draft" | "sent" | "paid" | "overdue";
2871
2872
  id: string;
2872
2873
  merchantId: string;
2873
- sessionId: string | null;
2874
2874
  createdAt: string;
2875
+ sessionId: string | null;
2875
2876
  currency: "USDC" | "EURC";
2876
2877
  updatedAt: string;
2877
2878
  note: string | null;
@@ -2892,7 +2893,6 @@ declare const invoiceCreatedEventSchema: z.ZodObject<{
2892
2893
  paidAt: string | null;
2893
2894
  sentAt: string | null;
2894
2895
  };
2895
- mode: "test" | "live";
2896
2896
  apiVersion: string;
2897
2897
  }>;
2898
2898
  declare const invoicePaidEventSchema: z.ZodObject<{
@@ -2937,8 +2937,8 @@ declare const invoicePaidEventSchema: z.ZodObject<{
2937
2937
  status: "void" | "draft" | "sent" | "paid" | "overdue";
2938
2938
  id: string;
2939
2939
  merchantId: string;
2940
- sessionId: string | null;
2941
2940
  createdAt: string;
2941
+ sessionId: string | null;
2942
2942
  currency: "USDC" | "EURC";
2943
2943
  updatedAt: string;
2944
2944
  note: string | null;
@@ -2963,8 +2963,8 @@ declare const invoicePaidEventSchema: z.ZodObject<{
2963
2963
  status: "void" | "draft" | "sent" | "paid" | "overdue";
2964
2964
  id: string;
2965
2965
  merchantId: string;
2966
- sessionId: string | null;
2967
2966
  createdAt: string;
2967
+ sessionId: string | null;
2968
2968
  currency: "USDC" | "EURC";
2969
2969
  updatedAt: string;
2970
2970
  note: string | null;
@@ -3009,10 +3009,10 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3009
3009
  status: "confirmed" | "failed" | "pending";
3010
3010
  id: string;
3011
3011
  merchantId: string;
3012
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3013
+ createdAt: string;
3012
3014
  sessionId: string | null;
3013
3015
  subscriptionId: string | null;
3014
- createdAt: string;
3015
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3016
3016
  customerId: string | null;
3017
3017
  amount: string;
3018
3018
  currency: "USDC" | "EURC";
@@ -3029,10 +3029,10 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3029
3029
  status: "confirmed" | "failed" | "pending";
3030
3030
  id: string;
3031
3031
  merchantId: string;
3032
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3033
+ createdAt: string;
3032
3034
  sessionId: string | null;
3033
3035
  subscriptionId: string | null;
3034
- createdAt: string;
3035
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3036
3036
  customerId: string | null;
3037
3037
  amount: string;
3038
3038
  currency: "USDC" | "EURC";
@@ -3051,10 +3051,10 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3051
3051
  status: "confirmed" | "failed" | "pending";
3052
3052
  id: string;
3053
3053
  merchantId: string;
3054
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3055
+ createdAt: string;
3054
3056
  sessionId: string | null;
3055
3057
  subscriptionId: string | null;
3056
- createdAt: string;
3057
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3058
3058
  customerId: string | null;
3059
3059
  amount: string;
3060
3060
  currency: "USDC" | "EURC";
@@ -3073,8 +3073,8 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3073
3073
  status: "void" | "draft" | "sent" | "paid" | "overdue";
3074
3074
  id: string;
3075
3075
  merchantId: string;
3076
- sessionId: string | null;
3077
3076
  createdAt: string;
3077
+ sessionId: string | null;
3078
3078
  currency: "USDC" | "EURC";
3079
3079
  updatedAt: string;
3080
3080
  note: string | null;
@@ -3100,10 +3100,10 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3100
3100
  status: "confirmed" | "failed" | "pending";
3101
3101
  id: string;
3102
3102
  merchantId: string;
3103
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3104
+ createdAt: string;
3103
3105
  sessionId: string | null;
3104
3106
  subscriptionId: string | null;
3105
- createdAt: string;
3106
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3107
3107
  customerId: string | null;
3108
3108
  amount: string;
3109
3109
  currency: "USDC" | "EURC";
@@ -3122,8 +3122,8 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3122
3122
  status: "void" | "draft" | "sent" | "paid" | "overdue";
3123
3123
  id: string;
3124
3124
  merchantId: string;
3125
- sessionId: string | null;
3126
3125
  createdAt: string;
3126
+ sessionId: string | null;
3127
3127
  currency: "USDC" | "EURC";
3128
3128
  updatedAt: string;
3129
3129
  note: string | null;
@@ -3148,16 +3148,17 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3148
3148
  }, "strip", z.ZodTypeAny, {
3149
3149
  type: "invoice.paid";
3150
3150
  id: string;
3151
+ mode: "test" | "live";
3151
3152
  createdAt: string;
3152
3153
  data: {
3153
3154
  transaction: {
3154
3155
  status: "confirmed" | "failed" | "pending";
3155
3156
  id: string;
3156
3157
  merchantId: string;
3158
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3159
+ createdAt: string;
3157
3160
  sessionId: string | null;
3158
3161
  subscriptionId: string | null;
3159
- createdAt: string;
3160
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3161
3162
  customerId: string | null;
3162
3163
  amount: string;
3163
3164
  currency: "USDC" | "EURC";
@@ -3176,8 +3177,8 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3176
3177
  status: "void" | "draft" | "sent" | "paid" | "overdue";
3177
3178
  id: string;
3178
3179
  merchantId: string;
3179
- sessionId: string | null;
3180
3180
  createdAt: string;
3181
+ sessionId: string | null;
3181
3182
  currency: "USDC" | "EURC";
3182
3183
  updatedAt: string;
3183
3184
  note: string | null;
@@ -3199,21 +3200,21 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3199
3200
  sentAt: string | null;
3200
3201
  };
3201
3202
  };
3202
- mode: "test" | "live";
3203
3203
  apiVersion: string;
3204
3204
  }, {
3205
3205
  type: "invoice.paid";
3206
3206
  id: string;
3207
+ mode: "test" | "live";
3207
3208
  createdAt: string;
3208
3209
  data: {
3209
3210
  transaction: {
3210
3211
  status: "confirmed" | "failed" | "pending";
3211
3212
  id: string;
3212
3213
  merchantId: string;
3214
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3215
+ createdAt: string;
3213
3216
  sessionId: string | null;
3214
3217
  subscriptionId: string | null;
3215
- createdAt: string;
3216
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
3217
3218
  customerId: string | null;
3218
3219
  amount: string;
3219
3220
  currency: "USDC" | "EURC";
@@ -3232,8 +3233,8 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3232
3233
  status: "void" | "draft" | "sent" | "paid" | "overdue";
3233
3234
  id: string;
3234
3235
  merchantId: string;
3235
- sessionId: string | null;
3236
3236
  createdAt: string;
3237
+ sessionId: string | null;
3237
3238
  currency: "USDC" | "EURC";
3238
3239
  updatedAt: string;
3239
3240
  note: string | null;
@@ -3255,7 +3256,6 @@ declare const invoicePaidEventSchema: z.ZodObject<{
3255
3256
  sentAt: string | null;
3256
3257
  };
3257
3258
  };
3258
- mode: "test" | "live";
3259
3259
  apiVersion: string;
3260
3260
  }>;
3261
3261
  declare const invoiceOverdueEventSchema: z.ZodObject<{
@@ -3299,8 +3299,8 @@ declare const invoiceOverdueEventSchema: z.ZodObject<{
3299
3299
  status: "void" | "draft" | "sent" | "paid" | "overdue";
3300
3300
  id: string;
3301
3301
  merchantId: string;
3302
- sessionId: string | null;
3303
3302
  createdAt: string;
3303
+ sessionId: string | null;
3304
3304
  currency: "USDC" | "EURC";
3305
3305
  updatedAt: string;
3306
3306
  note: string | null;
@@ -3325,8 +3325,8 @@ declare const invoiceOverdueEventSchema: z.ZodObject<{
3325
3325
  status: "void" | "draft" | "sent" | "paid" | "overdue";
3326
3326
  id: string;
3327
3327
  merchantId: string;
3328
- sessionId: string | null;
3329
3328
  createdAt: string;
3329
+ sessionId: string | null;
3330
3330
  currency: "USDC" | "EURC";
3331
3331
  updatedAt: string;
3332
3332
  note: string | null;
@@ -3350,14 +3350,15 @@ declare const invoiceOverdueEventSchema: z.ZodObject<{
3350
3350
  }, "strip", z.ZodTypeAny, {
3351
3351
  type: "invoice.overdue";
3352
3352
  id: string;
3353
+ mode: "test" | "live";
3353
3354
  createdAt: string;
3354
3355
  data: {
3355
3356
  number: string;
3356
3357
  status: "void" | "draft" | "sent" | "paid" | "overdue";
3357
3358
  id: string;
3358
3359
  merchantId: string;
3359
- sessionId: string | null;
3360
3360
  createdAt: string;
3361
+ sessionId: string | null;
3361
3362
  currency: "USDC" | "EURC";
3362
3363
  updatedAt: string;
3363
3364
  note: string | null;
@@ -3378,19 +3379,19 @@ declare const invoiceOverdueEventSchema: z.ZodObject<{
3378
3379
  paidAt: string | null;
3379
3380
  sentAt: string | null;
3380
3381
  };
3381
- mode: "test" | "live";
3382
3382
  apiVersion: string;
3383
3383
  }, {
3384
3384
  type: "invoice.overdue";
3385
3385
  id: string;
3386
+ mode: "test" | "live";
3386
3387
  createdAt: string;
3387
3388
  data: {
3388
3389
  number: string;
3389
3390
  status: "void" | "draft" | "sent" | "paid" | "overdue";
3390
3391
  id: string;
3391
3392
  merchantId: string;
3392
- sessionId: string | null;
3393
3393
  createdAt: string;
3394
+ sessionId: string | null;
3394
3395
  currency: "USDC" | "EURC";
3395
3396
  updatedAt: string;
3396
3397
  note: string | null;
@@ -3411,7 +3412,6 @@ declare const invoiceOverdueEventSchema: z.ZodObject<{
3411
3412
  paidAt: string | null;
3412
3413
  sentAt: string | null;
3413
3414
  };
3414
- mode: "test" | "live";
3415
3415
  apiVersion: string;
3416
3416
  }>;
3417
3417
  declare const agentActionExecutedEventSchema: z.ZodObject<{
@@ -3434,8 +3434,8 @@ declare const agentActionExecutedEventSchema: z.ZodObject<{
3434
3434
  }, "strip", z.ZodTypeAny, {
3435
3435
  id: string;
3436
3436
  merchantId: string;
3437
- subscriptionId: string | null;
3438
3437
  createdAt: string;
3438
+ subscriptionId: string | null;
3439
3439
  metadata: Record<string, string | number | boolean | null>;
3440
3440
  outcome: "pending" | "skipped" | "success" | "failure";
3441
3441
  transactionId: string | null;
@@ -3445,8 +3445,8 @@ declare const agentActionExecutedEventSchema: z.ZodObject<{
3445
3445
  }, {
3446
3446
  id: string;
3447
3447
  merchantId: string;
3448
- subscriptionId: string | null;
3449
3448
  createdAt: string;
3449
+ subscriptionId: string | null;
3450
3450
  outcome: "pending" | "skipped" | "success" | "failure";
3451
3451
  transactionId: string | null;
3452
3452
  capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
@@ -3457,12 +3457,13 @@ declare const agentActionExecutedEventSchema: z.ZodObject<{
3457
3457
  }, "strip", z.ZodTypeAny, {
3458
3458
  type: "agent.action_executed";
3459
3459
  id: string;
3460
+ mode: "test" | "live";
3460
3461
  createdAt: string;
3461
3462
  data: {
3462
3463
  id: string;
3463
3464
  merchantId: string;
3464
- subscriptionId: string | null;
3465
3465
  createdAt: string;
3466
+ subscriptionId: string | null;
3466
3467
  metadata: Record<string, string | number | boolean | null>;
3467
3468
  outcome: "pending" | "skipped" | "success" | "failure";
3468
3469
  transactionId: string | null;
@@ -3470,17 +3471,17 @@ declare const agentActionExecutedEventSchema: z.ZodObject<{
3470
3471
  actionType: "recovery_notification_sent" | "recovery_retry_scheduled" | "recovery_retry_executed" | "recovery_abandoned" | "routing_bridge_initiated" | "routing_payment_completed" | "cashflow_digest_sent" | "cashflow_anomaly_flagged" | "cashflow_yield_converted" | "commerce_job_created" | "commerce_job_approved" | "commerce_job_completed" | "commerce_job_disputed";
3471
3472
  jobId: string | null;
3472
3473
  };
3473
- mode: "test" | "live";
3474
3474
  apiVersion: string;
3475
3475
  }, {
3476
3476
  type: "agent.action_executed";
3477
3477
  id: string;
3478
+ mode: "test" | "live";
3478
3479
  createdAt: string;
3479
3480
  data: {
3480
3481
  id: string;
3481
3482
  merchantId: string;
3482
- subscriptionId: string | null;
3483
3483
  createdAt: string;
3484
+ subscriptionId: string | null;
3484
3485
  outcome: "pending" | "skipped" | "success" | "failure";
3485
3486
  transactionId: string | null;
3486
3487
  capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
@@ -3488,7 +3489,6 @@ declare const agentActionExecutedEventSchema: z.ZodObject<{
3488
3489
  jobId: string | null;
3489
3490
  metadata?: Record<string, string | number | boolean | null> | undefined;
3490
3491
  };
3491
- mode: "test" | "live";
3492
3492
  apiVersion: string;
3493
3493
  }>;
3494
3494
  declare const agentJobProposedEventSchema: z.ZodObject<{
@@ -3546,6 +3546,7 @@ declare const agentJobProposedEventSchema: z.ZodObject<{
3546
3546
  }, "strip", z.ZodTypeAny, {
3547
3547
  type: "agent.job_proposed";
3548
3548
  id: string;
3549
+ mode: "test" | "live";
3549
3550
  createdAt: string;
3550
3551
  data: {
3551
3552
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -3563,11 +3564,11 @@ declare const agentJobProposedEventSchema: z.ZodObject<{
3563
3564
  escrowTxHash: string | null;
3564
3565
  releaseTxHash: string | null;
3565
3566
  };
3566
- mode: "test" | "live";
3567
3567
  apiVersion: string;
3568
3568
  }, {
3569
3569
  type: "agent.job_proposed";
3570
3570
  id: string;
3571
+ mode: "test" | "live";
3571
3572
  createdAt: string;
3572
3573
  data: {
3573
3574
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -3585,7 +3586,6 @@ declare const agentJobProposedEventSchema: z.ZodObject<{
3585
3586
  escrowTxHash: string | null;
3586
3587
  releaseTxHash: string | null;
3587
3588
  };
3588
- mode: "test" | "live";
3589
3589
  apiVersion: string;
3590
3590
  }>;
3591
3591
  declare const agentJobCompletedEventSchema: z.ZodObject<{
@@ -3643,6 +3643,7 @@ declare const agentJobCompletedEventSchema: z.ZodObject<{
3643
3643
  }, "strip", z.ZodTypeAny, {
3644
3644
  type: "agent.job_completed";
3645
3645
  id: string;
3646
+ mode: "test" | "live";
3646
3647
  createdAt: string;
3647
3648
  data: {
3648
3649
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -3660,11 +3661,11 @@ declare const agentJobCompletedEventSchema: z.ZodObject<{
3660
3661
  escrowTxHash: string | null;
3661
3662
  releaseTxHash: string | null;
3662
3663
  };
3663
- mode: "test" | "live";
3664
3664
  apiVersion: string;
3665
3665
  }, {
3666
3666
  type: "agent.job_completed";
3667
3667
  id: string;
3668
+ mode: "test" | "live";
3668
3669
  createdAt: string;
3669
3670
  data: {
3670
3671
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -3682,7 +3683,6 @@ declare const agentJobCompletedEventSchema: z.ZodObject<{
3682
3683
  escrowTxHash: string | null;
3683
3684
  releaseTxHash: string | null;
3684
3685
  };
3685
- mode: "test" | "live";
3686
3686
  apiVersion: string;
3687
3687
  }>;
3688
3688
  declare const agentJobDisputedEventSchema: z.ZodObject<{
@@ -3740,6 +3740,7 @@ declare const agentJobDisputedEventSchema: z.ZodObject<{
3740
3740
  }, "strip", z.ZodTypeAny, {
3741
3741
  type: "agent.job_disputed";
3742
3742
  id: string;
3743
+ mode: "test" | "live";
3743
3744
  createdAt: string;
3744
3745
  data: {
3745
3746
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -3757,11 +3758,11 @@ declare const agentJobDisputedEventSchema: z.ZodObject<{
3757
3758
  escrowTxHash: string | null;
3758
3759
  releaseTxHash: string | null;
3759
3760
  };
3760
- mode: "test" | "live";
3761
3761
  apiVersion: string;
3762
3762
  }, {
3763
3763
  type: "agent.job_disputed";
3764
3764
  id: string;
3765
+ mode: "test" | "live";
3765
3766
  createdAt: string;
3766
3767
  data: {
3767
3768
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -3779,7 +3780,6 @@ declare const agentJobDisputedEventSchema: z.ZodObject<{
3779
3780
  escrowTxHash: string | null;
3780
3781
  releaseTxHash: string | null;
3781
3782
  };
3782
- mode: "test" | "live";
3783
3783
  apiVersion: string;
3784
3784
  }>;
3785
3785
  declare const complianceWalletFlaggedEventSchema: z.ZodObject<{
@@ -3804,69 +3804,69 @@ declare const complianceWalletFlaggedEventSchema: z.ZodObject<{
3804
3804
  }, "strip", z.ZodTypeAny, {
3805
3805
  status: "clear" | "flagged" | "blocked" | "error";
3806
3806
  id: string;
3807
+ merchantId: string | null;
3808
+ createdAt: string;
3807
3809
  walletAddress: string;
3808
3810
  provider: "trm" | "elliptic" | "disabled";
3809
3811
  riskScore: number | null;
3810
3812
  flags: string[];
3811
3813
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
3812
- merchantId: string | null;
3813
3814
  sessionId: string | null;
3814
3815
  subscriptionId: string | null;
3815
3816
  providerRequestId: string | null;
3816
- createdAt: string;
3817
3817
  }, {
3818
3818
  status: "clear" | "flagged" | "blocked" | "error";
3819
3819
  id: string;
3820
+ merchantId: string | null;
3821
+ createdAt: string;
3820
3822
  walletAddress: string;
3821
3823
  provider: "trm" | "elliptic" | "disabled";
3822
3824
  riskScore: number | null;
3823
3825
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
3824
- merchantId: string | null;
3825
3826
  sessionId: string | null;
3826
3827
  subscriptionId: string | null;
3827
3828
  providerRequestId: string | null;
3828
- createdAt: string;
3829
3829
  flags?: string[] | undefined;
3830
3830
  }>;
3831
3831
  }, "strip", z.ZodTypeAny, {
3832
3832
  type: "compliance.wallet_flagged";
3833
3833
  id: string;
3834
+ mode: "test" | "live";
3834
3835
  createdAt: string;
3835
3836
  data: {
3836
3837
  status: "clear" | "flagged" | "blocked" | "error";
3837
3838
  id: string;
3839
+ merchantId: string | null;
3840
+ createdAt: string;
3838
3841
  walletAddress: string;
3839
3842
  provider: "trm" | "elliptic" | "disabled";
3840
3843
  riskScore: number | null;
3841
3844
  flags: string[];
3842
3845
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
3843
- merchantId: string | null;
3844
3846
  sessionId: string | null;
3845
3847
  subscriptionId: string | null;
3846
3848
  providerRequestId: string | null;
3847
- createdAt: string;
3848
3849
  };
3849
- mode: "test" | "live";
3850
3850
  apiVersion: string;
3851
3851
  }, {
3852
3852
  type: "compliance.wallet_flagged";
3853
3853
  id: string;
3854
+ mode: "test" | "live";
3854
3855
  createdAt: string;
3855
3856
  data: {
3856
3857
  status: "clear" | "flagged" | "blocked" | "error";
3857
3858
  id: string;
3859
+ merchantId: string | null;
3860
+ createdAt: string;
3858
3861
  walletAddress: string;
3859
3862
  provider: "trm" | "elliptic" | "disabled";
3860
3863
  riskScore: number | null;
3861
3864
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
3862
- merchantId: string | null;
3863
3865
  sessionId: string | null;
3864
3866
  subscriptionId: string | null;
3865
3867
  providerRequestId: string | null;
3866
- createdAt: string;
3867
3868
  flags?: string[] | undefined;
3868
3869
  };
3869
- mode: "test" | "live";
3870
3870
  apiVersion: string;
3871
3871
  }>;
3872
3872
  declare const complianceWalletBlockedEventSchema: z.ZodObject<{
@@ -3891,69 +3891,69 @@ declare const complianceWalletBlockedEventSchema: z.ZodObject<{
3891
3891
  }, "strip", z.ZodTypeAny, {
3892
3892
  status: "clear" | "flagged" | "blocked" | "error";
3893
3893
  id: string;
3894
+ merchantId: string | null;
3895
+ createdAt: string;
3894
3896
  walletAddress: string;
3895
3897
  provider: "trm" | "elliptic" | "disabled";
3896
3898
  riskScore: number | null;
3897
3899
  flags: string[];
3898
3900
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
3899
- merchantId: string | null;
3900
3901
  sessionId: string | null;
3901
3902
  subscriptionId: string | null;
3902
3903
  providerRequestId: string | null;
3903
- createdAt: string;
3904
3904
  }, {
3905
3905
  status: "clear" | "flagged" | "blocked" | "error";
3906
3906
  id: string;
3907
+ merchantId: string | null;
3908
+ createdAt: string;
3907
3909
  walletAddress: string;
3908
3910
  provider: "trm" | "elliptic" | "disabled";
3909
3911
  riskScore: number | null;
3910
3912
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
3911
- merchantId: string | null;
3912
3913
  sessionId: string | null;
3913
3914
  subscriptionId: string | null;
3914
3915
  providerRequestId: string | null;
3915
- createdAt: string;
3916
3916
  flags?: string[] | undefined;
3917
3917
  }>;
3918
3918
  }, "strip", z.ZodTypeAny, {
3919
3919
  type: "compliance.wallet_blocked";
3920
3920
  id: string;
3921
+ mode: "test" | "live";
3921
3922
  createdAt: string;
3922
3923
  data: {
3923
3924
  status: "clear" | "flagged" | "blocked" | "error";
3924
3925
  id: string;
3926
+ merchantId: string | null;
3927
+ createdAt: string;
3925
3928
  walletAddress: string;
3926
3929
  provider: "trm" | "elliptic" | "disabled";
3927
3930
  riskScore: number | null;
3928
3931
  flags: string[];
3929
3932
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
3930
- merchantId: string | null;
3931
3933
  sessionId: string | null;
3932
3934
  subscriptionId: string | null;
3933
3935
  providerRequestId: string | null;
3934
- createdAt: string;
3935
3936
  };
3936
- mode: "test" | "live";
3937
3937
  apiVersion: string;
3938
3938
  }, {
3939
3939
  type: "compliance.wallet_blocked";
3940
3940
  id: string;
3941
+ mode: "test" | "live";
3941
3942
  createdAt: string;
3942
3943
  data: {
3943
3944
  status: "clear" | "flagged" | "blocked" | "error";
3944
3945
  id: string;
3946
+ merchantId: string | null;
3947
+ createdAt: string;
3945
3948
  walletAddress: string;
3946
3949
  provider: "trm" | "elliptic" | "disabled";
3947
3950
  riskScore: number | null;
3948
3951
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
3949
- merchantId: string | null;
3950
3952
  sessionId: string | null;
3951
3953
  subscriptionId: string | null;
3952
3954
  providerRequestId: string | null;
3953
- createdAt: string;
3954
3955
  flags?: string[] | undefined;
3955
3956
  };
3956
- mode: "test" | "live";
3957
3957
  apiVersion: string;
3958
3958
  }>;
3959
3959
  declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -4038,6 +4038,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4038
4038
  }, "strip", z.ZodTypeAny, {
4039
4039
  type: "payment.created";
4040
4040
  id: string;
4041
+ mode: "test" | "live";
4041
4042
  createdAt: string;
4042
4043
  data: {
4043
4044
  status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
@@ -4064,11 +4065,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4064
4065
  expiresAt: string;
4065
4066
  updatedAt: string;
4066
4067
  };
4067
- mode: "test" | "live";
4068
4068
  apiVersion: string;
4069
4069
  }, {
4070
4070
  type: "payment.created";
4071
4071
  id: string;
4072
+ mode: "test" | "live";
4072
4073
  createdAt: string;
4073
4074
  data: {
4074
4075
  status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
@@ -4095,7 +4096,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4095
4096
  updatedAt: string;
4096
4097
  metadata?: Record<string, string | number | boolean | null> | undefined;
4097
4098
  };
4098
- mode: "test" | "live";
4099
4099
  apiVersion: string;
4100
4100
  }>, z.ZodObject<{
4101
4101
  id: z.ZodString;
@@ -4201,10 +4201,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4201
4201
  status: "confirmed" | "failed" | "pending";
4202
4202
  id: string;
4203
4203
  merchantId: string;
4204
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4205
+ createdAt: string;
4204
4206
  sessionId: string | null;
4205
4207
  subscriptionId: string | null;
4206
- createdAt: string;
4207
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4208
4208
  customerId: string | null;
4209
4209
  amount: string;
4210
4210
  currency: "USDC" | "EURC";
@@ -4221,10 +4221,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4221
4221
  status: "confirmed" | "failed" | "pending";
4222
4222
  id: string;
4223
4223
  merchantId: string;
4224
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4225
+ createdAt: string;
4224
4226
  sessionId: string | null;
4225
4227
  subscriptionId: string | null;
4226
- createdAt: string;
4227
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4228
4228
  customerId: string | null;
4229
4229
  amount: string;
4230
4230
  currency: "USDC" | "EURC";
@@ -4268,10 +4268,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4268
4268
  status: "confirmed" | "failed" | "pending";
4269
4269
  id: string;
4270
4270
  merchantId: string;
4271
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4272
+ createdAt: string;
4271
4273
  sessionId: string | null;
4272
4274
  subscriptionId: string | null;
4273
- createdAt: string;
4274
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4275
4275
  customerId: string | null;
4276
4276
  amount: string;
4277
4277
  currency: "USDC" | "EURC";
@@ -4315,10 +4315,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4315
4315
  status: "confirmed" | "failed" | "pending";
4316
4316
  id: string;
4317
4317
  merchantId: string;
4318
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4319
+ createdAt: string;
4318
4320
  sessionId: string | null;
4319
4321
  subscriptionId: string | null;
4320
- createdAt: string;
4321
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4322
4322
  customerId: string | null;
4323
4323
  amount: string;
4324
4324
  currency: "USDC" | "EURC";
@@ -4336,6 +4336,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4336
4336
  }, "strip", z.ZodTypeAny, {
4337
4337
  type: "payment.completed";
4338
4338
  id: string;
4339
+ mode: "test" | "live";
4339
4340
  createdAt: string;
4340
4341
  data: {
4341
4342
  session: {
@@ -4367,10 +4368,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4367
4368
  status: "confirmed" | "failed" | "pending";
4368
4369
  id: string;
4369
4370
  merchantId: string;
4371
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4372
+ createdAt: string;
4370
4373
  sessionId: string | null;
4371
4374
  subscriptionId: string | null;
4372
- createdAt: string;
4373
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4374
4375
  customerId: string | null;
4375
4376
  amount: string;
4376
4377
  currency: "USDC" | "EURC";
@@ -4385,11 +4386,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4385
4386
  blockTimestamp: string;
4386
4387
  };
4387
4388
  };
4388
- mode: "test" | "live";
4389
4389
  apiVersion: string;
4390
4390
  }, {
4391
4391
  type: "payment.completed";
4392
4392
  id: string;
4393
+ mode: "test" | "live";
4393
4394
  createdAt: string;
4394
4395
  data: {
4395
4396
  session: {
@@ -4421,10 +4422,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4421
4422
  status: "confirmed" | "failed" | "pending";
4422
4423
  id: string;
4423
4424
  merchantId: string;
4425
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4426
+ createdAt: string;
4424
4427
  sessionId: string | null;
4425
4428
  subscriptionId: string | null;
4426
- createdAt: string;
4427
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4428
4429
  customerId: string | null;
4429
4430
  amount: string;
4430
4431
  currency: "USDC" | "EURC";
@@ -4439,7 +4440,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4439
4440
  blockTimestamp: string;
4440
4441
  };
4441
4442
  };
4442
- mode: "test" | "live";
4443
4443
  apiVersion: string;
4444
4444
  }>, z.ZodObject<{
4445
4445
  id: z.ZodString;
@@ -4580,6 +4580,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4580
4580
  }, "strip", z.ZodTypeAny, {
4581
4581
  type: "payment.failed";
4582
4582
  id: string;
4583
+ mode: "test" | "live";
4583
4584
  createdAt: string;
4584
4585
  data: {
4585
4586
  reason: string;
@@ -4609,11 +4610,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4609
4610
  updatedAt: string;
4610
4611
  };
4611
4612
  };
4612
- mode: "test" | "live";
4613
4613
  apiVersion: string;
4614
4614
  }, {
4615
4615
  type: "payment.failed";
4616
4616
  id: string;
4617
+ mode: "test" | "live";
4617
4618
  createdAt: string;
4618
4619
  data: {
4619
4620
  reason: string;
@@ -4643,7 +4644,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4643
4644
  metadata?: Record<string, string | number | boolean | null> | undefined;
4644
4645
  };
4645
4646
  };
4646
- mode: "test" | "live";
4647
4647
  apiVersion: string;
4648
4648
  }>, z.ZodObject<{
4649
4649
  id: z.ZodString;
@@ -4718,6 +4718,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4718
4718
  }, "strip", z.ZodTypeAny, {
4719
4719
  type: "subscription.created";
4720
4720
  id: string;
4721
+ mode: "test" | "live";
4721
4722
  createdAt: string;
4722
4723
  data: {
4723
4724
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -4741,11 +4742,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4741
4742
  gracePeriodHours: number;
4742
4743
  cancelledAt: string | null;
4743
4744
  };
4744
- mode: "test" | "live";
4745
4745
  apiVersion: string;
4746
4746
  }, {
4747
4747
  type: "subscription.created";
4748
4748
  id: string;
4749
+ mode: "test" | "live";
4749
4750
  createdAt: string;
4750
4751
  data: {
4751
4752
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -4769,7 +4770,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4769
4770
  cancelledAt: string | null;
4770
4771
  metadata?: Record<string, string | number | boolean | null> | undefined;
4771
4772
  };
4772
- mode: "test" | "live";
4773
4773
  apiVersion: string;
4774
4774
  }>, z.ZodObject<{
4775
4775
  id: z.ZodString;
@@ -4864,8 +4864,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4864
4864
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
4865
4865
  id: string;
4866
4866
  merchantId: string;
4867
- subscriptionId: string;
4868
4867
  createdAt: string;
4868
+ subscriptionId: string;
4869
4869
  amount: string;
4870
4870
  currency: "USDC" | "EURC";
4871
4871
  onchainTxHash: string | null;
@@ -4882,8 +4882,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4882
4882
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
4883
4883
  id: string;
4884
4884
  merchantId: string;
4885
- subscriptionId: string;
4886
4885
  createdAt: string;
4886
+ subscriptionId: string;
4887
4887
  amount: string;
4888
4888
  currency: "USDC" | "EURC";
4889
4889
  onchainTxHash: string | null;
@@ -4921,10 +4921,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4921
4921
  status: "confirmed" | "failed" | "pending";
4922
4922
  id: string;
4923
4923
  merchantId: string;
4924
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4925
+ createdAt: string;
4924
4926
  sessionId: string | null;
4925
4927
  subscriptionId: string | null;
4926
- createdAt: string;
4927
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4928
4928
  customerId: string | null;
4929
4929
  amount: string;
4930
4930
  currency: "USDC" | "EURC";
@@ -4941,10 +4941,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4941
4941
  status: "confirmed" | "failed" | "pending";
4942
4942
  id: string;
4943
4943
  merchantId: string;
4944
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4945
+ createdAt: string;
4944
4946
  sessionId: string | null;
4945
4947
  subscriptionId: string | null;
4946
- createdAt: string;
4947
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4948
4948
  customerId: string | null;
4949
4949
  amount: string;
4950
4950
  currency: "USDC" | "EURC";
@@ -4963,10 +4963,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4963
4963
  status: "confirmed" | "failed" | "pending";
4964
4964
  id: string;
4965
4965
  merchantId: string;
4966
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4967
+ createdAt: string;
4966
4968
  sessionId: string | null;
4967
4969
  subscriptionId: string | null;
4968
- createdAt: string;
4969
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
4970
4970
  customerId: string | null;
4971
4971
  amount: string;
4972
4972
  currency: "USDC" | "EURC";
@@ -5006,8 +5006,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5006
5006
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5007
5007
  id: string;
5008
5008
  merchantId: string;
5009
- subscriptionId: string;
5010
5009
  createdAt: string;
5010
+ subscriptionId: string;
5011
5011
  amount: string;
5012
5012
  currency: "USDC" | "EURC";
5013
5013
  onchainTxHash: string | null;
@@ -5026,10 +5026,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5026
5026
  status: "confirmed" | "failed" | "pending";
5027
5027
  id: string;
5028
5028
  merchantId: string;
5029
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
5030
+ createdAt: string;
5029
5031
  sessionId: string | null;
5030
5032
  subscriptionId: string | null;
5031
- createdAt: string;
5032
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
5033
5033
  customerId: string | null;
5034
5034
  amount: string;
5035
5035
  currency: "USDC" | "EURC";
@@ -5069,8 +5069,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5069
5069
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5070
5070
  id: string;
5071
5071
  merchantId: string;
5072
- subscriptionId: string;
5073
5072
  createdAt: string;
5073
+ subscriptionId: string;
5074
5074
  amount: string;
5075
5075
  currency: "USDC" | "EURC";
5076
5076
  onchainTxHash: string | null;
@@ -5088,16 +5088,17 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5088
5088
  }, "strip", z.ZodTypeAny, {
5089
5089
  type: "subscription.charged";
5090
5090
  id: string;
5091
+ mode: "test" | "live";
5091
5092
  createdAt: string;
5092
5093
  data: {
5093
5094
  transaction: {
5094
5095
  status: "confirmed" | "failed" | "pending";
5095
5096
  id: string;
5096
5097
  merchantId: string;
5098
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
5099
+ createdAt: string;
5097
5100
  sessionId: string | null;
5098
5101
  subscriptionId: string | null;
5099
- createdAt: string;
5100
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
5101
5102
  customerId: string | null;
5102
5103
  amount: string;
5103
5104
  currency: "USDC" | "EURC";
@@ -5137,8 +5138,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5137
5138
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5138
5139
  id: string;
5139
5140
  merchantId: string;
5140
- subscriptionId: string;
5141
5141
  createdAt: string;
5142
+ subscriptionId: string;
5142
5143
  amount: string;
5143
5144
  currency: "USDC" | "EURC";
5144
5145
  onchainTxHash: string | null;
@@ -5153,21 +5154,21 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5153
5154
  failureReason: string | null;
5154
5155
  };
5155
5156
  };
5156
- mode: "test" | "live";
5157
5157
  apiVersion: string;
5158
5158
  }, {
5159
5159
  type: "subscription.charged";
5160
5160
  id: string;
5161
+ mode: "test" | "live";
5161
5162
  createdAt: string;
5162
5163
  data: {
5163
5164
  transaction: {
5164
5165
  status: "confirmed" | "failed" | "pending";
5165
5166
  id: string;
5166
5167
  merchantId: string;
5168
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
5169
+ createdAt: string;
5167
5170
  sessionId: string | null;
5168
5171
  subscriptionId: string | null;
5169
- createdAt: string;
5170
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
5171
5172
  customerId: string | null;
5172
5173
  amount: string;
5173
5174
  currency: "USDC" | "EURC";
@@ -5207,8 +5208,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5207
5208
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5208
5209
  id: string;
5209
5210
  merchantId: string;
5210
- subscriptionId: string;
5211
5211
  createdAt: string;
5212
+ subscriptionId: string;
5212
5213
  amount: string;
5213
5214
  currency: "USDC" | "EURC";
5214
5215
  onchainTxHash: string | null;
@@ -5223,7 +5224,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5223
5224
  failureReason: string | null;
5224
5225
  };
5225
5226
  };
5226
- mode: "test" | "live";
5227
5227
  apiVersion: string;
5228
5228
  }>, z.ZodObject<{
5229
5229
  id: z.ZodString;
@@ -5318,8 +5318,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5318
5318
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5319
5319
  id: string;
5320
5320
  merchantId: string;
5321
- subscriptionId: string;
5322
5321
  createdAt: string;
5322
+ subscriptionId: string;
5323
5323
  amount: string;
5324
5324
  currency: "USDC" | "EURC";
5325
5325
  onchainTxHash: string | null;
@@ -5336,8 +5336,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5336
5336
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5337
5337
  id: string;
5338
5338
  merchantId: string;
5339
- subscriptionId: string;
5340
5339
  createdAt: string;
5340
+ subscriptionId: string;
5341
5341
  amount: string;
5342
5342
  currency: "USDC" | "EURC";
5343
5343
  onchainTxHash: string | null;
@@ -5378,8 +5378,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5378
5378
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5379
5379
  id: string;
5380
5380
  merchantId: string;
5381
- subscriptionId: string;
5382
5381
  createdAt: string;
5382
+ subscriptionId: string;
5383
5383
  amount: string;
5384
5384
  currency: "USDC" | "EURC";
5385
5385
  onchainTxHash: string | null;
@@ -5420,8 +5420,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5420
5420
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5421
5421
  id: string;
5422
5422
  merchantId: string;
5423
- subscriptionId: string;
5424
5423
  createdAt: string;
5424
+ subscriptionId: string;
5425
5425
  amount: string;
5426
5426
  currency: "USDC" | "EURC";
5427
5427
  onchainTxHash: string | null;
@@ -5439,6 +5439,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5439
5439
  }, "strip", z.ZodTypeAny, {
5440
5440
  type: "subscription.charge_failed";
5441
5441
  id: string;
5442
+ mode: "test" | "live";
5442
5443
  createdAt: string;
5443
5444
  data: {
5444
5445
  subscription: {
@@ -5467,8 +5468,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5467
5468
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5468
5469
  id: string;
5469
5470
  merchantId: string;
5470
- subscriptionId: string;
5471
5471
  createdAt: string;
5472
+ subscriptionId: string;
5472
5473
  amount: string;
5473
5474
  currency: "USDC" | "EURC";
5474
5475
  onchainTxHash: string | null;
@@ -5483,11 +5484,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5483
5484
  failureReason: string | null;
5484
5485
  };
5485
5486
  };
5486
- mode: "test" | "live";
5487
5487
  apiVersion: string;
5488
5488
  }, {
5489
5489
  type: "subscription.charge_failed";
5490
5490
  id: string;
5491
+ mode: "test" | "live";
5491
5492
  createdAt: string;
5492
5493
  data: {
5493
5494
  subscription: {
@@ -5516,8 +5517,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5516
5517
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5517
5518
  id: string;
5518
5519
  merchantId: string;
5519
- subscriptionId: string;
5520
5520
  createdAt: string;
5521
+ subscriptionId: string;
5521
5522
  amount: string;
5522
5523
  currency: "USDC" | "EURC";
5523
5524
  onchainTxHash: string | null;
@@ -5532,7 +5533,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5532
5533
  failureReason: string | null;
5533
5534
  };
5534
5535
  };
5535
- mode: "test" | "live";
5536
5536
  apiVersion: string;
5537
5537
  }>, z.ZodObject<{
5538
5538
  id: z.ZodString;
@@ -5658,6 +5658,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5658
5658
  }, "strip", z.ZodTypeAny, {
5659
5659
  type: "subscription.recovery_attempt";
5660
5660
  id: string;
5661
+ mode: "test" | "live";
5661
5662
  createdAt: string;
5662
5663
  data: {
5663
5664
  attemptNumber: number;
@@ -5684,11 +5685,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5684
5685
  cancelledAt: string | null;
5685
5686
  };
5686
5687
  };
5687
- mode: "test" | "live";
5688
5688
  apiVersion: string;
5689
5689
  }, {
5690
5690
  type: "subscription.recovery_attempt";
5691
5691
  id: string;
5692
+ mode: "test" | "live";
5692
5693
  createdAt: string;
5693
5694
  data: {
5694
5695
  attemptNumber: number;
@@ -5715,7 +5716,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5715
5716
  metadata?: Record<string, string | number | boolean | null> | undefined;
5716
5717
  };
5717
5718
  };
5718
- mode: "test" | "live";
5719
5719
  apiVersion: string;
5720
5720
  }>, z.ZodObject<{
5721
5721
  id: z.ZodString;
@@ -5841,6 +5841,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5841
5841
  }, "strip", z.ZodTypeAny, {
5842
5842
  type: "subscription.recovery_outcome";
5843
5843
  id: string;
5844
+ mode: "test" | "live";
5844
5845
  createdAt: string;
5845
5846
  data: {
5846
5847
  outcome: "recovered" | "churned";
@@ -5867,11 +5868,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5867
5868
  cancelledAt: string | null;
5868
5869
  };
5869
5870
  };
5870
- mode: "test" | "live";
5871
5871
  apiVersion: string;
5872
5872
  }, {
5873
5873
  type: "subscription.recovery_outcome";
5874
5874
  id: string;
5875
+ mode: "test" | "live";
5875
5876
  createdAt: string;
5876
5877
  data: {
5877
5878
  outcome: "recovered" | "churned";
@@ -5898,7 +5899,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5898
5899
  metadata?: Record<string, string | number | boolean | null> | undefined;
5899
5900
  };
5900
5901
  };
5901
- mode: "test" | "live";
5902
5902
  apiVersion: string;
5903
5903
  }>, z.ZodObject<{
5904
5904
  id: z.ZodString;
@@ -5973,6 +5973,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5973
5973
  }, "strip", z.ZodTypeAny, {
5974
5974
  type: "subscription.cancelled";
5975
5975
  id: string;
5976
+ mode: "test" | "live";
5976
5977
  createdAt: string;
5977
5978
  data: {
5978
5979
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -5996,11 +5997,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5996
5997
  gracePeriodHours: number;
5997
5998
  cancelledAt: string | null;
5998
5999
  };
5999
- mode: "test" | "live";
6000
6000
  apiVersion: string;
6001
6001
  }, {
6002
6002
  type: "subscription.cancelled";
6003
6003
  id: string;
6004
+ mode: "test" | "live";
6004
6005
  createdAt: string;
6005
6006
  data: {
6006
6007
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -6024,7 +6025,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6024
6025
  cancelledAt: string | null;
6025
6026
  metadata?: Record<string, string | number | boolean | null> | undefined;
6026
6027
  };
6027
- mode: "test" | "live";
6028
6028
  apiVersion: string;
6029
6029
  }>, z.ZodObject<{
6030
6030
  id: z.ZodString;
@@ -6099,6 +6099,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6099
6099
  }, "strip", z.ZodTypeAny, {
6100
6100
  type: "subscription.lapsed";
6101
6101
  id: string;
6102
+ mode: "test" | "live";
6102
6103
  createdAt: string;
6103
6104
  data: {
6104
6105
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -6122,11 +6123,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6122
6123
  gracePeriodHours: number;
6123
6124
  cancelledAt: string | null;
6124
6125
  };
6125
- mode: "test" | "live";
6126
6126
  apiVersion: string;
6127
6127
  }, {
6128
6128
  type: "subscription.lapsed";
6129
6129
  id: string;
6130
+ mode: "test" | "live";
6130
6131
  createdAt: string;
6131
6132
  data: {
6132
6133
  status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
@@ -6150,7 +6151,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6150
6151
  cancelledAt: string | null;
6151
6152
  metadata?: Record<string, string | number | boolean | null> | undefined;
6152
6153
  };
6153
- mode: "test" | "live";
6154
6154
  apiVersion: string;
6155
6155
  }>, z.ZodObject<{
6156
6156
  id: z.ZodString;
@@ -6207,6 +6207,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6207
6207
  }, "strip", z.ZodTypeAny, {
6208
6208
  type: "refund.created";
6209
6209
  id: string;
6210
+ mode: "test" | "live";
6210
6211
  createdAt: string;
6211
6212
  data: {
6212
6213
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
@@ -6224,11 +6225,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6224
6225
  initiatedBy: string;
6225
6226
  completedAt: string | null;
6226
6227
  };
6227
- mode: "test" | "live";
6228
6228
  apiVersion: string;
6229
6229
  }, {
6230
6230
  type: "refund.created";
6231
6231
  id: string;
6232
+ mode: "test" | "live";
6232
6233
  createdAt: string;
6233
6234
  data: {
6234
6235
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
@@ -6246,7 +6247,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6246
6247
  initiatedBy: string;
6247
6248
  completedAt: string | null;
6248
6249
  };
6249
- mode: "test" | "live";
6250
6250
  apiVersion: string;
6251
6251
  }>, z.ZodObject<{
6252
6252
  id: z.ZodString;
@@ -6325,10 +6325,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6325
6325
  status: "confirmed" | "failed" | "pending";
6326
6326
  id: string;
6327
6327
  merchantId: string;
6328
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6329
+ createdAt: string;
6328
6330
  sessionId: string | null;
6329
6331
  subscriptionId: string | null;
6330
- createdAt: string;
6331
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6332
6332
  customerId: string | null;
6333
6333
  amount: string;
6334
6334
  currency: "USDC" | "EURC";
@@ -6345,10 +6345,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6345
6345
  status: "confirmed" | "failed" | "pending";
6346
6346
  id: string;
6347
6347
  merchantId: string;
6348
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6349
+ createdAt: string;
6348
6350
  sessionId: string | null;
6349
6351
  subscriptionId: string | null;
6350
- createdAt: string;
6351
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6352
6352
  customerId: string | null;
6353
6353
  amount: string;
6354
6354
  currency: "USDC" | "EURC";
@@ -6383,10 +6383,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6383
6383
  status: "confirmed" | "failed" | "pending";
6384
6384
  id: string;
6385
6385
  merchantId: string;
6386
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6387
+ createdAt: string;
6386
6388
  sessionId: string | null;
6387
6389
  subscriptionId: string | null;
6388
- createdAt: string;
6389
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6390
6390
  customerId: string | null;
6391
6391
  amount: string;
6392
6392
  currency: "USDC" | "EURC";
@@ -6421,10 +6421,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6421
6421
  status: "confirmed" | "failed" | "pending";
6422
6422
  id: string;
6423
6423
  merchantId: string;
6424
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6425
+ createdAt: string;
6424
6426
  sessionId: string | null;
6425
6427
  subscriptionId: string | null;
6426
- createdAt: string;
6427
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6428
6428
  customerId: string | null;
6429
6429
  amount: string;
6430
6430
  currency: "USDC" | "EURC";
@@ -6442,6 +6442,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6442
6442
  }, "strip", z.ZodTypeAny, {
6443
6443
  type: "refund.completed";
6444
6444
  id: string;
6445
+ mode: "test" | "live";
6445
6446
  createdAt: string;
6446
6447
  data: {
6447
6448
  refund: {
@@ -6464,10 +6465,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6464
6465
  status: "confirmed" | "failed" | "pending";
6465
6466
  id: string;
6466
6467
  merchantId: string;
6468
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6469
+ createdAt: string;
6467
6470
  sessionId: string | null;
6468
6471
  subscriptionId: string | null;
6469
- createdAt: string;
6470
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6471
6472
  customerId: string | null;
6472
6473
  amount: string;
6473
6474
  currency: "USDC" | "EURC";
@@ -6482,11 +6483,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6482
6483
  blockTimestamp: string;
6483
6484
  };
6484
6485
  };
6485
- mode: "test" | "live";
6486
6486
  apiVersion: string;
6487
6487
  }, {
6488
6488
  type: "refund.completed";
6489
6489
  id: string;
6490
+ mode: "test" | "live";
6490
6491
  createdAt: string;
6491
6492
  data: {
6492
6493
  refund: {
@@ -6509,10 +6510,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6509
6510
  status: "confirmed" | "failed" | "pending";
6510
6511
  id: string;
6511
6512
  merchantId: string;
6513
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6514
+ createdAt: string;
6512
6515
  sessionId: string | null;
6513
6516
  subscriptionId: string | null;
6514
- createdAt: string;
6515
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6516
6517
  customerId: string | null;
6517
6518
  amount: string;
6518
6519
  currency: "USDC" | "EURC";
@@ -6527,7 +6528,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6527
6528
  blockTimestamp: string;
6528
6529
  };
6529
6530
  };
6530
- mode: "test" | "live";
6531
6531
  apiVersion: string;
6532
6532
  }>, z.ZodObject<{
6533
6533
  id: z.ZodString;
@@ -6623,6 +6623,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6623
6623
  }, "strip", z.ZodTypeAny, {
6624
6624
  type: "refund.failed";
6625
6625
  id: string;
6626
+ mode: "test" | "live";
6626
6627
  createdAt: string;
6627
6628
  data: {
6628
6629
  refund: {
@@ -6643,11 +6644,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6643
6644
  };
6644
6645
  reason: string;
6645
6646
  };
6646
- mode: "test" | "live";
6647
6647
  apiVersion: string;
6648
6648
  }, {
6649
6649
  type: "refund.failed";
6650
6650
  id: string;
6651
+ mode: "test" | "live";
6651
6652
  createdAt: string;
6652
6653
  data: {
6653
6654
  refund: {
@@ -6668,7 +6669,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6668
6669
  };
6669
6670
  reason: string;
6670
6671
  };
6671
- mode: "test" | "live";
6672
6672
  apiVersion: string;
6673
6673
  }>, z.ZodObject<{
6674
6674
  id: z.ZodString;
@@ -6711,8 +6711,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6711
6711
  status: "void" | "draft" | "sent" | "paid" | "overdue";
6712
6712
  id: string;
6713
6713
  merchantId: string;
6714
- sessionId: string | null;
6715
6714
  createdAt: string;
6715
+ sessionId: string | null;
6716
6716
  currency: "USDC" | "EURC";
6717
6717
  updatedAt: string;
6718
6718
  note: string | null;
@@ -6737,8 +6737,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6737
6737
  status: "void" | "draft" | "sent" | "paid" | "overdue";
6738
6738
  id: string;
6739
6739
  merchantId: string;
6740
- sessionId: string | null;
6741
6740
  createdAt: string;
6741
+ sessionId: string | null;
6742
6742
  currency: "USDC" | "EURC";
6743
6743
  updatedAt: string;
6744
6744
  note: string | null;
@@ -6762,14 +6762,15 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6762
6762
  }, "strip", z.ZodTypeAny, {
6763
6763
  type: "invoice.created";
6764
6764
  id: string;
6765
+ mode: "test" | "live";
6765
6766
  createdAt: string;
6766
6767
  data: {
6767
6768
  number: string;
6768
6769
  status: "void" | "draft" | "sent" | "paid" | "overdue";
6769
6770
  id: string;
6770
6771
  merchantId: string;
6771
- sessionId: string | null;
6772
6772
  createdAt: string;
6773
+ sessionId: string | null;
6773
6774
  currency: "USDC" | "EURC";
6774
6775
  updatedAt: string;
6775
6776
  note: string | null;
@@ -6790,19 +6791,19 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6790
6791
  paidAt: string | null;
6791
6792
  sentAt: string | null;
6792
6793
  };
6793
- mode: "test" | "live";
6794
6794
  apiVersion: string;
6795
6795
  }, {
6796
6796
  type: "invoice.created";
6797
6797
  id: string;
6798
+ mode: "test" | "live";
6798
6799
  createdAt: string;
6799
6800
  data: {
6800
6801
  number: string;
6801
6802
  status: "void" | "draft" | "sent" | "paid" | "overdue";
6802
6803
  id: string;
6803
6804
  merchantId: string;
6804
- sessionId: string | null;
6805
6805
  createdAt: string;
6806
+ sessionId: string | null;
6806
6807
  currency: "USDC" | "EURC";
6807
6808
  updatedAt: string;
6808
6809
  note: string | null;
@@ -6823,7 +6824,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6823
6824
  paidAt: string | null;
6824
6825
  sentAt: string | null;
6825
6826
  };
6826
- mode: "test" | "live";
6827
6827
  apiVersion: string;
6828
6828
  }>, z.ZodObject<{
6829
6829
  id: z.ZodString;
@@ -6867,8 +6867,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6867
6867
  status: "void" | "draft" | "sent" | "paid" | "overdue";
6868
6868
  id: string;
6869
6869
  merchantId: string;
6870
- sessionId: string | null;
6871
6870
  createdAt: string;
6871
+ sessionId: string | null;
6872
6872
  currency: "USDC" | "EURC";
6873
6873
  updatedAt: string;
6874
6874
  note: string | null;
@@ -6893,8 +6893,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6893
6893
  status: "void" | "draft" | "sent" | "paid" | "overdue";
6894
6894
  id: string;
6895
6895
  merchantId: string;
6896
- sessionId: string | null;
6897
6896
  createdAt: string;
6897
+ sessionId: string | null;
6898
6898
  currency: "USDC" | "EURC";
6899
6899
  updatedAt: string;
6900
6900
  note: string | null;
@@ -6939,10 +6939,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6939
6939
  status: "confirmed" | "failed" | "pending";
6940
6940
  id: string;
6941
6941
  merchantId: string;
6942
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6943
+ createdAt: string;
6942
6944
  sessionId: string | null;
6943
6945
  subscriptionId: string | null;
6944
- createdAt: string;
6945
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6946
6946
  customerId: string | null;
6947
6947
  amount: string;
6948
6948
  currency: "USDC" | "EURC";
@@ -6959,10 +6959,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6959
6959
  status: "confirmed" | "failed" | "pending";
6960
6960
  id: string;
6961
6961
  merchantId: string;
6962
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6963
+ createdAt: string;
6962
6964
  sessionId: string | null;
6963
6965
  subscriptionId: string | null;
6964
- createdAt: string;
6965
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6966
6966
  customerId: string | null;
6967
6967
  amount: string;
6968
6968
  currency: "USDC" | "EURC";
@@ -6981,10 +6981,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6981
6981
  status: "confirmed" | "failed" | "pending";
6982
6982
  id: string;
6983
6983
  merchantId: string;
6984
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6985
+ createdAt: string;
6984
6986
  sessionId: string | null;
6985
6987
  subscriptionId: string | null;
6986
- createdAt: string;
6987
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
6988
6988
  customerId: string | null;
6989
6989
  amount: string;
6990
6990
  currency: "USDC" | "EURC";
@@ -7003,8 +7003,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7003
7003
  status: "void" | "draft" | "sent" | "paid" | "overdue";
7004
7004
  id: string;
7005
7005
  merchantId: string;
7006
- sessionId: string | null;
7007
7006
  createdAt: string;
7007
+ sessionId: string | null;
7008
7008
  currency: "USDC" | "EURC";
7009
7009
  updatedAt: string;
7010
7010
  note: string | null;
@@ -7030,10 +7030,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7030
7030
  status: "confirmed" | "failed" | "pending";
7031
7031
  id: string;
7032
7032
  merchantId: string;
7033
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
7034
+ createdAt: string;
7033
7035
  sessionId: string | null;
7034
7036
  subscriptionId: string | null;
7035
- createdAt: string;
7036
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
7037
7037
  customerId: string | null;
7038
7038
  amount: string;
7039
7039
  currency: "USDC" | "EURC";
@@ -7052,8 +7052,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7052
7052
  status: "void" | "draft" | "sent" | "paid" | "overdue";
7053
7053
  id: string;
7054
7054
  merchantId: string;
7055
- sessionId: string | null;
7056
7055
  createdAt: string;
7056
+ sessionId: string | null;
7057
7057
  currency: "USDC" | "EURC";
7058
7058
  updatedAt: string;
7059
7059
  note: string | null;
@@ -7078,16 +7078,17 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7078
7078
  }, "strip", z.ZodTypeAny, {
7079
7079
  type: "invoice.paid";
7080
7080
  id: string;
7081
+ mode: "test" | "live";
7081
7082
  createdAt: string;
7082
7083
  data: {
7083
7084
  transaction: {
7084
7085
  status: "confirmed" | "failed" | "pending";
7085
7086
  id: string;
7086
7087
  merchantId: string;
7088
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
7089
+ createdAt: string;
7087
7090
  sessionId: string | null;
7088
7091
  subscriptionId: string | null;
7089
- createdAt: string;
7090
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
7091
7092
  customerId: string | null;
7092
7093
  amount: string;
7093
7094
  currency: "USDC" | "EURC";
@@ -7106,8 +7107,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7106
7107
  status: "void" | "draft" | "sent" | "paid" | "overdue";
7107
7108
  id: string;
7108
7109
  merchantId: string;
7109
- sessionId: string | null;
7110
7110
  createdAt: string;
7111
+ sessionId: string | null;
7111
7112
  currency: "USDC" | "EURC";
7112
7113
  updatedAt: string;
7113
7114
  note: string | null;
@@ -7129,21 +7130,21 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7129
7130
  sentAt: string | null;
7130
7131
  };
7131
7132
  };
7132
- mode: "test" | "live";
7133
7133
  apiVersion: string;
7134
7134
  }, {
7135
7135
  type: "invoice.paid";
7136
7136
  id: string;
7137
+ mode: "test" | "live";
7137
7138
  createdAt: string;
7138
7139
  data: {
7139
7140
  transaction: {
7140
7141
  status: "confirmed" | "failed" | "pending";
7141
7142
  id: string;
7142
7143
  merchantId: string;
7144
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
7145
+ createdAt: string;
7143
7146
  sessionId: string | null;
7144
7147
  subscriptionId: string | null;
7145
- createdAt: string;
7146
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
7147
7148
  customerId: string | null;
7148
7149
  amount: string;
7149
7150
  currency: "USDC" | "EURC";
@@ -7162,8 +7163,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7162
7163
  status: "void" | "draft" | "sent" | "paid" | "overdue";
7163
7164
  id: string;
7164
7165
  merchantId: string;
7165
- sessionId: string | null;
7166
7166
  createdAt: string;
7167
+ sessionId: string | null;
7167
7168
  currency: "USDC" | "EURC";
7168
7169
  updatedAt: string;
7169
7170
  note: string | null;
@@ -7185,7 +7186,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7185
7186
  sentAt: string | null;
7186
7187
  };
7187
7188
  };
7188
- mode: "test" | "live";
7189
7189
  apiVersion: string;
7190
7190
  }>, z.ZodObject<{
7191
7191
  id: z.ZodString;
@@ -7228,8 +7228,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7228
7228
  status: "void" | "draft" | "sent" | "paid" | "overdue";
7229
7229
  id: string;
7230
7230
  merchantId: string;
7231
- sessionId: string | null;
7232
7231
  createdAt: string;
7232
+ sessionId: string | null;
7233
7233
  currency: "USDC" | "EURC";
7234
7234
  updatedAt: string;
7235
7235
  note: string | null;
@@ -7254,8 +7254,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7254
7254
  status: "void" | "draft" | "sent" | "paid" | "overdue";
7255
7255
  id: string;
7256
7256
  merchantId: string;
7257
- sessionId: string | null;
7258
7257
  createdAt: string;
7258
+ sessionId: string | null;
7259
7259
  currency: "USDC" | "EURC";
7260
7260
  updatedAt: string;
7261
7261
  note: string | null;
@@ -7279,14 +7279,15 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7279
7279
  }, "strip", z.ZodTypeAny, {
7280
7280
  type: "invoice.overdue";
7281
7281
  id: string;
7282
+ mode: "test" | "live";
7282
7283
  createdAt: string;
7283
7284
  data: {
7284
7285
  number: string;
7285
7286
  status: "void" | "draft" | "sent" | "paid" | "overdue";
7286
7287
  id: string;
7287
7288
  merchantId: string;
7288
- sessionId: string | null;
7289
7289
  createdAt: string;
7290
+ sessionId: string | null;
7290
7291
  currency: "USDC" | "EURC";
7291
7292
  updatedAt: string;
7292
7293
  note: string | null;
@@ -7307,19 +7308,19 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7307
7308
  paidAt: string | null;
7308
7309
  sentAt: string | null;
7309
7310
  };
7310
- mode: "test" | "live";
7311
7311
  apiVersion: string;
7312
7312
  }, {
7313
7313
  type: "invoice.overdue";
7314
7314
  id: string;
7315
+ mode: "test" | "live";
7315
7316
  createdAt: string;
7316
7317
  data: {
7317
7318
  number: string;
7318
7319
  status: "void" | "draft" | "sent" | "paid" | "overdue";
7319
7320
  id: string;
7320
7321
  merchantId: string;
7321
- sessionId: string | null;
7322
7322
  createdAt: string;
7323
+ sessionId: string | null;
7323
7324
  currency: "USDC" | "EURC";
7324
7325
  updatedAt: string;
7325
7326
  note: string | null;
@@ -7340,7 +7341,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7340
7341
  paidAt: string | null;
7341
7342
  sentAt: string | null;
7342
7343
  };
7343
- mode: "test" | "live";
7344
7344
  apiVersion: string;
7345
7345
  }>, z.ZodObject<{
7346
7346
  id: z.ZodString;
@@ -7362,8 +7362,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7362
7362
  }, "strip", z.ZodTypeAny, {
7363
7363
  id: string;
7364
7364
  merchantId: string;
7365
- subscriptionId: string | null;
7366
7365
  createdAt: string;
7366
+ subscriptionId: string | null;
7367
7367
  metadata: Record<string, string | number | boolean | null>;
7368
7368
  outcome: "pending" | "skipped" | "success" | "failure";
7369
7369
  transactionId: string | null;
@@ -7373,8 +7373,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7373
7373
  }, {
7374
7374
  id: string;
7375
7375
  merchantId: string;
7376
- subscriptionId: string | null;
7377
7376
  createdAt: string;
7377
+ subscriptionId: string | null;
7378
7378
  outcome: "pending" | "skipped" | "success" | "failure";
7379
7379
  transactionId: string | null;
7380
7380
  capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
@@ -7385,12 +7385,13 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7385
7385
  }, "strip", z.ZodTypeAny, {
7386
7386
  type: "agent.action_executed";
7387
7387
  id: string;
7388
+ mode: "test" | "live";
7388
7389
  createdAt: string;
7389
7390
  data: {
7390
7391
  id: string;
7391
7392
  merchantId: string;
7392
- subscriptionId: string | null;
7393
7393
  createdAt: string;
7394
+ subscriptionId: string | null;
7394
7395
  metadata: Record<string, string | number | boolean | null>;
7395
7396
  outcome: "pending" | "skipped" | "success" | "failure";
7396
7397
  transactionId: string | null;
@@ -7398,17 +7399,17 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7398
7399
  actionType: "recovery_notification_sent" | "recovery_retry_scheduled" | "recovery_retry_executed" | "recovery_abandoned" | "routing_bridge_initiated" | "routing_payment_completed" | "cashflow_digest_sent" | "cashflow_anomaly_flagged" | "cashflow_yield_converted" | "commerce_job_created" | "commerce_job_approved" | "commerce_job_completed" | "commerce_job_disputed";
7399
7400
  jobId: string | null;
7400
7401
  };
7401
- mode: "test" | "live";
7402
7402
  apiVersion: string;
7403
7403
  }, {
7404
7404
  type: "agent.action_executed";
7405
7405
  id: string;
7406
+ mode: "test" | "live";
7406
7407
  createdAt: string;
7407
7408
  data: {
7408
7409
  id: string;
7409
7410
  merchantId: string;
7410
- subscriptionId: string | null;
7411
7411
  createdAt: string;
7412
+ subscriptionId: string | null;
7412
7413
  outcome: "pending" | "skipped" | "success" | "failure";
7413
7414
  transactionId: string | null;
7414
7415
  capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
@@ -7416,7 +7417,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7416
7417
  jobId: string | null;
7417
7418
  metadata?: Record<string, string | number | boolean | null> | undefined;
7418
7419
  };
7419
- mode: "test" | "live";
7420
7420
  apiVersion: string;
7421
7421
  }>, z.ZodObject<{
7422
7422
  id: z.ZodString;
@@ -7473,6 +7473,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7473
7473
  }, "strip", z.ZodTypeAny, {
7474
7474
  type: "agent.job_proposed";
7475
7475
  id: string;
7476
+ mode: "test" | "live";
7476
7477
  createdAt: string;
7477
7478
  data: {
7478
7479
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -7490,11 +7491,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7490
7491
  escrowTxHash: string | null;
7491
7492
  releaseTxHash: string | null;
7492
7493
  };
7493
- mode: "test" | "live";
7494
7494
  apiVersion: string;
7495
7495
  }, {
7496
7496
  type: "agent.job_proposed";
7497
7497
  id: string;
7498
+ mode: "test" | "live";
7498
7499
  createdAt: string;
7499
7500
  data: {
7500
7501
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -7512,7 +7513,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7512
7513
  escrowTxHash: string | null;
7513
7514
  releaseTxHash: string | null;
7514
7515
  };
7515
- mode: "test" | "live";
7516
7516
  apiVersion: string;
7517
7517
  }>, z.ZodObject<{
7518
7518
  id: z.ZodString;
@@ -7569,6 +7569,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7569
7569
  }, "strip", z.ZodTypeAny, {
7570
7570
  type: "agent.job_completed";
7571
7571
  id: string;
7572
+ mode: "test" | "live";
7572
7573
  createdAt: string;
7573
7574
  data: {
7574
7575
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -7586,11 +7587,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7586
7587
  escrowTxHash: string | null;
7587
7588
  releaseTxHash: string | null;
7588
7589
  };
7589
- mode: "test" | "live";
7590
7590
  apiVersion: string;
7591
7591
  }, {
7592
7592
  type: "agent.job_completed";
7593
7593
  id: string;
7594
+ mode: "test" | "live";
7594
7595
  createdAt: string;
7595
7596
  data: {
7596
7597
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -7608,7 +7609,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7608
7609
  escrowTxHash: string | null;
7609
7610
  releaseTxHash: string | null;
7610
7611
  };
7611
- mode: "test" | "live";
7612
7612
  apiVersion: string;
7613
7613
  }>, z.ZodObject<{
7614
7614
  id: z.ZodString;
@@ -7665,6 +7665,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7665
7665
  }, "strip", z.ZodTypeAny, {
7666
7666
  type: "agent.job_disputed";
7667
7667
  id: string;
7668
+ mode: "test" | "live";
7668
7669
  createdAt: string;
7669
7670
  data: {
7670
7671
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -7682,11 +7683,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7682
7683
  escrowTxHash: string | null;
7683
7684
  releaseTxHash: string | null;
7684
7685
  };
7685
- mode: "test" | "live";
7686
7686
  apiVersion: string;
7687
7687
  }, {
7688
7688
  type: "agent.job_disputed";
7689
7689
  id: string;
7690
+ mode: "test" | "live";
7690
7691
  createdAt: string;
7691
7692
  data: {
7692
7693
  status: "cancelled" | "completed" | "proposed" | "accepted" | "funded" | "in_progress" | "delivered" | "approved" | "disputed" | "resolved" | "reclaimed";
@@ -7704,7 +7705,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7704
7705
  escrowTxHash: string | null;
7705
7706
  releaseTxHash: string | null;
7706
7707
  };
7707
- mode: "test" | "live";
7708
7708
  apiVersion: string;
7709
7709
  }>, z.ZodObject<{
7710
7710
  id: z.ZodString;
@@ -7728,69 +7728,69 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7728
7728
  }, "strip", z.ZodTypeAny, {
7729
7729
  status: "clear" | "flagged" | "blocked" | "error";
7730
7730
  id: string;
7731
+ merchantId: string | null;
7732
+ createdAt: string;
7731
7733
  walletAddress: string;
7732
7734
  provider: "trm" | "elliptic" | "disabled";
7733
7735
  riskScore: number | null;
7734
7736
  flags: string[];
7735
7737
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
7736
- merchantId: string | null;
7737
7738
  sessionId: string | null;
7738
7739
  subscriptionId: string | null;
7739
7740
  providerRequestId: string | null;
7740
- createdAt: string;
7741
7741
  }, {
7742
7742
  status: "clear" | "flagged" | "blocked" | "error";
7743
7743
  id: string;
7744
+ merchantId: string | null;
7745
+ createdAt: string;
7744
7746
  walletAddress: string;
7745
7747
  provider: "trm" | "elliptic" | "disabled";
7746
7748
  riskScore: number | null;
7747
7749
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
7748
- merchantId: string | null;
7749
7750
  sessionId: string | null;
7750
7751
  subscriptionId: string | null;
7751
7752
  providerRequestId: string | null;
7752
- createdAt: string;
7753
7753
  flags?: string[] | undefined;
7754
7754
  }>;
7755
7755
  }, "strip", z.ZodTypeAny, {
7756
7756
  type: "compliance.wallet_flagged";
7757
7757
  id: string;
7758
+ mode: "test" | "live";
7758
7759
  createdAt: string;
7759
7760
  data: {
7760
7761
  status: "clear" | "flagged" | "blocked" | "error";
7761
7762
  id: string;
7763
+ merchantId: string | null;
7764
+ createdAt: string;
7762
7765
  walletAddress: string;
7763
7766
  provider: "trm" | "elliptic" | "disabled";
7764
7767
  riskScore: number | null;
7765
7768
  flags: string[];
7766
7769
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
7767
- merchantId: string | null;
7768
7770
  sessionId: string | null;
7769
7771
  subscriptionId: string | null;
7770
7772
  providerRequestId: string | null;
7771
- createdAt: string;
7772
7773
  };
7773
- mode: "test" | "live";
7774
7774
  apiVersion: string;
7775
7775
  }, {
7776
7776
  type: "compliance.wallet_flagged";
7777
7777
  id: string;
7778
+ mode: "test" | "live";
7778
7779
  createdAt: string;
7779
7780
  data: {
7780
7781
  status: "clear" | "flagged" | "blocked" | "error";
7781
7782
  id: string;
7783
+ merchantId: string | null;
7784
+ createdAt: string;
7782
7785
  walletAddress: string;
7783
7786
  provider: "trm" | "elliptic" | "disabled";
7784
7787
  riskScore: number | null;
7785
7788
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
7786
- merchantId: string | null;
7787
7789
  sessionId: string | null;
7788
7790
  subscriptionId: string | null;
7789
7791
  providerRequestId: string | null;
7790
- createdAt: string;
7791
7792
  flags?: string[] | undefined;
7792
7793
  };
7793
- mode: "test" | "live";
7794
7794
  apiVersion: string;
7795
7795
  }>, z.ZodObject<{
7796
7796
  id: z.ZodString;
@@ -7814,69 +7814,69 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7814
7814
  }, "strip", z.ZodTypeAny, {
7815
7815
  status: "clear" | "flagged" | "blocked" | "error";
7816
7816
  id: string;
7817
+ merchantId: string | null;
7818
+ createdAt: string;
7817
7819
  walletAddress: string;
7818
7820
  provider: "trm" | "elliptic" | "disabled";
7819
7821
  riskScore: number | null;
7820
7822
  flags: string[];
7821
7823
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
7822
- merchantId: string | null;
7823
7824
  sessionId: string | null;
7824
7825
  subscriptionId: string | null;
7825
7826
  providerRequestId: string | null;
7826
- createdAt: string;
7827
7827
  }, {
7828
7828
  status: "clear" | "flagged" | "blocked" | "error";
7829
7829
  id: string;
7830
+ merchantId: string | null;
7831
+ createdAt: string;
7830
7832
  walletAddress: string;
7831
7833
  provider: "trm" | "elliptic" | "disabled";
7832
7834
  riskScore: number | null;
7833
7835
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
7834
- merchantId: string | null;
7835
7836
  sessionId: string | null;
7836
7837
  subscriptionId: string | null;
7837
7838
  providerRequestId: string | null;
7838
- createdAt: string;
7839
7839
  flags?: string[] | undefined;
7840
7840
  }>;
7841
7841
  }, "strip", z.ZodTypeAny, {
7842
7842
  type: "compliance.wallet_blocked";
7843
7843
  id: string;
7844
+ mode: "test" | "live";
7844
7845
  createdAt: string;
7845
7846
  data: {
7846
7847
  status: "clear" | "flagged" | "blocked" | "error";
7847
7848
  id: string;
7849
+ merchantId: string | null;
7850
+ createdAt: string;
7848
7851
  walletAddress: string;
7849
7852
  provider: "trm" | "elliptic" | "disabled";
7850
7853
  riskScore: number | null;
7851
7854
  flags: string[];
7852
7855
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
7853
- merchantId: string | null;
7854
7856
  sessionId: string | null;
7855
7857
  subscriptionId: string | null;
7856
7858
  providerRequestId: string | null;
7857
- createdAt: string;
7858
7859
  };
7859
- mode: "test" | "live";
7860
7860
  apiVersion: string;
7861
7861
  }, {
7862
7862
  type: "compliance.wallet_blocked";
7863
7863
  id: string;
7864
+ mode: "test" | "live";
7864
7865
  createdAt: string;
7865
7866
  data: {
7866
7867
  status: "clear" | "flagged" | "blocked" | "error";
7867
7868
  id: string;
7869
+ merchantId: string | null;
7870
+ createdAt: string;
7868
7871
  walletAddress: string;
7869
7872
  provider: "trm" | "elliptic" | "disabled";
7870
7873
  riskScore: number | null;
7871
7874
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
7872
- merchantId: string | null;
7873
7875
  sessionId: string | null;
7874
7876
  subscriptionId: string | null;
7875
7877
  providerRequestId: string | null;
7876
- createdAt: string;
7877
7878
  flags?: string[] | undefined;
7878
7879
  };
7879
- mode: "test" | "live";
7880
7880
  apiVersion: string;
7881
7881
  }>]>;
7882
7882
  type StrimzWebhookEvent = z.infer<typeof webhookEventSchema>;