@polyester/sdk 0.35.0-devnet-20261111031027 → 0.35.0-devnet-20261111140253

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 (184) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/dist/catalogs/snapshot-validation.js +2 -1
  3. package/dist/catalogs/snapshot-validation.js.map +1 -1
  4. package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
  5. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
  6. package/dist/gen/ai/v1/assistant_pb.js +1174 -0
  7. package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
  8. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
  9. package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
  10. package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
  11. package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
  12. package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
  13. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  14. package/dist/gen/auth/v1/address_book_pb.js +6 -0
  15. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  16. package/dist/gen/auth/v1/api_keys_pb.d.ts +242 -2
  17. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  18. package/dist/gen/auth/v1/api_keys_pb.js +81 -2
  19. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  20. package/dist/gen/auth/v1/auth_pb.d.ts +48 -6
  21. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  22. package/dist/gen/auth/v1/auth_pb.js +48 -6
  23. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  24. package/dist/gen/auth/v1/policies_pb.d.ts +83 -19
  25. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  26. package/dist/gen/auth/v1/policies_pb.js +74 -16
  27. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  28. package/dist/gen/auth/v1/social_verification_pb.d.ts +167 -11
  29. package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/social_verification_pb.js +41 -3
  31. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/subaccounts_pb.d.ts +17 -6
  33. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  34. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  35. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
  36. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
  37. package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
  38. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
  39. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
  40. package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
  41. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
  42. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  43. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
  44. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  45. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
  46. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
  47. package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
  48. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  49. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
  50. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  51. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
  52. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  53. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +170 -3
  54. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  55. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
  56. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  57. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  58. package/dist/gen/claims/v1/claims_pb.js +1 -1
  59. package/dist/gen/claims/v1/claims_pb.js.map +1 -1
  60. package/dist/gen/index.d.ts +9 -5
  61. package/dist/gen/index.js +5 -1
  62. package/dist/gen/ledger/v1/catalog_pb.d.ts +9 -1
  63. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  64. package/dist/gen/ledger/v1/catalog_pb.js +9 -1
  65. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  66. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
  67. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  68. package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
  69. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  70. package/dist/gen/orders/v1/orders_pb.d.ts +4 -4
  71. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  72. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
  73. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
  74. package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
  75. package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
  76. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1186 -127
  77. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  78. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +282 -5
  79. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  80. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +253 -38
  81. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  82. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +180 -36
  83. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  84. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
  85. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
  86. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
  87. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
  88. package/dist/gen/system/v1/system_pb.d.ts +77 -0
  89. package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
  90. package/dist/gen/system/v1/system_pb.js +34 -0
  91. package/dist/gen/system/v1/system_pb.js.map +1 -0
  92. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
  93. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  94. package/dist/index.d.ts +5 -5
  95. package/dist/services/api-keys/api-keys.codecs.js +10 -1
  96. package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
  97. package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
  98. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  99. package/dist/services/api-keys/api-keys.schemas.js +3 -1
  100. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  101. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
  102. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
  103. package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
  104. package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
  105. package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
  106. package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
  107. package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
  108. package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
  109. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +394 -26
  110. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  111. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
  112. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  113. package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
  114. package/dist/services/candles/candles.schemas.d.ts +10 -10
  115. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  116. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  117. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  118. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  119. package/dist/services/lifecycle/lifecycle.codecs.d.ts +2 -2
  120. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  121. package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
  122. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  123. package/dist/services/lifecycle/lifecycle.schemas.d.ts +64 -40
  124. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  125. package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
  126. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  127. package/dist/services/market-data/market-data.schemas.js +7 -2
  128. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  129. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  130. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  131. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  132. package/dist/services/orders/orders-batch.schemas.d.ts +27 -27
  133. package/dist/services/orders/orders-input.schemas.d.ts +3 -3
  134. package/dist/services/orders/orders-output.schemas.d.ts +17 -17
  135. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  136. package/dist/services/policies/shared.codecs.js +24 -3
  137. package/dist/services/policies/shared.codecs.js.map +1 -1
  138. package/dist/services/policies/shared.d.ts +1 -1
  139. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  140. package/dist/services/social-verification/social-verification.codecs.js +13 -5
  141. package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
  142. package/dist/services/social-verification/social-verification.d.ts +18 -3
  143. package/dist/services/social-verification/social-verification.d.ts.map +1 -1
  144. package/dist/services/social-verification/social-verification.js +26 -3
  145. package/dist/services/social-verification/social-verification.js.map +1 -1
  146. package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
  147. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  148. package/dist/services/social-verification/social-verification.schemas.js +35 -10
  149. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  150. package/dist/services/social-verification/social-verification.types.d.ts +2 -2
  151. package/dist/services/subaccounts/subaccounts.schemas.d.ts +7 -7
  152. package/dist/services/trades/trades.schemas.d.ts +2 -2
  153. package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
  154. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  155. package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
  156. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  157. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
  158. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  159. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
  160. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  161. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
  162. package/dist/services/transfers/transfers.schemas.d.ts +4 -4
  163. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  164. package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
  165. package/dist/shared/catalog-config.d.ts +5 -0
  166. package/dist/shared/catalog-config.d.ts.map +1 -1
  167. package/dist/shared/catalog-config.js.map +1 -1
  168. package/dist/shared/error-detail.d.ts +6 -0
  169. package/dist/shared/error-detail.d.ts.map +1 -1
  170. package/dist/shared/error-detail.js.map +1 -1
  171. package/dist/shared/error-details/withdraw.js +11 -2
  172. package/dist/shared/error-details/withdraw.js.map +1 -1
  173. package/dist/shared/ledger-codes.d.ts +4 -2
  174. package/dist/shared/ledger-codes.d.ts.map +1 -1
  175. package/dist/shared/ledger-codes.js +6 -3
  176. package/dist/shared/ledger-codes.js.map +1 -1
  177. package/dist/shared/rate-limit.schemas.d.ts +2 -2
  178. package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
  179. package/dist/shared/rate-limit.schemas.js +4 -1
  180. package/dist/shared/rate-limit.schemas.js.map +1 -1
  181. package/dist/shared/transports.d.ts +2 -1
  182. package/dist/shared/transports.d.ts.map +1 -1
  183. package/dist/shared/transports.js.map +1 -1
  184. 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" | "completed" | "failed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded">]>;
10
+ declare const LifecycleFlowStateEnumSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "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>]>;
13
13
  readonly reasonId: v.StringSchema<undefined>;
@@ -17,7 +17,7 @@ declare const ListLifecycleFlowsInputSchema: v.SchemaWithPipe<readonly [v.Strict
17
17
  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>;
18
18
  readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["newest", "oldest"], undefined>, "newest">, v.TransformAction<"newest" | "oldest", Sort.NEWEST | Sort.OLDEST>]>;
19
19
  readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
20
- 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>]>;
20
+ 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<"failed" | "completed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded" | undefined, FlowState>]>;
21
21
  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>;
22
22
  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>]>;
23
23
  readonly accountSelector: v.OptionalSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"kind", [v.StrictObjectSchema<{
@@ -130,7 +130,7 @@ declare const LifecycleRequestFeeSchema: v.SchemaWithPipe<readonly [v.ObjectSche
130
130
  lo: bigint;
131
131
  }, string>]>, undefined>;
132
132
  readonly recipientAddress: v.StringSchema<undefined>;
133
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled">]>;
133
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled" | "kept">]>;
134
134
  }, undefined>, v.TransformAction<{
135
135
  assetIds?: {
136
136
  zippedAssetId: number;
@@ -138,7 +138,7 @@ declare const LifecycleRequestFeeSchema: v.SchemaWithPipe<readonly [v.ObjectSche
138
138
  } | undefined;
139
139
  amountE18?: string | undefined;
140
140
  recipientAddress: string;
141
- status: "unspecified" | "locked" | "settled";
141
+ status: "unspecified" | "locked" | "settled" | "kept";
142
142
  }, Omit<{
143
143
  assetIds?: {
144
144
  zippedAssetId: number;
@@ -146,7 +146,7 @@ declare const LifecycleRequestFeeSchema: v.SchemaWithPipe<readonly [v.ObjectSche
146
146
  } | undefined;
147
147
  amountE18?: string | undefined;
148
148
  recipientAddress: string;
149
- status: "unspecified" | "locked" | "settled";
149
+ status: "unspecified" | "locked" | "settled" | "kept";
150
150
  }, "amountE18"> & {
151
151
  amount?: string;
152
152
  }>]>;
@@ -267,7 +267,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
267
267
  lo: bigint;
268
268
  }, string>]>, undefined>;
269
269
  readonly recipientAddress: v.StringSchema<undefined>;
