@polyester/sdk 0.35.0 → 0.36.0-devnet-20261112202000

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 (281) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/browser-core.js +1 -1
  3. package/dist/catalogs/snapshot-validation.js +5 -0
  4. package/dist/catalogs/snapshot-validation.js.map +1 -1
  5. package/dist/client.d.ts +2 -0
  6. package/dist/client.d.ts.map +1 -1
  7. package/dist/client.js +2 -0
  8. package/dist/client.js.map +1 -1
  9. package/dist/gen/ai/v1/assistant_pb.d.ts +145 -3
  10. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  11. package/dist/gen/ai/v1/assistant_pb.js +33 -3
  12. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  13. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +12 -6
  14. package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -1
  15. package/dist/gen/alerts/v1/price_alerts_pb.js +3 -1
  16. package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -1
  17. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  18. package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
  19. package/dist/gen/auth/v1/auth_pb.d.ts +1 -1
  20. package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
  21. package/dist/gen/auth/v1/policies_pb.d.ts +15 -2
  22. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  23. package/dist/gen/auth/v1/policies_pb.js +14 -1
  24. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  25. package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
  26. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
  27. package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
  28. package/dist/gen/auth/v1/subaccounts_pb.d.ts +15 -2
  29. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/subaccounts_pb.js +15 -2
  31. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  32. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
  33. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
  34. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  35. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
  36. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
  37. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
  38. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
  39. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
  40. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
  41. package/dist/gen/changelog/v1/changelog_pb.d.ts +8 -2
  42. package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
  43. package/dist/gen/changelog/v1/changelog_pb.js +7 -1
  44. package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
  45. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
  46. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  47. package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
  48. package/dist/gen/index.d.ts +2 -1
  49. package/dist/gen/index.js +22 -21
  50. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
  51. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
  52. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +58 -6
  53. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  54. package/dist/gen/marketdata/v1/marketdata_pb.js +10 -4
  55. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  56. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
  57. package/dist/gen/notifications/v1/notifications_pb.d.ts +827 -0
  58. package/dist/gen/notifications/v1/notifications_pb.d.ts.map +1 -0
  59. package/dist/gen/notifications/v1/notifications_pb.js +346 -0
  60. package/dist/gen/notifications/v1/notifications_pb.js.map +1 -0
  61. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
  62. package/dist/gen/orders/v1/orders_pb.d.ts +248 -20
  63. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  64. package/dist/gen/orders/v1/orders_pb.js +188 -66
  65. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  66. package/dist/gen/orders/v1/orders_read_pb.d.ts +74 -6
  67. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  68. package/dist/gen/orders/v1/orders_read_pb.js +40 -5
  69. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  70. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
  71. package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
  72. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
  73. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
  74. package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
  75. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1195 -190
  76. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  77. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +317 -7
  78. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  79. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +370 -7
  80. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  81. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +237 -14
  82. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  83. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +1 -1
  84. package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
  85. package/dist/gen/system/v1/system_pb.d.ts +1 -1
  86. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +40 -2
  87. package/dist/gen/tradews/v1/trade_ws_pb.d.ts.map +1 -1
  88. package/dist/gen/tradews/v1/trade_ws_pb.js +2 -1
  89. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  90. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +1 -1
  91. package/dist/gen/triggers/v1/triggers_pb.d.ts +527 -14
  92. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  93. package/dist/gen/triggers/v1/triggers_pb.js +126 -26
  94. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  95. package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
  96. package/dist/index.d.ts +7 -4
  97. package/dist/index.js +1 -1
  98. package/dist/realtime/snapshot-then-stream.js +1 -1
  99. package/dist/server-core.js +3 -3
  100. package/dist/services/accounts/accounts.js +1 -1
  101. package/dist/services/accounts/accounts.schemas.js +1 -1
  102. package/dist/services/address-book/address-book.js +1 -1
  103. package/dist/services/api-keys/api-keys.js +1 -1
  104. package/dist/services/api-keys/api-keys.schemas.js +1 -1
  105. package/dist/services/assistant/assistant-events.schemas.d.ts +63 -45
  106. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
  107. package/dist/services/assistant/assistant.codecs.d.ts +1 -1
  108. package/dist/services/assistant/assistant.codecs.js +1 -1
  109. package/dist/services/assistant/assistant.codecs.js.map +1 -1
  110. package/dist/services/assistant/assistant.d.ts +18 -3
  111. package/dist/services/assistant/assistant.d.ts.map +1 -1
  112. package/dist/services/assistant/assistant.js +27 -4
  113. package/dist/services/assistant/assistant.js.map +1 -1
  114. package/dist/services/assistant/assistant.schemas.d.ts +14 -2
  115. package/dist/services/assistant/assistant.schemas.d.ts.map +1 -1
  116. package/dist/services/assistant/assistant.schemas.js +16 -2
  117. package/dist/services/assistant/assistant.schemas.js.map +1 -1
  118. package/dist/services/assistant/assistant.types.d.ts +2 -2
  119. package/dist/services/auth/account-signer-auth.js +2 -2
  120. package/dist/services/auth/auth.js +1 -1
  121. package/dist/services/auth/profile/profile.js +2 -2
  122. package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
  123. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +22 -22
  124. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
  125. package/dist/services/balances/balances.js +1 -1
  126. package/dist/services/candles/candles.js +2 -2
  127. package/dist/services/chain-analytics/chain-analytics.js +1 -1
  128. package/dist/services/changelog/changelog.codecs.d.ts +1 -1
  129. package/dist/services/changelog/changelog.codecs.d.ts.map +1 -1
  130. package/dist/services/changelog/changelog.codecs.js +6 -3
  131. package/dist/services/changelog/changelog.codecs.js.map +1 -1
  132. package/dist/services/changelog/changelog.js +1 -1
  133. package/dist/services/changelog/changelog.schemas.d.ts +19 -19
  134. package/dist/services/checkpoints/checkpoints.js +1 -1
  135. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  136. package/dist/services/claims/claims.js +1 -1
  137. package/dist/services/claims/claims.schemas.js +1 -1
  138. package/dist/services/deposit/deposit.js +1 -1
  139. package/dist/services/fees/fees.js +1 -1
  140. package/dist/services/guard-signer/guard-signer.js +1 -1
  141. package/dist/services/guard-signer/guard-signer.schemas.js +1 -1
  142. package/dist/services/heatmap/heatmap.js +2 -2
  143. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  144. package/dist/services/internal-transfers/internal-transfers.js +1 -1
  145. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  146. package/dist/services/lifecycle/lifecycle.js +3 -3
  147. package/dist/services/lifecycle/lifecycle.schemas.d.ts +15 -15
  148. package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
  149. package/dist/services/market-data/market-data.js +2 -2
  150. package/dist/services/market-data/market-data.schemas.js +16 -1
  151. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  152. package/dist/services/market-overview/market-overview.js +2 -2
  153. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  154. package/dist/services/notifications/notifications.codecs.d.ts +16 -0
  155. package/dist/services/notifications/notifications.codecs.d.ts.map +1 -0
  156. package/dist/services/notifications/notifications.codecs.js +40 -0
  157. package/dist/services/notifications/notifications.codecs.js.map +1 -0
  158. package/dist/services/notifications/notifications.d.ts +41 -0
  159. package/dist/services/notifications/notifications.d.ts.map +1 -0
  160. package/dist/services/notifications/notifications.js +67 -0
  161. package/dist/services/notifications/notifications.js.map +1 -0
  162. package/dist/services/notifications/notifications.schemas.d.ts +162 -0
  163. package/dist/services/notifications/notifications.schemas.d.ts.map +1 -0
  164. package/dist/services/notifications/notifications.schemas.js +116 -0
  165. package/dist/services/notifications/notifications.schemas.js.map +1 -0
  166. package/dist/services/notifications/notifications.types.d.ts +3 -0
  167. package/dist/services/notifications/service.d.ts +8 -0
  168. package/dist/services/notifications/service.d.ts.map +1 -0
  169. package/dist/services/notifications/service.js +9 -0
  170. package/dist/services/notifications/service.js.map +1 -0
  171. package/dist/services/orderbook/orderbook.js +1 -1
  172. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  173. package/dist/services/orders/order-enums.codecs.js +12 -4
  174. package/dist/services/orders/order-enums.codecs.js.map +1 -1
  175. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  176. package/dist/services/orders/order-errors.schemas.js +1 -1
  177. package/dist/services/orders/orders-batch.schemas.d.ts +2688 -417
  178. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  179. package/dist/services/orders/orders-batch.schemas.js +7 -5
  180. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  181. package/dist/services/orders/orders-input.schemas.d.ts +4827 -1264
  182. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  183. package/dist/services/orders/orders-input.schemas.js +105 -33
  184. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  185. package/dist/services/orders/orders-modify.schemas.js +2 -2
  186. package/dist/services/orders/orders-output.schemas.d.ts +44 -26
  187. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  188. package/dist/services/orders/orders-output.schemas.js +9 -1
  189. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  190. package/dist/services/orders/orders-risk.schemas.d.ts +1 -1
  191. package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
  192. package/dist/services/orders/orders-risk.schemas.js +4 -4
  193. package/dist/services/orders/orders-risk.schemas.js.map +1 -1
  194. package/dist/services/orders/orders.codecs.js +3 -0
  195. package/dist/services/orders/orders.codecs.js.map +1 -1
  196. package/dist/services/orders/orders.d.ts +3 -1
  197. package/dist/services/orders/orders.d.ts.map +1 -1
  198. package/dist/services/orders/orders.js +7 -14
  199. package/dist/services/orders/orders.js.map +1 -1
  200. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  201. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  202. package/dist/services/policies/shared.codecs.js +10 -4
  203. package/dist/services/policies/shared.codecs.js.map +1 -1
  204. package/dist/services/policies/shared.d.ts +1 -1
  205. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  206. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  207. package/dist/services/price-alerts/price-alerts.codecs.d.ts +1 -1
  208. package/dist/services/price-alerts/price-alerts.codecs.js +3 -3
  209. package/dist/services/price-alerts/price-alerts.codecs.js.map +1 -1
  210. package/dist/services/price-alerts/price-alerts.d.ts +11 -6
  211. package/dist/services/price-alerts/price-alerts.d.ts.map +1 -1
  212. package/dist/services/price-alerts/price-alerts.js +12 -7
  213. package/dist/services/price-alerts/price-alerts.js.map +1 -1
  214. package/dist/services/price-alerts/price-alerts.schemas.d.ts +11 -11
  215. package/dist/services/rate-limits/rate-limits.js +1 -1
  216. package/dist/services/rewards/rewards.js +1 -1
  217. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  218. package/dist/services/social-verification/social-verification.js +1 -1
  219. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  220. package/dist/services/subaccounts/subaccounts.codecs.js +3 -1
  221. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  222. package/dist/services/subaccounts/subaccounts.js +3 -3
  223. package/dist/services/subaccounts/subaccounts.schemas.d.ts +7 -7
  224. package/dist/services/system/system.js +1 -1
  225. package/dist/services/trades/trades.js +2 -2
  226. package/dist/services/trades/trades.schemas.d.ts +1 -1
  227. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  228. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
  229. package/dist/services/trading-withdraws/wallet-message.js +1 -1
  230. package/dist/services/transfers/transfers.js +2 -2
  231. package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
  232. package/dist/services/triggers/trigger-input.schemas.d.ts +272 -42
  233. package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
  234. package/dist/services/triggers/trigger-input.schemas.js +53 -5
  235. package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
  236. package/dist/services/triggers/triggers-output.schemas.d.ts +240 -29
  237. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  238. package/dist/services/triggers/triggers-output.schemas.js +49 -2
  239. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  240. package/dist/services/triggers/triggers.codecs.js +7 -2
  241. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  242. package/dist/services/triggers/triggers.d.ts +25 -3
  243. package/dist/services/triggers/triggers.d.ts.map +1 -1
  244. package/dist/services/triggers/triggers.js +51 -5
  245. package/dist/services/triggers/triggers.js.map +1 -1
  246. package/dist/services/triggers/triggers.schemas.d.ts +3 -3
  247. package/dist/services/triggers/triggers.types.d.ts +3 -3
  248. package/dist/services/vip/vip.js +1 -1
  249. package/dist/services/vip/vip.schemas.js +1 -1
  250. package/dist/services/zipper/zipper.js +1 -1
  251. package/dist/services/zipper/zipper.schemas.js +1 -1
  252. package/dist/shared/catalog-config.d.ts +6 -0
  253. package/dist/shared/catalog-config.d.ts.map +1 -1
  254. package/dist/shared/catalog-config.js.map +1 -1
  255. package/dist/shared/error-detail.d.ts +6 -2
  256. package/dist/shared/error-detail.d.ts.map +1 -1
  257. package/dist/shared/error-detail.js +1 -0
  258. package/dist/shared/error-detail.js.map +1 -1
  259. package/dist/shared/error-details/alerts.js +1 -1
  260. package/dist/shared/error-details/assistant.js +1 -1
  261. package/dist/shared/error-details/auth.js +1 -1
  262. package/dist/shared/error-details/claims.js +1 -1
  263. package/dist/shared/error-details/internal-transfer.js +1 -1
  264. package/dist/shared/error-details/ledger.js +1 -1
  265. package/dist/shared/error-details/market-overview.js +1 -1
  266. package/dist/shared/error-details/notifications.js +15 -0
  267. package/dist/shared/error-details/notifications.js.map +1 -0
  268. package/dist/shared/error-details/orders.js +1 -1
  269. package/dist/shared/error-details/profile.js +1 -1
  270. package/dist/shared/error-details/rate-limit.js +1 -1
  271. package/dist/shared/error-details/withdraw.js +1 -1
  272. package/dist/shared/rate-limit.schemas.js +1 -1
  273. package/dist/shared/request-id.d.ts +6 -0
  274. package/dist/shared/request-id.d.ts.map +1 -0
  275. package/dist/shared/request-id.js +17 -0
  276. package/dist/shared/request-id.js.map +1 -0
  277. package/dist/utils/cookies.js +1 -1
  278. package/dist/wired-services.d.ts.map +1 -1
  279. package/dist/wired-services.js +19 -17
  280. package/dist/wired-services.js.map +1 -1
  281. package/package.json +1 -1
