@polyester/sdk 0.36.0-devnet-20261118141710 → 0.36.0-devnet-20261119010940

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 (239) hide show
  1. package/CHANGELOG.md +32 -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 +5 -6
  7. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  8. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  9. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  10. package/dist/gen/auth/v1/address_book_pb.js +1 -1
  11. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  12. package/dist/gen/auth/v1/api_keys_pb.d.ts +70 -9
  13. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  14. package/dist/gen/auth/v1/api_keys_pb.js +16 -1
  15. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  16. package/dist/gen/auth/v1/auth_pb.d.ts +74 -5
  17. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  18. package/dist/gen/auth/v1/auth_pb.js +58 -6
  19. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  20. package/dist/gen/auth/v1/connected_apps_pb.d.ts +382 -0
  21. package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -0
  22. package/dist/gen/auth/v1/connected_apps_pb.js +107 -0
  23. package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -0
  24. package/dist/gen/auth/v1/mfa_pb.d.ts +2 -140
  25. package/dist/gen/auth/v1/mfa_pb.d.ts.map +1 -1
  26. package/dist/gen/auth/v1/mfa_pb.js +8 -80
  27. package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
  28. package/dist/gen/auth/v1/policies_pb.d.ts +164 -41
  29. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/policies_pb.js +36 -3
  31. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/social_verification_pb.d.ts +4 -4
  33. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  34. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +17 -10
  35. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  36. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  37. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +3 -1
  38. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  39. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  40. package/dist/gen/fees/v1/fees_pb.d.ts +2 -1
  41. package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -1
  42. package/dist/gen/fees/v1/fees_pb.js.map +1 -1
  43. package/dist/gen/index.d.ts +8 -5
  44. package/dist/gen/index.js +8 -5
  45. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +3 -2
  46. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  47. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  48. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +9 -58
  49. package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
  50. package/dist/gen/marketdata/v1/heatmap_pb.js +8 -57
  51. package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
  52. package/dist/gen/notifications/v1/notifications_pb.d.ts +141 -4
  53. package/dist/gen/notifications/v1/notifications_pb.d.ts.map +1 -1
  54. package/dist/gen/notifications/v1/notifications_pb.js +94 -16
  55. package/dist/gen/notifications/v1/notifications_pb.js.map +1 -1
  56. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +14 -12
  57. package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
  58. package/dist/gen/orderbook/v1/orderbook_pb.js +6 -1
  59. package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
  60. package/dist/gen/orders/v1/orders_pb.d.ts +66 -18
  61. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  62. package/dist/gen/orders/v1/orders_pb.js +1 -1
  63. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  64. package/dist/gen/orders/v1/orders_read_pb.d.ts +8 -0
  65. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  66. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  67. package/dist/gen/polyester/api/options_pb.d.ts +2 -1
  68. package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
  69. package/dist/gen/polyester/api/options_pb.js +2 -1
  70. package/dist/gen/polyester/api/options_pb.js.map +1 -1
  71. package/dist/gen/polyester/api/v1/request_error_pb.d.ts +66 -0
  72. package/dist/gen/polyester/api/v1/request_error_pb.d.ts.map +1 -0
  73. package/dist/gen/polyester/api/v1/request_error_pb.js +49 -0
  74. package/dist/gen/polyester/api/v1/request_error_pb.js.map +1 -0
  75. package/dist/gen/polyester/type/v1/depth_tier_pb.d.ts +98 -0
  76. package/dist/gen/polyester/type/v1/depth_tier_pb.d.ts.map +1 -0
  77. package/dist/gen/polyester/type/v1/depth_tier_pb.js +104 -0
  78. package/dist/gen/polyester/type/v1/depth_tier_pb.js.map +1 -0
  79. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +42 -23
  80. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
  81. package/dist/gen/ratelimit/v1/ratelimit_pb.js +14 -2
  82. package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
  83. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +126 -13
  84. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  85. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +100 -28
  86. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  87. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +5 -3
  88. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  89. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  90. package/dist/gen/triggers/v1/triggers_pb.d.ts +25 -3
  91. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  92. package/dist/gen/triggers/v1/triggers_pb.js +18 -1
  93. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  94. package/dist/index.d.ts +5 -3
  95. package/dist/realtime/ready-gated-subscription.js +1 -1
  96. package/dist/realtime/snapshot-then-stream.js +2 -0
  97. package/dist/realtime/snapshot-then-stream.js.map +1 -1
  98. package/dist/services/account-activity/account-activity.schemas.d.ts +4 -4
  99. package/dist/services/address-book/address-book.js +1 -1
  100. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  101. package/dist/services/api-keys/api-keys.codecs.d.ts +6 -1
  102. package/dist/services/api-keys/api-keys.codecs.d.ts.map +1 -1
  103. package/dist/services/api-keys/api-keys.codecs.js +19 -7
  104. package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
  105. package/dist/services/api-keys/api-keys.js +1 -1
  106. package/dist/services/api-keys/api-keys.schemas.d.ts +12 -4
  107. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  108. package/dist/services/api-keys/api-keys.schemas.js +15 -6
  109. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  110. package/dist/services/api-keys/api-keys.types.d.ts +2 -2
  111. package/dist/services/assistant/assistant-events.schemas.d.ts +30 -30
  112. package/dist/services/assistant/assistant.schemas.d.ts +2 -2
  113. package/dist/services/auth/auth.d.ts +4 -0
  114. package/dist/services/auth/auth.d.ts.map +1 -1
  115. package/dist/services/auth/auth.js +12 -2
  116. package/dist/services/auth/auth.js.map +1 -1
  117. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +3 -3
  118. package/dist/services/balances/balances.js +1 -1
  119. package/dist/services/candles/candles.schemas.d.ts +10 -10
  120. package/dist/services/changelog/changelog.schemas.d.ts +22 -22
  121. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  122. package/dist/services/connected-apps/connected-apps.d.ts +46 -0
  123. package/dist/services/connected-apps/connected-apps.d.ts.map +1 -0
  124. package/dist/services/connected-apps/connected-apps.js +69 -0
  125. package/dist/services/connected-apps/connected-apps.js.map +1 -0
  126. package/dist/services/connected-apps/connected-apps.schemas.d.ts +132 -0
  127. package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -0
  128. package/dist/services/connected-apps/connected-apps.schemas.js +68 -0
  129. package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -0
  130. package/dist/services/connected-apps/connected-apps.types.d.ts +2 -0
  131. package/dist/services/connected-apps/service.d.ts +8 -0
  132. package/dist/services/connected-apps/service.d.ts.map +1 -0
  133. package/dist/services/connected-apps/service.js +9 -0
  134. package/dist/services/connected-apps/service.js.map +1 -0
  135. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +2 -2
  136. package/dist/services/heatmap/heatmap.codecs.d.ts +1 -0
  137. package/dist/services/heatmap/heatmap.codecs.d.ts.map +1 -1
  138. package/dist/services/heatmap/heatmap.codecs.js +2 -27
  139. package/dist/services/heatmap/heatmap.codecs.js.map +1 -1
  140. package/dist/services/heatmap/heatmap.schemas.d.ts +9 -8
  141. package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
  142. package/dist/services/heatmap/heatmap.schemas.js +4 -3
  143. package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
  144. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
  145. package/dist/services/lifecycle/lifecycle.js +1 -1
  146. package/dist/services/lifecycle/lifecycle.js.map +1 -1
  147. package/dist/services/lifecycle/lifecycle.schemas.d.ts +91 -91
  148. package/dist/services/notifications/notifications.codecs.d.ts +6 -3
  149. package/dist/services/notifications/notifications.codecs.d.ts.map +1 -1
  150. package/dist/services/notifications/notifications.codecs.js +14 -3
  151. package/dist/services/notifications/notifications.codecs.js.map +1 -1
  152. package/dist/services/notifications/notifications.schemas.d.ts +97 -3
  153. package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
  154. package/dist/services/notifications/notifications.schemas.js +18 -1
  155. package/dist/services/notifications/notifications.schemas.js.map +1 -1
  156. package/dist/services/notifications/notifications.types.d.ts +2 -2
  157. package/dist/services/orderbook/orderbook.codecs.js +1 -1
  158. package/dist/services/orderbook/orderbook.codecs.js.map +1 -1
  159. package/dist/services/orderbook/orderbook.d.ts +2 -2
  160. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  161. package/dist/services/orderbook/orderbook.js +8 -10
  162. package/dist/services/orderbook/orderbook.js.map +1 -1
  163. package/dist/services/orderbook/orderbook.schemas.d.ts +3 -6
  164. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  165. package/dist/services/orderbook/orderbook.schemas.js +5 -5
  166. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  167. package/dist/services/orders/order-errors.schemas.d.ts +9 -9
  168. package/dist/services/orders/orders-batch.schemas.d.ts +106 -102
  169. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  170. package/dist/services/orders/orders-batch.schemas.js +2 -0
  171. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  172. package/dist/services/orders/orders-input.schemas.d.ts +23 -15
  173. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  174. package/dist/services/orders/orders-input.schemas.js +7 -2
  175. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  176. package/dist/services/orders/orders-output.schemas.d.ts +8 -8
  177. package/dist/services/orders/orders.d.ts.map +1 -1
  178. package/dist/services/orders/orders.js +47 -43
  179. package/dist/services/orders/orders.js.map +1 -1
  180. package/dist/services/policies/api-key-policies/api-key-policies.d.ts +4 -1
  181. package/dist/services/policies/api-key-policies/api-key-policies.d.ts.map +1 -1
  182. package/dist/services/policies/api-key-policies/api-key-policies.js +5 -2
  183. package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
  184. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +25 -15
  185. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
  186. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +3 -0
  187. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
  188. package/dist/services/policies/shared.codecs.js +25 -5
  189. package/dist/services/policies/shared.codecs.js.map +1 -1
  190. package/dist/services/policies/shared.d.ts +1 -1
  191. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +4 -1
  192. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts.map +1 -1
  193. package/dist/services/policies/subaccount-policies/subaccount-policies.js +5 -2
  194. package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
  195. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +11 -3
  196. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
  197. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +4 -0
  198. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  199. package/dist/services/rate-limits/rate-limits.codecs.d.ts +1 -1
  200. package/dist/services/rate-limits/rate-limits.codecs.js +2 -1
  201. package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -1
  202. package/dist/services/rate-limits/rate-limits.schemas.d.ts +4 -4
  203. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  204. package/dist/services/subaccounts/subaccounts.js +2 -2
  205. package/dist/services/subaccounts/subaccounts.schemas.d.ts +20 -20
  206. package/dist/services/system/system.schemas.d.ts +13 -13
  207. package/dist/services/trades/trades.d.ts.map +1 -1
  208. package/dist/services/trades/trades.js +12 -4
  209. package/dist/services/trades/trades.js.map +1 -1
  210. package/dist/services/trades/trades.schemas.d.ts +1 -1
  211. package/dist/services/transfers/transfers.js +1 -1
  212. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  213. package/dist/services/triggers/triggers-output.schemas.d.ts +57 -57
  214. package/dist/services/triggers/triggers.codecs.d.ts.map +1 -1
  215. package/dist/services/triggers/triggers.codecs.js +2 -0
  216. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  217. package/dist/services/triggers/triggers.d.ts.map +1 -1
  218. package/dist/services/triggers/triggers.js +14 -10
  219. package/dist/services/triggers/triggers.js.map +1 -1
  220. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  221. package/dist/shared/connect-error-mapping.js +5 -2
  222. package/dist/shared/connect-error-mapping.js.map +1 -1
  223. package/dist/shared/decimal-surface.d.ts +6 -0
  224. package/dist/shared/decimal-surface.d.ts.map +1 -1
  225. package/dist/shared/decimal-surface.js +65 -1
  226. package/dist/shared/decimal-surface.js.map +1 -1
  227. package/dist/shared/depth-tier.js +46 -0
  228. package/dist/shared/depth-tier.js.map +1 -0
  229. package/dist/shared/error-detail.d.ts +6 -0
  230. package/dist/shared/error-detail.d.ts.map +1 -1
  231. package/dist/shared/error-detail.js +2 -1
  232. package/dist/shared/error-detail.js.map +1 -1
  233. package/dist/shared/error-details/request.js +16 -0
  234. package/dist/shared/error-details/request.js.map +1 -0
  235. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  236. package/dist/wired-services.d.ts.map +1 -1
  237. package/dist/wired-services.js +6 -4
  238. package/dist/wired-services.js.map +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"mfa_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/mfa_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/mfa.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_struct, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { JsonObject, Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/mfa.proto.\n */\nexport const file_auth_v1_mfa: GenFile = /*@__PURE__*/\n fileDesc(\"ChFhdXRoL3YxL21mYS5wcm90bxIHYXV0aC52MSKkAQoLU2Vzc2lvbkluZm8SFAoKc2Vzc2lvbl9pZBgBIAEoCUIAEi4KDXNlc3Npb25fbGV2ZWwYAiABKA4yFS5hdXRoLnYxLlNlc3Npb25MZXZlbEIAEiAKFmF1dGhlbnRpY2F0aW9uX21ldGhvZHMYAyADKAlCABItCglhdXRoX3RpbWUYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIsIBCglNRkFGYWN0b3ISEwoJZmFjdG9yX2lkGAEgASgJQgASLQoLZmFjdG9yX3R5cGUYAiABKA4yFi5hdXRoLnYxLk1GQUZhY3RvclR5cGVCABIPCgVsYWJlbBgDIAEoCUIAEi4KCmNyZWF0ZWRfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjAKDGxhc3RfdXNlZF9hdBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiFwoVTGlzdE1GQUZhY3RvcnNSZXF1ZXN0IlkKFkxpc3RNRkFGYWN0b3JzUmVzcG9uc2USIwoHZmFjdG9ycxgBIAMoCzISLmF1dGgudjEuTUZBRmFjdG9yEhoKEmhhc19yZWNvdmVyeV9jb2RlcxgCIAEoCCItChpCZWdpblRPVFBFbnJvbGxtZW50UmVxdWVzdBIPCgVsYWJlbBgBIAEoCUIAIo8BChtCZWdpblRPVFBFbnJvbGxtZW50UmVzcG9uc2USFwoNZW5yb2xsbWVudF9pZBgBIAEoCUIAEhAKBnNlY3JldBgCIAEoCUIAEhUKC290cGF1dGhfdXJp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ZXF1ZXN0GiMuYXV0aC52MS5SZWxlYXNlRnJlc2hTdGVwVXBSZXNwb25zZSIAElAKDEdldFJlY2VudE1GQRIcLmF1dGgudjEuR2V0UmVjZW50TUZBUmVxdWVzdBodLmF1dGgudjEuR2V0UmVjZW50TUZBUmVzcG9uc2UiA5ACARJQCgxFbmRSZWNlbnRNRkESHC5hdXRoLnYxLkVuZFJlY2VudE1GQVJlcXVlc3QaHS5hdXRoLnYxLkVuZFJlY2VudE1GQVJlc3BvbnNlIgOQAgIaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=\", [file_google_protobuf_struct, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * Current assurance details for an interactive session.\n *\n * @generated from message auth.v1.SessionInfo\n */\nexport type SessionInfo = Message<\"auth.v1.SessionInfo\"> & {\n /**\n * Stable session identifier shared by the primary and MFA-elevated tokens.\n *\n * @generated from field: string session_id = 1;\n */\n sessionId: string;\n\n /**\n * Assurance level represented by this session response.\n *\n * @generated from field: auth.v1.SessionLevel session_level = 2;\n */\n sessionLevel: SessionLevel;\n\n /**\n * Authentication methods used for this session state, such as wallet, TOTP, passkey, or recovery code. Maximum 8 unique values.\n *\n * @generated from field: repeated string authentication_methods = 3;\n */\n authenticationMethods: string[];\n\n /**\n * Time when the session was authenticated or elevated.\n *\n * @generated from field: google.protobuf.Timestamp auth_time = 4;\n */\n authTime?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.SessionInfo.\n * Use `create(SessionInfoSchema)` to create a new message.\n */\nexport const SessionInfoSchema: GenMessage<SessionInfo> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 0);\n\n/**\n * Enrolled MFA factor metadata visible to the account owner.\n *\n * @generated from message auth.v1.MFAFactor\n */\nexport type MFAFactor = Message<\"auth.v1.MFAFactor\"> & {\n /**\n * MFA factor identifier. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string factor_id = 1;\n */\n factorId: string;\n\n /**\n * Type of enrolled factor.\n *\n * @generated from field: auth.v1.MFAFactorType factor_type = 2;\n */\n factorType: MFAFactorType;\n\n /**\n * Human-friendly label for the factor. Empty when no label is set.\n *\n * @generated from field: string label = 3;\n */\n label: string;\n\n /**\n * Time when the factor was enrolled.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Time when the factor was last used. Empty if the factor has not been used.\n *\n * @generated from field: google.protobuf.Timestamp last_used_at = 5;\n */\n lastUsedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.MFAFactor.\n * Use `create(MFAFactorSchema)` to create a new message.\n */\nexport const MFAFactorSchema: GenMessage<MFAFactor> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 1);\n\n/**\n * Request to list the caller's MFA factors.\n *\n * @generated from message auth.v1.ListMFAFactorsRequest\n */\nexport type ListMFAFactorsRequest = Message<\"auth.v1.ListMFAFactorsRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.ListMFAFactorsRequest.\n * Use `create(ListMFAFactorsRequestSchema)` to create a new message.\n */\nexport const ListMFAFactorsRequestSchema: GenMessage<ListMFAFactorsRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 2);\n\n/**\n * Response containing the caller's enrolled MFA factors.\n *\n * @generated from message auth.v1.ListMFAFactorsResponse\n */\nexport type ListMFAFactorsResponse = Message<\"auth.v1.ListMFAFactorsResponse\"> & {\n /**\n * Enrolled MFA factors, ordered oldest first.\n *\n * @generated from field: repeated auth.v1.MFAFactor factors = 1;\n */\n factors: MFAFactor[];\n\n /**\n * True when the caller has at least one unused recovery code.\n *\n * @generated from field: bool has_recovery_codes = 2;\n */\n hasRecoveryCodes: boolean;\n};\n\n/**\n * Describes the message auth.v1.ListMFAFactorsResponse.\n * Use `create(ListMFAFactorsResponseSchema)` to create a new message.\n */\nexport const ListMFAFactorsResponseSchema: GenMessage<ListMFAFactorsResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 3);\n\n/**\n * Request to begin authenticator-app enrollment.\n *\n * @generated from message auth.v1.BeginTOTPEnrollmentRequest\n */\nexport type BeginTOTPEnrollmentRequest = Message<\"auth.v1.BeginTOTPEnrollmentRequest\"> & {\n /**\n * Optional human-friendly label. Defaults to \"Authenticator App\" when empty. Maximum 128 characters.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n};\n\n/**\n * Describes the message auth.v1.BeginTOTPEnrollmentRequest.\n * Use `create(BeginTOTPEnrollmentRequestSchema)` to create a new message.\n */\nexport const BeginTOTPEnrollmentRequestSchema: GenMessage<BeginTOTPEnrollmentRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 4);\n\n/**\n * Response containing the authenticator-app enrollment secret.\n *\n * @generated from message auth.v1.BeginTOTPEnrollmentResponse\n */\nexport type BeginTOTPEnrollmentResponse = Message<\"auth.v1.BeginTOTPEnrollmentResponse\"> & {\n /**\n * Enrollment challenge identifier. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string enrollment_id = 1;\n */\n enrollmentId: string;\n\n /**\n * Shared secret to enter into an authenticator app. Returned only when enrollment begins.\n *\n * @generated from field: string secret = 2;\n */\n secret: string;\n\n /**\n * Authenticator-app setup URI for QR-code display. Returned only when enrollment begins.\n *\n * @generated from field: string otpauth_uri = 3;\n */\n otpauthUri: string;\n\n /**\n * Time when this enrollment challenge expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 4;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.BeginTOTPEnrollmentResponse.\n * Use `create(BeginTOTPEnrollmentResponseSchema)` to create a new message.\n */\nexport const BeginTOTPEnrollmentResponseSchema: GenMessage<BeginTOTPEnrollmentResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 5);\n\n/**\n * Request to finish authenticator-app enrollment.\n *\n * @generated from message auth.v1.FinishTOTPEnrollmentRequest\n */\nexport type FinishTOTPEnrollmentRequest = Message<\"auth.v1.FinishTOTPEnrollmentRequest\"> & {\n /**\n * Enrollment challenge identifier returned by BeginTOTPEnrollment.\n *\n * @generated from field: string enrollment_id = 1;\n */\n enrollmentId: string;\n\n /**\n * Current 6 to 8 digit code from the authenticator app.\n *\n * @generated from field: string code = 2;\n */\n code: string;\n};\n\n/**\n * Describes the message auth.v1.FinishTOTPEnrollmentRequest.\n * Use `create(FinishTOTPEnrollmentRequestSchema)` to create a new message.\n */\nexport const FinishTOTPEnrollmentRequestSchema: GenMessage<FinishTOTPEnrollmentRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 6);\n\n/**\n * Response returned after authenticator-app enrollment succeeds.\n *\n * @generated from message auth.v1.FinishTOTPEnrollmentResponse\n */\nexport type FinishTOTPEnrollmentResponse = Message<\"auth.v1.FinishTOTPEnrollmentResponse\"> & {\n /**\n * Newly enrolled MFA factor.\n *\n * @generated from field: auth.v1.MFAFactor factor = 1;\n */\n factor?: MFAFactor | undefined;\n\n /**\n * One-time recovery codes generated for the account. Store these securely; they are only returned in this response.\n *\n * @generated from field: repeated string recovery_codes = 2;\n */\n recoveryCodes: string[];\n\n /**\n * MFA-elevated session details after successful enrollment.\n *\n * @generated from field: auth.v1.SessionInfo session = 3;\n */\n session?: SessionInfo | undefined;\n\n /**\n * MFA-elevated session token issued after successful enrollment.\n *\n * @generated from field: string access_token = 4;\n */\n accessToken: string;\n\n /**\n * Time when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp access_token_expires_at = 5;\n */\n accessTokenExpiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.FinishTOTPEnrollmentResponse.\n * Use `create(FinishTOTPEnrollmentResponseSchema)` to create a new message.\n */\nexport const FinishTOTPEnrollmentResponseSchema: GenMessage<FinishTOTPEnrollmentResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 7);\n\n/**\n * Request to begin passkey enrollment.\n *\n * @generated from message auth.v1.BeginPasskeyEnrollmentRequest\n */\nexport type BeginPasskeyEnrollmentRequest = Message<\"auth.v1.BeginPasskeyEnrollmentRequest\"> & {\n /**\n * Optional human-friendly label for the passkey. Maximum 128 characters.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n};\n\n/**\n * Describes the message auth.v1.BeginPasskeyEnrollmentRequest.\n * Use `create(BeginPasskeyEnrollmentRequestSchema)` to create a new message.\n */\nexport const BeginPasskeyEnrollmentRequestSchema: GenMessage<BeginPasskeyEnrollmentRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 8);\n\n/**\n * Response containing passkey enrollment options.\n *\n * @generated from message auth.v1.BeginPasskeyEnrollmentResponse\n */\nexport type BeginPasskeyEnrollmentResponse = Message<\"auth.v1.BeginPasskeyEnrollmentResponse\"> & {\n /**\n * Enrollment challenge identifier. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string enrollment_id = 1;\n */\n enrollmentId: string;\n\n /**\n * Passkey creation options to pass to the browser or device authenticator.\n *\n * @generated from field: google.protobuf.Struct public_key = 2;\n */\n publicKey?: JsonObject | undefined;\n\n /**\n * Time when this enrollment challenge expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 3;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.BeginPasskeyEnrollmentResponse.\n * Use `create(BeginPasskeyEnrollmentResponseSchema)` to create a new message.\n */\nexport const BeginPasskeyEnrollmentResponseSchema: GenMessage<BeginPasskeyEnrollmentResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 9);\n\n/**\n * Request to finish passkey enrollment.\n *\n * @generated from message auth.v1.FinishPasskeyEnrollmentRequest\n */\nexport type FinishPasskeyEnrollmentRequest = Message<\"auth.v1.FinishPasskeyEnrollmentRequest\"> & {\n /**\n * Enrollment challenge identifier returned by BeginPasskeyEnrollment.\n *\n * @generated from field: string enrollment_id = 1;\n */\n enrollmentId: string;\n\n /**\n * Passkey creation response returned by the browser or device authenticator.\n *\n * @generated from field: google.protobuf.Struct credential = 2;\n */\n credential?: JsonObject | undefined;\n};\n\n/**\n * Describes the message auth.v1.FinishPasskeyEnrollmentRequest.\n * Use `create(FinishPasskeyEnrollmentRequestSchema)` to create a new message.\n */\nexport const FinishPasskeyEnrollmentRequestSchema: GenMessage<FinishPasskeyEnrollmentRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 10);\n\n/**\n * Response returned after passkey enrollment succeeds.\n *\n * @generated from message auth.v1.FinishPasskeyEnrollmentResponse\n */\nexport type FinishPasskeyEnrollmentResponse = Message<\"auth.v1.FinishPasskeyEnrollmentResponse\"> & {\n /**\n * Newly enrolled MFA factor.\n *\n * @generated from field: auth.v1.MFAFactor factor = 1;\n */\n factor?: MFAFactor | undefined;\n\n /**\n * One-time recovery codes generated for the account. Store these securely; they are only returned in this response.\n *\n * @generated from field: repeated string recovery_codes = 2;\n */\n recoveryCodes: string[];\n\n /**\n * MFA-elevated session details after successful enrollment.\n *\n * @generated from field: auth.v1.SessionInfo session = 3;\n */\n session?: SessionInfo | undefined;\n\n /**\n * MFA-elevated session token issued after successful enrollment.\n *\n * @generated from field: string access_token = 4;\n */\n accessToken: string;\n\n /**\n * Time when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp access_token_expires_at = 5;\n */\n accessTokenExpiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.FinishPasskeyEnrollmentResponse.\n * Use `create(FinishPasskeyEnrollmentResponseSchema)` to create a new message.\n */\nexport const FinishPasskeyEnrollmentResponseSchema: GenMessage<FinishPasskeyEnrollmentResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 11);\n\n/**\n * Request to start an MFA challenge.\n *\n * @generated from message auth.v1.BeginMFAChallengeRequest\n */\nexport type BeginMFAChallengeRequest = Message<\"auth.v1.BeginMFAChallengeRequest\"> & {\n /**\n * Desired challenge outcome: session elevation or fresh step-up.\n *\n * @generated from field: auth.v1.MFAChallengePurpose purpose = 1;\n */\n purpose: MFAChallengePurpose;\n};\n\n/**\n * Describes the message auth.v1.BeginMFAChallengeRequest.\n * Use `create(BeginMFAChallengeRequestSchema)` to create a new message.\n */\nexport const BeginMFAChallengeRequestSchema: GenMessage<BeginMFAChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 12);\n\n/**\n * Response returned after starting an MFA challenge.\n *\n * @generated from message auth.v1.BeginMFAChallengeResponse\n */\nexport type BeginMFAChallengeResponse = Message<\"auth.v1.BeginMFAChallengeResponse\"> & {\n /**\n * Challenge identifier to submit when verifying a factor. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * Factor types the caller may use for this challenge. Maximum 8 unique values.\n *\n * @generated from field: repeated auth.v1.MFAFactorType allowed_factor_types = 2;\n */\n allowedFactorTypes: MFAFactorType[];\n\n /**\n * Passkey request options when passkey verification is available. Empty when passkeys are not available.\n *\n * @generated from field: google.protobuf.Struct public_key = 3;\n */\n publicKey?: JsonObject | undefined;\n\n /**\n * Time when this challenge expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 4;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.BeginMFAChallengeResponse.\n * Use `create(BeginMFAChallengeResponseSchema)` to create a new message.\n */\nexport const BeginMFAChallengeResponseSchema: GenMessage<BeginMFAChallengeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 13);\n\n/**\n * Request to verify an MFA challenge with an authenticator-app code.\n *\n * @generated from message auth.v1.VerifyTOTPChallengeRequest\n */\nexport type VerifyTOTPChallengeRequest = Message<\"auth.v1.VerifyTOTPChallengeRequest\"> & {\n /**\n * Challenge identifier returned by BeginMFAChallenge.\n *\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * Current 6 to 8 digit code from the authenticator app.\n *\n * @generated from field: string code = 2;\n */\n code: string;\n};\n\n/**\n * Describes the message auth.v1.VerifyTOTPChallengeRequest.\n * Use `create(VerifyTOTPChallengeRequestSchema)` to create a new message.\n */\nexport const VerifyTOTPChallengeRequestSchema: GenMessage<VerifyTOTPChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 14);\n\n/**\n * Request to verify an MFA challenge with a passkey.\n *\n * @generated from message auth.v1.FinishPasskeyChallengeRequest\n */\nexport type FinishPasskeyChallengeRequest = Message<\"auth.v1.FinishPasskeyChallengeRequest\"> & {\n /**\n * Challenge identifier returned by BeginMFAChallenge.\n *\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * Passkey authentication response returned by the browser or device authenticator.\n *\n * @generated from field: google.protobuf.Struct credential = 2;\n */\n credential?: JsonObject | undefined;\n};\n\n/**\n * Describes the message auth.v1.FinishPasskeyChallengeRequest.\n * Use `create(FinishPasskeyChallengeRequestSchema)` to create a new message.\n */\nexport const FinishPasskeyChallengeRequestSchema: GenMessage<FinishPasskeyChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 15);\n\n/**\n * Request to verify an MFA challenge with a recovery code.\n *\n * @generated from message auth.v1.VerifyRecoveryCodeChallengeRequest\n */\nexport type VerifyRecoveryCodeChallengeRequest = Message<\"auth.v1.VerifyRecoveryCodeChallengeRequest\"> & {\n /**\n * Challenge identifier returned by BeginMFAChallenge.\n *\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * One-time recovery code. Accepted format is 8 to 64 letters, numbers, or hyphens.\n *\n * @generated from field: string recovery_code = 2;\n */\n recoveryCode: string;\n};\n\n/**\n * Describes the message auth.v1.VerifyRecoveryCodeChallengeRequest.\n * Use `create(VerifyRecoveryCodeChallengeRequestSchema)` to create a new message.\n */\nexport const VerifyRecoveryCodeChallengeRequestSchema: GenMessage<VerifyRecoveryCodeChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 16);\n\n/**\n * Response returned after an MFA challenge is completed.\n *\n * @generated from message auth.v1.CompleteMFAChallengeResponse\n */\nexport type CompleteMFAChallengeResponse = Message<\"auth.v1.CompleteMFAChallengeResponse\"> & {\n /**\n * MFA-elevated session details after completing the challenge.\n *\n * @generated from field: auth.v1.SessionInfo session = 1;\n */\n session?: SessionInfo | undefined;\n\n /**\n * MFA-elevated session token returned after every successful challenge.\n *\n * @generated from field: string access_token = 2;\n */\n accessToken: string;\n\n /**\n * Time when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp access_token_expires_at = 3;\n */\n accessTokenExpiresAt?: Timestamp | undefined;\n\n /**\n * Fresh step-up token returned for fresh step-up challenges. Empty for session-elevation challenges.\n *\n * @generated from field: string step_up_token = 4;\n */\n stepUpToken: string;\n\n /**\n * Time when step_up_token expires. Empty when no step_up_token is returned.\n *\n * @generated from field: google.protobuf.Timestamp step_up_expires_at = 5;\n */\n stepUpExpiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.CompleteMFAChallengeResponse.\n * Use `create(CompleteMFAChallengeResponseSchema)` to create a new message.\n */\nexport const CompleteMFAChallengeResponseSchema: GenMessage<CompleteMFAChallengeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 17);\n\n/**\n * Request to bind a fresh step-up proof to one protected request.\n *\n * @generated from message auth.v1.ClaimFreshStepUpRequest\n */\nexport type ClaimFreshStepUpRequest = Message<\"auth.v1.ClaimFreshStepUpRequest\"> & {\n /**\n * Client-generated request identifier for the protected request. Maximum 128 characters.\n *\n * @generated from field: string request_id = 1;\n */\n requestId: string;\n\n /**\n * Product action being protected, such as a withdrawal or security setting change. Maximum 64 characters.\n *\n * @generated from field: string action_type = 2;\n */\n actionType: string;\n\n /**\n * Product subject for the protected action, such as the target account, destination, or resource identifier. Maximum 128 characters.\n *\n * @generated from field: string subject = 3;\n */\n subject: string;\n};\n\n/**\n * Describes the message auth.v1.ClaimFreshStepUpRequest.\n * Use `create(ClaimFreshStepUpRequestSchema)` to create a new message.\n */\nexport const ClaimFreshStepUpRequestSchema: GenMessage<ClaimFreshStepUpRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 18);\n\n/**\n * Response returned after a fresh step-up proof is claimed.\n *\n * @generated from message auth.v1.ClaimFreshStepUpResponse\n */\nexport type ClaimFreshStepUpResponse = Message<\"auth.v1.ClaimFreshStepUpResponse\"> & {\n /**\n * Fresh step-up proof identifier. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string step_up_id = 1;\n */\n stepUpId: string;\n\n /**\n * One-time nonce that must be echoed when consuming or releasing the claim.\n *\n * @generated from field: string claim_nonce = 2;\n */\n claimNonce: string;\n\n /**\n * Time when this claim expires if it is not consumed or released.\n *\n * @generated from field: google.protobuf.Timestamp claim_expires_at = 3;\n */\n claimExpiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.ClaimFreshStepUpResponse.\n * Use `create(ClaimFreshStepUpResponseSchema)` to create a new message.\n */\nexport const ClaimFreshStepUpResponseSchema: GenMessage<ClaimFreshStepUpResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 19);\n\n/**\n * Request to consume a claimed fresh step-up proof after the protected request succeeds.\n *\n * @generated from message auth.v1.ConsumeFreshStepUpRequest\n */\nexport type ConsumeFreshStepUpRequest = Message<\"auth.v1.ConsumeFreshStepUpRequest\"> & {\n /**\n * Fresh step-up proof identifier returned by ClaimFreshStepUp.\n *\n * @generated from field: string step_up_id = 1;\n */\n stepUpId: string;\n\n /**\n * Client-generated request identifier used when the proof was claimed.\n *\n * @generated from field: string request_id = 2;\n */\n requestId: string;\n\n /**\n * Product action type used when the proof was claimed.\n *\n * @generated from field: string action_type = 3;\n */\n actionType: string;\n\n /**\n * Product subject used when the proof was claimed.\n *\n * @generated from field: string subject = 4;\n */\n subject: string;\n\n /**\n * One-time nonce returned by ClaimFreshStepUp.\n *\n * @generated from field: string claim_nonce = 5;\n */\n claimNonce: string;\n};\n\n/**\n * Describes the message auth.v1.ConsumeFreshStepUpRequest.\n * Use `create(ConsumeFreshStepUpRequestSchema)` to create a new message.\n */\nexport const ConsumeFreshStepUpRequestSchema: GenMessage<ConsumeFreshStepUpRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 20);\n\n/**\n * Empty response returned after a fresh step-up proof is consumed.\n *\n * @generated from message auth.v1.ConsumeFreshStepUpResponse\n */\nexport type ConsumeFreshStepUpResponse = Message<\"auth.v1.ConsumeFreshStepUpResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.ConsumeFreshStepUpResponse.\n * Use `create(ConsumeFreshStepUpResponseSchema)` to create a new message.\n */\nexport const ConsumeFreshStepUpResponseSchema: GenMessage<ConsumeFreshStepUpResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 21);\n\n/**\n * Request to release a claimed fresh step-up proof when the protected request does not complete.\n *\n * @generated from message auth.v1.ReleaseFreshStepUpRequest\n */\nexport type ReleaseFreshStepUpRequest = Message<\"auth.v1.ReleaseFreshStepUpRequest\"> & {\n /**\n * Fresh step-up proof identifier returned by ClaimFreshStepUp.\n *\n * @generated from field: string step_up_id = 1;\n */\n stepUpId: string;\n\n /**\n * Client-generated request identifier used when the proof was claimed.\n *\n * @generated from field: string request_id = 2;\n */\n requestId: string;\n\n /**\n * Product action type used when the proof was claimed.\n *\n * @generated from field: string action_type = 3;\n */\n actionType: string;\n\n /**\n * Product subject used when the proof was claimed.\n *\n * @generated from field: string subject = 4;\n */\n subject: string;\n\n /**\n * One-time nonce returned by ClaimFreshStepUp.\n *\n * @generated from field: string claim_nonce = 5;\n */\n claimNonce: string;\n\n /**\n * Optional product-facing reason for releasing the claim. Maximum 128 characters.\n *\n * @generated from field: string reason = 6;\n */\n reason: string;\n};\n\n/**\n * Describes the message auth.v1.ReleaseFreshStepUpRequest.\n * Use `create(ReleaseFreshStepUpRequestSchema)` to create a new message.\n */\nexport const ReleaseFreshStepUpRequestSchema: GenMessage<ReleaseFreshStepUpRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 22);\n\n/**\n * Empty response returned after a fresh step-up proof is released.\n *\n * @generated from message auth.v1.ReleaseFreshStepUpResponse\n */\nexport type ReleaseFreshStepUpResponse = Message<\"auth.v1.ReleaseFreshStepUpResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.ReleaseFreshStepUpResponse.\n * Use `create(ReleaseFreshStepUpResponseSchema)` to create a new message.\n */\nexport const ReleaseFreshStepUpResponseSchema: GenMessage<ReleaseFreshStepUpResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 23);\n\n/**\n * Request to read whether the session's recent-MFA window covers an action.\n *\n * @generated from message auth.v1.GetRecentMFARequest\n */\nexport type GetRecentMFARequest = Message<\"auth.v1.GetRecentMFARequest\"> & {\n /**\n * The action the client is about to perform.\n *\n * @generated from field: auth.v1.RecentMFAAction action = 1;\n */\n action: RecentMFAAction;\n};\n\n/**\n * Describes the message auth.v1.GetRecentMFARequest.\n * Use `create(GetRecentMFARequestSchema)` to create a new message.\n */\nexport const GetRecentMFARequestSchema: GenMessage<GetRecentMFARequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 24);\n\n/**\n * Whether the session's recent-MFA window is open for the action.\n *\n * @generated from message auth.v1.GetRecentMFAResponse\n */\nexport type GetRecentMFAResponse = Message<\"auth.v1.GetRecentMFAResponse\"> & {\n /**\n * True when the action needs no new step-up now: send it without a step-up\n * proof. False when the client must complete an MFA challenge for fresh\n * step-up first.\n *\n * @generated from field: bool open = 1;\n */\n open: boolean;\n\n /**\n * Time when the window closes. Empty when open is false. A request that\n * arrives after this time needs a new step-up.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.GetRecentMFAResponse.\n * Use `create(GetRecentMFAResponseSchema)` to create a new message.\n */\nexport const GetRecentMFAResponseSchema: GenMessage<GetRecentMFAResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 25);\n\n/**\n * Request to end the session's recent-MFA window, for example at sign-out.\n *\n * @generated from message auth.v1.EndRecentMFARequest\n */\nexport type EndRecentMFARequest = Message<\"auth.v1.EndRecentMFARequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.EndRecentMFARequest.\n * Use `create(EndRecentMFARequestSchema)` to create a new message.\n */\nexport const EndRecentMFARequestSchema: GenMessage<EndRecentMFARequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 26);\n\n/**\n * Empty response returned after the recent-MFA window is ended.\n *\n * @generated from message auth.v1.EndRecentMFAResponse\n */\nexport type EndRecentMFAResponse = Message<\"auth.v1.EndRecentMFAResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.EndRecentMFAResponse.\n * Use `create(EndRecentMFAResponseSchema)` to create a new message.\n */\nexport const EndRecentMFAResponseSchema: GenMessage<EndRecentMFAResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 27);\n\n/**\n * Request to update an MFA factor label.\n *\n * @generated from message auth.v1.UpdateMFAFactorRequest\n */\nexport type UpdateMFAFactorRequest = Message<\"auth.v1.UpdateMFAFactorRequest\"> & {\n /**\n * MFA factor identifier to update.\n *\n * @generated from field: string factor_id = 1;\n */\n factorId: string;\n\n /**\n * New human-friendly label for the factor. Empty clears the label.\n *\n * @generated from field: string label = 2;\n */\n label: string;\n};\n\n/**\n * Describes the message auth.v1.UpdateMFAFactorRequest.\n * Use `create(UpdateMFAFactorRequestSchema)` to create a new message.\n */\nexport const UpdateMFAFactorRequestSchema: GenMessage<UpdateMFAFactorRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 28);\n\n/**\n * Response containing the updated MFA factor.\n *\n * @generated from message auth.v1.UpdateMFAFactorResponse\n */\nexport type UpdateMFAFactorResponse = Message<\"auth.v1.UpdateMFAFactorResponse\"> & {\n /**\n * Updated MFA factor metadata.\n *\n * @generated from field: auth.v1.MFAFactor factor = 1;\n */\n factor?: MFAFactor | undefined;\n};\n\n/**\n * Describes the message auth.v1.UpdateMFAFactorResponse.\n * Use `create(UpdateMFAFactorResponseSchema)` to create a new message.\n */\nexport const UpdateMFAFactorResponseSchema: GenMessage<UpdateMFAFactorResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 29);\n\n/**\n * Request to delete an MFA factor.\n *\n * @generated from message auth.v1.DeleteMFAFactorRequest\n */\nexport type DeleteMFAFactorRequest = Message<\"auth.v1.DeleteMFAFactorRequest\"> & {\n /**\n * MFA factor identifier to delete.\n *\n * @generated from field: string factor_id = 1;\n */\n factorId: string;\n};\n\n/**\n * Describes the message auth.v1.DeleteMFAFactorRequest.\n * Use `create(DeleteMFAFactorRequestSchema)` to create a new message.\n */\nexport const DeleteMFAFactorRequestSchema: GenMessage<DeleteMFAFactorRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 30);\n\n/**\n * Empty response returned after an MFA factor is deleted.\n *\n * @generated from message auth.v1.DeleteMFAFactorResponse\n */\nexport type DeleteMFAFactorResponse = Message<\"auth.v1.DeleteMFAFactorResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteMFAFactorResponse.\n * Use `create(DeleteMFAFactorResponseSchema)` to create a new message.\n */\nexport const DeleteMFAFactorResponseSchema: GenMessage<DeleteMFAFactorResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 31);\n\n/**\n * Request to rotate recovery codes.\n *\n * @generated from message auth.v1.RegenerateRecoveryCodesRequest\n */\nexport type RegenerateRecoveryCodesRequest = Message<\"auth.v1.RegenerateRecoveryCodesRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.RegenerateRecoveryCodesRequest.\n * Use `create(RegenerateRecoveryCodesRequestSchema)` to create a new message.\n */\nexport const RegenerateRecoveryCodesRequestSchema: GenMessage<RegenerateRecoveryCodesRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 32);\n\n/**\n * Response containing newly generated recovery codes.\n *\n * @generated from message auth.v1.RegenerateRecoveryCodesResponse\n */\nexport type RegenerateRecoveryCodesResponse = Message<\"auth.v1.RegenerateRecoveryCodesResponse\"> & {\n /**\n * New one-time recovery codes. Store these securely; they are only returned in this response.\n *\n * @generated from field: repeated string recovery_codes = 1;\n */\n recoveryCodes: string[];\n};\n\n/**\n * Describes the message auth.v1.RegenerateRecoveryCodesResponse.\n * Use `create(RegenerateRecoveryCodesResponseSchema)` to create a new message.\n */\nexport const RegenerateRecoveryCodesResponseSchema: GenMessage<RegenerateRecoveryCodesResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 33);\n\n/**\n * Session assurance level for the current interactive authentication context.\n *\n * @generated from enum auth.v1.SessionLevel\n */\nexport enum SessionLevel {\n /**\n * No session assurance level was specified.\n *\n * @generated from enum value: SESSION_LEVEL_UNSPECIFIED = 0;\n */\n SESSION_LEVEL_UNSPECIFIED = 0,\n\n /**\n * Primary login has completed, but MFA has not elevated this session.\n *\n * @generated from enum value: PRIMARY_AUTHENTICATED = 1;\n */\n PRIMARY_AUTHENTICATED = 1,\n\n /**\n * MFA has elevated this session for ordinary protected account activity.\n *\n * @generated from enum value: MFA_ELEVATED = 2;\n */\n MFA_ELEVATED = 2,\n\n /**\n * A short-lived proof for one high-risk action.\n *\n * @generated from enum value: FRESH_STEP_UP = 3;\n */\n FRESH_STEP_UP = 3,\n}\n\n/**\n * Describes the enum auth.v1.SessionLevel.\n */\nexport const SessionLevelSchema: GenEnum<SessionLevel> = /*@__PURE__*/\n enumDesc(file_auth_v1_mfa, 0);\n\n/**\n * Type of MFA factor or one-time recovery method.\n *\n * @generated from enum auth.v1.MFAFactorType\n */\nexport enum MFAFactorType {\n /**\n * No MFA factor type was specified.\n *\n * @generated from enum value: MFA_FACTOR_TYPE_UNSPECIFIED = 0;\n */\n MFA_FACTOR_TYPE_UNSPECIFIED = 0,\n\n /**\n * Time-based one-time password from an authenticator app.\n *\n * @generated from enum value: MFA_FACTOR_TYPE_TOTP = 1;\n */\n MFA_FACTOR_TYPE_TOTP = 1,\n\n /**\n * Passkey factor using device or hardware-key authentication.\n *\n * @generated from enum value: MFA_FACTOR_TYPE_PASSKEY = 2;\n */\n MFA_FACTOR_TYPE_PASSKEY = 2,\n\n /**\n * One-time recovery code.\n *\n * @generated from enum value: MFA_FACTOR_TYPE_RECOVERY_CODE = 3;\n */\n MFA_FACTOR_TYPE_RECOVERY_CODE = 3,\n}\n\n/**\n * Describes the enum auth.v1.MFAFactorType.\n */\nexport const MFAFactorTypeSchema: GenEnum<MFAFactorType> = /*@__PURE__*/\n enumDesc(file_auth_v1_mfa, 1);\n\n/**\n * Reason a user is completing an MFA challenge.\n *\n * @generated from enum auth.v1.MFAChallengePurpose\n */\nexport enum MFAChallengePurpose {\n /**\n * No MFA challenge purpose was specified.\n *\n * @generated from enum value: MFA_CHALLENGE_PURPOSE_UNSPECIFIED = 0;\n */\n MFA_CHALLENGE_PURPOSE_UNSPECIFIED = 0,\n\n /**\n * Elevates the current session after successful MFA.\n *\n * @generated from enum value: MFA_CHALLENGE_PURPOSE_SESSION_ELEVATION = 1;\n */\n MFA_CHALLENGE_PURPOSE_SESSION_ELEVATION = 1,\n\n /**\n * Creates a short-lived proof for one high-risk action.\n *\n * @generated from enum value: MFA_CHALLENGE_PURPOSE_FRESH_STEP_UP = 2;\n */\n MFA_CHALLENGE_PURPOSE_FRESH_STEP_UP = 2,\n}\n\n/**\n * Describes the enum auth.v1.MFAChallengePurpose.\n */\nexport const MFAChallengePurposeSchema: GenEnum<MFAChallengePurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_mfa, 2);\n\n/**\n * An action that one step-up covers for a short time in the same signed-in\n * session: the recent-MFA window. The window opens when the session completes\n * an MFA challenge for fresh step-up, and lasts 5 minutes. It closes earlier\n * when the session ends (EndRecentMFA or session expiry). Every other action\n * that needs MFA, including withdrawals, transfers, auto-withdraw rules, API\n * key and policy changes outside the assistant, address book changes and MFA\n * settings, still needs a fresh, single-use step-up proof each time.\n *\n * @generated from enum auth.v1.RecentMFAAction\n */\nexport enum RecentMFAAction {\n /**\n * No action was specified.\n *\n * @generated from enum value: RECENT_MFA_ACTION_UNSPECIFIED = 0;\n */\n RECENT_MFA_ACTION_UNSPECIFIED = 0,\n\n /**\n * Confirming a Telegram link (SocialVerificationService.ConfirmSocialVerification\n * for TELEGRAM).\n *\n * @generated from enum value: RECENT_MFA_ACTION_TELEGRAM_LINK = 1;\n */\n RECENT_MFA_ACTION_TELEGRAM_LINK = 1,\n\n /**\n * Changing the Polyester AI assistant's account access\n * (ApiKeyService.SetAssistantKeys, with policies or presets).\n *\n * @generated from enum value: RECENT_MFA_ACTION_ASSISTANT_ACCESS = 2;\n */\n RECENT_MFA_ACTION_ASSISTANT_ACCESS = 2,\n\n /**\n * Raising or removing a Telegram approval limit\n * (ai.v1.AssistantService.SetTelegramApprovalLimits). Setting or lowering a\n * limit never needs MFA.\n *\n * @generated from enum value: RECENT_MFA_ACTION_TELEGRAM_APPROVAL_LIMITS = 3;\n */\n RECENT_MFA_ACTION_TELEGRAM_APPROVAL_LIMITS = 3,\n}\n\n/**\n * Describes the enum auth.v1.RecentMFAAction.\n */\nexport const RecentMFAActionSchema: GenEnum<RecentMFAAction> = /*@__PURE__*/\n enumDesc(file_auth_v1_mfa, 3);\n\n/**\n * MFA management service for enrollment, challenges, fresh step-up proofs, and recovery codes.\n *\n * @generated from service auth.v1.MFAService\n */\nexport const MFAService: GenService<{\n /**\n * List the caller's enrolled MFA factors.\n *\n * @generated from rpc auth.v1.MFAService.ListMFAFactors\n */\n listMFAFactors: {\n methodKind: \"unary\";\n input: typeof ListMFAFactorsRequestSchema;\n output: typeof ListMFAFactorsResponseSchema;\n },\n /**\n * Start authenticator-app enrollment.\n *\n * @generated from rpc auth.v1.MFAService.BeginTOTPEnrollment\n */\n beginTOTPEnrollment: {\n methodKind: \"unary\";\n input: typeof BeginTOTPEnrollmentRequestSchema;\n output: typeof BeginTOTPEnrollmentResponseSchema;\n },\n /**\n * Finish authenticator-app enrollment.\n *\n * @generated from rpc auth.v1.MFAService.FinishTOTPEnrollment\n */\n finishTOTPEnrollment: {\n methodKind: \"unary\";\n input: typeof FinishTOTPEnrollmentRequestSchema;\n output: typeof FinishTOTPEnrollmentResponseSchema;\n },\n /**\n * Start passkey enrollment.\n *\n * @generated from rpc auth.v1.MFAService.BeginPasskeyEnrollment\n */\n beginPasskeyEnrollment: {\n methodKind: \"unary\";\n input: typeof BeginPasskeyEnrollmentRequestSchema;\n output: typeof BeginPasskeyEnrollmentResponseSchema;\n },\n /**\n * Finish passkey enrollment.\n *\n * @generated from rpc auth.v1.MFAService.FinishPasskeyEnrollment\n */\n finishPasskeyEnrollment: {\n methodKind: \"unary\";\n input: typeof FinishPasskeyEnrollmentRequestSchema;\n output: typeof FinishPasskeyEnrollmentResponseSchema;\n },\n /**\n * Start an MFA challenge for session elevation or fresh step-up.\n *\n * @generated from rpc auth.v1.MFAService.BeginMFAChallenge\n */\n beginMFAChallenge: {\n methodKind: \"unary\";\n input: typeof BeginMFAChallengeRequestSchema;\n output: typeof BeginMFAChallengeResponseSchema;\n },\n /**\n * Verify an MFA challenge with an authenticator-app code.\n *\n * @generated from rpc auth.v1.MFAService.VerifyTOTPChallenge\n */\n verifyTOTPChallenge: {\n methodKind: \"unary\";\n input: typeof VerifyTOTPChallengeRequestSchema;\n output: typeof CompleteMFAChallengeResponseSchema;\n },\n /**\n * Verify an MFA challenge with a passkey.\n *\n * @generated from rpc auth.v1.MFAService.FinishPasskeyChallenge\n */\n finishPasskeyChallenge: {\n methodKind: \"unary\";\n input: typeof FinishPasskeyChallengeRequestSchema;\n output: typeof CompleteMFAChallengeResponseSchema;\n },\n /**\n * Verify an MFA challenge with a recovery code.\n *\n * @generated from rpc auth.v1.MFAService.VerifyRecoveryCodeChallenge\n */\n verifyRecoveryCodeChallenge: {\n methodKind: \"unary\";\n input: typeof VerifyRecoveryCodeChallengeRequestSchema;\n output: typeof CompleteMFAChallengeResponseSchema;\n },\n /**\n * Update an enrolled MFA factor label.\n *\n * @generated from rpc auth.v1.MFAService.UpdateMFAFactor\n */\n updateMFAFactor: {\n methodKind: \"unary\";\n input: typeof UpdateMFAFactorRequestSchema;\n output: typeof UpdateMFAFactorResponseSchema;\n },\n /**\n * Delete an enrolled MFA factor.\n *\n * @generated from rpc auth.v1.MFAService.DeleteMFAFactor\n */\n deleteMFAFactor: {\n methodKind: \"unary\";\n input: typeof DeleteMFAFactorRequestSchema;\n output: typeof DeleteMFAFactorResponseSchema;\n },\n /**\n * Rotate the caller's recovery codes.\n *\n * @generated from rpc auth.v1.MFAService.RegenerateRecoveryCodes\n */\n regenerateRecoveryCodes: {\n methodKind: \"unary\";\n input: typeof RegenerateRecoveryCodesRequestSchema;\n output: typeof RegenerateRecoveryCodesResponseSchema;\n },\n /**\n * Claim a fresh step-up proof for one protected request.\n *\n * @generated from rpc auth.v1.MFAService.ClaimFreshStepUp\n */\n claimFreshStepUp: {\n methodKind: \"unary\";\n input: typeof ClaimFreshStepUpRequestSchema;\n output: typeof ClaimFreshStepUpResponseSchema;\n },\n /**\n * Consume a claimed fresh step-up proof after the protected request succeeds.\n *\n * @generated from rpc auth.v1.MFAService.ConsumeFreshStepUp\n */\n consumeFreshStepUp: {\n methodKind: \"unary\";\n input: typeof ConsumeFreshStepUpRequestSchema;\n output: typeof ConsumeFreshStepUpResponseSchema;\n },\n /**\n * Release a claimed fresh step-up proof when the protected request does not complete.\n *\n * @generated from rpc auth.v1.MFAService.ReleaseFreshStepUp\n */\n releaseFreshStepUp: {\n methodKind: \"unary\";\n input: typeof ReleaseFreshStepUpRequestSchema;\n output: typeof ReleaseFreshStepUpResponseSchema;\n },\n /**\n * Read whether the session's recent-MFA window is open for an action, and\n * until when, so the client can skip the MFA prompt while it is.\n *\n * @generated from rpc auth.v1.MFAService.GetRecentMFA\n */\n getRecentMFA: {\n methodKind: \"unary\";\n input: typeof GetRecentMFARequestSchema;\n output: typeof GetRecentMFAResponseSchema;\n },\n /**\n * End the session's recent-MFA window at sign-out. It also cancels the\n * session's pending MFA challenges and revokes its unused step-up proofs,\n * including one an MFA challenge completing at the same time issues: it\n * answers once that completion has finished. A step-up completed later,\n * with a new challenge, opens a new window. Ending a window that is not\n * open succeeds.\n *\n * @generated from rpc auth.v1.MFAService.EndRecentMFA\n */\n endRecentMFA: {\n methodKind: \"unary\";\n input: typeof EndRecentMFARequestSchema;\n output: typeof EndRecentMFAResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_mfa, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,mBACX,uBAAS,47OAA47O;CAAC;CAA6B;CAAgC;AAA0B,CAAC;;;;;AAyChiP,MAAa,oBACX,0BAAY,kBAAkB,CAAC;;;;;AAgDjC,MAAa,kBACX,0BAAY,kBAAkB,CAAC;;;;;AAcjC,MAAa,8BACX,0BAAY,kBAAkB,CAAC;;;;;AA2BjC,MAAa,+BACX,0BAAY,kBAAkB,CAAC;;;;;AAoBjC,MAAa,mCACX,0BAAY,kBAAkB,CAAC;;;;;AAyCjC,MAAa,oCACX,0BAAY,kBAAkB,CAAC;;;;;AA2BjC,MAAa,oCACX,0BAAY,kBAAkB,CAAC;;;;;AAgDjC,MAAa,qCACX,0BAAY,kBAAkB,CAAC;;;;;AAoBjC,MAAa,sCACX,0BAAY,kBAAkB,CAAC;;;;;AAkCjC,MAAa,uCACX,0BAAY,kBAAkB,CAAC;;;;;AA2BjC,MAAa,uCACX,0BAAY,kBAAkB,EAAE;;;;;AAgDlC,MAAa,wCACX,0BAAY,kBAAkB,EAAE;;;;;AAoBlC,MAAa,iCACX,0BAAY,kBAAkB,EAAE;;;;;AAyClC,MAAa,kCACX,0BAAY,kBAAkB,EAAE;;;;;AA2BlC,MAAa,mCACX,0BAAY,kBAAkB,EAAE;;;;;AA2BlC,MAAa,sCACX,0BAAY,kBAAkB,EAAE;;;;;AA2BlC,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AAA,cAAA,mCAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,kBAAkB,CAAC;;;;;;AAO9B,IAAY,sBAAL,yBAAA,qBAAA;;;;;;CAML,oBAAA,oBAAA,uCAAA,KAAA;;;;;;CAOA,oBAAA,oBAAA,6CAAA,KAAA;;;;;;CAOA,oBAAA,oBAAA,yCAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,4BACX,uBAAS,kBAAkB,CAAC;;;;;;;;;;;;AAa9B,IAAY,kBAAL,yBAAA,iBAAA;;;;;;CAML,gBAAA,gBAAA,mCAAA,KAAA;;;;;;;CAQA,gBAAA,gBAAA,qCAAA,KAAA;;;;;;;CAQA,gBAAA,gBAAA,wCAAA,KAAA;;;;;;;;CASA,gBAAA,gBAAA,gDAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,wBACX,uBAAS,kBAAkB,CAAC;;;;;;AAO9B,MAAa,aAkLX,0BAAY,kBAAkB,CAAC"}