270
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled">]>;
270
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled" | "kept">]>;
271
271
  }, undefined>, v.TransformAction<{
272
272
  assetIds?: {
273
273
  zippedAssetId: number;
@@ -275,7 +275,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
275
275
  } | undefined;
276
276
  amountE18?: string | undefined;
277
277
  recipientAddress: string;
278
- status: "unspecified" | "locked" | "settled";
278
+ status: "unspecified" | "locked" | "settled" | "kept";
279
279
  }, Omit<{
280
280
  assetIds?: {
281
281
  zippedAssetId: number;
@@ -283,7 +283,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
283
283
  } | undefined;
284
284
  amountE18?: string | undefined;
285
285
  recipientAddress: string;
286
- status: "unspecified" | "locked" | "settled";
286
+ status: "unspecified" | "locked" | "settled" | "kept";
287
287
  }, "amountE18"> & {
288
288
  amount?: string;
289
289
  }>]>, undefined>;
@@ -382,6 +382,12 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
382
382
  }, "amountE18"> & {
383
383
  amount?: string;
384
384
  }>]>, undefined>, readonly []>;
385
+ /**
386
+ * Polyester Chain smart account a rejected withdrawal's zTokens (net of the kept
387
+ * request fee) were returned to; set only on a withdrawal's `refunded` step, `""`
388
+ * otherwise. The zTokens stay there until moved.
389
+ */
390
+ readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
385
391
  }, undefined>, v.TransformAction<{
386
392
  sequence: number;
387
393
  step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
@@ -398,7 +404,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
398
404
  } | undefined;
399
405
  amountE18?: string | undefined;
400
406
  recipientAddress: string;
401
- status: "unspecified" | "locked" | "settled";
407
+ status: "unspecified" | "locked" | "settled" | "kept";
402
408
  }, "amountE18"> & {
403
409
  amount?: string;
404
410
  }) | undefined;
@@ -445,6 +451,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
445
451
  }, "amountE18"> & {
446
452
  amount?: string;
447
453
  })[];
454
+ refundAddress: string;
448
455
  }, Omit<{
449
456
  sequence: number;
450
457
  step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
@@ -461,7 +468,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
461
468
  } | undefined;
462
469
  amountE18?: string | undefined;
463
470
  recipientAddress: string;
464
- status: "unspecified" | "locked" | "settled";
471
+ status: "unspecified" | "locked" | "settled" | "kept";
465
472
  }, "amountE18"> & {
466
473
  amount?: string;
467
474
  }) | undefined;
@@ -508,6 +515,7 @@ declare const LifecycleFlowStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
508
515
  }, "amountE18"> & {
509
516
  amount?: string;
510
517
  })[];
518
+ refundAddress: string;
511
519
  }, "amountE18"> & {
512
520
  amount?: string;
513
521
  }>]>;
@@ -559,7 +567,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
559
567
  lo: bigint;
560
568
  }, string>]>, undefined>;
561
569
  readonly recipientAddress: v.StringSchema<undefined>;
562
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled">]>;
570
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled" | "kept">]>;
563
571
  }, undefined>, v.TransformAction<{
564
572
  assetIds?: {
565
573
  zippedAssetId: number;
@@ -567,7 +575,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
567
575
  } | undefined;
568
576
  amountE18?: string | undefined;
569
577
  recipientAddress: string;
570
- status: "unspecified" | "locked" | "settled";
578
+ status: "unspecified" | "locked" | "settled" | "kept";
571
579
  }, Omit<{
572
580
  assetIds?: {
573
581
  zippedAssetId: number;
@@ -575,7 +583,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
575
583
  } | undefined;
576
584
  amountE18?: string | undefined;
577
585
  recipientAddress: string;
578
- status: "unspecified" | "locked" | "settled";
586
+ status: "unspecified" | "locked" | "settled" | "kept";
579
587
  }, "amountE18"> & {
580
588
  amount?: string;
581
589
  }>]>, undefined>;
@@ -645,7 +653,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
645
653
  } | undefined;
646
654
  amountE18?: string | undefined;
647
655
  recipientAddress: string;
648
- status: "unspecified" | "locked" | "settled";
656
+ status: "unspecified" | "locked" | "settled" | "kept";
649
657
  }, "amountE18"> & {
650
658
  amount?: string;
651
659
  }) | undefined;
@@ -709,7 +717,7 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
709
717
  } | undefined;
710
718
  amountE18?: string | undefined;
711
719
  recipientAddress: string;
712
- status: "unspecified" | "locked" | "settled";
720
+ status: "unspecified" | "locked" | "settled" | "kept";
713
721
  }, "amountE18"> & {
714
722
  amount?: string;
715
723
  }) | undefined;
@@ -789,7 +797,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
789
797
  lo: bigint;
790
798
  }, string>]>, undefined>;
791
799
  readonly recipientAddress: v.StringSchema<undefined>;
792
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled">]>;
800
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled" | "kept">]>;
793
801
  }, undefined>, v.TransformAction<{
794
802
  assetIds?: {
795
803
  zippedAssetId: number;
@@ -797,7 +805,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
797
805
  } | undefined;
798
806
  amountE18?: string | undefined;
799
807
  recipientAddress: string;
800
- status: "unspecified" | "locked" | "settled";
808
+ status: "unspecified" | "locked" | "settled" | "kept";
801
809
  }, Omit<{
802
810
  assetIds?: {
803
811
  zippedAssetId: number;
@@ -805,7 +813,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
805
813
  } | undefined;
806
814
  amountE18?: string | undefined;
807
815
  recipientAddress: string;
808
- status: "unspecified" | "locked" | "settled";
816
+ status: "unspecified" | "locked" | "settled" | "kept";
809
817
  }, "amountE18"> & {
810
818
  amount?: string;
811
819
  }>]>, undefined>;
@@ -875,7 +883,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
875
883
  } | undefined;
876
884
  amountE18?: string | undefined;
877
885
  recipientAddress: string;
878
- status: "unspecified" | "locked" | "settled";
886
+ status: "unspecified" | "locked" | "settled" | "kept";
879
887
  }, "amountE18"> & {
880
888
  amount?: string;
881
889
  }) | undefined;
@@ -939,7 +947,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
939
947
  } | undefined;
940
948
  amountE18?: string | undefined;
941
949
  recipientAddress: string;
942
- status: "unspecified" | "locked" | "settled";
950
+ status: "unspecified" | "locked" | "settled" | "kept";
943
951
  }, "amountE18"> & {
944
952
  amount?: string;
945
953
  }) | undefined;
@@ -1015,7 +1023,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1015
1023
  lo: bigint;
1016
1024
  }, string>]>, undefined>;
1017
1025
  readonly recipientAddress: v.StringSchema<undefined>;
1018
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled">]>;
1026
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled" | "kept">]>;
1019
1027
  }, undefined>, v.TransformAction<{
1020
1028
  assetIds?: {
1021
1029
  zippedAssetId: number;
@@ -1023,7 +1031,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1023
1031
  } | undefined;
1024
1032
  amountE18?: string | undefined;
1025
1033
  recipientAddress: string;
1026
- status: "unspecified" | "locked" | "settled";
1034
+ status: "unspecified" | "locked" | "settled" | "kept";
1027
1035
  }, Omit<{
1028
1036
  assetIds?: {
1029
1037
  zippedAssetId: number;
@@ -1031,7 +1039,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1031
1039
  } | undefined;
1032
1040
  amountE18?: string | undefined;
1033
1041
  recipientAddress: string;
1034
- status: "unspecified" | "locked" | "settled";
1042
+ status: "unspecified" | "locked" | "settled" | "kept";
1035
1043
  }, "amountE18"> & {
1036
1044
  amount?: string;
1037
1045
  }>]>, undefined>;
@@ -1130,6 +1138,12 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1130
1138
  }, "amountE18"> & {
1131
1139
  amount?: string;
1132
1140
  }>]>, undefined>, readonly []>;
1141
+ /**
1142
+ * Polyester Chain smart account a rejected withdrawal's zTokens (net of the kept
1143
+ * request fee) were returned to; set only on a withdrawal's `refunded` step, `""`
1144
+ * otherwise. The zTokens stay there until moved.
1145
+ */
1146
+ readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
1133
1147
  }, undefined>, v.TransformAction<{
1134
1148
  sequence: number;
1135
1149
  step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
@@ -1146,7 +1160,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1146
1160
  } | undefined;
1147
1161
  amountE18?: string | undefined;
1148
1162
  recipientAddress: string;
1149
- status: "unspecified" | "locked" | "settled";
1163
+ status: "unspecified" | "locked" | "settled" | "kept";
1150
1164
  }, "amountE18"> & {
1151
1165
  amount?: string;
1152
1166
  }) | undefined;
@@ -1193,6 +1207,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1193
1207
  }, "amountE18"> & {
1194
1208
  amount?: string;
1195
1209
  })[];
1210
+ refundAddress: string;
1196
1211
  }, Omit<{
1197
1212
  sequence: number;
1198
1213
  step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
@@ -1209,7 +1224,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1209
1224
  } | undefined;
1210
1225
  amountE18?: string | undefined;
1211
1226
  recipientAddress: string;
1212
- status: "unspecified" | "locked" | "settled";
1227
+ status: "unspecified" | "locked" | "settled" | "kept";
1213
1228
  }, "amountE18"> & {
1214
1229
  amount?: string;
1215
1230
  }) | undefined;
