@polyester/sdk 0.36.0-devnet-20261116150503 → 0.36.0-devnet-20261116180931

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/dist/realtime/client.js +1 -1
  3. package/dist/realtime/client.js.map +1 -1
  4. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  5. package/dist/services/assistant/assistant-events.schemas.d.ts +32 -32
  6. package/dist/services/assistant/assistant.schemas.d.ts +1 -1
  7. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
  8. package/dist/services/candles/candles.schemas.d.ts +10 -10
  9. package/dist/services/changelog/changelog.schemas.d.ts +38 -38
  10. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  11. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
  12. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  13. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +11 -11
  14. package/dist/services/lifecycle/lifecycle.schemas.d.ts +68 -68
  15. package/dist/services/orderbook/orderbook.d.ts +1 -1
  16. package/dist/services/orderbook/orderbook.js +7 -7
  17. package/dist/services/orderbook/orderbook.js.map +1 -1
  18. package/dist/services/orders/order-errors.schemas.d.ts +3 -3
  19. package/dist/services/orders/orders-batch.schemas.d.ts +79 -79
  20. package/dist/services/orders/orders-input.schemas.d.ts +9 -9
  21. package/dist/services/orders/orders-output.schemas.d.ts +14 -14
  22. package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
  23. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  24. package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
  25. package/dist/services/system/system.schemas.d.ts +13 -13
  26. package/dist/services/trades/trades.schemas.d.ts +1 -1
  27. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  28. package/dist/services/triggers/triggers-output.schemas.d.ts +45 -45
  29. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  30. package/package.json +1 -1
@@ -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" | "accepted" | "rejected" | "failed">]>;
141
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "rejected" | "accepted">]>;
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" | "accepted" | "rejected" | "failed";
160
+ status: "unspecified" | "failed" | "rejected" | "accepted";
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" | "accepted" | "rejected" | "failed";
177
+ status: "unspecified" | "failed" | "rejected" | "accepted";
178
178
  flowId: string;
179
179
  }>]>;
180
180
  type CreateInternalTransferResult = v.InferOutput<ReturnType<typeof createCreateInternalTransferResultSchema>>;
@@ -294,7 +294,7 @@ type BatchCreateInternalTransfersInput = v.InferInput<ReturnType<typeof createBa
294
294
  type InternalTransferBatchLegInput = BatchCreateInternalTransfersInput["legs"][number];
295
295
  declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
296
296
  readonly legIndex: v.NumberSchema<undefined>;
297
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "accepted" | "refused" | "pending" | "not_submitted">]>;
297
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "pending" | "accepted" | "refused" | "not_submitted">]>;
298
298
  readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
299
299
  readonly transferId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
300
300
  readonly flowId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
@@ -322,7 +322,7 @@ declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v
322
322
  readonly errorMessage: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
323
323
  }, undefined>, v.TransformAction<{
324
324
  legIndex: number;
325
- status: "unspecified" | "accepted" | "refused" | "pending" | "not_submitted";
325
+ status: "unspecified" | "pending" | "accepted" | "refused" | "not_submitted";
326
326
  requestId?: string | undefined;
327
327
  transferId?: string | undefined;
328
328
  flowId?: string | undefined;
@@ -345,9 +345,9 @@ declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v
345
345
  acceptedAtNs: string | undefined;
346
346
  quantity: string | undefined;
347
347
  /** Why the leg was refused, or why its outcome is not known yet; unset otherwise. */
348
- errorCode: "UNSPECIFIED" | "INSUFFICIENT_FUNDS" | "INVALID_REQUEST" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "RATE_LIMIT_EXCEEDED" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "INVALID_SUBACCOUNT_ID" | "SUBACCOUNT_NOT_FOUND" | "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" | "FAILED_PRECONDITION" | "NOT_FOUND" | "CONFLICT" | "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" | undefined;
348
+ 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" | undefined;
349
349
  legIndex: number;
350
- status: "unspecified" | "accepted" | "refused" | "pending" | "not_submitted";
350
+ status: "unspecified" | "pending" | "accepted" | "refused" | "not_submitted";
351
351
  requestId?: string | undefined;
352
352
  transferId?: string | undefined;
353
353
  flowId?: string | undefined;
@@ -368,7 +368,7 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
368
368
  /** One result per leg, in request order. */
369
369
  readonly legs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
370
370
  readonly legIndex: v.NumberSchema<undefined>;
371
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "accepted" | "refused" | "pending" | "not_submitted">]>;
371
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "pending" | "accepted" | "refused" | "not_submitted">]>;
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
373
  readonly transferId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
374
374
  readonly flowId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
@@ -396,7 +396,7 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
396
396
  readonly errorMessage: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
397
397
  }, undefined>, v.TransformAction<{
398
398
  legIndex: number;
399
- status: "unspecified" | "accepted" | "refused" | "pending" | "not_submitted";
399
+ status: "unspecified" | "pending" | "accepted" | "refused" | "not_submitted";
400
400
  requestId?: string | undefined;
401
401
  transferId?: string | undefined;
402
402
  flowId?: string | undefined;
@@ -419,9 +419,9 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
419
419
  acceptedAtNs: string | undefined;
420
420
  quantity: string | undefined;
421
421
  /** Why the leg was refused, or why its outcome is not known yet; unset otherwise. */
422
- errorCode: "UNSPECIFIED" | "INSUFFICIENT_FUNDS" | "INVALID_REQUEST" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "RATE_LIMIT_EXCEEDED" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "INVALID_SUBACCOUNT_ID" | "SUBACCOUNT_NOT_FOUND" | "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" | "FAILED_PRECONDITION" | "NOT_FOUND" | "CONFLICT" | "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" | undefined;
422
+ 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" | undefined;
423
423
  legIndex: number;
424
- status: "unspecified" | "accepted" | "refused" | "pending" | "not_submitted";
424
+ status: "unspecified" | "pending" | "accepted" | "refused" | "not_submitted";
425
425
  requestId?: string | undefined;
426
426
  transferId?: string | undefined;
427
427
  flowId?: string | undefined;