1
+ {"version":3,"file":"mfa_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/mfa_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/mfa.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_struct, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { JsonObject, Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/mfa.proto.\n */\nexport const file_auth_v1_mfa: GenFile = /*@__PURE__*/\n fileDesc(\"ChFhdXRoL3YxL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2UiABJZChBDbGFpbUZyZXNoU3RlcFVwEiAuYXV0aC52MS5DbGFpbUZyZXNoU3RlcFVwUmVxdWVzdBohLmF1dGgudjEuQ2xhaW1GcmVzaFN0ZXBVcFJlc3BvbnNlIgASXwoSQ29uc3VtZUZyZXNoU3RlcFVwEiIuYXV0aC52MS5Db25zdW1lRnJlc2hTdGVwVXBSZXF1ZXN0GiMuYXV0aC52MS5Db25zdW1lRnJlc2hTdGVwVXBSZXNwb25zZSIAEl8KElJlbGVhc2VGcmVzaFN0ZXBVcBIiLmF1dGgudjEuUmVsZWFzZUZyZXNoU3RlcFVwUmVxdWVzdBojLmF1dGgudjEuUmVsZWFzZUZyZXNoU3RlcFVwUmVzcG9uc2UiABoAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==\", [file_google_protobuf_struct, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * Current assurance details for an interactive session.\n *\n * @generated from message auth.v1.SessionInfo\n */\nexport type SessionInfo = Message<\"auth.v1.SessionInfo\"> & {\n /**\n * Stable session identifier shared by the primary and MFA-elevated tokens.\n *\n * @generated from field: string session_id = 1;\n */\n sessionId: string;\n\n /**\n * Assurance level represented by this session response.\n *\n * @generated from field: auth.v1.SessionLevel session_level = 2;\n */\n sessionLevel: SessionLevel;\n\n /**\n * Authentication methods used for this session state, such as wallet, TOTP, passkey, or recovery code. Maximum 8 unique values.\n *\n * @generated from field: repeated string authentication_methods = 3;\n */\n authenticationMethods: string[];\n\n /**\n * Time when the session was authenticated or elevated.\n *\n * @generated from field: google.protobuf.Timestamp auth_time = 4;\n */\n authTime?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.SessionInfo.\n * Use `create(SessionInfoSchema)` to create a new message.\n */\nexport const SessionInfoSchema: GenMessage<SessionInfo> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 0);\n\n/**\n * Enrolled MFA factor metadata visible to the account owner.\n *\n * @generated from message auth.v1.MFAFactor\n */\nexport type MFAFactor = Message<\"auth.v1.MFAFactor\"> & {\n /**\n * MFA factor identifier. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string factor_id = 1;\n */\n factorId: string;\n\n /**\n * Type of enrolled factor.\n *\n * @generated from field: auth.v1.MFAFactorType factor_type = 2;\n */\n factorType: MFAFactorType;\n\n /**\n * Human-friendly label for the factor. Empty when no label is set.\n *\n * @generated from field: string label = 3;\n */\n label: string;\n\n /**\n * Time when the factor was enrolled.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Time when the factor was last used. Empty if the factor has not been used.\n *\n * @generated from field: google.protobuf.Timestamp last_used_at = 5;\n */\n lastUsedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.MFAFactor.\n * Use `create(MFAFactorSchema)` to create a new message.\n */\nexport const MFAFactorSchema: GenMessage<MFAFactor> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 1);\n\n/**\n * Request to list the caller's MFA factors.\n *\n * @generated from message auth.v1.ListMFAFactorsRequest\n */\nexport type ListMFAFactorsRequest = Message<\"auth.v1.ListMFAFactorsRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.ListMFAFactorsRequest.\n * Use `create(ListMFAFactorsRequestSchema)` to create a new message.\n */\nexport const ListMFAFactorsRequestSchema: GenMessage<ListMFAFactorsRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 2);\n\n/**\n * Response containing the caller's enrolled MFA factors.\n *\n * @generated from message auth.v1.ListMFAFactorsResponse\n */\nexport type ListMFAFactorsResponse = Message<\"auth.v1.ListMFAFactorsResponse\"> & {\n /**\n * Enrolled MFA factors, ordered oldest first.\n *\n * @generated from field: repeated auth.v1.MFAFactor factors = 1;\n */\n factors: MFAFactor[];\n\n /**\n * True when the caller has at least one unused recovery code.\n *\n * @generated from field: bool has_recovery_codes = 2;\n */\n hasRecoveryCodes: boolean;\n};\n\n/**\n * Describes the message auth.v1.ListMFAFactorsResponse.\n * Use `create(ListMFAFactorsResponseSchema)` to create a new message.\n */\nexport const ListMFAFactorsResponseSchema: GenMessage<ListMFAFactorsResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 3);\n\n/**\n * Request to begin authenticator-app enrollment.\n *\n * @generated from message auth.v1.BeginTOTPEnrollmentRequest\n */\nexport type BeginTOTPEnrollmentRequest = Message<\"auth.v1.BeginTOTPEnrollmentRequest\"> & {\n /**\n * Optional human-friendly label. Defaults to \"Authenticator App\" when empty. Maximum 128 characters.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n};\n\n/**\n * Describes the message auth.v1.BeginTOTPEnrollmentRequest.\n * Use `create(BeginTOTPEnrollmentRequestSchema)` to create a new message.\n */\nexport const BeginTOTPEnrollmentRequestSchema: GenMessage<BeginTOTPEnrollmentRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 4);\n\n/**\n * Response containing the authenticator-app enrollment secret.\n *\n * @generated from message auth.v1.BeginTOTPEnrollmentResponse\n */\nexport type BeginTOTPEnrollmentResponse = Message<\"auth.v1.BeginTOTPEnrollmentResponse\"> & {\n /**\n * Enrollment challenge identifier. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string enrollment_id = 1;\n */\n enrollmentId: string;\n\n /**\n * Shared secret to enter into an authenticator app. Returned only when enrollment begins.\n *\n * @generated from field: string secret = 2;\n */\n secret: string;\n\n /**\n * Authenticator-app setup URI for QR-code display. Returned only when enrollment begins.\n *\n * @generated from field: string otpauth_uri = 3;\n */\n otpauthUri: string;\n\n /**\n * Time when this enrollment challenge expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 4;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.BeginTOTPEnrollmentResponse.\n * Use `create(BeginTOTPEnrollmentResponseSchema)` to create a new message.\n */\nexport const BeginTOTPEnrollmentResponseSchema: GenMessage<BeginTOTPEnrollmentResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 5);\n\n/**\n * Request to finish authenticator-app enrollment.\n *\n * @generated from message auth.v1.FinishTOTPEnrollmentRequest\n */\nexport type FinishTOTPEnrollmentRequest = Message<\"auth.v1.FinishTOTPEnrollmentRequest\"> & {\n /**\n * Enrollment challenge identifier returned by BeginTOTPEnrollment.\n *\n * @generated from field: string enrollment_id = 1;\n */\n enrollmentId: string;\n\n /**\n * Current 6 to 8 digit code from the authenticator app.\n *\n * @generated from field: string code = 2;\n */\n code: string;\n};\n\n/**\n * Describes the message auth.v1.FinishTOTPEnrollmentRequest.\n * Use `create(FinishTOTPEnrollmentRequestSchema)` to create a new message.\n */\nexport const FinishTOTPEnrollmentRequestSchema: GenMessage<FinishTOTPEnrollmentRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 6);\n\n/**\n * Response returned after authenticator-app enrollment succeeds.\n *\n * @generated from message auth.v1.FinishTOTPEnrollmentResponse\n */\nexport type FinishTOTPEnrollmentResponse = Message<\"auth.v1.FinishTOTPEnrollmentResponse\"> & {\n /**\n * Newly enrolled MFA factor.\n *\n * @generated from field: auth.v1.MFAFactor factor = 1;\n */\n factor?: MFAFactor | undefined;\n\n /**\n * One-time recovery codes generated for the account. Store these securely; they are only returned in this response.\n *\n * @generated from field: repeated string recovery_codes = 2;\n */\n recoveryCodes: string[];\n\n /**\n * MFA-elevated session details after successful enrollment.\n *\n * @generated from field: auth.v1.SessionInfo session = 3;\n */\n session?: SessionInfo | undefined;\n\n /**\n * MFA-elevated session token issued after successful enrollment.\n *\n * @generated from field: string access_token = 4;\n */\n accessToken: string;\n\n /**\n * Time when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp access_token_expires_at = 5;\n */\n accessTokenExpiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.FinishTOTPEnrollmentResponse.\n * Use `create(FinishTOTPEnrollmentResponseSchema)` to create a new message.\n */\nexport const FinishTOTPEnrollmentResponseSchema: GenMessage<FinishTOTPEnrollmentResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 7);\n\n/**\n * Request to begin passkey enrollment.\n *\n * @generated from message auth.v1.BeginPasskeyEnrollmentRequest\n */\nexport type BeginPasskeyEnrollmentRequest = Message<\"auth.v1.BeginPasskeyEnrollmentRequest\"> & {\n /**\n * Optional human-friendly label for the passkey. Maximum 128 characters.\n *\n * @generated from field: string label = 1;\n */\n label: string;\n};\n\n/**\n * Describes the message auth.v1.BeginPasskeyEnrollmentRequest.\n * Use `create(BeginPasskeyEnrollmentRequestSchema)` to create a new message.\n */\nexport const BeginPasskeyEnrollmentRequestSchema: GenMessage<BeginPasskeyEnrollmentRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 8);\n\n/**\n * Response containing passkey enrollment options.\n *\n * @generated from message auth.v1.BeginPasskeyEnrollmentResponse\n */\nexport type BeginPasskeyEnrollmentResponse = Message<\"auth.v1.BeginPasskeyEnrollmentResponse\"> & {\n /**\n * Enrollment challenge identifier. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string enrollment_id = 1;\n */\n enrollmentId: string;\n\n /**\n * Passkey creation options to pass to the browser or device authenticator.\n *\n * @generated from field: google.protobuf.Struct public_key = 2;\n */\n publicKey?: JsonObject | undefined;\n\n /**\n * Time when this enrollment challenge expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 3;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.BeginPasskeyEnrollmentResponse.\n * Use `create(BeginPasskeyEnrollmentResponseSchema)` to create a new message.\n */\nexport const BeginPasskeyEnrollmentResponseSchema: GenMessage<BeginPasskeyEnrollmentResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 9);\n\n/**\n * Request to finish passkey enrollment.\n *\n * @generated from message auth.v1.FinishPasskeyEnrollmentRequest\n */\nexport type FinishPasskeyEnrollmentRequest = Message<\"auth.v1.FinishPasskeyEnrollmentRequest\"> & {\n /**\n * Enrollment challenge identifier returned by BeginPasskeyEnrollment.\n *\n * @generated from field: string enrollment_id = 1;\n */\n enrollmentId: string;\n\n /**\n * Passkey creation response returned by the browser or device authenticator.\n *\n * @generated from field: google.protobuf.Struct credential = 2;\n */\n credential?: JsonObject | undefined;\n};\n\n/**\n * Describes the message auth.v1.FinishPasskeyEnrollmentRequest.\n * Use `create(FinishPasskeyEnrollmentRequestSchema)` to create a new message.\n */\nexport const FinishPasskeyEnrollmentRequestSchema: GenMessage<FinishPasskeyEnrollmentRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 10);\n\n/**\n * Response returned after passkey enrollment succeeds.\n *\n * @generated from message auth.v1.FinishPasskeyEnrollmentResponse\n */\nexport type FinishPasskeyEnrollmentResponse = Message<\"auth.v1.FinishPasskeyEnrollmentResponse\"> & {\n /**\n * Newly enrolled MFA factor.\n *\n * @generated from field: auth.v1.MFAFactor factor = 1;\n */\n factor?: MFAFactor | undefined;\n\n /**\n * One-time recovery codes generated for the account. Store these securely; they are only returned in this response.\n *\n * @generated from field: repeated string recovery_codes = 2;\n */\n recoveryCodes: string[];\n\n /**\n * MFA-elevated session details after successful enrollment.\n *\n * @generated from field: auth.v1.SessionInfo session = 3;\n */\n session?: SessionInfo | undefined;\n\n /**\n * MFA-elevated session token issued after successful enrollment.\n *\n * @generated from field: string access_token = 4;\n */\n accessToken: string;\n\n /**\n * Time when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp access_token_expires_at = 5;\n */\n accessTokenExpiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.FinishPasskeyEnrollmentResponse.\n * Use `create(FinishPasskeyEnrollmentResponseSchema)` to create a new message.\n */\nexport const FinishPasskeyEnrollmentResponseSchema: GenMessage<FinishPasskeyEnrollmentResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 11);\n\n/**\n * Request to start an MFA challenge.\n *\n * @generated from message auth.v1.BeginMFAChallengeRequest\n */\nexport type BeginMFAChallengeRequest = Message<\"auth.v1.BeginMFAChallengeRequest\"> & {\n /**\n * Desired challenge outcome: session elevation or fresh step-up.\n *\n * @generated from field: auth.v1.MFAChallengePurpose purpose = 1;\n */\n purpose: MFAChallengePurpose;\n};\n\n/**\n * Describes the message auth.v1.BeginMFAChallengeRequest.\n * Use `create(BeginMFAChallengeRequestSchema)` to create a new message.\n */\nexport const BeginMFAChallengeRequestSchema: GenMessage<BeginMFAChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 12);\n\n/**\n * Response returned after starting an MFA challenge.\n *\n * @generated from message auth.v1.BeginMFAChallengeResponse\n */\nexport type BeginMFAChallengeResponse = Message<\"auth.v1.BeginMFAChallengeResponse\"> & {\n /**\n * Challenge identifier to submit when verifying a factor. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * Factor types the caller may use for this challenge. Maximum 8 unique values.\n *\n * @generated from field: repeated auth.v1.MFAFactorType allowed_factor_types = 2;\n */\n allowedFactorTypes: MFAFactorType[];\n\n /**\n * Passkey request options when passkey verification is available. Empty when passkeys are not available.\n *\n * @generated from field: google.protobuf.Struct public_key = 3;\n */\n publicKey?: JsonObject | undefined;\n\n /**\n * Time when this challenge expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 4;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.BeginMFAChallengeResponse.\n * Use `create(BeginMFAChallengeResponseSchema)` to create a new message.\n */\nexport const BeginMFAChallengeResponseSchema: GenMessage<BeginMFAChallengeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 13);\n\n/**\n * Request to verify an MFA challenge with an authenticator-app code.\n *\n * @generated from message auth.v1.VerifyTOTPChallengeRequest\n */\nexport type VerifyTOTPChallengeRequest = Message<\"auth.v1.VerifyTOTPChallengeRequest\"> & {\n /**\n * Challenge identifier returned by BeginMFAChallenge.\n *\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * Current 6 to 8 digit code from the authenticator app.\n *\n * @generated from field: string code = 2;\n */\n code: string;\n};\n\n/**\n * Describes the message auth.v1.VerifyTOTPChallengeRequest.\n * Use `create(VerifyTOTPChallengeRequestSchema)` to create a new message.\n */\nexport const VerifyTOTPChallengeRequestSchema: GenMessage<VerifyTOTPChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 14);\n\n/**\n * Request to verify an MFA challenge with a passkey.\n *\n * @generated from message auth.v1.FinishPasskeyChallengeRequest\n */\nexport type FinishPasskeyChallengeRequest = Message<\"auth.v1.FinishPasskeyChallengeRequest\"> & {\n /**\n * Challenge identifier returned by BeginMFAChallenge.\n *\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * Passkey authentication response returned by the browser or device authenticator.\n *\n * @generated from field: google.protobuf.Struct credential = 2;\n */\n credential?: JsonObject | undefined;\n};\n\n/**\n * Describes the message auth.v1.FinishPasskeyChallengeRequest.\n * Use `create(FinishPasskeyChallengeRequestSchema)` to create a new message.\n */\nexport const FinishPasskeyChallengeRequestSchema: GenMessage<FinishPasskeyChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 15);\n\n/**\n * Request to verify an MFA challenge with a recovery code.\n *\n * @generated from message auth.v1.VerifyRecoveryCodeChallengeRequest\n */\nexport type VerifyRecoveryCodeChallengeRequest = Message<\"auth.v1.VerifyRecoveryCodeChallengeRequest\"> & {\n /**\n * Challenge identifier returned by BeginMFAChallenge.\n *\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * One-time recovery code. Accepted format is 8 to 64 letters, numbers, or hyphens.\n *\n * @generated from field: string recovery_code = 2;\n */\n recoveryCode: string;\n};\n\n/**\n * Describes the message auth.v1.VerifyRecoveryCodeChallengeRequest.\n * Use `create(VerifyRecoveryCodeChallengeRequestSchema)` to create a new message.\n */\nexport const VerifyRecoveryCodeChallengeRequestSchema: GenMessage<VerifyRecoveryCodeChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 16);\n\n/**\n * Response returned after an MFA challenge is completed.\n *\n * @generated from message auth.v1.CompleteMFAChallengeResponse\n */\nexport type CompleteMFAChallengeResponse = Message<\"auth.v1.CompleteMFAChallengeResponse\"> & {\n /**\n * MFA-elevated session details after completing the challenge.\n *\n * @generated from field: auth.v1.SessionInfo session = 1;\n */\n session?: SessionInfo | undefined;\n\n /**\n * MFA-elevated session token returned after every successful challenge.\n *\n * @generated from field: string access_token = 2;\n */\n accessToken: string;\n\n /**\n * Time when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp access_token_expires_at = 3;\n */\n accessTokenExpiresAt?: Timestamp | undefined;\n\n /**\n * Fresh step-up token returned for fresh step-up challenges. Empty for session-elevation challenges.\n *\n * @generated from field: string step_up_token = 4;\n */\n stepUpToken: string;\n\n /**\n * Time when step_up_token expires. Empty when no step_up_token is returned.\n *\n * @generated from field: google.protobuf.Timestamp step_up_expires_at = 5;\n */\n stepUpExpiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.CompleteMFAChallengeResponse.\n * Use `create(CompleteMFAChallengeResponseSchema)` to create a new message.\n */\nexport const CompleteMFAChallengeResponseSchema: GenMessage<CompleteMFAChallengeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 17);\n\n/**\n * Request to bind a fresh step-up proof to one protected request.\n *\n * @generated from message auth.v1.ClaimFreshStepUpRequest\n */\nexport type ClaimFreshStepUpRequest = Message<\"auth.v1.ClaimFreshStepUpRequest\"> & {\n /**\n * Client-generated request identifier for the protected request. Maximum 128 characters.\n *\n * @generated from field: string request_id = 1;\n */\n requestId: string;\n\n /**\n * Product action being protected, such as a withdrawal or security setting change. Maximum 64 characters.\n *\n * @generated from field: string action_type = 2;\n */\n actionType: string;\n\n /**\n * Product subject for the protected action, such as the target account, destination, or resource identifier. Maximum 128 characters.\n *\n * @generated from field: string subject = 3;\n */\n subject: string;\n};\n\n/**\n * Describes the message auth.v1.ClaimFreshStepUpRequest.\n * Use `create(ClaimFreshStepUpRequestSchema)` to create a new message.\n */\nexport const ClaimFreshStepUpRequestSchema: GenMessage<ClaimFreshStepUpRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 18);\n\n/**\n * Response returned after a fresh step-up proof is claimed.\n *\n * @generated from message auth.v1.ClaimFreshStepUpResponse\n */\nexport type ClaimFreshStepUpResponse = Message<\"auth.v1.ClaimFreshStepUpResponse\"> & {\n /**\n * Fresh step-up proof identifier. Format: \"mfa_\" followed by 32 lowercase hex characters.\n *\n * @generated from field: string step_up_id = 1;\n */\n stepUpId: string;\n\n /**\n * One-time nonce that must be echoed when consuming or releasing the claim.\n *\n * @generated from field: string claim_nonce = 2;\n */\n claimNonce: string;\n\n /**\n * Time when this claim expires if it is not consumed or released.\n *\n * @generated from field: google.protobuf.Timestamp claim_expires_at = 3;\n */\n claimExpiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.ClaimFreshStepUpResponse.\n * Use `create(ClaimFreshStepUpResponseSchema)` to create a new message.\n */\nexport const ClaimFreshStepUpResponseSchema: GenMessage<ClaimFreshStepUpResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 19);\n\n/**\n * Request to consume a claimed fresh step-up proof after the protected request succeeds.\n *\n * @generated from message auth.v1.ConsumeFreshStepUpRequest\n */\nexport type ConsumeFreshStepUpRequest = Message<\"auth.v1.ConsumeFreshStepUpRequest\"> & {\n /**\n * Fresh step-up proof identifier returned by ClaimFreshStepUp.\n *\n * @generated from field: string step_up_id = 1;\n */\n stepUpId: string;\n\n /**\n * Client-generated request identifier used when the proof was claimed.\n *\n * @generated from field: string request_id = 2;\n */\n requestId: string;\n\n /**\n * Product action type used when the proof was claimed.\n *\n * @generated from field: string action_type = 3;\n */\n actionType: string;\n\n /**\n * Product subject used when the proof was claimed.\n *\n * @generated from field: string subject = 4;\n */\n subject: string;\n\n /**\n * One-time nonce returned by ClaimFreshStepUp.\n *\n * @generated from field: string claim_nonce = 5;\n */\n claimNonce: string;\n};\n\n/**\n * Describes the message auth.v1.ConsumeFreshStepUpRequest.\n * Use `create(ConsumeFreshStepUpRequestSchema)` to create a new message.\n */\nexport const ConsumeFreshStepUpRequestSchema: GenMessage<ConsumeFreshStepUpRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 20);\n\n/**\n * Empty response returned after a fresh step-up proof is consumed.\n *\n * @generated from message auth.v1.ConsumeFreshStepUpResponse\n */\nexport type ConsumeFreshStepUpResponse = Message<\"auth.v1.ConsumeFreshStepUpResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.ConsumeFreshStepUpResponse.\n * Use `create(ConsumeFreshStepUpResponseSchema)` to create a new message.\n */\nexport const ConsumeFreshStepUpResponseSchema: GenMessage<ConsumeFreshStepUpResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 21);\n\n/**\n * Request to release a claimed fresh step-up proof when the protected request does not complete.\n *\n * @generated from message auth.v1.ReleaseFreshStepUpRequest\n */\nexport type ReleaseFreshStepUpRequest = Message<\"auth.v1.ReleaseFreshStepUpRequest\"> & {\n /**\n * Fresh step-up proof identifier returned by ClaimFreshStepUp.\n *\n * @generated from field: string step_up_id = 1;\n */\n stepUpId: string;\n\n /**\n * Client-generated request identifier used when the proof was claimed.\n *\n * @generated from field: string request_id = 2;\n */\n requestId: string;\n\n /**\n * Product action type used when the proof was claimed.\n *\n * @generated from field: string action_type = 3;\n */\n actionType: string;\n\n /**\n * Product subject used when the proof was claimed.\n *\n * @generated from field: string subject = 4;\n */\n subject: string;\n\n /**\n * One-time nonce returned by ClaimFreshStepUp.\n *\n * @generated from field: string claim_nonce = 5;\n */\n claimNonce: string;\n\n /**\n * Optional product-facing reason for releasing the claim. Maximum 128 characters.\n *\n * @generated from field: string reason = 6;\n */\n reason: string;\n};\n\n/**\n * Describes the message auth.v1.ReleaseFreshStepUpRequest.\n * Use `create(ReleaseFreshStepUpRequestSchema)` to create a new message.\n */\nexport const ReleaseFreshStepUpRequestSchema: GenMessage<ReleaseFreshStepUpRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 22);\n\n/**\n * Empty response returned after a fresh step-up proof is released.\n *\n * @generated from message auth.v1.ReleaseFreshStepUpResponse\n */\nexport type ReleaseFreshStepUpResponse = Message<\"auth.v1.ReleaseFreshStepUpResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.ReleaseFreshStepUpResponse.\n * Use `create(ReleaseFreshStepUpResponseSchema)` to create a new message.\n */\nexport const ReleaseFreshStepUpResponseSchema: GenMessage<ReleaseFreshStepUpResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 23);\n\n/**\n * Request to update an MFA factor label.\n *\n * @generated from message auth.v1.UpdateMFAFactorRequest\n */\nexport type UpdateMFAFactorRequest = Message<\"auth.v1.UpdateMFAFactorRequest\"> & {\n /**\n * MFA factor identifier to update.\n *\n * @generated from field: string factor_id = 1;\n */\n factorId: string;\n\n /**\n * New human-friendly label for the factor. Empty clears the label.\n *\n * @generated from field: string label = 2;\n */\n label: string;\n};\n\n/**\n * Describes the message auth.v1.UpdateMFAFactorRequest.\n * Use `create(UpdateMFAFactorRequestSchema)` to create a new message.\n */\nexport const UpdateMFAFactorRequestSchema: GenMessage<UpdateMFAFactorRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 24);\n\n/**\n * Response containing the updated MFA factor.\n *\n * @generated from message auth.v1.UpdateMFAFactorResponse\n */\nexport type UpdateMFAFactorResponse = Message<\"auth.v1.UpdateMFAFactorResponse\"> & {\n /**\n * Updated MFA factor metadata.\n *\n * @generated from field: auth.v1.MFAFactor factor = 1;\n */\n factor?: MFAFactor | undefined;\n};\n\n/**\n * Describes the message auth.v1.UpdateMFAFactorResponse.\n * Use `create(UpdateMFAFactorResponseSchema)` to create a new message.\n */\nexport const UpdateMFAFactorResponseSchema: GenMessage<UpdateMFAFactorResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 25);\n\n/**\n * Request to delete an MFA factor.\n *\n * @generated from message auth.v1.DeleteMFAFactorRequest\n */\nexport type DeleteMFAFactorRequest = Message<\"auth.v1.DeleteMFAFactorRequest\"> & {\n /**\n * MFA factor identifier to delete.\n *\n * @generated from field: string factor_id = 1;\n */\n factorId: string;\n};\n\n/**\n * Describes the message auth.v1.DeleteMFAFactorRequest.\n * Use `create(DeleteMFAFactorRequestSchema)` to create a new message.\n */\nexport const DeleteMFAFactorRequestSchema: GenMessage<DeleteMFAFactorRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 26);\n\n/**\n * Empty response returned after an MFA factor is deleted.\n *\n * @generated from message auth.v1.DeleteMFAFactorResponse\n */\nexport type DeleteMFAFactorResponse = Message<\"auth.v1.DeleteMFAFactorResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.DeleteMFAFactorResponse.\n * Use `create(DeleteMFAFactorResponseSchema)` to create a new message.\n */\nexport const DeleteMFAFactorResponseSchema: GenMessage<DeleteMFAFactorResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 27);\n\n/**\n * Request to rotate recovery codes.\n *\n * @generated from message auth.v1.RegenerateRecoveryCodesRequest\n */\nexport type RegenerateRecoveryCodesRequest = Message<\"auth.v1.RegenerateRecoveryCodesRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.RegenerateRecoveryCodesRequest.\n * Use `create(RegenerateRecoveryCodesRequestSchema)` to create a new message.\n */\nexport const RegenerateRecoveryCodesRequestSchema: GenMessage<RegenerateRecoveryCodesRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 28);\n\n/**\n * Response containing newly generated recovery codes.\n *\n * @generated from message auth.v1.RegenerateRecoveryCodesResponse\n */\nexport type RegenerateRecoveryCodesResponse = Message<\"auth.v1.RegenerateRecoveryCodesResponse\"> & {\n /**\n * New one-time recovery codes. Store these securely; they are only returned in this response.\n *\n * @generated from field: repeated string recovery_codes = 1;\n */\n recoveryCodes: string[];\n};\n\n/**\n * Describes the message auth.v1.RegenerateRecoveryCodesResponse.\n * Use `create(RegenerateRecoveryCodesResponseSchema)` to create a new message.\n */\nexport const RegenerateRecoveryCodesResponseSchema: GenMessage<RegenerateRecoveryCodesResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_mfa, 29);\n\n/**\n * Session assurance level for the current interactive authentication context.\n *\n * @generated from enum auth.v1.SessionLevel\n */\nexport enum SessionLevel {\n /**\n * No session assurance level was specified.\n *\n * @generated from enum value: SESSION_LEVEL_UNSPECIFIED = 0;\n */\n SESSION_LEVEL_UNSPECIFIED = 0,\n\n /**\n * Primary login has completed, but MFA has not elevated this session.\n *\n * @generated from enum value: PRIMARY_AUTHENTICATED = 1;\n */\n PRIMARY_AUTHENTICATED = 1,\n\n /**\n * MFA has elevated this session for ordinary protected account activity.\n *\n * @generated from enum value: MFA_ELEVATED = 2;\n */\n MFA_ELEVATED = 2,\n\n /**\n * A short-lived proof for one high-risk action.\n *\n * @generated from enum value: FRESH_STEP_UP = 3;\n */\n FRESH_STEP_UP = 3,\n}\n\n/**\n * Describes the enum auth.v1.SessionLevel.\n */\nexport const SessionLevelSchema: GenEnum<SessionLevel> = /*@__PURE__*/\n enumDesc(file_auth_v1_mfa, 0);\n\n/**\n * Type of MFA factor or one-time recovery method.\n *\n * @generated from enum auth.v1.MFAFactorType\n */\nexport enum MFAFactorType {\n /**\n * No MFA factor type was specified.\n *\n * @generated from enum value: MFA_FACTOR_TYPE_UNSPECIFIED = 0;\n */\n MFA_FACTOR_TYPE_UNSPECIFIED = 0,\n\n /**\n * Time-based one-time password from an authenticator app.\n *\n * @generated from enum value: MFA_FACTOR_TYPE_TOTP = 1;\n */\n MFA_FACTOR_TYPE_TOTP = 1,\n\n /**\n * Passkey factor using device or hardware-key authentication.\n *\n * @generated from enum value: MFA_FACTOR_TYPE_PASSKEY = 2;\n */\n MFA_FACTOR_TYPE_PASSKEY = 2,\n\n /**\n * One-time recovery code.\n *\n * @generated from enum value: MFA_FACTOR_TYPE_RECOVERY_CODE = 3;\n */\n MFA_FACTOR_TYPE_RECOVERY_CODE = 3,\n}\n\n/**\n * Describes the enum auth.v1.MFAFactorType.\n */\nexport const MFAFactorTypeSchema: GenEnum<MFAFactorType> = /*@__PURE__*/\n enumDesc(file_auth_v1_mfa, 1);\n\n/**\n * Reason a user is completing an MFA challenge.\n *\n * @generated from enum auth.v1.MFAChallengePurpose\n */\nexport enum MFAChallengePurpose {\n /**\n * No MFA challenge purpose was specified.\n *\n * @generated from enum value: MFA_CHALLENGE_PURPOSE_UNSPECIFIED = 0;\n */\n MFA_CHALLENGE_PURPOSE_UNSPECIFIED = 0,\n\n /**\n * Elevates the current session after successful MFA.\n *\n * @generated from enum value: MFA_CHALLENGE_PURPOSE_SESSION_ELEVATION = 1;\n */\n MFA_CHALLENGE_PURPOSE_SESSION_ELEVATION = 1,\n\n /**\n * Creates a short-lived proof for one high-risk action.\n *\n * @generated from enum value: MFA_CHALLENGE_PURPOSE_FRESH_STEP_UP = 2;\n */\n MFA_CHALLENGE_PURPOSE_FRESH_STEP_UP = 2,\n}\n\n/**\n * Describes the enum auth.v1.MFAChallengePurpose.\n */\nexport const MFAChallengePurposeSchema: GenEnum<MFAChallengePurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_mfa, 2);\n\n/**\n * MFA management service for enrollment, challenges, fresh step-up proofs, and recovery codes.\n *\n * @generated from service auth.v1.MFAService\n */\nexport const MFAService: GenService<{\n /**\n * List the caller's enrolled MFA factors.\n *\n * @generated from rpc auth.v1.MFAService.ListMFAFactors\n */\n listMFAFactors: {\n methodKind: \"unary\";\n input: typeof ListMFAFactorsRequestSchema;\n output: typeof ListMFAFactorsResponseSchema;\n },\n /**\n * Start authenticator-app enrollment.\n *\n * @generated from rpc auth.v1.MFAService.BeginTOTPEnrollment\n */\n beginTOTPEnrollment: {\n methodKind: \"unary\";\n input: typeof BeginTOTPEnrollmentRequestSchema;\n output: typeof BeginTOTPEnrollmentResponseSchema;\n },\n /**\n * Finish authenticator-app enrollment.\n *\n * @generated from rpc auth.v1.MFAService.FinishTOTPEnrollment\n */\n finishTOTPEnrollment: {\n methodKind: \"unary\";\n input: typeof FinishTOTPEnrollmentRequestSchema;\n output: typeof FinishTOTPEnrollmentResponseSchema;\n },\n /**\n * Start passkey enrollment.\n *\n * @generated from rpc auth.v1.MFAService.BeginPasskeyEnrollment\n */\n beginPasskeyEnrollment: {\n methodKind: \"unary\";\n input: typeof BeginPasskeyEnrollmentRequestSchema;\n output: typeof BeginPasskeyEnrollmentResponseSchema;\n },\n /**\n * Finish passkey enrollment.\n *\n * @generated from rpc auth.v1.MFAService.FinishPasskeyEnrollment\n */\n finishPasskeyEnrollment: {\n methodKind: \"unary\";\n input: typeof FinishPasskeyEnrollmentRequestSchema;\n output: typeof FinishPasskeyEnrollmentResponseSchema;\n },\n /**\n * Start an MFA challenge for session elevation or fresh step-up.\n *\n * @generated from rpc auth.v1.MFAService.BeginMFAChallenge\n */\n beginMFAChallenge: {\n methodKind: \"unary\";\n input: typeof BeginMFAChallengeRequestSchema;\n output: typeof BeginMFAChallengeResponseSchema;\n },\n /**\n * Verify an MFA challenge with an authenticator-app code.\n *\n * @generated from rpc auth.v1.MFAService.VerifyTOTPChallenge\n */\n verifyTOTPChallenge: {\n methodKind: \"unary\";\n input: typeof VerifyTOTPChallengeRequestSchema;\n output: typeof CompleteMFAChallengeResponseSchema;\n },\n /**\n * Verify an MFA challenge with a passkey.\n *\n * @generated from rpc auth.v1.MFAService.FinishPasskeyChallenge\n */\n finishPasskeyChallenge: {\n methodKind: \"unary\";\n input: typeof FinishPasskeyChallengeRequestSchema;\n output: typeof CompleteMFAChallengeResponseSchema;\n },\n /**\n * Verify an MFA challenge with a recovery code.\n *\n * @generated from rpc auth.v1.MFAService.VerifyRecoveryCodeChallenge\n */\n verifyRecoveryCodeChallenge: {\n methodKind: \"unary\";\n input: typeof VerifyRecoveryCodeChallengeRequestSchema;\n output: typeof CompleteMFAChallengeResponseSchema;\n },\n /**\n * Update an enrolled MFA factor label.\n *\n * @generated from rpc auth.v1.MFAService.UpdateMFAFactor\n */\n updateMFAFactor: {\n methodKind: \"unary\";\n input: typeof UpdateMFAFactorRequestSchema;\n output: typeof UpdateMFAFactorResponseSchema;\n },\n /**\n * Delete an enrolled MFA factor.\n *\n * @generated from rpc auth.v1.MFAService.DeleteMFAFactor\n */\n deleteMFAFactor: {\n methodKind: \"unary\";\n input: typeof DeleteMFAFactorRequestSchema;\n output: typeof DeleteMFAFactorResponseSchema;\n },\n /**\n * Rotate the caller's recovery codes.\n *\n * @generated from rpc auth.v1.MFAService.RegenerateRecoveryCodes\n */\n regenerateRecoveryCodes: {\n methodKind: \"unary\";\n input: typeof RegenerateRecoveryCodesRequestSchema;\n output: typeof RegenerateRecoveryCodesResponseSchema;\n },\n /**\n * Claim a fresh step-up proof for one protected request.\n *\n * @generated from rpc auth.v1.MFAService.ClaimFreshStepUp\n */\n claimFreshStepUp: {\n methodKind: \"unary\";\n input: typeof ClaimFreshStepUpRequestSchema;\n output: typeof ClaimFreshStepUpResponseSchema;\n },\n /**\n * Consume a claimed fresh step-up proof after the protected request succeeds.\n *\n * @generated from rpc auth.v1.MFAService.ConsumeFreshStepUp\n */\n consumeFreshStepUp: {\n methodKind: \"unary\";\n input: typeof ConsumeFreshStepUpRequestSchema;\n output: typeof ConsumeFreshStepUpResponseSchema;\n },\n /**\n * Release a claimed fresh step-up proof when the protected request does not complete.\n *\n * @generated from rpc auth.v1.MFAService.ReleaseFreshStepUp\n */\n releaseFreshStepUp: {\n methodKind: \"unary\";\n input: typeof ReleaseFreshStepUpRequestSchema;\n output: typeof ReleaseFreshStepUpResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_mfa, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AkB,EAAE;;;;;AAoBlC,MAAa,gCACX,0BAAY,kBAAkB,EAAE;;;;;AAoBlC,MAAa,+BACX,0BAAY,kBAAkB,EAAE;;;;;AAclC,MAAa,gCACX,0BAAY,kBAAkB,EAAE;;;;;AAclC,MAAa,uCACX,0BAAY,kBAAkB,EAAE;;;;;AAoBlC,MAAa,wCACX,0BAAY,kBAAkB,EAAE;;;;;;AAOlC,IAAY,eAAL,yBAAA,cAAA;;;;;;CAML,aAAA,aAAA,+BAAA,KAAA;;;;;;CAOA,aAAA,aAAA,2BAAA,KAAA;;;;;;CAOA,aAAA,aAAA,kBAAA,KAAA;;;;;;CAOA,aAAA,aAAA,mBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,qBACX,uBAAS,kBAAkB,CAAC;;;;;;AAO9B,IAAY,gBAAL,yBAAA,eAAA;;;;;;CAML,cAAA,cAAA,iCAAA,KAAA;;;;;;CAOA,cAAA,cAAA,0BAAA,KAAA;;;;;;CAOA,cAAA,cAAA,6BAAA,KAAA;;;;;;CAOA,cAAA,cAAA,mCAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,kBAAkB,CAAC;;;;;;AAO9B,IAAY,sBAAL,yBAAA,qBAAA;;;;;;CAML,oBAAA,oBAAA,uCAAA,KAAA;;;;;;CAOA,oBAAA,oBAAA,6CAAA,KAAA;;;;;;CAOA,oBAAA,oBAAA,yCAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,4BACX,uBAAS,kBAAkB,CAAC;;;;;;AAO9B,MAAa,aAwJX,0BAAY,kBAAkB,CAAC"}
@@ -131,19 +131,30 @@ type SubaccountPolicyView = Message<"auth.v1.SubaccountPolicyView"> & {
131
131
  */
132
132
  actions: PolicyAction[];
133
133
  /**
134
- * True if this policy is a reusable template; false if it is a
135
- * per-sub-account instance.
134
+ * True if this policy is a template: a reusable policy of the main account
135
+ * that is never attached to a sub-account itself. Applying it with
136
+ * SetSubaccountPolicy attaches a copy, so editing the template later changes
137
+ * no sub-account. Set when the policy is created and never changes.
136
138
  *
137
139
  * @generated from field: bool is_template = 10;
138
140
  */
139
141
  isTemplate: boolean;
140
142
  /**
141
- * Optional source template this policy was copied from (opaque ID). This is
142
- * audit metadata only and does not imply live linkage.
143
+ * Template this policy was copied from (opaque ID), or 0 when it is not a
144
+ * copy. Set when the copy is made and never changes, even after the template
145
+ * is edited or deleted; the copy is not linked to the template.
143
146
  *
144
147
  * @generated from field: fixed64 source_template_id = 11;
145
148
  */
146
149
  sourceTemplateId: bigint;
150
+ /**
151
+ * Revision of the template when this policy was copied from it, or 0 when
152
+ * it is not a copy. Compare it with the template's current revision to see
153
+ * whether the template changed since. Never changes.
154
+ *
155
+ * @generated from field: uint64 source_template_revision = 31;
156
+ */
157
+ sourceTemplateRevision: bigint;
147
158
  /**
148
159
  * Maximum notional size allowed for any single order on this sub-account,
149
160
  * expressed in canonical quote microunits (one unit is 0.000001 USDT).
@@ -380,6 +391,15 @@ type SubaccountPolicySpec = Message<"auth.v1.SubaccountPolicySpec"> & {
380
391
  * @generated from field: google.protobuf.Timestamp expires_at = 27;
381
392
  */
382
393
  expiresAt?: Timestamp | undefined;
394
+ /**
395
+ * Whether the policy is a template, which SetSubaccountPolicy applies as a
396
+ * copy. Only the main account owner creates templates, and never together
397
+ * with subaccount_id. Chosen at creation: an update_mask that selects it is
398
+ * refused with InvalidArgument.
399
+ *
400
+ * @generated from field: bool is_template = 28;
401
+ */
402
+ isTemplate: boolean;
383
403
  };
