@zkp2p/cash 0.4.6 → 0.4.8

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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IntentStatus, C as CashPayoutInfo, a as IntentEntity, b as CashBuyerProfile, c as CashDepositInput, d as CreateDepositParamsArg, e as CashOrder, f as CashFill, g as CashCapabilities, h as CashoutResult, i as CashEstimate, j as CashFillStats, P as PrepareResult, k as CashPreparedStep, R as RelayExecutionResult, l as RelayQuote, m as RelayStatus, n as CashSourceCapabilities, T as TopUpResult, W as WithdrawResult } from './createCashClient-CL1SCbqF.cjs';
2
- export { o as CASH_ATTRIBUTION_CODE, p as CASH_REFERRAL_ATTRIBUTION_PREFIX, q as CashAsset, r as CashChain, s as CashClient, t as CashClientOptions, u as CashFillEta, v as CashLeg, w as CashMultiCurrencyLeg, x as CashNextAction, y as CashOrderState, z as CashPairFillStats, A as CashPayeeInput, B as CashPayout, D as CashPayoutPricing, E as CashPlatformCapability, F as CashPreparedStepKind, G as CashReceiveLeg, H as CashoutInput, J as CashoutOptions, K as CuratorPayeeDataInput, L as EstimateInput, M as EstimateOptions, N as MIN_CASHOUT_AMOUNT, O as OrdersOptions, Q as PreparedCashoutReceipt, S as RECOMMENDED_MIN_CASHOUT_AMOUNT, U as RelayOptions, V as RelayQuoteInput, X as RelaySourceInput, Y as RelayTransaction, Z as SignerOptions, _ as WatchOptions, $ as WithdrawOptions, a0 as buildCapabilities, a1 as createCashClient, a2 as normalizeCashPayee, a3 as toCashReferralAttributionCode } from './createCashClient-CL1SCbqF.cjs';
1
+ import { I as IntentStatus, C as CashPayoutInfo, a as IntentEntity, b as CashBuyerProfile, c as CashDepositInput, d as CreateDepositParamsArg, e as CashOrder, f as CashFill, g as CashCapabilities, h as CashoutResult, i as CashEstimate, j as CashFillStats, P as PrepareResult, k as CashPreparedStep, R as RelayExecutionResult, l as RelayQuote, m as RelayStatus, n as CashSourceCapabilities, T as TopUpResult, W as WithdrawResult } from './createCashClient-BJmz3v4_.cjs';
2
+ export { o as CASH_ATTRIBUTION_CODE, p as CASH_REFERRAL_ATTRIBUTION_PREFIX, q as CashAsset, r as CashChain, s as CashClient, t as CashClientOptions, u as CashFillEta, v as CashLeg, w as CashMultiCurrencyLeg, x as CashNextAction, y as CashOrderState, z as CashPairFillStats, A as CashPayeeInput, B as CashPayout, D as CashPayoutPricing, E as CashPlatformCapability, F as CashPreparedStepKind, G as CashReceiveLeg, H as CashoutInput, J as CashoutOptions, K as CuratorPayeeDataInput, L as EstimateInput, M as EstimateOptions, N as MIN_CASHOUT_AMOUNT, O as OrdersOptions, Q as PreparedCashoutReceipt, S as RECOMMENDED_MIN_CASHOUT_AMOUNT, U as RelayOptions, V as RelayQuoteInput, X as RelaySourceInput, Y as RelayTransaction, Z as SignerOptions, _ as WatchOptions, $ as WithdrawOptions, a0 as buildCapabilities, a1 as createCashClient, a2 as normalizeCashPayee, a3 as toCashReferralAttributionCode } from './createCashClient-BJmz3v4_.cjs';
3
3
  import { PaymentMethodCatalog, CurrencyType, OracleAdapterOverrides, OnchainCurrency, Zkp2pClient, PreparedTransaction } from '@zkp2p/sdk';
4
4
  export { CurrencyType, PreparedTransaction, RuntimeEnv } from '@zkp2p/sdk';
5
5
  import { Log, Abi } from 'viem';
