@strimz/shared-types 0.13.0 → 0.14.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.
package/dist/events.d.cts CHANGED
@@ -1780,190 +1780,6 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
1780
1780
  createdAt: string;
1781
1781
  apiVersion: string;
1782
1782
  }>;
1783
- declare const subscriptionRecoveryOutcomeEventSchema: z.ZodObject<{
1784
- id: z.ZodString;
1785
- type: z.ZodLiteral<"subscription.recovery_outcome">;
1786
- apiVersion: z.ZodString;
1787
- mode: z.ZodEnum<["test", "live"]>;
1788
- createdAt: z.ZodString;
1789
- data: z.ZodObject<{
1790
- subscription: z.ZodObject<{
1791
- id: z.ZodString;
1792
- onchainSubscriptionId: z.ZodNullable<z.ZodNumber>;
1793
- merchantId: z.ZodString;
1794
- customerId: z.ZodString;
1795
- planId: z.ZodString;
1796
- status: z.ZodEnum<["trialing", "active", "at_risk", "paused", "cancelled", "lapsed"]>;
1797
- payerAddress: z.ZodEffects<z.ZodString, string, string>;
1798
- currency: z.ZodEnum<["USDC", "EURC"]>;
1799
- amount: z.ZodString;
1800
- interval: z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>;
1801
- intervalCount: z.ZodNumber;
1802
- trialEndsAt: z.ZodNullable<z.ZodString>;
1803
- currentPeriodStartAt: z.ZodString;
1804
- currentPeriodEndAt: z.ZodString;
1805
- nextChargeAt: z.ZodNullable<z.ZodString>;
1806
- gracePeriodHours: z.ZodNumber;
1807
- cancelledAt: z.ZodNullable<z.ZodString>;
1808
- metadata: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>;
1809
- createdAt: z.ZodString;
1810
- updatedAt: z.ZodString;
1811
- }, "strip", z.ZodTypeAny, {
1812
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
1813
- amount: string;
1814
- currency: "USDC" | "EURC";
1815
- customerId: string;
1816
- merchantId: string;
1817
- id: string;
1818
- createdAt: string;
1819
- updatedAt: string;
1820
- metadata: Record<string, string | number | boolean | null>;
1821
- payerAddress: string;
1822
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
1823
- intervalCount: number;
1824
- onchainSubscriptionId: number | null;
1825
- planId: string;
1826
- trialEndsAt: string | null;
1827
- currentPeriodStartAt: string;
1828
- currentPeriodEndAt: string;
1829
- nextChargeAt: string | null;
1830
- gracePeriodHours: number;
1831
- cancelledAt: string | null;
1832
- }, {
1833
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
1834
- amount: string;
1835
- currency: "USDC" | "EURC";
1836
- customerId: string;
1837
- merchantId: string;
1838
- id: string;
1839
- createdAt: string;
1840
- updatedAt: string;
1841
- payerAddress: string;
1842
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
1843
- intervalCount: number;
1844
- onchainSubscriptionId: number | null;
1845
- planId: string;
1846
- trialEndsAt: string | null;
1847
- currentPeriodStartAt: string;
1848
- currentPeriodEndAt: string;
1849
- nextChargeAt: string | null;
1850
- gracePeriodHours: number;
1851
- cancelledAt: string | null;
1852
- metadata?: Record<string, string | number | boolean | null> | undefined;
1853
- }>;
1854
- outcome: z.ZodEnum<["recovered", "churned"]>;
1855
- }, "strip", z.ZodTypeAny, {
1856
- outcome: "recovered" | "churned";
1857
- subscription: {
1858
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
1859
- amount: string;
1860
- currency: "USDC" | "EURC";
1861
- customerId: string;
1862
- merchantId: string;
1863
- id: string;
1864
- createdAt: string;
1865
- updatedAt: string;
1866
- metadata: Record<string, string | number | boolean | null>;
1867
- payerAddress: string;
1868
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
1869
- intervalCount: number;
1870
- onchainSubscriptionId: number | null;
1871
- planId: string;
1872
- trialEndsAt: string | null;
1873
- currentPeriodStartAt: string;
1874
- currentPeriodEndAt: string;
1875
- nextChargeAt: string | null;
1876
- gracePeriodHours: number;
1877
- cancelledAt: string | null;
1878
- };
1879
- }, {
1880
- outcome: "recovered" | "churned";
1881
- subscription: {
1882
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
1883
- amount: string;
1884
- currency: "USDC" | "EURC";
1885
- customerId: string;
1886
- merchantId: string;
1887
- id: string;
1888
- createdAt: string;
1889
- updatedAt: string;
1890
- payerAddress: string;
1891
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
1892
- intervalCount: number;
1893
- onchainSubscriptionId: number | null;
1894
- planId: string;
1895
- trialEndsAt: string | null;
1896
- currentPeriodStartAt: string;
1897
- currentPeriodEndAt: string;
1898
- nextChargeAt: string | null;
1899
- gracePeriodHours: number;
1900
- cancelledAt: string | null;
1901
- metadata?: Record<string, string | number | boolean | null> | undefined;
1902
- };
1903
- }>;
1904
- }, "strip", z.ZodTypeAny, {
1905
- type: "subscription.recovery_outcome";
1906
- mode: "test" | "live";
1907
- data: {
1908
- outcome: "recovered" | "churned";
1909
- subscription: {
1910
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
1911
- amount: string;
1912
- currency: "USDC" | "EURC";
1913
- customerId: string;
1914
- merchantId: string;
1915
- id: string;
1916
- createdAt: string;
1917
- updatedAt: string;
1918
- metadata: Record<string, string | number | boolean | null>;
1919
- payerAddress: string;
1920
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
1921
- intervalCount: number;
1922
- onchainSubscriptionId: number | null;
1923
- planId: string;
1924
- trialEndsAt: string | null;
1925
- currentPeriodStartAt: string;
1926
- currentPeriodEndAt: string;
1927
- nextChargeAt: string | null;
1928
- gracePeriodHours: number;
1929
- cancelledAt: string | null;
1930
- };
1931
- };
1932
- id: string;
1933
- createdAt: string;
1934
- apiVersion: string;
1935
- }, {
1936
- type: "subscription.recovery_outcome";
1937
- mode: "test" | "live";
1938
- data: {
1939
- outcome: "recovered" | "churned";
1940
- subscription: {
1941
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
1942
- amount: string;
1943
- currency: "USDC" | "EURC";
1944
- customerId: string;
1945
- merchantId: string;
1946
- id: string;
1947
- createdAt: string;
1948
- updatedAt: string;
1949
- payerAddress: string;
1950
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
1951
- intervalCount: number;
1952
- onchainSubscriptionId: number | null;
1953
- planId: string;
1954
- trialEndsAt: string | null;
1955
- currentPeriodStartAt: string;
1956
- currentPeriodEndAt: string;
1957
- nextChargeAt: string | null;
1958
- gracePeriodHours: number;
1959
- cancelledAt: string | null;
1960
- metadata?: Record<string, string | number | boolean | null> | undefined;
1961
- };
1962
- };
1963
- id: string;
1964
- createdAt: string;
1965
- apiVersion: string;
1966
- }>;
1967
1783
  declare const subscriptionCancelledEventSchema: z.ZodObject<{
1968
1784
  id: z.ZodString;
1969
1785
  type: z.ZodLiteral<"subscription.cancelled">;
@@ -2584,155 +2400,13 @@ declare const refundCompletedEventSchema: z.ZodObject<{
2584
2400
  netAmount: string;
2585
2401
  onchainTxHash: string;
2586
2402
  payerAddress: string;
2587
- subscriptionId: string | null;
2588
- kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
2589
- subscriptionChargeId: string | null;
2590
- refundId: string | null;
2591
- merchantAddress: string;
2592
- blockNumber: number;
2593
- blockTimestamp: string;
2594
- };
2595
- };
2596
- id: string;
2597
- createdAt: string;
2598
- apiVersion: string;
2599
- }>;
2600
- declare const refundFailedEventSchema: z.ZodObject<{
2601
- id: z.ZodString;
2602
- type: z.ZodLiteral<"refund.failed">;
2603
- apiVersion: z.ZodString;
2604
- mode: z.ZodEnum<["test", "live"]>;
2605
- createdAt: z.ZodString;
2606
- data: z.ZodObject<{
2607
- refund: z.ZodObject<{
2608
- id: z.ZodString;
2609
- merchantId: z.ZodString;
2610
- transactionId: z.ZodString;
2611
- amount: z.ZodString;
2612
- currency: z.ZodEnum<["USDC", "EURC"]>;
2613
- reason: z.ZodEnum<["customer_request", "product_issue", "duplicate_charge", "fraudulent", "other"]>;
2614
- note: z.ZodNullable<z.ZodString>;
2615
- status: z.ZodEnum<["pending", "awaiting_signature", "submitted", "completed", "failed", "cancelled"]>;
2616
- payerAddress: z.ZodEffects<z.ZodString, string, string>;
2617
- refundTxHash: z.ZodNullable<z.ZodString>;
2618
- failureReason: z.ZodNullable<z.ZodString>;
2619
- initiatedBy: z.ZodString;
2620
- createdAt: z.ZodString;
2621
- completedAt: z.ZodNullable<z.ZodString>;
2622
- }, "strip", z.ZodTypeAny, {
2623
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
2624
- amount: string;
2625
- currency: "USDC" | "EURC";
2626
- merchantId: string;
2627
- id: string;
2628
- note: string | null;
2629
- createdAt: string;
2630
- transactionId: string;
2631
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
2632
- payerAddress: string;
2633
- refundTxHash: string | null;
2634
- failureReason: string | null;
2635
- initiatedBy: string;
2636
- completedAt: string | null;
2637
- }, {
2638
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
2639
- amount: string;
2640
- currency: "USDC" | "EURC";
2641
- merchantId: string;
2642
- id: string;
2643
- note: string | null;
2644
- createdAt: string;
2645
- transactionId: string;
2646
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
2647
- payerAddress: string;
2648
- refundTxHash: string | null;
2649
- failureReason: string | null;
2650
- initiatedBy: string;
2651
- completedAt: string | null;
2652
- }>;
2653
- reason: z.ZodString;
2654
- }, "strip", z.ZodTypeAny, {
2655
- reason: string;
2656
- refund: {
2657
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
2658
- amount: string;
2659
- currency: "USDC" | "EURC";
2660
- merchantId: string;
2661
- id: string;
2662
- note: string | null;
2663
- createdAt: string;
2664
- transactionId: string;
2665
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
2666
- payerAddress: string;
2667
- refundTxHash: string | null;
2668
- failureReason: string | null;
2669
- initiatedBy: string;
2670
- completedAt: string | null;
2671
- };
2672
- }, {
2673
- reason: string;
2674
- refund: {
2675
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
2676
- amount: string;
2677
- currency: "USDC" | "EURC";
2678
- merchantId: string;
2679
- id: string;
2680
- note: string | null;
2681
- createdAt: string;
2682
- transactionId: string;
2683
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
2684
- payerAddress: string;
2685
- refundTxHash: string | null;
2686
- failureReason: string | null;
2687
- initiatedBy: string;
2688
- completedAt: string | null;
2689
- };
2690
- }>;
2691
- }, "strip", z.ZodTypeAny, {
2692
- type: "refund.failed";
2693
- mode: "test" | "live";
2694
- data: {
2695
- reason: string;
2696
- refund: {
2697
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
2698
- amount: string;
2699
- currency: "USDC" | "EURC";
2700
- merchantId: string;
2701
- id: string;
2702
- note: string | null;
2703
- createdAt: string;
2704
- transactionId: string;
2705
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
2706
- payerAddress: string;
2707
- refundTxHash: string | null;
2708
- failureReason: string | null;
2709
- initiatedBy: string;
2710
- completedAt: string | null;
2711
- };
2712
- };
2713
- id: string;
2714
- createdAt: string;
2715
- apiVersion: string;
2716
- }, {
2717
- type: "refund.failed";
2718
- mode: "test" | "live";
2719
- data: {
2720
- reason: string;
2721
- refund: {
2722
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
2723
- amount: string;
2724
- currency: "USDC" | "EURC";
2725
- merchantId: string;
2726
- id: string;
2727
- note: string | null;
2728
- createdAt: string;
2729
- transactionId: string;
2730
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
2731
- payerAddress: string;
2732
- refundTxHash: string | null;
2733
- failureReason: string | null;
2734
- initiatedBy: string;
2735
- completedAt: string | null;
2403
+ subscriptionId: string | null;
2404
+ kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
2405
+ subscriptionChargeId: string | null;
2406
+ refundId: string | null;
2407
+ merchantAddress: string;
2408
+ blockNumber: number;
2409
+ blockTimestamp: string;
2736
2410
  };
2737
2411
  };
2738
2412
  id: string;
@@ -3414,83 +3088,6 @@ declare const invoiceOverdueEventSchema: z.ZodObject<{
3414
3088
  createdAt: string;
3415
3089
  apiVersion: string;
3416
3090
  }>;
3417
- declare const agentActionExecutedEventSchema: z.ZodObject<{
3418
- id: z.ZodString;
3419
- type: z.ZodLiteral<"agent.action_executed">;
3420
- apiVersion: z.ZodString;
3421
- mode: z.ZodEnum<["test", "live"]>;
3422
- createdAt: z.ZodString;
3423
- data: z.ZodObject<{
3424
- id: z.ZodString;
3425
- merchantId: z.ZodString;
3426
- capability: z.ZodEnum<["identity", "recovery", "routing", "cashflow", "commerce", "pricing_intelligence"]>;
3427
- actionType: z.ZodEnum<["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"]>;
3428
- outcome: z.ZodEnum<["success", "failure", "pending", "skipped"]>;
3429
- subscriptionId: z.ZodNullable<z.ZodString>;
3430
- transactionId: z.ZodNullable<z.ZodString>;
3431
- jobId: z.ZodNullable<z.ZodString>;
3432
- metadata: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>;
3433
- createdAt: z.ZodString;
3434
- }, "strip", z.ZodTypeAny, {
3435
- merchantId: string;
3436
- id: string;
3437
- createdAt: string;
3438
- metadata: Record<string, string | number | boolean | null>;
3439
- transactionId: string | null;
3440
- subscriptionId: string | null;
3441
- outcome: "pending" | "skipped" | "success" | "failure";
3442
- capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
3443
- 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";
3444
- jobId: string | null;
3445
- }, {
3446
- merchantId: string;
3447
- id: string;
3448
- createdAt: string;
3449
- transactionId: string | null;
3450
- subscriptionId: string | null;
3451
- outcome: "pending" | "skipped" | "success" | "failure";
3452
- capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
3453
- 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";
3454
- jobId: string | null;
3455
- metadata?: Record<string, string | number | boolean | null> | undefined;
3456
- }>;
3457
- }, "strip", z.ZodTypeAny, {
3458
- type: "agent.action_executed";
3459
- mode: "test" | "live";
3460
- data: {
3461
- merchantId: string;
3462
- id: string;
3463
- createdAt: string;
3464
- metadata: Record<string, string | number | boolean | null>;
3465
- transactionId: string | null;
3466
- subscriptionId: string | null;
3467
- outcome: "pending" | "skipped" | "success" | "failure";
3468
- capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
3469
- 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";
3470
- jobId: string | null;
3471
- };
3472
- id: string;
3473
- createdAt: string;
3474
- apiVersion: string;
3475
- }, {
3476
- type: "agent.action_executed";
3477
- mode: "test" | "live";
3478
- data: {
3479
- merchantId: string;
3480
- id: string;
3481
- createdAt: string;
3482
- transactionId: string | null;
3483
- subscriptionId: string | null;
3484
- outcome: "pending" | "skipped" | "success" | "failure";
3485
- capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
3486
- 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";
3487
- jobId: string | null;
3488
- metadata?: Record<string, string | number | boolean | null> | undefined;
3489
- };
3490
- id: string;
3491
- createdAt: string;
3492
- apiVersion: string;
3493
- }>;
3494
3091
  declare const agentJobProposedEventSchema: z.ZodObject<{
3495
3092
  id: z.ZodString;
3496
3093
  type: z.ZodLiteral<"agent.job_proposed">;
@@ -5435,203 +5032,11 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5435
5032
  scheduledAt: string;
5436
5033
  executedAt: string | null;
5437
5034
  };
5438
- }>;
5439
- }, "strip", z.ZodTypeAny, {
5440
- type: "subscription.charge_failed";
5441
- mode: "test" | "live";
5442
- data: {
5443
- subscription: {
5444
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5445
- amount: string;
5446
- currency: "USDC" | "EURC";
5447
- customerId: string;
5448
- merchantId: string;
5449
- id: string;
5450
- createdAt: string;
5451
- updatedAt: string;
5452
- metadata: Record<string, string | number | boolean | null>;
5453
- payerAddress: string;
5454
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
5455
- intervalCount: number;
5456
- onchainSubscriptionId: number | null;
5457
- planId: string;
5458
- trialEndsAt: string | null;
5459
- currentPeriodStartAt: string;
5460
- currentPeriodEndAt: string;
5461
- nextChargeAt: string | null;
5462
- gracePeriodHours: number;
5463
- cancelledAt: string | null;
5464
- };
5465
- charge: {
5466
- status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5467
- amount: string;
5468
- currency: "USDC" | "EURC";
5469
- merchantId: string;
5470
- id: string;
5471
- createdAt: string;
5472
- updatedAt: string;
5473
- onchainTxHash: string | null;
5474
- failureReason: string | null;
5475
- subscriptionId: string;
5476
- chargeAttemptId: string;
5477
- periodStartAt: string;
5478
- periodEndAt: string;
5479
- outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
5480
- attemptNumber: number;
5481
- scheduledAt: string;
5482
- executedAt: string | null;
5483
- };
5484
- };
5485
- id: string;
5486
- createdAt: string;
5487
- apiVersion: string;
5488
- }, {
5489
- type: "subscription.charge_failed";
5490
- mode: "test" | "live";
5491
- data: {
5492
- subscription: {
5493
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5494
- amount: string;
5495
- currency: "USDC" | "EURC";
5496
- customerId: string;
5497
- merchantId: string;
5498
- id: string;
5499
- createdAt: string;
5500
- updatedAt: string;
5501
- payerAddress: string;
5502
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
5503
- intervalCount: number;
5504
- onchainSubscriptionId: number | null;
5505
- planId: string;
5506
- trialEndsAt: string | null;
5507
- currentPeriodStartAt: string;
5508
- currentPeriodEndAt: string;
5509
- nextChargeAt: string | null;
5510
- gracePeriodHours: number;
5511
- cancelledAt: string | null;
5512
- metadata?: Record<string, string | number | boolean | null> | undefined;
5513
- };
5514
- charge: {
5515
- status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5516
- amount: string;
5517
- currency: "USDC" | "EURC";
5518
- merchantId: string;
5519
- id: string;
5520
- createdAt: string;
5521
- updatedAt: string;
5522
- onchainTxHash: string | null;
5523
- failureReason: string | null;
5524
- subscriptionId: string;
5525
- chargeAttemptId: string;
5526
- periodStartAt: string;
5527
- periodEndAt: string;
5528
- outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
5529
- attemptNumber: number;
5530
- scheduledAt: string;
5531
- executedAt: string | null;
5532
- };
5533
- };
5534
- id: string;
5535
- createdAt: string;
5536
- apiVersion: string;
5537
- }>, z.ZodObject<{
5538
- id: z.ZodString;
5539
- type: z.ZodLiteral<"subscription.recovery_attempt">;
5540
- apiVersion: z.ZodString;
5541
- mode: z.ZodEnum<["test", "live"]>;
5542
- createdAt: z.ZodString;
5543
- data: z.ZodObject<{
5544
- subscription: z.ZodObject<{
5545
- id: z.ZodString;
5546
- onchainSubscriptionId: z.ZodNullable<z.ZodNumber>;
5547
- merchantId: z.ZodString;
5548
- customerId: z.ZodString;
5549
- planId: z.ZodString;
5550
- status: z.ZodEnum<["trialing", "active", "at_risk", "paused", "cancelled", "lapsed"]>;
5551
- payerAddress: z.ZodEffects<z.ZodString, string, string>;
5552
- currency: z.ZodEnum<["USDC", "EURC"]>;
5553
- amount: z.ZodString;
5554
- interval: z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>;
5555
- intervalCount: z.ZodNumber;
5556
- trialEndsAt: z.ZodNullable<z.ZodString>;
5557
- currentPeriodStartAt: z.ZodString;
5558
- currentPeriodEndAt: z.ZodString;
5559
- nextChargeAt: z.ZodNullable<z.ZodString>;
5560
- gracePeriodHours: z.ZodNumber;
5561
- cancelledAt: z.ZodNullable<z.ZodString>;
5562
- metadata: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>;
5563
- createdAt: z.ZodString;
5564
- updatedAt: z.ZodString;
5565
- }, "strip", z.ZodTypeAny, {
5566
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5567
- amount: string;
5568
- currency: "USDC" | "EURC";
5569
- customerId: string;
5570
- merchantId: string;
5571
- id: string;
5572
- createdAt: string;
5573
- updatedAt: string;
5574
- metadata: Record<string, string | number | boolean | null>;
5575
- payerAddress: string;
5576
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
5577
- intervalCount: number;
5578
- onchainSubscriptionId: number | null;
5579
- planId: string;
5580
- trialEndsAt: string | null;
5581
- currentPeriodStartAt: string;
5582
- currentPeriodEndAt: string;
5583
- nextChargeAt: string | null;
5584
- gracePeriodHours: number;
5585
- cancelledAt: string | null;
5586
- }, {
5587
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5588
- amount: string;
5589
- currency: "USDC" | "EURC";
5590
- customerId: string;
5591
- merchantId: string;
5592
- id: string;
5593
- createdAt: string;
5594
- updatedAt: string;
5595
- payerAddress: string;
5596
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
5597
- intervalCount: number;
5598
- onchainSubscriptionId: number | null;
5599
- planId: string;
5600
- trialEndsAt: string | null;
5601
- currentPeriodStartAt: string;
5602
- currentPeriodEndAt: string;
5603
- nextChargeAt: string | null;
5604
- gracePeriodHours: number;
5605
- cancelledAt: string | null;
5606
- metadata?: Record<string, string | number | boolean | null> | undefined;
5607
- }>;
5608
- attemptNumber: z.ZodNumber;
5609
- }, "strip", z.ZodTypeAny, {
5610
- attemptNumber: number;
5611
- subscription: {
5612
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5613
- amount: string;
5614
- currency: "USDC" | "EURC";
5615
- customerId: string;
5616
- merchantId: string;
5617
- id: string;
5618
- createdAt: string;
5619
- updatedAt: string;
5620
- metadata: Record<string, string | number | boolean | null>;
5621
- payerAddress: string;
5622
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
5623
- intervalCount: number;
5624
- onchainSubscriptionId: number | null;
5625
- planId: string;
5626
- trialEndsAt: string | null;
5627
- currentPeriodStartAt: string;
5628
- currentPeriodEndAt: string;
5629
- nextChargeAt: string | null;
5630
- gracePeriodHours: number;
5631
- cancelledAt: string | null;
5632
- };
5633
- }, {
5634
- attemptNumber: number;
5035
+ }>;
5036
+ }, "strip", z.ZodTypeAny, {
5037
+ type: "subscription.charge_failed";
5038
+ mode: "test" | "live";
5039
+ data: {
5635
5040
  subscription: {
5636
5041
  status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5637
5042
  amount: string;
@@ -5641,6 +5046,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5641
5046
  id: string;
5642
5047
  createdAt: string;
5643
5048
  updatedAt: string;
5049
+ metadata: Record<string, string | number | boolean | null>;
5644
5050
  payerAddress: string;
5645
5051
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
5646
5052
  intervalCount: number;
@@ -5652,45 +5058,34 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5652
5058
  nextChargeAt: string | null;
5653
5059
  gracePeriodHours: number;
5654
5060
  cancelledAt: string | null;
5655
- metadata?: Record<string, string | number | boolean | null> | undefined;
5656
5061
  };
5657
- }>;
5658
- }, "strip", z.ZodTypeAny, {
5659
- type: "subscription.recovery_attempt";
5660
- mode: "test" | "live";
5661
- data: {
5662
- attemptNumber: number;
5663
- subscription: {
5664
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5062
+ charge: {
5063
+ status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5665
5064
  amount: string;
5666
5065
  currency: "USDC" | "EURC";
5667
- customerId: string;
5668
5066
  merchantId: string;
5669
5067
  id: string;
5670
5068
  createdAt: string;
5671
5069
  updatedAt: string;
5672
- metadata: Record<string, string | number | boolean | null>;
5673
- payerAddress: string;
5674
- interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
5675
- intervalCount: number;
5676
- onchainSubscriptionId: number | null;
5677
- planId: string;
5678
- trialEndsAt: string | null;
5679
- currentPeriodStartAt: string;
5680
- currentPeriodEndAt: string;
5681
- nextChargeAt: string | null;
5682
- gracePeriodHours: number;
5683
- cancelledAt: string | null;
5070
+ onchainTxHash: string | null;
5071
+ failureReason: string | null;
5072
+ subscriptionId: string;
5073
+ chargeAttemptId: string;
5074
+ periodStartAt: string;
5075
+ periodEndAt: string;
5076
+ outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
5077
+ attemptNumber: number;
5078
+ scheduledAt: string;
5079
+ executedAt: string | null;
5684
5080
  };
5685
5081
  };
5686
5082
  id: string;
5687
5083
  createdAt: string;
5688
5084
  apiVersion: string;
5689
5085
  }, {
5690
- type: "subscription.recovery_attempt";
5086
+ type: "subscription.charge_failed";
5691
5087
  mode: "test" | "live";
5692
5088
  data: {
5693
- attemptNumber: number;
5694
5089
  subscription: {
5695
5090
  status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5696
5091
  amount: string;
@@ -5713,13 +5108,32 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5713
5108
  cancelledAt: string | null;
5714
5109
  metadata?: Record<string, string | number | boolean | null> | undefined;
5715
5110
  };
5111
+ charge: {
5112
+ status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
5113
+ amount: string;
5114
+ currency: "USDC" | "EURC";
5115
+ merchantId: string;
5116
+ id: string;
5117
+ createdAt: string;
5118
+ updatedAt: string;
5119
+ onchainTxHash: string | null;
5120
+ failureReason: string | null;
5121
+ subscriptionId: string;
5122
+ chargeAttemptId: string;
5123
+ periodStartAt: string;
5124
+ periodEndAt: string;
5125
+ outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
5126
+ attemptNumber: number;
5127
+ scheduledAt: string;
5128
+ executedAt: string | null;
5129
+ };
5716
5130
  };
5717
5131
  id: string;
5718
5132
  createdAt: string;
5719
5133
  apiVersion: string;
5720
5134
  }>, z.ZodObject<{
5721
5135
  id: z.ZodString;
5722
- type: z.ZodLiteral<"subscription.recovery_outcome">;
5136
+ type: z.ZodLiteral<"subscription.recovery_attempt">;
5723
5137
  apiVersion: z.ZodString;
5724
5138
  mode: z.ZodEnum<["test", "live"]>;
5725
5139
  createdAt: z.ZodString;
@@ -5788,9 +5202,9 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5788
5202
  cancelledAt: string | null;
5789
5203
  metadata?: Record<string, string | number | boolean | null> | undefined;
5790
5204
  }>;
5791
- outcome: z.ZodEnum<["recovered", "churned"]>;
5205
+ attemptNumber: z.ZodNumber;
5792
5206
  }, "strip", z.ZodTypeAny, {
5793
- outcome: "recovered" | "churned";
5207
+ attemptNumber: number;
5794
5208
  subscription: {
5795
5209
  status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5796
5210
  amount: string;
@@ -5814,7 +5228,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5814
5228
  cancelledAt: string | null;
5815
5229
  };
5816
5230
  }, {
5817
- outcome: "recovered" | "churned";
5231
+ attemptNumber: number;
5818
5232
  subscription: {
5819
5233
  status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5820
5234
  amount: string;
@@ -5839,10 +5253,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5839
5253
  };
5840
5254
  }>;