384
404
  /**
385
405
  * Describes the message auth.v1.SubaccountPolicySpec.
@@ -387,8 +407,8 @@ type SubaccountPolicySpec = Message<"auth.v1.SubaccountPolicySpec"> & {
387
407
  */
388
408
  declare const SubaccountPolicySpecSchema: GenMessage<SubaccountPolicySpec>;
389
409
  /**
390
- * CreateSubaccountPolicyRequest defines a new sub-account policy template, with
391
- * an optional attach step for one target sub-account.
410
+ * CreateSubaccountPolicyRequest defines a new sub-account policy, with an
411
+ * optional attach step for one target sub-account.
392
412
  *
393
413
  * @generated from message auth.v1.CreateSubaccountPolicyRequest
394
414
  */
@@ -400,7 +420,9 @@ type CreateSubaccountPolicyRequest = Message<"auth.v1.CreateSubaccountPolicyRequ
400
420
  */
401
421
  policy?: SubaccountPolicySpec | undefined;
402
422
  /**
403
- * Optional target sub-account to attach atomically after creation.
423
+ * Optional target sub-account to attach atomically after creation. A
424
+ * template cannot be attached: setting it with policy.is_template is refused
425
+ * with InvalidArgument.
404
426
  *
405
427
  * @generated from field: optional fixed64 subaccount_id = 2;
406
428
  */
