@polyester/sdk 0.36.0-devnet-20261119184734 → 0.36.0-devnet-20261120015159
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 +18 -2
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +55 -3
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +8 -1
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
- package/dist/gen/auth/v1/account_scope_pb.d.ts +40 -0
- package/dist/gen/auth/v1/account_scope_pb.d.ts.map +1 -0
- package/dist/gen/auth/v1/account_scope_pb.js +46 -0
- package/dist/gen/auth/v1/account_scope_pb.js.map +1 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts +3 -31
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +8 -38
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +15 -14
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +16 -15
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.d.ts +59 -58
- package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.js +38 -37
- package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +27 -1
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +27 -1
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +228 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +32 -8
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +16 -4
- package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
- package/dist/gen/index.d.ts +7 -5
- package/dist/gen/index.js +7 -5
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +288 -2
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +115 -2
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +78 -25
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +36 -7
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +35 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/strategies/v1/strategies_pb.d.ts +2928 -0
- package/dist/gen/strategies/v1/strategies_pb.d.ts.map +1 -0
- package/dist/gen/strategies/v1/strategies_pb.js +818 -0
- package/dist/gen/strategies/v1/strategies_pb.js.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +38 -17
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +4 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +312 -132
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +31 -26
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +28 -13
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +2 -2
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +109 -2
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +23 -3
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +3 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +61 -11
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +4 -2
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/services/account-activity/account-activity.schemas.d.ts +6 -6
- package/dist/services/address-book/address-book.codecs.js +1 -0
- package/dist/services/address-book/address-book.codecs.js.map +1 -1
- package/dist/services/address-book/address-book.js +1 -1
- package/dist/services/api-keys/api-keys.js +1 -1
- package/dist/services/assistant/assistant-events.schemas.d.ts +141 -43
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant-events.schemas.js +15 -5
- package/dist/services/assistant/assistant-events.schemas.js.map +1 -1
- package/dist/services/assistant/assistant.codecs.d.ts +5 -2
- package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
- package/dist/services/assistant/assistant.codecs.js +10 -2
- package/dist/services/assistant/assistant.codecs.js.map +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +2 -2
- package/dist/services/auth/auth.js +1 -1
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +16 -16
- package/dist/services/balances/balances.js +1 -1
- package/dist/services/balances/balances.schemas.d.ts +3 -3
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- 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/connected-apps/connected-apps.d.ts +4 -4
- package/dist/services/connected-apps/connected-apps.d.ts.map +1 -1
- package/dist/services/connected-apps/connected-apps.js +13 -13
- package/dist/services/connected-apps/connected-apps.js.map +1 -1
- package/dist/services/connected-apps/connected-apps.schemas.d.ts +7 -7
- package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -1
- package/dist/services/connected-apps/connected-apps.schemas.js +10 -10
- package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -1
- package/dist/services/connected-apps/connected-apps.types.d.ts +2 -2
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
- package/dist/services/market-data/market-data.codecs.d.ts +9 -1
- package/dist/services/market-data/market-data.codecs.d.ts.map +1 -1
- package/dist/services/market-data/market-data.codecs.js +14 -1
- package/dist/services/market-data/market-data.codecs.js.map +1 -1
- package/dist/services/market-data/market-data.d.ts +9 -1
- package/dist/services/market-data/market-data.d.ts.map +1 -1
- package/dist/services/market-data/market-data.js +14 -1
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +40 -2
- package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +43 -8
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.types.d.ts +3 -3
- package/dist/services/notifications/notifications.schemas.d.ts +4 -4
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +5 -19
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +6 -6
- package/dist/services/orders/orders-batch.schemas.d.ts +72 -72
- package/dist/services/orders/orders-input.schemas.d.ts +10 -10
- package/dist/services/orders/orders-output.schemas.d.ts +16 -16
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders.d.ts +5 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +5 -0
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/shared.codecs.js +13 -4
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.js +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/strategies/service.d.ts +8 -0
- package/dist/services/strategies/service.d.ts.map +1 -0
- package/dist/services/strategies/service.js +9 -0
- package/dist/services/strategies/service.js.map +1 -0
- package/dist/services/strategies/strategies.codecs.d.ts +15 -0
- package/dist/services/strategies/strategies.codecs.d.ts.map +1 -0
- package/dist/services/strategies/strategies.codecs.js +50 -0
- package/dist/services/strategies/strategies.codecs.js.map +1 -0
- package/dist/services/strategies/strategies.d.ts +75 -0
- package/dist/services/strategies/strategies.d.ts.map +1 -0
- package/dist/services/strategies/strategies.js +135 -0
- package/dist/services/strategies/strategies.js.map +1 -0
- package/dist/services/strategies/strategies.schemas.d.ts +568 -0
- package/dist/services/strategies/strategies.schemas.d.ts.map +1 -0
- package/dist/services/strategies/strategies.schemas.js +408 -0
- package/dist/services/strategies/strategies.schemas.js.map +1 -0
- package/dist/services/strategies/strategies.types.d.ts +3 -0
- package/dist/services/subaccounts/subaccounts.js +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +8 -8
- 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/trading-withdraws.d.ts +29 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +74 -11
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +85 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +56 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +3 -3
- package/dist/services/trading-withdraws/wallet-message.js +29 -1
- package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
- package/dist/services/transfers/transfers.js +1 -1
- package/dist/services/transfers/transfers.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 +44 -44
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +5 -0
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +25 -2
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +1 -0
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/strategies.js +36 -0
- package/dist/shared/error-details/strategies.js.map +1 -0
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +6 -4
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
//#region src/services/connected-apps/connected-apps.schemas.d.ts
|
|
3
3
|
/** Selects a pending app connection request. */
|
|
4
|
-
declare const
|
|
4
|
+
declare const AppConnectionRequestInputSchema: v.StrictObjectSchema<{
|
|
5
5
|
/** The `request` query parameter the authorization endpoint gave the consent page. */
|
|
6
6
|
readonly requestId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
7
7
|
}, undefined>;
|
|
8
|
-
type
|
|
8
|
+
type AppConnectionRequestInput = v.InferInput<typeof AppConnectionRequestInputSchema>;
|
|
9
9
|
declare const RevokeConnectedAppInputSchema: v.StrictObjectSchema<{
|
|
10
10
|
/** `connectedAppId` from `connectedApps.list`. */
|
|
11
11
|
readonly connectedAppId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
|
|
@@ -18,7 +18,7 @@ declare const ConnectedAppClientSchema: v.ObjectSchema<{
|
|
|
18
18
|
}, undefined>;
|
|
19
19
|
type ConnectedAppClient = v.InferOutput<typeof ConnectedAppClientSchema>;
|
|
20
20
|
/** A pending request from an app to connect to the account. Times are epoch milliseconds. */
|
|
21
|
-
declare const
|
|
21
|
+
declare const AppConnectionRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
22
22
|
readonly client: v.OptionalSchema<v.ObjectSchema<{
|
|
23
23
|
readonly clientId: v.StringSchema<undefined>;
|
|
24
24
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -59,7 +59,7 @@ declare const AppAuthorizationSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
59
59
|
/** After this the request can no longer be approved or denied. */
|
|
60
60
|
expiresAt: number | null;
|
|
61
61
|
}>]>;
|
|
62
|
-
type
|
|
62
|
+
type AppConnectionRequest = v.InferOutput<typeof AppConnectionRequestSchema>;
|
|
63
63
|
/** An app connected to the account. Times are epoch milliseconds. */
|
|
64
64
|
declare const ConnectedAppSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
65
65
|
readonly connectedAppId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
@@ -123,10 +123,10 @@ declare const ConnectedAppSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
123
123
|
}>]>;
|
|
124
124
|
type ConnectedApp = v.InferOutput<typeof ConnectedAppSchema>;
|
|
125
125
|
/** Where to send the browser to hand the app its answer. */
|
|
126
|
-
declare const
|
|
126
|
+
declare const AppConnectionRequestRedirectSchema: v.ObjectSchema<{
|
|
127
127
|
readonly redirectUrl: v.StringSchema<undefined>;
|
|
128
128
|
}, undefined>;
|
|
129
|
-
type
|
|
129
|
+
type AppConnectionRequestRedirect = v.InferOutput<typeof AppConnectionRequestRedirectSchema>;
|
|
130
130
|
//#endregion
|
|
131
|
-
export {
|
|
131
|
+
export { AppConnectionRequest, AppConnectionRequestInput, AppConnectionRequestInputSchema, AppConnectionRequestRedirect, AppConnectionRequestRedirectSchema, AppConnectionRequestSchema, ConnectedApp, ConnectedAppClient, ConnectedAppClientSchema, ConnectedAppSchema, RevokeConnectedAppInput, RevokeConnectedAppInputSchema };
|
|
132
132
|
//# sourceMappingURL=connected-apps.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-apps.schemas.d.ts","names":[],"sources":["../../../src/services/connected-apps/connected-apps.schemas.ts"],"mappings":";;;cAKa,
|
|
1
|
+
{"version":3,"file":"connected-apps.schemas.d.ts","names":[],"sources":["../../../src/services/connected-apps/connected-apps.schemas.ts"],"mappings":";;;cAKa,iCAA+B,EAAA;;;;KAKhC,4BAA4B,EAAE,kBAAkB;cAE/C,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,kBAAkB;;cAG7C,0BAAwB,EAAA;;;;KAKzB,qBAAqB,EAAE,mBAAmB;;cAKzC,4BAA0B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqB3B,uBAAuB,EAAE,mBAAmB;;cAG3C,oBAAkB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BnB,eAAe,EAAE,mBAAmB;;cAKnC,oCAAkC,EAAA;wBAAlC,EAAA;;KAED,+BAA+B,EAAE,mBAAmB"}
|
|
@@ -3,7 +3,7 @@ import { PositiveStringInputSchema } from "../shared.js";
|
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
//#region src/services/connected-apps/connected-apps.schemas.ts
|
|
5
5
|
/** Selects a pending app connection request. */
|
|
6
|
-
const
|
|
6
|
+
const AppConnectionRequestInputSchema = v.strictObject({
|
|
7
7
|
/** The `request` query parameter the authorization endpoint gave the consent page. */
|
|
8
8
|
requestId: PositiveStringInputSchema });
|
|
9
9
|
const RevokeConnectedAppInputSchema = v.strictObject({
|
|
@@ -19,22 +19,22 @@ const ClientSchema = v.optional(ConnectedAppClientSchema, {
|
|
|
19
19
|
name: ""
|
|
20
20
|
});
|
|
21
21
|
/** A pending request from an app to connect to the account. Times are epoch milliseconds. */
|
|
22
|
-
const
|
|
22
|
+
const AppConnectionRequestSchema = v.pipe(v.object({
|
|
23
23
|
client: ClientSchema,
|
|
24
24
|
scopes: v.array(v.string()),
|
|
25
25
|
resource: v.string(),
|
|
26
26
|
redirectHost: v.string(),
|
|
27
27
|
expiresAt: OptionalTimestampMsSchema
|
|
28
|
-
}), v.transform((
|
|
29
|
-
client:
|
|
28
|
+
}), v.transform((request) => ({
|
|
29
|
+
client: request.client,
|
|
30
30
|
/** OAuth scopes the app asks for, e.g. `"account:read"`. */
|
|
31
|
-
scopes:
|
|
31
|
+
scopes: request.scopes,
|
|
32
32
|
/** Absolute URL of the server the app will use the account through. */
|
|
33
|
-
resource:
|
|
33
|
+
resource: request.resource,
|
|
34
34
|
/** Host the app receives the answer on. */
|
|
35
|
-
redirectHost:
|
|
35
|
+
redirectHost: request.redirectHost,
|
|
36
36
|
/** After this the request can no longer be approved or denied. */
|
|
37
|
-
expiresAt:
|
|
37
|
+
expiresAt: request.expiresAt ?? null
|
|
38
38
|
})));
|
|
39
39
|
/** An app connected to the account. Times are epoch milliseconds. */
|
|
40
40
|
const ConnectedAppSchema = v.pipe(v.object({
|
|
@@ -61,8 +61,8 @@ const ConnectedAppSchema = v.pipe(v.object({
|
|
|
61
61
|
})));
|
|
62
62
|
const ConnectedAppsSchema = v.array(ConnectedAppSchema);
|
|
63
63
|
/** Where to send the browser to hand the app its answer. */
|
|
64
|
-
const
|
|
64
|
+
const AppConnectionRequestRedirectSchema = v.object({ redirectUrl: v.string() });
|
|
65
65
|
//#endregion
|
|
66
|
-
export {
|
|
66
|
+
export { AppConnectionRequestInputSchema, AppConnectionRequestRedirectSchema, AppConnectionRequestSchema, ConnectedAppClientSchema, ConnectedAppSchema, ConnectedAppsSchema, RevokeConnectedAppInputSchema };
|
|
67
67
|
|
|
68
68
|
//# sourceMappingURL=connected-apps.schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-apps.schemas.js","names":[],"sources":["../../../src/services/connected-apps/connected-apps.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { OptionalTimestampMsSchema, PublicIdSchema, idInputSchema } from \"../../shared/schemas.js\";\nimport { PositiveStringInputSchema } from \"../shared.js\";\n\n/** Selects a pending app connection request. */\nexport const
|
|
1
|
+
{"version":3,"file":"connected-apps.schemas.js","names":[],"sources":["../../../src/services/connected-apps/connected-apps.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { OptionalTimestampMsSchema, PublicIdSchema, idInputSchema } from \"../../shared/schemas.js\";\nimport { PositiveStringInputSchema } from \"../shared.js\";\n\n/** Selects a pending app connection request. */\nexport const AppConnectionRequestInputSchema = v.strictObject({\n /** The `request` query parameter the authorization endpoint gave the consent page. */\n requestId: PositiveStringInputSchema,\n});\n\nexport type AppConnectionRequestInput = v.InferInput<typeof AppConnectionRequestInputSchema>;\n\nexport const RevokeConnectedAppInputSchema = v.strictObject({\n /** `connectedAppId` from `connectedApps.list`. */\n connectedAppId: idInputSchema(\"connectedAppId\"),\n});\n\nexport type RevokeConnectedAppInput = v.InferInput<typeof RevokeConnectedAppInputSchema>;\n\n/** The OAuth client of an app, as it presents itself on the consent page. */\nexport const ConnectedAppClientSchema = v.object({\n clientId: v.string(),\n name: v.string(),\n});\n\nexport type ConnectedAppClient = v.InferOutput<typeof ConnectedAppClientSchema>;\n\nconst ClientSchema = v.optional(ConnectedAppClientSchema, { clientId: \"\", name: \"\" });\n\n/** A pending request from an app to connect to the account. Times are epoch milliseconds. */\nexport const AppConnectionRequestSchema = v.pipe(\n v.object({\n client: ClientSchema,\n scopes: v.array(v.string()),\n resource: v.string(),\n redirectHost: v.string(),\n expiresAt: OptionalTimestampMsSchema,\n }),\n v.transform((request) => ({\n client: request.client,\n /** OAuth scopes the app asks for, e.g. `\"account:read\"`. */\n scopes: request.scopes,\n /** Absolute URL of the server the app will use the account through. */\n resource: request.resource,\n /** Host the app receives the answer on. */\n redirectHost: request.redirectHost,\n /** After this the request can no longer be approved or denied. */\n expiresAt: request.expiresAt ?? null,\n })),\n);\n\nexport type AppConnectionRequest = v.InferOutput<typeof AppConnectionRequestSchema>;\n\n/** An app connected to the account. Times are epoch milliseconds. */\nexport const ConnectedAppSchema = v.pipe(\n v.object({\n connectedAppId: PublicIdSchema,\n client: ClientSchema,\n scopes: v.array(v.string()),\n resource: v.string(),\n connectedAt: OptionalTimestampMsSchema,\n lastUsedAt: OptionalTimestampMsSchema,\n expiresAt: OptionalTimestampMsSchema,\n }),\n v.transform((app) => ({\n /** Pass to `connectedApps.revoke`. */\n connectedAppId: app.connectedAppId,\n client: app.client,\n /** OAuth scopes the account granted the app. */\n scopes: app.scopes,\n /** Absolute URL of the server the app uses the account through. */\n resource: app.resource,\n connectedAt: app.connectedAt ?? null,\n /** Last use or refresh, at minute precision; null until the app first uses its access. */\n lastUsedAt: app.lastUsedAt ?? null,\n /** The connection ends then unless it is disconnected first. */\n expiresAt: app.expiresAt ?? null,\n })),\n);\n\nexport type ConnectedApp = v.InferOutput<typeof ConnectedAppSchema>;\n\nexport const ConnectedAppsSchema = v.array(ConnectedAppSchema);\n\n/** Where to send the browser to hand the app its answer. */\nexport const AppConnectionRequestRedirectSchema = v.object({ redirectUrl: v.string() });\n\nexport type AppConnectionRequestRedirect = v.InferOutput<typeof AppConnectionRequestRedirectSchema>;\n"],"mappings":";;;;;AAKA,MAAa,kCAAkC,EAAE,aAAa;;AAE1D,WAAW,0BACf,CAAC;AAID,MAAa,gCAAgC,EAAE,aAAa;;AAExD,gBAAgB,cAAc,gBAAgB,EAClD,CAAC;;AAKD,MAAa,2BAA2B,EAAE,OAAO;CAC7C,UAAU,EAAE,OAAO;CACnB,MAAM,EAAE,OAAO;AACnB,CAAC;AAID,MAAM,eAAe,EAAE,SAAS,0BAA0B;CAAE,UAAU;CAAI,MAAM;AAAG,CAAC;;AAGpF,MAAa,6BAA6B,EAAE,KACxC,EAAE,OAAO;CACL,QAAQ;CACR,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;CAC1B,UAAU,EAAE,OAAO;CACnB,cAAc,EAAE,OAAO;CACvB,WAAW;AACf,CAAC,GACD,EAAE,WAAW,aAAa;CACtB,QAAQ,QAAQ;;CAEhB,QAAQ,QAAQ;;CAEhB,UAAU,QAAQ;;CAElB,cAAc,QAAQ;;CAEtB,WAAW,QAAQ,aAAa;AACpC,EAAE,CACN;;AAKA,MAAa,qBAAqB,EAAE,KAChC,EAAE,OAAO;CACL,gBAAgB;CAChB,QAAQ;CACR,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;CAC1B,UAAU,EAAE,OAAO;CACnB,aAAa;CACb,YAAY;CACZ,WAAW;AACf,CAAC,GACD,EAAE,WAAW,SAAS;;CAElB,gBAAgB,IAAI;CACpB,QAAQ,IAAI;;CAEZ,QAAQ,IAAI;;CAEZ,UAAU,IAAI;CACd,aAAa,IAAI,eAAe;;CAEhC,YAAY,IAAI,cAAc;;CAE9B,WAAW,IAAI,aAAa;AAChC,EAAE,CACN;AAIA,MAAa,sBAAsB,EAAE,MAAM,kBAAkB;;AAG7D,MAAa,qCAAqC,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type {
|
|
1
|
+
import { AppConnectionRequest, AppConnectionRequestInput, AppConnectionRequestRedirect, ConnectedApp, ConnectedAppClient, RevokeConnectedAppInput } from "./connected-apps.schemas.js";
|
|
2
|
+
export type { AppConnectionRequest, AppConnectionRequestInput, AppConnectionRequestRedirect, ConnectedApp, ConnectedAppClient, RevokeConnectedAppInput };
|
|
@@ -147,7 +147,7 @@ type DustAssetPrice = v.InferOutput<typeof DustAssetPriceSchema>;
|
|
|
147
147
|
declare const DustConversionSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
148
148
|
readonly conversionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
149
149
|
readonly quoteId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
150
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "
|
|
150
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "refused" | "completed">]>;
|
|
151
151
|
readonly refusalCode: v.NumberSchema<undefined>;
|
|
152
152
|
readonly targetAssetId: v.NumberSchema<undefined>;
|
|
153
153
|
readonly sources: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -187,7 +187,7 @@ declare const DustConversionSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
187
187
|
}, undefined>, v.TransformAction<{
|
|
188
188
|
conversionId: string;
|
|
189
189
|
quoteId: string;
|
|
190
|
-
state: "unspecified" | "processing" | "
|
|
190
|
+
state: "unspecified" | "processing" | "refused" | "completed";
|
|
191
191
|
refusalCode: number;
|
|
192
192
|
targetAssetId: number;
|
|
193
193
|
sources: {
|
|
@@ -216,9 +216,9 @@ declare const DustConversionSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
216
216
|
conversionId: string;
|
|
217
217
|
/** The quote the conversion converted. */
|
|
218
218
|
quoteId: string;
|
|
219
|
-
state: "unspecified" | "processing" | "
|
|
219
|
+
state: "unspecified" | "processing" | "refused" | "completed";
|
|
220
220
|
/** Why a `refused` conversion was refused; null otherwise. */
|
|
221
|
-
refusalCode: "UNSPECIFIED" | "
|
|
221
|
+
refusalCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | "BATCH_TOO_MANY_SOURCES" | null;
|
|
222
222
|
targetAssetId: number;
|
|
223
223
|
/** Whole quoted balances moved, in asset id order. */
|
|
224
224
|
sources: {
|
|
@@ -463,7 +463,7 @@ declare const ListDustConversionsResultSchema: v.ObjectSchema<{
|
|
|
463
463
|
readonly conversions: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
464
464
|
readonly conversionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
465
465
|
readonly quoteId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
466
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "
|
|
466
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "refused" | "completed">]>;
|
|
467
467
|
readonly refusalCode: v.NumberSchema<undefined>;
|
|
468
468
|
readonly targetAssetId: v.NumberSchema<undefined>;
|
|
469
469
|
readonly sources: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -503,7 +503,7 @@ declare const ListDustConversionsResultSchema: v.ObjectSchema<{
|
|
|
503
503
|
}, undefined>, v.TransformAction<{
|
|
504
504
|
conversionId: string;
|
|
505
505
|
quoteId: string;
|
|
506
|
-
state: "unspecified" | "processing" | "
|
|
506
|
+
state: "unspecified" | "processing" | "refused" | "completed";
|
|
507
507
|
refusalCode: number;
|
|
508
508
|
targetAssetId: number;
|
|
509
509
|
sources: {
|
|
@@ -532,9 +532,9 @@ declare const ListDustConversionsResultSchema: v.ObjectSchema<{
|
|
|
532
532
|
conversionId: string;
|
|
533
533
|
/** The quote the conversion converted. */
|
|
534
534
|
quoteId: string;
|
|
535
|
-
state: "unspecified" | "processing" | "
|
|
535
|
+
state: "unspecified" | "processing" | "refused" | "completed";
|
|
536
536
|
/** Why a `refused` conversion was refused; null otherwise. */
|
|
537
|
-
refusalCode: "UNSPECIFIED" | "
|
|
537
|
+
refusalCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | "BATCH_TOO_MANY_SOURCES" | null;
|
|
538
538
|
targetAssetId: number;
|
|
539
539
|
/** Whole quoted balances moved, in asset id order. */
|
|
540
540
|
sources: {
|
|
@@ -15,7 +15,7 @@ type TimestampInit = {
|
|
|
15
15
|
declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
16
16
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
17
17
|
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1s" | "1m" | "5m" | "1h", HeatmapInterval>]>;
|
|
18
|
-
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 |
|
|
18
|
+
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 200 | 100 | 500 | 1000 | 50, DepthTier>]>;
|
|
19
19
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
|
|
20
20
|
readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
|
|
21
21
|
readonly startTsSec: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, undefined>;
|
|
@@ -228,7 +228,7 @@ type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
|
|
|
228
228
|
declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
229
229
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
230
230
|
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
231
|
-
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | "unspecified" | 5 | 10 | 20 |
|
|
231
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | "unspecified" | 5 | 10 | 20 | 200 | 100 | 500 | 1000 | 50 | 5000>]>;
|
|
232
232
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
234
234
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -288,7 +288,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
288
288
|
}, undefined>, v.TransformAction<{
|
|
289
289
|
symbolId: number;
|
|
290
290
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
291
|
-
depth: 1 | "unspecified" | 5 | 10 | 20 |
|
|
291
|
+
depth: 1 | "unspecified" | 5 | 10 | 20 | 200 | 100 | 500 | 1000 | 50 | 5000;
|
|
292
292
|
chain?: {
|
|
293
293
|
baseKeyframe?: {
|
|
294
294
|
tsSec: number;
|
|
@@ -348,7 +348,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
348
348
|
}, {
|
|
349
349
|
symbolId: number;
|
|
350
350
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
351
|
-
depth: 1 | "unspecified" | 5 | 10 | 20 |
|
|
351
|
+
depth: 1 | "unspecified" | 5 | 10 | 20 | 200 | 100 | 500 | 1000 | 50 | 5000;
|
|
352
352
|
chain: {
|
|
353
353
|
baseKeyframe: {
|
|
354
354
|
tsSec: number;
|
|
@@ -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" | "failed" | "
|
|
141
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "accepted" | "rejected">]>;
|
|
142
142
|
/** Lifecycle flow ID for `lifecycle.getAccountFlow`; 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" | "failed" | "
|
|
160
|
+
status: "unspecified" | "failed" | "accepted" | "rejected";
|
|
161
161
|
flowId: string;
|
|
162
162
|
}, {
|
|
163
163
|
acceptedAtUnixMs: number;
|
|
@@ -174,7 +174,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
|
|
|
174
174
|
subaccountId: string | undefined;
|
|
175
175
|
smartAccountAddress: string | undefined;
|
|
176
176
|
} | undefined;
|
|
177
|
-
status: "unspecified" | "failed" | "
|
|
177
|
+
status: "unspecified" | "failed" | "accepted" | "rejected";
|
|
178
178
|
flowId: string;
|
|
179
179
|
}>]>;
|
|
180
180
|
type CreateInternalTransferResult = v.InferOutput<ReturnType<typeof createCreateInternalTransferResultSchema>>;
|
|
@@ -349,7 +349,7 @@ declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v
|
|
|
349
349
|
creditedAtNs: string | undefined;
|
|
350
350
|
quantity: string | undefined;
|
|
351
351
|
/** Why the leg caused its batch's refusal; unset for every other leg. */
|
|
352
|
-
errorCode: "UNSPECIFIED" | "
|
|
352
|
+
errorCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | "BATCH_TOO_MANY_SOURCES" | undefined;
|
|
353
353
|
legIndex: number;
|
|
354
354
|
status: "unspecified" | "processing" | "credited" | "not_moved";
|
|
355
355
|
transferId?: string | undefined;
|
|
@@ -370,7 +370,7 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
|
|
|
370
370
|
* it was accepted for processing.
|
|
371
371
|
*/
|
|
372
372
|
readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
|
|
373
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "
|
|
373
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "accepted" | "refused">]>;
|
|
374
374
|
/** One result per leg, in request order. */
|
|
375
375
|
readonly legs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
376
376
|
readonly legIndex: v.NumberSchema<undefined>;
|
|
@@ -427,7 +427,7 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
|
|
|
427
427
|
creditedAtNs: string | undefined;
|
|
428
428
|
quantity: string | undefined;
|
|
429
429
|
/** Why the leg caused its batch's refusal; unset for every other leg. */
|
|
430
|
-
errorCode: "UNSPECIFIED" | "
|
|
430
|
+
errorCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | "BATCH_TOO_MANY_SOURCES" | undefined;
|
|
431
431
|
legIndex: number;
|
|
432
432
|
status: "unspecified" | "processing" | "credited" | "not_moved";
|
|
433
433
|
transferId?: string | undefined;
|