@polyester/sdk 0.36.0-devnet-20261119195411 → 0.36.0-devnet-20261120015159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/CHANGELOG.md +16 -2
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +2 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/ai/v1/assistant_pb.d.ts +55 -3
  7. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  8. package/dist/gen/ai/v1/assistant_pb.js +8 -1
  9. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  10. package/dist/gen/auth/v1/account_scope_pb.d.ts +40 -0
  11. package/dist/gen/auth/v1/account_scope_pb.d.ts.map +1 -0
  12. package/dist/gen/auth/v1/account_scope_pb.js +46 -0
  13. package/dist/gen/auth/v1/account_scope_pb.js.map +1 -0
  14. package/dist/gen/auth/v1/address_book_pb.d.ts +3 -31
  15. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  16. package/dist/gen/auth/v1/address_book_pb.js +8 -38
  17. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  18. package/dist/gen/auth/v1/auth_pb.d.ts +15 -14
  19. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  20. package/dist/gen/auth/v1/auth_pb.js +16 -15
  21. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  22. package/dist/gen/auth/v1/connected_apps_pb.d.ts +59 -58
  23. package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -1
  24. package/dist/gen/auth/v1/connected_apps_pb.js +38 -37
  25. package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -1
  26. package/dist/gen/auth/v1/policies_pb.d.ts +27 -1
  27. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  28. package/dist/gen/auth/v1/policies_pb.js +27 -1
  29. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  30. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +228 -2
  31. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  32. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +32 -8
  33. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  34. package/dist/gen/changelog/v1/changelog_pb.d.ts +16 -4
  35. package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
  36. package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
  37. package/dist/gen/index.d.ts +7 -5
  38. package/dist/gen/index.js +7 -5
  39. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +288 -2
  40. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  41. package/dist/gen/marketdata/v1/marketdata_pb.js +115 -2
  42. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  43. package/dist/gen/orders/v1/orders_pb.d.ts +78 -25
  44. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  45. package/dist/gen/orders/v1/orders_pb.js +36 -7
  46. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  47. package/dist/gen/orders/v1/orders_read_pb.d.ts +35 -1
  48. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  49. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  50. package/dist/gen/strategies/v1/strategies_pb.d.ts +2928 -0
  51. package/dist/gen/strategies/v1/strategies_pb.d.ts.map +1 -0
  52. package/dist/gen/strategies/v1/strategies_pb.js +818 -0
  53. package/dist/gen/strategies/v1/strategies_pb.js.map +1 -0
  54. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +38 -17
  55. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  56. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +4 -1
  57. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  58. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +312 -132
  59. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -1
  60. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +31 -26
  61. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -1
  62. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +28 -13
  63. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  64. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +2 -2
  65. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  66. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +109 -2
  67. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
  68. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +23 -3
  69. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
  70. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +3 -2
  71. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  72. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  73. package/dist/gen/triggers/v1/triggers_pb.d.ts +61 -11
  74. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  75. package/dist/gen/triggers/v1/triggers_pb.js +4 -2
  76. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  77. package/dist/index.d.ts +9 -6
  78. package/dist/services/account-activity/account-activity.schemas.d.ts +6 -6
  79. package/dist/services/address-book/address-book.codecs.js +1 -0
  80. package/dist/services/address-book/address-book.codecs.js.map +1 -1
  81. package/dist/services/address-book/address-book.js +1 -1
  82. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  83. package/dist/services/api-keys/api-keys.js +1 -1
  84. package/dist/services/api-keys/api-keys.schemas.d.ts +6 -6
  85. package/dist/services/assistant/assistant-events.schemas.d.ts +138 -40
  86. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
  87. package/dist/services/assistant/assistant-events.schemas.js +15 -5
  88. package/dist/services/assistant/assistant-events.schemas.js.map +1 -1
  89. package/dist/services/assistant/assistant.codecs.d.ts +5 -2
  90. package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
  91. package/dist/services/assistant/assistant.codecs.js +10 -2
  92. package/dist/services/assistant/assistant.codecs.js.map +1 -1
  93. package/dist/services/assistant/assistant.schemas.d.ts +2 -2
  94. package/dist/services/auth/auth.js +1 -1
  95. package/dist/services/auth/auth.js.map +1 -1
  96. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +9 -9
  97. package/dist/services/balances/balances.js +1 -1
  98. package/dist/services/balances/balances.schemas.d.ts +3 -3
  99. package/dist/services/changelog/changelog.schemas.d.ts +38 -38
  100. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  101. package/dist/services/claims/claims.schemas.d.ts +2 -2
  102. package/dist/services/connected-apps/connected-apps.d.ts +4 -4
  103. package/dist/services/connected-apps/connected-apps.d.ts.map +1 -1
  104. package/dist/services/connected-apps/connected-apps.js +13 -13
  105. package/dist/services/connected-apps/connected-apps.js.map +1 -1
  106. package/dist/services/connected-apps/connected-apps.schemas.d.ts +7 -7
  107. package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -1
  108. package/dist/services/connected-apps/connected-apps.schemas.js +10 -10
  109. package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -1
  110. package/dist/services/connected-apps/connected-apps.types.d.ts +2 -2
  111. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +6 -6
  112. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  113. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +1 -1
  114. package/dist/services/lifecycle/lifecycle.schemas.d.ts +79 -79
  115. package/dist/services/market-data/market-data.codecs.d.ts +9 -1
  116. package/dist/services/market-data/market-data.codecs.d.ts.map +1 -1
  117. package/dist/services/market-data/market-data.codecs.js +14 -1
  118. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  119. package/dist/services/market-data/market-data.d.ts +9 -1
  120. package/dist/services/market-data/market-data.d.ts.map +1 -1
  121. package/dist/services/market-data/market-data.js +14 -1
  122. package/dist/services/market-data/market-data.js.map +1 -1
  123. package/dist/services/market-data/market-data.schemas.d.ts +40 -2
  124. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  125. package/dist/services/market-data/market-data.schemas.js +43 -8
  126. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  127. package/dist/services/market-data/market-data.types.d.ts +3 -3
  128. package/dist/services/notifications/notifications.schemas.d.ts +4 -4
  129. package/dist/services/orders/order-errors.schemas.d.ts +6 -6
  130. package/dist/services/orders/orders-batch.schemas.d.ts +67 -67
  131. package/dist/services/orders/orders-input.schemas.d.ts +10 -10
  132. package/dist/services/orders/orders-output.schemas.d.ts +16 -16
  133. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  134. package/dist/services/orders/orders-output.schemas.js +1 -1
  135. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  136. package/dist/services/orders/orders.d.ts +5 -0
  137. package/dist/services/orders/orders.d.ts.map +1 -1
  138. package/dist/services/orders/orders.js +5 -0
  139. package/dist/services/orders/orders.js.map +1 -1
  140. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  141. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  142. package/dist/services/policies/shared.codecs.js +13 -4
  143. package/dist/services/policies/shared.codecs.js.map +1 -1
  144. package/dist/services/policies/shared.d.ts +1 -1
  145. package/dist/services/policies/subaccount-policies/subaccount-policies.js +1 -1
  146. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  147. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  148. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  149. package/dist/services/strategies/service.d.ts +8 -0
  150. package/dist/services/strategies/service.d.ts.map +1 -0
  151. package/dist/services/strategies/service.js +9 -0
  152. package/dist/services/strategies/service.js.map +1 -0
  153. package/dist/services/strategies/strategies.codecs.d.ts +15 -0
  154. package/dist/services/strategies/strategies.codecs.d.ts.map +1 -0
  155. package/dist/services/strategies/strategies.codecs.js +50 -0
  156. package/dist/services/strategies/strategies.codecs.js.map +1 -0
  157. package/dist/services/strategies/strategies.d.ts +75 -0
  158. package/dist/services/strategies/strategies.d.ts.map +1 -0
  159. package/dist/services/strategies/strategies.js +135 -0
  160. package/dist/services/strategies/strategies.js.map +1 -0
  161. package/dist/services/strategies/strategies.schemas.d.ts +568 -0
  162. package/dist/services/strategies/strategies.schemas.d.ts.map +1 -0
  163. package/dist/services/strategies/strategies.schemas.js +408 -0
  164. package/dist/services/strategies/strategies.schemas.js.map +1 -0
  165. package/dist/services/strategies/strategies.types.d.ts +3 -0
  166. package/dist/services/subaccounts/subaccounts.js +2 -2
  167. package/dist/services/subaccounts/subaccounts.schemas.d.ts +20 -20
  168. package/dist/services/system/system.schemas.d.ts +13 -13
  169. package/dist/services/trades/trades.schemas.d.ts +1 -1
  170. package/dist/services/trading-withdraws/trading-withdraws.d.ts +29 -2
  171. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  172. package/dist/services/trading-withdraws/trading-withdraws.js +74 -11
  173. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  174. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +85 -1
  175. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  176. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +56 -1
  177. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  178. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +3 -3
  179. package/dist/services/trading-withdraws/wallet-message.js +29 -1
  180. package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
  181. package/dist/services/transfers/transfers.js +1 -1
  182. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  183. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  184. package/dist/services/triggers/triggers-output.schemas.d.ts +39 -39
  185. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  186. package/dist/shared/connect-error-mapping.js +5 -0
  187. package/dist/shared/connect-error-mapping.js.map +1 -1
  188. package/dist/shared/error-detail.d.ts +25 -2
  189. package/dist/shared/error-detail.d.ts.map +1 -1
  190. package/dist/shared/error-detail.js +1 -0
  191. package/dist/shared/error-detail.js.map +1 -1
  192. package/dist/shared/error-details/strategies.js +36 -0
  193. package/dist/shared/error-details/strategies.js.map +1 -0
  194. package/dist/wired-services.d.ts.map +1 -1
  195. package/dist/wired-services.js +6 -4
  196. package/dist/wired-services.js.map +1 -1
  197. package/package.json +1 -1