@@ -1256,6 +1271,7 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
1256
1271
  }, "amountE18"> & {
1257
1272
  amount?: string;
1258
1273
  })[];
1274
+ refundAddress: string;
1259
1275
  }, "amountE18"> & {
1260
1276
  amount?: string;
1261
1277
  }>]>, undefined>, readonly []>;
@@ -1293,7 +1309,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1293
1309
  lo: bigint;
1294
1310
  }, string>]>, undefined>;
1295
1311
  readonly recipientAddress: v.StringSchema<undefined>;
1296
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled">]>;
1312
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled" | "kept">]>;
1297
1313
  }, undefined>, v.TransformAction<{
1298
1314
  assetIds?: {
1299
1315
  zippedAssetId: number;
@@ -1301,7 +1317,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1301
1317
  } | undefined;
1302
1318
  amountE18?: string | undefined;
1303
1319
  recipientAddress: string;
1304
- status: "unspecified" | "locked" | "settled";
1320
+ status: "unspecified" | "locked" | "settled" | "kept";
1305
1321
  }, Omit<{
1306
1322
  assetIds?: {
1307
1323
  zippedAssetId: number;
@@ -1309,7 +1325,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1309
1325
  } | undefined;
1310
1326
  amountE18?: string | undefined;
1311
1327
  recipientAddress: string;
1312
- status: "unspecified" | "locked" | "settled";
1328
+ status: "unspecified" | "locked" | "settled" | "kept";
1313
1329
  }, "amountE18"> & {
1314
1330
  amount?: string;
1315
1331
  }>]>, undefined>;
@@ -1379,7 +1395,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1379
1395
  } | undefined;
1380
1396
  amountE18?: string | undefined;
1381
1397
  recipientAddress: string;
1382
- status: "unspecified" | "locked" | "settled";
1398
+ status: "unspecified" | "locked" | "settled" | "kept";
1383
1399
  }, "amountE18"> & {
1384
1400
  amount?: string;
1385
1401
  }) | undefined;
@@ -1443,7 +1459,7 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
1443
1459
  } | undefined;
1444
1460
  amountE18?: string | undefined;
1445
1461
  recipientAddress: string;
1446
- status: "unspecified" | "locked" | "settled";
1462
+ status: "unspecified" | "locked" | "settled" | "kept";
1447
1463
  }, "amountE18"> & {
1448
1464
  amount?: string;
1449
1465
  }) | undefined;
@@ -1526,7 +1542,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1526
1542
  lo: bigint;
1527
1543
  }, string>]>, undefined>;
1528
1544
  readonly recipientAddress: v.StringSchema<undefined>;
1529
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled">]>;
1545
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled" | "kept">]>;
1530
1546
  }, undefined>, v.TransformAction<{
1531
1547
  assetIds?: {
1532
1548
  zippedAssetId: number;
@@ -1534,7 +1550,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1534
1550
  } | undefined;
1535
1551
  amountE18?: string | undefined;
1536
1552
  recipientAddress: string;
1537
- status: "unspecified" | "locked" | "settled";
1553
+ status: "unspecified" | "locked" | "settled" | "kept";
1538
1554
  }, Omit<{
1539
1555
  assetIds?: {
1540
1556
  zippedAssetId: number;
@@ -1542,7 +1558,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1542
1558
  } | undefined;
1543
1559
  amountE18?: string | undefined;
1544
1560
  recipientAddress: string;
1545
- status: "unspecified" | "locked" | "settled";
1561
+ status: "unspecified" | "locked" | "settled" | "kept";
1546
1562
  }, "amountE18"> & {
1547
1563
  amount?: string;
1548
1564
  }>]>, undefined>;
@@ -1612,7 +1628,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1612
1628
  } | undefined;
1613
1629
  amountE18?: string | undefined;
1614
1630
  recipientAddress: string;
1615
- status: "unspecified" | "locked" | "settled";
1631
+ status: "unspecified" | "locked" | "settled" | "kept";
1616
1632
  }, "amountE18"> & {
1617
1633
  amount?: string;
1618
1634
  }) | undefined;
@@ -1676,7 +1692,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1676
1692
  } | undefined;
1677
1693
  amountE18?: string | undefined;
1678
1694
  recipientAddress: string;
1679
- status: "unspecified" | "locked" | "settled";
1695
+ status: "unspecified" | "locked" | "settled" | "kept";
1680
1696
  }, "amountE18"> & {
1681
1697
  amount?: string;
1682
1698
  }) | undefined;
@@ -1752,7 +1768,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1752
1768
  lo: bigint;
1753
1769
  }, string>]>, undefined>;
1754
1770
  readonly recipientAddress: v.StringSchema<undefined>;
1755
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled">]>;
1771
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "locked" | "settled" | "kept">]>;
1756
1772
  }, undefined>, v.TransformAction<{
1757
1773
  assetIds?: {
1758
1774
  zippedAssetId: number;
@@ -1760,7 +1776,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1760
1776
  } | undefined;
1761
1777
  amountE18?: string | undefined;
1762
1778
  recipientAddress: string;
1763
- status: "unspecified" | "locked" | "settled";
1779
+ status: "unspecified" | "locked" | "settled" | "kept";
1764
1780
  }, Omit<{
1765
1781
  assetIds?: {
1766
1782
  zippedAssetId: number;
@@ -1768,7 +1784,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1768
1784
  } | undefined;
1769
1785
  amountE18?: string | undefined;
1770
1786
  recipientAddress: string;
1771
- status: "unspecified" | "locked" | "settled";
1787
+ status: "unspecified" | "locked" | "settled" | "kept";
1772
1788
  }, "amountE18"> & {
1773
1789
  amount?: string;
1774
1790
  }>]>, undefined>;
@@ -1867,6 +1883,12 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1867
1883
  }, "amountE18"> & {
1868
1884
  amount?: string;
1869
1885
  }>]>, undefined>, readonly []>;
1886
+ /**
1887
+ * Polyester Chain smart account a rejected withdrawal's zTokens (net of the kept
1888
+ * request fee) were returned to; set only on a withdrawal's `refunded` step, `""`
1889
+ * otherwise. The zTokens stay there until moved.
1890
+ */
1891
+ readonly refundAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
1870
1892
  }, undefined>, v.TransformAction<{
1871
1893
  sequence: number;
1872
1894
  step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
@@ -1883,7 +1905,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1883
1905
  } | undefined;
1884
1906
  amountE18?: string | undefined;
1885
1907
  recipientAddress: string;
1886
- status: "unspecified" | "locked" | "settled";
1908
+ status: "unspecified" | "locked" | "settled" | "kept";
1887
1909
  }, "amountE18"> & {
1888
1910
  amount?: string;
1889
1911
  }) | undefined;
@@ -1930,6 +1952,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1930
1952
  }, "amountE18"> & {
1931
1953
  amount?: string;
1932
1954
  })[];
1955
+ refundAddress: string;
1933
1956
  }, Omit<{
1934
1957
  sequence: number;
1935
1958
  step: "validation" | "unspecified" | "failed" | "source" | "execution" | "transfer" | "dropped" | "refunded" | "request" | "bridge_fulfillment" | "fulfilling" | "settlement";
@@ -1946,7 +1969,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1946
1969
  } | undefined;
1947
1970
  amountE18?: string | undefined;
1948
1971
  recipientAddress: string;
1949
- status: "unspecified" | "locked" | "settled";
1972
+ status: "unspecified" | "locked" | "settled" | "kept";
1950
1973
  }, "amountE18"> & {
1951
1974
  amount?: string;
1952
1975
  }) | undefined;
@@ -1993,6 +2016,7 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
1993
2016
  }, "amountE18"> & {
1994
2017
  amount?: string;
1995
2018
  })[];
2019
+ refundAddress: string;
1996
2020
  }, "amountE18"> & {
1997
2021
  amount?: string;
1998
2022
  }>]>, undefined>, readonly []>;
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle.schemas.d.ts","names":[],"sources":["../../../src/services/lifecycle/lifecycle.schemas.ts"],"mappings":";;;;;cA6IM,yBAAuB,EAAA;;;;cAavB,8BAA4B,EAAA,yBAAA,EAAA,yBAAA,EAAA;cAiC5B,6BAA2B,EAAA;;;;;cAMpB,+BAA6B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwE7B,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAjID;;cA+IxB,6BAA2B,EAAA,yBAAA,EAAA;;;;;;;cAS3B,mCAAiC,EAAA;;;;;;cAUjC,iCAA+B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAlKP;;cA0LxB,yBAAuB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;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(v.object({
201
201
  requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),
202
202
  occurredAtUnixMs: LifecycleMsSchema,
203
203
  blockTimeMovingAverageMs: LifecycleMsSchema,
204
- activities: v.optional(v.array(LifecycleFlowStepActivitySchema), [])
204
+ activities: v.optional(v.array(LifecycleFlowStepActivitySchema), []),
205
+ /**
206
+ * Polyester Chain smart account a rejected withdrawal's zTokens (net of the kept
207
+ * request fee) were returned to; set only on a withdrawal's `refunded` step, `""`
208
+ * otherwise. The zTokens stay there until moved.
209
+ */
210
+ refundAddress: v.optional(v.string(), "")
205
211
  }), v.transform((value) => renameAmountE18(value)));