@@ -487,8 +509,8 @@ type UpdateSubaccountPolicyResponse = Message<"auth.v1.UpdateSubaccountPolicyRes
487
509
  */
488
510
  declare const UpdateSubaccountPolicyResponseSchema: GenMessage<UpdateSubaccountPolicyResponse>;
489
511
  /**
490
- * DeleteSubaccountPolicyRequest deletes a sub-account policy template when it
491
- * is not in use.
512
+ * DeleteSubaccountPolicyRequest deletes a sub-account policy when it is not in
513
+ * use. A template is never in use; copies made from it keep their lineage.
492
514
  *
493
515
  * @generated from message auth.v1.DeleteSubaccountPolicyRequest
494
516
  */
@@ -517,8 +539,8 @@ type DeleteSubaccountPolicyResponse = Message<"auth.v1.DeleteSubaccountPolicyRes
517
539
  */
518
540
  declare const DeleteSubaccountPolicyResponseSchema: GenMessage<DeleteSubaccountPolicyResponse>;
519
541
  /**
520
- * SetSubaccountPolicyRequest attaches or clears a policy template on a
521
- * sub-account.
542
+ * SetSubaccountPolicyRequest attaches a policy to a sub-account, applies a
543
+ * template to it, or clears its policy.
522
544
  *
523
545
  * @generated from message auth.v1.SetSubaccountPolicyRequest
524
546
  */