@@ -31,7 +31,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
31
31
  }, undefined>, v.CheckAction<{
32
32
  categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
33
33
  actionRequired?: boolean | undefined;
34
- surfaces: ("assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
34
+ surfaces: ("assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
35
35
  audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
36
36
  startTime?: number | undefined;
37
37
  endTime?: number | undefined;
@@ -42,7 +42,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
42
42
  }, "endTime: must be after startTime">, v.TransformAction<{
43
43
  categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
44
44
  actionRequired?: boolean | undefined;
45
- surfaces: ("assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
45
+ surfaces: ("assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
46
46
  audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
47
47
  startTime?: number | undefined;
48
48
  endTime?: number | undefined;
@@ -77,10 +77,10 @@ declare const ChangelogChangeSchema: v.ObjectSchema<{
77
77
  readonly actionRequired: v.BooleanSchema<undefined>;
78
78
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
79
79
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
80
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
80
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
81
81
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
82
82
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
83
- readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ahead" | "pending" | "unavailable">]>;
83
+ readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "ahead" | "pending">]>;
84
84
  readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
85
85
  readonly seconds: v.BigintSchema<undefined>;
86
86
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -95,7 +95,7 @@ type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;
95
95
  declare const ChangelogSectionSchema: v.ObjectSchema<{
96
96
  readonly heading: v.StringSchema<undefined>;
97
97
  readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
98
- readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>;
98
+ readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
99
99
  readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
100
100
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
101
101
  readonly title: v.StringSchema<undefined>;
@@ -105,10 +105,10 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
105
105
  readonly actionRequired: v.BooleanSchema<undefined>;
106
106
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
107
107
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
108
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
108
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
109
109
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
110
110
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
111
- readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ahead" | "pending" | "unavailable">]>;
111
+ readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "ahead" | "pending">]>;
112
112
  readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
113
113
  readonly seconds: v.BigintSchema<undefined>;
114
114
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -283,7 +283,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
283
283
  readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
284
284
  readonly heading: v.StringSchema<undefined>;
285
285
  readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
286
- readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>;
286
+ readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
287
287
  readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
288
288
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
289
289
  readonly title: v.StringSchema<undefined>;
@@ -293,10 +293,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
293
293
  readonly actionRequired: v.BooleanSchema<undefined>;
294
294
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
295
295
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
296
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
296
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
297
297
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
298
298
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
299
- readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ahead" | "pending" | "unavailable">]>;
299
+ readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "ahead" | "pending">]>;
300
300
  readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
301
301
  readonly seconds: v.BigintSchema<undefined>;
302
302
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -332,7 +332,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
332
332
  sections: {
333
333
  heading: string;
334
334
  summary?: string | undefined;
335
- surface: "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards";
335
+ surface: "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
336
336
  changes: {
337
337
  id: string;
338
338
  title: string;
@@ -342,10 +342,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
342
342
  actionRequired: boolean;
343
343
  migrationGuidance?: string | undefined;
344
344
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
345
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
345
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
346
346
  environmentExceptions: {
347
347
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
348
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
348
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
349
349
  liveAt?: number | undefined;
350
350
  }[];
351
351
  }[];
@@ -354,7 +354,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
354
354
  sections: {
355
355
  heading: string;
356
356
  summary?: string | undefined;
357
- surface: "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards";
357
+ surface: "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
358
358
  changes: {
359
359
  id: string;
360
360
  title: string;
@@ -364,10 +364,10 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
364
364
  actionRequired: boolean;
365
365
  migrationGuidance?: string | undefined;
366
366
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
367
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
367
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
368
368
  environmentExceptions: {
369
369
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
370
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
370
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
371
371
  liveAt?: number | undefined;
372
372
  }[];
373
373
  }[];
@@ -403,10 +403,10 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
403
403
  readonly actionRequired: v.BooleanSchema<undefined>;
404
404
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
405
405
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
406
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
406
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
407
407
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
408
408
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
409
- readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ahead" | "pending" | "unavailable">]>;
409
+ readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "ahead" | "pending">]>;
410
410
  readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
411
411
  readonly seconds: v.BigintSchema<undefined>;
412
412
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -435,10 +435,10 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
435
435
  actionRequired: boolean;
436
436
  migrationGuidance?: string | undefined;
437
437
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
438
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
438
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
439
439
  environmentExceptions: {
440
440
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
441
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
441
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
442
442
  liveAt?: number | undefined;
443
443
  }[];
444
444
  };
@@ -457,10 +457,10 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
457
457
  actionRequired: boolean;
458
458
  migrationGuidance?: string | undefined;
459
459
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
460
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
460
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
461
461
  environmentExceptions: {
462
462
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
463
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
463
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
464
464
  liveAt?: number | undefined;
465
465
  }[];
466
466
  }>]>;
@@ -477,10 +477,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
477
477
  readonly actionRequired: v.BooleanSchema<undefined>;
478
478
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
479
479
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
480
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
480
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
481
481
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
482
482
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
483
- readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ahead" | "pending" | "unavailable">]>;
483
+ readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "ahead" | "pending">]>;
484
484
  readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
485
485
  readonly seconds: v.BigintSchema<undefined>;
486
486
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -509,10 +509,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
509
509
  actionRequired: boolean;
510
510
  migrationGuidance?: string | undefined;
511
511
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
512
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
512
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
513
513
  environmentExceptions: {
514
514
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
515
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
515
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
516
516
  liveAt?: number | undefined;
517
517
  }[];
518
518
  };