206
212
  const LifecycleFlowTimelineItemSchema = v.object({
207
213
  sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle.schemas.js","names":[],"sources":["../../../src/services/lifecycle/lifecycle.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport * as Proto from \"../../gen/chain/lifecycle/v1/types_pb.js\";\nimport { FlowParticipation } from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport {\n LIFECYCLE_FLOW_KIND_VALUES,\n LIFECYCLE_FLOW_PARTICIPATION_VALUES,\n LIFECYCLE_FLOW_STATE_VALUES,\n LIFECYCLE_LIST_SCOPE_VALUES,\n LIFECYCLE_LIST_ORDER_BY_VALUES,\n LIFECYCLE_SORT_VALUES,\n LIFECYCLE_TX_LOOKUP_KIND_VALUES,\n LifecycleFlowDomainCodec,\n LifecycleFlowKindCodec,\n LifecycleFlowParticipationCodec,\n lifecycleReasonFromCode,\n LifecycleFlowStateCodec,\n LifecycleFlowStepActivityKindCodec,\n LifecycleFlowStepCodec,\n LifecycleFlowTimelineStatusCodec,\n LifecycleListOrderByCodec,\n LifecycleListScopeCodec,\n LifecycleRequestFeeStatusCodec,\n LifecycleSortCodec,\n LifecycleSourceCodec,\n LifecycleTxLookupKindCodec,\n type LifecycleFlowParticipationValue,\n type LifecycleReasonValue,\n type LifecycleListOrderByValue,\n type LifecycleListScopeValue,\n type LifecycleRequestFeeStatusValue,\n type LifecycleSortValue,\n type LifecycleTxLookupKindValue,\n} from \"./lifecycle.codecs.js\";\nimport { idToBigInt } from \"../../utils/base58-id.js\";\nimport { fromU128 } from \"../../utils/u128.js\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport { PublicIdSchema } from \"../../shared/schemas.js\";\nimport { E18_SCALE, scaledToDecimalOutput } from \"../../shared/decimal-surface.js\";\n\nconst FlowKindSchema = v.picklist(LIFECYCLE_FLOW_KIND_VALUES);\nconst FlowStateSchema = v.picklist(LIFECYCLE_FLOW_STATE_VALUES);\n\nconst canonicalTxHashPattern = /^0x[0-9a-fA-F]{64}$/;\nconst chainTxHexPattern = /^[0-9a-fA-F]{64}$/;\nconst chainNativeTxIdPattern = /^[A-Za-z0-9]{8,128}$/;\nconst smartAccountAddressPattern = /^0x[0-9a-fA-F]{40}$/;\nconst maxUint32 = 4_294_967_295;\n\nfunction isChainTxIdentifier(value: string): boolean {\n if (canonicalTxHashPattern.test(value)) return true;\n if (chainTxHexPattern.test(value)) return true;\n return chainNativeTxIdPattern.test(value);\n}\n\nfunction normalizeChainTxIdentifier(value: string): string {\n if (canonicalTxHashPattern.test(value)) return value.toLowerCase();\n // Preserve caller casing — XRP and other chains may be case-sensitive on the API.\n if (chainTxHexPattern.test(value)) return value;\n return value;\n}\n\nconst ChainTxIdentifierSchema = v.pipe(\n v.string(),\n v.trim(),\n v.minLength(1, \"txHash is required.\"),\n v.check(isChainTxIdentifier, \"txHash must be a valid EVM hash or chain-native transaction id.\"),\n v.transform(normalizeChainTxIdentifier),\n);\n\nconst AccountSelectorIdSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst SmartAccountAddressSchema = v.pipe(\n v.string(),\n v.trim(),\n v.regex(smartAccountAddressPattern, \"smartAccountAddress must be a canonical 0x address.\"),\n);\n\nconst LifecycleAccountSelectorInputSchema = v.pipe(\n v.variant(\"kind\", [\n v.strictObject({\n kind: v.literal(\"accountId\"),\n accountId: AccountSelectorIdSchema,\n }),\n v.strictObject({\n kind: v.literal(\"ownerAccountId\"),\n ownerAccountId: AccountSelectorIdSchema,\n }),\n v.strictObject({\n kind: v.literal(\"smartAccountAddress\"),\n smartAccountAddress: SmartAccountAddressSchema,\n }),\n ]),\n v.transform((selector) => {\n switch (selector.kind) {\n case \"accountId\":\n return {\n case: \"ownerAccountId\" as const,\n value: idToBigInt(selector.accountId, \"accountId\"),\n };\n case \"ownerAccountId\":\n return {\n case: \"ownerAccountId\" as const,\n value: idToBigInt(selector.ownerAccountId, \"ownerAccountId\"),\n };\n case \"smartAccountAddress\":\n return {\n case: \"smartAccountAddress\" as const,\n value: selector.smartAccountAddress,\n };\n }\n }),\n);\n\nconst Uint32Schema = v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(maxUint32));\n\nconst LifecycleU128RawSchema = v.object({\n hi: v.bigint(),\n lo: v.bigint(),\n});\n\n/**\n * Wire `amount_e18` u128 → public decimal string. On-chain unified-asset\n * amounts are always 18-decimal scaled, so the conversion uses the constant\n * E18 scale and needs no catalog access.\n */\nconst LifecycleAmountSchema = v.pipe(\n LifecycleU128RawSchema,\n v.transform((v) => scaledToDecimalOutput(fromU128(v), E18_SCALE)),\n);\n\n/**\n * Renames the wire `amountE18` key to the public decimal `amount` field.\n * Preserves optional semantics exactly: when the wire field is unset, the\n * output carries no `amount` key.\n */\nfunction renameAmountE18<T extends { amountE18?: string }>(\n value: T,\n): Omit<T, \"amountE18\"> & { amount?: string } {\n const { amountE18, ...rest } = value;\n return amountE18 === undefined ? rest : { ...rest, amount: amountE18 };\n}\n\nconst LifecycleAssetIdsSchema = v.object({\n zippedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n unifiedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n});\n\nconst LifecycleFlowStepEnumSchema = enumLabelSchema(LifecycleFlowStepCodec.protoToOutput);\nconst LifecycleSourceEnumSchema = enumLabelSchema(LifecycleSourceCodec.protoToOutput);\nconst LifecycleFlowKindEnumSchema = enumLabelSchema(LifecycleFlowKindCodec.protoToOutput);\nconst LifecycleFlowParticipationEnumSchema = enumLabelSchema(\n LifecycleFlowParticipationCodec.protoToOutput,\n);\n\nconst LifecycleFlowDomainEnumSchema = enumLabelSchema(LifecycleFlowDomainCodec.protoToOutput);\nconst LifecycleFlowStateEnumSchema = enumLabelSchema(LifecycleFlowStateCodec.protoToOutput);\nconst LifecycleFlowStepActivityKindEnumSchema = enumLabelSchema(\n LifecycleFlowStepActivityKindCodec.protoToOutput,\n);\nconst LifecycleFlowTimelineStatusEnumSchema = enumLabelSchema(\n LifecycleFlowTimelineStatusCodec.protoToOutput,\n);\n/**\n * `REASON_UNSPECIFIED` (0) is the normal wire value for flows without a\n * notable reason, so this schema accepts zero unlike the other lifecycle enum\n * schemas. The catalog also grows on the backend ahead of SDK regeneration, so\n * uncataloged codes decode to `unknown_reason_${code}` instead of rejecting the whole flow —\n * a strict enum here froze failed flows out of the UI when the backend shipped\n * new reason codes.\n */\nconst LifecycleReasonEnumSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.transform((value) => lifecycleReasonFromCode(value)),\n);\nconst LifecycleRequestFeeStatusEnumSchema = enumLabelSchema(\n LifecycleRequestFeeStatusCodec.protoToOutput,\n);\nconst LifecycleMsSchema = v.pipe(\n v.bigint(),\n v.transform((v) => Number(v)),\n);\nconst LifecycleTxOccurrenceIndexSchema = v.pipe(\n v.optional(v.bigint()),\n v.transform((v) => Number(v ?? 0n)),\n);\nconst LifecycleLedgerTransferIdSchema = v.optional(v.string(), \"\");\nconst LifecycleZipperReasonSchema = v.object({\n code: v.pipe(v.number(), v.integer(), v.minValue(0)),\n reasonId: v.string(),\n message: v.string(),\n});\n\nexport const ListLifecycleFlowsInputSchema = v.pipe(\n v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),\n sort: v.pipe(\n v.optional(v.picklist(LIFECYCLE_SORT_VALUES), \"newest\"),\n v.transform((value) => LifecycleSortCodec.inputToProto[value]),\n ),\n flowKind: v.pipe(\n v.optional(FlowKindSchema),\n v.transform((v) =>\n v ? LifecycleFlowKindCodec.inputToProto[v] : Proto.FlowKind.KIND_UNSPECIFIED,\n ),\n ),\n flowState: v.pipe(\n v.optional(FlowStateSchema),\n v.transform((v) =>\n v ? LifecycleFlowStateCodec.inputToProto[v] : Proto.FlowState.STATE_UNSPECIFIED,\n ),\n ),\n txRef: v.optional(ChainTxIdentifierSchema),\n scope: v.pipe(\n v.optional(v.picklist(LIFECYCLE_LIST_SCOPE_VALUES), \"all\"),\n v.transform((v) => LifecycleListScopeCodec.inputToProto[v ?? \"all\"]),\n ),\n accountSelector: v.optional(LifecycleAccountSelectorInputSchema),\n /**\n * Narrows an account's list to the flows it owns (`\"owner\"`, the list before\n * received transfers were added) or the transfers it receives (`\"recipient\"`).\n * Omit for both. Requires `accountSelector`.\n */\n participation: v.pipe(\n v.optional(v.picklist(LIFECYCLE_FLOW_PARTICIPATION_VALUES)),\n v.transform((value) =>\n value\n ? LifecycleFlowParticipationCodec.inputToProto[value]\n : FlowParticipation.PARTICIPATION_UNSPECIFIED,\n ),\n ),\n polyesterChainIds: v.optional(v.array(Uint32Schema)),\n zippedAssetIds: v.optional(v.array(Uint32Schema)),\n unifiedAssetIds: v.optional(v.array(Uint32Schema)),\n pageToken: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n orderBy: v.pipe(\n v.optional(v.picklist(LIFECYCLE_LIST_ORDER_BY_VALUES), \"last_activity\"),\n v.transform((value) => LifecycleListOrderByCodec.inputToProto[value]),\n ),\n }),\n v.check(\n (value) =>\n // Absent or unspecified participation (0) needs no selector.\n !value.participation || value.accountSelector !== undefined,\n \"participation requires accountSelector.\",\n ),\n v.transform((value) => {\n return {\n limit: value.limit,\n sort: value.sort,\n flowKind: value.flowKind,\n flowState: value.flowState,\n txRef: value.txRef,\n scope: value.scope,\n accountSelector: value.accountSelector,\n participation: value.participation,\n polyesterChainIds: value.polyesterChainIds,\n zippedAssetIds: value.zippedAssetIds,\n unifiedAssetIds: value.unifiedAssetIds,\n pageToken: value.pageToken,\n orderBy: value.orderBy,\n };\n }),\n);\n\nexport const LifecycleRequestFeeSchema = v.pipe(\n v.object({\n assetIds: v.optional(LifecycleAssetIdsSchema),\n amountE18: v.optional(LifecycleAmountSchema),\n recipientAddress: v.string(),\n status: LifecycleRequestFeeStatusEnumSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleRequestFeeSchema() {\n return LifecycleRequestFeeSchema;\n}\n\nexport const GetLifecycleFlowInputSchema = v.pipe(\n v.strictObject({\n flowId: v.pipe(v.string(), v.trim(), v.minLength(1, \"flowId is required.\")),\n }),\n v.transform((value) => ({\n flowId: value.flowId,\n })),\n);\n\nexport const ListLifecycleFlowsByTxInputSchema = v.strictObject({\n txHash: ChainTxIdentifierSchema,\n lookupKind: v.pipe(\n v.picklist(LIFECYCLE_TX_LOOKUP_KIND_VALUES),\n v.transform((v) => LifecycleTxLookupKindCodec.inputToProto[v]),\n ),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),\n pageToken: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n});\n\nexport const LifecycleFlowStepActivitySchema = v.pipe(\n v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n txRef: v.string(),\n /** Chain holding `txRef`; a `GetDepositWithdrawConfig` chain ID, 0 when `txRef` is not a chain transaction. */\n txChainId: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0)), 0),\n occurredAtUnixMs: LifecycleMsSchema,\n lifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n kind: LifecycleFlowStepActivityKindEnumSchema,\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n ledgerTransferId: LifecycleLedgerTransferIdSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport const LifecycleFlowStepSchema = v.pipe(\n v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n step: LifecycleFlowStepEnumSchema,\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n requestFee: v.optional(LifecycleRequestFeeSchema),\n milestoneTxRef: v.string(),\n /** Chain holding `milestoneTxRef`; a `GetDepositWithdrawConfig` chain ID, 0 when it is not a chain transaction. */\n milestoneTxChainId: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0)), 0),\n lifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n occurredAtUnixMs: LifecycleMsSchema,\n blockTimeMovingAverageMs: LifecycleMsSchema,\n activities: v.optional(v.array(LifecycleFlowStepActivitySchema), []),\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowStepSchema() {\n return LifecycleFlowStepSchema;\n}\n\nexport const LifecycleFlowTimelineItemSchema = v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n step: LifecycleFlowStepEnumSchema,\n status: LifecycleFlowTimelineStatusEnumSchema,\n expectedDurationMs: LifecycleMsSchema,\n});\n\nexport const LifecycleFlowSummaryProgressSchema = v.object({\n currentStepStartedAtUnixMs: LifecycleMsSchema,\n currentStepExpectedDurationMs: LifecycleMsSchema,\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n});\n\nexport const LifecycleFlowSummarySchema = v.pipe(\n v.object({\n ownerAccountId: PublicIdSchema,\n smartAccountAddress: v.string(),\n flowId: v.string(),\n flowKind: LifecycleFlowKindEnumSchema,\n currentStep: LifecycleFlowStepEnumSchema,\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n requestFee: v.optional(LifecycleRequestFeeSchema),\n sourceTxHash: v.string(),\n txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,\n sourceAddress: v.string(),\n destinationAddress: v.string(),\n sourceDomain: LifecycleFlowDomainEnumSchema,\n destinationDomain: LifecycleFlowDomainEnumSchema,\n latestTxRef: v.string(),\n latestLifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n startedAtUnixMs: LifecycleMsSchema,\n updatedAtUnixMs: LifecycleMsSchema,\n terminalAtUnixMs: LifecycleMsSchema,\n lastActivityAtUnixMs: LifecycleMsSchema,\n isOpen: v.boolean(),\n isTerminal: v.boolean(),\n currentStepSequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n currentProgress: v.optional(LifecycleFlowSummaryProgressSchema),\n progressTimeline: v.optional(v.array(LifecycleFlowTimelineItemSchema), []),\n estimatedCompletionUnixMs: LifecycleMsSchema,\n /** An open flow has stalled well past its current step's expected time; `estimatedCompletionUnixMs` is 0 meanwhile. */\n isDelayed: v.optional(v.boolean(), false),\n /**\n * How the listed account takes part: `\"owner\"` for its own flows, including a\n * transfer it sent, `\"recipient\"` for a transfer another account sent it.\n * `\"unspecified\"` outside an account-scoped `listFlows`.\n */\n participation: v.optional(\n LifecycleFlowParticipationEnumSchema,\n FlowParticipation.PARTICIPATION_UNSPECIFIED,\n ),\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowSummarySchema() {\n return LifecycleFlowSummarySchema;\n}\n\nexport const LifecycleFlowDetailSchema = v.object({\n summary: v.optional(LifecycleFlowSummarySchema),\n observedSteps: v.optional(v.array(LifecycleFlowStepSchema), []),\n fromLiveState: v.boolean(),\n});\n\nexport function createLifecycleFlowDetailSchema() {\n return LifecycleFlowDetailSchema;\n}\n\nexport const ListLifecycleFlowsOutputSchema = v.object({\n flows: v.optional(v.array(LifecycleFlowSummarySchema), []),\n nextPageToken: v.optional(v.string(), \"\"),\n});\n\nexport function createListLifecycleFlowsOutputSchema() {\n return ListLifecycleFlowsOutputSchema;\n}\n\nexport const GetLifecycleFlowOutputSchema = v.object({\n flow: v.optional(LifecycleFlowDetailSchema),\n});\n\nexport function createGetLifecycleFlowOutputSchema() {\n return GetLifecycleFlowOutputSchema;\n}\n\nexport const LifecycleFlowTxMatchSchema = v.pipe(\n v.object({\n ownerAccountId: PublicIdSchema,\n smartAccountAddress: v.string(),\n flowId: v.string(),\n flowKind: LifecycleFlowKindEnumSchema,\n sourceTxHash: v.string(),\n latestTxRef: v.string(),\n txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,\n sourceDomain: LifecycleFlowDomainEnumSchema,\n destinationDomain: LifecycleFlowDomainEnumSchema,\n currentStep: LifecycleFlowStepEnumSchema,\n isOpen: v.boolean(),\n isTerminal: v.boolean(),\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n sourceAddress: v.string(),\n destinationAddress: v.string(),\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n lastActivityAtUnixMs: LifecycleMsSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowTxMatchSchema() {\n return LifecycleFlowTxMatchSchema;\n}\n\nexport const ListLifecycleFlowsByTxOutputSchema = v.object({\n txHash: v.string(),\n matches: v.optional(v.array(LifecycleFlowTxMatchSchema), []),\n nextPageToken: v.optional(v.string(), \"\"),\n});\n\nexport function createListLifecycleFlowsByTxOutputSchema() {\n return ListLifecycleFlowsByTxOutputSchema;\n}\n\nexport type ListLifecycleFlowsInput = v.InferInput<typeof ListLifecycleFlowsInputSchema>;\nexport type ParsedListLifecycleFlowsInput = v.InferOutput<typeof ListLifecycleFlowsInputSchema>;\n\nexport type GetLifecycleFlowInput = v.InferInput<typeof GetLifecycleFlowInputSchema>;\nexport type ParsedGetLifecycleFlowInput = v.InferOutput<typeof GetLifecycleFlowInputSchema>;\n\nexport type ListLifecycleFlowsByTxInput = v.InferInput<typeof ListLifecycleFlowsByTxInputSchema>;\nexport type ParsedListLifecycleFlowsByTxInput = v.InferOutput<\n typeof ListLifecycleFlowsByTxInputSchema\n>;\n\nexport type LifecycleFlowSummary = v.InferOutput<typeof LifecycleFlowSummarySchema>;\nexport type LifecycleFlowStep = v.InferOutput<typeof LifecycleFlowStepSchema>;\nexport type LifecycleFlowStepActivity = v.InferOutput<typeof LifecycleFlowStepActivitySchema>;\nexport type LifecycleFlowTimelineItem = v.InferOutput<typeof LifecycleFlowTimelineItemSchema>;\nexport type LifecycleFlowDetail = v.InferOutput<typeof LifecycleFlowDetailSchema>;\n\nexport type ListLifecycleFlowsOutput = v.InferOutput<typeof ListLifecycleFlowsOutputSchema>;\nexport type GetLifecycleFlowOutput = v.InferOutput<typeof GetLifecycleFlowOutputSchema>;\nexport type ListLifecycleFlowsByTxOutput = v.InferOutput<typeof ListLifecycleFlowsByTxOutputSchema>;\n\nexport type LifecycleAssetIds = v.InferOutput<typeof LifecycleAssetIdsSchema>;\nexport type LifecycleRequestFee = v.InferOutput<typeof LifecycleRequestFeeSchema>;\n\nexport type LifecycleFlowSummaryProgress = v.InferOutput<typeof LifecycleFlowSummaryProgressSchema>;\nexport type LifecycleFlowState = v.InferOutput<typeof LifecycleFlowStateEnumSchema>;\nexport type LifecycleReason = LifecycleReasonValue;\nexport type LifecycleZipperReason = v.InferOutput<typeof LifecycleZipperReasonSchema>;\nexport type LifecycleListOrderBy = LifecycleListOrderByValue;\nexport type LifecycleListScope = LifecycleListScopeValue;\nexport type LifecycleFlowParticipation = LifecycleFlowParticipationValue;\nexport type LifecycleSort = LifecycleSortValue;\nexport type LifecycleTxLookupKind = LifecycleTxLookupKindValue;\nexport type LifecycleRequestFeeStatus = LifecycleRequestFeeStatusValue;\n\nexport type LifecycleFlowTxMatch = v.InferOutput<typeof LifecycleFlowTxMatchSchema>;\n"],"mappings":";;;;;;;;;;AAuCA,MAAM,iBAAiB,EAAE,SAAS,0BAA0B;AAC5D,MAAM,kBAAkB,EAAE,SAAS,2BAA2B;AAE9D,MAAM,yBAAyB;AAC/B,MAAM,oBAAoB;AAC1B,MAAM,yBAAyB;AAC/B,MAAM,6BAA6B;AACnC,MAAM,YAAY;AAElB,SAAS,oBAAoB,OAAwB;CACjD,IAAI,uBAAuB,KAAK,KAAK,GAAG,OAAO;CAC/C,IAAI,kBAAkB,K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AE,OAAO;CACjB,UAAU;CACV,cAAc,EAAE,OAAO;CACvB,aAAa,EAAE,OAAO;CACtB,mBAAmB;CACnB,cAAc;CACd,mBAAmB;CACnB,aAAa;CACb,QAAQ,EAAE,QAAQ;CAClB,YAAY,EAAE,QAAQ;CACtB,UAAU,EAAE,SAAS,uBAAuB;CAC5C,kBAAkB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,CAAC;CAC/D,WAAW,EAAE,SAAS,qBAAqB;CAC3C,eAAe,EAAE,OAAO;CACxB,oBAAoB,EAAE,OAAO;CAC7B,iBAAiB;CACjB,cAAc,EAAE,SAAS,2BAA2B;CACpD,sBAAsB;AAC1B,CAAC,GACD,EAAE,WAAW,UAAU,gBAAgB,KAAK,CAAC,CACjD;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO;CACjB,SAAS,EAAE,SAAS,EAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CAC3D,eAAe,EAAE,SAAS,EAAE,OAAO,GAAG,EAAE;AAC5C,CAAC"}
