@polyester/sdk 0.36.0-devnet-20261119010940 → 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 +13 -1
- package/dist/services/account-activity/account-activity.schemas.d.ts +2 -2
- 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 +23 -52
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +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/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/changelog/changelog.schemas.d.ts +23 -18
- package/dist/services/changelog/changelog.schemas.d.ts.map +1 -1
- package/dist/services/changelog/changelog.schemas.js +6 -1
- package/dist/services/changelog/changelog.schemas.js.map +1 -1
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts +4 -3
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +4 -3
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +64 -64
- package/dist/services/market-overview/market-overview.js +8 -1
- package/dist/services/market-overview/market-overview.js.map +1 -1
- package/dist/services/orderbook/orderbook.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +8 -2
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +8 -8
- 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 +9 -9
- package/dist/services/orders/orders-modify.schemas.d.ts +3 -3
- package/dist/services/orders/orders-output.schemas.d.ts +6 -6
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +11 -11
- package/dist/services/social-verification/social-verification.schemas.d.ts +2 -2
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +13 -13
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +25 -25
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/dist/shared/connect-error-mapping.js +17 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/errors.d.ts +4 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +4 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/utils/connect-mfa-errors.d.ts +2 -2
- package/dist/utils/connect-mfa-errors.js +2 -2
- package/dist/utils/connect-mfa-errors.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @polyester/sdk
|
|
2
2
|
|
|
3
|
-
## 0.36.0-devnet-
|
|
3
|
+
## 0.36.0-devnet-20261119181946
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -104,6 +104,8 @@
|
|
|
104
104
|
|
|
105
105
|
- `client.marketData.listAssetInfo` reads asset information: team-maintained description, official links and launch date and price, and `marketStats` (circulating, total and maximum supply, market caps and rank as exact decimal strings, each with its `source` and `asOf` time). ([#256](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/256))
|
|
106
106
|
|
|
107
|
+
- `marketOverview.subscribe` keeps each market's sparklines from the snapshot when live updates arrive. The live channel carries no sparklines, so before every emitted row had `sparklines: []`, even with `includeSparklines` on (the default). ([#268](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/268))
|
|
108
|
+
|
|
107
109
|
- `client.notifications` decodes `admin_key_action` security notices, sent when an admin API key creates, changes or revokes a key or changes a policy. ([#266](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/266))
|
|
108
110
|
|
|
109
111
|
- `client.notifications` decodes `broker_allowlist_change` notices about QuickSwap broker vault payout address changes. These previously decoded as `"unspecified"`. Available on devnet only. ([#255](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/255))
|
|
@@ -124,6 +126,8 @@
|
|
|
124
126
|
|
|
125
127
|
- GTC and GTD limit orders take `execution.displayQty` to show only that much on the book at a time (iceberg), below `qty` and at least `qty` divided by 100; orders report it as `displayQty` with the hidden part of `leavesQty` as `hiddenQty`. Refusals use the new codes `ICEBERG_NOT_ALLOWED`, `ICEBERG_DISPLAY_TOO_SMALL` and `ICEBERG_DISPLAY_INVALID`. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
|
|
126
128
|
|
|
129
|
+
- Order `clientOrderId` / `newClientOrderId` and order `requestId` are sent exactly as given instead of trimmed. A padded or blank ID now throws `ValidationError` before sending, so an order is never placed under a different ID than the caller holds, or with none. This covers `orders.create`, `batchCreate`, `modify`, `batchReplace`, `cancel`, `batchCancel`, `cancelAll`, `cancelAllAfter` and `getDetails`. An omitted ID behaves as before. ([#268](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/268))
|
|
130
|
+
|
|
127
131
|
- Order error details add `causeCode` and `levelIndex` on `LADDER_LEVEL_REJECTED`: the code the refused ladder order would return on its own and its zero-based index among the ladder's levels. ([#258](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/258))
|
|
128
132
|
|
|
129
133
|
- Order error details add `priceBandLimit` with `PRICE_BAND_VIOLATION` on `orders.preview`: the highest admitted buy price or lowest admitted sell price, as a decimal price. ([#264](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/264))
|
|
@@ -134,10 +138,14 @@
|
|
|
134
138
|
|
|
135
139
|
- `selfTradePreventionMode` takes and reports `"decrement"`, which reduces both orders by the quantity that would have traded, also on orders with attached risk; an order left with nothing is canceled with the new cancel reason `stp_decrement`. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
|
|
136
140
|
|
|
141
|
+
- A server 504 on an order or trigger write (create, batch create, modify, batch replace, cancel, batch cancel, cancel all, cancel all after; trigger create, OCO create, modify, cancel, batch cancel, OCO cancel, pause, resume) now throws `OutcomeUnknownError` (`retryable: false`) even without the `*_OUTCOME_UNKNOWN` detail, which the public edge strips. Read the order or trigger back before sending it again. A 504 on a read and a client-side timeout are unchanged. ([#268](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/268))
|
|
142
|
+
|
|
137
143
|
- Order book snapshots return `bookEpoch`, and order book subscriptions discard a refetched snapshot from an older epoch. ([#260](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/260))
|
|
138
144
|
|
|
139
145
|
- Order book subscriptions apply a delta only when it starts at the book's current sequence, and after a gap wait for the server's next reset instead of refetching snapshots. ([#255](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/255))
|
|
140
146
|
|
|
147
|
+
- An order book subscription whose snapshot fails with an error that isn't retried (such as a 500) now rebuilds the book from the server's next reset, instead of ignoring every later reset and delta until the socket reconnects. ([#268](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/268))
|
|
148
|
+
|
|
141
149
|
- An order book subscription keeps asking for the snapshot while `GetOrderBook` answers that the book is not available yet (backoff from 1 s up to 8 s), and shows the book as soon as it is ready. Before, it stopped after three tries and stayed empty until the socket reconnected. A non-retryable snapshot error is not retried. ([#263](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/263))
|
|
142
150
|
|
|
143
151
|
- `PolicyAction` adds `manage-api-keys`, `manage-api-key-policies` and `manage-subaccount-policies`, API-key policy permissions that take effect only on an admin key. ([#266](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/266))
|
|
@@ -166,6 +174,8 @@
|
|
|
166
174
|
|
|
167
175
|
- The order book stops retrying its snapshot once `realtime.disconnect()` closes the socket. `lifecycle.subscribeOpenFlows` trims a padded `accountId` again, and a `null` `accountId` throws instead of opening the public all-accounts channel. A `ServiceUnavailableError` from a gateway that only says "service temporarily unavailable" now carries `retryAfterMs` from `Retry-After`. ([#265](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/265))
|
|
168
176
|
|
|
177
|
+
- `auth.refreshSession()` keeps the account selected with `switchAccount` even when the display-session cookie can't be read (Node, Bun, workers, or a browser with cookies blocked). Before, the refresh fell back to the main account, so later calls without an explicit `account` ran on the main account. ([#268](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/268))
|
|
178
|
+
|
|
169
179
|
- `RequestTooLargeError` carries the exceeded `limitBytes` in its `detail` when the server sends a `RequestErrorDetail`, whatever the message. ([#266](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/266))
|
|
170
180
|
|
|
171
181
|
- `orderbook.get` returns the snapshot's `ts`, `orders.cancelAll` returns `tsNs`, and `internalTransfers.create` returns `acceptedAtNs`, fields the server already sent but the SDK dropped. ([#258](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/258))
|
|
@@ -178,6 +188,8 @@
|
|
|
178
188
|
|
|
179
189
|
- Spot config pairs and the catalog add an optional `priceBand` (`lowerBps`, `upperBps`, `referenceWindowMs`), absent when the pair has no band, and orders report the cancel reason `price_band` when the band stopped a market order. Older snapshots without it still validate. ([#251](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/251))
|
|
180
190
|
|
|
191
|
+
- Doc comments describe the MFA-elevated session (an MFA challenge completed in the last 30 minutes) instead of recent MFA, and say that a release post's `publishedAt` is when the release went live in this environment and can change without a new revision. ([#267](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/267))
|
|
192
|
+
|
|
181
193
|
- `statementExports.cancel({ exportId })` stops a queued or processing export, which ends `canceled` and frees its place under the root account's limit of 5. ([#264](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/264))
|
|
182
194
|
|
|
183
195
|
- `statementExports.getDownloadUrl({ exportId })` returns a link to a ready export's file, valid for 60 seconds and usable without credentials, so a browser can save the file. ([#264](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/264))
|
|
@@ -28,7 +28,7 @@ declare const ListAccountActivityInputSchema: v.SchemaWithPipe<readonly [v.Stric
|
|
|
28
28
|
subaccountIds?: bigint[] | undefined;
|
|
29
29
|
includeMainAccount?: boolean | undefined;
|
|
30
30
|
entityKinds?: ("subaccount" | "api_key" | "account" | "session" | "member" | "policy" | "invite" | "security" | "destination")[] | undefined;
|
|
31
|
-
eventActions?: ("disabled" | "
|
|
31
|
+
eventActions?: ("disabled" | "revoked" | "removed" | "created" | "updated" | "deleted" | "enabled" | "role_set" | "received" | "replied" | "failed" | "blocked" | "hold_placed" | "hold_released" | "requested" | "applied")[] | undefined;
|
|
32
32
|
sources?: ("web" | "mobile" | "api")[] | undefined;
|
|
33
33
|
apiKeyId?: bigint | undefined;
|
|
34
34
|
startTime?: import("@bufbuild/protobuf/wkt").Timestamp | undefined;
|
|
@@ -58,7 +58,7 @@ declare const ListAccountActivityResultSchema: v.ObjectSchema<{
|
|
|
58
58
|
nanos: number;
|
|
59
59
|
} | undefined, number | undefined>]>;
|
|
60
60
|
readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "subaccount" | "api_key" | "account" | "session" | "member" | "policy" | "invite" | "security" | "destination">]>;
|
|
61
|
-
readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "
|
|
61
|
+
readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "revoked" | "removed" | "created" | "updated" | "deleted" | "enabled" | "role_set" | "received" | "replied" | "failed" | "blocked" | "hold_placed" | "hold_released" | "requested" | "applied">]>;
|
|
62
62
|
readonly source: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "web" | "mobile" | "api">]>;
|
|
63
63
|
readonly ip: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
64
64
|
readonly userAgent: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -297,7 +297,7 @@ declare const AddressBookSchema: v.ObjectSchema<{
|
|
|
297
297
|
rootAccountId: string;
|
|
298
298
|
subaccountId: bigint;
|
|
299
299
|
}, AddressBookAccountScope>]>, undefined>;
|
|
300
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
300
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "admin" | "owner" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
301
301
|
readonly label: v.StringSchema<undefined>;
|
|
302
302
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
303
303
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -1102,7 +1102,7 @@ declare const AddressBookViewSchema: v.ObjectSchema<{
|
|
|
1102
1102
|
rootAccountId: string;
|
|
1103
1103
|
subaccountId: bigint;
|
|
1104
1104
|
}, AddressBookAccountScope>]>, undefined>;
|
|
1105
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
1105
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "admin" | "owner" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
1106
1106
|
readonly label: v.StringSchema<undefined>;
|
|
1107
1107
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
1108
1108
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -42,7 +42,7 @@ declare const ApiKeysCreateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
42
42
|
}, undefined>, v.TransformAction<{
|
|
43
43
|
ipWhitelist: string[];
|
|
44
44
|
publicKeyEd25519: Uint8Array<ArrayBufferLike>;
|
|
45
|
-
purpose?: "
|
|
45
|
+
purpose?: "standard" | "admin" | undefined;
|
|
46
46
|
account?: "active" | "main" | {
|
|
47
47
|
subaccountId: string;
|
|
48
48
|
} | undefined;
|
|
@@ -79,7 +79,7 @@ declare const ApiKeysUpdateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
79
79
|
status?: "active" | "disabled" | undefined;
|
|
80
80
|
ipWhitelist?: string[] | undefined;
|
|
81
81
|
expiresAtIso?: string | null | undefined;
|
|
82
|
-
purpose?: "
|
|
82
|
+
purpose?: "standard" | "admin" | undefined;
|
|
83
83
|
}, "At least one API key field must be provided">, v.TransformAction<{
|
|
84
84
|
keyId: string;
|
|
85
85
|
expectedRevision: bigint;
|
|
@@ -89,7 +89,7 @@ declare const ApiKeysUpdateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
89
89
|
status?: "active" | "disabled" | undefined;
|
|
90
90
|
ipWhitelist?: string[] | undefined;
|
|
91
91
|
expiresAtIso?: string | null | undefined;
|
|
92
|
-
purpose?: "
|
|
92
|
+
purpose?: "standard" | "admin" | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
keyId: string;
|
|
95
95
|
apiKey: never;
|
|
@@ -144,7 +144,7 @@ declare const ApiKeySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
144
144
|
} | undefined, string | undefined>]>;
|
|
145
145
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "active" | "disabled" | "revoked">]>;
|
|
146
146
|
/** `"standard"`, `"assistant"`, or `"unspecified"` from older servers. */
|
|
147
|
-
readonly purpose: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
147
|
+
readonly purpose: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "standard" | "admin" | "assistant">]>, 0>;
|
|
148
148
|
readonly createdByActor: v.StringSchema<undefined>;
|
|
149
149
|
readonly revision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
150
150
|
}, undefined>, v.TransformAction<{
|
|
@@ -164,7 +164,7 @@ declare const ApiKeySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
164
164
|
publicKeyEd25519: Uint8Array<ArrayBufferLike>;
|
|
165
165
|
expiresAt?: string | undefined;
|
|
166
166
|
status: "unspecified" | "active" | "disabled" | "revoked";
|
|
167
|
-
purpose: "
|
|
167
|
+
purpose: "unspecified" | "standard" | "admin" | "assistant";
|
|
168
168
|
createdByActor: string;
|
|
169
169
|
revision: string;
|
|
170
170
|
}, {
|
|
@@ -183,7 +183,7 @@ declare const ApiKeySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
183
183
|
publicKeyEd25519: Uint8Array<ArrayBufferLike>;
|
|
184
184
|
expiresAt?: string | undefined;
|
|
185
185
|
status: "unspecified" | "active" | "disabled" | "revoked";
|
|
186
|
-
purpose: "
|
|
186
|
+
purpose: "unspecified" | "standard" | "admin" | "assistant";
|
|
187
187
|
createdByActor: string;
|
|
188
188
|
revision: string;
|
|
189
189
|
}>]>;
|
|
@@ -628,7 +628,6 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
628
628
|
maxSlippageBps?: undefined;
|
|
629
629
|
legs?: undefined;
|
|
630
630
|
quotedAt?: undefined;
|
|
631
|
-
/** Approving after this executes nothing. */
|
|
632
631
|
expiresAt?: undefined;
|
|
633
632
|
} | {
|
|
634
633
|
type: "place_orders";
|
|
@@ -967,7 +966,6 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
967
966
|
maxSlippageBps?: undefined;
|
|
968
967
|
legs?: undefined;
|
|
969
968
|
quotedAt?: undefined;
|
|
970
|
-
/** Approving after this executes nothing. */
|
|
971
969
|
expiresAt?: undefined;
|
|
972
970
|
} | {
|
|
973
971
|
type: "cancel_orders";
|
|
@@ -1015,7 +1013,6 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1015
1013
|
maxSlippageBps?: undefined;
|
|
1016
1014
|
legs?: undefined;
|
|
1017
1015
|
quotedAt?: undefined;
|
|
1018
|
-
/** Approving after this executes nothing. */
|
|
1019
1016
|
expiresAt?: undefined;
|
|
1020
1017
|
} | {
|
|
1021
1018
|
type: "order_change";
|
|
@@ -1065,7 +1062,6 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1065
1062
|
maxSlippageBps?: undefined;
|
|
1066
1063
|
legs?: undefined;
|
|
1067
1064
|
quotedAt?: undefined;
|
|
1068
|
-
/** Approving after this executes nothing. */
|
|
1069
1065
|
expiresAt?: undefined;
|
|
1070
1066
|
} | {
|
|
1071
1067
|
type: "trigger_change";
|
|
@@ -1079,7 +1075,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1079
1075
|
quantity: string;
|
|
1080
1076
|
action: "unspecified" | "pause" | "modify" | "resume";
|
|
1081
1077
|
before: {
|
|
1082
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
1078
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
1083
1079
|
triggerPrice: string | undefined;
|
|
1084
1080
|
trailingDistance: {
|
|
1085
1081
|
kind: "distance";
|
|
@@ -1103,7 +1099,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1103
1099
|
limitPrice: string | undefined;
|
|
1104
1100
|
} | undefined;
|
|
1105
1101
|
after: {
|
|
1106
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
1102
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
1107
1103
|
triggerPrice: string | undefined;
|
|
1108
1104
|
trailingDistance: {
|
|
1109
1105
|
kind: "distance";
|
|
@@ -1156,7 +1152,6 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1156
1152
|
maxSlippageBps?: undefined;
|
|
1157
1153
|
legs?: undefined;
|
|
1158
1154
|
quotedAt?: undefined;
|
|
1159
|
-
/** Approving after this executes nothing. */
|
|
1160
1155
|
expiresAt?: undefined;
|
|
1161
1156
|
} | {
|
|
1162
1157
|
type: "cancel_trigger";
|
|
@@ -1197,7 +1192,6 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1197
1192
|
maxSlippageBps?: undefined;
|
|
1198
1193
|
legs?: undefined;
|
|
1199
1194
|
quotedAt?: undefined;
|
|
1200
|
-
/** Approving after this executes nothing. */
|
|
1201
1195
|
expiresAt?: undefined;
|
|
1202
1196
|
} | {
|
|
1203
1197
|
type: "swap";
|
|
@@ -1287,7 +1281,6 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1287
1281
|
maxSlippageBps?: undefined;
|
|
1288
1282
|
legs?: undefined;
|
|
1289
1283
|
quotedAt?: undefined;
|
|
1290
|
-
/** Approving after this executes nothing. */
|
|
1291
1284
|
expiresAt?: undefined;
|
|
1292
1285
|
};
|
|
1293
1286
|
type AssistantApprovalPreview = ReturnType<typeof formatApprovalPreview>;
|
|
@@ -1311,7 +1304,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1311
1304
|
attachedRisk: {
|
|
1312
1305
|
takeProfit: {
|
|
1313
1306
|
state: {
|
|
1314
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
1307
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running" | "not_configured";
|
|
1315
1308
|
armedTs: number | undefined;
|
|
1316
1309
|
armedTsNs: string | undefined;
|
|
1317
1310
|
terminalTs: number | undefined;
|
|
@@ -1331,7 +1324,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1331
1324
|
} | undefined;
|
|
1332
1325
|
stopLoss: {
|
|
1333
1326
|
state: {
|
|
1334
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
1327
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running" | "not_configured";
|
|
1335
1328
|
armedTs: number | undefined;
|
|
1336
1329
|
armedTsNs: string | undefined;
|
|
1337
1330
|
terminalTs: number | undefined;
|
|
@@ -1351,7 +1344,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1351
1344
|
} | undefined;
|
|
1352
1345
|
trailingStop: {
|
|
1353
1346
|
state: {
|
|
1354
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
1347
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running" | "not_configured";
|
|
1355
1348
|
armedTs: number | undefined;
|
|
1356
1349
|
armedTsNs: string | undefined;
|
|
1357
1350
|
terminalTs: number | undefined;
|
|
@@ -1436,12 +1429,12 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1436
1429
|
triggers: ({
|
|
1437
1430
|
runtimeDetails: TriggerDetailsOutput;
|
|
1438
1431
|
version: number;
|
|
1439
|
-
cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "cancel_all" | "missing_reason_code"
|
|
1432
|
+
cancelReason: "unspecified" | "internal_error" | "oco" | "user_request" | "account_repair" | "market_halted" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "cancel_all" | "missing_reason_code";
|
|
1440
1433
|
failureReason: undefined;
|
|
1441
1434
|
triggerId: string;
|
|
1442
1435
|
subaccountId: string;
|
|
1443
1436
|
symbolId: number;
|
|
1444
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
1437
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
1445
1438
|
parentOrderId: string | undefined;
|
|
1446
1439
|
orderListId: string | undefined;
|
|
1447
1440
|
qty: string;
|
|
@@ -1623,11 +1616,11 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1623
1616
|
runtimeDetails: TriggerDetailsOutput;
|
|
1624
1617
|
version: number;
|
|
1625
1618
|
cancelReason: undefined;
|
|
1626
|
-
failureReason: "unspecified" | "
|
|
1619
|
+
failureReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "unknown_symbol" | "pair_disabled" | "min_notional" | "tick_size" | "insufficient_funds" | "risk_limit" | "duplicate_client_id" | "engine_busy" | "account_unknown" | "order_unknown" | "post_only_cross" | "reduce_only_blocked" | "price_band_violation" | "market_cap_violation" | "empty_book" | "fok_insufficient_liquidity" | "fee_asset_not_allowed" | "market_price_unavailable" | "stale_quote" | "min_quantity" | "step_size" | "invalid_sizing" | "quote_size_too_small" | "fee_ceiling_exceeded" | "trigger_price_invalid" | "trigger_price_source_unsupported" | "trailing_distance_invalid" | "modification_requires_replace" | "order_already_terminal" | "conflict_idempotency_key_reuse" | "rate_limited" | "policy_spot_trade_deny" | "policy_market_deny" | "policy_max_notional" | "policy_max_open_orders" | "policy_trading_halted" | "max_slippage_invalid" | "invalid_time_in_force" | "duplicate_order_id" | "max_quantity" | "max_notional" | "pair_post_only" | "max_open_orders_total" | "stp_mode_not_allowed" | "pair_backlogged" | "mode_not_supported" | "market_quote_stale" | "market_quote_unhealthy" | "qty_invalid" | "limit_price_invalid" | "twap_interval_invalid" | "ladder_range_too_narrow" | "ladder_levels_invalid" | "attached_legs_exceeded" | "price_levels_exhausted" | "settlement_backlogged" | "client_order_ids_exhausted" | "invalid_order_id" | "order_id_conflict" | "invalid_side" | "invalid_order_type" | "invalid_stp_mode" | "invalid_order_flags" | "price_level_quantity_limit" | "child_qty_raise_not_allowed" | "triggers_exhausted" | "order_sequence_exhausted" | "fee_schedule_unavailable" | "policy_unavailable" | "account_routing_invalid" | "client_trigger_id_invalid" | "trigger_direction_invalid" | "fee_asset_invalid" | "fee_ceiling_invalid" | "unsupported_field_set" | "trigger_fire_limit_reached" | "condition_flags_invalid" | "condition_parameter_set" | "slippage_ticks_invalid" | "slippage_bps_invalid" | "slippage_bounds_conflict" | "limit_child_slippage_set" | "new_account_capacity_reached" | "order_type_not_allowed_in_auction" | "post_only_not_allowed_in_auction" | "twap_capacity_reached" | "order_limits_unavailable" | "child_order_inconsistent" | "index_price_unavailable" | "trigger_would_trigger_immediately" | "max_open_orders_per_pair" | "account_repairing" | "self_trade_prevented" | "trigger_stopping";
|
|
1627
1620
|
triggerId: string;
|
|
1628
1621
|
subaccountId: string;
|
|
1629
1622
|
symbolId: number;
|
|
1630
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
1623
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
1631
1624
|
parentOrderId: string | undefined;
|
|
1632
1625
|
orderListId: string | undefined;
|
|
1633
1626
|
qty: string;
|
|
@@ -1813,7 +1806,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1813
1806
|
triggerId: string;
|
|
1814
1807
|
subaccountId: string;
|
|
1815
1808
|
symbolId: number;
|
|
1816
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
1809
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
1817
1810
|
parentOrderId: string | undefined;
|
|
1818
1811
|
orderListId: string | undefined;
|
|
1819
1812
|
qty: string;
|
|
@@ -2094,7 +2087,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
2094
2087
|
referencePrice: string;
|
|
2095
2088
|
armed: boolean;
|
|
2096
2089
|
status: "unspecified" | "active" | "canceled" | "triggered";
|
|
2097
|
-
channels: ("unspecified" | "
|
|
2090
|
+
channels: ("unspecified" | "telegram" | "in_app")[];
|
|
2098
2091
|
revision: string;
|
|
2099
2092
|
createdAt: number | null;
|
|
2100
2093
|
updatedAt: number | null;
|
|
@@ -2279,7 +2272,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2279
2272
|
subagentId?: undefined;
|
|
2280
2273
|
summary?: undefined;
|
|
2281
2274
|
approvalId?: undefined;
|
|
2282
|
-
/** Approving after this executes nothing. */
|
|
2283
2275
|
expiresAt?: undefined;
|
|
2284
2276
|
parameters?: undefined;
|
|
2285
2277
|
accountId?: undefined;
|
|
@@ -2309,7 +2301,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2309
2301
|
subagentId?: undefined;
|
|
2310
2302
|
summary?: undefined;
|
|
2311
2303
|
approvalId?: undefined;
|
|
2312
|
-
/** Approving after this executes nothing. */
|
|
2313
2304
|
expiresAt?: undefined;
|
|
2314
2305
|
parameters?: undefined;
|
|
2315
2306
|
accountId?: undefined;
|
|
@@ -2339,7 +2330,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2339
2330
|
subagentId?: undefined;
|
|
2340
2331
|
summary?: undefined;
|
|
2341
2332
|
approvalId?: undefined;
|
|
2342
|
-
/** Approving after this executes nothing. */
|
|
2343
2333
|
expiresAt?: undefined;
|
|
2344
2334
|
parameters?: undefined;
|
|
2345
2335
|
accountId?: undefined;
|
|
@@ -2369,7 +2359,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2369
2359
|
subagentId?: undefined;
|
|
2370
2360
|
summary?: undefined;
|
|
2371
2361
|
approvalId?: undefined;
|
|
2372
|
-
/** Approving after this executes nothing. */
|
|
2373
2362
|
expiresAt?: undefined;
|
|
2374
2363
|
parameters?: undefined;
|
|
2375
2364
|
accountId?: undefined;
|
|
@@ -2389,7 +2378,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2389
2378
|
memories: {
|
|
2390
2379
|
memoryId: string;
|
|
2391
2380
|
text: string;
|
|
2392
|
-
kind: "unspecified" | "
|
|
2381
|
+
kind: "unspecified" | "profile" | "fact" | "planning_figure";
|
|
2393
2382
|
}[];
|
|
2394
2383
|
text?: undefined;
|
|
2395
2384
|
fromSeq?: undefined;
|
|
@@ -2403,7 +2392,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2403
2392
|
subagentId?: undefined;
|
|
2404
2393
|
summary?: undefined;
|
|
2405
2394
|
approvalId?: undefined;
|
|
2406
|
-
/** Approving after this executes nothing. */
|
|
2407
2395
|
expiresAt?: undefined;
|
|
2408
2396
|
parameters?: undefined;
|
|
2409
2397
|
accountId?: undefined;
|
|
@@ -2433,7 +2421,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2433
2421
|
subagentId?: undefined;
|
|
2434
2422
|
summary?: undefined;
|
|
2435
2423
|
approvalId?: undefined;
|
|
2436
|
-
/** Approving after this executes nothing. */
|
|
2437
2424
|
expiresAt?: undefined;
|
|
2438
2425
|
parameters?: undefined;
|
|
2439
2426
|
accountId?: undefined;
|
|
@@ -2463,7 +2450,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2463
2450
|
subagentId?: undefined;
|
|
2464
2451
|
summary?: undefined;
|
|
2465
2452
|
approvalId?: undefined;
|
|
2466
|
-
/** Approving after this executes nothing. */
|
|
2467
2453
|
expiresAt?: undefined;
|
|
2468
2454
|
parameters?: undefined;
|
|
2469
2455
|
accountId?: undefined;
|
|
@@ -2493,7 +2479,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2493
2479
|
subagentId?: undefined;
|
|
2494
2480
|
summary?: undefined;
|
|
2495
2481
|
approvalId?: undefined;
|
|
2496
|
-
/** Approving after this executes nothing. */
|
|
2497
2482
|
expiresAt?: undefined;
|
|
2498
2483
|
parameters?: undefined;
|
|
2499
2484
|
accountId?: undefined;
|
|
@@ -2523,7 +2508,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2523
2508
|
value?: undefined;
|
|
2524
2509
|
summary?: undefined;
|
|
2525
2510
|
approvalId?: undefined;
|
|
2526
|
-
/** Approving after this executes nothing. */
|
|
2527
2511
|
expiresAt?: undefined;
|
|
2528
2512
|
parameters?: undefined;
|
|
2529
2513
|
accountId?: undefined;
|
|
@@ -2553,7 +2537,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2553
2537
|
setting?: undefined;
|
|
2554
2538
|
value?: undefined;
|
|
2555
2539
|
approvalId?: undefined;
|
|
2556
|
-
/** Approving after this executes nothing. */
|
|
2557
2540
|
expiresAt?: undefined;
|
|
2558
2541
|
parameters?: undefined;
|
|
2559
2542
|
accountId?: undefined;
|
|
@@ -2904,7 +2887,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2904
2887
|
maxSlippageBps?: undefined;
|
|
2905
2888
|
legs?: undefined;
|
|
2906
2889
|
quotedAt?: undefined;
|
|
2907
|
-
/** Approving after this executes nothing. */
|
|
2908
2890
|
expiresAt?: undefined;
|
|
2909
2891
|
} | {
|
|
2910
2892
|
type: "place_orders";
|
|
@@ -3243,7 +3225,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3243
3225
|
maxSlippageBps?: undefined;
|
|
3244
3226
|
legs?: undefined;
|
|
3245
3227
|
quotedAt?: undefined;
|
|
3246
|
-
/** Approving after this executes nothing. */
|
|
3247
3228
|
expiresAt?: undefined;
|
|
3248
3229
|
} | {
|
|
3249
3230
|
type: "cancel_orders";
|
|
@@ -3291,7 +3272,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3291
3272
|
maxSlippageBps?: undefined;
|
|
3292
3273
|
legs?: undefined;
|
|
3293
3274
|
quotedAt?: undefined;
|
|
3294
|
-
/** Approving after this executes nothing. */
|
|
3295
3275
|
expiresAt?: undefined;
|
|
3296
3276
|
} | {
|
|
3297
3277
|
type: "order_change";
|
|
@@ -3341,7 +3321,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3341
3321
|
maxSlippageBps?: undefined;
|
|
3342
3322
|
legs?: undefined;
|
|
3343
3323
|
quotedAt?: undefined;
|
|
3344
|
-
/** Approving after this executes nothing. */
|
|
3345
3324
|
expiresAt?: undefined;
|
|
3346
3325
|
} | {
|
|
3347
3326
|
type: "trigger_change";
|
|
@@ -3355,7 +3334,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3355
3334
|
quantity: string;
|
|
3356
3335
|
action: "unspecified" | "pause" | "modify" | "resume";
|
|
3357
3336
|
before: {
|
|
3358
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
3337
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
3359
3338
|
triggerPrice: string | undefined;
|
|
3360
3339
|
trailingDistance: {
|
|
3361
3340
|
kind: "distance";
|
|
@@ -3379,7 +3358,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3379
3358
|
limitPrice: string | undefined;
|
|
3380
3359
|
} | undefined;
|
|
3381
3360
|
after: {
|
|
3382
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
3361
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
3383
3362
|
triggerPrice: string | undefined;
|
|
3384
3363
|
trailingDistance: {
|
|
3385
3364
|
kind: "distance";
|
|
@@ -3432,7 +3411,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3432
3411
|
maxSlippageBps?: undefined;
|
|
3433
3412
|
legs?: undefined;
|
|
3434
3413
|
quotedAt?: undefined;
|
|
3435
|
-
/** Approving after this executes nothing. */
|
|
3436
3414
|
expiresAt?: undefined;
|
|
3437
3415
|
} | {
|
|
3438
3416
|
type: "cancel_trigger";
|
|
@@ -3473,7 +3451,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3473
3451
|
maxSlippageBps?: undefined;
|
|
3474
3452
|
legs?: undefined;
|
|
3475
3453
|
quotedAt?: undefined;
|
|
3476
|
-
/** Approving after this executes nothing. */
|
|
3477
3454
|
expiresAt?: undefined;
|
|
3478
3455
|
} | {
|
|
3479
3456
|
type: "swap";
|
|
@@ -3563,7 +3540,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3563
3540
|
maxSlippageBps?: undefined;
|
|
3564
3541
|
legs?: undefined;
|
|
3565
3542
|
quotedAt?: undefined;
|
|
3566
|
-
/** Approving after this executes nothing. */
|
|
3567
3543
|
expiresAt?: undefined;
|
|
3568
3544
|
};
|
|
3569
3545
|
text?: undefined;
|
|
@@ -3603,7 +3579,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3603
3579
|
value?: undefined;
|
|
3604
3580
|
subagentId?: undefined;
|
|
3605
3581
|
summary?: undefined;
|
|
3606
|
-
/** Approving after this executes nothing. */
|
|
3607
3582
|
expiresAt?: undefined;
|
|
3608
3583
|
parameters?: undefined;
|
|
3609
3584
|
accountId?: undefined;
|
|
@@ -3638,7 +3613,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3638
3613
|
attachedRisk: {
|
|
3639
3614
|
takeProfit: {
|
|
3640
3615
|
state: {
|
|
3641
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
3616
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running" | "not_configured";
|
|
3642
3617
|
armedTs: number | undefined;
|
|
3643
3618
|
armedTsNs: string | undefined;
|
|
3644
3619
|
terminalTs: number | undefined;
|
|
@@ -3658,7 +3633,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3658
3633
|
} | undefined;
|
|
3659
3634
|
stopLoss: {
|
|
3660
3635
|
state: {
|
|
3661
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
3636
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running" | "not_configured";
|
|
3662
3637
|
armedTs: number | undefined;
|
|
3663
3638
|
armedTsNs: string | undefined;
|
|
3664
3639
|
terminalTs: number | undefined;
|
|
@@ -3678,7 +3653,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3678
3653
|
} | undefined;
|
|
3679
3654
|
trailingStop: {
|
|
3680
3655
|
state: {
|
|
3681
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
3656
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running" | "not_configured";
|
|
3682
3657
|
armedTs: number | undefined;
|
|
3683
3658
|
armedTsNs: string | undefined;
|
|
3684
3659
|
terminalTs: number | undefined;
|
|
@@ -3763,12 +3738,12 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3763
3738
|
triggers: ({
|
|
3764
3739
|
runtimeDetails: TriggerDetailsOutput;
|
|
3765
3740
|
version: number;
|
|
3766
|
-
cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "cancel_all" | "missing_reason_code"
|
|
3741
|
+
cancelReason: "unspecified" | "internal_error" | "oco" | "user_request" | "account_repair" | "market_halted" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "cancel_all" | "missing_reason_code";
|
|
3767
3742
|
failureReason: undefined;
|
|
3768
3743
|
triggerId: string;
|
|
3769
3744
|
subaccountId: string;
|
|
3770
3745
|
symbolId: number;
|
|
3771
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
3746
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
3772
3747
|
parentOrderId: string | undefined;
|
|
3773
3748
|
orderListId: string | undefined;
|
|
3774
3749
|
qty: string;
|
|
@@ -3950,11 +3925,11 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3950
3925
|
runtimeDetails: TriggerDetailsOutput;
|
|
3951
3926
|
version: number;
|
|
3952
3927
|
cancelReason: undefined;
|
|
3953
|
-
failureReason: "unspecified" | "
|
|
3928
|
+
failureReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "unknown_symbol" | "pair_disabled" | "min_notional" | "tick_size" | "insufficient_funds" | "risk_limit" | "duplicate_client_id" | "engine_busy" | "account_unknown" | "order_unknown" | "post_only_cross" | "reduce_only_blocked" | "price_band_violation" | "market_cap_violation" | "empty_book" | "fok_insufficient_liquidity" | "fee_asset_not_allowed" | "market_price_unavailable" | "stale_quote" | "min_quantity" | "step_size" | "invalid_sizing" | "quote_size_too_small" | "fee_ceiling_exceeded" | "trigger_price_invalid" | "trigger_price_source_unsupported" | "trailing_distance_invalid" | "modification_requires_replace" | "order_already_terminal" | "conflict_idempotency_key_reuse" | "rate_limited" | "policy_spot_trade_deny" | "policy_market_deny" | "policy_max_notional" | "policy_max_open_orders" | "policy_trading_halted" | "max_slippage_invalid" | "invalid_time_in_force" | "duplicate_order_id" | "max_quantity" | "max_notional" | "pair_post_only" | "max_open_orders_total" | "stp_mode_not_allowed" | "pair_backlogged" | "mode_not_supported" | "market_quote_stale" | "market_quote_unhealthy" | "qty_invalid" | "limit_price_invalid" | "twap_interval_invalid" | "ladder_range_too_narrow" | "ladder_levels_invalid" | "attached_legs_exceeded" | "price_levels_exhausted" | "settlement_backlogged" | "client_order_ids_exhausted" | "invalid_order_id" | "order_id_conflict" | "invalid_side" | "invalid_order_type" | "invalid_stp_mode" | "invalid_order_flags" | "price_level_quantity_limit" | "child_qty_raise_not_allowed" | "triggers_exhausted" | "order_sequence_exhausted" | "fee_schedule_unavailable" | "policy_unavailable" | "account_routing_invalid" | "client_trigger_id_invalid" | "trigger_direction_invalid" | "fee_asset_invalid" | "fee_ceiling_invalid" | "unsupported_field_set" | "trigger_fire_limit_reached" | "condition_flags_invalid" | "condition_parameter_set" | "slippage_ticks_invalid" | "slippage_bps_invalid" | "slippage_bounds_conflict" | "limit_child_slippage_set" | "new_account_capacity_reached" | "order_type_not_allowed_in_auction" | "post_only_not_allowed_in_auction" | "twap_capacity_reached" | "order_limits_unavailable" | "child_order_inconsistent" | "index_price_unavailable" | "trigger_would_trigger_immediately" | "max_open_orders_per_pair" | "account_repairing" | "self_trade_prevented" | "trigger_stopping";
|
|
3954
3929
|
triggerId: string;
|
|
3955
3930
|
subaccountId: string;
|
|
3956
3931
|
symbolId: number;
|
|
3957
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
3932
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
3958
3933
|
parentOrderId: string | undefined;
|
|
3959
3934
|
orderListId: string | undefined;
|
|
3960
3935
|
qty: string;
|
|
@@ -4140,7 +4115,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4140
4115
|
triggerId: string;
|
|
4141
4116
|
subaccountId: string;
|
|
4142
4117
|
symbolId: number;
|
|
4143
|
-
status: "unspecified" | "created" | "failed" | "canceled" | "
|
|
4118
|
+
status: "unspecified" | "created" | "failed" | "canceled" | "completed" | "paused" | "armed" | "running";
|
|
4144
4119
|
parentOrderId: string | undefined;
|
|
4145
4120
|
orderListId: string | undefined;
|
|
4146
4121
|
qty: string;
|
|
@@ -4421,7 +4396,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4421
4396
|
referencePrice: string;
|
|
4422
4397
|
armed: boolean;
|
|
4423
4398
|
status: "unspecified" | "active" | "canceled" | "triggered";
|
|
4424
|
-
channels: ("unspecified" | "
|
|
4399
|
+
channels: ("unspecified" | "telegram" | "in_app")[];
|
|
4425
4400
|
revision: string;
|
|
4426
4401
|
createdAt: number | null;
|
|
4427
4402
|
updatedAt: number | null;
|
|
@@ -4603,7 +4578,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4603
4578
|
subagentId?: undefined;
|
|
4604
4579
|
summary?: undefined;
|
|
4605
4580
|
approvalId?: undefined;
|
|
4606
|
-
/** Approving after this executes nothing. */
|
|
4607
4581
|
expiresAt?: undefined;
|
|
4608
4582
|
parameters?: undefined;
|
|
4609
4583
|
accountId?: undefined;
|
|
@@ -4638,7 +4612,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4638
4612
|
subagentId?: undefined;
|
|
4639
4613
|
summary?: undefined;
|
|
4640
4614
|
approvalId?: undefined;
|
|
4641
|
-
/** Approving after this executes nothing. */
|
|
4642
4615
|
expiresAt?: undefined;
|
|
4643
4616
|
parameters?: undefined;
|
|
4644
4617
|
accountId?: undefined;
|
|
@@ -4675,7 +4648,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4675
4648
|
subagentId?: undefined;
|
|
4676
4649
|
summary?: undefined;
|
|
4677
4650
|
approvalId?: undefined;
|
|
4678
|
-
/** Approving after this executes nothing. */
|
|
4679
4651
|
expiresAt?: undefined;
|
|
4680
4652
|
parameters?: undefined;
|
|
4681
4653
|
accountId?: undefined;
|
|
@@ -4702,7 +4674,6 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4702
4674
|
subagentId?: undefined;
|
|
4703
4675
|
summary?: undefined;
|
|
4704
4676
|
approvalId?: undefined;
|
|
4705
|
-
/** Approving after this executes nothing. */
|
|
4706
4677
|
expiresAt?: undefined;
|
|
4707
4678
|
parameters?: undefined;
|
|
4708
4679
|
accountId?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-events.schemas.d.ts","names":[],"sources":["../../../src/services/assistant/assistant-events.schemas.ts"],"mappings":";;;;;;;iBAwLS,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAUlD,oBAAoB,kBAAkB"}
|
|
@@ -242,7 +242,7 @@ declare function formatMemory(m: Memory): {
|
|
|
242
242
|
createdAt: number | undefined;
|
|
243
243
|
/** Omitted when the conversation it was learned in is unknown. */
|
|
244
244
|
conversationId: string | undefined;
|
|
245
|
-
kind: "unspecified" | "
|
|
245
|
+
kind: "unspecified" | "profile" | "fact" | "planning_figure";
|
|
246
246
|
};
|
|
247
247
|
type AssistantMemory = ReturnType<typeof formatMemory>;
|
|
248
248
|
declare function formatAssistantKey(k: AssistantKey$1): {
|