@polyester/sdk 0.36.0-devnet-20261117035807 → 0.36.0-devnet-20261118123359
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/dist/realtime/client.js +5 -1
- package/dist/realtime/client.js.map +1 -1
- package/dist/realtime/snapshot-then-stream.js +5 -3
- package/dist/realtime/snapshot-then-stream.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +82 -82
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +22 -22
- 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 +3 -3
- package/dist/services/claims/claims.schemas.d.ts +2 -2
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +11 -11
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts.map +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +12 -12
- package/dist/services/lifecycle/lifecycle.d.ts +1 -1
- package/dist/services/lifecycle/lifecycle.js +2 -3
- package/dist/services/lifecycle/lifecycle.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +54 -54
- package/dist/services/notifications/notifications.schemas.d.ts +13 -1
- package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +3 -2
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +52 -52
- package/dist/services/orders/orders-input.schemas.d.ts +6 -6
- package/dist/services/orders/orders-output.schemas.d.ts +17 -17
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +1 -27
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +7 -7
- package/dist/services/statement-exports/statement-exports.schemas.d.ts.map +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.js +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.d.ts +2 -1
- package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.js +2 -2
- package/dist/services/subaccounts/subaccounts.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-child-order.schemas.js +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +9 -9
- package/dist/services/triggers/triggers-output.schemas.d.ts +45 -45
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +24 -3
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/errors.d.ts +5 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +3 -0
- package/dist/shared/errors.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ declare const LifecycleAssetIdsSchema: v.ObjectSchema<{
|
|
|
7
7
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
8
8
|
readonly unifiedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9
9
|
}, undefined>;
|
|
10
|
-
declare const LifecycleFlowStateEnumSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
10
|
+
declare const LifecycleFlowStateEnumSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "completed" | "failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded">]>;
|
|
11
11
|
declare const LifecycleZipperReasonSchema: v.ObjectSchema<{
|
|
12
12
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
13
13
|
readonly reasonId: v.StringSchema<undefined>;
|
|
@@ -28,7 +28,7 @@ declare const ListLifecycleFlowsInputSchema: v.SchemaWithPipe<readonly [v.Strict
|
|
|
28
28
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 500, undefined>]>, 100>;
|
|
29
29
|
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["newest", "oldest"], undefined>, "newest">, v.TransformAction<"newest" | "oldest", Sort.NEWEST | Sort.OLDEST>]>;
|
|
30
30
|
readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
|
|
31
|
-
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"
|
|
31
|
+
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"completed" | "failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded" | undefined, FlowState>]>;
|
|
32
32
|
readonly txRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "txHash is required.">, v.CheckAction<string, "txHash must be a valid EVM hash or chain-native transaction id.">, v.TransformAction<string, string>]>, undefined>;
|
|
33
33
|
readonly scope: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["all", "open", "terminal"], undefined>, "all">, v.TransformAction<"open" | "all" | "terminal", ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY>]>;
|
|
34
34
|
readonly polyesterChainIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
@@ -97,7 +97,7 @@ declare const ListLifecycleAccountFlowsInputSchema: v.SchemaWithPipe<readonly [v
|
|
|
97
97
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 500, undefined>]>, 100>;
|
|
98
98
|
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["newest", "oldest"], undefined>, "newest">, v.TransformAction<"newest" | "oldest", Sort.NEWEST | Sort.OLDEST>]>;
|
|
99
99
|
readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
|
|
100
|
-
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"
|
|
100
|
+
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"completed" | "failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded" | undefined, FlowState>]>;
|
|
101
101
|
readonly txRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "txHash is required.">, v.CheckAction<string, "txHash must be a valid EVM hash or chain-native transaction id.">, v.TransformAction<string, string>]>, undefined>;
|
|
102
102
|
readonly scope: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["all", "open", "terminal"], undefined>, "all">, v.TransformAction<"open" | "all" | "terminal", ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY>]>;
|
|
103
103
|
readonly polyesterChainIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
@@ -205,7 +205,7 @@ declare const LifecycleFlowStepActivitySchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
205
205
|
/** Chain holding `txRef`; a `GetDepositWithdrawConfig` chain ID, 0 when `txRef` is not a chain transaction. */
|
|
206
206
|
readonly txChainId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;
|
|
207
207
|
readonly occurredAtUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
208
|
-
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
208
|
+
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
209
209
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
210
210
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
211
211
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -233,7 +233,7 @@ declare const LifecycleFlowStepActivitySchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
233
233
|
txRef: string;
|
|
234
234
|
txChainId: number;
|
|
235
235
|
occurredAtUnixMs: number;
|
|
236
|
-
lifecycleSource: "unspecified" | "
|
|
236
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
237
237
|
lifecycleReason: LifecycleReasonValue;
|
|
238
238
|
zipperReason?: {
|
|
239
239
|
code: ZipperReasonCodeValue;
|
|
@@ -255,7 +255,7 @@ declare const LifecycleFlowStepActivitySchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
255
255
|
txRef: string;
|
|
256
256
|
txChainId: number;
|
|
257
257
|
occurredAtUnixMs: number;
|
|
258
|
-
lifecycleSource: "unspecified" | "
|
|
258
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
259
259
|
lifecycleReason: LifecycleReasonValue;
|
|
260
260
|
zipperReason?: {
|
|
261
261
|
code: ZipperReasonCodeValue;
|
|
@@ -326,7 +326,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
326
326
|
readonly milestoneTxRef: v.StringSchema<undefined>;
|
|
327
327
|
/** Chain holding `milestoneTxRef`; a `GetDepositWithdrawConfig` chain ID, 0 when it is not a chain transaction. */
|
|
328
328
|
readonly milestoneTxChainId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;
|
|
329
|
-
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
329
|
+
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
330
330
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
331
331
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
332
332
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -348,7 +348,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
348
348
|
/** Chain holding `txRef`; a `GetDepositWithdrawConfig` chain ID, 0 when `txRef` is not a chain transaction. */
|
|
349
349
|
readonly txChainId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;
|
|
350
350
|
readonly occurredAtUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
351
|
-
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
351
|
+
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
352
352
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
353
353
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
354
354
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -376,7 +376,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
376
376
|
txRef: string;
|
|
377
377
|
txChainId: number;
|
|
378
378
|
occurredAtUnixMs: number;
|
|
379
|
-
lifecycleSource: "unspecified" | "
|
|
379
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
380
380
|
lifecycleReason: LifecycleReasonValue;
|
|
381
381
|
zipperReason?: {
|
|
382
382
|
code: ZipperReasonCodeValue;
|
|
@@ -398,7 +398,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
398
398
|
txRef: string;
|
|
399
399
|
txChainId: number;
|
|
400
400
|
occurredAtUnixMs: number;
|
|
401
|
-
lifecycleSource: "unspecified" | "
|
|
401
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
402
402
|
lifecycleReason: LifecycleReasonValue;
|
|
403
403
|
zipperReason?: {
|
|
404
404
|
code: ZipperReasonCodeValue;
|
|
@@ -446,7 +446,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
446
446
|
}) | undefined;
|
|
447
447
|
milestoneTxRef: string;
|
|
448
448
|
milestoneTxChainId: number;
|
|
449
|
-
lifecycleSource: "unspecified" | "
|
|
449
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
450
450
|
lifecycleReason: LifecycleReasonValue;
|
|
451
451
|
zipperReason?: {
|
|
452
452
|
code: ZipperReasonCodeValue;
|
|
@@ -467,7 +467,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
467
467
|
txRef: string;
|
|
468
468
|
txChainId: number;
|
|
469
469
|
occurredAtUnixMs: number;
|
|
470
|
-
lifecycleSource: "unspecified" | "
|
|
470
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
471
471
|
lifecycleReason: LifecycleReasonValue;
|
|
472
472
|
zipperReason?: {
|
|
473
473
|
code: ZipperReasonCodeValue;
|
|
@@ -510,7 +510,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
510
510
|
}) | undefined;
|
|
511
511
|
milestoneTxRef: string;
|
|
512
512
|
milestoneTxChainId: number;
|
|
513
|
-
lifecycleSource: "unspecified" | "
|
|
513
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
514
514
|
lifecycleReason: LifecycleReasonValue;
|
|
515
515
|
zipperReason?: {
|
|
516
516
|
code: ZipperReasonCodeValue;
|
|
@@ -531,7 +531,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
531
531
|
txRef: string;
|
|
532
532
|
txChainId: number;
|
|
533
533
|
occurredAtUnixMs: number;
|
|
534
|
-
lifecycleSource: "unspecified" | "
|
|
534
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
535
535
|
lifecycleReason: LifecycleReasonValue;
|
|
536
536
|
zipperReason?: {
|
|
537
537
|
code: ZipperReasonCodeValue;
|
|
@@ -629,7 +629,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
629
629
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
630
630
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
631
631
|
readonly latestTxRef: v.StringSchema<undefined>;
|
|
632
|
-
readonly latestLifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
632
|
+
readonly latestLifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
633
633
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
634
634
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
635
635
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -669,7 +669,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
669
669
|
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
670
670
|
* `accountSelector`.
|
|
671
671
|
*/
|
|
672
|
-
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
672
|
+
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "unspecified" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
673
673
|
}, undefined>, v.TransformAction<{
|
|
674
674
|
smartAccountAddress: string;
|
|
675
675
|
flowId: string;
|
|
@@ -699,7 +699,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
699
699
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
700
700
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
701
701
|
latestTxRef: string;
|
|
702
|
-
latestLifecycleSource: "unspecified" | "
|
|
702
|
+
latestLifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
703
703
|
lifecycleReason: LifecycleReasonValue;
|
|
704
704
|
zipperReason?: {
|
|
705
705
|
code: ZipperReasonCodeValue;
|
|
@@ -732,7 +732,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
732
732
|
}[];
|
|
733
733
|
estimatedCompletionUnixMs: number;
|
|
734
734
|
isDelayed: boolean;
|
|
735
|
-
participation: "
|
|
735
|
+
participation: "owner" | "unspecified" | "recipient";
|
|
736
736
|
}, Omit<{
|
|
737
737
|
smartAccountAddress: string;
|
|
738
738
|
flowId: string;
|
|
@@ -762,7 +762,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
762
762
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
763
763
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
764
764
|
latestTxRef: string;
|
|
765
|
-
latestLifecycleSource: "unspecified" | "
|
|
765
|
+
latestLifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
766
766
|
lifecycleReason: LifecycleReasonValue;
|
|
767
767
|
zipperReason?: {
|
|
768
768
|
code: ZipperReasonCodeValue;
|
|
@@ -795,7 +795,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
795
795
|
}[];
|
|
796
796
|
estimatedCompletionUnixMs: number;
|
|
797
797
|
isDelayed: boolean;
|
|
798
|
-
participation: "
|
|
798
|
+
participation: "owner" | "unspecified" | "recipient";
|
|
799
799
|
}, "amountE18"> & {
|
|
800
800
|
amount?: string;
|
|
801
801
|
}>]>;
|
|
@@ -857,7 +857,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
857
857
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
858
858
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
859
859
|
readonly latestTxRef: v.StringSchema<undefined>;
|
|
860
|
-
readonly latestLifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
860
|
+
readonly latestLifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
861
861
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
862
862
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
863
863
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -897,7 +897,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
897
897
|
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
898
898
|
* `accountSelector`.
|
|
899
899
|
*/
|
|
900
|
-
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
900
|
+
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "unspecified" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
901
901
|
}, undefined>, v.TransformAction<{
|
|
902
902
|
smartAccountAddress: string;
|
|
903
903
|
flowId: string;
|
|
@@ -927,7 +927,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
927
927
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
928
928
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
929
929
|
latestTxRef: string;
|
|
930
|
-
latestLifecycleSource: "unspecified" | "
|
|
930
|
+
latestLifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
931
931
|
lifecycleReason: LifecycleReasonValue;
|
|
932
932
|
zipperReason?: {
|
|
933
933
|
code: ZipperReasonCodeValue;
|
|
@@ -960,7 +960,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
960
960
|
}[];
|
|
961
961
|
estimatedCompletionUnixMs: number;
|
|
962
962
|
isDelayed: boolean;
|
|
963
|
-
participation: "
|
|
963
|
+
participation: "owner" | "unspecified" | "recipient";
|
|
964
964
|
}, Omit<{
|
|
965
965
|
smartAccountAddress: string;
|
|
966
966
|
flowId: string;
|
|
@@ -990,7 +990,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
990
990
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
991
991
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
992
992
|
latestTxRef: string;
|
|
993
|
-
latestLifecycleSource: "unspecified" | "
|
|
993
|
+
latestLifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
994
994
|
lifecycleReason: LifecycleReasonValue;
|
|
995
995
|
zipperReason?: {
|
|
996
996
|
code: ZipperReasonCodeValue;
|
|
@@ -1023,7 +1023,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1023
1023
|
}[];
|
|
1024
1024
|
estimatedCompletionUnixMs: number;
|
|
1025
1025
|
isDelayed: boolean;
|
|
1026
|
-
participation: "
|
|
1026
|
+
participation: "owner" | "unspecified" | "recipient";
|
|
1027
1027
|
}, "amountE18"> & {
|
|
1028
1028
|
amount?: string;
|
|
1029
1029
|
}>]>, undefined>;
|
|
@@ -1078,7 +1078,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1078
1078
|
readonly milestoneTxRef: v.StringSchema<undefined>;
|
|
1079
1079
|
/** Chain holding `milestoneTxRef`; a `GetDepositWithdrawConfig` chain ID, 0 when it is not a chain transaction. */
|
|
1080
1080
|
readonly milestoneTxChainId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;
|
|
1081
|
-
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
1081
|
+
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
1082
1082
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
1083
1083
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
1084
1084
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -1100,7 +1100,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1100
1100
|
/** Chain holding `txRef`; a `GetDepositWithdrawConfig` chain ID, 0 when `txRef` is not a chain transaction. */
|
|
1101
1101
|
readonly txChainId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;
|
|
1102
1102
|
readonly occurredAtUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1103
|
-
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
1103
|
+
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
1104
1104
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
1105
1105
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
1106
1106
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -1128,7 +1128,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1128
1128
|
txRef: string;
|
|
1129
1129
|
txChainId: number;
|
|
1130
1130
|
occurredAtUnixMs: number;
|
|
1131
|
-
lifecycleSource: "unspecified" | "
|
|
1131
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1132
1132
|
lifecycleReason: LifecycleReasonValue;
|
|
1133
1133
|
zipperReason?: {
|
|
1134
1134
|
code: ZipperReasonCodeValue;
|
|
@@ -1150,7 +1150,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1150
1150
|
txRef: string;
|
|
1151
1151
|
txChainId: number;
|
|
1152
1152
|
occurredAtUnixMs: number;
|
|
1153
|
-
lifecycleSource: "unspecified" | "
|
|
1153
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1154
1154
|
lifecycleReason: LifecycleReasonValue;
|
|
1155
1155
|
zipperReason?: {
|
|
1156
1156
|
code: ZipperReasonCodeValue;
|
|
@@ -1198,7 +1198,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1198
1198
|
}) | undefined;
|
|
1199
1199
|
milestoneTxRef: string;
|
|
1200
1200
|
milestoneTxChainId: number;
|
|
1201
|
-
lifecycleSource: "unspecified" | "
|
|
1201
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1202
1202
|
lifecycleReason: LifecycleReasonValue;
|
|
1203
1203
|
zipperReason?: {
|
|
1204
1204
|
code: ZipperReasonCodeValue;
|
|
@@ -1219,7 +1219,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1219
1219
|
txRef: string;
|
|
1220
1220
|
txChainId: number;
|
|
1221
1221
|
occurredAtUnixMs: number;
|
|
1222
|
-
lifecycleSource: "unspecified" | "
|
|
1222
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1223
1223
|
lifecycleReason: LifecycleReasonValue;
|
|
1224
1224
|
zipperReason?: {
|
|
1225
1225
|
code: ZipperReasonCodeValue;
|
|
@@ -1262,7 +1262,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1262
1262
|
}) | undefined;
|
|
1263
1263
|
milestoneTxRef: string;
|
|
1264
1264
|
milestoneTxChainId: number;
|
|
1265
|
-
lifecycleSource: "unspecified" | "
|
|
1265
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1266
1266
|
lifecycleReason: LifecycleReasonValue;
|
|
1267
1267
|
zipperReason?: {
|
|
1268
1268
|
code: ZipperReasonCodeValue;
|
|
@@ -1283,7 +1283,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1283
1283
|
txRef: string;
|
|
1284
1284
|
txChainId: number;
|
|
1285
1285
|
occurredAtUnixMs: number;
|
|
1286
|
-
lifecycleSource: "unspecified" | "
|
|
1286
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1287
1287
|
lifecycleReason: LifecycleReasonValue;
|
|
1288
1288
|
zipperReason?: {
|
|
1289
1289
|
code: ZipperReasonCodeValue;
|
|
@@ -1367,7 +1367,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1367
1367
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
1368
1368
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
1369
1369
|
readonly latestTxRef: v.StringSchema<undefined>;
|
|
1370
|
-
readonly latestLifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
1370
|
+
readonly latestLifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
1371
1371
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
1372
1372
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
1373
1373
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -1407,7 +1407,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1407
1407
|
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
1408
1408
|
* `accountSelector`.
|
|
1409
1409
|
*/
|
|
1410
|
-
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
1410
|
+
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "unspecified" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
1411
1411
|
}, undefined>, v.TransformAction<{
|
|
1412
1412
|
smartAccountAddress: string;
|
|
1413
1413
|
flowId: string;
|
|
@@ -1437,7 +1437,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1437
1437
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
1438
1438
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
1439
1439
|
latestTxRef: string;
|
|
1440
|
-
latestLifecycleSource: "unspecified" | "
|
|
1440
|
+
latestLifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1441
1441
|
lifecycleReason: LifecycleReasonValue;
|
|
1442
1442
|
zipperReason?: {
|
|
1443
1443
|
code: ZipperReasonCodeValue;
|
|
@@ -1470,7 +1470,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1470
1470
|
}[];
|
|
1471
1471
|
estimatedCompletionUnixMs: number;
|
|
1472
1472
|
isDelayed: boolean;
|
|
1473
|
-
participation: "
|
|
1473
|
+
participation: "owner" | "unspecified" | "recipient";
|
|
1474
1474
|
}, Omit<{
|
|
1475
1475
|
smartAccountAddress: string;
|
|
1476
1476
|
flowId: string;
|
|
@@ -1500,7 +1500,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1500
1500
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
1501
1501
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
1502
1502
|
latestTxRef: string;
|
|
1503
|
-
latestLifecycleSource: "unspecified" | "
|
|
1503
|
+
latestLifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1504
1504
|
lifecycleReason: LifecycleReasonValue;
|
|
1505
1505
|
zipperReason?: {
|
|
1506
1506
|
code: ZipperReasonCodeValue;
|
|
@@ -1533,7 +1533,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1533
1533
|
}[];
|
|
1534
1534
|
estimatedCompletionUnixMs: number;
|
|
1535
1535
|
isDelayed: boolean;
|
|
1536
|
-
participation: "
|
|
1536
|
+
participation: "owner" | "unspecified" | "recipient";
|
|
1537
1537
|
}, "amountE18"> & {
|
|
1538
1538
|
amount?: string;
|
|
1539
1539
|
}>]>, undefined>, readonly []>;
|
|
@@ -1598,7 +1598,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1598
1598
|
readonly sourceDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
1599
1599
|
readonly destinationDomain: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending">]>;
|
|
1600
1600
|
readonly latestTxRef: v.StringSchema<undefined>;
|
|
1601
|
-
readonly latestLifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
1601
|
+
readonly latestLifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
1602
1602
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
1603
1603
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
1604
1604
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -1638,7 +1638,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1638
1638
|
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
1639
1639
|
* `accountSelector`.
|
|
1640
1640
|
*/
|
|
1641
|
-
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "
|
|
1641
|
+
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "unspecified" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
1642
1642
|
}, undefined>, v.TransformAction<{
|
|
1643
1643
|
smartAccountAddress: string;
|
|
1644
1644
|
flowId: string;
|
|
@@ -1668,7 +1668,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1668
1668
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
1669
1669
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
1670
1670
|
latestTxRef: string;
|
|
1671
|
-
latestLifecycleSource: "unspecified" | "
|
|
1671
|
+
latestLifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1672
1672
|
lifecycleReason: LifecycleReasonValue;
|
|
1673
1673
|
zipperReason?: {
|
|
1674
1674
|
code: ZipperReasonCodeValue;
|
|
@@ -1701,7 +1701,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1701
1701
|
}[];
|
|
1702
1702
|
estimatedCompletionUnixMs: number;
|
|
1703
1703
|
isDelayed: boolean;
|
|
1704
|
-
participation: "
|
|
1704
|
+
participation: "owner" | "unspecified" | "recipient";
|
|
1705
1705
|
}, Omit<{
|
|
1706
1706
|
smartAccountAddress: string;
|
|
1707
1707
|
flowId: string;
|
|
@@ -1731,7 +1731,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1731
1731
|
sourceDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
1732
1732
|
destinationDomain: "unspecified" | "trading" | "funding" | "external_chain" | "zipper" | "lending";
|
|
1733
1733
|
latestTxRef: string;
|
|
1734
|
-
latestLifecycleSource: "unspecified" | "
|
|
1734
|
+
latestLifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1735
1735
|
lifecycleReason: LifecycleReasonValue;
|
|
1736
1736
|
zipperReason?: {
|
|
1737
1737
|
code: ZipperReasonCodeValue;
|
|
@@ -1764,7 +1764,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1764
1764
|
}[];
|
|
1765
1765
|
estimatedCompletionUnixMs: number;
|
|
1766
1766
|
isDelayed: boolean;
|
|
1767
|
-
participation: "
|
|
1767
|
+
participation: "owner" | "unspecified" | "recipient";
|
|
1768
1768
|
}, "amountE18"> & {
|
|
1769
1769
|
amount?: string;
|
|
1770
1770
|
}>]>, undefined>;
|
|
@@ -1819,7 +1819,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1819
1819
|
readonly milestoneTxRef: v.StringSchema<undefined>;
|
|
1820
1820
|
/** Chain holding `milestoneTxRef`; a `GetDepositWithdrawConfig` chain ID, 0 when it is not a chain transaction. */
|
|
1821
1821
|
readonly milestoneTxChainId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;
|
|
1822
|
-
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
1822
|
+
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
1823
1823
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
1824
1824
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
1825
1825
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -1841,7 +1841,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1841
1841
|
/** Chain holding `txRef`; a `GetDepositWithdrawConfig` chain ID, 0 when `txRef` is not a chain transaction. */
|
|
1842
1842
|
readonly txChainId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;
|
|
1843
1843
|
readonly occurredAtUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
1844
|
-
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
1844
|
+
readonly lifecycleSource: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle">]>;
|
|
1845
1845
|
readonly lifecycleReason: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, LifecycleReasonValue>]>;
|
|
1846
1846
|
readonly zipperReason: v.OptionalSchema<v.ObjectSchema<{
|
|
1847
1847
|
readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.TransformAction<number, ZipperReasonCodeValue>]>;
|
|
@@ -1869,7 +1869,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1869
1869
|
txRef: string;
|
|
1870
1870
|
txChainId: number;
|
|
1871
1871
|
occurredAtUnixMs: number;
|
|
1872
|
-
lifecycleSource: "unspecified" | "
|
|
1872
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1873
1873
|
lifecycleReason: LifecycleReasonValue;
|
|
1874
1874
|
zipperReason?: {
|
|
1875
1875
|
code: ZipperReasonCodeValue;
|
|
@@ -1891,7 +1891,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1891
1891
|
txRef: string;
|
|
1892
1892
|
txChainId: number;
|
|
1893
1893
|
occurredAtUnixMs: number;
|
|
1894
|
-
lifecycleSource: "unspecified" | "
|
|
1894
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1895
1895
|
lifecycleReason: LifecycleReasonValue;
|
|
1896
1896
|
zipperReason?: {
|
|
1897
1897
|
code: ZipperReasonCodeValue;
|
|
@@ -1939,7 +1939,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1939
1939
|
}) | undefined;
|
|
1940
1940
|
milestoneTxRef: string;
|
|
1941
1941
|
milestoneTxChainId: number;
|
|
1942
|
-
lifecycleSource: "unspecified" | "
|
|
1942
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1943
1943
|
lifecycleReason: LifecycleReasonValue;
|
|
1944
1944
|
zipperReason?: {
|
|
1945
1945
|
code: ZipperReasonCodeValue;
|
|
@@ -1960,7 +1960,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1960
1960
|
txRef: string;
|
|
1961
1961
|
txChainId: number;
|
|
1962
1962
|
occurredAtUnixMs: number;
|
|
1963
|
-
lifecycleSource: "unspecified" | "
|
|
1963
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
1964
1964
|
lifecycleReason: LifecycleReasonValue;
|
|
1965
1965
|
zipperReason?: {
|
|
1966
1966
|
code: ZipperReasonCodeValue;
|
|
@@ -2003,7 +2003,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
2003
2003
|
}) | undefined;
|
|
2004
2004
|
milestoneTxRef: string;
|
|
2005
2005
|
milestoneTxChainId: number;
|
|
2006
|
-
lifecycleSource: "unspecified" | "
|
|
2006
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
2007
2007
|
lifecycleReason: LifecycleReasonValue;
|
|
2008
2008
|
zipperReason?: {
|
|
2009
2009
|
code: ZipperReasonCodeValue;
|
|
@@ -2024,7 +2024,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
2024
2024
|
txRef: string;
|
|
2025
2025
|
txChainId: number;
|
|
2026
2026
|
occurredAtUnixMs: number;
|
|
2027
|
-
lifecycleSource: "unspecified" | "
|
|
2027
|
+
lifecycleSource: "unspecified" | "ledger" | "relayer" | "polyester_chain" | "executor" | "lifecycle";
|
|
2028
2028
|
lifecycleReason: LifecycleReasonValue;
|
|
2029
2029
|
zipperReason?: {
|
|
2030
2030
|
code: ZipperReasonCodeValue;
|
|
@@ -77,10 +77,13 @@ declare function formatNotification(notification: Notification): {
|
|
|
77
77
|
/** Price that fired the alert, as a decimal string. */
|
|
78
78
|
triggeredPrice: string;
|
|
79
79
|
triggeredAt: number | null;
|
|
80
|
+
/** The approval's ID in `client.assistant`. */
|
|
80
81
|
approvalId?: undefined;
|
|
81
82
|
action?: undefined;
|
|
83
|
+
/** Trading account (subaccount) the action acted on. */
|
|
82
84
|
accountId?: undefined;
|
|
83
85
|
summary?: undefined;
|
|
86
|
+
/** Key parameters in display order, such as market, side and quantity. */
|
|
84
87
|
parameters?: undefined;
|
|
85
88
|
approvedAt?: undefined;
|
|
86
89
|
broker?: undefined;
|
|
@@ -104,7 +107,7 @@ declare function formatNotification(notification: Notification): {
|
|
|
104
107
|
type: "telegram_approval";
|
|
105
108
|
/** The approval's ID in `client.assistant`. */
|
|
106
109
|
approvalId: string;
|
|
107
|
-
action: "unspecified" | "
|
|
110
|
+
action: "unspecified" | "place_order" | "place_orders" | "modify_orders" | "cancel_order" | "cancel_all_orders" | "modify_trigger" | "pause_trigger" | "resume_trigger" | "swap";
|
|
108
111
|
/** Trading account (subaccount) the action acted on. */
|
|
109
112
|
accountId: string;
|
|
110
113
|
summary: string;
|
|
@@ -119,6 +122,7 @@ declare function formatNotification(notification: Notification): {
|
|
|
119
122
|
symbolId?: undefined;
|
|
120
123
|
direction?: undefined;
|
|
121
124
|
priceSource?: undefined;
|
|
125
|
+
/** Alert price, as a decimal string. */
|
|
122
126
|
price?: undefined;
|
|
123
127
|
/** Price that fired the alert, as a decimal string. */
|
|
124
128
|
triggeredPrice?: undefined;
|
|
@@ -165,13 +169,17 @@ declare function formatNotification(notification: Notification): {
|
|
|
165
169
|
symbolId?: undefined;
|
|
166
170
|
direction?: undefined;
|
|
167
171
|
priceSource?: undefined;
|
|
172
|
+
/** Alert price, as a decimal string. */
|
|
168
173
|
price?: undefined;
|
|
169
174
|
/** Price that fired the alert, as a decimal string. */
|
|
170
175
|
triggeredPrice?: undefined;
|
|
171
176
|
triggeredAt?: undefined;
|
|
177
|
+
/** The approval's ID in `client.assistant`. */
|
|
172
178
|
approvalId?: undefined;
|
|
179
|
+
/** Trading account (subaccount) the action acted on. */
|
|
173
180
|
accountId?: undefined;
|
|
174
181
|
summary?: undefined;
|
|
182
|
+
/** Key parameters in display order, such as market, side and quantity. */
|
|
175
183
|
parameters?: undefined;
|
|
176
184
|
approvedAt?: undefined;
|
|
177
185
|
} | {
|
|
@@ -181,14 +189,18 @@ declare function formatNotification(notification: Notification): {
|
|
|
181
189
|
symbolId?: undefined;
|
|
182
190
|
direction?: undefined;
|
|
183
191
|
priceSource?: undefined;
|
|
192
|
+
/** Alert price, as a decimal string. */
|
|
184
193
|
price?: undefined;
|
|
185
194
|
/** Price that fired the alert, as a decimal string. */
|
|
186
195
|
triggeredPrice?: undefined;
|
|
187
196
|
triggeredAt?: undefined;
|
|
197
|
+
/** The approval's ID in `client.assistant`. */
|
|
188
198
|
approvalId?: undefined;
|
|
189
199
|
action?: undefined;
|
|
200
|
+
/** Trading account (subaccount) the action acted on. */
|
|
190
201
|
accountId?: undefined;
|
|
191
202
|
summary?: undefined;
|
|
203
|
+
/** Key parameters in display order, such as market, side and quantity. */
|
|
192
204
|
parameters?: undefined;
|
|
193
205
|
approvedAt?: undefined;
|
|
194
206
|
broker?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.schemas.d.ts","names":[],"sources":["../../../src/services/notifications/notifications.schemas.ts"],"mappings":";;;cA2Ca,8BAA4B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2B7B,yBAAyB,EAAE,kBAAkB;cAE5C,4BAA0B,EAAA;;;KAI3B,uBAAuB,EAAE,kBAAkB;cAE1C,8BAA4B,EAAA;;;;KAU7B,yBAAyB,EAAE,kBAAkB;cAE5C,qCAAmC,EAAA;;;;;;;;KASpC,gCAAgC,EAAE,kBACnC;iBA4EK,mBAAmB,cAAc
|
|
1
|
+
{"version":3,"file":"notifications.schemas.d.ts","names":[],"sources":["../../../src/services/notifications/notifications.schemas.ts"],"mappings":";;;cA2Ca,8BAA4B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2B7B,yBAAyB,EAAE,kBAAkB;cAE5C,4BAA0B,EAAA;;;KAI3B,uBAAuB,EAAE,kBAAkB;cAE1C,8BAA4B,EAAA;;;;KAU7B,yBAAyB,EAAE,kBAAkB;cAE5C,qCAAmC,EAAA;;;;;;;;KASpC,gCAAgC,EAAE,kBACnC;iBA4EK,mBAAmB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoBrC,sBAAsB,kBAAkB;KAExC,4BAA4B;;KAG5B;EACR,eAAe;EACf;;iBAGY,yBAAyB,QAAQ;;;;;;;;;;;;KAerC,qBAAqB,kBAAkB"}
|
|
@@ -188,8 +188,9 @@ var OrderbookService = class {
|
|
|
188
188
|
maxBufferedPublications: 200,
|
|
189
189
|
snapshotErrorLog: "Failed to fetch orderbook",
|
|
190
190
|
snapshotRetry: {
|
|
191
|
-
maxAttempts:
|
|
192
|
-
delayMs: 1e3
|
|
191
|
+
maxAttempts: Number.POSITIVE_INFINITY,
|
|
192
|
+
delayMs: 1e3,
|
|
193
|
+
maxDelayMs: 8e3
|
|
193
194
|
},
|
|
194
195
|
fetchSnapshot: inputServiceFetch,
|
|
195
196
|
readPublication: (delta) => [delta],
|