@@ -530,8 +552,10 @@ type SetSubaccountPolicyRequest = Message<"auth.v1.SetSubaccountPolicyRequest">
530
552
  */
531
553
  subaccountId: bigint;
532
554
  /**
533
- * Policy template to attach (opaque ID). A value of 0 clears the explicit
534
- * binding and restores the system Read Only policy.
555
+ * Policy to attach (opaque ID), owned by the sub-account's main account. A
556
+ * template is applied: the sub-account gets a new copy of its current
557
+ * revision, which later edits of the template do not change. A value of 0
558
+ * clears the explicit binding and restores the system Read Only policy.
535
559
  *
536
560
  * @generated from field: fixed64 policy_id = 2;
537
561
  */
@@ -543,11 +567,19 @@ type SetSubaccountPolicyRequest = Message<"auth.v1.SetSubaccountPolicyRequest">
543
567
  */
544
568
  declare const SetSubaccountPolicyRequestSchema: GenMessage<SetSubaccountPolicyRequest>;
545
569
  /**
546
- * SetSubaccountPolicyResponse is empty when the policy binding succeeds.
570
+ * SetSubaccountPolicyResponse returns the policy now attached.
547
571
  *
548
572
  * @generated from message auth.v1.SetSubaccountPolicyResponse
549
573
  */