5841
5255
  }, "strip", z.ZodTypeAny, {
5842
- type: "subscription.recovery_outcome";
5256
+ type: "subscription.recovery_attempt";
5843
5257
  mode: "test" | "live";
5844
5258
  data: {
5845
- outcome: "recovered" | "churned";
5259
+ attemptNumber: number;
5846
5260
  subscription: {
5847
5261
  status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5848
5262
  amount: string;
@@ -5870,10 +5284,10 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5870
5284
  createdAt: string;
5871
5285
  apiVersion: string;
5872
5286
  }, {
5873
- type: "subscription.recovery_outcome";
5287
+ type: "subscription.recovery_attempt";
5874
5288
  mode: "test" | "live";
5875
5289
  data: {
5876
- outcome: "recovered" | "churned";
5290
+ attemptNumber: number;
5877
5291
  subscription: {
5878
5292
  status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
5879
5293
  amount: string;
@@ -6529,147 +5943,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6529
5943
  id: string;
6530
5944
  createdAt: string;
6531
5945
  apiVersion: string;
6532
- }>, z.ZodObject<{
6533
- id: z.ZodString;
6534
- type: z.ZodLiteral<"refund.failed">;
6535
- apiVersion: z.ZodString;
6536
- mode: z.ZodEnum<["test", "live"]>;
6537
- createdAt: z.ZodString;
6538
- data: z.ZodObject<{
6539
- refund: z.ZodObject<{
6540
- id: z.ZodString;
6541
- merchantId: z.ZodString;
6542
- transactionId: z.ZodString;
6543
- amount: z.ZodString;
6544
- currency: z.ZodEnum<["USDC", "EURC"]>;
6545
- reason: z.ZodEnum<["customer_request", "product_issue", "duplicate_charge", "fraudulent", "other"]>;
6546
- note: z.ZodNullable<z.ZodString>;
6547
- status: z.ZodEnum<["pending", "awaiting_signature", "submitted", "completed", "failed", "cancelled"]>;
6548
- payerAddress: z.ZodEffects<z.ZodString, string, string>;
6549
- refundTxHash: z.ZodNullable<z.ZodString>;
6550
- failureReason: z.ZodNullable<z.ZodString>;
6551
- initiatedBy: z.ZodString;
6552
- createdAt: z.ZodString;
6553
- completedAt: z.ZodNullable<z.ZodString>;
6554
- }, "strip", z.ZodTypeAny, {
6555
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
6556
- amount: string;
6557
- currency: "USDC" | "EURC";
6558
- merchantId: string;
6559
- id: string;
6560
- note: string | null;
6561
- createdAt: string;
6562
- transactionId: string;
6563
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
6564
- payerAddress: string;
6565
- refundTxHash: string | null;
6566
- failureReason: string | null;
6567
- initiatedBy: string;
6568
- completedAt: string | null;
6569
- }, {
6570
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
6571
- amount: string;
6572
- currency: "USDC" | "EURC";
6573
- merchantId: string;
6574
- id: string;
6575
- note: string | null;
6576
- createdAt: string;
6577
- transactionId: string;
6578
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
6579
- payerAddress: string;
6580
- refundTxHash: string | null;
6581
- failureReason: string | null;
6582
- initiatedBy: string;
6583
- completedAt: string | null;
6584
- }>;
6585
- reason: z.ZodString;
6586
- }, "strip", z.ZodTypeAny, {
6587
- reason: string;
6588
- refund: {
6589
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
6590
- amount: string;
6591
- currency: "USDC" | "EURC";
6592
- merchantId: string;
6593
- id: string;
6594
- note: string | null;
6595
- createdAt: string;
6596
- transactionId: string;
6597
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
6598
- payerAddress: string;
6599
- refundTxHash: string | null;
6600
- failureReason: string | null;
6601
- initiatedBy: string;
6602
- completedAt: string | null;
6603
- };
6604
- }, {
6605
- reason: string;
6606
- refund: {
6607
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
6608
- amount: string;
6609
- currency: "USDC" | "EURC";
6610
- merchantId: string;
6611
- id: string;
6612
- note: string | null;
6613
- createdAt: string;
6614
- transactionId: string;
6615
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
6616
- payerAddress: string;
6617
- refundTxHash: string | null;
6618
- failureReason: string | null;
6619
- initiatedBy: string;
6620
- completedAt: string | null;
6621
- };
6622
- }>;
6623
- }, "strip", z.ZodTypeAny, {
6624
- type: "refund.failed";
6625
- mode: "test" | "live";
6626
- data: {
6627
- reason: string;
6628
- refund: {
6629
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
6630
- amount: string;
6631
- currency: "USDC" | "EURC";
6632
- merchantId: string;
6633
- id: string;
6634
- note: string | null;
6635
- createdAt: string;
6636
- transactionId: string;
6637
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
6638
- payerAddress: string;
6639
- refundTxHash: string | null;
6640
- failureReason: string | null;
6641
- initiatedBy: string;
6642
- completedAt: string | null;
6643
- };
6644
- };
6645
- id: string;
6646
- createdAt: string;
6647
- apiVersion: string;
6648
- }, {
6649
- type: "refund.failed";
6650
- mode: "test" | "live";
6651
- data: {
6652
- reason: string;
6653
- refund: {
6654
- status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
6655
- amount: string;
6656
- currency: "USDC" | "EURC";
6657
- merchantId: string;
6658
- id: string;
6659
- note: string | null;
6660
- createdAt: string;
6661
- transactionId: string;
6662
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
6663
- payerAddress: string;
6664
- refundTxHash: string | null;
6665
- failureReason: string | null;
6666
- initiatedBy: string;
6667
- completedAt: string | null;
6668
- };
6669
- };
6670
- id: string;
6671
- createdAt: string;
6672
- apiVersion: string;
6673
5946
  }>, z.ZodObject<{
6674
5947
  id: z.ZodString;
6675
5948
  type: z.ZodLiteral<"invoice.created">;
@@ -7342,82 +6615,6 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7342
6615
  id: string;
7343
6616
  createdAt: string;
7344
6617
  apiVersion: string;
7345
- }>, z.ZodObject<{
7346
- id: z.ZodString;
7347
- type: z.ZodLiteral<"agent.action_executed">;
7348
- apiVersion: z.ZodString;
7349
- mode: z.ZodEnum<["test", "live"]>;
7350
- createdAt: z.ZodString;
7351
- data: z.ZodObject<{
7352
- id: z.ZodString;
7353
- merchantId: z.ZodString;
7354
- capability: z.ZodEnum<["identity", "recovery", "routing", "cashflow", "commerce", "pricing_intelligence"]>;
7355
- actionType: z.ZodEnum<["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"]>;
7356
- outcome: z.ZodEnum<["success", "failure", "pending", "skipped"]>;
7357
- subscriptionId: z.ZodNullable<z.ZodString>;
7358
- transactionId: z.ZodNullable<z.ZodString>;
7359
- jobId: z.ZodNullable<z.ZodString>;
7360
- metadata: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>;
7361
- createdAt: z.ZodString;
7362
- }, "strip", z.ZodTypeAny, {
7363
- merchantId: string;
7364
- id: string;
7365
- createdAt: string;
7366
- metadata: Record<string, string | number | boolean | null>;
7367
- transactionId: string | null;
7368
- subscriptionId: string | null;
7369
- outcome: "pending" | "skipped" | "success" | "failure";
7370
- capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
7371
- 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";
7372
- jobId: string | null;
7373
- }, {
7374
- merchantId: string;
7375
- id: string;
7376
- createdAt: string;
7377
- transactionId: string | null;
7378
- subscriptionId: string | null;
7379
- outcome: "pending" | "skipped" | "success" | "failure";
7380
- capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
7381
- 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";
7382
- jobId: string | null;
7383
- metadata?: Record<string, string | number | boolean | null> | undefined;
7384
- }>;
7385
- }, "strip", z.ZodTypeAny, {
7386
- type: "agent.action_executed";
7387
- mode: "test" | "live";
7388
- data: {
7389
- merchantId: string;
7390
- id: string;
7391
- createdAt: string;
7392
- metadata: Record<string, string | number | boolean | null>;
7393
- transactionId: string | null;
7394
- subscriptionId: string | null;
7395
- outcome: "pending" | "skipped" | "success" | "failure";
7396
- capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
7397
- 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";
7398
- jobId: string | null;
7399
- };
7400
- id: string;
7401
- createdAt: string;
7402
- apiVersion: string;
7403
- }, {
7404
- type: "agent.action_executed";
7405
- mode: "test" | "live";
7406
- data: {
7407
- merchantId: string;
7408
- id: string;
7409
- createdAt: string;
7410
- transactionId: string | null;
7411
- subscriptionId: string | null;
7412
- outcome: "pending" | "skipped" | "success" | "failure";
7413
- capability: "identity" | "recovery" | "routing" | "cashflow" | "commerce" | "pricing_intelligence";
7414
- 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";
7415
- jobId: string | null;
7416
- metadata?: Record<string, string | number | boolean | null> | undefined;
7417
- };
7418
- id: string;
7419
- createdAt: string;
7420
- apiVersion: string;
7421
6618
  }>, z.ZodObject<{
7422
6619
  id: z.ZodString;
7423
6620
  type: z.ZodLiteral<"agent.job_proposed">;
@@ -7888,20 +7085,17 @@ type SubscriptionCreatedEvent = z.infer<typeof subscriptionCreatedEventSchema>;
7888
7085
  type SubscriptionChargedEvent = z.infer<typeof subscriptionChargedEventSchema>;
7889
7086
  type SubscriptionChargeFailedEvent = z.infer<typeof subscriptionChargeFailedEventSchema>;
7890
7087
  type SubscriptionRecoveryAttemptEvent = z.infer<typeof subscriptionRecoveryAttemptEventSchema>;
7891
- type SubscriptionRecoveryOutcomeEvent = z.infer<typeof subscriptionRecoveryOutcomeEventSchema>;
7892
7088
  type SubscriptionCancelledEvent = z.infer<typeof subscriptionCancelledEventSchema>;
7893
7089
  type SubscriptionLapsedEvent = z.infer<typeof subscriptionLapsedEventSchema>;
7894
7090
  type RefundCreatedEvent = z.infer<typeof refundCreatedEventSchema>;
7895
7091
  type RefundCompletedEvent = z.infer<typeof refundCompletedEventSchema>;
7896
- type RefundFailedEvent = z.infer<typeof refundFailedEventSchema>;
7897
7092
  type InvoiceCreatedEvent = z.infer<typeof invoiceCreatedEventSchema>;
7898
7093
  type InvoicePaidEvent = z.infer<typeof invoicePaidEventSchema>;
7899
7094
  type InvoiceOverdueEvent = z.infer<typeof invoiceOverdueEventSchema>;
7900
- type AgentActionExecutedEvent = z.infer<typeof agentActionExecutedEventSchema>;
7901
7095
  type AgentJobProposedEvent = z.infer<typeof agentJobProposedEventSchema>;
7902
7096
  type AgentJobCompletedEvent = z.infer<typeof agentJobCompletedEventSchema>;
7903
7097
  type AgentJobDisputedEvent = z.infer<typeof agentJobDisputedEventSchema>;
7904
7098
  type ComplianceWalletFlaggedEvent = z.infer<typeof complianceWalletFlaggedEventSchema>;
7905
7099
  type ComplianceWalletBlockedEvent = z.infer<typeof complianceWalletBlockedEventSchema>;
7906
7100
 
7907
- export { type AgentActionExecutedEvent, type AgentJobCompletedEvent, type AgentJobDisputedEvent, type AgentJobProposedEvent, type ComplianceWalletBlockedEvent, type ComplianceWalletFlaggedEvent, type InvoiceCreatedEvent, type InvoiceOverdueEvent, type InvoicePaidEvent, type PaymentCompletedEvent, type PaymentCreatedEvent, type PaymentFailedEvent, type RefundCompletedEvent, type RefundCreatedEvent, type RefundFailedEvent, type StrimzWebhookEvent, type SubscriptionCancelledEvent, type SubscriptionChargeFailedEvent, type SubscriptionChargedEvent, type SubscriptionCreatedEvent, type SubscriptionLapsedEvent, type SubscriptionRecoveryAttemptEvent, type SubscriptionRecoveryOutcomeEvent, agentActionExecutedEventSchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, refundFailedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionRecoveryAttemptEventSchema, subscriptionRecoveryOutcomeEventSchema, webhookEventSchema };
7101
+ export { type AgentJobCompletedEvent, type AgentJobDisputedEvent, type AgentJobProposedEvent, type ComplianceWalletBlockedEvent, type ComplianceWalletFlaggedEvent, type InvoiceCreatedEvent, type InvoiceOverdueEvent, type InvoicePaidEvent, type PaymentCompletedEvent, type PaymentCreatedEvent, type PaymentFailedEvent, type RefundCompletedEvent, type RefundCreatedEvent, type StrimzWebhookEvent, type SubscriptionCancelledEvent, type SubscriptionChargeFailedEvent, type SubscriptionChargedEvent, type SubscriptionCreatedEvent, type SubscriptionLapsedEvent, type SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema };