@polyester/sdk 0.36.0-devnet-20261119050221 → 0.36.0-devnet-20261119181946
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 +11 -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 +4 -4
- 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 +6 -6
- package/dist/services/assistant/assistant-events.schemas.d.ts +26 -55
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant.js +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auth/account-signer-auth.d.ts.map +1 -1
- package/dist/services/auth/account-signer-auth.js +10 -2
- package/dist/services/auth/account-signer-auth.js.map +1 -1
- 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 +22 -22
- 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 +22 -22
- package/dist/services/checkpoints/checkpoints.js +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.js +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 +53 -53
- 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 +9 -2
- package/dist/services/market-overview/market-overview.js.map +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.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +9 -3
- package/dist/services/orderbook/orderbook.js.map +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 +52 -52
- package/dist/services/orders/orders-batch.schemas.js +1 -1
- package/dist/services/orders/orders-identifiers.schemas.js +2 -2
- package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +14 -14
- package/dist/services/orders/orders-input.schemas.js +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts +3 -3
- 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 +21 -21
- 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.d.ts +2 -2
- 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 +17 -17
- 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 +2 -2
- package/dist/services/triggers/trigger-input.schemas.js +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +27 -27
- package/dist/services/triggers/triggers.js +1 -1
- package/dist/services/vip/vip.js +1 -1
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- 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/connect-error-mapping.js +17 -1
- package/dist/shared/connect-error-mapping.js.map +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/rate-limit.schemas.d.ts +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/wired-services.js +19 -19
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ declare const CancelAllAfterInputSchema: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
10
10
|
readonly side: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<["buy", "sell"], undefined>, undefined>, v.TransformAction<"buy" | "sell" | undefined, Side.BUY | Side.SELL | undefined>]>;
|
|
11
11
|
/** On expiry, also stop the triggers in scope created before the expiry time. Each arm or refresh sets it again. */
|
|
12
12
|
readonly includeTriggers: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
13
|
-
readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
13
|
+
readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "requestId has an invalid format">]>, undefined>;
|
|
14
14
|
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
15
15
|
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
16
16
|
}, undefined>], undefined>, undefined>;
|
|
@@ -67,7 +67,7 @@ declare const CancelAllAfterResultSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
67
67
|
}>]>;
|
|
68
68
|
type CancelAllAfterResult = v.InferOutput<typeof CancelAllAfterResultSchema>;
|
|
69
69
|
declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
70
|
-
readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
70
|
+
readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "requestId has an invalid format">]>, undefined>;
|
|
71
71
|
readonly items: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StrictObjectSchema<{
|
|
72
72
|
readonly qty: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
73
73
|
readonly maxQuoteDebit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
@@ -150,7 +150,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
150
150
|
case: "limitFok";
|
|
151
151
|
value: LimitFok;
|
|
152
152
|
}>]>], undefined>;
|
|
153
|
-
readonly clientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
153
|
+
readonly clientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
|
|
154
154
|
readonly feeAsset: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
|
|
155
155
|
readonly selfTradePreventionMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both", "decrement"], undefined>, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | "decrement" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | SelfTradePreventionMode.DECREMENT | undefined>]>;
|
|
156
156
|
readonly risk: v.SchemaWithPipe<readonly [v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
@@ -740,7 +740,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
740
740
|
case: "limitFok";
|
|
741
741
|
value: LimitFok;
|
|
742
742
|
}>]>], undefined>;
|
|
743
|
-
readonly clientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
743
|
+
readonly clientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
|
|
744
744
|
readonly feeAsset: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
|
|
745
745
|
readonly selfTradePreventionMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both", "decrement"], undefined>, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | "decrement" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | SelfTradePreventionMode.DECREMENT | undefined>]>;
|
|
746
746
|
readonly risk: v.SchemaWithPipe<readonly [v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
@@ -1330,7 +1330,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
1330
1330
|
case: "limitFok";
|
|
1331
1331
|
value: LimitFok;
|
|
1332
1332
|
}>]>], undefined>;
|
|
1333
|
-
readonly clientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
1333
|
+
readonly clientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
|
|
1334
1334
|
readonly feeAsset: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
|
|
1335
1335
|
readonly selfTradePreventionMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both", "decrement"], undefined>, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | "decrement" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | SelfTradePreventionMode.DECREMENT | undefined>]>;
|
|
1336
1336
|
readonly risk: v.SchemaWithPipe<readonly [v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
@@ -5492,7 +5492,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5492
5492
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
5493
5493
|
readonly operationId: v.StringSchema<undefined>;
|
|
5494
5494
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
5495
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
5495
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
5496
5496
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
5497
5497
|
}, undefined>, undefined>;
|
|
5498
5498
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -5514,7 +5514,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5514
5514
|
policyVersion?: string | undefined;
|
|
5515
5515
|
operationId: string;
|
|
5516
5516
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5517
|
-
scope: "symbol" | "unspecified" | "
|
|
5517
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5518
5518
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5519
5519
|
} | undefined;
|
|
5520
5520
|
existingOrderId?: string | undefined;
|
|
@@ -5537,7 +5537,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5537
5537
|
policyVersion?: string | undefined;
|
|
5538
5538
|
operationId: string;
|
|
5539
5539
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5540
|
-
scope: "symbol" | "unspecified" | "
|
|
5540
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5541
5541
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5542
5542
|
} | undefined;
|
|
5543
5543
|
existingOrderId?: string | undefined;
|
|
@@ -5583,7 +5583,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5583
5583
|
policyVersion?: string | undefined;
|
|
5584
5584
|
operationId: string;
|
|
5585
5585
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5586
|
-
scope: "symbol" | "unspecified" | "
|
|
5586
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5587
5587
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5588
5588
|
} | undefined;
|
|
5589
5589
|
existingOrderId?: string | undefined;
|
|
@@ -5629,7 +5629,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5629
5629
|
policyVersion?: string | undefined;
|
|
5630
5630
|
operationId: string;
|
|
5631
5631
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5632
|
-
scope: "symbol" | "unspecified" | "
|
|
5632
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5633
5633
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5634
5634
|
} | undefined;
|
|
5635
5635
|
existingOrderId?: string | undefined;
|
|
@@ -5675,7 +5675,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5675
5675
|
policyVersion?: string | undefined;
|
|
5676
5676
|
operationId: string;
|
|
5677
5677
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5678
|
-
scope: "symbol" | "unspecified" | "
|
|
5678
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5679
5679
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5680
5680
|
} | undefined;
|
|
5681
5681
|
existingOrderId?: string | undefined;
|
|
@@ -5708,7 +5708,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5708
5708
|
policyVersion?: string | undefined;
|
|
5709
5709
|
operationId: string;
|
|
5710
5710
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5711
|
-
scope: "symbol" | "unspecified" | "
|
|
5711
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5712
5712
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5713
5713
|
} | undefined;
|
|
5714
5714
|
existingOrderId?: string | undefined;
|
|
@@ -5771,7 +5771,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
5771
5771
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
5772
5772
|
readonly operationId: v.StringSchema<undefined>;
|
|
5773
5773
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
5774
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
5774
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
5775
5775
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
5776
5776
|
}, undefined>, undefined>;
|
|
5777
5777
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -5793,7 +5793,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
5793
5793
|
policyVersion?: string | undefined;
|
|
5794
5794
|
operationId: string;
|
|
5795
5795
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5796
|
-
scope: "symbol" | "unspecified" | "
|
|
5796
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5797
5797
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5798
5798
|
} | undefined;
|
|
5799
5799
|
existingOrderId?: string | undefined;
|
|
@@ -5816,7 +5816,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
5816
5816
|
policyVersion?: string | undefined;
|
|
5817
5817
|
operationId: string;
|
|
5818
5818
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5819
|
-
scope: "symbol" | "unspecified" | "
|
|
5819
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5820
5820
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5821
5821
|
} | undefined;
|
|
5822
5822
|
existingOrderId?: string | undefined;
|
|
@@ -5847,7 +5847,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
5847
5847
|
policyVersion?: string | undefined;
|
|
5848
5848
|
operationId: string;
|
|
5849
5849
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5850
|
-
scope: "symbol" | "unspecified" | "
|
|
5850
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5851
5851
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5852
5852
|
} | undefined;
|
|
5853
5853
|
existingOrderId?: string | undefined;
|
|
@@ -5878,7 +5878,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
5878
5878
|
policyVersion?: string | undefined;
|
|
5879
5879
|
operationId: string;
|
|
5880
5880
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5881
|
-
scope: "symbol" | "unspecified" | "
|
|
5881
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5882
5882
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5883
5883
|
} | undefined;
|
|
5884
5884
|
existingOrderId?: string | undefined;
|
|
@@ -5913,7 +5913,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5913
5913
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
5914
5914
|
readonly operationId: v.StringSchema<undefined>;
|
|
5915
5915
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
5916
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
5916
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
5917
5917
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
5918
5918
|
}, undefined>, undefined>;
|
|
5919
5919
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -5935,7 +5935,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5935
5935
|
policyVersion?: string | undefined;
|
|
5936
5936
|
operationId: string;
|
|
5937
5937
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5938
|
-
scope: "symbol" | "unspecified" | "
|
|
5938
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5939
5939
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5940
5940
|
} | undefined;
|
|
5941
5941
|
existingOrderId?: string | undefined;
|
|
@@ -5958,7 +5958,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5958
5958
|
policyVersion?: string | undefined;
|
|
5959
5959
|
operationId: string;
|
|
5960
5960
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5961
|
-
scope: "symbol" | "unspecified" | "
|
|
5961
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5962
5962
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5963
5963
|
} | undefined;
|
|
5964
5964
|
existingOrderId?: string | undefined;
|
|
@@ -5989,7 +5989,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5989
5989
|
policyVersion?: string | undefined;
|
|
5990
5990
|
operationId: string;
|
|
5991
5991
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5992
|
-
scope: "symbol" | "unspecified" | "
|
|
5992
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
5993
5993
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5994
5994
|
} | undefined;
|
|
5995
5995
|
existingOrderId?: string | undefined;
|
|
@@ -6020,7 +6020,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
6020
6020
|
policyVersion?: string | undefined;
|
|
6021
6021
|
operationId: string;
|
|
6022
6022
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6023
|
-
scope: "symbol" | "unspecified" | "
|
|
6023
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6024
6024
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6025
6025
|
} | undefined;
|
|
6026
6026
|
existingOrderId?: string | undefined;
|
|
@@ -6058,7 +6058,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
6058
6058
|
policyVersion?: string | undefined;
|
|
6059
6059
|
operationId: string;
|
|
6060
6060
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6061
|
-
scope: "symbol" | "unspecified" | "
|
|
6061
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6062
6062
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6063
6063
|
} | undefined;
|
|
6064
6064
|
existingOrderId?: string | undefined;
|
|
@@ -6096,7 +6096,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
6096
6096
|
policyVersion?: string | undefined;
|
|
6097
6097
|
operationId: string;
|
|
6098
6098
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6099
|
-
scope: "symbol" | "unspecified" | "
|
|
6099
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6100
6100
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6101
6101
|
} | undefined;
|
|
6102
6102
|
existingOrderId?: string | undefined;
|
|
@@ -6134,7 +6134,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
6134
6134
|
policyVersion?: string | undefined;
|
|
6135
6135
|
operationId: string;
|
|
6136
6136
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6137
|
-
scope: "symbol" | "unspecified" | "
|
|
6137
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6138
6138
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6139
6139
|
} | undefined;
|
|
6140
6140
|
existingOrderId?: string | undefined;
|
|
@@ -6174,7 +6174,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
6174
6174
|
policyVersion?: string | undefined;
|
|
6175
6175
|
operationId: string;
|
|
6176
6176
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6177
|
-
scope: "symbol" | "unspecified" | "
|
|
6177
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6178
6178
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6179
6179
|
} | undefined;
|
|
6180
6180
|
existingOrderId?: string | undefined;
|
|
@@ -6206,20 +6206,20 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6206
6206
|
readonly admissionStatus: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
|
|
6207
6207
|
readonly items: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
6208
6208
|
readonly itemIndex: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6209
|
-
readonly phase: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "
|
|
6209
|
+
readonly phase: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "terminal" | "working" | "admitted">]>;
|
|
6210
6210
|
readonly oldOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6211
6211
|
readonly replacementOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6212
6212
|
readonly actionTaken: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "replaced" | "amended">]>;
|
|
6213
|
-
readonly orderStatus: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "canceled" | "
|
|
6213
|
+
readonly orderStatus: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled">]>;
|
|
6214
6214
|
readonly code: v.StringSchema<undefined>;
|
|
6215
6215
|
readonly updatedTsNs: v.BigintSchema<undefined>;
|
|
6216
6216
|
}, undefined>, v.TransformAction<{
|
|
6217
6217
|
itemIndex: number;
|
|
6218
|
-
phase: "unspecified" | "rejected" | "
|
|
6218
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
6219
6219
|
oldOrderId?: string | undefined;
|
|
6220
6220
|
replacementOrderId?: string | undefined;
|
|
6221
6221
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6222
|
-
orderStatus: "unspecified" | "canceled" | "
|
|
6222
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6223
6223
|
code: string;
|
|
6224
6224
|
updatedTsNs: bigint;
|
|
6225
6225
|
}, {
|
|
@@ -6227,11 +6227,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6227
6227
|
updatedTs: number;
|
|
6228
6228
|
updatedTsNs: string;
|
|
6229
6229
|
itemIndex: number;
|
|
6230
|
-
phase: "unspecified" | "rejected" | "
|
|
6230
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
6231
6231
|
oldOrderId?: string | undefined;
|
|
6232
6232
|
replacementOrderId?: string | undefined;
|
|
6233
6233
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6234
|
-
orderStatus: "unspecified" | "canceled" | "
|
|
6234
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6235
6235
|
}>]>, undefined>;
|
|
6236
6236
|
readonly acceptedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6237
6237
|
readonly rejectedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -6245,11 +6245,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6245
6245
|
updatedTs: number;
|
|
6246
6246
|
updatedTsNs: string;
|
|
6247
6247
|
itemIndex: number;
|
|
6248
|
-
phase: "unspecified" | "rejected" | "
|
|
6248
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
6249
6249
|
oldOrderId?: string | undefined;
|
|
6250
6250
|
replacementOrderId?: string | undefined;
|
|
6251
6251
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6252
|
-
orderStatus: "unspecified" | "canceled" | "
|
|
6252
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6253
6253
|
}[];
|
|
6254
6254
|
acceptedCount: number;
|
|
6255
6255
|
rejectedCount: number;
|
|
@@ -6263,11 +6263,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6263
6263
|
updatedTs: number;
|
|
6264
6264
|
updatedTsNs: string;
|
|
6265
6265
|
itemIndex: number;
|
|
6266
|
-
phase: "unspecified" | "rejected" | "
|
|
6266
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
6267
6267
|
oldOrderId?: string | undefined;
|
|
6268
6268
|
replacementOrderId?: string | undefined;
|
|
6269
6269
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6270
|
-
orderStatus: "unspecified" | "canceled" | "
|
|
6270
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6271
6271
|
}[];
|
|
6272
6272
|
acceptedCount: number;
|
|
6273
6273
|
rejectedCount: number;
|
|
@@ -6281,11 +6281,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6281
6281
|
updatedTs: number;
|
|
6282
6282
|
updatedTsNs: string;
|
|
6283
6283
|
itemIndex: number;
|
|
6284
|
-
phase: "unspecified" | "rejected" | "
|
|
6284
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
6285
6285
|
oldOrderId?: string | undefined;
|
|
6286
6286
|
replacementOrderId?: string | undefined;
|
|
6287
6287
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6288
|
-
orderStatus: "unspecified" | "canceled" | "
|
|
6288
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6289
6289
|
}[];
|
|
6290
6290
|
acceptedCount: number;
|
|
6291
6291
|
rejectedCount: number;
|
|
@@ -6303,11 +6303,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6303
6303
|
updatedTs: number;
|
|
6304
6304
|
updatedTsNs: string;
|
|
6305
6305
|
itemIndex: number;
|
|
6306
|
-
phase: "unspecified" | "rejected" | "
|
|
6306
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
6307
6307
|
oldOrderId?: string | undefined;
|
|
6308
6308
|
replacementOrderId?: string | undefined;
|
|
6309
6309
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6310
|
-
orderStatus: "unspecified" | "canceled" | "
|
|
6310
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6311
6311
|
}[];
|
|
6312
6312
|
acceptedCount: number;
|
|
6313
6313
|
rejectedCount: number;
|
|
@@ -6326,7 +6326,7 @@ declare const BatchCancelOrderInputSchema: v.UnionSchema<[v.SchemaWithPipe<reado
|
|
|
6326
6326
|
symbolId: number | undefined;
|
|
6327
6327
|
}>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
6328
6328
|
readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
6329
|
-
readonly clientOrderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
6329
|
+
readonly clientOrderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6330
6330
|
readonly symbolId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>;
|
|
6331
6331
|
}, undefined>, v.TransformAction<{
|
|
6332
6332
|
orderId?: undefined;
|
|
@@ -6338,7 +6338,7 @@ declare const BatchCancelOrderInputSchema: v.UnionSchema<[v.SchemaWithPipe<reado
|
|
|
6338
6338
|
}>]>], undefined>;
|
|
6339
6339
|
type BatchCancelOrderInput = v.InferInput<typeof BatchCancelOrderInputSchema>;
|
|
6340
6340
|
declare const BatchCancelOrdersInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
6341
|
-
readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
6341
|
+
readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "requestId has an invalid format">]>, undefined>;
|
|
6342
6342
|
readonly items: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
6343
6343
|
readonly orderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, `${string} must be greater than zero`>]>;
|
|
6344
6344
|
readonly clientOrderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
@@ -6352,7 +6352,7 @@ declare const BatchCancelOrdersInputSchema: v.SchemaWithPipe<readonly [v.StrictO
|
|
|
6352
6352
|
symbolId: number | undefined;
|
|
6353
6353
|
}>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
6354
6354
|
readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
6355
|
-
readonly clientOrderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
6355
|
+
readonly clientOrderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6356
6356
|
readonly symbolId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>;
|
|
6357
6357
|
}, undefined>, v.TransformAction<{
|
|
6358
6358
|
orderId?: undefined;
|
|
@@ -6421,7 +6421,7 @@ declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
|
6421
6421
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6422
6422
|
readonly operationId: v.StringSchema<undefined>;
|
|
6423
6423
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
6424
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
6424
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
6425
6425
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
6426
6426
|
}, undefined>, undefined>;
|
|
6427
6427
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -6443,7 +6443,7 @@ declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
|
6443
6443
|
policyVersion?: string | undefined;
|
|
6444
6444
|
operationId: string;
|
|
6445
6445
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6446
|
-
scope: "symbol" | "unspecified" | "
|
|
6446
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6447
6447
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6448
6448
|
} | undefined;
|
|
6449
6449
|
existingOrderId?: string | undefined;
|
|
@@ -6466,7 +6466,7 @@ declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
|
6466
6466
|
policyVersion?: string | undefined;
|
|
6467
6467
|
operationId: string;
|
|
6468
6468
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6469
|
-
scope: "symbol" | "unspecified" | "
|
|
6469
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6470
6470
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6471
6471
|
} | undefined;
|
|
6472
6472
|
existingOrderId?: string | undefined;
|
|
@@ -6496,7 +6496,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6496
6496
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6497
6497
|
readonly operationId: v.StringSchema<undefined>;
|
|
6498
6498
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
6499
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
6499
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
6500
6500
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
6501
6501
|
}, undefined>, undefined>;
|
|
6502
6502
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -6518,7 +6518,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6518
6518
|
policyVersion?: string | undefined;
|
|
6519
6519
|
operationId: string;
|
|
6520
6520
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6521
|
-
scope: "symbol" | "unspecified" | "
|
|
6521
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6522
6522
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6523
6523
|
} | undefined;
|
|
6524
6524
|
existingOrderId?: string | undefined;
|
|
@@ -6541,7 +6541,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6541
6541
|
policyVersion?: string | undefined;
|
|
6542
6542
|
operationId: string;
|
|
6543
6543
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6544
|
-
scope: "symbol" | "unspecified" | "
|
|
6544
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6545
6545
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6546
6546
|
} | undefined;
|
|
6547
6547
|
existingOrderId?: string | undefined;
|
|
@@ -6574,7 +6574,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6574
6574
|
policyVersion?: string | undefined;
|
|
6575
6575
|
operationId: string;
|
|
6576
6576
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6577
|
-
scope: "symbol" | "unspecified" | "
|
|
6577
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6578
6578
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6579
6579
|
} | undefined;
|
|
6580
6580
|
existingOrderId?: string | undefined;
|
|
@@ -6607,7 +6607,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6607
6607
|
policyVersion?: string | undefined;
|
|
6608
6608
|
operationId: string;
|
|
6609
6609
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6610
|
-
scope: "symbol" | "unspecified" | "
|
|
6610
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6611
6611
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6612
6612
|
} | undefined;
|
|
6613
6613
|
existingOrderId?: string | undefined;
|
|
@@ -6642,7 +6642,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6642
6642
|
policyVersion?: string | undefined;
|
|
6643
6643
|
operationId: string;
|
|
6644
6644
|
policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6645
|
-
scope: "symbol" | "unspecified" | "
|
|
6645
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
6646
6646
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6647
6647
|
} | undefined;
|
|
6648
6648
|
existingOrderId?: string | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RiskPolicySchema } from "../../gen/orders/v1/orders_pb.js";
|
|
2
1
|
import { ValidationError } from "../../shared/errors.js";
|
|
3
2
|
import { formatId } from "../../utils/base58-id.js";
|
|
4
3
|
import { tsNsToMs } from "../../utils/time.js";
|
|
@@ -7,6 +6,7 @@ import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
|
7
6
|
import { positiveDecimalInputToScaled, scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
8
7
|
import { SideSchema, SymbolIdInputSchema } from "../shared.js";
|
|
9
8
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
9
|
+
import { RiskPolicySchema } from "../../gen/orders/v1/orders_pb.js";
|
|
10
10
|
import { OrderSideCodec } from "./order-enums.codecs.js";
|
|
11
11
|
import { OrderErrorDetailSchema } from "./order-errors.schemas.js";
|
|
12
12
|
import { BatchCancelOrderStatusCodec, BatchReplaceAdmissionStatusCodec, BatchReplaceItemAdmissionStatusCodec, BatchReplacePhaseCodec, CancelAllAfterStatusCodec, ModifyActionCodec, OrderStatusCodec } from "./orders.codecs.js";
|
|
@@ -3,14 +3,14 @@ import * as v from "valibot";
|
|
|
3
3
|
//#region src/services/orders/orders-identifiers.schemas.ts
|
|
4
4
|
/** Characters a client order ID or client OCO ID may use. */
|
|
5
5
|
const OrderIdempotencyKeyPattern = /^[A-Za-z0-9._:/-]*$/;
|
|
6
|
-
const ClientOrderIdWireInputSchema = v.pipe(v.string(), v.
|
|
6
|
+
const ClientOrderIdWireInputSchema = v.pipe(v.string(), v.maxLength(36), v.regex(OrderIdempotencyKeyPattern, "clientOrderId has an invalid format"));
|
|
7
7
|
const ClientOrderIdInputSchema = v.pipe(ClientOrderIdWireInputSchema, v.minLength(1));
|
|
8
8
|
const OptionalClientOrderIdInputSchema = v.optional(ClientOrderIdWireInputSchema);
|
|
9
9
|
function positiveOrderIdInputSchema(fieldName = "orderId") {
|
|
10
10
|
return v.pipe(idInputSchema(fieldName), v.check((value) => value > 0n, `${fieldName} must be greater than zero`));
|
|
11
11
|
}
|
|
12
12
|
const OrderIdInputSchema = positiveOrderIdInputSchema();
|
|
13
|
-
const OrderRequestIdInputSchema = v.pipe(v.string(), v.
|
|
13
|
+
const OrderRequestIdInputSchema = v.pipe(v.string(), v.minLength(1), v.maxLength(64), v.regex(OrderIdempotencyKeyPattern, "requestId has an invalid format"));
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ClientOrderIdInputSchema, OptionalClientOrderIdInputSchema, OrderIdInputSchema, OrderIdempotencyKeyPattern, OrderRequestIdInputSchema, positiveOrderIdInputSchema };
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders-identifiers.schemas.js","names":[],"sources":["../../../src/services/orders/orders-identifiers.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { idInputSchema } from \"../../shared/schemas.js\";\n\n/** Characters a client order ID or client OCO ID may use. */\nexport const OrderIdempotencyKeyPattern = /^[A-Za-z0-9._:/-]*$/;\n\nconst ClientOrderIdWireInputSchema = v.pipe(\n v.string(),\n v.
|
|
1
|
+
{"version":3,"file":"orders-identifiers.schemas.js","names":[],"sources":["../../../src/services/orders/orders-identifiers.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { idInputSchema } from \"../../shared/schemas.js\";\n\n/** Characters a client order ID or client OCO ID may use. */\nexport const OrderIdempotencyKeyPattern = /^[A-Za-z0-9._:/-]*$/;\n\n// Sent as given: the format refuses whitespace instead of trimming it away.\nconst ClientOrderIdWireInputSchema = v.pipe(\n v.string(),\n v.maxLength(36),\n v.regex(OrderIdempotencyKeyPattern, \"clientOrderId has an invalid format\"),\n);\n\nexport const ClientOrderIdInputSchema = v.pipe(ClientOrderIdWireInputSchema, v.minLength(1));\n\nexport const OptionalClientOrderIdInputSchema = v.optional(ClientOrderIdWireInputSchema);\n\nexport function positiveOrderIdInputSchema(fieldName = \"orderId\") {\n return v.pipe(\n idInputSchema(fieldName),\n v.check((value) => value > 0n, `${fieldName} must be greater than zero`),\n );\n}\n\nexport const OrderIdInputSchema = positiveOrderIdInputSchema();\n\nexport const OrderRequestIdInputSchema = v.pipe(\n v.string(),\n v.minLength(1),\n v.maxLength(64),\n v.regex(OrderIdempotencyKeyPattern, \"requestId has an invalid format\"),\n);\n"],"mappings":";;;;AAIA,MAAa,6BAA6B;AAG1C,MAAM,+BAA+B,EAAE,KACnC,EAAE,OAAO,GACT,EAAE,UAAU,EAAE,GACd,EAAE,MAAM,4BAA4B,qCAAqC,CAC7E;AAEA,MAAa,2BAA2B,EAAE,KAAK,8BAA8B,EAAE,UAAU,CAAC,CAAC;AAE3F,MAAa,mCAAmC,EAAE,SAAS,4BAA4B;AAEvF,SAAgB,2BAA2B,YAAY,WAAW;CAC9D,OAAO,EAAE,KACL,cAAc,SAAS,GACvB,EAAE,OAAO,UAAU,QAAQ,IAAI,GAAG,UAAU,2BAA2B,CAC3E;AACJ;AAEA,MAAa,qBAAqB,2BAA2B;AAE7D,MAAa,4BAA4B,EAAE,KACvC,EAAE,OAAO,GACT,EAAE,UAAU,CAAC,GACb,EAAE,UAAU,EAAE,GACd,EAAE,MAAM,4BAA4B,iCAAiC,CACzE"}
|