@polyester/sdk 0.36.0-devnet-20261119010940 → 0.36.0-devnet-20261119050221
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 +3 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +1 -1
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/activity_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.d.ts +1 -1
- package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
- package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
- package/dist/gen/index.js +24 -24
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
- package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
- package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
- package/dist/gen/polyester/api/v1/request_error_pb.d.ts +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
- package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
- package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +1 -1
- package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
- package/dist/gen/system/v1/system_pb.d.ts +1 -1
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
- package/dist/services/account-activity/account-activity.js +1 -1
- package/dist/services/account-activity/account-activity.schemas.d.ts +2 -2
- package/dist/services/accounts/accounts.js +1 -1
- package/dist/services/accounts/accounts.schemas.js +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.schemas.d.ts +3 -3
- package/dist/services/assistant/assistant-events.schemas.d.ts +29 -29
- package/dist/services/assistant/assistant.js +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +2 -2
- package/dist/services/auth/profile/profile.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +16 -16
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
- package/dist/services/candles/candles.js +1 -1
- package/dist/services/chain-analytics/chain-analytics.js +1 -1
- package/dist/services/changelog/changelog.js +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +45 -40
- package/dist/services/changelog/changelog.schemas.d.ts.map +1 -1
- package/dist/services/changelog/changelog.schemas.js +6 -1
- package/dist/services/changelog/changelog.schemas.js.map +1 -1
- package/dist/services/checkpoints/checkpoints.js +1 -1
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/claims/claims.js +1 -1
- package/dist/services/claims/claims.schemas.js +1 -1
- package/dist/services/connected-apps/connected-apps.js +1 -1
- package/dist/services/deposit/deposit.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +6 -6
- package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
- package/dist/services/fees/fees.js +1 -1
- package/dist/services/guard-signer/guard-signer.js +1 -1
- package/dist/services/heatmap/heatmap.js +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts +4 -3
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +5 -4
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +1 -1
- package/dist/services/lifecycle/lifecycle.js +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +91 -91
- package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
- package/dist/services/market-data/market-data.js +1 -1
- package/dist/services/market-overview/market-overview.js +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/notifications/notifications.js +1 -1
- package/dist/services/orderbook/orderbook.js +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +3 -3
- package/dist/services/orders/order-errors.schemas.js +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +44 -44
- package/dist/services/orders/orders-batch.schemas.js +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +5 -5
- package/dist/services/orders/orders-input.schemas.js +1 -1
- package/dist/services/orders/orders-modify.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +12 -12
- package/dist/services/orders/orders-risk.schemas.js +2 -2
- package/dist/services/orders/orders.js +2 -2
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
- package/dist/services/rate-limits/rate-limits.js +1 -1
- package/dist/services/rewards/rewards.js +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.js +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +1 -1
- package/dist/services/statement-exports/statement-exports.js +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +14 -14
- package/dist/services/system/system.js +1 -1
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.js +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
- package/dist/services/trading-withdraws/wallet-message.js +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +2 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +34 -34
- package/dist/services/triggers/triggers.js +1 -1
- package/dist/services/vip/vip.js +1 -1
- package/dist/services/vip/vip.schemas.js +1 -1
- package/dist/services/zipper/zipper.js +1 -1
- package/dist/services/zipper/zipper.schemas.js +1 -1
- package/dist/shared/error-details/alerts.js +1 -1
- package/dist/shared/error-details/assistant.js +1 -1
- package/dist/shared/error-details/auth.js +1 -1
- package/dist/shared/error-details/claims.js +1 -1
- package/dist/shared/error-details/internal-transfer.js +1 -1
- package/dist/shared/error-details/ledger.js +1 -1
- package/dist/shared/error-details/market-overview.js +1 -1
- package/dist/shared/error-details/notifications.js +1 -1
- package/dist/shared/error-details/orders.js +1 -1
- package/dist/shared/error-details/profile.js +1 -1
- package/dist/shared/error-details/rate-limit.js +1 -1
- package/dist/shared/error-details/withdraw.js +1 -1
- package/dist/shared/errors.d.ts +4 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +4 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/utils/connect-mfa-errors.d.ts +2 -2
- package/dist/utils/connect-mfa-errors.js +2 -2
- package/dist/utils/connect-mfa-errors.js.map +1 -1
- package/dist/wired-services.js +19 -19
- package/package.json +1 -1
|
@@ -502,7 +502,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
502
502
|
readonly hi: v.BigintSchema<undefined>;
|
|
503
503
|
readonly lo: v.BigintSchema<undefined>;
|
|
504
504
|
}, undefined>, undefined>;
|
|
505
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
505
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted">]>;
|
|
506
506
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
507
507
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
508
508
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -526,7 +526,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
526
526
|
hi: bigint;
|
|
527
527
|
lo: bigint;
|
|
528
528
|
} | undefined;
|
|
529
|
-
state: "unspecified" | "failed" | "
|
|
529
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
530
530
|
reason: AutoWithdrawStepReason | null;
|
|
531
531
|
intentId: string;
|
|
532
532
|
txHash: string;
|
|
@@ -540,7 +540,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
540
540
|
txHash: string | null;
|
|
541
541
|
assetId: number;
|
|
542
542
|
destinationAddress: string;
|
|
543
|
-
state: "unspecified" | "failed" | "
|
|
543
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
544
544
|
reason: AutoWithdrawStepReason | null;
|
|
545
545
|
}>]>;
|
|
546
546
|
/**
|
|
@@ -583,7 +583,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
583
583
|
readonly hi: v.BigintSchema<undefined>;
|
|
584
584
|
readonly lo: v.BigintSchema<undefined>;
|
|
585
585
|
}, undefined>, undefined>;
|
|
586
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
586
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted">]>;
|
|
587
587
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
588
588
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
589
589
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -607,7 +607,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
607
607
|
hi: bigint;
|
|
608
608
|
lo: bigint;
|
|
609
609
|
} | undefined;
|
|
610
|
-
state: "unspecified" | "failed" | "
|
|
610
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
611
611
|
reason: AutoWithdrawStepReason | null;
|
|
612
612
|
intentId: string;
|
|
613
613
|
txHash: string;
|
|
@@ -621,7 +621,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
621
621
|
txHash: string | null;
|
|
622
622
|
assetId: number;
|
|
623
623
|
destinationAddress: string;
|
|
624
|
-
state: "unspecified" | "failed" | "
|
|
624
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
625
625
|
reason: AutoWithdrawStepReason | null;
|
|
626
626
|
}>]>, undefined>;
|
|
627
627
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -654,7 +654,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
654
654
|
txHash: string | null;
|
|
655
655
|
assetId: number;
|
|
656
656
|
destinationAddress: string;
|
|
657
|
-
state: "unspecified" | "failed" | "
|
|
657
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
658
658
|
reason: AutoWithdrawStepReason | null;
|
|
659
659
|
}[];
|
|
660
660
|
createdAt: number;
|
|
@@ -676,7 +676,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
676
676
|
txHash: string | null;
|
|
677
677
|
assetId: number;
|
|
678
678
|
destinationAddress: string;
|
|
679
|
-
state: "unspecified" | "failed" | "
|
|
679
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
680
680
|
reason: AutoWithdrawStepReason | null;
|
|
681
681
|
}[];
|
|
682
682
|
createdAt: number;
|
|
@@ -716,7 +716,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
716
716
|
readonly hi: v.BigintSchema<undefined>;
|
|
717
717
|
readonly lo: v.BigintSchema<undefined>;
|
|
718
718
|
}, undefined>, undefined>;
|
|
719
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
719
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted">]>;
|
|
720
720
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
721
721
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
722
722
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -740,7 +740,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
740
740
|
hi: bigint;
|
|
741
741
|
lo: bigint;
|
|
742
742
|
} | undefined;
|
|
743
|
-
state: "unspecified" | "failed" | "
|
|
743
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
744
744
|
reason: AutoWithdrawStepReason | null;
|
|
745
745
|
intentId: string;
|
|
746
746
|
txHash: string;
|
|
@@ -754,7 +754,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
754
754
|
txHash: string | null;
|
|
755
755
|
assetId: number;
|
|
756
756
|
destinationAddress: string;
|
|
757
|
-
state: "unspecified" | "failed" | "
|
|
757
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
758
758
|
reason: AutoWithdrawStepReason | null;
|
|
759
759
|
}>]>, undefined>;
|
|
760
760
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -787,7 +787,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
787
787
|
txHash: string | null;
|
|
788
788
|
assetId: number;
|
|
789
789
|
destinationAddress: string;
|
|
790
|
-
state: "unspecified" | "failed" | "
|
|
790
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
791
791
|
reason: AutoWithdrawStepReason | null;
|
|
792
792
|
}[];
|
|
793
793
|
createdAt: number;
|
|
@@ -809,7 +809,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
809
809
|
txHash: string | null;
|
|
810
810
|
assetId: number;
|
|
811
811
|
destinationAddress: string;
|
|
812
|
-
state: "unspecified" | "failed" | "
|
|
812
|
+
state: "unspecified" | "failed" | "completed" | "pending" | "skipped" | "submitting" | "submitted";
|
|
813
813
|
reason: AutoWithdrawStepReason | null;
|
|
814
814
|
}[];
|
|
815
815
|
createdAt: number;
|
|
@@ -925,7 +925,7 @@ declare const AutoWithdrawPreviewAssetSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
925
925
|
*/
|
|
926
926
|
type AutoWithdrawPreviewAsset = v.InferOutput<typeof AutoWithdrawPreviewAssetSchema>;
|
|
927
927
|
declare const AutoWithdrawPreviewSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
928
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
928
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "paused" | "will_pay" | "rolls_over" | "no_destination" | "no_rule">]>;
|
|
929
929
|
readonly nextRunAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
930
930
|
readonly seconds: v.BigintSchema<undefined>;
|
|
931
931
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -1054,7 +1054,7 @@ declare const AutoWithdrawPreviewSchema: v.SchemaWithPipe<readonly [v.ObjectSche
|
|
|
1054
1054
|
nanos: number;
|
|
1055
1055
|
}, number>]>;
|
|
1056
1056
|
}, undefined>, v.TransformAction<{
|
|
1057
|
-
status: "unspecified" | "
|
|
1057
|
+
status: "unspecified" | "paused" | "will_pay" | "rolls_over" | "no_destination" | "no_rule";
|
|
1058
1058
|
nextRunAt?: number | undefined;
|
|
1059
1059
|
ruleVersion: number;
|
|
1060
1060
|
pause?: {
|
|
@@ -1090,7 +1090,7 @@ declare const AutoWithdrawPreviewSchema: v.SchemaWithPipe<readonly [v.ObjectSche
|
|
|
1090
1090
|
pausedAt: number;
|
|
1091
1091
|
} | null;
|
|
1092
1092
|
minUsdValue: string | null;
|
|
1093
|
-
status: "unspecified" | "
|
|
1093
|
+
status: "unspecified" | "paused" | "will_pay" | "rolls_over" | "no_destination" | "no_rule";
|
|
1094
1094
|
ruleVersion: number;
|
|
1095
1095
|
assets: {
|
|
1096
1096
|
assetId: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
1
2
|
import { ValidationError } from "../../shared/errors.js";
|
|
2
3
|
import { PROTOBUF_UINT32_MAX } from "../../shared/wire-bounds.js";
|
|
3
4
|
import { BigIntStringSchema, OptionalTimestampMsSchema, PublicIdOrEmptySchema, TimestampMsSchema, U128Schema } from "../../shared/schemas.js";
|
|
@@ -6,7 +7,6 @@ import { fromU128, toU128 } from "../../utils/u128.js";
|
|
|
6
7
|
import { decimalInputToScaled, scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
7
8
|
import { PositiveUint32InputSchema } from "../shared.js";
|
|
8
9
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
9
|
-
import "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
|
|
10
10
|
import { AUTO_WITHDRAW_WEEKDAY_VALUES, AutoWithdrawCadenceCodec, AutoWithdrawPreviewStatusCodec, AutoWithdrawRunStateCodec, AutoWithdrawStepStateCodec, AutoWithdrawWeekdayCodec } from "./auto-withdraw.codecs.js";
|
|
11
11
|
import * as v from "valibot";
|
|
12
12
|
//#region src/services/auto-withdraw/auto-withdraw.schemas.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { CandlePointSchema, MarketDataService } from "../../gen/marketdata/v1/marketdata_pb.js";
|
|
1
2
|
import { parse } from "../../shared/validation.js";
|
|
2
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
4
|
import { SymbolIdInputSchema } from "../shared.js";
|
|
4
|
-
import { CandlePointSchema, MarketDataService } from "../../gen/marketdata/v1/marketdata_pb.js";
|
|
5
5
|
import { TimeframeCodec } from "./candles.codecs.js";
|
|
6
6
|
import { ListCandlesInputSchema, TimeframeSchema, createCandleColumnarIntSchema, createCandleColumnarSchema, formatCandleRow } from "./candles.schemas.js";
|
|
7
7
|
import { connectReadyGatedProtoChannel } from "../../realtime/ready-gated-subscription.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ChainAnalyticsService as ChainAnalyticsService$1 } from "../../gen/chain/analytics/v1/analytics_read_pb.js";
|
|
1
2
|
import { parse } from "../../shared/validation.js";
|
|
2
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
|
-
import { ChainAnalyticsService as ChainAnalyticsService$1 } from "../../gen/chain/analytics/v1/analytics_read_pb.js";
|
|
4
4
|
import { GetUnifiedAssetBalancesInputSchema, GetZippedAssetSupplyGroupInputSchema, GetZippedAssetSupplyInputSchema, createUnifiedAssetBalancesResponseSchema, createZippedAssetSupplyGroupResponseSchema, createZippedAssetSupplyResponseSchema } from "./chain-analytics.schemas.js";
|
|
5
5
|
import { createClient } from "@connectrpc/connect";
|
|
6
6
|
//#region src/services/chain-analytics/chain-analytics.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ChangelogService as ChangelogService$1 } from "../../gen/changelog/v1/changelog_pb.js";
|
|
1
2
|
import { parse } from "../../shared/validation.js";
|
|
2
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
|
-
import { ChangelogService as ChangelogService$1 } from "../../gen/changelog/v1/changelog_pb.js";
|
|
4
4
|
import { GetChangelogDeploymentGroupInputSchema, GetChangelogDeploymentGroupResultSchema, GetChangelogPostInputSchema, GetChangelogPostResultSchema, ListChangelogChangesInputSchema, ListChangelogChangesResultSchema, ListChangelogDeploymentGroupsInputSchema, ListChangelogDeploymentGroupsResultSchema, ListChangelogPostsInputSchema, ListChangelogPostsResultSchema } from "./changelog.schemas.js";
|
|
5
5
|
import { createClient } from "@connectrpc/connect";
|
|
6
6
|
//#region src/services/changelog/changelog.ts
|
|
@@ -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: ("assistant" | "
|
|
34
|
+
surfaces: ("assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
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: ("assistant" | "
|
|
45
|
+
surfaces: ("assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
46
46
|
audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
|
|
47
47
|
startTime?: number | undefined;
|
|
48
48
|
endTime?: number | undefined;
|
|
@@ -77,10 +77,10 @@ declare const ChangelogChangeSchema: v.ObjectSchema<{
|
|
|
77
77
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
78
78
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
79
79
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
80
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
80
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
81
81
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
82
82
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
83
|
-
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "
|
|
83
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
84
84
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
85
85
|
readonly seconds: v.BigintSchema<undefined>;
|
|
86
86
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -95,7 +95,7 @@ type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;
|
|
|
95
95
|
declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
96
96
|
readonly heading: v.StringSchema<undefined>;
|
|
97
97
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
98
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
98
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>;
|
|
99
99
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
100
100
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
101
101
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -105,10 +105,10 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
|
105
105
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
106
106
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
107
107
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
108
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
108
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
109
109
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
110
110
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
111
|
-
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "
|
|
111
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
112
112
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
113
113
|
readonly seconds: v.BigintSchema<undefined>;
|
|
114
114
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -124,7 +124,12 @@ type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;
|
|
|
124
124
|
* `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.
|
|
125
125
|
* A post can be republished to correct its copy or withdraw a change: `revision` starts at 1
|
|
126
126
|
* and increases with each republication, and `updatedAt` is when the current revision was
|
|
127
|
-
* published (
|
|
127
|
+
* published (the first publication time for revision 1). `slug` never changes.
|
|
128
|
+
*
|
|
129
|
+
* `publishedAt` is the first publication time for posts that announce no single release. For a
|
|
130
|
+
* release post it is when the release went live in this environment, or the first publication
|
|
131
|
+
* time while the release is still pending here. It can change without a new revision, so don't
|
|
132
|
+
* treat it as fixed.
|
|
128
133
|
* A server that predates post revisions sends `revision` 0 and no `updatedAt`.
|
|
129
134
|
*
|
|
130
135
|
* A release post has `releaseVersion` (for example `"0.92.9"`), the same slug (`"v0.92.9"`) and
|
|
@@ -278,7 +283,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
278
283
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
279
284
|
readonly heading: v.StringSchema<undefined>;
|
|
280
285
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
281
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
286
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>;
|
|
282
287
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
283
288
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
284
289
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -288,10 +293,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
288
293
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
289
294
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
290
295
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
291
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
296
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
292
297
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
293
298
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
294
|
-
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "
|
|
299
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
295
300
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
296
301
|
readonly seconds: v.BigintSchema<undefined>;
|
|
297
302
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -327,7 +332,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
327
332
|
sections: {
|
|
328
333
|
heading: string;
|
|
329
334
|
summary?: string | undefined;
|
|
330
|
-
surface: "unspecified" | "assistant" | "
|
|
335
|
+
surface: "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform";
|
|
331
336
|
changes: {
|
|
332
337
|
id: string;
|
|
333
338
|
title: string;
|
|
@@ -337,10 +342,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
337
342
|
actionRequired: boolean;
|
|
338
343
|
migrationGuidance?: string | undefined;
|
|
339
344
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
340
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
345
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
341
346
|
environmentExceptions: {
|
|
342
347
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
343
|
-
availability: "unspecified" | "unavailable" | "
|
|
348
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
344
349
|
liveAt?: number | undefined;
|
|
345
350
|
}[];
|
|
346
351
|
}[];
|
|
@@ -349,7 +354,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
349
354
|
sections: {
|
|
350
355
|
heading: string;
|
|
351
356
|
summary?: string | undefined;
|
|
352
|
-
surface: "unspecified" | "assistant" | "
|
|
357
|
+
surface: "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform";
|
|
353
358
|
changes: {
|
|
354
359
|
id: string;
|
|
355
360
|
title: string;
|
|
@@ -359,10 +364,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
359
364
|
actionRequired: boolean;
|
|
360
365
|
migrationGuidance?: string | undefined;
|
|
361
366
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
362
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
367
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
363
368
|
environmentExceptions: {
|
|
364
369
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
365
|
-
availability: "unspecified" | "unavailable" | "
|
|
370
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
366
371
|
liveAt?: number | undefined;
|
|
367
372
|
}[];
|
|
368
373
|
}[];
|
|
@@ -398,10 +403,10 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
398
403
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
399
404
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
400
405
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
401
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
406
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
402
407
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
403
408
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
404
|
-
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "
|
|
409
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
405
410
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
406
411
|
readonly seconds: v.BigintSchema<undefined>;
|
|
407
412
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -430,10 +435,10 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
430
435
|
actionRequired: boolean;
|
|
431
436
|
migrationGuidance?: string | undefined;
|
|
432
437
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
433
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
438
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
434
439
|
environmentExceptions: {
|
|
435
440
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
436
|
-
availability: "unspecified" | "unavailable" | "
|
|
441
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
437
442
|
liveAt?: number | undefined;
|
|
438
443
|
}[];
|
|
439
444
|
};
|
|
@@ -452,14 +457,14 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
452
457
|
actionRequired: boolean;
|
|
453
458
|
migrationGuidance?: string | undefined;
|
|
454
459
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
455
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
460
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
456
461
|
environmentExceptions: {
|
|
457
462
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
458
|
-
availability: "unspecified" | "unavailable" | "
|
|
463
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
459
464
|
liveAt?: number | undefined;
|
|
460
465
|
}[];
|
|
461
466
|
}>]>;
|
|
462
|
-
/** A change with the slug,
|
|
467
|
+
/** A change with the slug, `publishedAt` and section heading of the post that announced it. */
|
|
463
468
|
type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;
|
|
464
469
|
declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
465
470
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -472,10 +477,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
472
477
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
473
478
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
474
479
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
475
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
480
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
476
481
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
477
482
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
478
|
-
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "
|
|
483
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
479
484
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
480
485
|
readonly seconds: v.BigintSchema<undefined>;
|
|
481
486
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -504,10 +509,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
504
509
|
actionRequired: boolean;
|
|
505
510
|
migrationGuidance?: string | undefined;
|
|
506
511
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
507
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
512
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
508
513
|
environmentExceptions: {
|
|
509
514
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
510
|
-
availability: "unspecified" | "unavailable" | "
|
|
515
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
511
516
|
liveAt?: number | undefined;
|
|
512
517
|
}[];
|
|
513
518
|
};
|
|
@@ -526,10 +531,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
526
531
|
actionRequired: boolean;
|
|
527
532
|
migrationGuidance?: string | undefined;
|
|
528
533
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
529
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
534
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
530
535
|
environmentExceptions: {
|
|
531
536
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
532
|
-
availability: "unspecified" | "unavailable" | "
|
|
537
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
533
538
|
liveAt?: number | undefined;
|
|
534
539
|
}[];
|
|
535
540
|
}>]>, undefined>, readonly []>;
|
|
@@ -678,10 +683,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
678
683
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
679
684
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
680
685
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
681
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
686
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
682
687
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
683
688
|
readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
|
|
684
|
-
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "
|
|
689
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
685
690
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
686
691
|
readonly seconds: v.BigintSchema<undefined>;
|
|
687
692
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -703,10 +708,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
703
708
|
actionRequired: boolean;
|
|
704
709
|
migrationGuidance?: string | undefined;
|
|
705
710
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
706
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
711
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
707
712
|
environmentExceptions: {
|
|
708
713
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
709
|
-
availability: "unspecified" | "unavailable" | "
|
|
714
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
710
715
|
liveAt?: number | undefined;
|
|
711
716
|
}[];
|
|
712
717
|
};
|
|
@@ -723,10 +728,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
723
728
|
actionRequired: boolean;
|
|
724
729
|
migrationGuidance?: string | undefined;
|
|
725
730
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
726
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
731
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
727
732
|
environmentExceptions: {
|
|
728
733
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
729
|
-
availability: "unspecified" | "unavailable" | "
|
|
734
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
730
735
|
liveAt?: number | undefined;
|
|
731
736
|
}[];
|
|
732
737
|
}>]>, undefined>, readonly []>;
|
|
@@ -765,10 +770,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
765
770
|
actionRequired: boolean;
|
|
766
771
|
migrationGuidance?: string | undefined;
|
|
767
772
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
768
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
773
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
769
774
|
environmentExceptions: {
|
|
770
775
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
771
|
-
availability: "unspecified" | "unavailable" | "
|
|
776
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
772
777
|
liveAt?: number | undefined;
|
|
773
778
|
}[];
|
|
774
779
|
}[];
|
|
@@ -789,10 +794,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
789
794
|
actionRequired: boolean;
|
|
790
795
|
migrationGuidance?: string | undefined;
|
|
791
796
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
792
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
797
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "api" | "trading" | "market_data" | "accounts" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
793
798
|
environmentExceptions: {
|
|
794
799
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
795
|
-
availability: "unspecified" | "unavailable" | "
|
|
800
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
796
801
|
liveAt?: number | undefined;
|
|
797
802
|
}[];
|
|
798
803
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.schemas.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"mappings":";;;;cA+Ba,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,kBAAkB;cAE7C,6BAA2B,EAAA;;;KAI5B,wBAAwB,EAAE,kBAAkB;;;;;;;cAQ3C,iCAA+B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BhC,4BAA4B,EAAE,kBAAkB;;;;;;cAoB/C,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;KAatB,kBAAkB,EAAE,mBAAmB;;cAGtC,wBAAsB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOvB,mBAAmB,EAAE,mBAAmB
|
|
1
|
+
{"version":3,"file":"changelog.schemas.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"mappings":";;;;cA+Ba,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,kBAAkB;cAE7C,6BAA2B,EAAA;;;KAI5B,wBAAwB,EAAE,kBAAkB;;;;;;;cAQ3C,iCAA+B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BhC,4BAA4B,EAAE,kBAAkB;;;;;;cAoB/C,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;KAatB,kBAAkB,EAAE,mBAAmB;;cAGtC,wBAAsB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOvB,mBAAmB,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;cAqBvC,4BAA0B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmB3B,uBAAuB,EAAE,mBAAmB;cAE3C,gCAA8B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAK/B,2BAA2B,EAAE,mBAAmB;cAE/C,qBAAmB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQpB,gBAAgB,EAAE,mBAAmB;cAIpC,4BAA0B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAW3B,uBAAuB,EAAE,mBAAmB;cAE3C,kCAAgC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKjC,6BAA6B,EAAE,mBAAmB;;cAGjD,0CAAwC,EAAA;;;;KAKzC,qCAAqC,EAAE,kBACxC;cAGE,wCAAsC,EAAA;;;KAIvC,mCAAmC,EAAE,kBACtC;;;;;;;;cAoBE,uCAAqC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAWtC,kCAAkC,EAAE,mBACrC;cAGE,2CAAyC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAK1C,sCAAsC,EAAE,mBACzC;;;;;cAuBE,gCAA8B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAS/B,2BAA2B,EAAE,mBAAmB"}
|
|
@@ -78,7 +78,12 @@ const ChangelogSectionSchema = v.object({
|
|
|
78
78
|
* `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.
|
|
79
79
|
* A post can be republished to correct its copy or withdraw a change: `revision` starts at 1
|
|
80
80
|
* and increases with each republication, and `updatedAt` is when the current revision was
|
|
81
|
-
* published (
|
|
81
|
+
* published (the first publication time for revision 1). `slug` never changes.
|
|
82
|
+
*
|
|
83
|
+
* `publishedAt` is the first publication time for posts that announce no single release. For a
|
|
84
|
+
* release post it is when the release went live in this environment, or the first publication
|
|
85
|
+
* time while the release is still pending here. It can change without a new revision, so don't
|
|
86
|
+
* treat it as fixed.
|
|
82
87
|
* A server that predates post revisions sends `revision` 0 and no `updatedAt`.
|
|
83
88
|
*
|
|
84
89
|
* A release post has `releaseVersion` (for example `"0.92.9"`), the same slug (`"v0.92.9"`) and
|