@@ -531,10 +531,10 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
531
531
  actionRequired: boolean;
532
532
  migrationGuidance?: string | undefined;
533
533
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
534
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
534
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
535
535
  environmentExceptions: {
536
536
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
537
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
537
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
538
538
  liveAt?: number | undefined;
539
539
  }[];
540
540
  }>]>, undefined>, readonly []>;
@@ -683,10 +683,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
683
683
  readonly actionRequired: v.BooleanSchema<undefined>;
684
684
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
685
685
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
686
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards">]>, undefined>, readonly []>;
686
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
687
687
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
688
688
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
689
- readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "ahead" | "pending" | "unavailable">]>;
689
+ readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "ahead" | "pending">]>;
690
690
  readonly liveAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
691
691
  readonly seconds: v.BigintSchema<undefined>;
692
692
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -708,10 +708,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
708
708
  actionRequired: boolean;
709
709
  migrationGuidance?: string | undefined;
710
710
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
711
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
711
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
712
712
  environmentExceptions: {
713
713
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
714
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
714
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
715
715
  liveAt?: number | undefined;
716
716
  }[];
717
717
  };
@@ -728,10 +728,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
728
728
  actionRequired: boolean;
729
729
  migrationGuidance?: string | undefined;
730
730
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
731
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
731
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
732
732
  environmentExceptions: {
733
733
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
734
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
734
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
735
735
  liveAt?: number | undefined;
736
736
  }[];
737
737
  }>]>, undefined>, readonly []>;
@@ -770,10 +770,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
770
770
  actionRequired: boolean;
771
771
  migrationGuidance?: string | undefined;
772
772
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
773
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
773
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
774
774
  environmentExceptions: {
775
775
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
776
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
776
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
777
777
  liveAt?: number | undefined;
778
778
  }[];
779
779
  }[];
@@ -794,10 +794,10 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
794
794
  actionRequired: boolean;
795
795
  migrationGuidance?: string | undefined;
796
796
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
797
- surfaces: ("unspecified" | "assistant" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
797
+ surfaces: ("unspecified" | "assistant" | "api" | "rewards" | "funding" | "trading" | "accounts" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
798
798
  environmentExceptions: {
799
799
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
800
- availability: "unspecified" | "ahead" | "pending" | "unavailable";
800
+ availability: "unspecified" | "unavailable" | "ahead" | "pending";
801
801
  liveAt?: number | undefined;
802
802
  }[];
803
803
  }[];
@@ -427,7 +427,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
427
427
  readonly seasonResultUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
428
428
  readonly subaccounts: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
429
429
  /** Values computed from partial evidence; show them with an approximation marker. */
430
- readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposits" | "withdrawals" | "transfers" | "tools" | "volume" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "season_result">]>, undefined>, readonly []>;
430
+ readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "tools" | "deposits" | "withdrawals" | "volume" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "transfers" | "season_result">]>, undefined>, readonly []>;
431
431
  }, undefined>;
432
432
  /**
433
433
  * One frozen season recap of a root account and all of its subaccounts. An absent USD value
@@ -36,7 +36,7 @@ declare const DailyClaimTransferSchema: v.ObjectSchema<{
36
36
  }, undefined>;
37
37
  type DailyClaimTransfer = v.InferOutput<typeof DailyClaimTransferSchema>;
38
38
  declare const DailyClaimStatusSchema: v.ObjectSchema<{
39
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "processing" | "available" | "claimed" | "payout_delayed">]>;
39
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "available" | "processing" | "claimed" | "unavailable" | "payout_delayed">]>;
40
40
  readonly resetAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
41
41
  readonly seconds: v.BigintSchema<undefined>;
42
42
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -76,7 +76,7 @@ declare const DailyClaimStatusSchema: v.ObjectSchema<{
76
76
  type DailyClaimStatus = v.InferOutput<typeof DailyClaimStatusSchema>;
77
77
  declare const ClaimDailyRewardResultSchema: v.ObjectSchema<{
78
78
  readonly claimId: v.StringSchema<undefined>;
79
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "processing" | "available" | "claimed" | "payout_delayed">]>;
79
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "available" | "processing" | "claimed" | "unavailable" | "payout_delayed">]>;
80
80
  readonly claimedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
81
81
  readonly seconds: v.BigintSchema<undefined>;
82
82
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -1,6 +1,6 @@
1
1
  import { AuthApiTransports } from "../../shared/transports.js";
2
2
  import { PolyesterMutationOptions, PolyesterRequestOptions } from "../../shared/request-options.js";
3
- import { AppAuthorization, AppAuthorizationInput, AppAuthorizationRedirect, ConnectedApp, RevokeConnectedAppInput } from "./connected-apps.schemas.js";
3
+ import { AppConnectionRequest, AppConnectionRequestInput, AppConnectionRequestRedirect, ConnectedApp, RevokeConnectedAppInput } from "./connected-apps.schemas.js";
4
4
  //#region src/services/connected-apps/connected-apps.d.ts
5
5
  /**
6
6
  * Connects outside apps, such as an AI assistant, to the account with OAuth ("Sign in with
@@ -17,7 +17,7 @@ declare class ConnectedAppsService {
17
17
  * Reads a pending app connection request to show the consent page. An unknown, expired or
18
18
  * already answered request throws `ResourceNotFoundError`.
19
19
  */
20
- getAuthorization(input: AppAuthorizationInput, options?: PolyesterRequestOptions): Promise<AppAuthorization>;
20
+ getConnectionRequest(input: AppConnectionRequestInput, options?: PolyesterRequestOptions): Promise<AppConnectionRequest>;
21
21
  /**
22
22
  * Approves a pending app connection request; send the browser to the returned `redirectUrl`,
23
23
  * which carries a one-time authorization code valid for 60 seconds. Needs MFA enrolled and a
@@ -25,13 +25,13 @@ declare class ConnectedAppsService {
25
25
  * `ResourceNotFoundError`; an account with 20 connected apps throws `PreconditionFailedError`
26
26
  * (`AUTH_CONNECTED_APP_LIMIT_REACHED`).
27
27
  */
28
- approveAuthorization(input: AppAuthorizationInput, options?: PolyesterMutationOptions): Promise<AppAuthorizationRedirect>;
28
+ approveConnectionRequest(input: AppConnectionRequestInput, options?: PolyesterMutationOptions): Promise<AppConnectionRequestRedirect>;
29
29
  /**
30
30
  * Denies a pending app connection request; send the browser to the returned `redirectUrl`,
31
31
  * which carries the `access_denied` error. An unknown, expired or already answered request
32
32
  * throws `ResourceNotFoundError`.
33
33
  */
34
- denyAuthorization(input: AppAuthorizationInput, options?: PolyesterRequestOptions): Promise<AppAuthorizationRedirect>;
34
+ denyConnectionRequest(input: AppConnectionRequestInput, options?: PolyesterRequestOptions): Promise<AppConnectionRequestRedirect>;
35
35
  /** Lists the apps connected to the account, newest first; at most 20. */