1
+ {"version":3,"file":"lifecycle.schemas.js","names":[],"sources":["../../../src/services/lifecycle/lifecycle.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport * as Proto from \"../../gen/chain/lifecycle/v1/types_pb.js\";\nimport { FlowParticipation } from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport {\n LIFECYCLE_FLOW_KIND_VALUES,\n LIFECYCLE_FLOW_PARTICIPATION_VALUES,\n LIFECYCLE_FLOW_STATE_VALUES,\n LIFECYCLE_LIST_SCOPE_VALUES,\n LIFECYCLE_LIST_ORDER_BY_VALUES,\n LIFECYCLE_SORT_VALUES,\n LIFECYCLE_TX_LOOKUP_KIND_VALUES,\n LifecycleFlowDomainCodec,\n LifecycleFlowKindCodec,\n LifecycleFlowParticipationCodec,\n lifecycleReasonFromCode,\n LifecycleFlowStateCodec,\n LifecycleFlowStepActivityKindCodec,\n LifecycleFlowStepCodec,\n LifecycleFlowTimelineStatusCodec,\n LifecycleListOrderByCodec,\n LifecycleListScopeCodec,\n LifecycleRequestFeeStatusCodec,\n LifecycleSortCodec,\n LifecycleSourceCodec,\n LifecycleTxLookupKindCodec,\n type LifecycleFlowParticipationValue,\n type LifecycleReasonValue,\n type LifecycleListOrderByValue,\n type LifecycleListScopeValue,\n type LifecycleRequestFeeStatusValue,\n type LifecycleSortValue,\n type LifecycleTxLookupKindValue,\n} from \"./lifecycle.codecs.js\";\nimport { idToBigInt } from \"../../utils/base58-id.js\";\nimport { fromU128 } from \"../../utils/u128.js\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport { PublicIdSchema } from \"../../shared/schemas.js\";\nimport { E18_SCALE, scaledToDecimalOutput } from \"../../shared/decimal-surface.js\";\n\nconst FlowKindSchema = v.picklist(LIFECYCLE_FLOW_KIND_VALUES);\nconst FlowStateSchema = v.picklist(LIFECYCLE_FLOW_STATE_VALUES);\n\nconst canonicalTxHashPattern = /^0x[0-9a-fA-F]{64}$/;\nconst chainTxHexPattern = /^[0-9a-fA-F]{64}$/;\nconst chainNativeTxIdPattern = /^[A-Za-z0-9]{8,128}$/;\nconst smartAccountAddressPattern = /^0x[0-9a-fA-F]{40}$/;\nconst maxUint32 = 4_294_967_295;\n\nfunction isChainTxIdentifier(value: string): boolean {\n if (canonicalTxHashPattern.test(value)) return true;\n if (chainTxHexPattern.test(value)) return true;\n return chainNativeTxIdPattern.test(value);\n}\n\nfunction normalizeChainTxIdentifier(value: string): string {\n if (canonicalTxHashPattern.test(value)) return value.toLowerCase();\n // Preserve caller casing — XRP and other chains may be case-sensitive on the API.\n if (chainTxHexPattern.test(value)) return value;\n return value;\n}\n\nconst ChainTxIdentifierSchema = v.pipe(\n v.string(),\n v.trim(),\n v.minLength(1, \"txHash is required.\"),\n v.check(isChainTxIdentifier, \"txHash must be a valid EVM hash or chain-native transaction id.\"),\n v.transform(normalizeChainTxIdentifier),\n);\n\nconst AccountSelectorIdSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst SmartAccountAddressSchema = v.pipe(\n v.string(),\n v.trim(),\n v.regex(smartAccountAddressPattern, \"smartAccountAddress must be a canonical 0x address.\"),\n);\n\nconst LifecycleAccountSelectorInputSchema = v.pipe(\n v.variant(\"kind\", [\n v.strictObject({\n kind: v.literal(\"accountId\"),\n accountId: AccountSelectorIdSchema,\n }),\n v.strictObject({\n kind: v.literal(\"ownerAccountId\"),\n ownerAccountId: AccountSelectorIdSchema,\n }),\n v.strictObject({\n kind: v.literal(\"smartAccountAddress\"),\n smartAccountAddress: SmartAccountAddressSchema,\n }),\n ]),\n v.transform((selector) => {\n switch (selector.kind) {\n case \"accountId\":\n return {\n case: \"ownerAccountId\" as const,\n value: idToBigInt(selector.accountId, \"accountId\"),\n };\n case \"ownerAccountId\":\n return {\n case: \"ownerAccountId\" as const,\n value: idToBigInt(selector.ownerAccountId, \"ownerAccountId\"),\n };\n case \"smartAccountAddress\":\n return {\n case: \"smartAccountAddress\" as const,\n value: selector.smartAccountAddress,\n };\n }\n }),\n);\n\nconst Uint32Schema = v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(maxUint32));\n\nconst LifecycleU128RawSchema = v.object({\n hi: v.bigint(),\n lo: v.bigint(),\n});\n\n/**\n * Wire `amount_e18` u128 → public decimal string. On-chain unified-asset\n * amounts are always 18-decimal scaled, so the conversion uses the constant\n * E18 scale and needs no catalog access.\n */\nconst LifecycleAmountSchema = v.pipe(\n LifecycleU128RawSchema,\n v.transform((v) => scaledToDecimalOutput(fromU128(v), E18_SCALE)),\n);\n\n/**\n * Renames the wire `amountE18` key to the public decimal `amount` field.\n * Preserves optional semantics exactly: when the wire field is unset, the\n * output carries no `amount` key.\n */\nfunction renameAmountE18<T extends { amountE18?: string }>(\n value: T,\n): Omit<T, \"amountE18\"> & { amount?: string } {\n const { amountE18, ...rest } = value;\n return amountE18 === undefined ? rest : { ...rest, amount: amountE18 };\n}\n\nconst LifecycleAssetIdsSchema = v.object({\n zippedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n unifiedAssetId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n});\n\nconst LifecycleFlowStepEnumSchema = enumLabelSchema(LifecycleFlowStepCodec.protoToOutput);\nconst LifecycleSourceEnumSchema = enumLabelSchema(LifecycleSourceCodec.protoToOutput);\nconst LifecycleFlowKindEnumSchema = enumLabelSchema(LifecycleFlowKindCodec.protoToOutput);\nconst LifecycleFlowParticipationEnumSchema = enumLabelSchema(\n LifecycleFlowParticipationCodec.protoToOutput,\n);\n\nconst LifecycleFlowDomainEnumSchema = enumLabelSchema(LifecycleFlowDomainCodec.protoToOutput);\nconst LifecycleFlowStateEnumSchema = enumLabelSchema(LifecycleFlowStateCodec.protoToOutput);\nconst LifecycleFlowStepActivityKindEnumSchema = enumLabelSchema(\n LifecycleFlowStepActivityKindCodec.protoToOutput,\n);\nconst LifecycleFlowTimelineStatusEnumSchema = enumLabelSchema(\n LifecycleFlowTimelineStatusCodec.protoToOutput,\n);\n/**\n * `REASON_UNSPECIFIED` (0) is the normal wire value for flows without a\n * notable reason, so this schema accepts zero unlike the other lifecycle enum\n * schemas. The catalog also grows on the backend ahead of SDK regeneration, so\n * uncataloged codes decode to `unknown_reason_${code}` instead of rejecting the whole flow —\n * a strict enum here froze failed flows out of the UI when the backend shipped\n * new reason codes.\n */\nconst LifecycleReasonEnumSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.transform((value) => lifecycleReasonFromCode(value)),\n);\nconst LifecycleRequestFeeStatusEnumSchema = enumLabelSchema(\n LifecycleRequestFeeStatusCodec.protoToOutput,\n);\nconst LifecycleMsSchema = v.pipe(\n v.bigint(),\n v.transform((v) => Number(v)),\n);\nconst LifecycleTxOccurrenceIndexSchema = v.pipe(\n v.optional(v.bigint()),\n v.transform((v) => Number(v ?? 0n)),\n);\nconst LifecycleLedgerTransferIdSchema = v.optional(v.string(), \"\");\nconst LifecycleZipperReasonSchema = v.object({\n code: v.pipe(v.number(), v.integer(), v.minValue(0)),\n reasonId: v.string(),\n message: v.string(),\n});\n\nexport const ListLifecycleFlowsInputSchema = v.pipe(\n v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),\n sort: v.pipe(\n v.optional(v.picklist(LIFECYCLE_SORT_VALUES), \"newest\"),\n v.transform((value) => LifecycleSortCodec.inputToProto[value]),\n ),\n flowKind: v.pipe(\n v.optional(FlowKindSchema),\n v.transform((v) =>\n v ? LifecycleFlowKindCodec.inputToProto[v] : Proto.FlowKind.KIND_UNSPECIFIED,\n ),\n ),\n flowState: v.pipe(\n v.optional(FlowStateSchema),\n v.transform((v) =>\n v ? LifecycleFlowStateCodec.inputToProto[v] : Proto.FlowState.STATE_UNSPECIFIED,\n ),\n ),\n txRef: v.optional(ChainTxIdentifierSchema),\n scope: v.pipe(\n v.optional(v.picklist(LIFECYCLE_LIST_SCOPE_VALUES), \"all\"),\n v.transform((v) => LifecycleListScopeCodec.inputToProto[v ?? \"all\"]),\n ),\n accountSelector: v.optional(LifecycleAccountSelectorInputSchema),\n /**\n * Narrows an account's list to the flows it owns (`\"owner\"`, the list before\n * received transfers were added) or the transfers it receives (`\"recipient\"`).\n * Omit for both. Requires `accountSelector`.\n */\n participation: v.pipe(\n v.optional(v.picklist(LIFECYCLE_FLOW_PARTICIPATION_VALUES)),\n v.transform((value) =>\n value\n ? LifecycleFlowParticipationCodec.inputToProto[value]\n : FlowParticipation.PARTICIPATION_UNSPECIFIED,\n ),\n ),\n polyesterChainIds: v.optional(v.array(Uint32Schema)),\n zippedAssetIds: v.optional(v.array(Uint32Schema)),\n unifiedAssetIds: v.optional(v.array(Uint32Schema)),\n pageToken: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n orderBy: v.pipe(\n v.optional(v.picklist(LIFECYCLE_LIST_ORDER_BY_VALUES), \"last_activity\"),\n v.transform((value) => LifecycleListOrderByCodec.inputToProto[value]),\n ),\n }),\n v.check(\n (value) =>\n // Absent or unspecified participation (0) needs no selector.\n !value.participation || value.accountSelector !== undefined,\n \"participation requires accountSelector.\",\n ),\n v.transform((value) => {\n return {\n limit: value.limit,\n sort: value.sort,\n flowKind: value.flowKind,\n flowState: value.flowState,\n txRef: value.txRef,\n scope: value.scope,\n accountSelector: value.accountSelector,\n participation: value.participation,\n polyesterChainIds: value.polyesterChainIds,\n zippedAssetIds: value.zippedAssetIds,\n unifiedAssetIds: value.unifiedAssetIds,\n pageToken: value.pageToken,\n orderBy: value.orderBy,\n };\n }),\n);\n\nexport const LifecycleRequestFeeSchema = v.pipe(\n v.object({\n assetIds: v.optional(LifecycleAssetIdsSchema),\n amountE18: v.optional(LifecycleAmountSchema),\n recipientAddress: v.string(),\n status: LifecycleRequestFeeStatusEnumSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleRequestFeeSchema() {\n return LifecycleRequestFeeSchema;\n}\n\nexport const GetLifecycleFlowInputSchema = v.pipe(\n v.strictObject({\n flowId: v.pipe(v.string(), v.trim(), v.minLength(1, \"flowId is required.\")),\n }),\n v.transform((value) => ({\n flowId: value.flowId,\n })),\n);\n\nexport const ListLifecycleFlowsByTxInputSchema = v.strictObject({\n txHash: ChainTxIdentifierSchema,\n lookupKind: v.pipe(\n v.picklist(LIFECYCLE_TX_LOOKUP_KIND_VALUES),\n v.transform((v) => LifecycleTxLookupKindCodec.inputToProto[v]),\n ),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.gtValue(0), v.maxValue(500)), 100),\n pageToken: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n});\n\nexport const LifecycleFlowStepActivitySchema = v.pipe(\n v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n txRef: v.string(),\n /** Chain holding `txRef`; a `GetDepositWithdrawConfig` chain ID, 0 when `txRef` is not a chain transaction. */\n txChainId: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0)), 0),\n occurredAtUnixMs: LifecycleMsSchema,\n lifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n kind: LifecycleFlowStepActivityKindEnumSchema,\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n ledgerTransferId: LifecycleLedgerTransferIdSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport const LifecycleFlowStepSchema = v.pipe(\n v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n step: LifecycleFlowStepEnumSchema,\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n requestFee: v.optional(LifecycleRequestFeeSchema),\n milestoneTxRef: v.string(),\n /** Chain holding `milestoneTxRef`; a `GetDepositWithdrawConfig` chain ID, 0 when it is not a chain transaction. */\n milestoneTxChainId: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0)), 0),\n lifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n occurredAtUnixMs: LifecycleMsSchema,\n blockTimeMovingAverageMs: LifecycleMsSchema,\n activities: v.optional(v.array(LifecycleFlowStepActivitySchema), []),\n /**\n * Polyester Chain smart account a rejected withdrawal's zTokens (net of the kept\n * request fee) were returned to; set only on a withdrawal's `refunded` step, `\"\"`\n * otherwise. The zTokens stay there until moved.\n */\n refundAddress: v.optional(v.string(), \"\"),\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowStepSchema() {\n return LifecycleFlowStepSchema;\n}\n\nexport const LifecycleFlowTimelineItemSchema = v.object({\n sequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n step: LifecycleFlowStepEnumSchema,\n status: LifecycleFlowTimelineStatusEnumSchema,\n expectedDurationMs: LifecycleMsSchema,\n});\n\nexport const LifecycleFlowSummaryProgressSchema = v.object({\n currentStepStartedAtUnixMs: LifecycleMsSchema,\n currentStepExpectedDurationMs: LifecycleMsSchema,\n currentConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredConfirmations: v.pipe(v.number(), v.integer(), v.minValue(0)),\n approveCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n rejectCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n validatorCount: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredApprovals: v.pipe(v.number(), v.integer(), v.minValue(0)),\n requiredRejections: v.pipe(v.number(), v.integer(), v.minValue(0)),\n});\n\nexport const LifecycleFlowSummarySchema = v.pipe(\n v.object({\n ownerAccountId: PublicIdSchema,\n smartAccountAddress: v.string(),\n flowId: v.string(),\n flowKind: LifecycleFlowKindEnumSchema,\n currentStep: LifecycleFlowStepEnumSchema,\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n requestFee: v.optional(LifecycleRequestFeeSchema),\n sourceTxHash: v.string(),\n txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,\n sourceAddress: v.string(),\n destinationAddress: v.string(),\n sourceDomain: LifecycleFlowDomainEnumSchema,\n destinationDomain: LifecycleFlowDomainEnumSchema,\n latestTxRef: v.string(),\n latestLifecycleSource: LifecycleSourceEnumSchema,\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n startedAtUnixMs: LifecycleMsSchema,\n updatedAtUnixMs: LifecycleMsSchema,\n terminalAtUnixMs: LifecycleMsSchema,\n lastActivityAtUnixMs: LifecycleMsSchema,\n isOpen: v.boolean(),\n isTerminal: v.boolean(),\n currentStepSequence: v.pipe(v.number(), v.integer(), v.minValue(0)),\n currentProgress: v.optional(LifecycleFlowSummaryProgressSchema),\n progressTimeline: v.optional(v.array(LifecycleFlowTimelineItemSchema), []),\n estimatedCompletionUnixMs: LifecycleMsSchema,\n /** An open flow has stalled well past its current step's expected time; `estimatedCompletionUnixMs` is 0 meanwhile. */\n isDelayed: v.optional(v.boolean(), false),\n /**\n * How the listed account takes part: `\"owner\"` for its own flows, including a\n * transfer it sent, `\"recipient\"` for a transfer another account sent it.\n * `\"unspecified\"` outside an account-scoped `listFlows`.\n */\n participation: v.optional(\n LifecycleFlowParticipationEnumSchema,\n FlowParticipation.PARTICIPATION_UNSPECIFIED,\n ),\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowSummarySchema() {\n return LifecycleFlowSummarySchema;\n}\n\nexport const LifecycleFlowDetailSchema = v.object({\n summary: v.optional(LifecycleFlowSummarySchema),\n observedSteps: v.optional(v.array(LifecycleFlowStepSchema), []),\n fromLiveState: v.boolean(),\n});\n\nexport function createLifecycleFlowDetailSchema() {\n return LifecycleFlowDetailSchema;\n}\n\nexport const ListLifecycleFlowsOutputSchema = v.object({\n flows: v.optional(v.array(LifecycleFlowSummarySchema), []),\n nextPageToken: v.optional(v.string(), \"\"),\n});\n\nexport function createListLifecycleFlowsOutputSchema() {\n return ListLifecycleFlowsOutputSchema;\n}\n\nexport const GetLifecycleFlowOutputSchema = v.object({\n flow: v.optional(LifecycleFlowDetailSchema),\n});\n\nexport function createGetLifecycleFlowOutputSchema() {\n return GetLifecycleFlowOutputSchema;\n}\n\nexport const LifecycleFlowTxMatchSchema = v.pipe(\n v.object({\n ownerAccountId: PublicIdSchema,\n smartAccountAddress: v.string(),\n flowId: v.string(),\n flowKind: LifecycleFlowKindEnumSchema,\n sourceTxHash: v.string(),\n latestTxRef: v.string(),\n txOccurrenceIndex: LifecycleTxOccurrenceIndexSchema,\n sourceDomain: LifecycleFlowDomainEnumSchema,\n destinationDomain: LifecycleFlowDomainEnumSchema,\n currentStep: LifecycleFlowStepEnumSchema,\n isOpen: v.boolean(),\n isTerminal: v.boolean(),\n assetIds: v.optional(LifecycleAssetIdsSchema),\n polyesterChainId: v.pipe(v.number(), v.integer(), v.minValue(0)),\n amountE18: v.optional(LifecycleAmountSchema),\n sourceAddress: v.string(),\n destinationAddress: v.string(),\n lifecycleReason: LifecycleReasonEnumSchema,\n zipperReason: v.optional(LifecycleZipperReasonSchema),\n lastActivityAtUnixMs: LifecycleMsSchema,\n }),\n v.transform((value) => renameAmountE18(value)),\n);\n\nexport function createLifecycleFlowTxMatchSchema() {\n return LifecycleFlowTxMatchSchema;\n}\n\nexport const ListLifecycleFlowsByTxOutputSchema = v.object({\n txHash: v.string(),\n matches: v.optional(v.array(LifecycleFlowTxMatchSchema), []),\n nextPageToken: v.optional(v.string(), \"\"),\n});\n\nexport function createListLifecycleFlowsByTxOutputSchema() {\n return ListLifecycleFlowsByTxOutputSchema;\n}\n\nexport type ListLifecycleFlowsInput = v.InferInput<typeof ListLifecycleFlowsInputSchema>;\nexport type ParsedListLifecycleFlowsInput = v.InferOutput<typeof ListLifecycleFlowsInputSchema>;\n\nexport type GetLifecycleFlowInput = v.InferInput<typeof GetLifecycleFlowInputSchema>;\nexport type ParsedGetLifecycleFlowInput = v.InferOutput<typeof GetLifecycleFlowInputSchema>;\n\nexport type ListLifecycleFlowsByTxInput = v.InferInput<typeof ListLifecycleFlowsByTxInputSchema>;\nexport type ParsedListLifecycleFlowsByTxInput = v.InferOutput<\n typeof ListLifecycleFlowsByTxInputSchema\n>;\n\nexport type LifecycleFlowSummary = v.InferOutput<typeof LifecycleFlowSummarySchema>;\nexport type LifecycleFlowStep = v.InferOutput<typeof LifecycleFlowStepSchema>;\nexport type LifecycleFlowStepActivity = v.InferOutput<typeof LifecycleFlowStepActivitySchema>;\nexport type LifecycleFlowTimelineItem = v.InferOutput<typeof LifecycleFlowTimelineItemSchema>;\nexport type LifecycleFlowDetail = v.InferOutput<typeof LifecycleFlowDetailSchema>;\n\nexport type ListLifecycleFlowsOutput = v.InferOutput<typeof ListLifecycleFlowsOutputSchema>;\nexport type GetLifecycleFlowOutput = v.InferOutput<typeof GetLifecycleFlowOutputSchema>;\nexport type ListLifecycleFlowsByTxOutput = v.InferOutput<typeof ListLifecycleFlowsByTxOutputSchema>;\n\nexport type LifecycleAssetIds = v.InferOutput<typeof LifecycleAssetIdsSchema>;\nexport type LifecycleRequestFee = v.InferOutput<typeof LifecycleRequestFeeSchema>;\n\nexport type LifecycleFlowSummaryProgress = v.InferOutput<typeof LifecycleFlowSummaryProgressSchema>;\nexport type LifecycleFlowState = v.InferOutput<typeof LifecycleFlowStateEnumSchema>;\nexport type LifecycleReason = LifecycleReasonValue;\nexport type LifecycleZipperReason = v.InferOutput<typeof LifecycleZipperReasonSchema>;\nexport type LifecycleListOrderBy = LifecycleListOrderByValue;\nexport type LifecycleListScope = LifecycleListScopeValue;\nexport type LifecycleFlowParticipation = LifecycleFlowParticipationValue;\nexport type LifecycleSort = LifecycleSortValue;\nexport type LifecycleTxLookupKind = LifecycleTxLookupKindValue;\nexport type LifecycleRequestFeeStatus = LifecycleRequestFeeStatusValue;\n\nexport type LifecycleFlowTxMatch = v.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