@@ -61,6 +61,8 @@ type CashErrorRecovery = (CashSourceRecoveryBase & {
61
61
  depositId: string;
62
62
  groupIds: string[];
63
63
  transactionHash?: string;
64
+ /** Present when Relay funded the already-created deposit. */
65
+ source?: CashSourceRecoveryBase;
64
66
  };
65
67
  declare class CashError extends Error implements CashErrorShape {
66
68
  readonly code: CashErrorCode;
@@ -96,6 +98,7 @@ declare const errors: {
96
98
  indexerUnavailable: (operation: string, cause?: unknown) => CashError;
97
99
  payeeRegistrationFailed: (cause: unknown) => CashError;
98
100
  payeeVerificationRequired: (platform: string, cause?: unknown) => CashError;
101
+ /** @deprecated Cash-outs no longer require an atomic access-policy flow. */
99
102
  atomicAccessPolicyRequired: (platforms: readonly string[]) => CashError;
100
103
  sourceRouteUnsupportedInPrepare: () => CashError;
101
104
  sourceRecipientMismatch: (recipient: string, owner: string) => CashError;
@@ -136,7 +139,16 @@ declare const errors: {
136
139
  transactionRejected: (verb: string, cause?: unknown) => CashError;
137
140
  transactionSubmissionUnknown: (operation: string, cause?: unknown, recovery?: CashErrorRecovery) => CashError;
138
141
  transactionStatusUnknown: (txHash: string, cause?: unknown, operation?: string) => CashError;
139
- accessPolicyConfigurationFailed: (depositId: string, groupIds: readonly string[], cause?: unknown, transactionHash?: string) => CashError;
142
+ accessPolicyConfigurationFailed: (depositId: string, groupIds: readonly string[], context?: {
143
+ cause?: unknown;
144
+ transactionHash?: string;
145
+ source?: {
146
+ amount: bigint;
147
+ requestId?: string;
148
+ txHashes: string[];
149
+ transactions?: CashSourceRecoveryBase["transactions"];
150
+ };
151
+ }) => CashError;
140
152
  escrowPaused: () => CashError;
141
153
  /** Generic fallback for an on-chain call that failed for an unrecognized reason. */
142
154
  chainCallFailed: (verb: string, cause?: unknown) => CashError;
@@ -598,6 +610,7 @@ declare const cashSourceCapabilitiesJsonSchema: z.ZodObject<{
598
610
  source: z.ZodLiteral<"relay-sdk">;
599
611
  asOf: z.ZodNumber;
600
612
  }, "strip", z.ZodTypeAny, {
613
+ source: "relay-sdk";
601
614
  chains: {
602
615
  id: number;
603
616
  name: string;
@@ -615,7 +628,6 @@ declare const cashSourceCapabilitiesJsonSchema: z.ZodObject<{
615
628
  blockProductionLagging: boolean;
616
629
  vmType?: string | undefined;
617
630
  }[];
618
- source: "relay-sdk";
619
631
  destination: {
620
632
  symbol: string;
621
633
  chainId: number;
@@ -626,6 +638,7 @@ declare const cashSourceCapabilitiesJsonSchema: z.ZodObject<{
626
638
  };
627
639
  asOf: number;
628
640
  }, {
641
+ source: "relay-sdk";
629
642
  chains: {
630
643
  id: number;
631
644
  name: string;
@@ -643,7 +656,6 @@ declare const cashSourceCapabilitiesJsonSchema: z.ZodObject<{
643
656
  blockProductionLagging: boolean;
644
657
  vmType?: string | undefined;
645
658
  }[];
646
- source: "relay-sdk";
647
659
  destination: {
648
660
  symbol: string;
649
661
  chainId: number;
@@ -2292,10 +2304,10 @@ declare const prepareResultJsonSchema: z.ZodObject<{
2292
2304
  to: string;
2293
2305
  value: string;
2294
2306
  }[];
2295
- accessPolicyRequired: boolean;
2296
2307
  register: {
2297
2308
  hashedOnchainIds: string[];
2298
2309
  };
2310
+ accessPolicyRequired: boolean;
2299
2311
  }, {
2300
2312
  steps: {
2301
2313
  kind: "createDeposit" | "approve" | "pruneExpiredIntents" | "withdrawDeposit" | "removeFunds" | "addFunds";
@@ -2307,10 +2319,10 @@ declare const prepareResultJsonSchema: z.ZodObject<{
2307
2319
  to: string;
2308
2320
  value: string;
2309
2321
  }[];
2310
- accessPolicyRequired: boolean;
2311
2322
  register: {
2312
2323
  hashedOnchainIds: string[];
2313
2324
  };
2325
+ accessPolicyRequired: boolean;
2314
2326
  }>;
2315
2327
  declare const withdrawResultJsonSchema: z.ZodObject<{
2316
2328
  depositId: z.ZodString;
@@ -2501,6 +2513,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2501
2513
  source: z.ZodLiteral<"relay-sdk">;
2502
2514
  asOf: z.ZodNumber;
2503
2515
  }, "strip", z.ZodTypeAny, {
2516
+ source: "relay-sdk";
2504
2517
  chains: {
2505
2518
  id: number;
2506
2519
  name: string;
@@ -2518,7 +2531,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2518
2531
  blockProductionLagging: boolean;
2519
2532
  vmType?: string | undefined;
2520
2533
  }[];
2521
- source: "relay-sdk";
2522
2534
  destination: {
2523
2535
  symbol: string;
2524
2536
  chainId: number;
@@ -2529,6 +2541,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2529
2541
  };
2530
2542
  asOf: number;
2531
2543
  }, {
2544
+ source: "relay-sdk";
2532
2545
  chains: {
2533
2546
  id: number;
2534
2547
  name: string;
@@ -2546,7 +2559,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2546
2559
  blockProductionLagging: boolean;
2547
2560
  vmType?: string | undefined;
2548
2561
  }[];
2549
- source: "relay-sdk";
2550
2562
  destination: {
2551
2563
  symbol: string;
2552
2564
  chainId: number;
@@ -2567,6 +2579,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2567
2579
  };
2568
2580
  };
2569
2581
  relay?: {
2582
+ source: "relay-sdk";
2570
2583
  chains: {
2571
2584
  id: number;
2572
2585
  name: string;
@@ -2584,7 +2597,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2584
2597
  blockProductionLagging: boolean;
2585
2598
  vmType?: string | undefined;
2586
2599
  }[];
2587
- source: "relay-sdk";
2588
2600
  destination: {
2589
2601
  symbol: string;
2590
2602
  chainId: number;
@@ -2605,6 +2617,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2605
2617
  };
2606
2618
  };
2607
2619
  relay?: {
2620
+ source: "relay-sdk";
2608
2621
  chains: {
2609
2622
  id: number;
2610
2623
  name: string;
@@ -2622,7 +2635,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2622
2635
  blockProductionLagging: boolean;
2623
2636
  vmType?: string | undefined;
2624
2637
  }[];
2625
- source: "relay-sdk";
2626
2638
  destination: {
2627
2639
  symbol: string;
2628
2640
  chainId: number;
@@ -2699,6 +2711,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2699
2711
  };
2700
2712
  };
2701
2713
  relay?: {
2714
+ source: "relay-sdk";
2702
2715
  chains: {
2703
2716
  id: number;
2704
2717
  name: string;
@@ -2716,7 +2729,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2716
2729
  blockProductionLagging: boolean;
2717
2730
  vmType?: string | undefined;
2718
2731
  }[];
2719
- source: "relay-sdk";
2720
2732
  destination: {
2721
2733
  symbol: string;
2722
2734
  chainId: number;
@@ -2771,6 +2783,7 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2771
2783
  };
2772
2784
  };
2773
2785
  relay?: {
2786
+ source: "relay-sdk";
2774
2787
  chains: {
2775
2788
  id: number;
2776
2789
  name: string;
@@ -2788,7 +2801,6 @@ declare const cashCapabilitiesJsonSchema: z.ZodObject<{
2788
2801
  blockProductionLagging: boolean;
2789
2802
  vmType?: string | undefined;
2790
2803
  }[];
2791
- source: "relay-sdk";
2792
2804
  destination: {
2793
2805
  symbol: string;
2794
2806
  chainId: number;
@@ -3207,16 +3219,137 @@ declare const cashErrorRecoveryJsonSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3207
3219
  depositId: z.ZodString;
3208
3220
  groupIds: z.ZodArray<z.ZodString, "many">;
3209
3221
  transactionHash: z.ZodOptional<z.ZodString>;
3222
+ source: z.ZodOptional<z.ZodObject<{
3223
+ readonly amount: z.ZodString;
3224
+ readonly requestId: z.ZodOptional<z.ZodString>;
3225
+ readonly txHashes: z.ZodArray<z.ZodString, "many">;
3226
+ readonly transactions: z.ZodOptional<z.ZodObject<{
3227
+ origin: z.ZodArray<z.ZodObject<{
3228
+ hash: z.ZodString;
3229
+ chainId: z.ZodNumber;
3230
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3231
+ }, "strip", z.ZodTypeAny, {
3232
+ chainId: number;
3233
+ hash: string;
3234
+ isBatchTx?: boolean | undefined;
3235
+ }, {
3236
+ chainId: number;
3237
+ hash: string;
3238
+ isBatchTx?: boolean | undefined;
3239
+ }>, "many">;
3240
+ destination: z.ZodArray<z.ZodObject<{
3241
+ hash: z.ZodString;
3242
+ chainId: z.ZodNumber;
3243
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3244
+ }, "strip", z.ZodTypeAny, {
3245
+ chainId: number;
3246
+ hash: string;
3247
+ isBatchTx?: boolean | undefined;
3248
+ }, {
3249
+ chainId: number;
3250
+ hash: string;
3251
+ isBatchTx?: boolean | undefined;
3252
+ }>, "many">;
3253
+ }, "strict", z.ZodTypeAny, {
3254
+ destination: {
3255
+ chainId: number;
3256
+ hash: string;
3257
+ isBatchTx?: boolean | undefined;
3258
+ }[];
3259
+ origin: {
3260
+ chainId: number;
3261
+ hash: string;
3262
+ isBatchTx?: boolean | undefined;
3263
+ }[];
3264
+ }, {
3265
+ destination: {
3266
+ chainId: number;
3267
+ hash: string;
3268
+ isBatchTx?: boolean | undefined;
3269
+ }[];
3270
+ origin: {
3271
+ chainId: number;
3272
+ hash: string;
3273
+ isBatchTx?: boolean | undefined;
3274
+ }[];
3275
+ }>>;
3276
+ }, "strict", z.ZodTypeAny, {
3277
+ amount: string;
3278
+ txHashes: string[];
3279
+ transactions?: {
3280
+ destination: {
3281
+ chainId: number;
3282
+ hash: string;
3283
+ isBatchTx?: boolean | undefined;
3284
+ }[];
3285
+ origin: {
3286
+ chainId: number;
3287
+ hash: string;
3288
+ isBatchTx?: boolean | undefined;
3289
+ }[];
3290
+ } | undefined;
3291
+ requestId?: string | undefined;
3292
+ }, {
3293
+ amount: string;
3294
+ txHashes: string[];
3295
+ transactions?: {
3296
+ destination: {
3297
+ chainId: number;
3298
+ hash: string;
3299
+ isBatchTx?: boolean | undefined;
3300
+ }[];
3301
+ origin: {
3302
+ chainId: number;
3303
+ hash: string;
3304
+ isBatchTx?: boolean | undefined;
3305
+ }[];
3306
+ } | undefined;
3307
+ requestId?: string | undefined;
3308
+ }>>;
3210
3309
  }, "strict", z.ZodTypeAny, {
3211
3310
  depositId: string;
3212
3311
  kind: "configure-cashout-access-policy";
3213
3312
  groupIds: string[];
3214
3313
  transactionHash?: string | undefined;
3314
+ source?: {
3315
+ amount: string;
3316
+ txHashes: string[];
3317
+ transactions?: {
3318
+ destination: {
3319
+ chainId: number;
3320
+ hash: string;
3321
+ isBatchTx?: boolean | undefined;
3322
+ }[];
3323
+ origin: {
3324
+ chainId: number;
3325
+ hash: string;
3326
+ isBatchTx?: boolean | undefined;
3327
+ }[];
3328
+ } | undefined;
3329
+ requestId?: string | undefined;
3330
+ } | undefined;
3215
3331
  }, {
3216
3332
  depositId: string;
3217
3333
  kind: "configure-cashout-access-policy";
3218
3334
  groupIds: string[];
3219
3335
  transactionHash?: string | undefined;
3336
+ source?: {
3337
+ amount: string;
3338
+ txHashes: string[];
3339
+ transactions?: {
3340
+ destination: {
3341
+ chainId: number;
3342
+ hash: string;
3343
+ isBatchTx?: boolean | undefined;
3344
+ }[];
3345
+ origin: {
3346
+ chainId: number;
3347
+ hash: string;
3348
+ isBatchTx?: boolean | undefined;
3349
+ }[];
3350
+ } | undefined;
3351
+ requestId?: string | undefined;
3352
+ } | undefined;
3220
3353
  }>]>;
3221
3354
  declare const cashErrorJsonSchema: z.ZodObject<{
3222
3355
  code: z.ZodEnum<["ORACLE_UNSUPPORTED_CURRENCY", "ORACLE_READ_FAILED", "UNSUPPORTED_PLATFORM", "UNSUPPORTED_PLATFORM_CURRENCY", "AMOUNT_BELOW_MINIMUM", "INVALID_INTENT_AMOUNT_RANGE", "INVALID_PAYOUT_CURRENCIES", "INVALID_PAYOUT_PLATFORMS", "INVALID_REFERRAL_CODE", "ACTIVE_INTENT_BLOCKS_WITHDRAWAL", "NOTHING_TO_WITHDRAW", "INSUFFICIENT_AVAILABLE_FUNDS", "INSUFFICIENT_TOKEN_BALANCE", "ORDER_NOT_ACTIVE", "INVALID_DEPOSIT_ID", "ESCROW_PAUSED", "INDEXER_LAG", "INDEXER_UNAVAILABLE", "ORDER_NOT_FOUND", "PAYEE_REGISTRATION_FAILED", "PAYEE_VERIFICATION_REQUIRED", "ATOMIC_ACCESS_POLICY_REQUIRED", "SOURCE_ROUTE_UNSUPPORTED_IN_PREPARE", "SOURCE_RECIPIENT_MISMATCH", "SOURCE_CAPABILITIES_FAILED", "SOURCE_QUOTE_FAILED", "SOURCE_NONCE_MANAGER_REQUIRED", "SOURCE_EXECUTION_FAILED", "SOURCE_STATUS_FAILED", "SOURCE_ROUTE_COMPLETED_CASHOUT_FAILED", "SOURCE_CASHOUT_SUBMISSION_UNKNOWN", "SOURCE_CASHOUT_STATUS_UNKNOWN", "DEPOSIT_RESOLUTION_FAILED", "ACCESS_POLICY_CONFIGURATION_FAILED", "ALLOWANCE_NOT_VISIBLE", "SIGNER_REQUIRED", "SIGNER_CHAIN_MISMATCH", "SIGNER_CHAIN_UNAVAILABLE", "WATCH_TIMEOUT", "TRANSACTION_REJECTED", "TRANSACTION_FAILED", "TRANSACTION_SUBMISSION_UNKNOWN", "TRANSACTION_STATUS_UNKNOWN"]>;
@@ -3608,16 +3741,137 @@ declare const cashErrorJsonSchema: z.ZodObject<{
3608
3741
  depositId: z.ZodString;
3609
3742
  groupIds: z.ZodArray<z.ZodString, "many">;
3610
3743
  transactionHash: z.ZodOptional<z.ZodString>;
3744
+ source: z.ZodOptional<z.ZodObject<{
3745
+ readonly amount: z.ZodString;
3746
+ readonly requestId: z.ZodOptional<z.ZodString>;
3747
+ readonly txHashes: z.ZodArray<z.ZodString, "many">;
3748
+ readonly transactions: z.ZodOptional<z.ZodObject<{
3749
+ origin: z.ZodArray<z.ZodObject<{
3750
+ hash: z.ZodString;
3751
+ chainId: z.ZodNumber;
3752
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3753
+ }, "strip", z.ZodTypeAny, {
3754
+ chainId: number;
3755
+ hash: string;
3756
+ isBatchTx?: boolean | undefined;
3757
+ }, {
3758
+ chainId: number;
3759
+ hash: string;
3760
+ isBatchTx?: boolean | undefined;
3761
+ }>, "many">;
3762
+ destination: z.ZodArray<z.ZodObject<{
3763
+ hash: z.ZodString;
3764
+ chainId: z.ZodNumber;
3765
+ isBatchTx: z.ZodOptional<z.ZodBoolean>;
3766
+ }, "strip", z.ZodTypeAny, {
3767
+ chainId: number;
3768
+ hash: string;
3769
+ isBatchTx?: boolean | undefined;
3770
+ }, {
3771
+ chainId: number;
3772
+ hash: string;
3773
+ isBatchTx?: boolean | undefined;
3774
+ }>, "many">;
3775
+ }, "strict", z.ZodTypeAny, {
3776
+ destination: {
3777
+ chainId: number;
3778
+ hash: string;
3779
+ isBatchTx?: boolean | undefined;
3780
+ }[];
3781
+ origin: {
3782
+ chainId: number;
3783
+ hash: string;
3784
+ isBatchTx?: boolean | undefined;
3785
+ }[];
3786
+ }, {
3787
+ destination: {
3788
+ chainId: number;
3789
+ hash: string;
3790
+ isBatchTx?: boolean | undefined;
3791
+ }[];
3792
+ origin: {
3793
+ chainId: number;
3794
+ hash: string;
3795
+ isBatchTx?: boolean | undefined;
3796
+ }[];
3797
+ }>>;
3798
+ }, "strict", z.ZodTypeAny, {
3799
+ amount: string;
3800
+ txHashes: string[];
3801
+ transactions?: {
3802
+ destination: {
3803
+ chainId: number;
3804
+ hash: string;
3805
+ isBatchTx?: boolean | undefined;
3806
+ }[];
3807
+ origin: {
3808
+ chainId: number;
3809
+ hash: string;
3810
+ isBatchTx?: boolean | undefined;
3811
+ }[];
3812
+ } | undefined;
3813
+ requestId?: string | undefined;
3814
+ }, {
3815
+ amount: string;
3816
+ txHashes: string[];
3817
+ transactions?: {
3818
+ destination: {
3819
+ chainId: number;
3820
+ hash: string;
3821
+ isBatchTx?: boolean | undefined;
3822
+ }[];
3823
+ origin: {
3824
+ chainId: number;
3825
+ hash: string;
3826
+ isBatchTx?: boolean | undefined;
3827
+ }[];
3828
+ } | undefined;
3829
+ requestId?: string | undefined;
3830
+ }>>;
3611
3831
  }, "strict", z.ZodTypeAny, {
3612
3832
  depositId: string;
3613
3833
  kind: "configure-cashout-access-policy";
3614
3834
  groupIds: string[];
3615
3835
  transactionHash?: string | undefined;
3836
+ source?: {
3837
+ amount: string;
3838
+ txHashes: string[];
3839
+ transactions?: {
3840
+ destination: {
3841
+ chainId: number;
3842
+ hash: string;
3843
+ isBatchTx?: boolean | undefined;
3844
+ }[];
3845
+ origin: {
3846
+ chainId: number;
3847
+ hash: string;
3848
+ isBatchTx?: boolean | undefined;
3849
+ }[];
3850
+ } | undefined;
3851
+ requestId?: string | undefined;
3852
+ } | undefined;
3616
3853
  }, {
3617
3854
  depositId: string;
3618
3855
  kind: "configure-cashout-access-policy";
3619
3856
  groupIds: string[];
3620
3857
  transactionHash?: string | undefined;
3858
+ source?: {
3859
+ amount: string;
3860
+ txHashes: string[];
3861
+ transactions?: {
3862
+ destination: {
3863
+ chainId: number;
3864
+ hash: string;
3865
+ isBatchTx?: boolean | undefined;
3866
+ }[];
3867
+ origin: {
3868
+ chainId: number;
3869
+ hash: string;
3870
+ isBatchTx?: boolean | undefined;
3871
+ }[];
3872
+ } | undefined;
3873
+ requestId?: string | undefined;
3874
+ } | undefined;
3621
3875
  }>]>>;
3622
3876
  }, "strict", z.ZodTypeAny, {
3623
3877
  message: string;
@@ -3705,6 +3959,23 @@ declare const cashErrorJsonSchema: z.ZodObject<{
3705
3959
  kind: "configure-cashout-access-policy";
3706
3960
  groupIds: string[];
3707
3961
  transactionHash?: string | undefined;
3962
+ source?: {
3963
+ amount: string;
3964
+ txHashes: string[];
3965
+ transactions?: {
3966
+ destination: {
3967
+ chainId: number;
3968
+ hash: string;
3969
+ isBatchTx?: boolean | undefined;
3970
+ }[];
3971
+ origin: {
3972
+ chainId: number;
3973
+ hash: string;
3974
+ isBatchTx?: boolean | undefined;
3975
+ }[];
3976
+ } | undefined;
3977
+ requestId?: string | undefined;
3978
+ } | undefined;
3708
3979
  } | undefined;
3709
3980
  }, {
3710
3981
  message: string;
@@ -3792,6 +4063,23 @@ declare const cashErrorJsonSchema: z.ZodObject<{
3792
4063
  kind: "configure-cashout-access-policy";
3793
4064
  groupIds: string[];
3794
4065
  transactionHash?: string | undefined;
4066
+ source?: {
4067
+ amount: string;
4068
+ txHashes: string[];
4069
+ transactions?: {
4070
+ destination: {
4071
+ chainId: number;
4072
+ hash: string;
4073
+ isBatchTx?: boolean | undefined;
4074
+ }[];
4075
+ origin: {
4076
+ chainId: number;
4077
+ hash: string;
4078
+ isBatchTx?: boolean | undefined;
4079
+ }[];
4080
+ } | undefined;
4081
+ requestId?: string | undefined;
4082
+ } | undefined;
3795
4083
  } | undefined;
3796
4084
  }>;
3797
4085
  type CashOrderJson = z.infer<typeof cashOrderJsonSchema>;