@polyester/sdk 0.34.0 → 0.34.1-devnet-20261106033258
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 +16 -0
- 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/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +6 -0
- package/dist/services/checkpoints/checkpoints.schemas.d.ts.map +1 -1
- package/dist/services/checkpoints/checkpoints.schemas.js +6 -0
- package/dist/services/checkpoints/checkpoints.schemas.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +2 -2
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +7 -7
- package/dist/services/orders/orders-output.schemas.d.ts +12 -12
- package/dist/services/orders/orders.d.ts +1 -1
- package/dist/services/orders/orders.js +1 -1
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/rewards/rewards.d.ts +1 -1
- package/dist/services/rewards/rewards.js +1 -1
- package/dist/services/rewards/rewards.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +10 -3
- package/dist/services/rewards/rewards.schemas.d.ts.map +1 -1
- package/dist/services/rewards/rewards.schemas.js +8 -1
- package/dist/services/rewards/rewards.schemas.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.d.ts +1 -1
- package/dist/services/subaccounts/subaccounts.js +1 -1
- package/dist/services/subaccounts/subaccounts.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +23 -14
- package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.js +8 -1
- package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +15 -15
- package/dist/shared/errors.d.ts +1 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/transports.js.map +1 -1
- package/dist/utils/columnar-time.d.ts.map +1 -1
- package/dist/utils/columnar-time.js +2 -1
- package/dist/utils/columnar-time.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @polyester/sdk
|
|
2
2
|
|
|
3
|
+
## 0.34.1-devnet-20261106033258
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The `orders.batchCreate` JSDoc now gives the batch's 15-minute idempotency window. It previously said 60 seconds, which is the `batchReplace` window. Within 15 minutes, a retry with the same `requestId` and payload returns each decided item's original result and retries the unresolved ones. After that the ID is free, and a repeat can place its orders again. ([#235](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/235))
|
|
8
|
+
|
|
9
|
+
- `Checkpoint` now carries `openingValueUsd`, the season-end USD value of the holdings restored when the season opened (`"0"` when it opened with no balances, `undefined` when a restored balance had no USD value). With it, `seasonResultUsd` reconciles as `finalValueUsd - openingValueUsd - netInflowUsd`. ([#235](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/235))
|
|
10
|
+
|
|
11
|
+
- `expandColumnarTimestampsSec` and `columnarTimestampSecAt` now end at `endTsSec`, so the last columnar history point is no longer one bucket early. ([#233](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/233))
|
|
12
|
+
|
|
13
|
+
- `rewards.listAwards` now returns `awardsMayChange`. It is `true` while a campaign can still publish awards or one of the account's awards is awaiting a destination, ready for payout, or failed and retryable. When it is `false`, polling cannot return new awards or award changes until a new campaign is created. ([#235](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/235))
|
|
14
|
+
|
|
15
|
+
- `PolyesterErrorCode` now includes `"SUBACCOUNT_CHALLENGE_INVALID"`, the code `SubaccountChallengeInvalidError` already carries, so an exhaustive `switch` over the union covers it. ([#235](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/235))
|
|
16
|
+
|
|
17
|
+
- `Subaccount` records now carry `removed`. `subaccounts.subscribe` emits `removed: true` (with `role: "unspecified"`) when the caller loses access to a subaccount, for example after the owner removes them as a member, so drop it from local state. List and get responses always return `false`. Access and role changes do not bump `revision` or `updatedAt`, so apply them in arrival order. ([#235](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/235))
|
|
18
|
+
|
|
3
19
|
## 0.34.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -297,7 +297,7 @@ declare const AddressBookSchema: v.ObjectSchema<{
|
|
|
297
297
|
rootAccountId: string;
|
|
298
298
|
subaccountId: bigint;
|
|
299
299
|
}, AddressBookAccountScope>]>, undefined>;
|
|
300
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
300
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
|
|
301
301
|
readonly label: v.StringSchema<undefined>;
|
|
302
302
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
303
303
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -1102,7 +1102,7 @@ declare const AddressBookViewSchema: v.ObjectSchema<{
|
|
|
1102
1102
|
rootAccountId: string;
|
|
1103
1103
|
subaccountId: bigint;
|
|
1104
1104
|
}, AddressBookAccountScope>]>, undefined>;
|
|
1105
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
1105
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
|
|
1106
1106
|
readonly label: v.StringSchema<undefined>;
|
|
1107
1107
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
1108
1108
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -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" | "1s" | "1m" | "
|
|
14
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
25
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
36
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
49
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
66
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
83
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
103
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
120
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
137
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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" | "1s" | "1m" | "
|
|
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" | "1s" | "1m" | "5m" | "1h" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "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>;
|
|
@@ -31,7 +31,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
|
|
|
31
31
|
}, undefined>, v.CheckAction<{
|
|
32
32
|
categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
|
|
33
33
|
actionRequired?: boolean | undefined;
|
|
34
|
-
surfaces: ("
|
|
34
|
+
surfaces: ("trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
35
35
|
audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
|
|
36
36
|
startTime?: number | undefined;
|
|
37
37
|
endTime?: number | undefined;
|
|
@@ -42,7 +42,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
|
|
|
42
42
|
}, "endTime: must be after startTime">, v.TransformAction<{
|
|
43
43
|
categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
|
|
44
44
|
actionRequired?: boolean | undefined;
|
|
45
|
-
surfaces: ("
|
|
45
|
+
surfaces: ("trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
46
46
|
audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
|
|
47
47
|
startTime?: number | undefined;
|
|
48
48
|
endTime?: number | undefined;
|
|
@@ -73,14 +73,14 @@ declare const ChangelogChangeSchema: v.ObjectSchema<{
|
|
|
73
73
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
74
74
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
75
75
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
76
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
76
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
|
|
77
77
|
}, undefined>;
|
|
78
78
|
type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;
|
|
79
79
|
/** `surface` is the product area the section covers, `"unspecified"` when it spans several. */
|
|
80
80
|
declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
81
81
|
readonly heading: v.StringSchema<undefined>;
|
|
82
82
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
83
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>;
|
|
84
84
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
85
85
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
86
86
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -90,7 +90,7 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
|
90
90
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
91
91
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
92
92
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
93
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
93
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
|
|
94
94
|
}, undefined>, undefined>, readonly []>;
|
|
95
95
|
}, undefined>;
|
|
96
96
|
type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;
|
|
@@ -179,7 +179,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
179
179
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
180
180
|
readonly heading: v.StringSchema<undefined>;
|
|
181
181
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
182
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
182
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>;
|
|
183
183
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
184
184
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
185
185
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -189,7 +189,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
189
189
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
190
190
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
191
191
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
192
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
192
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
|
|
193
193
|
}, undefined>, undefined>, readonly []>;
|
|
194
194
|
}, undefined>, undefined>, readonly []>;
|
|
195
195
|
}, undefined>, v.TransformAction<{
|
|
@@ -209,7 +209,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
209
209
|
sections: {
|
|
210
210
|
heading: string;
|
|
211
211
|
summary?: string | undefined;
|
|
212
|
-
surface: "unspecified" | "
|
|
212
|
+
surface: "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards";
|
|
213
213
|
changes: {
|
|
214
214
|
id: string;
|
|
215
215
|
title: string;
|
|
@@ -219,14 +219,14 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
219
219
|
actionRequired: boolean;
|
|
220
220
|
migrationGuidance?: string | undefined;
|
|
221
221
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
222
|
-
surfaces: ("unspecified" | "
|
|
222
|
+
surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
223
223
|
}[];
|
|
224
224
|
}[];
|
|
225
225
|
}, {
|
|
226
226
|
sections: {
|
|
227
227
|
heading: string;
|
|
228
228
|
summary?: string | undefined;
|
|
229
|
-
surface: "unspecified" | "
|
|
229
|
+
surface: "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards";
|
|
230
230
|
changes: {
|
|
231
231
|
id: string;
|
|
232
232
|
title: string;
|
|
@@ -236,7 +236,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
236
236
|
actionRequired: boolean;
|
|
237
237
|
migrationGuidance?: string | undefined;
|
|
238
238
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
239
|
-
surfaces: ("unspecified" | "
|
|
239
|
+
surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
240
240
|
}[];
|
|
241
241
|
}[];
|
|
242
242
|
slug: string;
|
|
@@ -262,7 +262,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
262
262
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
263
263
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
264
264
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
265
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
265
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
|
|
266
266
|
}, undefined>;
|
|
267
267
|
readonly postSlug: v.StringSchema<undefined>;
|
|
268
268
|
readonly publishedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -283,7 +283,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
283
283
|
actionRequired: boolean;
|
|
284
284
|
migrationGuidance?: string | undefined;
|
|
285
285
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
286
|
-
surfaces: ("unspecified" | "
|
|
286
|
+
surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
287
287
|
};
|
|
288
288
|
postSlug: string;
|
|
289
289
|
publishedAt: number;
|
|
@@ -300,7 +300,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
300
300
|
actionRequired: boolean;
|
|
301
301
|
migrationGuidance?: string | undefined;
|
|
302
302
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
303
|
-
surfaces: ("unspecified" | "
|
|
303
|
+
surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
304
304
|
}>]>;
|
|
305
305
|
/** A change with the slug, publication time and section heading of the post that announced it. */
|
|
306
306
|
type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;
|
|
@@ -315,7 +315,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
315
315
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
316
316
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
317
317
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
318
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
318
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
|
|
319
319
|
}, undefined>;
|
|
320
320
|
readonly postSlug: v.StringSchema<undefined>;
|
|
321
321
|
readonly publishedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -336,7 +336,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
336
336
|
actionRequired: boolean;
|
|
337
337
|
migrationGuidance?: string | undefined;
|
|
338
338
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
339
|
-
surfaces: ("unspecified" | "
|
|
339
|
+
surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
340
340
|
};
|
|
341
341
|
postSlug: string;
|
|
342
342
|
publishedAt: number;
|
|
@@ -353,7 +353,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
353
353
|
actionRequired: boolean;
|
|
354
354
|
migrationGuidance?: string | undefined;
|
|
355
355
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
356
|
-
surfaces: ("unspecified" | "
|
|
356
|
+
surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
357
357
|
}>]>, undefined>, readonly []>;
|
|
358
358
|
readonly nextPageToken: v.StringSchema<undefined>;
|
|
359
359
|
}, undefined>;
|
|
@@ -418,6 +418,12 @@ declare const CheckpointSchema: v.ObjectSchema<{
|
|
|
418
418
|
readonly outflowUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
419
419
|
readonly netInflowUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
420
420
|
readonly finalValueUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
421
|
+
/**
|
|
422
|
+
* Holdings restored when the season opened, valued at season end like `finalValueUsd`;
|
|
423
|
+
* `"0"` when the season opened with no balances.
|
|
424
|
+
*/
|
|
425
|
+
readonly openingValueUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
426
|
+
/** `finalValueUsd` minus `openingValueUsd` minus `netInflowUsd`; absent when any of them is. */
|
|
421
427
|
readonly seasonResultUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
422
428
|
readonly subaccounts: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
|
|
423
429
|
/** Values computed from partial evidence; show them with an approximation marker. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkpoints.schemas.d.ts","names":[],"sources":["../../../src/services/checkpoints/checkpoints.schemas.ts"],"mappings":";;cA2Ba,6BAA2B,EAAA;;;;;;;;;;;;KAO5B,wBAAwB,EAAE,mBAAmB;cAE5C,qCAAmC,EAAA;;;;;;;;;;;KAMpC,gCAAgC,EAAE,mBACnC;cAcE,8BAA4B,EAAA;;;;;;KAO7B,yBAAyB,EAAE,mBAAmB;cAE7C,8BAA4B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;KAa7B,yBAAyB,EAAE,mBAAmB;cAE7C,iCAA+B,EAAA;;;;KAKhC,4BAA4B,EAAE,mBAAmB;cAEhD,mCAAiC,EAAA;;;;;;KAOlC,8BAA8B,EAAE,mBAAmB;cAElD,iCAA+B,EAAA;;;;;;;KAQhC,4BAA4B,EAAE,mBAAmB;cAEhD,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,mBAAmB;cAE9C,6BAA2B,EAAA;;;;;;;;;;KAK5B,wBAAwB,EAAE,mBAAmB;;;;;;cAO5C,6BAA2B,EAAA,yBAAA,EAAA;;;;;;;;;;;KAa5B,wBAAwB,EAAE,mBAAmB;;cAG5C,2BAAyB,EAAA;;;;KAK1B,sBAAsB,EAAE,mBAAmB;cAI1C,2BAAyB,EAAA;;;;;;;;;;KAM1B,sBAAsB,EAAE,mBAAmB;cAE1C,oCAAkC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;KAMnC,+BAA+B,EAAE,mBAAmB;cAInD,4BAA0B,EAAA;;;;;KAM3B,uBAAuB,EAAE,mBAAmB;cAE3C,kBAAgB,EAAA
|
|
1
|
+
{"version":3,"file":"checkpoints.schemas.d.ts","names":[],"sources":["../../../src/services/checkpoints/checkpoints.schemas.ts"],"mappings":";;cA2Ba,6BAA2B,EAAA;;;;;;;;;;;;KAO5B,wBAAwB,EAAE,mBAAmB;cAE5C,qCA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AO3B,uBAAuB,EAAE,kBAAkB"}
|
|
@@ -163,6 +163,12 @@ const CheckpointSchema = v.object({
|
|
|
163
163
|
outflowUsd: v.optional(UnsignedDecimalSchema),
|
|
164
164
|
netInflowUsd: v.optional(SignedDecimalSchema),
|
|
165
165
|
finalValueUsd: v.optional(SignedDecimalSchema),
|
|
166
|
+
/**
|
|
167
|
+
* Holdings restored when the season opened, valued at season end like `finalValueUsd`;
|
|
168
|
+
* `"0"` when the season opened with no balances.
|
|
169
|
+
*/
|
|
170
|
+
openingValueUsd: v.optional(UnsignedDecimalSchema),
|
|
171
|
+
/** `finalValueUsd` minus `openingValueUsd` minus `netInflowUsd`; absent when any of them is. */
|
|
166
172
|
seasonResultUsd: v.optional(SignedDecimalSchema),
|
|
167
173
|
subaccounts: CountSchema,
|
|
168
174
|
/** Values computed from partial evidence; show them with an approximation marker. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkpoints.schemas.js","names":[],"sources":["../../../src/services/checkpoints/checkpoints.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabel, enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n OptionalTimestampMsSchema,\n optionalSubaccountIdInputSchema,\n TimestampMsSchema,\n} from \"../../shared/schemas.js\";\nimport { OrderSideCodec } from \"../orders/order-enums.codecs.js\";\nimport { CheckpointBadgeCodec, CheckpointFieldCodec } from \"./checkpoints.codecs.js\";\n\n// Money values and ratios stay base-10 decimal strings so consumers parse them\n// with a decimal type; the contract marks which ones may be negative.\nconst UnsignedDecimalSchema = v.pipe(v.string(), v.regex(/^\\d+(\\.\\d+)?$/));\nconst SignedDecimalSchema = v.pipe(v.string(), v.regex(/^-?\\d+(\\.\\d+)?$/));\nconst RatioSchema = v.pipe(v.string(), v.regex(/^(0(\\.\\d+)?|1(\\.0+)?)$/));\nconst UtcDateSchema = v.pipe(v.string(), v.isoDate());\n\n// uint64 counts surface as numbers; a count past 2^53 would lose precision, so it fails instead.\nconst CountSchema = v.pipe(\n v.bigint(),\n v.maxValue(BigInt(Number.MAX_SAFE_INTEGER)),\n v.transform(Number),\n);\n\nconst VipTierSchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(10));\nconst UtcHourSchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(23));\n\nexport const CheckpointVolumePointSchema = v.object({\n day: TimestampMsSchema,\n usd: UnsignedDecimalSchema,\n approximate: v.boolean(),\n trades: CountSchema,\n});\n\nexport type CheckpointVolumePoint = v.InferOutput<typeof CheckpointVolumePointSchema>;\n\nexport const CheckpointPortfolioValuePointSchema = v.object({\n hour: TimestampMsSchema,\n usd: SignedDecimalSchema,\n approximate: v.boolean(),\n});\n\nexport type CheckpointPortfolioValuePoint = v.InferOutput<\n typeof CheckpointPortfolioValuePointSchema\n>;\n\n// Monday first; each row holds UTC hours 0 through 23.\nconst TradesByWeekdayHourSchema = v.pipe(\n v.array(\n v.pipe(\n v.object({ hours: v.pipe(v.array(CountSchema), v.length(24)) }),\n v.transform(({ hours }) => hours),\n ),\n ),\n v.length(7),\n);\n\nexport const CheckpointPairActivitySchema = v.object({\n symbolId: v.number(),\n symbol: v.string(),\n volumeUsd: UnsignedDecimalSchema,\n trades: CountSchema,\n});\n\nexport type CheckpointPairActivity = v.InferOutput<typeof CheckpointPairActivitySchema>;\n\nexport const CheckpointBiggestTradeSchema = v.pipe(\n v.object({\n symbolId: v.number(),\n symbol: v.string(),\n side: v.number(),\n at: TimestampMsSchema,\n }),\n v.transform(({ side, ...trade }) => ({\n ...trade,\n side: enumLabel(OrderSideCodec.protoToOutput, side),\n })),\n);\n\nexport type CheckpointBiggestTrade = v.InferOutput<typeof CheckpointBiggestTradeSchema>;\n\nexport const CheckpointOrderTypeCountsSchema = v.object({\n limit: CountSchema,\n market: CountSchema,\n});\n\nexport type CheckpointOrderTypeCounts = v.InferOutput<typeof CheckpointOrderTypeCountsSchema>;\n\nexport const CheckpointTimeInForceCountsSchema = v.object({\n gtc: CountSchema,\n ioc: CountSchema,\n fok: CountSchema,\n gtd: CountSchema,\n});\n\nexport type CheckpointTimeInForceCounts = v.InferOutput<typeof CheckpointTimeInForceCountsSchema>;\n\nexport const CheckpointOrderToolCountsSchema = v.object({\n stopLoss: CountSchema,\n takeProfit: CountSchema,\n trailingStop: CountSchema,\n twap: CountSchema,\n ladder: CountSchema,\n});\n\nexport type CheckpointOrderToolCounts = v.InferOutput<typeof CheckpointOrderToolCountsSchema>;\n\nexport const CheckpointVipTierChangeSchema = v.object({\n date: UtcDateSchema,\n tier: VipTierSchema,\n});\n\nexport type CheckpointVipTierChange = v.InferOutput<typeof CheckpointVipTierChangeSchema>;\n\nexport const CheckpointEarnedBadgeSchema = v.object({\n badge: enumLabelSchema(CheckpointBadgeCodec.protoToOutput),\n earnedAt: TimestampMsSchema,\n});\n\nexport type CheckpointEarnedBadge = v.InferOutput<typeof CheckpointEarnedBadgeSchema>;\n\n/**\n * `usd` is `undefined` when the asset had no USD price at the required time; it is not zero.\n * `excludedFromValue` marks an asset that is not account equity, such as a testnet faucet\n * token: it is listed by amount only, never has `usd`, and is left out of every USD total.\n */\nexport const CheckpointAssetAmountSchema = v.pipe(\n v.object({\n asset: v.string(),\n amount: SignedDecimalSchema,\n usd: v.optional(SignedDecimalSchema),\n excludedFromValue: v.boolean(),\n }),\n v.check(\n (amount) => !amount.excludedFromValue || amount.usd === undefined,\n \"usd: must be absent for an asset excluded from value\",\n ),\n);\n\nexport type CheckpointAssetAmount = v.InferOutput<typeof CheckpointAssetAmountSchema>;\n\n/** `usd` is `undefined` when any operation had no USD value; it is not zero. */\nexport const CheckpointFlowTotalSchema = v.object({\n count: CountSchema,\n usd: v.optional(UnsignedDecimalSchema),\n});\n\nexport type CheckpointFlowTotal = v.InferOutput<typeof CheckpointFlowTotalSchema>;\n\nconst EmptyFlowTotal = { count: 0n };\n\nexport const CheckpointChainFlowSchema = v.object({\n polyesterChainId: v.number(),\n chainName: v.string(),\n total: v.optional(CheckpointFlowTotalSchema, EmptyFlowTotal),\n});\n\nexport type CheckpointChainFlow = v.InferOutput<typeof CheckpointChainFlowSchema>;\n\nexport const CheckpointFundingFlowSummarySchema = v.object({\n count: CountSchema,\n chains: v.optional(v.array(CheckpointChainFlowSchema), []),\n amounts: v.optional(v.array(CheckpointAssetAmountSchema), []),\n});\n\nexport type CheckpointFundingFlowSummary = v.InferOutput<typeof CheckpointFundingFlowSummarySchema>;\n\nconst EmptyFundingFlowSummary = { count: 0n };\n\nexport const CheckpointFundingDaySchema = v.object({\n date: UtcDateSchema,\n depositUsd: v.optional(UnsignedDecimalSchema),\n withdrawalUsd: v.optional(UnsignedDecimalSchema),\n});\n\nexport type CheckpointFundingDay = v.InferOutput<typeof CheckpointFundingDaySchema>;\n\nexport const CheckpointSchema = v.object({\n number: v.pipe(v.number(), v.integer(), v.minValue(1)),\n seasonStart: TimestampMsSchema,\n seasonEnd: TimestampMsSchema,\n takenAt: TimestampMsSchema,\n volumeUsd: UnsignedDecimalSchema,\n trades: CountSchema,\n orders: CountSchema,\n daysActive: v.number(),\n longestStreak: v.number(),\n topPairs: v.optional(v.array(CheckpointPairActivitySchema), []),\n marketsTraded: v.number(),\n makerTrades: CountSchema,\n takerTrades: CountSchema,\n selfTrades: CountSchema,\n tradesByWeekdayHour: TradesByWeekdayHourSchema,\n dailyVolume: v.optional(v.array(CheckpointVolumePointSchema), []),\n biggestTradeUsd: UnsignedDecimalSchema,\n biggestTrade: v.optional(CheckpointBiggestTradeSchema),\n orderTypes: v.optional(CheckpointOrderTypeCountsSchema, { limit: 0n, market: 0n }),\n timeInForce: v.optional(CheckpointTimeInForceCountsSchema, {\n gtc: 0n,\n ioc: 0n,\n fok: 0n,\n gtd: 0n,\n }),\n tools: v.optional(CheckpointOrderToolCountsSchema, {\n stopLoss: 0n,\n takeProfit: 0n,\n trailingStop: 0n,\n twap: 0n,\n ladder: 0n,\n }),\n postOnly: CountSchema,\n amends: CountSchema,\n filledOrders: CountSchema,\n partiallyFilledOrders: CountSchema,\n canceledOrders: CountSchema,\n rejectedOrders: CountSchema,\n fillRate: RatioSchema,\n cancelRatio: RatioSchema,\n medianLimitRestMs: v.optional(CountSchema),\n firstTradeAt: OptionalTimestampMsSchema,\n busiestDay: v.optional(UtcDateSchema),\n mostActiveHourUtc: v.optional(UtcHourSchema),\n vipTierAtCheckpoint: VipTierSchema,\n peakVipTier: VipTierSchema,\n vipTimeline: v.optional(v.array(CheckpointVipTierChangeSchema), []),\n badges: v.optional(v.array(CheckpointEarnedBadgeSchema), []),\n portfolioValue: v.optional(v.array(CheckpointPortfolioValuePointSchema), []),\n tradingBalances: v.optional(v.array(CheckpointAssetAmountSchema), []),\n fundingBalances: v.optional(v.array(CheckpointAssetAmountSchema), []),\n deposits: v.optional(CheckpointFundingFlowSummarySchema, EmptyFundingFlowSummary),\n withdrawals: v.optional(CheckpointFundingFlowSummarySchema, EmptyFundingFlowSummary),\n fundingByDay: v.optional(v.array(CheckpointFundingDaySchema), []),\n transfersIn: v.optional(CheckpointFlowTotalSchema, EmptyFlowTotal),\n transfersOut: v.optional(CheckpointFlowTotalSchema, EmptyFlowTotal),\n internalTransfers: CountSchema,\n dailyClaims: CountSchema,\n dailyClaimAmounts: v.optional(v.array(CheckpointAssetAmountSchema), []),\n inflowUsd: v.optional(UnsignedDecimalSchema),\n outflowUsd: v.optional(UnsignedDecimalSchema),\n netInflowUsd: v.optional(SignedDecimalSchema),\n finalValueUsd: v.optional(SignedDecimalSchema),\n seasonResultUsd: v.optional(SignedDecimalSchema),\n subaccounts: CountSchema,\n /** Values computed from partial evidence; show them with an approximation marker. */\n incomplete: v.optional(v.array(enumLabelSchema(CheckpointFieldCodec.protoToOutput)), []),\n});\n\n/**\n * One frozen season recap of a root account and all of its subaccounts. An absent USD value\n * means the value was unavailable, not zero.\n */\nexport type Checkpoint = v.InferOutput<typeof CheckpointSchema>;\n\nexport const ListCheckpointsResultSchema = v.object({\n checkpoints: v.optional(v.array(CheckpointSchema), []),\n});\n\n// A present `subaccountId` of zero names no subaccount, so it fails here instead of reaching the server.\nexport const ListCheckpointsInputSchema = v.strictObject({\n subaccountId: v.pipe(\n optionalSubaccountIdInputSchema(),\n v.check((value) => value !== 0n, \"subaccountId: must be greater than zero\"),\n ),\n});\n\nexport type ListCheckpointsInput = v.InferInput<typeof ListCheckpointsInputSchema>;\n"],"mappings":";;;;;;AAYA,MAAM,wBAAwB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,MAAM,eAAe,CAAC;AACzE,MAAM,sBAAsB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACzE,MAAM,cAAc,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,MAAM,wBAAwB,CAAC;AACxE,MAAM,gBAAgB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;AAGpD,MAAM,cAAc,EAAE,KAClB,EAAE,OAAO,GACT,EAAE,SAAS,OAAO,OAAO,gBAAgB,CAAC,GAC1C,EAAE,UAAU,MAAM,CACtB;AAEA,MAAM,gBAAgB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC;AACnF,MAAM,gBAAgB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC;AAEnF,MAAa,8BAA8B,EAAE,OAAO;CAChD,KAAK;CACL,KAAK;CACL,aAAa,EAAE,QAAQ;CACvB,QAAQ;AACZ,CAAC;AAID,MAAa,sCAAsC,EAAE,OAAO;CACxD,MAAM;CACN,KAAK;CACL,aAAa,EAAE,QAAQ;AAC3B,CAAC;AAOD,MAAM,4BAA4B,EAAE,KAChC,EAAE,MACE,EAAE,KACE,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,G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BAA6B,EAAE,aAAa,EACrD,cAAc,EAAE,KACZ,gCAAgC,GAChC,EAAE,OAAO,UAAU,UAAU,IAAI,yCAAyC,CAC9E,EACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"checkpoints.schemas.js","names":[],"sources":["../../../src/services/checkpoints/checkpoints.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabel, enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n OptionalTimestampMsSchema,\n optionalSubaccountIdInputSchema,\n TimestampMsSchema,\n} from \"../../shared/schemas.js\";\nimport { OrderSideCodec } from \"../orders/order-enums.codecs.js\";\nimport { CheckpointBadgeCodec, CheckpointFieldCodec } from \"./checkpoints.codecs.js\";\n\n// Money values and ratios stay base-10 decimal strings so consumers parse them\n// with a decimal type; the contract marks which ones may be negative.\nconst UnsignedDecimalSchema = v.pipe(v.string(), v.regex(/^\\d+(\\.\\d+)?$/));\nconst SignedDecimalSchema = v.pipe(v.string(), v.regex(/^-?\\d+(\\.\\d+)?$/));\nconst RatioSchema = v.pipe(v.string(), v.regex(/^(0(\\.\\d+)?|1(\\.0+)?)$/));\nconst UtcDateSchema = v.pipe(v.string(), v.isoDate());\n\n// uint64 counts surface as numbers; a count past 2^53 would lose precision, so it fails instead.\nconst CountSchema = v.pipe(\n v.bigint(),\n v.maxValue(BigInt(Number.MAX_SAFE_INTEGER)),\n v.transform(Number),\n);\n\nconst VipTierSchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(10));\nconst UtcHourSchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(23));\n\nexport const CheckpointVolumePointSchema = v.object({\n day: TimestampMsSchema,\n usd: UnsignedDecimalSchema,\n approximate: v.boolean(),\n trades: CountSchema,\n});\n\nexport type CheckpointVolumePoint = v.InferOutput<typeof CheckpointVolumePointSchema>;\n\nexport const CheckpointPortfolioValuePointSchema = v.object({\n hour: TimestampMsSchema,\n usd: SignedDecimalSchema,\n approximate: v.boolean(),\n});\n\nexport type CheckpointPortfolioValuePoint = v.InferOutput<\n typeof CheckpointPortfolioValuePointSchema\n>;\n\n// Monday first; each row holds UTC hours 0 through 23.\nconst TradesByWeekdayHourSchema = v.pipe(\n v.array(\n v.pipe(\n v.object({ hours: v.pipe(v.array(CountSchema), v.length(24)) }),\n v.transform(({ hours }) => hours),\n ),\n ),\n v.length(7),\n);\n\nexport const CheckpointPairActivitySchema = v.object({\n symbolId: v.number(),\n symbol: v.string(),\n volumeUsd: UnsignedDecimalSchema,\n trades: CountSchema,\n});\n\nexport type CheckpointPairActivity = v.InferOutput<typeof CheckpointPairActivitySchema>;\n\nexport const CheckpointBiggestTradeSchema = v.pipe(\n v.object({\n symbolId: v.number(),\n symbol: v.string(),\n side: v.number(),\n at: TimestampMsSchema,\n }),\n v.transform(({ side, ...trade }) => ({\n ...trade,\n side: enumLabel(OrderSideCodec.protoToOutput, side),\n })),\n);\n\nexport type CheckpointBiggestTrade = v.InferOutput<typeof CheckpointBiggestTradeSchema>;\n\nexport const CheckpointOrderTypeCountsSchema = v.object({\n limit: CountSchema,\n market: CountSchema,\n});\n\nexport type CheckpointOrderTypeCounts = v.InferOutput<typeof CheckpointOrderTypeCountsSchema>;\n\nexport const CheckpointTimeInForceCountsSchema = v.object({\n gtc: CountSchema,\n ioc: CountSchema,\n fok: CountSchema,\n gtd: CountSchema,\n});\n\nexport type CheckpointTimeInForceCounts = v.InferOutput<typeof CheckpointTimeInForceCountsSchema>;\n\nexport const CheckpointOrderToolCountsSchema = v.object({\n stopLoss: CountSchema,\n takeProfit: CountSchema,\n trailingStop: CountSchema,\n twap: CountSchema,\n ladder: CountSchema,\n});\n\nexport type CheckpointOrderToolCounts = v.InferOutput<typeof CheckpointOrderToolCountsSchema>;\n\nexport const CheckpointVipTierChangeSchema = v.object({\n date: UtcDateSchema,\n tier: VipTierSchema,\n});\n\nexport type CheckpointVipTierChange = v.InferOutput<typeof CheckpointVipTierChangeSchema>;\n\nexport const CheckpointEarnedBadgeSchema = v.object({\n badge: enumLabelSchema(CheckpointBadgeCodec.protoToOutput),\n earnedAt: TimestampMsSchema,\n});\n\nexport type CheckpointEarnedBadge = v.InferOutput<typeof CheckpointEarnedBadgeSchema>;\n\n/**\n * `usd` is `undefined` when the asset had no USD price at the required time; it is not zero.\n * `excludedFromValue` marks an asset that is not account equity, such as a testnet faucet\n * token: it is listed by amount only, never has `usd`, and is left out of every USD total.\n */\nexport const CheckpointAssetAmountSchema = v.pipe(\n v.object({\n asset: v.string(),\n amount: SignedDecimalSchema,\n usd: v.optional(SignedDecimalSchema),\n excludedFromValue: v.boolean(),\n }),\n v.check(\n (amount) => !amount.excludedFromValue || amount.usd === undefined,\n \"usd: must be absent for an asset excluded from value\",\n ),\n);\n\nexport type CheckpointAssetAmount = v.InferOutput<typeof CheckpointAssetAmountSchema>;\n\n/** `usd` is `undefined` when any operation had no USD value; it is not zero. */\nexport const CheckpointFlowTotalSchema = v.object({\n count: CountSchema,\n usd: v.optional(UnsignedDecimalSchema),\n});\n\nexport type CheckpointFlowTotal = v.InferOutput<typeof CheckpointFlowTotalSchema>;\n\nconst EmptyFlowTotal = { count: 0n };\n\nexport const CheckpointChainFlowSchema = v.object({\n polyesterChainId: v.number(),\n chainName: v.string(),\n total: v.optional(CheckpointFlowTotalSchema, EmptyFlowTotal),\n});\n\nexport type CheckpointChainFlow = v.InferOutput<typeof CheckpointChainFlowSchema>;\n\nexport const CheckpointFundingFlowSummarySchema = v.object({\n count: CountSchema,\n chains: v.optional(v.array(CheckpointChainFlowSchema), []),\n amounts: v.optional(v.array(CheckpointAssetAmountSchema), []),\n});\n\nexport type CheckpointFundingFlowSummary = v.InferOutput<typeof CheckpointFundingFlowSummarySchema>;\n\nconst EmptyFundingFlowSummary = { count: 0n };\n\nexport const CheckpointFundingDaySchema = v.object({\n date: UtcDateSchema,\n depositUsd: v.optional(UnsignedDecimalSchema),\n withdrawalUsd: v.optional(UnsignedDecimalSchema),\n});\n\nexport type CheckpointFundingDay = v.InferOutput<typeof CheckpointFundingDaySchema>;\n\nexport const CheckpointSchema = v.object({\n number: v.pipe(v.number(), v.integer(), v.minValue(1)),\n seasonStart: TimestampMsSchema,\n seasonEnd: TimestampMsSchema,\n takenAt: TimestampMsSchema,\n volumeUsd: UnsignedDecimalSchema,\n trades: CountSchema,\n orders: CountSchema,\n daysActive: v.number(),\n longestStreak: v.number(),\n topPairs: v.optional(v.array(CheckpointPairActivitySchema), []),\n marketsTraded: v.number(),\n makerTrades: CountSchema,\n takerTrades: CountSchema,\n selfTrades: CountSchema,\n tradesByWeekdayHour: TradesByWeekdayHourSchema,\n dailyVolume: v.optional(v.array(CheckpointVolumePointSchema), []),\n biggestTradeUsd: UnsignedDecimalSchema,\n biggestTrade: v.optional(CheckpointBiggestTradeSchema),\n orderTypes: v.optional(CheckpointOrderTypeCountsSchema, { limit: 0n, market: 0n }),\n timeInForce: v.optional(CheckpointTimeInForceCountsSchema, {\n gtc: 0n,\n ioc: 0n,\n fok: 0n,\n gtd: 0n,\n }),\n tools: v.optional(CheckpointOrderToolCountsSchema, {\n stopLoss: 0n,\n takeProfit: 0n,\n trailingStop: 0n,\n twap: 0n,\n ladder: 0n,\n }),\n postOnly: CountSchema,\n amends: CountSchema,\n filledOrders: CountSchema,\n partiallyFilledOrders: CountSchema,\n canceledOrders: CountSchema,\n rejectedOrders: CountSchema,\n fillRate: RatioSchema,\n cancelRatio: RatioSchema,\n medianLimitRestMs: v.optional(CountSchema),\n firstTradeAt: OptionalTimestampMsSchema,\n busiestDay: v.optional(UtcDateSchema),\n mostActiveHourUtc: v.optional(UtcHourSchema),\n vipTierAtCheckpoint: VipTierSchema,\n peakVipTier: VipTierSchema,\n vipTimeline: v.optional(v.array(CheckpointVipTierChangeSchema), []),\n badges: v.optional(v.array(CheckpointEarnedBadgeSchema), []),\n portfolioValue: v.optional(v.array(CheckpointPortfolioValuePointSchema), []),\n tradingBalances: v.optional(v.array(CheckpointAssetAmountSchema), []),\n fundingBalances: v.optional(v.array(CheckpointAssetAmountSchema), []),\n deposits: v.optional(CheckpointFundingFlowSummarySchema, EmptyFundingFlowSummary),\n withdrawals: v.optional(CheckpointFundingFlowSummarySchema, EmptyFundingFlowSummary),\n fundingByDay: v.optional(v.array(CheckpointFundingDaySchema), []),\n transfersIn: v.optional(CheckpointFlowTotalSchema, EmptyFlowTotal),\n transfersOut: v.optional(CheckpointFlowTotalSchema, EmptyFlowTotal),\n internalTransfers: CountSchema,\n dailyClaims: CountSchema,\n dailyClaimAmounts: v.optional(v.array(CheckpointAssetAmountSchema), []),\n inflowUsd: v.optional(UnsignedDecimalSchema),\n outflowUsd: v.optional(UnsignedDecimalSchema),\n netInflowUsd: v.optional(SignedDecimalSchema),\n finalValueUsd: v.optional(SignedDecimalSchema),\n /**\n * Holdings restored when the season opened, valued at season end like `finalValueUsd`;\n * `\"0\"` when the season opened with no balances.\n */\n openingValueUsd: v.optional(UnsignedDecimalSchema),\n /** `finalValueUsd` minus `openingValueUsd` minus `netInflowUsd`; absent when any of them is. */\n seasonResultUsd: v.optional(SignedDecimalSchema),\n subaccounts: CountSchema,\n /** Values computed from partial evidence; show them with an approximation marker. */\n incomplete: v.optional(v.array(enumLabelSchema(CheckpointFieldCodec.protoToOutput)), []),\n});\n\n/**\n * One frozen season recap of a root account and all of its subaccounts. An absent USD value\n * means the value was unavailable, not zero.\n */\nexport type Checkpoint = v.InferOutput<typeof CheckpointSchema>;\n\nexport const ListCheckpointsResultSchema = v.object({\n checkpoints: v.optional(v.array(CheckpointSchema), []),\n});\n\n// A present `subaccountId` of zero names no subaccount, so it fails here instead of reaching the server.\nexport const ListCheckpointsInputSchema = v.strictObject({\n subaccountId: v.pipe(\n optionalSubaccountIdInputSchema(),\n v.check((value) => value !== 0n, \"subaccountId: must be greater than zero\"),\n ),\n});\n\nexport type ListCheckpointsInput = v.InferInput<typeof ListCheckpointsInputSchema>;\n"],"mappings":";;;;;;AAYA,MAAM,wBAAwB,EAAE,KAAK,EAAE,OAAO,GAAG,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