550
- type SetSubaccountPolicyResponse = Message<"auth.v1.SetSubaccountPolicyResponse"> & {};
574
+ type SetSubaccountPolicyResponse = Message<"auth.v1.SetSubaccountPolicyResponse"> & {
575
+ /**
576
+ * Policy now attached to the sub-account (opaque ID): the new copy when
577
+ * policy_id named a template, else policy_id. 0 when the policy was cleared.
578
+ *
579
+ * @generated from field: fixed64 policy_id = 1;
580
+ */
581
+ policyId: bigint;
582
+ };
551
583
  /**
552
584
  * Describes the message auth.v1.SetSubaccountPolicyResponse.
553
585
  * Use `create(SetSubaccountPolicyResponseSchema)` to create a new message.
@@ -601,19 +633,30 @@ type ApiPolicyView = Message<"auth.v1.ApiPolicyView"> & {
601
633
  */
602
634
  spotMarketScope: MarketScope_Value;
603
635
  /**
604
- * When true, this policy is intended to be reused as a template across
605
- * multiple API keys. When false, it represents a single-key instance.
636
+ * True if this policy is a template: a reusable policy of the main account
637
+ * that is never attached to an API key itself. Applying it with
638
+ * SetApiKeyPolicy attaches a copy, so editing the template later changes no
639
+ * API key. Set when the policy is created and never changes.
606
640
  *
607
641
  * @generated from field: bool is_template = 19;
608
642
  */
