@polyester/sdk 0.35.0-devnet-20261111025029 → 0.35.0-devnet-20261111031027
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/CHANGELOG.md +17 -1
- package/dist/catalogs/index.d.ts +2 -2
- package/dist/catalogs/snapshot-validation.js +5 -2
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +5 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +8 -1
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +8 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +116 -8
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +102 -3
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +4 -2
- package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -0
- package/dist/gen/auth/v1/resolve_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +3 -0
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +8 -3
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +2 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +57 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +41 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +2 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +19 -2
- package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
- package/dist/gen/claims/v1/claims_pb.js +11 -2
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts +44 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.js +44 -1
- package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +6 -0
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +25 -4
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +18 -5
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +74 -3
- package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js +16 -4
- package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +145 -3
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +27 -3
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +48 -19
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +3 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +101 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +14 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
- package/dist/gen/vip/v1/vip_pb.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/claims/claims.d.ts +5 -2
- package/dist/services/claims/claims.d.ts.map +1 -1
- package/dist/services/claims/claims.js +5 -2
- package/dist/services/claims/claims.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +12 -12
- package/dist/services/internal-transfers/internal-transfers.d.ts +13 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +17 -3
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +56 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +32 -2
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +54 -54
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +34 -34
- package/dist/services/orders/orders-input.schemas.d.ts +4 -4
- package/dist/services/orders/orders-output.schemas.d.ts +16 -16
- package/dist/services/orders/orders.d.ts +2 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +2 -0
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
- package/dist/services/policies/shared.codecs.js +64 -3
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/shared.d.ts.map +1 -1
- package/dist/services/policies/shared.js +5 -14
- package/dist/services/policies/shared.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.d.ts +13 -3
- package/dist/services/rewards/rewards.d.ts.map +1 -1
- package/dist/services/rewards/rewards.js +17 -3
- package/dist/services/rewards/rewards.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +101 -4
- package/dist/services/rewards/rewards.schemas.d.ts.map +1 -1
- package/dist/services/rewards/rewards.schemas.js +12 -2
- package/dist/services/rewards/rewards.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +16 -16
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +15 -15
- package/dist/services/zipper/zipper.schemas.d.ts +2 -2
- package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
- package/dist/services/zipper/zipper.schemas.js +13 -2
- package/dist/services/zipper/zipper.schemas.js.map +1 -1
- package/dist/services/zipper/zipper.types.d.ts +2 -2
- package/dist/shared/catalog-config.d.ts +13 -1
- package/dist/shared/catalog-config.d.ts.map +1 -1
- package/dist/shared/catalog-config.js +7 -1
- package/dist/shared/catalog-config.js.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +5 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +2 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/claims.js +7 -2
- package/dist/shared/error-details/claims.js.map +1 -1
- package/dist/shared/errors.d.ts +20 -3
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +17 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/ledger-codes.d.ts +5 -1
- package/dist/shared/ledger-codes.d.ts.map +1 -1
- package/dist/shared/ledger-codes.js +24 -3
- package/dist/shared/ledger-codes.js.map +1 -1
- package/package.json +1 -1
|
@@ -460,7 +460,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
460
460
|
readonly hi: v.BigintSchema<undefined>;
|
|
461
461
|
readonly lo: v.BigintSchema<undefined>;
|
|
462
462
|
}, undefined>, undefined>;
|
|
463
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
463
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
464
464
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
465
465
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
466
466
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -480,7 +480,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
480
480
|
hi: bigint;
|
|
481
481
|
lo: bigint;
|
|
482
482
|
} | undefined;
|
|
483
|
-
state: "unspecified" | "
|
|
483
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
484
484
|
reason: AutoWithdrawStepReason | null;
|
|
485
485
|
intentId: string;
|
|
486
486
|
txHash: string;
|
|
@@ -493,7 +493,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
493
493
|
txHash: string | null;
|
|
494
494
|
assetId: number;
|
|
495
495
|
destinationAddress: string;
|
|
496
|
-
state: "unspecified" | "
|
|
496
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
497
497
|
reason: AutoWithdrawStepReason | null;
|
|
498
498
|
}>]>;
|
|
499
499
|
/**
|
|
@@ -511,7 +511,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
511
511
|
seconds: bigint;
|
|
512
512
|
nanos: number;
|
|
513
513
|
}, number>]>;
|
|
514
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
514
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped">]>;
|
|
515
515
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
|
|
516
516
|
readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
517
517
|
readonly assetId: v.NumberSchema<undefined>;
|
|
@@ -529,7 +529,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
529
529
|
readonly hi: v.BigintSchema<undefined>;
|
|
530
530
|
readonly lo: v.BigintSchema<undefined>;
|
|
531
531
|
}, undefined>, undefined>;
|
|
532
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
532
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
533
533
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
534
534
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
535
535
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -549,7 +549,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
549
549
|
hi: bigint;
|
|
550
550
|
lo: bigint;
|
|
551
551
|
} | undefined;
|
|
552
|
-
state: "unspecified" | "
|
|
552
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
553
553
|
reason: AutoWithdrawStepReason | null;
|
|
554
554
|
intentId: string;
|
|
555
555
|
txHash: string;
|
|
@@ -562,7 +562,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
562
562
|
txHash: string | null;
|
|
563
563
|
assetId: number;
|
|
564
564
|
destinationAddress: string;
|
|
565
|
-
state: "unspecified" | "
|
|
565
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
566
566
|
reason: AutoWithdrawStepReason | null;
|
|
567
567
|
}>]>, undefined>;
|
|
568
568
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -583,7 +583,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
583
583
|
runSeq: string;
|
|
584
584
|
ruleVersion: number;
|
|
585
585
|
scheduledFor: number;
|
|
586
|
-
state: "unspecified" | "
|
|
586
|
+
state: "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped";
|
|
587
587
|
reason: AutoWithdrawRunReason | null;
|
|
588
588
|
steps: {
|
|
589
589
|
destinationChainId: number;
|
|
@@ -594,7 +594,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
594
594
|
txHash: string | null;
|
|
595
595
|
assetId: number;
|
|
596
596
|
destinationAddress: string;
|
|
597
|
-
state: "unspecified" | "
|
|
597
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
598
598
|
reason: AutoWithdrawStepReason | null;
|
|
599
599
|
}[];
|
|
600
600
|
createdAt: number;
|
|
@@ -604,7 +604,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
604
604
|
runSeq: string;
|
|
605
605
|
ruleVersion: number;
|
|
606
606
|
scheduledFor: number;
|
|
607
|
-
state: "unspecified" | "
|
|
607
|
+
state: "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped";
|
|
608
608
|
reason: AutoWithdrawRunReason | null;
|
|
609
609
|
steps: {
|
|
610
610
|
destinationChainId: number;
|
|
@@ -615,7 +615,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
615
615
|
txHash: string | null;
|
|
616
616
|
assetId: number;
|
|
617
617
|
destinationAddress: string;
|
|
618
|
-
state: "unspecified" | "
|
|
618
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
619
619
|
reason: AutoWithdrawStepReason | null;
|
|
620
620
|
}[];
|
|
621
621
|
createdAt: number;
|
|
@@ -633,7 +633,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
633
633
|
seconds: bigint;
|
|
634
634
|
nanos: number;
|
|
635
635
|
}, number>]>;
|
|
636
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
636
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped">]>;
|
|
637
637
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
|
|
638
638
|
readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
639
639
|
readonly assetId: v.NumberSchema<undefined>;
|
|
@@ -651,7 +651,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
651
651
|
readonly hi: v.BigintSchema<undefined>;
|
|
652
652
|
readonly lo: v.BigintSchema<undefined>;
|
|
653
653
|
}, undefined>, undefined>;
|
|
654
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
654
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
655
655
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
656
656
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
657
657
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -671,7 +671,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
671
671
|
hi: bigint;
|
|
672
672
|
lo: bigint;
|
|
673
673
|
} | undefined;
|
|
674
|
-
state: "unspecified" | "
|
|
674
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
675
675
|
reason: AutoWithdrawStepReason | null;
|
|
676
676
|
intentId: string;
|
|
677
677
|
txHash: string;
|
|
@@ -684,7 +684,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
684
684
|
txHash: string | null;
|
|
685
685
|
assetId: number;
|
|
686
686
|
destinationAddress: string;
|
|
687
|
-
state: "unspecified" | "
|
|
687
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
688
688
|
reason: AutoWithdrawStepReason | null;
|
|
689
689
|
}>]>, undefined>;
|
|
690
690
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -705,7 +705,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
705
705
|
runSeq: string;
|
|
706
706
|
ruleVersion: number;
|
|
707
707
|
scheduledFor: number;
|
|
708
|
-
state: "unspecified" | "
|
|
708
|
+
state: "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped";
|
|
709
709
|
reason: AutoWithdrawRunReason | null;
|
|
710
710
|
steps: {
|
|
711
711
|
destinationChainId: number;
|
|
@@ -716,7 +716,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
716
716
|
txHash: string | null;
|
|
717
717
|
assetId: number;
|
|
718
718
|
destinationAddress: string;
|
|
719
|
-
state: "unspecified" | "
|
|
719
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
720
720
|
reason: AutoWithdrawStepReason | null;
|
|
721
721
|
}[];
|
|
722
722
|
createdAt: number;
|
|
@@ -726,7 +726,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
726
726
|
runSeq: string;
|
|
727
727
|
ruleVersion: number;
|
|
728
728
|
scheduledFor: number;
|
|
729
|
-
state: "unspecified" | "
|
|
729
|
+
state: "unspecified" | "planned" | "paying" | "completed" | "partially_failed" | "failed" | "skipped";
|
|
730
730
|
reason: AutoWithdrawRunReason | null;
|
|
731
731
|
steps: {
|
|
732
732
|
destinationChainId: number;
|
|
@@ -737,7 +737,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
737
737
|
txHash: string | null;
|
|
738
738
|
assetId: number;
|
|
739
739
|
destinationAddress: string;
|
|
740
|
-
state: "unspecified" | "
|
|
740
|
+
state: "unspecified" | "completed" | "failed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
741
741
|
reason: AutoWithdrawStepReason | null;
|
|
742
742
|
}[];
|
|
743
743
|
createdAt: number;
|
|
@@ -11,7 +11,7 @@ type TimestampInit = {
|
|
|
11
11
|
};
|
|
12
12
|
declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
13
13
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
14
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "
|
|
14
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
|
|
15
15
|
readonly tsSec: v.BigintSchema<undefined>;
|
|
16
16
|
readonly open: v.BigintSchema<undefined>;
|
|
17
17
|
readonly high: v.BigintSchema<undefined>;
|
|
@@ -22,7 +22,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
22
22
|
readonly isClosed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
23
23
|
}, undefined>, v.TransformAction<{
|
|
24
24
|
symbolId: number;
|
|
25
|
-
timeframe: DecodedEnum<"1d" | "
|
|
25
|
+
timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
26
26
|
tsSec: bigint;
|
|
27
27
|
open: bigint;
|
|
28
28
|
high: bigint;
|
|
@@ -33,7 +33,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
33
33
|
isClosed: boolean;
|
|
34
34
|
}, {
|
|
35
35
|
symbolId: number;
|
|
36
|
-
timeframe: DecodedEnum<"1d" | "
|
|
36
|
+
timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
37
37
|
time: number;
|
|
38
38
|
open: string;
|
|
39
39
|
high: string;
|
|
@@ -46,7 +46,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
46
46
|
declare const createCandleRowIntSchema: typeof createCandleRowSchema;
|
|
47
47
|
declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
48
48
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
49
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "
|
|
49
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
|
|
50
50
|
readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
51
51
|
readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
52
52
|
readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
@@ -63,7 +63,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
63
63
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
64
64
|
}, undefined>, v.TransformAction<{
|
|
65
65
|
symbolId: number;
|
|
66
|
-
timeframe: DecodedEnum<"1d" | "
|
|
66
|
+
timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
67
67
|
tsSec: bigint[];
|
|
68
68
|
open: bigint[];
|
|
69
69
|
high: bigint[];
|
|
@@ -80,7 +80,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
80
80
|
nextPageToken: string;
|
|
81
81
|
}, {
|
|
82
82
|
symbolId: number;
|
|
83
|
-
timeframe: DecodedEnum<"1d" | "
|
|
83
|
+
timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
84
84
|
time: number[];
|
|
85
85
|
open: string[];
|
|
86
86
|
high: string[];
|
|
@@ -100,7 +100,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
100
100
|
}>]>;
|
|
101
101
|
declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
102
102
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
103
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "
|
|
103
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
|
|
104
104
|
readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
105
105
|
readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
106
106
|
readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
@@ -117,7 +117,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
|
|
|
117
117
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
118
118
|
}, undefined>, v.TransformAction<{
|
|
119
119
|
symbolId: number;
|
|
120
|
-
timeframe: DecodedEnum<"1d" | "
|
|
120
|
+
timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
121
121
|
tsSec: bigint[];
|
|
122
122
|
open: bigint[];
|
|
123
123
|
high: bigint[];
|
|
@@ -134,7 +134,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
|
|
|
134
134
|
nextPageToken: string;
|
|
135
135
|
}, {
|
|
136
136
|
symbolId: number;
|
|
137
|
-
timeframe: DecodedEnum<"1d" | "
|
|
137
|
+
timeframe: DecodedEnum<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
138
138
|
tsSec: number[];
|
|
139
139
|
open: string[];
|
|
140
140
|
high: string[];
|
|
@@ -158,7 +158,7 @@ type CandleColumnar = v.InferOutput<ReturnType<typeof createCandleColumnarSchema
|
|
|
158
158
|
type CandleColumnarInt = v.InferOutput<ReturnType<typeof createCandleColumnarIntSchema>>;
|
|
159
159
|
declare function createListCandlesInputSchema(): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
160
160
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
161
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "
|
|
161
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "1h" | "1w" | "1m" | "1s" | "3m" | "5m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo", Timeframe$1.SEC_1 | Timeframe$1.MIN_1 | Timeframe$1.MIN_3 | Timeframe$1.MIN_5 | Timeframe$1.MIN_15 | Timeframe$1.MIN_30 | Timeframe$1.HOUR_1 | Timeframe$1.HOUR_2 | Timeframe$1.HOUR_4 | Timeframe$1.HOUR_6 | Timeframe$1.HOUR_8 | Timeframe$1.HOUR_12 | Timeframe$1.DAY_1 | Timeframe$1.DAY_3 | Timeframe$1.WEEK_1 | Timeframe$1.MONTH_1>]>;
|
|
162
162
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 10000, undefined>]>, undefined>;
|
|
163
163
|
readonly includeIncomplete: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
164
164
|
readonly includeReference: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
@@ -4,7 +4,8 @@ import { ClaimDailyRewardInput, ClaimDailyRewardResult, DailyClaimStatus } from
|
|
|
4
4
|
//#region src/services/claims/claims.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Reads and claims daily campaign rewards for the authenticated root account or a subaccount it owns.
|
|
7
|
-
*
|
|
7
|
+
* Calls accept a session JWT, or an API key scoped to the main account whose policy grants
|
|
8
|
+
* `read-daily-claims` (status) or `claim-daily-reward` (claim).
|
|
8
9
|
*/
|
|
9
10
|
declare class ClaimsService {
|
|
10
11
|
#private;
|
|
@@ -18,7 +19,9 @@ declare class ClaimsService {
|
|
|
18
19
|
/**
|
|
19
20
|
* Claims the current UTC day's reward, paid to the root account or to `subaccountId` when it
|
|
20
21
|
* names a subaccount the root account owns. The destination is fixed by the first claim of the
|
|
21
|
-
* day; retrying returns the same claim and destination.
|
|
22
|
+
* day; retrying returns the same claim and destination. A `ClaimOutcomeUnknownError` means the
|
|
23
|
+
* claim is recorded and its payout submitted but not yet confirmed: show it as pending, then
|
|
24
|
+
* poll `getDailyClaimStatus` until its `claimId` is `claimed`, or retry this call.
|
|
22
25
|
*/
|
|
23
26
|
claimDailyReward(input?: ClaimDailyRewardInput, options?: PolyesterMutationOptions): Promise<ClaimDailyRewardResult>;
|
|
24
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claims.d.ts","names":[],"sources":["../../../src/services/claims/claims.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"claims.d.ts","names":[],"sources":["../../../src/services/claims/claims.ts"],"mappings":";;;;;;;;;cAuBa;;EAGG,YAAA,YAAY;;;;;;EASlB,oBAAoB,UAAU,0BAA0B,QAAQ;;;;;;;;EAYhE,iBACF,QAAO,uBACP,UAAU,2BACX,QAAQ"}
|
|
@@ -6,7 +6,8 @@ import { createClient } from "@connectrpc/connect";
|
|
|
6
6
|
//#region src/services/claims/claims.ts
|
|
7
7
|
/**
|
|
8
8
|
* Reads and claims daily campaign rewards for the authenticated root account or a subaccount it owns.
|
|
9
|
-
*
|
|
9
|
+
* Calls accept a session JWT, or an API key scoped to the main account whose policy grants
|
|
10
|
+
* `read-daily-claims` (status) or `claim-daily-reward` (claim).
|
|
10
11
|
*/
|
|
11
12
|
var ClaimsService = class {
|
|
12
13
|
#client;
|
|
@@ -25,7 +26,9 @@ var ClaimsService = class {
|
|
|
25
26
|
/**
|
|
26
27
|
* Claims the current UTC day's reward, paid to the root account or to `subaccountId` when it
|
|
27
28
|
* names a subaccount the root account owns. The destination is fixed by the first claim of the
|
|
28
|
-
* day; retrying returns the same claim and destination.
|
|
29
|
+
* day; retrying returns the same claim and destination. A `ClaimOutcomeUnknownError` means the
|
|
30
|
+
* claim is recorded and its payout submitted but not yet confirmed: show it as pending, then
|
|
31
|
+
* poll `getDailyClaimStatus` until its `claimId` is `claimed`, or retry this call.
|
|
29
32
|
*/
|
|
30
33
|
async claimDailyReward(input = {}, options) {
|
|
31
34
|
const { subaccountId } = parse(ClaimDailyRewardInputSchema, input);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claims.js","names":["#client","Proto.ClaimsService"],"sources":["../../../src/services/claims/claims.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/claims/v1/claims_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n ClaimDailyRewardInputSchema,\n ClaimDailyRewardResultSchema,\n DailyClaimStatusSchema,\n type ClaimDailyRewardInput,\n type ClaimDailyRewardResult,\n type DailyClaimStatus,\n} from \"./claims.schemas.js\";\n\n/**\n * Reads and claims daily campaign rewards for the authenticated root account or a subaccount it owns.\n *
|
|
1
|
+
{"version":3,"file":"claims.js","names":["#client","Proto.ClaimsService"],"sources":["../../../src/services/claims/claims.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/claims/v1/claims_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n ClaimDailyRewardInputSchema,\n ClaimDailyRewardResultSchema,\n DailyClaimStatusSchema,\n type ClaimDailyRewardInput,\n type ClaimDailyRewardResult,\n type DailyClaimStatus,\n} from \"./claims.schemas.js\";\n\n/**\n * Reads and claims daily campaign rewards for the authenticated root account or a subaccount it owns.\n * Calls accept a session JWT, or an API key scoped to the main account whose policy grants\n * `read-daily-claims` (status) or `claim-daily-reward` (claim).\n */\nexport class ClaimsService {\n #client: Client<typeof Proto.ClaimsService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(Proto.ClaimsService, transports.authApi);\n }\n\n /**\n * Returns the current UTC day's available or existing claim and its reset time. A\n * `payout_delayed` claim is recorded and paid automatically once payouts resume;\n * `payoutDelayReason` names the cause, such as `CLAIM_PAYOUT_UNAVAILABLE`.\n */\n async getDailyClaimStatus(options?: PolyesterRequestOptions): Promise<DailyClaimStatus> {\n const response = await this.#client.getDailyClaimStatus({}, toConnectCallOptions(options));\n return parse(DailyClaimStatusSchema, response);\n }\n\n /**\n * Claims the current UTC day's reward, paid to the root account or to `subaccountId` when it\n * names a subaccount the root account owns. The destination is fixed by the first claim of the\n * day; retrying returns the same claim and destination. A `ClaimOutcomeUnknownError` means the\n * claim is recorded and its payout submitted but not yet confirmed: show it as pending, then\n * poll `getDailyClaimStatus` until its `claimId` is `claimed`, or retry this call.\n */\n async claimDailyReward(\n input: ClaimDailyRewardInput = {},\n options?: PolyesterMutationOptions,\n ): Promise<ClaimDailyRewardResult> {\n const { subaccountId } = parse(ClaimDailyRewardInputSchema, input);\n const response = await this.#client.claimDailyReward(\n { subaccountId },\n toConnectCallOptions(options),\n );\n return parse(ClaimDailyRewardResultSchema, response);\n }\n}\n"],"mappings":";;;;;;;;;;;AAuBA,IAAa,gBAAb,MAA2B;CACvB;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,iBAAqB,WAAW,OAAO;CACvE;;;;;;CAOA,MAAM,oBAAoB,SAA8D;EACpF,MAAM,WAAW,MAAM,KAAKD,QAAQ,oBAAoB,CAAC,GAAG,qBAAqB,OAAO,CAAC;EACzF,OAAO,MAAM,wBAAwB,QAAQ;CACjD;;;;;;;;CASA,MAAM,iBACF,QAA+B,CAAC,GAChC,SAC+B;EAC/B,MAAM,EAAE,iBAAiB,MAAM,6BAA6B,KAAK;EACjE,MAAM,WAAW,MAAM,KAAKA,QAAQ,iBAChC,EAAE,aAAa,GACf,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;AACJ"}
|
|
@@ -13,7 +13,7 @@ type TimestampInit = {
|
|
|
13
13
|
};
|
|
14
14
|
declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
15
15
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
16
|
-
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"
|
|
16
|
+
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1h" | "1m" | "1s" | "5m", HeatmapInterval>]>;
|
|
17
17
|
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 | 200 | 50 | 1000, HeatmapDepth>]>;
|
|
18
18
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
|
|
19
19
|
readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
|
|
@@ -122,7 +122,7 @@ declare function convertHeatmapDeltaBucket(bucket: OrderbookHeatmapDeltaBucketRa
|
|
|
122
122
|
type OrderbookHeatmapDeltaBucket = ReturnType<typeof convertHeatmapDeltaBucket>;
|
|
123
123
|
declare const OrderbookHeatmapLiveBucketRawSchema: v.ObjectSchema<{
|
|
124
124
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
125
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
125
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1h" | "1m" | "1s" | "5m">>]>;
|
|
126
126
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
127
127
|
readonly isFinal: v.BooleanSchema<undefined>;
|
|
128
128
|
readonly bids: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -142,7 +142,7 @@ declare const OrderbookHeatmapLiveBucketRawSchema: v.ObjectSchema<{
|
|
|
142
142
|
type OrderbookHeatmapLiveBucketRaw = v.InferOutput<typeof OrderbookHeatmapLiveBucketRawSchema>;
|
|
143
143
|
declare function convertHeatmapLiveBucket(bucket: OrderbookHeatmapLiveBucketRaw, scales: SdkScales): {
|
|
144
144
|
symbolId: number;
|
|
145
|
-
interval: DecodedEnum<"
|
|
145
|
+
interval: DecodedEnum<"1h" | "1m" | "1s" | "5m">;
|
|
146
146
|
tsSec: number;
|
|
147
147
|
isFinal: boolean;
|
|
148
148
|
bids: {
|
|
@@ -226,8 +226,8 @@ declare function convertHeatmapDeltaChain(chain: OrderbookHeatmapDeltaChainRaw,
|
|
|
226
226
|
type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
|
|
227
227
|
declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
228
228
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
229
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
230
|
-
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 |
|
|
229
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1h" | "1m" | "1s" | "5m">>]>;
|
|
230
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 200 | 50 | 1000>]>;
|
|
231
231
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
232
232
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -267,7 +267,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
267
267
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"close" | "peak">>]>;
|
|
268
268
|
readonly liveBucket: v.OptionalSchema<v.ObjectSchema<{
|
|
269
269
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
270
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
270
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1h" | "1m" | "1s" | "5m">>]>;
|
|
271
271
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
272
272
|
readonly isFinal: v.BooleanSchema<undefined>;
|
|
273
273
|
readonly bids: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -286,8 +286,8 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
286
286
|
}, undefined>, undefined>;
|
|
287
287
|
}, undefined>, v.TransformAction<{
|
|
288
288
|
symbolId: number;
|
|
289
|
-
interval: DecodedEnum<"
|
|
290
|
-
depth: 1 |
|
|
289
|
+
interval: DecodedEnum<"1h" | "1m" | "1s" | "5m">;
|
|
290
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 200 | 50 | 1000;
|
|
291
291
|
chain?: {
|
|
292
292
|
baseKeyframe?: {
|
|
293
293
|
tsSec: number;
|
|
@@ -327,7 +327,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
327
327
|
quantityMode: DecodedEnum<"close" | "peak">;
|
|
328
328
|
liveBucket?: {
|
|
329
329
|
symbolId: number;
|
|
330
|
-
interval: DecodedEnum<"
|
|
330
|
+
interval: DecodedEnum<"1h" | "1m" | "1s" | "5m">;
|
|
331
331
|
tsSec: number;
|
|
332
332
|
isFinal: boolean;
|
|
333
333
|
bids?: {
|
|
@@ -346,8 +346,8 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
346
346
|
} | undefined;
|
|
347
347
|
}, {
|
|
348
348
|
symbolId: number;
|
|
349
|
-
interval: DecodedEnum<"
|
|
350
|
-
depth: 1 |
|
|
349
|
+
interval: DecodedEnum<"1h" | "1m" | "1s" | "5m">;
|
|
350
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 200 | 50 | 1000;
|
|
351
351
|
chain: {
|
|
352
352
|
baseKeyframe: {
|
|
353
353
|
tsSec: number;
|
|
@@ -387,7 +387,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
387
387
|
quantityMode: DecodedEnum<"close" | "peak">;
|
|
388
388
|
liveBucket: {
|
|
389
389
|
symbolId: number;
|
|
390
|
-
interval: DecodedEnum<"
|
|
390
|
+
interval: DecodedEnum<"1h" | "1m" | "1s" | "5m">;
|
|
391
391
|
tsSec: number;
|
|
392
392
|
isFinal: boolean;
|
|
393
393
|
bids: {
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import { AuthApiTransports } from "../../shared/transports.js";
|
|
2
|
-
import { PolyesterMutationOptions } from "../../shared/request-options.js";
|
|
2
|
+
import { PolyesterMutationOptions, PolyesterRequestOptions } from "../../shared/request-options.js";
|
|
3
3
|
import { SubaccountResolver } from "../subaccount-resolver.js";
|
|
4
4
|
import { SdkScales } from "../../shared/decimal-surface.js";
|
|
5
|
-
import { CreateInternalTransferInput, CreateInternalTransferResult } from "./internal-transfers.schemas.js";
|
|
5
|
+
import { CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferInput, GetInternalTransferResult } from "./internal-transfers.schemas.js";
|
|
6
6
|
//#region src/services/internal-transfers/internal-transfers.d.ts
|
|
7
7
|
/**
|
|
8
|
-
* Creates authenticated Trading-to-Trading internal transfer requests.
|
|
8
|
+
* Creates and reads authenticated Trading-to-Trading internal transfer requests.
|
|
9
9
|
*/
|
|
10
10
|
declare class InternalTransfersService {
|
|
11
11
|
#private;
|
|
12
12
|
constructor(transports: AuthApiTransports, resolver: SubaccountResolver | undefined, scales: SdkScales);
|
|
13
13
|
/**
|
|
14
|
-
* Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.
|
|
14
|
+
* Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, the lifecycle `flowId`, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.
|
|
15
15
|
*/
|
|
16
16
|
create(input: CreateInternalTransferInput, options?: PolyesterMutationOptions): Promise<CreateInternalTransferResult>;
|
|
17
|
+
/**
|
|
18
|
+
* Reads an accepted transfer of the resolved source account by exactly one of `requestId` or
|
|
19
|
+
* `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it
|
|
20
|
+
* to reconcile a transfer without resubmitting it; pass `flowId` to `lifecycle.getFlow`,
|
|
21
|
+
* whose ledger settlement step carries the transfer ID. An unknown, pending or inaccessible
|
|
22
|
+
* transfer is a `ResourceNotFoundError`, including briefly after a delegate is granted access.
|
|
23
|
+
* Session JWT only; API keys are refused. Moves no money and needs no step-up.
|
|
24
|
+
*/
|
|
25
|
+
get(input: GetInternalTransferInput, options?: PolyesterRequestOptions): Promise<GetInternalTransferResult>;
|
|
17
26
|
}
|
|
18
27
|
//#endregion
|
|
19
28
|
export { InternalTransfersService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-transfers.d.ts","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"internal-transfers.d.ts","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"mappings":";;;;;;;;;cA0Ba;;EAQL,YAAA,YAAY,mBACZ,UAAU,gCACV,QAAQ;;;;EAYN,OACF,OAAO,6BACP,UAAU,2BACX,QAAQ;;;;;;;;;EAmBL,IACF,OAAO,0BACP,UAAU,0BACX,QAAQ"}
|
|
@@ -3,11 +3,11 @@ import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
|
3
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
4
4
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
5
5
|
import { InternalTransferService } from "../../gen/transfer/v1/internal_transfer_pb.js";
|
|
6
|
-
import { createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema } from "./internal-transfers.schemas.js";
|
|
6
|
+
import { GetInternalTransferInputSchema, GetInternalTransferResultSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema } from "./internal-transfers.schemas.js";
|
|
7
7
|
import { createClient } from "@connectrpc/connect";
|
|
8
8
|
//#region src/services/internal-transfers/internal-transfers.ts
|
|
9
9
|
/**
|
|
10
|
-
* Creates authenticated Trading-to-Trading internal transfer requests.
|
|
10
|
+
* Creates and reads authenticated Trading-to-Trading internal transfer requests.
|
|
11
11
|
*/
|
|
12
12
|
var InternalTransfersService = class {
|
|
13
13
|
#client;
|
|
@@ -23,7 +23,7 @@ var InternalTransfersService = class {
|
|
|
23
23
|
this.#resultSchema = createCreateInternalTransferResultSchema();
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.
|
|
26
|
+
* Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, the lifecycle `flowId`, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.
|
|
27
27
|
*/
|
|
28
28
|
async create(input, options) {
|
|
29
29
|
await this.#scales.ready();
|
|
@@ -32,6 +32,20 @@ var InternalTransfersService = class {
|
|
|
32
32
|
const res = await this.#client.createInternalTransfer(removeUndefined(validatedInput), toConnectCallOptions(options));
|
|
33
33
|
return parse(this.#resultSchema, res);
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Reads an accepted transfer of the resolved source account by exactly one of `requestId` or
|
|
37
|
+
* `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it
|
|
38
|
+
* to reconcile a transfer without resubmitting it; pass `flowId` to `lifecycle.getFlow`,
|
|
39
|
+
* whose ledger settlement step carries the transfer ID. An unknown, pending or inaccessible
|
|
40
|
+
* transfer is a `ResourceNotFoundError`, including briefly after a delegate is granted access.
|
|
41
|
+
* Session JWT only; API keys are refused. Moves no money and needs no step-up.
|
|
42
|
+
*/
|
|
43
|
+
async get(input, options) {
|
|
44
|
+
const resolvedInput = resolveAccountScopedInput(input, this.#resolver);
|
|
45
|
+
const request = parse(GetInternalTransferInputSchema, resolvedInput);
|
|
46
|
+
const res = await this.#client.getInternalTransfer(removeUndefined(request), toConnectCallOptions(options));
|
|
47
|
+
return parse(GetInternalTransferResultSchema, res);
|
|
48
|
+
}
|
|
35
49
|
};
|
|
36
50
|
//#endregion
|
|
37
51
|
export { InternalTransfersService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-transfers.js","names":["#client","Proto.InternalTransferService","#resolver","#scales","#inputSchema","#resultSchema"],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n} from \"../../shared/request-options.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport type { SdkScales } from \"../../shared/decimal-surface.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n createCreateInternalTransferInputSchema,\n createCreateInternalTransferResultSchema,\n type CreateInternalTransferInput,\n type CreateInternalTransferResult,\n} from \"./internal-transfers.schemas.js\";\n\n/**\n * Creates authenticated Trading-to-Trading internal transfer requests.\n */\nexport class InternalTransfersService {\n #client: Client<typeof Proto.InternalTransferService>;\n #resolver?: SubaccountResolver;\n #scales: SdkScales;\n #inputSchema: ReturnType<typeof createCreateInternalTransferInputSchema>;\n #resultSchema: ReturnType<typeof createCreateInternalTransferResultSchema>;\n\n constructor(\n transports: AuthApiTransports,\n resolver: SubaccountResolver | undefined,\n scales: SdkScales,\n ) {\n this.#client = createClient(Proto.InternalTransferService, transports.authApi);\n this.#resolver = resolver;\n this.#scales = scales;\n this.#inputSchema = createCreateInternalTransferInputSchema(scales);\n this.#resultSchema = createCreateInternalTransferResultSchema();\n }\n\n /**\n * Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.\n */\n async create(\n input: CreateInternalTransferInput,\n options?: PolyesterMutationOptions,\n ): Promise<CreateInternalTransferResult> {\n await this.#scales.ready();\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(this.#inputSchema, resolvedInput);\n const res = await this.#client.createInternalTransfer(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(this.#resultSchema, res);\n }\n}\n"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"internal-transfers.js","names":["#client","Proto.InternalTransferService","#resolver","#scales","#inputSchema","#resultSchema"],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport type { SdkScales } from \"../../shared/decimal-surface.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n createCreateInternalTransferInputSchema,\n createCreateInternalTransferResultSchema,\n type CreateInternalTransferInput,\n type CreateInternalTransferResult,\n GetInternalTransferInputSchema,\n GetInternalTransferResultSchema,\n type GetInternalTransferInput,\n type GetInternalTransferResult,\n} from \"./internal-transfers.schemas.js\";\n\n/**\n * Creates and reads authenticated Trading-to-Trading internal transfer requests.\n */\nexport class InternalTransfersService {\n #client: Client<typeof Proto.InternalTransferService>;\n #resolver?: SubaccountResolver;\n #scales: SdkScales;\n #inputSchema: ReturnType<typeof createCreateInternalTransferInputSchema>;\n #resultSchema: ReturnType<typeof createCreateInternalTransferResultSchema>;\n\n constructor(\n transports: AuthApiTransports,\n resolver: SubaccountResolver | undefined,\n scales: SdkScales,\n ) {\n this.#client = createClient(Proto.InternalTransferService, transports.authApi);\n this.#resolver = resolver;\n this.#scales = scales;\n this.#inputSchema = createCreateInternalTransferInputSchema(scales);\n this.#resultSchema = createCreateInternalTransferResultSchema();\n }\n\n /**\n * Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, the lifecycle `flowId`, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.\n */\n async create(\n input: CreateInternalTransferInput,\n options?: PolyesterMutationOptions,\n ): Promise<CreateInternalTransferResult> {\n await this.#scales.ready();\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(this.#inputSchema, resolvedInput);\n const res = await this.#client.createInternalTransfer(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(this.#resultSchema, res);\n }\n\n /**\n * Reads an accepted transfer of the resolved source account by exactly one of `requestId` or\n * `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it\n * to reconcile a transfer without resubmitting it; pass `flowId` to `lifecycle.getFlow`,\n * whose ledger settlement step carries the transfer ID. An unknown, pending or inaccessible\n * transfer is a `ResourceNotFoundError`, including briefly after a delegate is granted access.\n * Session JWT only; API keys are refused. Moves no money and needs no step-up.\n */\n async get(\n input: GetInternalTransferInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetInternalTransferResult> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(GetInternalTransferInputSchema, resolvedInput);\n const res = await this.#client.getInternalTransfer(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(GetInternalTransferResultSchema, res);\n }\n}\n"],"mappings":";;;;;;;;;;;AA0BA,IAAa,2BAAb,MAAsC;CAClC;CACA;CACA;CACA;CACA;CAEA,YACI,YACA,UACA,QACF;EACE,KAAKA,UAAU,aAAaC,yBAA+B,WAAW,OAAO;EAC7E,KAAKC,YAAY;EACjB,KAAKC,UAAU;EACf,KAAKC,eAAe,wCAAwC,MAAM;EAClE,KAAKC,gBAAgB,yCAAyC;CAClE;;;;CAKA,MAAM,OACF,OACA,SACqC;EACrC,MAAM,KAAKF,QAAQ,MAAM;EACzB,MAAM,gBAAgB,0BAA0B,OAAO,KAAKD,SAAS;EACrE,MAAM,iBAAiB,MAAM,KAAKE,cAAc,aAAa;EAC7D,MAAM,MAAM,MAAM,KAAKJ,QAAQ,uBAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,KAAKK,eAAe,GAAG;CACxC;;;;;;;;;CAUA,MAAM,IACF,OACA,SACkC;EAClC,MAAM,gBAAgB,0BAA0B,OAAO,KAAKH,SAAS;EACrE,MAAM,UAAU,MAAM,gCAAgC,aAAa;EACnE,MAAM,MAAM,MAAM,KAAKF,QAAQ,oBAC3B,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,iCAAiC,GAAG;CACrD;AACJ"}
|
|
@@ -139,6 +139,8 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
139
139
|
smartAccountAddress: string | undefined;
|
|
140
140
|
}>]>, undefined>;
|
|
141
141
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "accepted" | "rejected">]>;
|
|
142
|
+
/** Lifecycle flow ID for `lifecycle.getFlow`; empty when the server did not return one. */
|
|
143
|
+
readonly flowId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
142
144
|
}, undefined>, v.TransformAction<{
|
|
143
145
|
requestId: string;
|
|
144
146
|
transferId: string;
|
|
@@ -156,6 +158,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
156
158
|
smartAccountAddress: string | undefined;
|
|
157
159
|
} | undefined;
|
|
158
160
|
status: "unspecified" | "failed" | "accepted" | "rejected";
|
|
161
|
+
flowId: string;
|
|
159
162
|
}, {
|
|
160
163
|
acceptedAtUnixMs: number;
|
|
161
164
|
quantity: string;
|
|
@@ -170,8 +173,60 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
170
173
|
smartAccountAddress: string | undefined;
|
|
171
174
|
} | undefined;
|
|
172
175
|
status: "unspecified" | "failed" | "accepted" | "rejected";
|
|
176
|
+
flowId: string;
|
|
173
177
|
}>]>;
|
|
174
178
|
type CreateInternalTransferResult = v.InferOutput<ReturnType<typeof createCreateInternalTransferResultSchema>>;
|
|
179
|
+
declare const GetInternalTransferInputSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StrictObjectSchema<{
|
|
180
|
+
readonly requestId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
181
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
182
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
183
|
+
}, undefined>], undefined>, undefined>;
|
|
184
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
185
|
+
readonly transferId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
186
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
187
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
188
|
+
}, undefined>], undefined>, undefined>;
|
|
189
|
+
}, undefined>], "Pass exactly one of requestId or transferId.">, v.TransformAction<{
|
|
190
|
+
requestId: string;
|
|
191
|
+
account?: "active" | "main" | {
|
|
192
|
+
subaccountId: string;
|
|
193
|
+
} | undefined;
|
|
194
|
+
} | {
|
|
195
|
+
transferId: string;
|
|
196
|
+
account?: "active" | "main" | {
|
|
197
|
+
subaccountId: string;
|
|
198
|
+
} | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
subaccountId: bigint | undefined;
|
|
201
|
+
identifier: {
|
|
202
|
+
case: "requestId";
|
|
203
|
+
value: string;
|
|
204
|
+
} | {
|
|
205
|
+
case: "transferId";
|
|
206
|
+
value: string;
|
|
207
|
+
};
|
|
208
|
+
}>]>;
|
|
209
|
+
/** Selects an accepted transfer by exactly one of its `requestId` or `transferId`. */
|
|
210
|
+
type GetInternalTransferInput = v.InferInput<typeof GetInternalTransferInputSchema>;
|
|
211
|
+
declare const GetInternalTransferResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
212
|
+
readonly requestId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
213
|
+
readonly transferId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
214
|
+
readonly flowId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
215
|
+
readonly acceptedAtTsNs: v.BigintSchema<undefined>;
|
|
216
|
+
}, undefined>, v.TransformAction<{
|
|
217
|
+
requestId: string;
|
|
218
|
+
transferId: string;
|
|
219
|
+
flowId: string;
|
|
220
|
+
acceptedAtTsNs: bigint;
|
|
221
|
+
}, {
|
|
222
|
+
acceptedAtUnixMs: number;
|
|
223
|
+
/** Exact acceptance time in nanoseconds since epoch, as a decimal string. */
|
|
224
|
+
acceptedAtNs: string;
|
|
225
|
+
requestId: string;
|
|
226
|
+
transferId: string;
|
|
227
|
+
flowId: string;
|
|
228
|
+
}>]>;
|
|
229
|
+
type GetInternalTransferResult = v.InferOutput<typeof GetInternalTransferResultSchema>;
|
|
175
230
|
//#endregion
|
|
176
|
-
export { CreateInternalTransferInput, CreateInternalTransferResult, InternalTransferDestination, InternalTransferDestinationInputSchema, ResolvedInternalTransferDestination, ResolvedInternalTransferDestinationSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema };
|
|
231
|
+
export { CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferInput, GetInternalTransferInputSchema, GetInternalTransferResult, GetInternalTransferResultSchema, InternalTransferDestination, InternalTransferDestinationInputSchema, ResolvedInternalTransferDestination, ResolvedInternalTransferDestinationSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema };
|
|
177
232
|
//# sourceMappingURL=internal-transfers.schemas.d.ts.map
|