@@ -0,0 +1,827 @@
1
+ import { AlertDirection, AlertPriceSource } from "../../alerts/v1/price_alerts_pb.js";
2
+ import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
+ import { Timestamp } from "@bufbuild/protobuf/wkt";
4
+ import { Message } from "@bufbuild/protobuf";
5
+ declare namespace notifications_pb_d_exports {
6
+ export { ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, GetNotificationCountsRequest, GetNotificationCountsRequestSchema, GetNotificationCountsResponse, GetNotificationCountsResponseSchema, GetNotificationRequest, GetNotificationRequestSchema, GetNotificationResponse, GetNotificationResponseSchema, ListNotificationsRequest, ListNotificationsRequestSchema, ListNotificationsResponse, ListNotificationsResponseSchema, MarkAllNotificationsReadRequest, MarkAllNotificationsReadRequestSchema, MarkAllNotificationsReadResponse, MarkAllNotificationsReadResponseSchema, MarkNotificationsReadRequest, MarkNotificationsReadRequestSchema, MarkNotificationsReadResponse, MarkNotificationsReadResponseSchema, MarkNotificationsUnreadRequest, MarkNotificationsUnreadRequestSchema, MarkNotificationsUnreadResponse, MarkNotificationsUnreadResponseSchema, NoticeField, NoticeFieldSchema, Notification, NotificationCategory, NotificationCategorySchema, NotificationSchema, NotificationService, NotificationType, NotificationTypeSchema, PriceAlertNotice, PriceAlertNoticeSchema, ReadState, ReadStateSchema, TelegramApprovalAction, TelegramApprovalActionSchema, TelegramApprovalNotice, TelegramApprovalNoticeSchema, TypeCount, TypeCountSchema, file_notifications_v1_notifications };
7
+ }
8
+ /**
9
+ * Describes the file notifications/v1/notifications.proto.
10
+ */
11
+ declare const file_notifications_v1_notifications: GenFile;
12
+ /**
13
+ * ErrorDetail is attached to Notification API errors as an error detail of
14
+ * type notifications.v1.ErrorDetail.
15
+ *
16
+ * @generated from message notifications.v1.ErrorDetail
17
+ */
18
+ type ErrorDetail = Message<"notifications.v1.ErrorDetail"> & {
19
+ /**
20
+ * Stable error code.
21
+ *
22
+ * @generated from field: notifications.v1.ErrorCode code = 1;
23
+ */
24
+ code: ErrorCode;
25
+ };
26
+ /**
27
+ * Describes the message notifications.v1.ErrorDetail.
28
+ * Use `create(ErrorDetailSchema)` to create a new message.
29
+ */
30
+ declare const ErrorDetailSchema: GenMessage<ErrorDetail>;
31
+ /**
32
+ * Notification is one notification of the caller.
33
+ *
34
+ * @generated from message notifications.v1.Notification
35
+ */
36
+ type Notification = Message<"notifications.v1.Notification"> & {
37
+ /**
38
+ * Public notification ID.
39
+ *
40
+ * @generated from field: fixed64 notification_id = 1;
41
+ */
42
+ notificationId: bigint;
43
+ /**
44
+ * What the notification reports.
45
+ *
46
+ * @generated from field: notifications.v1.NotificationType type = 2;
47
+ */
48
+ type: NotificationType;
49
+ /**
50
+ * Category of the type.
51
+ *
52
+ * @generated from field: notifications.v1.NotificationCategory category = 3;
53
+ */
54
+ category: NotificationCategory;
55
+ /**
56
+ * Short plain-text title, the same for every notification of a type, for
57
+ * example "Price alert".
58
+ *
59
+ * @generated from field: string title = 4;
60
+ */
61
+ title: string;
62
+ /**
63
+ * Plain-text summary of what happened, at most 4096 bytes. It may span
64
+ * several lines.
65
+ *
66
+ * @generated from field: string text = 5;
67
+ */
68
+ text: string;
69
+ /**
70
+ * When the notification was created.
71
+ *
72
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
73
+ */
74
+ createdAt?: Timestamp | undefined;
75
+ /**
76
+ * When the caller marked it read. Omitted while it is unread.
77
+ *
78
+ * @generated from field: google.protobuf.Timestamp read_at = 7;
79
+ */
80
+ readAt?: Timestamp | undefined;
81
+ /**
82
+ * What happened, as typed values. Exactly one is set, the one type names.
83
+ * A client that does not recognize the type, for example one added after
84
+ * it was built, shows the title and text only.
85
+ *
86
+ * @generated from oneof notifications.v1.Notification.detail
87
+ */
88
+ detail: {
89
+ /**
90
+ * The price alert that fired.
91
+ *
92
+ * @generated from field: notifications.v1.PriceAlertNotice price_alert = 10;
93
+ */
94
+ value: PriceAlertNotice;
95
+ case: "priceAlert";
96
+ } | {
97
+ /**
98
+ * The action approved from the linked Telegram account.
99
+ *
100
+ * @generated from field: notifications.v1.TelegramApprovalNotice telegram_approval = 11;
101
+ */
102
+ value: TelegramApprovalNotice;
103
+ case: "telegramApproval";
104
+ } | {
105
+ case: undefined;
106
+ value?: undefined;
107
+ };
108
+ };
109
+ /**
110
+ * Describes the message notifications.v1.Notification.
111
+ * Use `create(NotificationSchema)` to create a new message.
112
+ */
113
+ declare const NotificationSchema: GenMessage<Notification>;
114
+ /**
115
+ * PriceAlertNotice is a price alert that fired, as it was when it fired.
116
+ *
117
+ * @generated from message notifications.v1.PriceAlertNotice
118
+ */
119
+ type PriceAlertNotice = Message<"notifications.v1.PriceAlertNotice"> & {
120
+ /**
121
+ * Public alert ID, as the Price Alert API returns it.
122
+ *
123
+ * @generated from field: fixed64 alert_id = 1;
124
+ */
125
+ alertId: bigint;
126
+ /**
127
+ * Numeric spot market identifier; resolve its symbol with GetSpotConfig.
128
+ *
129
+ * @generated from field: uint32 symbol_id = 2;
130
+ */
131
+ symbolId: number;
132
+ /**
133
+ * Price crossing the alert waited for.
134
+ *
135
+ * @generated from field: alerts.v1.AlertDirection direction = 3;
136
+ */
137
+ direction: AlertDirection;
138
+ /**
139
+ * Price the alert watched.
140
+ *
141
+ * @generated from field: alerts.v1.AlertPriceSource price_source = 4;
142
+ */
143
+ priceSource: AlertPriceSource;
144
+ /**
145
+ * Alert price in quote units scaled by 1e9.
146
+ *
147
+ * @generated from field: int64 price_ticks = 5;
148
+ */
149
+ priceTicks: bigint;
150
+ /**
151
+ * Price that fired the alert, in quote units scaled by 1e9.
152
+ *
153
+ * @generated from field: int64 triggered_price_ticks = 6;
154
+ */
155
+ triggeredPriceTicks: bigint;
156
+ /**
157
+ * When the alert fired.
158
+ *
159
+ * @generated from field: google.protobuf.Timestamp triggered_at = 7;
160
+ */
161
+ triggeredAt?: Timestamp | undefined;
162
+ };
163
+ /**
164
+ * Describes the message notifications.v1.PriceAlertNotice.
165
+ * Use `create(PriceAlertNoticeSchema)` to create a new message.
166
+ */
167
+ declare const PriceAlertNoticeSchema: GenMessage<PriceAlertNotice>;
168
+ /**
169
+ * NoticeField is one labelled value of a notice, for example "Market" and
170
+ * "BTC/USDT".
171
+ *
172
+ * @generated from message notifications.v1.NoticeField
173
+ */
174
+ type NoticeField = Message<"notifications.v1.NoticeField"> & {
175
+ /**
176
+ * Short label, in plain words: 1 to 64 bytes.
177
+ *
178
+ * @generated from field: string label = 1;
179
+ */
180
+ label: string;
181
+ /**
182
+ * The value, in plain words, with its unit or asset when it has one: 1 to
183
+ * 256 bytes.
184
+ *
185
+ * @generated from field: string value = 2;
186
+ */
187
+ value: string;
188
+ };
189
+ /**
190
+ * Describes the message notifications.v1.NoticeField.
191
+ * Use `create(NoticeFieldSchema)` to create a new message.
192
+ */
193
+ declare const NoticeFieldSchema: GenMessage<NoticeField>;
194
+ /**
195
+ * TelegramApprovalNotice is an action approved from the Telegram account
196
+ * linked to the caller's account, as the approval recorded it.
197
+ *
198
+ * @generated from message notifications.v1.TelegramApprovalNotice
199
+ */
200
+ type TelegramApprovalNotice = Message<"notifications.v1.TelegramApprovalNotice"> & {
201
+ /**
202
+ * The approval's ID, as the Assistant API returns it.
203
+ *
204
+ * @generated from field: fixed64 approval_id = 1;
205
+ */
206
+ approvalId: bigint;
207
+ /**
208
+ * What the approval approved.
209
+ *
210
+ * @generated from field: notifications.v1.TelegramApprovalAction action = 2;
211
+ */
212
+ action: TelegramApprovalAction;
213
+ /**
214
+ * Public ID of the trading account (sub-account) the action acted on.
215
+ *
216
+ * @generated from field: fixed64 account_id = 3;
217
+ */
218
+ accountId: bigint;
219
+ /**
220
+ * What approving did, written from the exact action: 1 to 512 bytes.
221
+ *
222
+ * @generated from field: string summary = 4;
223
+ */
224
+ summary: string;
225
+ /**
226
+ * The action's key parameters in display order, such as the market, side,
227
+ * quantity and prices, from the same exact action: at most 16.
228
+ *
229
+ * @generated from field: repeated notifications.v1.NoticeField parameters = 5;
230
+ */
231
+ parameters: NoticeField[];
232
+ /**
233
+ * When the approval was given.
234
+ *
235
+ * @generated from field: google.protobuf.Timestamp approved_at = 6;
236
+ */
237
+ approvedAt?: Timestamp | undefined;
238
+ };
239
+ /**
240
+ * Describes the message notifications.v1.TelegramApprovalNotice.
241
+ * Use `create(TelegramApprovalNoticeSchema)` to create a new message.
242
+ */
243
+ declare const TelegramApprovalNoticeSchema: GenMessage<TelegramApprovalNotice>;
244
+ /**
245
+ * ListNotificationsRequest lists the caller's notifications.
246
+ *
247
+ * @generated from message notifications.v1.ListNotificationsRequest
248
+ */
249
+ type ListNotificationsRequest = Message<"notifications.v1.ListNotificationsRequest"> & {
250
+ /**
251
+ * Return only notifications in these categories. Empty returns every
252
+ * category.
253
+ *
254
+ * @generated from field: repeated notifications.v1.NotificationCategory categories = 1;
255
+ */
256
+ categories: NotificationCategory[];
257
+ /**
258
+ * Return only read or only unread notifications. Unspecified returns both.
259
+ *
260
+ * @generated from field: notifications.v1.ReadState read_state = 2;
261
+ */
262
+ readState: ReadState;
263
+ /**
264
+ * Return only notifications created at or after this time. Omitted means
265
+ * no lower bound.
266
+ *
267
+ * @generated from field: google.protobuf.Timestamp start_time = 3;
268
+ */
269
+ startTime?: Timestamp | undefined;
270
+ /**
271
+ * Return only notifications created before this time. Omitted means no
272
+ * upper bound. Must be after start_time when both are set.
273
+ *
274
+ * @generated from field: google.protobuf.Timestamp end_time = 4;
275
+ */
276
+ endTime?: Timestamp | undefined;
277
+ /**
278
+ * Maximum number of notifications to return: default 25, max 100.
279
+ *
280
+ * @generated from field: uint32 limit = 5;
281
+ */
282
+ limit: number;
283
+ /**
284
+ * Opaque, keyset-backed and exclusive cursor from a previous response's
285
+ * next_page_token. It is bound to the caller, categories, read_state,
286
+ * start_time and end_time; reuse it only with the same values.
287
+ *
288
+ * @generated from field: string page_token = 6;
289
+ */
290
+ pageToken: string;
291
+ };
292
+ /**
293
+ * Describes the message notifications.v1.ListNotificationsRequest.
294
+ * Use `create(ListNotificationsRequestSchema)` to create a new message.
295
+ */
296
+ declare const ListNotificationsRequestSchema: GenMessage<ListNotificationsRequest>;
297
+ /**
298
+ * ListNotificationsResponse returns one page of the caller's notifications.
299
+ *
300
+ * @generated from message notifications.v1.ListNotificationsResponse
301
+ */
302
+ type ListNotificationsResponse = Message<"notifications.v1.ListNotificationsResponse"> & {
303
+ /**
304
+ * Notifications, newest first.
305
+ *
306
+ * @generated from field: repeated notifications.v1.Notification notifications = 1;
307
+ */
308
+ notifications: Notification[];
309
+ /**
310
+ * Cursor for the next page. Empty when no more results exist.
311
+ *
312
+ * @generated from field: string next_page_token = 2;
313
+ */
314
+ nextPageToken: string;
315
+ };
316
+ /**
317
+ * Describes the message notifications.v1.ListNotificationsResponse.
318
+ * Use `create(ListNotificationsResponseSchema)` to create a new message.
319
+ */
320
+ declare const ListNotificationsResponseSchema: GenMessage<ListNotificationsResponse>;
321
+ /**
322
+ * GetNotificationRequest reads one notification of the caller.
323
+ *
324
+ * @generated from message notifications.v1.GetNotificationRequest
325
+ */
326
+ type GetNotificationRequest = Message<"notifications.v1.GetNotificationRequest"> & {
327
+ /**
328
+ * Public notification ID.
329
+ *
330
+ * @generated from field: fixed64 notification_id = 1;
331
+ */
332
+ notificationId: bigint;
333
+ };
334
+ /**
335
+ * Describes the message notifications.v1.GetNotificationRequest.
336
+ * Use `create(GetNotificationRequestSchema)` to create a new message.
337
+ */
338
+ declare const GetNotificationRequestSchema: GenMessage<GetNotificationRequest>;
339
+ /**
340
+ * GetNotificationResponse returns the notification.
341
+ *
342
+ * @generated from message notifications.v1.GetNotificationResponse
343
+ */
344
+ type GetNotificationResponse = Message<"notifications.v1.GetNotificationResponse"> & {
345
+ /**
346
+ * The notification.
347
+ *
348
+ * @generated from field: notifications.v1.Notification notification = 1;
349
+ */
350
+ notification?: Notification | undefined;
351
+ };
352
+ /**
353
+ * Describes the message notifications.v1.GetNotificationResponse.
354
+ * Use `create(GetNotificationResponseSchema)` to create a new message.
355
+ */
356
+ declare const GetNotificationResponseSchema: GenMessage<GetNotificationResponse>;
357
+ /**
358
+ * GetNotificationCountsRequest counts the caller's notifications.
359
+ *
360
+ * @generated from message notifications.v1.GetNotificationCountsRequest
361
+ */
362
+ type GetNotificationCountsRequest = Message<"notifications.v1.GetNotificationCountsRequest"> & {};
363
+ /**
364
+ * Describes the message notifications.v1.GetNotificationCountsRequest.
365
+ * Use `create(GetNotificationCountsRequestSchema)` to create a new message.
366
+ */
367
+ declare const GetNotificationCountsRequestSchema: GenMessage<GetNotificationCountsRequest>;
368
+ /**
369
+ * TypeCount counts the caller's notifications of one type.
370
+ *
371
+ * @generated from message notifications.v1.TypeCount
372
+ */
373
+ type TypeCount = Message<"notifications.v1.TypeCount"> & {
374
+ /**
375
+ * The type.
376
+ *
377
+ * @generated from field: notifications.v1.NotificationType type = 1;
378
+ */
379
+ type: NotificationType;
380
+ /**
381
+ * Category of the type.
382
+ *
383
+ * @generated from field: notifications.v1.NotificationCategory category = 2;
384
+ */
385
+ category: NotificationCategory;
386
+ /**
387
+ * Number of notifications of the type.
388
+ *
389
+ * @generated from field: uint64 total = 3;
390
+ */
391
+ total: bigint;
392
+ /**
393
+ * Number of those the caller has not read.
394
+ *
395
+ * @generated from field: uint64 unread = 4;
396
+ */
397
+ unread: bigint;
398
+ };
399
+ /**
400
+ * Describes the message notifications.v1.TypeCount.
401
+ * Use `create(TypeCountSchema)` to create a new message.
402
+ */
403
+ declare const TypeCountSchema: GenMessage<TypeCount>;
404
+ /**
405
+ * GetNotificationCountsResponse returns exact counts of the caller's
406
+ * notifications, as of one moment.
407
+ *
408
+ * @generated from message notifications.v1.GetNotificationCountsResponse
409
+ */
410
+ type GetNotificationCountsResponse = Message<"notifications.v1.GetNotificationCountsResponse"> & {
411
+ /**
412
+ * Number of notifications.
413
+ *
414
+ * @generated from field: uint64 total = 1;
415
+ */
416
+ total: bigint;
417
+ /**
418
+ * Number of notifications the caller has not read.
419
+ *
420
+ * @generated from field: uint64 unread = 2;
421
+ */
422
+ unread: bigint;
423
+ /**
424
+ * Counts of every type, in ascending enum order, including types with no
425
+ * notification.
426
+ *
427
+ * @generated from field: repeated notifications.v1.TypeCount types = 3;
428
+ */
429
+ types: TypeCount[];
430
+ };
431
+ /**
432
+ * Describes the message notifications.v1.GetNotificationCountsResponse.
433
+ * Use `create(GetNotificationCountsResponseSchema)` to create a new message.
434
+ */
435
+ declare const GetNotificationCountsResponseSchema: GenMessage<GetNotificationCountsResponse>;
436
+ /**
437
+ * MarkNotificationsReadRequest marks notifications of the caller read.
438
+ *
439
+ * @generated from message notifications.v1.MarkNotificationsReadRequest
440
+ */
441
+ type MarkNotificationsReadRequest = Message<"notifications.v1.MarkNotificationsReadRequest"> & {
442
+ /**
443
+ * Public notification IDs: one to 100, distinct.
444
+ *
445
+ * @generated from field: repeated fixed64 notification_ids = 1;
446
+ */
447
+ notificationIds: bigint[];
448
+ };
449
+ /**
450
+ * Describes the message notifications.v1.MarkNotificationsReadRequest.
451
+ * Use `create(MarkNotificationsReadRequestSchema)` to create a new message.
452
+ */
453
+ declare const MarkNotificationsReadRequestSchema: GenMessage<MarkNotificationsReadRequest>;
454
+ /**
455
+ * MarkNotificationsReadResponse reports what MarkNotificationsRead changed.
456
+ *
457
+ * @generated from message notifications.v1.MarkNotificationsReadResponse
458
+ */
459
+ type MarkNotificationsReadResponse = Message<"notifications.v1.MarkNotificationsReadResponse"> & {
460
+ /**
461
+ * Number of notifications this call marked read. Notifications already
462
+ * read are not counted.
463
+ *
464
+ * @generated from field: uint32 changed = 1;
465
+ */
466
+ changed: number;
467
+ };
468
+ /**
469
+ * Describes the message notifications.v1.MarkNotificationsReadResponse.
470
+ * Use `create(MarkNotificationsReadResponseSchema)` to create a new message.
471
+ */
472
+ declare const MarkNotificationsReadResponseSchema: GenMessage<MarkNotificationsReadResponse>;
473
+ /**
474
+ * MarkNotificationsUnreadRequest marks notifications of the caller unread.
475
+ *
476
+ * @generated from message notifications.v1.MarkNotificationsUnreadRequest
477
+ */
478
+ type MarkNotificationsUnreadRequest = Message<"notifications.v1.MarkNotificationsUnreadRequest"> & {
479
+ /**
480
+ * Public notification IDs: one to 100, distinct.
481
+ *
482
+ * @generated from field: repeated fixed64 notification_ids = 1;
483
+ */
484
+ notificationIds: bigint[];
485
+ };
486
+ /**
487
+ * Describes the message notifications.v1.MarkNotificationsUnreadRequest.
488
+ * Use `create(MarkNotificationsUnreadRequestSchema)` to create a new message.
489
+ */
490
+ declare const MarkNotificationsUnreadRequestSchema: GenMessage<MarkNotificationsUnreadRequest>;
491
+ /**
492
+ * MarkNotificationsUnreadResponse reports what MarkNotificationsUnread
493
+ * changed.
494
+ *
495
+ * @generated from message notifications.v1.MarkNotificationsUnreadResponse
496
+ */
497
+ type MarkNotificationsUnreadResponse = Message<"notifications.v1.MarkNotificationsUnreadResponse"> & {
498
+ /**
499
+ * Number of notifications this call marked unread. Notifications already
500
+ * unread are not counted.
501
+ *
502
+ * @generated from field: uint32 changed = 1;
503
+ */
504
+ changed: number;
505
+ };
506
+ /**
507
+ * Describes the message notifications.v1.MarkNotificationsUnreadResponse.
508
+ * Use `create(MarkNotificationsUnreadResponseSchema)` to create a new message.
509
+ */
510
+ declare const MarkNotificationsUnreadResponseSchema: GenMessage<MarkNotificationsUnreadResponse>;
511
+ /**
512
+ * MarkAllNotificationsReadRequest marks every unread notification of the
513
+ * caller read, within the given categories.
514
+ *
515
+ * @generated from message notifications.v1.MarkAllNotificationsReadRequest
516
+ */
517
+ type MarkAllNotificationsReadRequest = Message<"notifications.v1.MarkAllNotificationsReadRequest"> & {
518
+ /**
519
+ * Mark only notifications in these categories. Empty marks every category.
520
+ *
521
+ * @generated from field: repeated notifications.v1.NotificationCategory categories = 1;
522
+ */
523
+ categories: NotificationCategory[];
524
+ /**
525
+ * Mark only this notification and older ones: pass the newest notification
526
+ * the caller has shown, so one that arrives later stays unread. Zero marks
527
+ * every notification that exists when the call is processed.
528
+ *
529
+ * @generated from field: fixed64 through_notification_id = 2;
530
+ */
531
+ throughNotificationId: bigint;
532
+ };
533
+ /**
534
+ * Describes the message notifications.v1.MarkAllNotificationsReadRequest.
535
+ * Use `create(MarkAllNotificationsReadRequestSchema)` to create a new message.
536
+ */
537
+ declare const MarkAllNotificationsReadRequestSchema: GenMessage<MarkAllNotificationsReadRequest>;
538
+ /**
539
+ * MarkAllNotificationsReadResponse reports what MarkAllNotificationsRead
540
+ * changed.
541
+ *
542
+ * @generated from message notifications.v1.MarkAllNotificationsReadResponse
543
+ */
544
+ type MarkAllNotificationsReadResponse = Message<"notifications.v1.MarkAllNotificationsReadResponse"> & {
545
+ /**
546
+ * Number of notifications this call marked read.
547
+ *
548
+ * @generated from field: uint64 changed = 1;
549
+ */
550
+ changed: bigint;
551
+ };
552
+ /**
553
+ * Describes the message notifications.v1.MarkAllNotificationsReadResponse.
554
+ * Use `create(MarkAllNotificationsReadResponseSchema)` to create a new message.
555
+ */
556
+ declare const MarkAllNotificationsReadResponseSchema: GenMessage<MarkAllNotificationsReadResponse>;
557
+ /**
558
+ * ErrorCode identifies a Notification API error.
559
+ *
560
+ * @generated from enum notifications.v1.ErrorCode
561
+ */
562
+ declare enum ErrorCode {
563
+ /**
564
+ * No code.
565
+ *
566
+ * @generated from enum value: ERROR_UNSPECIFIED = 0;
567
+ */
568
+ ERROR_UNSPECIFIED = 0,
569
+ /**
570
+ * No notification of the caller has this ID. Another account's
571
+ * notification is reported the same way.
572
+ *
573
+ * @generated from enum value: NOTIFICATION_NOT_FOUND = 1;
574
+ */
575
+ NOTIFICATION_NOT_FOUND = 1,
576
+ /**
577
+ * A required service is temporarily unavailable; retry the same request.
578
+ *
579
+ * @generated from enum value: SERVICE_UNAVAILABLE = 2;
580
+ */
581
+ SERVICE_UNAVAILABLE = 2
582
+ }
583
+ /**
584
+ * Describes the enum notifications.v1.ErrorCode.
585
+ */
586
+ declare const ErrorCodeSchema: GenEnum<ErrorCode>;
587
+ /**
588
+ * NotificationType is what a notification reports. Each type belongs to one
589
+ * category, and its detail is the matching field of Notification.detail.
590
+ *
591
+ * @generated from enum notifications.v1.NotificationType
592
+ */
593
+ declare enum NotificationType {
594
+ /**
595
+ * Not set. Never returned.
596
+ *
597
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
598
+ */
599
+ TYPE_UNSPECIFIED = 0,
600
+ /**
601
+ * A price alert of the caller fired. Category ALERTS; detail price_alert.
602
+ *
603
+ * @generated from enum value: PRICE_ALERT = 1;
604
+ */
605
+ PRICE_ALERT = 1,
606
+ /**
607
+ * An action was approved from the Telegram account linked to the caller's
608
+ * account. Category SECURITY; detail telegram_approval. If the caller did
609
+ * not approve it, the linked Telegram account may be in someone else's
610
+ * hands: unlink it and review the account's sessions.
611
+ *
612
+ * @generated from enum value: TELEGRAM_APPROVAL = 2;
613
+ */
614
+ TELEGRAM_APPROVAL = 2
615
+ }
616
+ /**
617
+ * Describes the enum notifications.v1.NotificationType.
618
+ */
619
+ declare const NotificationTypeSchema: GenEnum<NotificationType>;
620
+ /**
621
+ * NotificationCategory groups notification types for filtering and counts.
622
+ *
623
+ * @generated from enum notifications.v1.NotificationCategory
624
+ */
625
+ declare enum NotificationCategory {
626
+ /**
627
+ * Not set. Rejected in requests and never returned.
628
+ *
629
+ * @generated from enum value: CATEGORY_UNSPECIFIED = 0;
630
+ */
631
+ CATEGORY_UNSPECIFIED = 0,
632
+ /**
633
+ * Alerts the caller set, such as price alerts.
634
+ *
635
+ * @generated from enum value: ALERTS = 1;
636
+ */
637
+ ALERTS = 1,
638
+ /**
639
+ * Security of the account, such as actions approved from a linked
640
+ * Telegram account.
641
+ *
642
+ * @generated from enum value: SECURITY = 2;
643
+ */
644
+ SECURITY = 2
645
+ }
646
+ /**
647
+ * Describes the enum notifications.v1.NotificationCategory.
648
+ */
649
+ declare const NotificationCategorySchema: GenEnum<NotificationCategory>;
650
+ /**
651
+ * ReadState filters notifications by whether the caller has read them.
652
+ *
653
+ * @generated from enum notifications.v1.ReadState
654
+ */
655
+ declare enum ReadState {
656
+ /**
657
+ * Read and unread notifications.
658
+ *
659
+ * @generated from enum value: READ_STATE_UNSPECIFIED = 0;
660
+ */
661
+ READ_STATE_UNSPECIFIED = 0,
662
+ /**
663
+ * Only notifications the caller has not read.
664
+ *
665
+ * @generated from enum value: UNREAD = 1;
666
+ */
667
+ UNREAD = 1,
668
+ /**
669
+ * Only notifications the caller has read.
670
+ *
671
+ * @generated from enum value: READ = 2;
672
+ */
673
+ READ = 2
674
+ }
675
+ /**
676
+ * Describes the enum notifications.v1.ReadState.
677
+ */
678
+ declare const ReadStateSchema: GenEnum<ReadState>;
679
+ /**
680
+ * TelegramApprovalAction is what an approval from Telegram approved.
681
+ *
682
+ * @generated from enum notifications.v1.TelegramApprovalAction
683
+ */
684
+ declare enum TelegramApprovalAction {
685
+ /**
686
+ * Not set. Never returned.
687
+ *
688
+ * @generated from enum value: ACTION_UNSPECIFIED = 0;
689
+ */
690
+ ACTION_UNSPECIFIED = 0,
691
+ /**
692
+ * Place one order.
693
+ *
694
+ * @generated from enum value: PLACE_ORDER = 1;
695
+ */
696
+ PLACE_ORDER = 1,
697
+ /**
698
+ * Place several limit orders together.
699
+ *
700
+ * @generated from enum value: PLACE_ORDERS = 2;
701
+ */
702
+ PLACE_ORDERS = 2,
703
+ /**
704
+ * Change open limit orders.
705
+ *
706
+ * @generated from enum value: MODIFY_ORDERS = 3;
707
+ */
708
+ MODIFY_ORDERS = 3,
709
+ /**
710
+ * Cancel an order or a trigger.
711
+ *
712
+ * @generated from enum value: CANCEL_ORDER = 4;
713
+ */
714
+ CANCEL_ORDER = 4,
715
+ /**
716
+ * Cancel every open order of a market or of the account.
717
+ *
718
+ * @generated from enum value: CANCEL_ALL_ORDERS = 5;
719
+ */
720
+ CANCEL_ALL_ORDERS = 5,
721
+ /**
722
+ * Change a trigger.
723
+ *
724
+ * @generated from enum value: MODIFY_TRIGGER = 6;
725
+ */
726
+ MODIFY_TRIGGER = 6,
727
+ /**
728
+ * Pause a trigger.
729
+ *
730
+ * @generated from enum value: PAUSE_TRIGGER = 7;
731
+ */
732
+ PAUSE_TRIGGER = 7,
733
+ /**
734
+ * Resume a paused trigger.
735
+ *
736
+ * @generated from enum value: RESUME_TRIGGER = 8;
737
+ */
738
+ RESUME_TRIGGER = 8,
739
+ /**
740
+ * Swap between assets within the trading account.
741
+ *
742
+ * @generated from enum value: SWAP = 9;
743
+ */
744
+ SWAP = 9
745
+ }
746
+ /**
747
+ * Describes the enum notifications.v1.TelegramApprovalAction.
748
+ */
749
+ declare const TelegramApprovalActionSchema: GenEnum<TelegramApprovalAction>;
750
+ /**
751
+ * NotificationService serves the caller's notification center. Every method
752
+ * takes a session token: notifications of the account are read and marked on
753
+ * the website and in the app, never with an API key.
754
+ *
755
+ * @generated from service notifications.v1.NotificationService
756
+ */
757
+ declare const NotificationService: GenService<{
758
+ /**
759
+ * ListNotifications lists the caller's notifications, newest first.
760
+ *
761
+ * @generated from rpc notifications.v1.NotificationService.ListNotifications
762
+ */
763
+ listNotifications: {
764
+ methodKind: "unary";
765
+ input: typeof ListNotificationsRequestSchema;
766
+ output: typeof ListNotificationsResponseSchema;
767
+ };
768
+ /**
769
+ * GetNotification reads one notification of the caller.
770
+ *
771
+ * @generated from rpc notifications.v1.NotificationService.GetNotification
772
+ */
773
+ getNotification: {
774
+ methodKind: "unary";
775
+ input: typeof GetNotificationRequestSchema;
776
+ output: typeof GetNotificationResponseSchema;
777
+ };
778
+ /**
779
+ * GetNotificationCounts counts the caller's notifications and unread
780
+ * notifications, by type.
781
+ *
782
+ * @generated from rpc notifications.v1.NotificationService.GetNotificationCounts
783
+ */
784
+ getNotificationCounts: {
785
+ methodKind: "unary";
786
+ input: typeof GetNotificationCountsRequestSchema;
787
+ output: typeof GetNotificationCountsResponseSchema;
788
+ };
789
+ /**
790
+ * MarkNotificationsRead marks notifications of the caller read. Either
791
+ * every ID is the caller's and each is marked, or nothing changes and the
792
+ * call fails with NOTIFICATION_NOT_FOUND.
793
+ *
794
+ * @generated from rpc notifications.v1.NotificationService.MarkNotificationsRead
795
+ */
796
+ markNotificationsRead: {
797
+ methodKind: "unary";
798
+ input: typeof MarkNotificationsReadRequestSchema;
799
+ output: typeof MarkNotificationsReadResponseSchema;
800
+ };
801
+ /**
802
+ * MarkNotificationsUnread marks notifications of the caller unread. Either
803
+ * every ID is the caller's and each is marked, or nothing changes and the
804
+ * call fails with NOTIFICATION_NOT_FOUND.
805
+ *
806
+ * @generated from rpc notifications.v1.NotificationService.MarkNotificationsUnread
807
+ */
808
+ markNotificationsUnread: {
809
+ methodKind: "unary";
810
+ input: typeof MarkNotificationsUnreadRequestSchema;
811
+ output: typeof MarkNotificationsUnreadResponseSchema;
812
+ };
813
+ /**
814
+ * MarkAllNotificationsRead marks every unread notification of the caller
815
+ * read, within the given categories and up to the given notification.
816
+ *
817
+ * @generated from rpc notifications.v1.NotificationService.MarkAllNotificationsRead
818
+ */
819
+ markAllNotificationsRead: {
820
+ methodKind: "unary";
821
+ input: typeof MarkAllNotificationsReadRequestSchema;
822
+ output: typeof MarkAllNotificationsReadResponseSchema;
823
+ };
824
+ }>;
825
+ //#endregion
826
+ export { ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, GetNotificationCountsRequest, GetNotificationCountsRequestSchema, GetNotificationCountsResponse, GetNotificationCountsResponseSchema, GetNotificationRequest, GetNotificationRequestSchema, GetNotificationResponse, GetNotificationResponseSchema, ListNotificationsRequest, ListNotificationsRequestSchema, ListNotificationsResponse, ListNotificationsResponseSchema, MarkAllNotificationsReadRequest, MarkAllNotificationsReadRequestSchema, MarkAllNotificationsReadResponse, MarkAllNotificationsReadResponseSchema, MarkNotificationsReadRequest, MarkNotificationsReadRequestSchema, MarkNotificationsReadResponse, MarkNotificationsReadResponseSchema, MarkNotificationsUnreadRequest, MarkNotificationsUnreadRequestSchema, MarkNotificationsUnreadResponse, MarkNotificationsUnreadResponseSchema, NoticeField, NoticeFieldSchema, Notification, NotificationCategory, NotificationCategorySchema, NotificationSchema, NotificationService, NotificationType, NotificationTypeSchema, PriceAlertNotice, PriceAlertNoticeSchema, ReadState, ReadStateSchema, TelegramApprovalAction, TelegramApprovalActionSchema, TelegramApprovalNotice, TelegramApprovalNoticeSchema, TypeCount, TypeCountSchema, file_notifications_v1_notifications, notifications_pb_d_exports };
827
+ //# sourceMappingURL=notifications_pb.d.ts.map