609
643
  isTemplate: boolean;
610
644
  /**
611
- * Optional source template this policy was copied from (opaque ID). This is
612
- * audit metadata only and does not imply live linkage.
645
+ * Template this policy was copied from (opaque ID), or 0 when it is not a
646
+ * copy. Set when the copy is made and never changes, even after the template
647
+ * is edited or deleted; the copy is not linked to the template.
613
648
  *
614
649
  * @generated from field: fixed64 source_template_id = 20;
615
650
  */
616
651
  sourceTemplateId: bigint;
652
+ /**
653
+ * Revision of the template when this policy was copied from it, or 0 when
654
+ * it is not a copy. Compare it with the template's current revision to see
655
+ * whether the template changed since. Never changes.
656
+ *
657
+ * @generated from field: uint64 source_template_revision = 24;
658
+ */
659
+ sourceTemplateRevision: bigint;
617
660
  /**
618
661
  * Creation time in UTC.
619
662
  *
@@ -760,7 +803,10 @@ type ApiPolicySpec = Message<"auth.v1.ApiPolicySpec"> & {
760
803
  */
761
804
  actions: PolicyAction[];
762
805
  /**
763
- * Whether this policy should be treated as a reusable template.
806
+ * Whether the policy is a template, which SetApiKeyPolicy applies as a copy.
807
+ * Only the main account owner creates templates, and never together with
808
+ * assign_to_key_id. Chosen at creation: an update_mask that selects it is
809
+ * refused with InvalidArgument.
764
810
  *
765
811
  * @generated from field: bool is_template = 19;
766
812
  */