36
36
  list(options?: PolyesterRequestOptions): Promise<ConnectedApp[]>;
37
37
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"connected-apps.d.ts","names":[],"sources":["../../../src/services/connected-apps/connected-apps.ts"],"mappings":";;;;;;;;;;;;cA8Ba;;EAGG,YAAA,YAAY;;;;;EAQlB,iBACF,OAAO,uBACP,UAAU,0BACX,QAAQ;;;;;;;;EAgBL,qBACF,OAAO,uBACP,UAAU,2BACX,QAAQ;;;;;;EAcL,kBACF,OAAO,uBACP,UAAU,0BACX,QAAQ;;EAUL,KAAK,UAAU,0BAA0B,QAAQ;;;;;;EAUjD,OAAO,OAAO,yBAAyB,UAAU,0BAA0B"}
1
+ {"version":3,"file":"connected-apps.d.ts","names":[],"sources":["../../../src/services/connected-apps/connected-apps.ts"],"mappings":";;;;;;;;;;;;cA8Ba;;EAGG,YAAA,YAAY;;;;;EAQlB,qBACF,OAAO,2BACP,UAAU,0BACX,QAAQ;;;;;;;;EAgBL,yBACF,OAAO,2BACP,UAAU,2BACX,QAAQ;;;;;;EAcL,sBACF,OAAO,2BACP,UAAU,0BACX,QAAQ;;EAUL,KAAK,UAAU,0BAA0B,QAAQ;;;;;;EAUjD,OAAO,OAAO,yBAAyB,UAAU,0BAA0B"}
@@ -1,7 +1,7 @@
1
1
  import { parse } from "../../shared/validation.js";
2
2
  import { toConnectCallOptions } from "../../shared/request-options.js";
3
3
  import { ConnectedAppService } from "../../gen/auth/v1/connected_apps_pb.js";
4
- import { AppAuthorizationInputSchema, AppAuthorizationRedirectSchema, AppAuthorizationSchema, ConnectedAppsSchema, RevokeConnectedAppInputSchema } from "./connected-apps.schemas.js";
4
+ import { AppConnectionRequestInputSchema, AppConnectionRequestRedirectSchema, AppConnectionRequestSchema, ConnectedAppsSchema, RevokeConnectedAppInputSchema } from "./connected-apps.schemas.js";
5
5
  import { createClient } from "@connectrpc/connect";
6
6
  //#region src/services/connected-apps/connected-apps.ts
7
7
  /**
@@ -21,10 +21,10 @@ var ConnectedAppsService = class {
21
21
  * Reads a pending app connection request to show the consent page. An unknown, expired or
22
22
  * already answered request throws `ResourceNotFoundError`.
23
23
  */
