@polyester/sdk 0.36.0-devnet-20261114152753 → 0.36.0-devnet-20261115165158
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 +25 -1
- package/dist/catalogs/readers.d.ts.map +1 -1
- package/dist/catalogs/readers.js +1 -1
- package/dist/catalogs/readers.js.map +1 -1
- package/dist/catalogs/snapshot-validation.js +8 -6
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/catalogs/unknown-asset.d.ts.map +1 -1
- package/dist/catalogs/unknown-asset.js +4 -4
- package/dist/catalogs/unknown-asset.js.map +1 -1
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +2 -1
- package/dist/core-client.js.map +1 -1
- package/dist/realtime/private-orders.d.ts +8 -0
- package/dist/realtime/private-orders.d.ts.map +1 -1
- package/dist/realtime/private-orders.js +38 -5
- package/dist/realtime/private-orders.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
- package/dist/services/address-book/address-book.schemas.js +4 -4
- package/dist/services/address-book/address-book.schemas.js.map +1 -1
- package/dist/services/assistant/assistant-events.schemas.d.ts +5 -5
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/balances/balances.schemas.d.ts +6 -24
- package/dist/services/balances/balances.schemas.d.ts.map +1 -1
- package/dist/services/balances/balances.schemas.js +2 -2
- package/dist/services/balances/balances.schemas.js.map +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +38 -38
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/claims/claims.schemas.d.ts +2 -2
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +13 -13
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
- package/dist/services/orders/order-errors.schemas.js +7 -4
- package/dist/services/orders/order-errors.schemas.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +13 -13
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.js +3 -2
- package/dist/services/orders/orders-batch.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +3 -3
- package/dist/services/orders/orders-input.schemas.js +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +2 -1
- package/dist/services/orders/orders-modify.schemas.js.map +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +6 -6
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +2 -10
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders.d.ts +6 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +4 -0
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +4 -4
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/service.js +1 -1
- package/dist/services/trading-withdraws/service.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +10 -12
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +28 -20
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +0 -5
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +0 -4
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/wallet-message.js +1 -1
- package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +4 -3
- package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +2 -3
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +1 -1
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/dist/shared/transports.d.ts +2 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js +52 -9
- package/dist/shared/transports.js.map +1 -1
- package/dist/utils/base58-id.js +1 -1
- package/dist/utils/base58-id.js.map +1 -1
- package/dist/utils/numbers.js +3 -2
- package/dist/utils/numbers.js.map +1 -1
- package/package.json +1 -1
|
@@ -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" | "trading" | "market_data" | "accounts" | "api" | "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" | "trading" | "market_data" | "accounts" | "api" | "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" | "trading" | "market_data" | "accounts" | "api" | "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" | "
|
|
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" | "trading" | "market_data" | "accounts" | "api" | "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" | "trading" | "market_data" | "accounts" | "api" | "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" | "
|
|
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>;
|
|
@@ -278,7 +278,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
278
278
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
279
279
|
readonly heading: v.StringSchema<undefined>;
|
|
280
280
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
281
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "
|
|
281
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>;
|
|
282
282
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
283
283
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
284
284
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -288,10 +288,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
288
288
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
289
289
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
290
290
|
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" | "
|
|
291
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
292
292
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
293
293
|
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" | "
|
|
294
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
295
295
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
296
296
|
readonly seconds: v.BigintSchema<undefined>;
|
|
297
297
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -327,7 +327,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
327
327
|
sections: {
|
|
328
328
|
heading: string;
|
|
329
329
|
summary?: string | undefined;
|
|
330
|
-
surface: "unspecified" | "assistant" | "
|
|
330
|
+
surface: "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform";
|
|
331
331
|
changes: {
|
|
332
332
|
id: string;
|
|
333
333
|
title: string;
|
|
@@ -337,10 +337,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
337
337
|
actionRequired: boolean;
|
|
338
338
|
migrationGuidance?: string | undefined;
|
|
339
339
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
340
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
340
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
341
341
|
environmentExceptions: {
|
|
342
342
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
343
|
-
availability: "unspecified" | "
|
|
343
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
344
344
|
liveAt?: number | undefined;
|
|
345
345
|
}[];
|
|
346
346
|
}[];
|
|
@@ -349,7 +349,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
349
349
|
sections: {
|
|
350
350
|
heading: string;
|
|
351
351
|
summary?: string | undefined;
|
|
352
|
-
surface: "unspecified" | "assistant" | "
|
|
352
|
+
surface: "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform";
|
|
353
353
|
changes: {
|
|
354
354
|
id: string;
|
|
355
355
|
title: string;
|
|
@@ -359,10 +359,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
359
359
|
actionRequired: boolean;
|
|
360
360
|
migrationGuidance?: string | undefined;
|
|
361
361
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
362
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
362
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
363
363
|
environmentExceptions: {
|
|
364
364
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
365
|
-
availability: "unspecified" | "
|
|
365
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
366
366
|
liveAt?: number | undefined;
|
|
367
367
|
}[];
|
|
368
368
|
}[];
|
|
@@ -398,10 +398,10 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
398
398
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
399
399
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
400
400
|
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" | "
|
|
401
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
402
402
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
403
403
|
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" | "
|
|
404
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
405
405
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
406
406
|
readonly seconds: v.BigintSchema<undefined>;
|
|
407
407
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -430,10 +430,10 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
430
430
|
actionRequired: boolean;
|
|
431
431
|
migrationGuidance?: string | undefined;
|
|
432
432
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
433
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
433
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
434
434
|
environmentExceptions: {
|
|
435
435
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
436
|
-
availability: "unspecified" | "
|
|
436
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
437
437
|
liveAt?: number | undefined;
|
|
438
438
|
}[];
|
|
439
439
|
};
|
|
@@ -452,10 +452,10 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
452
452
|
actionRequired: boolean;
|
|
453
453
|
migrationGuidance?: string | undefined;
|
|
454
454
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
455
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
455
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
456
456
|
environmentExceptions: {
|
|
457
457
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
458
|
-
availability: "unspecified" | "
|
|
458
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
459
459
|
liveAt?: number | undefined;
|
|
460
460
|
}[];
|
|
461
461
|
}>]>;
|
|
@@ -472,10 +472,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
472
472
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
473
473
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
474
474
|
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" | "
|
|
475
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
476
476
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
477
477
|
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" | "
|
|
478
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
479
479
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
480
480
|
readonly seconds: v.BigintSchema<undefined>;
|
|
481
481
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -504,10 +504,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
504
504
|
actionRequired: boolean;
|
|
505
505
|
migrationGuidance?: string | undefined;
|
|
506
506
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
507
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
507
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
508
508
|
environmentExceptions: {
|
|
509
509
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
510
|
-
availability: "unspecified" | "
|
|
510
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
511
511
|
liveAt?: number | undefined;
|
|
512
512
|
}[];
|
|
513
513
|
};
|
|
@@ -526,10 +526,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
526
526
|
actionRequired: boolean;
|
|
527
527
|
migrationGuidance?: string | undefined;
|
|
528
528
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
529
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
529
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
530
530
|
environmentExceptions: {
|
|
531
531
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
532
|
-
availability: "unspecified" | "
|
|
532
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
533
533
|
liveAt?: number | undefined;
|
|
534
534
|
}[];
|
|
535
535
|
}>]>, undefined>, readonly []>;
|
|
@@ -678,10 +678,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
678
678
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
679
679
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
680
680
|
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" | "
|
|
681
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
|
|
682
682
|
readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
683
683
|
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" | "
|
|
684
|
+
readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
|
|
685
685
|
readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
686
686
|
readonly seconds: v.BigintSchema<undefined>;
|
|
687
687
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -703,10 +703,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
703
703
|
actionRequired: boolean;
|
|
704
704
|
migrationGuidance?: string | undefined;
|
|
705
705
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
706
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
706
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
707
707
|
environmentExceptions: {
|
|
708
708
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
709
|
-
availability: "unspecified" | "
|
|
709
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
710
710
|
liveAt?: number | undefined;
|
|
711
711
|
}[];
|
|
712
712
|
};
|
|
@@ -723,10 +723,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
723
723
|
actionRequired: boolean;
|
|
724
724
|
migrationGuidance?: string | undefined;
|
|
725
725
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
726
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
726
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
727
727
|
environmentExceptions: {
|
|
728
728
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
729
|
-
availability: "unspecified" | "
|
|
729
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
730
730
|
liveAt?: number | undefined;
|
|
731
731
|
}[];
|
|
732
732
|
}>]>, undefined>, readonly []>;
|
|
@@ -765,10 +765,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
765
765
|
actionRequired: boolean;
|
|
766
766
|
migrationGuidance?: string | undefined;
|
|
767
767
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
768
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
768
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
769
769
|
environmentExceptions: {
|
|
770
770
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
771
|
-
availability: "unspecified" | "
|
|
771
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
772
772
|
liveAt?: number | undefined;
|
|
773
773
|
}[];
|
|
774
774
|
}[];
|
|
@@ -789,10 +789,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
789
789
|
actionRequired: boolean;
|
|
790
790
|
migrationGuidance?: string | undefined;
|
|
791
791
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
792
|
-
surfaces: ("unspecified" | "assistant" | "
|
|
792
|
+
surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
|
|
793
793
|
environmentExceptions: {
|
|
794
794
|
environment: "unspecified" | "devnet" | "testnet" | "mainnet";
|
|
795
|
-
availability: "unspecified" | "
|
|
795
|
+
availability: "unspecified" | "unavailable" | "pending" | "ahead";
|
|
796
796
|
liveAt?: number | undefined;
|
|
797
797
|
}[];
|
|
798
798
|
}[];
|
|
@@ -427,7 +427,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
|
|
|
427
427
|
readonly seasonResultUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
428
428
|
readonly subaccounts: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
|
|
429
429
|
/** Values computed from partial evidence; show them with an approximation marker. */
|
|
430
|
-
readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
430
|
+
readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "tools" | "deposits" | "withdrawals" | "volume" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "transfers" | "season_result">]>, undefined>, readonly []>;
|
|
431
431
|
}, undefined>;
|
|
432
432
|
/**
|
|
433
433
|
* One frozen season recap of a root account and all of its subaccounts. An absent USD value
|
|
@@ -36,7 +36,7 @@ declare const DailyClaimTransferSchema: v.ObjectSchema<{
|
|
|
36
36
|
}, undefined>;
|
|
37
37
|
type DailyClaimTransfer = v.InferOutput<typeof DailyClaimTransferSchema>;
|
|
38
38
|
declare const DailyClaimStatusSchema: v.ObjectSchema<{
|
|
39
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
39
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "available" | "processing" | "claimed" | "unavailable" | "payout_delayed">]>;
|
|
40
40
|
readonly resetAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
41
41
|
readonly seconds: v.BigintSchema<undefined>;
|
|
42
42
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -76,7 +76,7 @@ declare const DailyClaimStatusSchema: v.ObjectSchema<{
|
|
|
76
76
|
type DailyClaimStatus = v.InferOutput<typeof DailyClaimStatusSchema>;
|
|
77
77
|
declare const ClaimDailyRewardResultSchema: v.ObjectSchema<{
|
|
78
78
|
readonly claimId: v.StringSchema<undefined>;
|
|
79
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
79
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "available" | "processing" | "claimed" | "unavailable" | "payout_delayed">]>;
|
|
80
80
|
readonly claimedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
81
81
|
readonly seconds: v.BigintSchema<undefined>;
|
|
82
82
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -138,7 +138,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
138
138
|
subaccountId: string | undefined;
|
|
139
139
|
smartAccountAddress: string | undefined;
|
|
140
140
|
}>]>, undefined>;
|
|
141
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
141
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "accepted" | "rejected" | "failed">]>;
|
|
142
142
|
/** Lifecycle flow ID for `lifecycle.getFlow`; empty when the server did not return one. */
|
|
143
143
|
readonly flowId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
144
144
|
}, undefined>, v.TransformAction<{
|
|
@@ -157,7 +157,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
157
157
|
subaccountId: string | undefined;
|
|
158
158
|
smartAccountAddress: string | undefined;
|
|
159
159
|
} | undefined;
|
|
160
|
-
status: "unspecified" | "
|
|
160
|
+
status: "unspecified" | "accepted" | "rejected" | "failed";
|
|
161
161
|
flowId: string;
|
|
162
162
|
}, {
|
|
163
163
|
acceptedAtUnixMs: number;
|
|
@@ -172,7 +172,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
172
172
|
subaccountId: string | undefined;
|
|
173
173
|
smartAccountAddress: string | undefined;
|
|
174
174
|
} | undefined;
|
|
175
|
-
status: "unspecified" | "
|
|
175
|
+
status: "unspecified" | "accepted" | "rejected" | "failed";
|
|
176
176
|
flowId: string;
|
|
177
177
|
}>]>;
|
|
178
178
|
type CreateInternalTransferResult = v.InferOutput<ReturnType<typeof createCreateInternalTransferResultSchema>>;
|
|
@@ -522,7 +522,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
522
522
|
declare const LifecycleFlowTimelineItemSchema: v.ObjectSchema<{
|
|
523
523
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
524
524
|
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
525
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
525
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
526
526
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
527
527
|
}, undefined>;
|
|
528
528
|
declare const LifecycleFlowSummaryProgressSchema: v.ObjectSchema<{
|
|
@@ -622,7 +622,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
622
622
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
623
623
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
624
624
|
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
625
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
625
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
626
626
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
627
627
|
}, undefined>, undefined>, readonly []>;
|
|
628
628
|
readonly estimatedCompletionUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -692,7 +692,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
692
692
|
progressTimeline: {
|
|
693
693
|
sequence: number;
|
|
694
694
|
step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
695
|
-
status: "unspecified" | "
|
|
695
|
+
status: "unspecified" | "planned" | "completed" | "current";
|
|
696
696
|
expectedDurationMs: number;
|
|
697
697
|
}[];
|
|
698
698
|
estimatedCompletionUnixMs: number;
|
|
@@ -756,7 +756,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
756
756
|
progressTimeline: {
|
|
757
757
|
sequence: number;
|
|
758
758
|
step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
759
|
-
status: "unspecified" | "
|
|
759
|
+
status: "unspecified" | "planned" | "completed" | "current";
|
|
760
760
|
expectedDurationMs: number;
|
|
761
761
|
}[];
|
|
762
762
|
estimatedCompletionUnixMs: number;
|
|
@@ -852,7 +852,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
852
852
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
853
853
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
854
854
|
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
855
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
855
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
856
856
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
857
857
|
}, undefined>, undefined>, readonly []>;
|
|
858
858
|
readonly estimatedCompletionUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -922,7 +922,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
922
922
|
progressTimeline: {
|
|
923
923
|
sequence: number;
|
|
924
924
|
step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
925
|
-
status: "unspecified" | "
|
|
925
|
+
status: "unspecified" | "planned" | "completed" | "current";
|
|
926
926
|
expectedDurationMs: number;
|
|
927
927
|
}[];
|
|
928
928
|
estimatedCompletionUnixMs: number;
|
|
@@ -986,7 +986,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
986
986
|
progressTimeline: {
|
|
987
987
|
sequence: number;
|
|
988
988
|
step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
989
|
-
status: "unspecified" | "
|
|
989
|
+
status: "unspecified" | "planned" | "completed" | "current";
|
|
990
990
|
expectedDurationMs: number;
|
|
991
991
|
}[];
|
|
992
992
|
estimatedCompletionUnixMs: number;
|
|
@@ -1364,7 +1364,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1364
1364
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1365
1365
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1366
1366
|
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1367
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
1367
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
1368
1368
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1369
1369
|
}, undefined>, undefined>, readonly []>;
|
|
1370
1370
|
readonly estimatedCompletionUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -1434,7 +1434,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1434
1434
|
progressTimeline: {
|
|
1435
1435
|
sequence: number;
|
|
1436
1436
|
step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1437
|
-
status: "unspecified" | "
|
|
1437
|
+
status: "unspecified" | "planned" | "completed" | "current";
|
|
1438
1438
|
expectedDurationMs: number;
|
|
1439
1439
|
}[];
|
|
1440
1440
|
estimatedCompletionUnixMs: number;
|
|
@@ -1498,7 +1498,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1498
1498
|
progressTimeline: {
|
|
1499
1499
|
sequence: number;
|
|
1500
1500
|
step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1501
|
-
status: "unspecified" | "
|
|
1501
|
+
status: "unspecified" | "planned" | "completed" | "current";
|
|
1502
1502
|
expectedDurationMs: number;
|
|
1503
1503
|
}[];
|
|
1504
1504
|
estimatedCompletionUnixMs: number;
|
|
@@ -1597,7 +1597,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1597
1597
|
readonly progressTimeline: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1598
1598
|
readonly sequence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1599
1599
|
readonly step: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement">]>;
|
|
1600
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
1600
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "planned" | "completed" | "current">]>;
|
|
1601
1601
|
readonly expectedDurationMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1602
1602
|
}, undefined>, undefined>, readonly []>;
|
|
1603
1603
|
readonly estimatedCompletionUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -1667,7 +1667,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1667
1667
|
progressTimeline: {
|
|
1668
1668
|
sequence: number;
|
|
1669
1669
|
step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1670
|
-
status: "unspecified" | "
|
|
1670
|
+
status: "unspecified" | "planned" | "completed" | "current";
|
|
1671
1671
|
expectedDurationMs: number;
|
|
1672
1672
|
}[];
|
|
1673
1673
|
estimatedCompletionUnixMs: number;
|
|
@@ -1731,7 +1731,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1731
1731
|
progressTimeline: {
|
|
1732
1732
|
sequence: number;
|
|
1733
1733
|
step: "validation" | "unspecified" | "failed" | "execution" | "source" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
|
|
1734
|
-
status: "unspecified" | "
|
|
1734
|
+
status: "unspecified" | "planned" | "completed" | "current";
|
|
1735
1735
|
expectedDurationMs: number;
|
|
1736
1736
|
}[];
|
|
1737
1737
|
estimatedCompletionUnixMs: number;
|
|
@@ -3,7 +3,7 @@ import * as v from "valibot";
|
|
|
3
3
|
//#region src/services/orders/order-errors.schemas.d.ts
|
|
4
4
|
type OrderErrorCode = keyof typeof ErrorCode;
|
|
5
5
|
declare const OrderErrorDetailSchema: v.ObjectSchema<{
|
|
6
|
-
readonly code: v.SchemaWithPipe<readonly [v.
|
|
6
|
+
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "API_KEY_SPOT_TRADE_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "QUOTE_SIZE_TOO_SMALL" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "SELF_TRADE_PREVENTED" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | "PATH_BODY_ID_MISMATCH" | "REQUEST_DEADLINE_EXCEEDED" | "ICEBERG_NOT_ALLOWED" | "ICEBERG_DISPLAY_TOO_SMALL" | "ICEBERG_DISPLAY_INVALID" | "PEG_LIMIT_VIOLATION" | "PEG_REFERENCE_UNAVAILABLE" | "INVALID_PEG" | "TRIGGER_ACTIVATION_PRICE_NOT_MODIFIABLE">]>;
|
|
7
7
|
readonly violations: v.ArraySchema<v.ObjectSchema<{
|
|
8
8
|
readonly fieldPath: v.StringSchema<undefined>;
|
|
9
9
|
readonly ruleId: v.StringSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-errors.schemas.d.ts","names":[],"sources":["../../../src/services/orders/order-errors.schemas.ts"],"mappings":";;;KAKY,8BAA8B;
|
|
1
|
+
{"version":3,"file":"order-errors.schemas.d.ts","names":[],"sources":["../../../src/services/orders/order-errors.schemas.ts"],"mappings":";;;KAKY,8BAA8B;cAW7B,wBAAsB,EAAA;;;;;;;;;;;;;;;;;;;;;KAcvB,mBAAmB,EAAE,mBAAmB"}
|
|
@@ -3,13 +3,16 @@ import { OptionalPublicIdSchema } from "../../shared/schemas.js";
|
|
|
3
3
|
import { RateLimitDetailSchema } from "../../shared/rate-limit.schemas.js";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
//#region src/services/orders/order-errors.schemas.ts
|
|
6
|
+
/**
|
|
7
|
+
* Names an order error code. A code newer than this build reads as `"UNSPECIFIED"`, so a
|
|
8
|
+
* backend ahead of the SDK degrades the code instead of failing the whole response.
|
|
9
|
+
*/
|
|
6
10
|
function orderErrorCodeName(code) {
|
|
7
11
|
const name = ErrorCode[code];
|
|
8
|
-
|
|
9
|
-
return name;
|
|
12
|
+
return typeof name === "string" ? name : "UNSPECIFIED";
|
|
10
13
|
}
|
|
11
14
|
const OrderErrorDetailSchema = v.object({
|
|
12
|
-
code: v.pipe(v.
|
|
15
|
+
code: v.pipe(v.number(), v.transform(orderErrorCodeName)),
|
|
13
16
|
violations: v.array(v.object({
|
|
14
17
|
fieldPath: v.string(),
|
|
15
18
|
ruleId: v.string(),
|
|
@@ -20,6 +23,6 @@ const OrderErrorDetailSchema = v.object({
|
|
|
20
23
|
existingOrderId: OptionalPublicIdSchema
|
|
21
24
|
});
|
|
22
25
|
//#endregion
|
|
23
|
-
export { OrderErrorDetailSchema };
|
|
26
|
+
export { OrderErrorDetailSchema, orderErrorCodeName };
|
|
24
27
|
|
|
25
28
|
//# sourceMappingURL=order-errors.schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-errors.schemas.js","names":["ProtoWrite.ErrorCode"],"sources":["../../../src/services/orders/order-errors.schemas.ts"],"sourcesContent":["import * as ProtoWrite from \"../../gen/orders/v1/orders_pb.js\";\nimport * as v from \"valibot\";\nimport { RateLimitDetailSchema } from \"../../shared/rate-limit.schemas.js\";\nimport { OptionalPublicIdSchema } from \"../../shared/schemas.js\";\n\nexport type OrderErrorCode = keyof typeof ProtoWrite.ErrorCode;\n\
|
|
1
|
+
{"version":3,"file":"order-errors.schemas.js","names":["ProtoWrite.ErrorCode"],"sources":["../../../src/services/orders/order-errors.schemas.ts"],"sourcesContent":["import * as ProtoWrite from \"../../gen/orders/v1/orders_pb.js\";\nimport * as v from \"valibot\";\nimport { RateLimitDetailSchema } from \"../../shared/rate-limit.schemas.js\";\nimport { OptionalPublicIdSchema } from \"../../shared/schemas.js\";\n\nexport type OrderErrorCode = keyof typeof ProtoWrite.ErrorCode;\n\n/**\n * Names an order error code. A code newer than this build reads as `\"UNSPECIFIED\"`, so a\n * backend ahead of the SDK degrades the code instead of failing the whole response.\n */\nexport function orderErrorCodeName(code: number): OrderErrorCode {\n const name: unknown = ProtoWrite.ErrorCode[code];\n return typeof name === \"string\" ? (name as OrderErrorCode) : \"UNSPECIFIED\";\n}\n\nexport const OrderErrorDetailSchema = v.object({\n code: v.pipe(v.number(), v.transform(orderErrorCodeName)),\n violations: v.array(\n v.object({\n fieldPath: v.string(),\n ruleId: v.string(),\n message: v.string(),\n }),\n ),\n rateLimit: v.optional(RateLimitDetailSchema),\n /** Order holding the client order ID on a `CONFLICT_DUPLICATE_CLIENT_ORDER_ID` rejection, when known. */\n existingOrderId: OptionalPublicIdSchema,\n});\n\nexport type OrderErrorDetail = v.InferOutput<typeof OrderErrorDetailSchema>;\n"],"mappings":";;;;;;;;;AAWA,SAAgB,mBAAmB,MAA8B;CAC7D,MAAM,OAAgBA,UAAqB;CAC3C,OAAO,OAAO,SAAS,WAAY,OAA0B;AACjE;AAEA,MAAa,yBAAyB,EAAE,OAAO;CAC3C,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,UAAU,kBAAkB,CAAC;CACxD,YAAY,EAAE,MACV,EAAE,OAAO;EACL,WAAW,EAAE,OAAO;EACpB,QAAQ,EAAE,OAAO;EACjB,SAAS,EAAE,OAAO;CACtB,CAAC,CACL;CACA,WAAW,EAAE,SAAS,qBAAqB;;CAE3C,iBAAiB;AACrB,CAAC"}
|