@@ -772,7 +818,7 @@ type ApiPolicySpec = Message<"auth.v1.ApiPolicySpec"> & {
772
818
  */
773
819
  declare const ApiPolicySpecSchema: GenMessage<ApiPolicySpec>;
774
820
  /**
775
- * CreateApiPolicyRequest defines a new API key policy template.
821
+ * CreateApiPolicyRequest defines a new API key policy.
776
822
  *
777
823
  * @generated from message auth.v1.CreateApiPolicyRequest
778
824
  */
@@ -786,9 +832,12 @@ type CreateApiPolicyRequest = Message<"auth.v1.CreateApiPolicyRequest"> & {
786
832
  /**
787
833
  * Optional API key identifier to bind this newly-created policy to
788
834
  * atomically. When set, the caller must be allowed to manage the key and the
789
- * create+assign operation consumes a single fresh step-up proof. An
790
- * assistant API key cannot be assigned a policy that allows a money-out
791
- * action: FailedPrecondition with AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED.
835
+ * create+assign operation consumes a single fresh step-up proof. A template
836
+ * cannot be assigned: setting it with policy.is_template is refused with
837
+ * InvalidArgument. An assistant API key cannot be assigned a policy that
838
+ * allows a money-out action: FailedPrecondition with
839
+ * AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED. Nor can an admin API key:
840
+ * FailedPrecondition with AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED.
792
841
  *
793
842
  * @generated from field: string assign_to_key_id = 2;
794
843
  */
@@ -875,7 +924,8 @@ type UpdateApiPolicyResponse = Message<"auth.v1.UpdateApiPolicyResponse"> & {
875
924
  */
876
925
  declare const UpdateApiPolicyResponseSchema: GenMessage<UpdateApiPolicyResponse>;
877
926
  /**
878
- * DeleteApiPolicyRequest deletes an API key policy template when it is not in use.
927
+ * DeleteApiPolicyRequest deletes an API key policy when it is not in use. A
928
+ * template is never in use; copies made from it keep their lineage.
879
929
  *
880
930
  * @generated from message auth.v1.DeleteApiPolicyRequest
881
931
  */
@@ -904,7 +954,8 @@ type DeleteApiPolicyResponse = Message<"auth.v1.DeleteApiPolicyResponse"> & {};
904
954
  */
905
955
  declare const DeleteApiPolicyResponseSchema: GenMessage<DeleteApiPolicyResponse>;
906
956
  /**
907
- * SetApiKeyPolicyRequest attaches or clears a policy template on an API key.
957
+ * SetApiKeyPolicyRequest attaches a policy to an API key, applies a template to
958
+ * it, or clears its policy.
908
959
  *
909
960
  * @generated from message auth.v1.SetApiKeyPolicyRequest
910
961
  */
@@ -917,8 +968,10 @@ type SetApiKeyPolicyRequest = Message<"auth.v1.SetApiKeyPolicyRequest"> & {
917
968
  */
918
969
  keyId: string;
919
970
  /**
920
- * Policy template to attach (opaque ID). A value of 0 clears the binding.
921
- * An API key without an attached policy has no permissions.
971
+ * Policy to attach (opaque ID), owned by the key's main account. A template
972
+ * is applied: the key gets a new copy of its current revision, which later
973
+ * edits of the template do not change. A value of 0 clears the binding. An
974
+ * API key without an attached policy has no permissions.
922
975
  *
923
976
  * @generated from field: fixed64 policy_id = 2;
924
977
  */
@@ -930,11 +983,19 @@ type SetApiKeyPolicyRequest = Message<"auth.v1.SetApiKeyPolicyRequest"> & {
930
983
  */
931
984
  declare const SetApiKeyPolicyRequestSchema: GenMessage<SetApiKeyPolicyRequest>;
932
985
  /**
933
- * SetApiKeyPolicyResponse is empty when the policy binding succeeds.
986
+ * SetApiKeyPolicyResponse returns the policy now attached.
934
987
  *
935
988
  * @generated from message auth.v1.SetApiKeyPolicyResponse
936
989
  */
937
- type SetApiKeyPolicyResponse = Message<"auth.v1.SetApiKeyPolicyResponse"> & {};
990
+ type SetApiKeyPolicyResponse = Message<"auth.v1.SetApiKeyPolicyResponse"> & {
991
+ /**
992
+ * Policy now attached to the key (opaque ID): the new copy when policy_id
993
+ * named a template, else policy_id. 0 when the policy was cleared.
994
+ *
995
+ * @generated from field: fixed64 policy_id = 1;
996
+ */
997
+ policyId: bigint;
998
+ };
938
999
  /**
939
1000
  * Describes the message auth.v1.SetApiKeyPolicyResponse.
940
1001
  * Use `create(SetApiKeyPolicyResponseSchema)` to create a new message.
@@ -950,7 +1011,9 @@ declare const SetApiKeyPolicyResponseSchema: GenMessage<SetApiKeyPolicyResponse>
950
1011
  * exactly the calls it names and never implies another permission. A
951
1012
  * main-account permission is honored only for an API key scoped to the main
952
1013
  * account; a key scoped to a sub-account is refused even when its policy
953
- * grants it. An API key without a policy has no permission at all.
1014
+ * grants it. Admin permissions, documented below, apply to API-key policies
1015
+ * only and are honored only for an admin API key. An API key without a policy
1016
+ * has no permission at all.
954
1017
  *
955
1018
  * @generated from enum auth.v1.PolicyAction
956
1019
  */
@@ -1244,14 +1307,45 @@ declare enum PolicyAction {
1244
1307
  *
1245
1308
  * @generated from enum value: READ_ACCOUNT_ACTIVITY = 42;
1246
1309
  */
1247
- READ_ACCOUNT_ACTIVITY = 42
1310
+ READ_ACCOUNT_ACTIVITY = 42,
1311
+ /**
1312
+ * Allow creating, updating and revoking the standard API keys of the main
1313
+ * account and of the sub-accounts it owns. Admin permission: honored only
1314
+ * for an admin API key, which never manages an admin or assistant key, a
1315
+ * key whose policy allows a money-out action, or a sub-account shared with
1316
+ * the main account. A key it creates or updates needs an IP allowlist
1317
+ * within the admin key's own.
1318
+ *
1319
+ * @generated from enum value: MANAGE_API_KEYS = 43;
1320
+ */
1321
+ MANAGE_API_KEYS = 43,
1322
+ /**
1323
+ * Allow attaching and clearing the API policies of the standard API keys
1324
+ * the admin key may manage. A policy it attaches can never allow a
1325
+ * money-out action or an admin permission, and on a sub-account key can
1326
+ * never allow more actions or markets than the sub-account's policy. Admin
1327
+ * permission: honored only for an admin API key.
1328
+ *
1329
+ * @generated from enum value: MANAGE_API_KEY_POLICIES = 44;
1330
+ */
1331
+ MANAGE_API_KEY_POLICIES = 44,
1332
+ /**
1333
+ * Allow attaching, clearing and updating the policies of the sub-accounts
1334
+ * the main account owns. The resulting policy can never allow a money-out
1335
+ * action, and a locked policy is never changed. Admin permission: honored
1336
+ * only for an admin API key.
1337
+ *
1338
+ * @generated from enum value: MANAGE_SUBACCOUNT_POLICIES = 45;
1339
+ */
1340
+ MANAGE_SUBACCOUNT_POLICIES = 45
1248
1341
  }
1249
1342
  /**
1250
1343
  * Describes the enum auth.v1.PolicyAction.
1251
1344
  */
1252
1345
  declare const PolicyActionSchema: GenEnum<PolicyAction>;
1253
1346
  /**
1254
- * PolicyService manages sub-account and API key policy templates and bindings.
1347
+ * PolicyService manages sub-account and API key policies, their templates, and
1348
+ * which policy each sub-account and API key holds.
1255
1349
  *
1256
1350
  * @generated from service auth.v1.PolicyService
1257
1351
  */
@@ -1291,7 +1385,14 @@ declare const PolicyService: GenService<{
1291
1385
  output: typeof CreateSubaccountPolicyResponseSchema;
1292
1386
  };
1293
1387
  /**
1294
- * Change selected fields on an existing sub-account policy template.
1388
+ * Change selected fields on an existing sub-account policy. Editing a
1389
+ * template changes only the template: sub-accounts it was applied to keep
1390
+ * their copies.
1391
+ *
1392
+ * An admin API key with MANAGE_SUBACCOUNT_POLICIES may also update a policy
1393
+ * of the main account's own sub-accounts without a session. The result can
1394
+ * never allow a money-out action, and it can never lock, unlock or change a
1395
+ * locked policy: PermissionDenied with AUTH_ADMIN_KEY_FORBIDDEN_TARGET.
1295
1396
  *
1296
1397
  * @generated from rpc auth.v1.PolicyService.UpdateSubaccountPolicy
1297
1398
  */
@@ -1311,7 +1412,14 @@ declare const PolicyService: GenService<{
1311
1412
  output: typeof DeleteSubaccountPolicyResponseSchema;
1312
1413
  };
1313
1414
  /**
1314
- * Attach or clear a sub-account policy for a sub-account.
1415
+ * Attach a policy to a sub-account, apply a template to it as a new copy, or
1416
+ * clear its policy.
1417
+ *
1418
+ * An admin API key with MANAGE_SUBACCOUNT_POLICIES may also attach, apply or
1419
+ * clear the policy of a sub-account the main account owns, without a
1420
+ * session. It can never attach or apply a policy that allows a money-out
1421
+ * action, replace a locked policy, or reach a sub-account shared with the
1422
+ * main account: PermissionDenied with AUTH_ADMIN_KEY_FORBIDDEN_TARGET.
1315
1423
  *
1316
1424
  * @generated from rpc auth.v1.PolicyService.SetSubaccountPolicy
1317
1425
  */
@@ -1355,9 +1463,12 @@ declare const PolicyService: GenService<{
1355
1463
  output: typeof CreateApiPolicyResponseSchema;
1356
1464
  };
1357
1465
  /**
1358
- * Change selected fields on an existing API key policy template. Adding a
1359
- * money-out action to a policy attached to an assistant API key returns
1360
- * FailedPrecondition with AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED.
1466
+ * Change selected fields on an existing API key policy. Editing a template
1467
+ * changes only the template: keys it was applied to keep their copies.
1468
+ * Adding a money-out action to a policy attached to an assistant API key
1469
+ * returns FailedPrecondition with AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED, and
1470
+ * to a policy attached to an admin API key FailedPrecondition with
1471
+ * AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED.
1361
1472
  *
1362
1473
  * @generated from rpc auth.v1.PolicyService.UpdateApiPolicy
1363
1474
  */
@@ -1377,9 +1488,21 @@ declare const PolicyService: GenService<{
1377
1488
  output: typeof DeleteApiPolicyResponseSchema;
1378
1489
  };
1379
1490
  /**
1380
- * Attach or clear an API key policy for a key. Attaching a policy that allows
1381
- * a money-out action to an assistant API key returns FailedPrecondition with
1382
- * AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED.
1491
+ * Attach a policy to a key, apply a template to it as a new copy, or clear
1492
+ * its policy. Attaching a policy that allows a money-out action to an
1493
+ * assistant API key returns FailedPrecondition with
1494
+ * AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED, and applying a template to one
1495
+ * returns FailedPrecondition with AUTH_POLICY_INVALID.
1496
+ *
1497
+ * An admin API key with MANAGE_API_KEY_POLICIES may also attach, apply or
1498
+ * clear the policy of a standard key it may manage, without a session; the
1499
+ * key needs an IP allowlist within the admin key's own. The policy can never
1500
+ * allow a money-out action (AUTH_ADMIN_KEY_FORBIDDEN_TARGET) or an admin
1501
+ * permission (AUTH_ADMIN_KEY_ESCALATION_DENIED), and on a sub-account key
1502
+ * never more actions or markets than the sub-account's policy
1503
+ * (AUTH_ADMIN_KEY_SCOPE_EXCEEDED), each PermissionDenied. Attaching a
1504
+ * money-out policy to an admin key returns FailedPrecondition with
1505
+ * AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED.
1383
1506
  *
1384
1507
  * @generated from rpc auth.v1.PolicyService.SetApiKeyPolicy
1385
1508
  */