24
- async getAuthorization(input, options) {
25
- const request = parse(AppAuthorizationInputSchema, input);
26
- const response = await this.#client.getAppAuthorization(request, toConnectCallOptions(options));
27
- return parse(AppAuthorizationSchema, response.authorization);
24
+ async getConnectionRequest(input, options) {
25
+ const request = parse(AppConnectionRequestInputSchema, input);
26
+ const response = await this.#client.getAppConnectionRequest(request, toConnectCallOptions(options));
27
+ return parse(AppConnectionRequestSchema, response.connectionRequest);
28
28
  }
29
29
  /**
30
30
  * Approves a pending app connection request; send the browser to the returned `redirectUrl`,
@@ -33,20 +33,20 @@ var ConnectedAppsService = class {
33
33
  * `ResourceNotFoundError`; an account with 20 connected apps throws `PreconditionFailedError`
34
34
  * (`AUTH_CONNECTED_APP_LIMIT_REACHED`).
35
35
  */
36
- async approveAuthorization(input, options) {
37
- const request = parse(AppAuthorizationInputSchema, input);
38
- const response = await this.#client.approveAppAuthorization(request, toConnectCallOptions(options));
39
- return parse(AppAuthorizationRedirectSchema, response);
36
+ async approveConnectionRequest(input, options) {
37
+ const request = parse(AppConnectionRequestInputSchema, input);
38
+ const response = await this.#client.approveAppConnectionRequest(request, toConnectCallOptions(options));
39
+ return parse(AppConnectionRequestRedirectSchema, response);
40
40
  }
41
41
  /**
42
42
  * Denies a pending app connection request; send the browser to the returned `redirectUrl`,
43
43
  * which carries the `access_denied` error. An unknown, expired or already answered request
44
44
  * throws `ResourceNotFoundError`.
45
45
  */
46
- async denyAuthorization(input, options) {
47
- const request = parse(AppAuthorizationInputSchema, input);
48
- const response = await this.#client.denyAppAuthorization(request, toConnectCallOptions(options));
49
- return parse(AppAuthorizationRedirectSchema, response);
46
+ async denyConnectionRequest(input, options) {
47
+ const request = parse(AppConnectionRequestInputSchema, input);
48
+ const response = await this.#client.denyAppConnectionRequest(request, toConnectCallOptions(options));
49
+ return parse(AppConnectionRequestRedirectSchema, response);
50
50
  }
51
51
  /** Lists the apps connected to the account, newest first; at most 20. */
52
52
  async list(options) {
@@ -1 +1 @@
1
- {"version":3,"file":"connected-apps.js","names":["#client","Proto.ConnectedAppService"],"sources":["../../../src/services/connected-apps/connected-apps.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/auth/v1/connected_apps_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n AppAuthorizationInputSchema,\n AppAuthorizationRedirectSchema,\n AppAuthorizationSchema,\n ConnectedAppsSchema,\n RevokeConnectedAppInputSchema,\n type AppAuthorization,\n type AppAuthorizationInput,\n type AppAuthorizationRedirect,\n type ConnectedApp,\n type RevokeConnectedAppInput,\n} from \"./connected-apps.schemas.js\";\n\n/**\n * Connects outside apps, such as an AI assistant, to the account with OAuth (\"Sign in with\n * Polyester\"), and lists and disconnects them. Session only: the website's consent page and\n * settings call these, and API keys are refused. A connected app uses the account as the\n * signed-in website does, for the scopes granted; it never moves money out of the account or\n * changes its security settings. A connection lasts until it is disconnected or expires; signing\n * out does not end it.\n */\nexport class ConnectedAppsService {\n #client: Client<typeof Proto.ConnectedAppService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(Proto.ConnectedAppService, transports.authApi);\n }\n\n /**\n * Reads a pending app connection request to show the consent page. An unknown, expired or\n * already answered request throws `ResourceNotFoundError`.\n */\n async getAuthorization(\n input: AppAuthorizationInput,\n options?: PolyesterRequestOptions,\n ): Promise<AppAuthorization> {\n const request = parse(AppAuthorizationInputSchema, input);\n const response = await this.#client.getAppAuthorization(\n request,\n toConnectCallOptions(options),\n );\n return parse(AppAuthorizationSchema, response.authorization);\n }\n\n /**\n * Approves a pending app connection request; send the browser to the returned `redirectUrl`,\n * which carries a one-time authorization code valid for 60 seconds. Needs MFA enrolled and a\n * fresh `stepUpToken`. An unknown, expired or already answered request throws\n * `ResourceNotFoundError`; an account with 20 connected apps throws `PreconditionFailedError`\n * (`AUTH_CONNECTED_APP_LIMIT_REACHED`).\n */\n async approveAuthorization(\n input: AppAuthorizationInput,\n options?: PolyesterMutationOptions,\n ): Promise<AppAuthorizationRedirect> {\n const request = parse(AppAuthorizationInputSchema, input);\n const response = await this.#client.approveAppAuthorization(\n request,\n toConnectCallOptions(options),\n );\n return parse(AppAuthorizationRedirectSchema, response);\n }\n\n /**\n * Denies a pending app connection request; send the browser to the returned `redirectUrl`,\n * which carries the `access_denied` error. An unknown, expired or already answered request\n * throws `ResourceNotFoundError`.\n */\n async denyAuthorization(\n input: AppAuthorizationInput,\n options?: PolyesterRequestOptions,\n ): Promise<AppAuthorizationRedirect> {\n const request = parse(AppAuthorizationInputSchema, input);\n const response = await this.#client.denyAppAuthorization(\n request,\n toConnectCallOptions(options),\n );\n return parse(AppAuthorizationRedirectSchema, response);\n }\n\n /** Lists the apps connected to the account, newest first; at most 20. */\n async list(options?: PolyesterRequestOptions): Promise<ConnectedApp[]> {\n const response = await this.#client.listConnectedApps({}, toConnectCallOptions(options));\n return parse(ConnectedAppsSchema, response.apps);\n }\n\n /**\n * Disconnects an app; its access and refresh tokens stop working at once. Disconnecting an\n * app already disconnected or expired succeeds; an ID that is not one of the account's\n * connected apps throws `ResourceNotFoundError`.\n */\n async revoke(input: RevokeConnectedAppInput, options?: PolyesterRequestOptions): Promise<void> {\n const request = parse(RevokeConnectedAppInputSchema, input);\n await this.#client.revokeConnectedApp(request, toConnectCallOptions(options));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AA8BA,IAAa,uBAAb,MAAkC;CAC9B;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,qBAA2B,WAAW,OAAO;CAC7E;;;;;CAMA,MAAM,iBACF,OACA,SACyB;EACzB,MAAM,UAAU,MAAM,6BAA6B,KAAK;EACxD,MAAM,WAAW,MAAM,KAAKD,QAAQ,oBAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,wBAAwB,SAAS,aAAa;CAC/D;;;;;;;;CASA,MAAM,qBACF,OACA,SACiC;EACjC,MAAM,UAAU,MAAM,6BAA6B,KAAK;EACxD,MAAM,WAAW,MAAM,KAAKA,QAAQ,wBAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,gCAAgC,QAAQ;CACzD;;;;;;CAOA,MAAM,kBACF,OACA,SACiC;EACjC,MAAM,UAAU,MAAM,6BAA6B,KAAK;EACxD,MAAM,WAAW,MAAM,KAAKA,QAAQ,qBAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,gCAAgC,QAAQ;CACzD;;CAGA,MAAM,KAAK,SAA4D;EACnE,MAAM,WAAW,MAAM,KAAKA,QAAQ,kBAAkB,CAAC,GAAG,qBAAqB,OAAO,CAAC;EACvF,OAAO,MAAM,qBAAqB,SAAS,IAAI;CACnD;;;;;;CAOA,MAAM,OAAO,OAAgC,SAAkD;EAC3F,MAAM,UAAU,MAAM,+BAA+B,KAAK;EAC1D,MAAM,KAAKA,QAAQ,mBAAmB,SAAS,qBAAqB,OAAO,CAAC;CAChF;AACJ"}
1
+ {"version":3,"file":"connected-apps.js","names":["#client","Proto.ConnectedAppService"],"sources":["../../../src/services/connected-apps/connected-apps.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/auth/v1/connected_apps_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n AppConnectionRequestInputSchema,\n AppConnectionRequestRedirectSchema,\n AppConnectionRequestSchema,\n ConnectedAppsSchema,\n RevokeConnectedAppInputSchema,\n type AppConnectionRequest,\n type AppConnectionRequestInput,\n type AppConnectionRequestRedirect,\n type ConnectedApp,\n type RevokeConnectedAppInput,\n} from \"./connected-apps.schemas.js\";\n\n/**\n * Connects outside apps, such as an AI assistant, to the account with OAuth (\"Sign in with\n * Polyester\"), and lists and disconnects them. Session only: the website's consent page and\n * settings call these, and API keys are refused. A connected app uses the account as the\n * signed-in website does, for the scopes granted; it never moves money out of the account or\n * changes its security settings. A connection lasts until it is disconnected or expires; signing\n * out does not end it.\n */\nexport class ConnectedAppsService {\n #client: Client<typeof Proto.ConnectedAppService>;\n\n constructor(transports: AuthApiTransports) {\n this.#client = createClient(Proto.ConnectedAppService, transports.authApi);\n }\n\n /**\n * Reads a pending app connection request to show the consent page. An unknown, expired or\n * already answered request throws `ResourceNotFoundError`.\n */\n async getConnectionRequest(\n input: AppConnectionRequestInput,\n options?: PolyesterRequestOptions,\n ): Promise<AppConnectionRequest> {\n const request = parse(AppConnectionRequestInputSchema, input);\n const response = await this.#client.getAppConnectionRequest(\n request,\n toConnectCallOptions(options),\n );\n return parse(AppConnectionRequestSchema, response.connectionRequest);\n }\n\n /**\n * Approves a pending app connection request; send the browser to the returned `redirectUrl`,\n * which carries a one-time authorization code valid for 60 seconds. Needs MFA enrolled and a\n * fresh `stepUpToken`. An unknown, expired or already answered request throws\n * `ResourceNotFoundError`; an account with 20 connected apps throws `PreconditionFailedError`\n * (`AUTH_CONNECTED_APP_LIMIT_REACHED`).\n */\n async approveConnectionRequest(\n input: AppConnectionRequestInput,\n options?: PolyesterMutationOptions,\n ): Promise<AppConnectionRequestRedirect> {\n const request = parse(AppConnectionRequestInputSchema, input);\n const response = await this.#client.approveAppConnectionRequest(\n request,\n toConnectCallOptions(options),\n );\n return parse(AppConnectionRequestRedirectSchema, response);\n }\n\n /**\n * Denies a pending app connection request; send the browser to the returned `redirectUrl`,\n * which carries the `access_denied` error. An unknown, expired or already answered request\n * throws `ResourceNotFoundError`.\n */\n async denyConnectionRequest(\n input: AppConnectionRequestInput,\n options?: PolyesterRequestOptions,\n ): Promise<AppConnectionRequestRedirect> {\n const request = parse(AppConnectionRequestInputSchema, input);\n const response = await this.#client.denyAppConnectionRequest(\n request,\n toConnectCallOptions(options),\n );\n return parse(AppConnectionRequestRedirectSchema, response);\n }\n\n /** Lists the apps connected to the account, newest first; at most 20. */\n async list(options?: PolyesterRequestOptions): Promise<ConnectedApp[]> {\n const response = await this.#client.listConnectedApps({}, toConnectCallOptions(options));\n return parse(ConnectedAppsSchema, response.apps);\n }\n\n /**\n * Disconnects an app; its access and refresh tokens stop working at once. Disconnecting an\n * app already disconnected or expired succeeds; an ID that is not one of the account's\n * connected apps throws `ResourceNotFoundError`.\n */\n async revoke(input: RevokeConnectedAppInput, options?: PolyesterRequestOptions): Promise<void> {\n const request = parse(RevokeConnectedAppInputSchema, input);\n await this.#client.revokeConnectedApp(request, toConnectCallOptions(options));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AA8BA,IAAa,uBAAb,MAAkC;CAC9B;CAEA,YAAY,YAA+B;EACvC,KAAKA,UAAU,aAAaC,qBAA2B,WAAW,OAAO;CAC7E;;;;;CAMA,MAAM,qBACF,OACA,SAC6B;EAC7B,MAAM,UAAU,MAAM,iCAAiC,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKD,QAAQ,wBAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,4BAA4B,SAAS,iBAAiB;CACvE;;;;;;;;CASA,MAAM,yBACF,OACA,SACqC;EACrC,MAAM,UAAU,MAAM,iCAAiC,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKA,QAAQ,4BAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,oCAAoC,QAAQ;CAC7D;;;;;;CAOA,MAAM,sBACF,OACA,SACqC;EACrC,MAAM,UAAU,MAAM,iCAAiC,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKA,QAAQ,yBAChC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,oCAAoC,QAAQ;CAC7D;;CAGA,MAAM,KAAK,SAA4D;EACnE,MAAM,WAAW,MAAM,KAAKA,QAAQ,kBAAkB,CAAC,GAAG,qBAAqB,OAAO,CAAC;EACvF,OAAO,MAAM,qBAAqB,SAAS,IAAI;CACnD;;;;;;CAOA,MAAM,OAAO,OAAgC,SAAkD;EAC3F,MAAM,UAAU,MAAM,+BAA+B,KAAK;EAC1D,MAAM,KAAKA,QAAQ,mBAAmB,SAAS,qBAAqB,OAAO,CAAC;CAChF;AACJ"}
@@ -1,11 +1,11 @@
1
1
  import * as v from "valibot";
2
2
  //#region src/services/connected-apps/connected-apps.schemas.d.ts
3
3
  /** Selects a pending app connection request. */
4
- declare const AppAuthorizationInputSchema: v.StrictObjectSchema<{
4
+ declare const AppConnectionRequestInputSchema: v.StrictObjectSchema<{
5
5
  /** The `request` query parameter the authorization endpoint gave the consent page. */
6
6
  readonly requestId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
7
7
  }, undefined>;
8
- type AppAuthorizationInput = v.InferInput<typeof AppAuthorizationInputSchema>;
8
+ type AppConnectionRequestInput = v.InferInput<typeof AppConnectionRequestInputSchema>;
9
9
  declare const RevokeConnectedAppInputSchema: v.StrictObjectSchema<{
10
10
  /** `connectedAppId` from `connectedApps.list`. */
11
11
  readonly connectedAppId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
@@ -18,7 +18,7 @@ declare const ConnectedAppClientSchema: v.ObjectSchema<{
18
18
  }, undefined>;
19
19
  type ConnectedAppClient = v.InferOutput<typeof ConnectedAppClientSchema>;
20
20
  /** A pending request from an app to connect to the account. Times are epoch milliseconds. */
21
- declare const AppAuthorizationSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
21
+ declare const AppConnectionRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
22
22
  readonly client: v.OptionalSchema<v.ObjectSchema<{
23
23
  readonly clientId: v.StringSchema<undefined>;
24
24
  readonly name: v.StringSchema<undefined>;
@@ -59,7 +59,7 @@ declare const AppAuthorizationSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
59
59
  /** After this the request can no longer be approved or denied. */
60
60
  expiresAt: number | null;
61
61
  }>]>;
62
- type AppAuthorization = v.InferOutput<typeof AppAuthorizationSchema>;
62
+ type AppConnectionRequest = v.InferOutput<typeof AppConnectionRequestSchema>;
63
63
  /** An app connected to the account. Times are epoch milliseconds. */
64
64
  declare const ConnectedAppSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
65
65
  readonly connectedAppId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
@@ -123,10 +123,10 @@ declare const ConnectedAppSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
123
123
  }>]>;
124
124
  type ConnectedApp = v.InferOutput<typeof ConnectedAppSchema>;
125
125
  /** Where to send the browser to hand the app its answer. */
126
- declare const AppAuthorizationRedirectSchema: v.ObjectSchema<{
126
+ declare const AppConnectionRequestRedirectSchema: v.ObjectSchema<{
127
127
  readonly redirectUrl: v.StringSchema<undefined>;
128
128
  }, undefined>;
129
- type AppAuthorizationRedirect = v.InferOutput<typeof AppAuthorizationRedirectSchema>;
129
+ type AppConnectionRequestRedirect = v.InferOutput<typeof AppConnectionRequestRedirectSchema>;
130
130
  //#endregion
131
- export { AppAuthorization, AppAuthorizationInput, AppAuthorizationInputSchema, AppAuthorizationRedirect, AppAuthorizationRedirectSchema, AppAuthorizationSchema, ConnectedApp, ConnectedAppClient, ConnectedAppClientSchema, ConnectedAppSchema, RevokeConnectedAppInput, RevokeConnectedAppInputSchema };
131
+ export { AppConnectionRequest, AppConnectionRequestInput, AppConnectionRequestInputSchema, AppConnectionRequestRedirect, AppConnectionRequestRedirectSchema, AppConnectionRequestSchema, ConnectedApp, ConnectedAppClient, ConnectedAppClientSchema, ConnectedAppSchema, RevokeConnectedAppInput, RevokeConnectedAppInputSchema };
132
132
  //# sourceMappingURL=connected-apps.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connected-apps.schemas.d.ts","names":[],"sources":["../../../src/services/connected-apps/connected-apps.schemas.ts"],"mappings":";;;cAKa,6BAA2B,EAAA;;;;KAK5B,wBAAwB,EAAE,kBAAkB;cAE3C,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,kBAAkB;;cAG7C,0BAAwB,EAAA;;;;KAKzB,qBAAqB,EAAE,mBAAmB;;cAKzC,wBAAsB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqBvB,mBAAmB,EAAE,mBAAmB;;cAGvC,oBAAkB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BnB,eAAe,EAAE,mBAAmB;;cAKnC,gCAA8B,EAAA;wBAA9B,EAAA;;KAED,2BAA2B,EAAE,mBAAmB"}
1
+ {"version":3,"file":"connected-apps.schemas.d.ts","names":[],"sources":["../../../src/services/connected-apps/connected-apps.schemas.ts"],"mappings":";;;cAKa,iCAA+B,EAAA;;;;KAKhC,4BAA4B,EAAE,kBAAkB;cAE/C,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,kBAAkB;;cAG7C,0BAAwB,EAAA;;;;KAKzB,qBAAqB,EAAE,mBAAmB;;cAKzC,4BAA0B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqB3B,uBAAuB,EAAE,mBAAmB;;cAG3C,oBAAkB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BnB,eAAe,EAAE,mBAAmB;;cAKnC,oCAAkC,EAAA;wBAAlC,EAAA;;KAED,+BAA+B,EAAE,mBAAmB"}
@@ -3,7 +3,7 @@ import { PositiveStringInputSchema } from "../shared.js";
3
3
  import * as v from "valibot";
4
4
  //#region src/services/connected-apps/connected-apps.schemas.ts
5
5
  /** Selects a pending app connection request. */
6
- const AppAuthorizationInputSchema = v.strictObject({
6
+ const AppConnectionRequestInputSchema = v.strictObject({
7
7
  /** The `request` query parameter the authorization endpoint gave the consent page. */
8
8
  requestId: PositiveStringInputSchema });
9
9
  const RevokeConnectedAppInputSchema = v.strictObject({
@@ -19,22 +19,22 @@ const ClientSchema = v.optional(ConnectedAppClientSchema, {
19
19
  name: ""
20
20
  });
21
21
  /** A pending request from an app to connect to the account. Times are epoch milliseconds. */
22
- const AppAuthorizationSchema = v.pipe(v.object({
22
+ const AppConnectionRequestSchema = v.pipe(v.object({
23
23
  client: ClientSchema,
24
24
  scopes: v.array(v.string()),
25
25
  resource: v.string(),
26
26
  redirectHost: v.string(),
27
27
  expiresAt: OptionalTimestampMsSchema
28
- }), v.transform((authorization) => ({
29
- client: authorization.client,
28
+ }), v.transform((request) => ({
29
+ client: request.client,
30
30
  /** OAuth scopes the app asks for, e.g. `"account:read"`. */
31
- scopes: authorization.scopes,
31
+ scopes: request.scopes,
32
32
  /** Absolute URL of the server the app will use the account through. */
33
- resource: authorization.resource,
33
+ resource: request.resource,
34
34
  /** Host the app receives the answer on. */
35
- redirectHost: authorization.redirectHost,
35
+ redirectHost: request.redirectHost,
36
36
  /** After this the request can no longer be approved or denied. */
37
- expiresAt: authorization.expiresAt ?? null
37
+ expiresAt: request.expiresAt ?? null
38
38
  })));
39
39
  /** An app connected to the account. Times are epoch milliseconds. */
40
40
  const ConnectedAppSchema = v.pipe(v.object({
@@ -61,8 +61,8 @@ const ConnectedAppSchema = v.pipe(v.object({
61
61
  })));
62
62
  const ConnectedAppsSchema = v.array(ConnectedAppSchema);
63
63
  /** Where to send the browser to hand the app its answer. */
64
- const AppAuthorizationRedirectSchema = v.object({ redirectUrl: v.string() });
64
+ const AppConnectionRequestRedirectSchema = v.object({ redirectUrl: v.string() });
65
65
  //#endregion
66
- export { AppAuthorizationInputSchema, AppAuthorizationRedirectSchema, AppAuthorizationSchema, ConnectedAppClientSchema, ConnectedAppSchema, ConnectedAppsSchema, RevokeConnectedAppInputSchema };
66
+ export { AppConnectionRequestInputSchema, AppConnectionRequestRedirectSchema, AppConnectionRequestSchema, ConnectedAppClientSchema, ConnectedAppSchema, ConnectedAppsSchema, RevokeConnectedAppInputSchema };
67
67
 
68
68
  //# sourceMappingURL=connected-apps.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connected-apps.schemas.js","names":[],"sources":["../../../src/services/connected-apps/connected-apps.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { OptionalTimestampMsSchema, PublicIdSchema, idInputSchema } from \"../../shared/schemas.js\";\nimport { PositiveStringInputSchema } from \"../shared.js\";\n\n/** Selects a pending app connection request. */\nexport const AppAuthorizationInputSchema = v.strictObject({\n /** The `request` query parameter the authorization endpoint gave the consent page. */\n requestId: PositiveStringInputSchema,\n});\n\nexport type AppAuthorizationInput = v.InferInput<typeof AppAuthorizationInputSchema>;\n\nexport const RevokeConnectedAppInputSchema = v.strictObject({\n /** `connectedAppId` from `connectedApps.list`. */\n connectedAppId: idInputSchema(\"connectedAppId\"),\n});\n\nexport type RevokeConnectedAppInput = v.InferInput<typeof RevokeConnectedAppInputSchema>;\n\n/** The OAuth client of an app, as it presents itself on the consent page. */\nexport const ConnectedAppClientSchema = v.object({\n clientId: v.string(),\n name: v.string(),\n});\n\nexport type ConnectedAppClient = v.InferOutput<typeof ConnectedAppClientSchema>;\n\nconst ClientSchema = v.optional(ConnectedAppClientSchema, { clientId: \"\", name: \"\" });\n\n/** A pending request from an app to connect to the account. Times are epoch milliseconds. */\nexport const AppAuthorizationSchema = v.pipe(\n v.object({\n client: ClientSchema,\n scopes: v.array(v.string()),\n resource: v.string(),\n redirectHost: v.string(),\n expiresAt: OptionalTimestampMsSchema,\n }),\n v.transform((authorization) => ({\n client: authorization.client,\n /** OAuth scopes the app asks for, e.g. `\"account:read\"`. */\n scopes: authorization.scopes,\n /** Absolute URL of the server the app will use the account through. */\n resource: authorization.resource,\n /** Host the app receives the answer on. */\n redirectHost: authorization.redirectHost,\n /** After this the request can no longer be approved or denied. */\n expiresAt: authorization.expiresAt ?? null,\n })),\n);\n\nexport type AppAuthorization = v.InferOutput<typeof AppAuthorizationSchema>;\n\n/** An app connected to the account. Times are epoch milliseconds. */\nexport const ConnectedAppSchema = v.pipe(\n v.object({\n connectedAppId: PublicIdSchema,\n client: ClientSchema,\n scopes: v.array(v.string()),\n resource: v.string(),\n connectedAt: OptionalTimestampMsSchema,\n lastUsedAt: OptionalTimestampMsSchema,\n expiresAt: OptionalTimestampMsSchema,\n }),\n v.transform((app) => ({\n /** Pass to `connectedApps.revoke`. */\n connectedAppId: app.connectedAppId,\n client: app.client,\n /** OAuth scopes the account granted the app. */\n scopes: app.scopes,\n /** Absolute URL of the server the app uses the account through. */\n resource: app.resource,\n connectedAt: app.connectedAt ?? null,\n /** Last use or refresh, at minute precision; null until the app first uses its access. */\n lastUsedAt: app.lastUsedAt ?? null,\n /** The connection ends then unless it is disconnected first. */\n expiresAt: app.expiresAt ?? null,\n })),\n);\n\nexport type ConnectedApp = v.InferOutput<typeof ConnectedAppSchema>;\n\nexport const ConnectedAppsSchema = v.array(ConnectedAppSchema);\n\n/** Where to send the browser to hand the app its answer. */\nexport const AppAuthorizationRedirectSchema = v.object({ redirectUrl: v.string() });\n\nexport type AppAuthorizationRedirect = v.InferOutput<typeof AppAuthorizationRedirectSchema>;\n"],"mappings":";;;;;AAKA,MAAa,8BAA8B,EAAE,aAAa;;AAEtD,WAAW,0BACf,CAAC;AAID,MAAa,gCAAgC,EAAE,aAAa;;AAExD,gBAAgB,cAAc,gBAAgB,EAClD,CAAC;;AAKD,MAAa,2BAA2B,EAAE,OAAO;CAC7C,UAAU,EAAE,OAAO;CACnB,MAAM,EAAE,OAAO;AACnB,CAAC;AAID,MAAM,eAAe,EAAE,SAAS,0BAA0B;CAAE,UAAU;CAAI,MAAM;AAAG,CAAC;;AAGpF,MAAa,yBAAyB,EAAE,KACpC,EAAE,OAAO;CACL,QAAQ;CACR,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;CAC1B,UAAU,EAAE,OAAO;CACnB,cAAc,EAAE,OAAO;CACvB,WAAW;AACf,CAAC,GACD,EAAE,WAAW,mBAAmB;CAC5B,QAAQ,cAAc;;CAEtB,QAAQ,cAAc;;CAEtB,UAAU,cAAc;;CAExB,cAAc,cAAc;;CAE5B,WAAW,cAAc,aAAa;AAC1C,EAAE,CACN;;AAKA,MAAa,qBAAqB,EAAE,KAChC,EAAE,OAAO;CACL,gBAAgB;CAChB,QAAQ;CACR,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;CAC1B,UAAU,EAAE,OAAO;CACnB,aAAa;CACb,YAAY;CACZ,WAAW;AACf,CAAC,GACD,EAAE,WAAW,SAAS;;CAElB,gBAAgB,IAAI;CACpB,QAAQ,IAAI;;CAEZ,QAAQ,IAAI;;CAEZ,UAAU,IAAI;CACd,aAAa,IAAI,eAAe;;CAEhC,YAAY,IAAI,cAAc;;CAE9B,WAAW,IAAI,aAAa;AAChC,EAAE,CACN;AAIA,MAAa,sBAAsB,EAAE,MAAM,kBAAkB;;AAG7D,MAAa,iCAAiC,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"connected-apps.schemas.js","names":[],"sources":["../../../src/services/connected-apps/connected-apps.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { OptionalTimestampMsSchema, PublicIdSchema, idInputSchema } from \"../../shared/schemas.js\";\nimport { PositiveStringInputSchema } from \"../shared.js\";\n\n/** Selects a pending app connection request. */\nexport const AppConnectionRequestInputSchema = v.strictObject({\n /** The `request` query parameter the authorization endpoint gave the consent page. */\n requestId: PositiveStringInputSchema,\n});\n\nexport type AppConnectionRequestInput = v.InferInput<typeof AppConnectionRequestInputSchema>;\n\nexport const RevokeConnectedAppInputSchema = v.strictObject({\n /** `connectedAppId` from `connectedApps.list`. */\n connectedAppId: idInputSchema(\"connectedAppId\"),\n});\n\nexport type RevokeConnectedAppInput = v.InferInput<typeof RevokeConnectedAppInputSchema>;\n\n/** The OAuth client of an app, as it presents itself on the consent page. */\nexport const ConnectedAppClientSchema = v.object({\n clientId: v.string(),\n name: v.string(),\n});\n\nexport type ConnectedAppClient = v.InferOutput<typeof ConnectedAppClientSchema>;\n\nconst ClientSchema = v.optional(ConnectedAppClientSchema, { clientId: \"\", name: \"\" });\n\n/** A pending request from an app to connect to the account. Times are epoch milliseconds. */\nexport const AppConnectionRequestSchema = v.pipe(\n v.object({\n client: ClientSchema,\n scopes: v.array(v.string()),\n resource: v.string(),\n redirectHost: v.string(),\n expiresAt: OptionalTimestampMsSchema,\n }),\n v.transform((request) => ({\n client: request.client,\n /** OAuth scopes the app asks for, e.g. `\"account:read\"`. */\n scopes: request.scopes,\n /** Absolute URL of the server the app will use the account through. */\n resource: request.resource,\n /** Host the app receives the answer on. */\n redirectHost: request.redirectHost,\n /** After this the request can no longer be approved or denied. */\n expiresAt: request.expiresAt ?? null,\n })),\n);\n\nexport type AppConnectionRequest = v.InferOutput<typeof AppConnectionRequestSchema>;\n\n/** An app connected to the account. Times are epoch milliseconds. */\nexport const ConnectedAppSchema = v.pipe(\n v.object({\n connectedAppId: PublicIdSchema,\n client: ClientSchema,\n scopes: v.array(v.string()),\n resource: v.string(),\n connectedAt: OptionalTimestampMsSchema,\n lastUsedAt: OptionalTimestampMsSchema,\n expiresAt: OptionalTimestampMsSchema,\n }),\n v.transform((app) => ({\n /** Pass to `connectedApps.revoke`. */\n connectedAppId: app.connectedAppId,\n client: app.client,\n /** OAuth scopes the account granted the app. */\n scopes: app.scopes,\n /** Absolute URL of the server the app uses the account through. */\n resource: app.resource,\n connectedAt: app.connectedAt ?? null,\n /** Last use or refresh, at minute precision; null until the app first uses its access. */\n lastUsedAt: app.lastUsedAt ?? null,\n /** The connection ends then unless it is disconnected first. */\n expiresAt: app.expiresAt ?? null,\n })),\n);\n\nexport type ConnectedApp = v.InferOutput<typeof ConnectedAppSchema>;\n\nexport const ConnectedAppsSchema = v.array(ConnectedAppSchema);\n\n/** Where to send the browser to hand the app its answer. */\nexport const AppConnectionRequestRedirectSchema = v.object({ redirectUrl: v.string() });\n\nexport type AppConnectionRequestRedirect = v.InferOutput<typeof AppConnectionRequestRedirectSchema>;\n"],"mappings":";;;;;AAKA,MAAa,kCAAkC,EAAE,aAAa;;AAE1D,WAAW,0BACf,CAAC;AAID,MAAa,gCAAgC,EAAE,aAAa;;AAExD,gBAAgB,cAAc,gBAAgB,EAClD,CAAC;;AAKD,MAAa,2BAA2B,EAAE,OAAO;CAC7C,UAAU,EAAE,OAAO;CACnB,MAAM,EAAE,OAAO;AACnB,CAAC;AAID,MAAM,eAAe,EAAE,SAAS,0BAA0B;CAAE,UAAU;CAAI,MAAM;AAAG,CAAC;;AAGpF,MAAa,6BAA6B,EAAE,KACxC,EAAE,OAAO;CACL,QAAQ;CACR,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;CAC1B,UAAU,EAAE,OAAO;CACnB,cAAc,EAAE,OAAO;CACvB,WAAW;AACf,CAAC,GACD,EAAE,WAAW,aAAa;CACtB,QAAQ,QAAQ;;CAEhB,QAAQ,QAAQ;;CAEhB,UAAU,QAAQ;;CAElB,cAAc,QAAQ;;CAEtB,WAAW,QAAQ,aAAa;AACpC,EAAE,CACN;;AAKA,MAAa,qBAAqB,EAAE,KAChC,EAAE,OAAO;CACL,gBAAgB;CAChB,QAAQ;CACR,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;CAC1B,UAAU,EAAE,OAAO;CACnB,aAAa;CACb,YAAY;CACZ,WAAW;AACf,CAAC,GACD,EAAE,WAAW,SAAS;;CAElB,gBAAgB,IAAI;CACpB,QAAQ,IAAI;;CAEZ,QAAQ,IAAI;;CAEZ,UAAU,IAAI;CACd,aAAa,IAAI,eAAe;;CAEhC,YAAY,IAAI,cAAc;;CAE9B,WAAW,IAAI,aAAa;AAChC,EAAE,CACN;AAIA,MAAa,sBAAsB,EAAE,MAAM,kBAAkB;;AAG7D,MAAa,qCAAqC,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC"}
@@ -1,2 +1,2 @@
1
- import { AppAuthorization, AppAuthorizationInput, AppAuthorizationRedirect, ConnectedApp, ConnectedAppClient, RevokeConnectedAppInput } from "./connected-apps.schemas.js";
2
- export type { AppAuthorization, AppAuthorizationInput, AppAuthorizationRedirect, ConnectedApp, ConnectedAppClient, RevokeConnectedAppInput };
1
+ import { AppConnectionRequest, AppConnectionRequestInput, AppConnectionRequestRedirect, ConnectedApp, ConnectedAppClient, RevokeConnectedAppInput } from "./connected-apps.schemas.js";
2
+ export type { AppConnectionRequest, AppConnectionRequestInput, AppConnectionRequestRedirect, ConnectedApp, ConnectedAppClient, RevokeConnectedAppInput };