@riffdb/better-auth 0.0.0-stage → 0.2.1

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 (226) hide show
  1. package/DESIGN.md +273 -0
  2. package/LICENSE-APACHE +201 -0
  3. package/LICENSE-MIT +27 -0
  4. package/README.md +323 -2
  5. package/dist/adapter.d.ts +34 -0
  6. package/dist/adapter.d.ts.map +1 -0
  7. package/dist/adapter.js +1600 -0
  8. package/dist/adapter.js.map +1 -0
  9. package/dist/generated/client.d.ts +2166 -0
  10. package/dist/generated/client.d.ts.map +1 -0
  11. package/dist/generated/client.js +2454 -0
  12. package/dist/generated/client.js.map +1 -0
  13. package/dist/index.d.ts +7 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +7 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/plugin-dispatch.d.ts +37 -0
  18. package/dist/plugin-dispatch.d.ts.map +1 -0
  19. package/dist/plugin-dispatch.js +293 -0
  20. package/dist/plugin-dispatch.js.map +1 -0
  21. package/dist/profile-contract.d.ts +63 -0
  22. package/dist/profile-contract.d.ts.map +1 -0
  23. package/dist/profile-contract.js +543 -0
  24. package/dist/profile-contract.js.map +1 -0
  25. package/dist/profile-plan.d.ts +69 -0
  26. package/dist/profile-plan.d.ts.map +1 -0
  27. package/dist/profile-plan.js +180 -0
  28. package/dist/profile-plan.js.map +1 -0
  29. package/dist/profile.d.ts +48 -0
  30. package/dist/profile.d.ts.map +1 -0
  31. package/dist/profile.js +132 -0
  32. package/dist/profile.js.map +1 -0
  33. package/dist/profiles/custom-fields/profile.d.ts +3 -0
  34. package/dist/profiles/custom-fields/profile.d.ts.map +1 -0
  35. package/dist/profiles/custom-fields/profile.js +475 -0
  36. package/dist/profiles/custom-fields/profile.js.map +1 -0
  37. package/dist/profiles/custom-fields/src/generated/client.d.ts +2710 -0
  38. package/dist/profiles/custom-fields/src/generated/client.d.ts.map +1 -0
  39. package/dist/profiles/custom-fields/src/generated/client.js +2663 -0
  40. package/dist/profiles/custom-fields/src/generated/client.js.map +1 -0
  41. package/dist/profiles/runtime/profile.d.ts +3 -0
  42. package/dist/profiles/runtime/profile.d.ts.map +1 -0
  43. package/dist/profiles/runtime/profile.js +1065 -0
  44. package/dist/profiles/runtime/profile.js.map +1 -0
  45. package/dist/profiles/runtime/src/generated/client.d.ts +4274 -0
  46. package/dist/profiles/runtime/src/generated/client.d.ts.map +1 -0
  47. package/dist/profiles/runtime/src/generated/client.js +4607 -0
  48. package/dist/profiles/runtime/src/generated/client.js.map +1 -0
  49. package/dist/runtime-materialize.d.ts +10 -0
  50. package/dist/runtime-materialize.d.ts.map +1 -0
  51. package/dist/runtime-materialize.js +344 -0
  52. package/dist/runtime-materialize.js.map +1 -0
  53. package/dist/runtime-profile.d.ts +34 -0
  54. package/dist/runtime-profile.d.ts.map +1 -0
  55. package/dist/runtime-profile.js +203 -0
  56. package/dist/runtime-profile.js.map +1 -0
  57. package/dist/testing.d.ts +11 -0
  58. package/dist/testing.d.ts.map +1 -0
  59. package/dist/testing.js +12 -0
  60. package/dist/testing.js.map +1 -0
  61. package/generated/go/client.go +2250 -0
  62. package/generated/mcp/tools.json +13922 -0
  63. package/generated/python/client.py +4454 -0
  64. package/generated/riffdb.application.exact.json +1 -0
  65. package/generated/riffdb.contract.bundle +0 -0
  66. package/generated/rust/client.rs +6524 -0
  67. package/package.json +83 -4
  68. package/profiles/custom-fields/generated/go/client.go +2578 -0
  69. package/profiles/custom-fields/generated/mcp/tools.json +15998 -0
  70. package/profiles/custom-fields/generated/python/client.py +5141 -0
  71. package/profiles/custom-fields/generated/riffdb.application.exact.json +1 -0
  72. package/profiles/custom-fields/generated/riffdb.contract.bundle +0 -0
  73. package/profiles/custom-fields/generated/rust/client.rs +7980 -0
  74. package/profiles/custom-fields/profile.ts +474 -0
  75. package/profiles/custom-fields/riffdb/contract.riff +568 -0
  76. package/profiles/custom-fields/riffdb/queries/admin_users_all_email_asc.riffq +24 -0
  77. package/profiles/custom-fields/riffdb/queries/admin_users_contains_asc.riffq +24 -0
  78. package/profiles/custom-fields/riffdb/queries/admin_users_contains_desc.riffq +24 -0
  79. package/profiles/custom-fields/riffdb/queries/admin_users_email_contains_created_desc.riffq +24 -0
  80. package/profiles/custom-fields/riffdb/queries/admin_users_email_contains_image_asc.riffq +24 -0
  81. package/profiles/custom-fields/riffdb/queries/admin_users_ends_with_asc.riffq +24 -0
  82. package/profiles/custom-fields/riffdb/queries/admin_users_ends_with_desc.riffq +24 -0
  83. package/profiles/custom-fields/riffdb/queries/admin_users_starts_with_asc.riffq +24 -0
  84. package/profiles/custom-fields/riffdb/queries/admin_users_starts_with_desc.riffq +24 -0
  85. package/profiles/custom-fields/riffdb/queries/find_account_by_id.riffq +24 -0
  86. package/profiles/custom-fields/riffdb/queries/find_account_by_provider.riffq +26 -0
  87. package/profiles/custom-fields/riffdb/queries/find_accounts_by_user_id.riffq +25 -0
  88. package/profiles/custom-fields/riffdb/queries/find_accounts_by_user_provider.riffq +27 -0
  89. package/profiles/custom-fields/riffdb/queries/find_active_sessions_by_user_id.riffq +23 -0
  90. package/profiles/custom-fields/riffdb/queries/find_credential_account.riffq +25 -0
  91. package/profiles/custom-fields/riffdb/queries/find_expired_verification_ids.riffq +17 -0
  92. package/profiles/custom-fields/riffdb/queries/find_latest_verification.riffq +20 -0
  93. package/profiles/custom-fields/riffdb/queries/find_session_by_id.riffq +20 -0
  94. package/profiles/custom-fields/riffdb/queries/find_session_by_token.riffq +20 -0
  95. package/profiles/custom-fields/riffdb/queries/find_sessions_by_token_set.riffq +20 -0
  96. package/profiles/custom-fields/riffdb/queries/find_sessions_by_user_id.riffq +21 -0
  97. package/profiles/custom-fields/riffdb/queries/find_user_by_email.riffq +16 -0
  98. package/profiles/custom-fields/riffdb/queries/find_user_by_id.riffq +15 -0
  99. package/profiles/custom-fields/riffdb/queries/find_verification_by_id.riffq +19 -0
  100. package/profiles/custom-fields/riffdb/queries/find_verifications_by_identifier.riffq +21 -0
  101. package/profiles/custom-fields/riffdb/queries/profile_account_with_user_by_provider.riffq +31 -0
  102. package/profiles/custom-fields/riffdb/queries/profile_session_with_user_by_id.riffq +14 -0
  103. package/profiles/custom-fields/riffdb/queries/profile_session_with_user_by_token.riffq +14 -0
  104. package/profiles/custom-fields/riffdb/queries/profile_sessions_with_users_by_token_set.riffq +25 -0
  105. package/profiles/custom-fields/riffdb/queries/profile_user_with_accounts_by_email.riffq +19 -0
  106. package/profiles/custom-fields/riffdb/queries/profile_user_with_accounts_by_id.riffq +19 -0
  107. package/profiles/custom-fields/riffdb.application.json +217 -0
  108. package/profiles/custom-fields/riffdb.application.lock.json +1 -0
  109. package/profiles/custom-fields/riffdb.toml +3 -0
  110. package/profiles/custom-fields/src/generated/client.ts +3096 -0
  111. package/profiles/organization-security/materialization.json +51 -0
  112. package/profiles/organization-security/riffdb/contract.riff +778 -0
  113. package/profiles/organization-security/riffdb/queries/find_account_by_id.riffq +18 -0
  114. package/profiles/organization-security/riffdb/queries/find_invitation_by_email.riffq +17 -0
  115. package/profiles/organization-security/riffdb/queries/find_invitation_by_id.riffq +18 -0
  116. package/profiles/organization-security/riffdb/queries/find_invitation_by_organization_id.riffq +17 -0
  117. package/profiles/organization-security/riffdb/queries/find_member_by_id.riffq +18 -0
  118. package/profiles/organization-security/riffdb/queries/find_member_by_user_id.riffq +17 -0
  119. package/profiles/organization-security/riffdb/queries/find_organization_by_id.riffq +16 -0
  120. package/profiles/organization-security/riffdb/queries/find_organization_by_slug.riffq +16 -0
  121. package/profiles/organization-security/riffdb/queries/find_session_by_id.riffq +18 -0
  122. package/profiles/organization-security/riffdb/queries/find_session_by_token.riffq +16 -0
  123. package/profiles/organization-security/riffdb/queries/find_team_by_id.riffq +18 -0
  124. package/profiles/organization-security/riffdb/queries/find_team_member_by_id.riffq +18 -0
  125. package/profiles/organization-security/riffdb/queries/find_team_member_by_membership_key.riffq +16 -0
  126. package/profiles/organization-security/riffdb/queries/find_team_member_by_team_id.riffq +17 -0
  127. package/profiles/organization-security/riffdb/queries/find_two_factor_by_id.riffq +18 -0
  128. package/profiles/organization-security/riffdb/queries/find_two_factor_by_secret.riffq +17 -0
  129. package/profiles/organization-security/riffdb/queries/find_user_by_email.riffq +16 -0
  130. package/profiles/organization-security/riffdb/queries/find_user_by_id.riffq +16 -0
  131. package/profiles/organization-security/riffdb/queries/find_verification_by_id.riffq +16 -0
  132. package/profiles/organization-security/riffdb/queries/find_verification_by_identifier.riffq +17 -0
  133. package/profiles/organization-security/riffdb.application.json +172 -0
  134. package/profiles/organization-security/riffdb.toml +7 -0
  135. package/profiles/organization-security.profile.json +980 -0
  136. package/profiles/runtime/generated/go/client.go +4511 -0
  137. package/profiles/runtime/generated/mcp/tools.json +30004 -0
  138. package/profiles/runtime/generated/python/client.py +9337 -0
  139. package/profiles/runtime/generated/riffdb.application.exact.json +1 -0
  140. package/profiles/runtime/generated/riffdb.contract.bundle +0 -0
  141. package/profiles/runtime/generated/rust/client.rs +13297 -0
  142. package/profiles/runtime/profile.ts +1064 -0
  143. package/profiles/runtime/riffdb/contract.riff +1053 -0
  144. package/profiles/runtime/riffdb/queries/admin_users_all_email_asc.riffq +24 -0
  145. package/profiles/runtime/riffdb/queries/admin_users_contains_asc.riffq +24 -0
  146. package/profiles/runtime/riffdb/queries/admin_users_contains_desc.riffq +24 -0
  147. package/profiles/runtime/riffdb/queries/admin_users_email_contains_created_desc.riffq +24 -0
  148. package/profiles/runtime/riffdb/queries/admin_users_email_contains_image_asc.riffq +24 -0
  149. package/profiles/runtime/riffdb/queries/admin_users_ends_with_asc.riffq +24 -0
  150. package/profiles/runtime/riffdb/queries/admin_users_ends_with_desc.riffq +24 -0
  151. package/profiles/runtime/riffdb/queries/admin_users_starts_with_asc.riffq +24 -0
  152. package/profiles/runtime/riffdb/queries/admin_users_starts_with_desc.riffq +24 -0
  153. package/profiles/runtime/riffdb/queries/find_account_by_id.riffq +24 -0
  154. package/profiles/runtime/riffdb/queries/find_account_by_provider.riffq +26 -0
  155. package/profiles/runtime/riffdb/queries/find_accounts_by_user_id.riffq +25 -0
  156. package/profiles/runtime/riffdb/queries/find_accounts_by_user_provider.riffq +27 -0
  157. package/profiles/runtime/riffdb/queries/find_active_sessions_by_user_id.riffq +23 -0
  158. package/profiles/runtime/riffdb/queries/find_credential_account.riffq +25 -0
  159. package/profiles/runtime/riffdb/queries/find_expired_verification_ids.riffq +17 -0
  160. package/profiles/runtime/riffdb/queries/find_latest_verification.riffq +20 -0
  161. package/profiles/runtime/riffdb/queries/find_session_by_id.riffq +20 -0
  162. package/profiles/runtime/riffdb/queries/find_session_by_token.riffq +20 -0
  163. package/profiles/runtime/riffdb/queries/find_sessions_by_token_set.riffq +20 -0
  164. package/profiles/runtime/riffdb/queries/find_sessions_by_user_id.riffq +21 -0
  165. package/profiles/runtime/riffdb/queries/find_user_by_email.riffq +16 -0
  166. package/profiles/runtime/riffdb/queries/find_user_by_id.riffq +15 -0
  167. package/profiles/runtime/riffdb/queries/find_verification_by_id.riffq +19 -0
  168. package/profiles/runtime/riffdb/queries/find_verifications_by_identifier.riffq +21 -0
  169. package/profiles/runtime/riffdb/queries/profile_account_with_user_by_provider.riffq +31 -0
  170. package/profiles/runtime/riffdb/queries/profile_invitation_by_email.riffq +17 -0
  171. package/profiles/runtime/riffdb/queries/profile_invitation_by_id.riffq +17 -0
  172. package/profiles/runtime/riffdb/queries/profile_invitation_by_organization_email_status.riffq +19 -0
  173. package/profiles/runtime/riffdb/queries/profile_invitation_by_organization_id.riffq +17 -0
  174. package/profiles/runtime/riffdb/queries/profile_invitation_by_organization_status.riffq +18 -0
  175. package/profiles/runtime/riffdb/queries/profile_member_by_id.riffq +27 -0
  176. package/profiles/runtime/riffdb/queries/profile_member_by_organization.riffq +20 -0
  177. package/profiles/runtime/riffdb/queries/profile_member_by_organization_created_at_asc.riffq +20 -0
  178. package/profiles/runtime/riffdb/queries/profile_member_by_organization_created_at_desc.riffq +20 -0
  179. package/profiles/runtime/riffdb/queries/profile_member_by_organization_role_asc.riffq +20 -0
  180. package/profiles/runtime/riffdb/queries/profile_member_by_organization_role_desc.riffq +20 -0
  181. package/profiles/runtime/riffdb/queries/profile_member_by_organization_user.riffq +28 -0
  182. package/profiles/runtime/riffdb/queries/profile_member_by_user.riffq +27 -0
  183. package/profiles/runtime/riffdb/queries/profile_organization_by_id.riffq +27 -0
  184. package/profiles/runtime/riffdb/queries/profile_organization_by_slug.riffq +27 -0
  185. package/profiles/runtime/riffdb/queries/profile_session_with_user_by_id.riffq +14 -0
  186. package/profiles/runtime/riffdb/queries/profile_session_with_user_by_token.riffq +14 -0
  187. package/profiles/runtime/riffdb/queries/profile_sessions_with_users_by_token_set.riffq +25 -0
  188. package/profiles/runtime/riffdb/queries/profile_two_factor_by_id.riffq +17 -0
  189. package/profiles/runtime/riffdb/queries/profile_two_factor_by_user.riffq +17 -0
  190. package/profiles/runtime/riffdb/queries/profile_user_with_accounts_by_email.riffq +19 -0
  191. package/profiles/runtime/riffdb/queries/profile_user_with_accounts_by_id.riffq +19 -0
  192. package/profiles/runtime/riffdb/queries/profile_users_by_id_set.riffq +8 -0
  193. package/profiles/runtime/riffdb.application.json +324 -0
  194. package/profiles/runtime/riffdb.application.lock.json +1 -0
  195. package/profiles/runtime/riffdb.toml +3 -0
  196. package/profiles/runtime/src/generated/client.ts +5186 -0
  197. package/riffdb/contract.riff +547 -0
  198. package/riffdb/queries/admin_users_all_email_asc.riffq +24 -0
  199. package/riffdb/queries/admin_users_contains_asc.riffq +24 -0
  200. package/riffdb/queries/admin_users_contains_desc.riffq +24 -0
  201. package/riffdb/queries/admin_users_email_contains_created_desc.riffq +24 -0
  202. package/riffdb/queries/admin_users_email_contains_image_asc.riffq +24 -0
  203. package/riffdb/queries/admin_users_ends_with_asc.riffq +24 -0
  204. package/riffdb/queries/admin_users_ends_with_desc.riffq +24 -0
  205. package/riffdb/queries/admin_users_starts_with_asc.riffq +24 -0
  206. package/riffdb/queries/admin_users_starts_with_desc.riffq +24 -0
  207. package/riffdb/queries/find_account_by_id.riffq +24 -0
  208. package/riffdb/queries/find_account_by_provider.riffq +26 -0
  209. package/riffdb/queries/find_accounts_by_user_id.riffq +25 -0
  210. package/riffdb/queries/find_accounts_by_user_provider.riffq +27 -0
  211. package/riffdb/queries/find_active_sessions_by_user_id.riffq +23 -0
  212. package/riffdb/queries/find_credential_account.riffq +25 -0
  213. package/riffdb/queries/find_expired_verification_ids.riffq +17 -0
  214. package/riffdb/queries/find_latest_verification.riffq +20 -0
  215. package/riffdb/queries/find_session_by_id.riffq +20 -0
  216. package/riffdb/queries/find_session_by_token.riffq +20 -0
  217. package/riffdb/queries/find_sessions_by_token_set.riffq +20 -0
  218. package/riffdb/queries/find_sessions_by_user_id.riffq +21 -0
  219. package/riffdb/queries/find_user_by_email.riffq +16 -0
  220. package/riffdb/queries/find_user_by_id.riffq +15 -0
  221. package/riffdb/queries/find_verification_by_id.riffq +19 -0
  222. package/riffdb/queries/find_verifications_by_identifier.riffq +21 -0
  223. package/riffdb.application.json +187 -0
  224. package/riffdb.application.lock.json +1 -0
  225. package/scripts/real-riffdb-runner.mjs +333 -0
  226. package/src/generated/client.ts +2746 -0
@@ -0,0 +1,2166 @@
1
+ export declare const QUERY_MODULE_HASH: "8dff3a38f6c0a915d7653e7571a2ef5795a89b452990d705f38fe0ac93b5ad9a";
2
+ export declare const CONTRACT_LINEAGE: "RiffDBBetterAuthCore";
3
+ export declare const CONTRACT_VERSION: 1;
4
+ export declare const CONTRACT_BUNDLE_HASH: "74fd255eefcf04f0b054dbb6c4a0bed43a7312d82f7755687c9229ee3206ddfc";
5
+ export interface ContractDriverIdentity {
6
+ readonly contractLineage: typeof CONTRACT_LINEAGE;
7
+ readonly contractVersion: bigint;
8
+ readonly contractBundleHash: typeof CONTRACT_BUNDLE_HASH;
9
+ readonly role: string;
10
+ readonly database?: string;
11
+ readonly applicationManifestHash?: string;
12
+ readonly operationCatalogHash?: string;
13
+ readonly roleDefinitionHash?: string;
14
+ readonly remoteIdentityHash?: string;
15
+ }
16
+ export declare const CONTRACT_DRIVER_IDENTITY: {
17
+ readonly contractLineage: "RiffDBBetterAuthCore";
18
+ readonly contractVersion: bigint;
19
+ readonly contractBundleHash: "74fd255eefcf04f0b054dbb6c4a0bed43a7312d82f7755687c9229ee3206ddfc";
20
+ };
21
+ export declare function driverIdentity(role: string, database?: string): ContractDriverIdentity;
22
+ export declare const APPLICATION_ERROR_REGISTRY: {
23
+ readonly "RDB-APP-0001": readonly ["application request is structurally invalid", "input", "correct_request", readonly ["correct_input"]];
24
+ readonly "RDB-INPUT-0101": readonly ["application input is invalid", "input", "correct_request", readonly ["correct_input"]];
25
+ readonly "RDB-AUTH-0214": readonly ["application operation is not authorized", "authorization", "obtain_permission", readonly ["bind_application_role"]];
26
+ readonly "RDB-CONTRACT-0101": readonly ["application contract does not match", "contract", "refresh_contract", readonly ["refresh_contract"]];
27
+ readonly "RDB-QUERY-0101": readonly ["RiffQL query is invalid", "query", "correct_request", readonly ["correct_input"]];
28
+ readonly "RDB-QUERY-0102": readonly ["RiffQL query is unavailable", "query", "refresh_contract", readonly ["pin_active_module"]];
29
+ readonly "RDB-MODULE-0101": readonly ["query module is unavailable", "module", "refresh_contract", readonly ["pin_active_module"]];
30
+ readonly "RDB-CURSOR-0101": readonly ["query cursor is invalid or stale", "cursor", "correct_request", readonly ["restart_from_first_page"]];
31
+ readonly "RDB-RESOURCE-0101": readonly ["application result exceeds the service limit", "resource", "correct_request", readonly ["correct_input"]];
32
+ readonly "RDB-STORAGE-0101": readonly ["storage is temporarily unavailable", "storage", "retry", readonly ["retry_later"]];
33
+ readonly "RDB-UNCERTAIN-0101": readonly ["command outcome is not yet known", "uncertainty", "resolve_with_same_idempotency_key", readonly ["resolve_with_same_idempotency_key"]];
34
+ readonly "RDB-APP-0002": readonly ["application request was cancelled", "control", "none", readonly []];
35
+ readonly "RDB-APP-0003": readonly ["application request deadline elapsed", "control", "retry", readonly ["retry_later"]];
36
+ readonly "RDB-INTERNAL-0001": readonly ["an internal error occurred", "internal", "contact_operator", readonly ["contact_operator_with_incident"]];
37
+ readonly "RDB-COMMAND-0101": readonly ["idempotency key was reused with different application input", "command", "correct_request", readonly ["correct_input"]];
38
+ readonly "RDB-COMMAND-0102": readonly ["command execution failed", "command", "contact_operator", readonly []];
39
+ readonly "RDB-AUTH-0215": readonly ["application capability is revoked", "authorization", "obtain_permission", readonly ["bind_application_role"]];
40
+ readonly "RDB-PROTOCOL-0101": readonly ["the RiffDB peer returned an invalid application response", "protocol", "contact_operator", readonly []];
41
+ readonly "RDB-HISTORY-0101": readonly ["observed history predates a database restore", "history", "correct_request", readonly ["correct_input"]];
42
+ readonly "RDB-HISTORY-0102": readonly ["requested history has been pruned", "history", "correct_request", readonly ["correct_input"]];
43
+ readonly "RDB-CAPACITY-0101": readonly ["service is over capacity", "capacity", "retry", readonly ["retry_later"]];
44
+ readonly "RDB-PROJECTION-0101": readonly ["query projections cannot prove one common snapshot", "query", "retry", readonly ["retry_later"]];
45
+ readonly "RDB-PROJECTION-0102": readonly ["the requested query snapshot has been retired", "query", "correct_request", readonly ["restart_from_first_page"]];
46
+ readonly "RDB-PROJECTION-0103": readonly ["no query snapshot satisfies the requested freshness", "query", "retry", readonly ["retry_later"]];
47
+ readonly "RDB-PROJECTION-0104": readonly ["nearest query requires a compiler-owned projected source", "query", "refresh_contract", readonly ["pin_active_module"]];
48
+ readonly "RDB-REP-0101": readonly ["operation is unavailable in follower mode", "control", "correct_request", readonly []];
49
+ readonly "RDB-REP-0102": readonly ["primary is durably fenced", "control", "contact_operator", readonly []];
50
+ };
51
+ export type ApplicationErrorCode = keyof typeof APPLICATION_ERROR_REGISTRY;
52
+ export type ApplicationOperation = "DescribeContract" | "CheckQuery" | "ExplainQuery" | "ExecuteQuery" | "DeployQueryModule" | "GetQueryModule" | "ExecuteCommand" | "BatchCommand" | "InspectVectorState";
53
+ export type ApplicationErrorCategory = typeof APPLICATION_ERROR_REGISTRY[ApplicationErrorCode][1];
54
+ export type ApplicationRecoveryAction = typeof APPLICATION_ERROR_REGISTRY[ApplicationErrorCode][2];
55
+ export type ApplicationFixCode = typeof APPLICATION_ERROR_REGISTRY[ApplicationErrorCode][3][number];
56
+ export interface ApplicationErrorDetails {
57
+ readonly type: "application";
58
+ readonly code: ApplicationErrorCode;
59
+ readonly message: string;
60
+ readonly category: ApplicationErrorCategory;
61
+ readonly recoveryAction: ApplicationRecoveryAction;
62
+ readonly operation: ApplicationOperation;
63
+ readonly contractLineage?: string;
64
+ readonly contractVersion?: number;
65
+ readonly operationSymbol?: string;
66
+ readonly symbolPath: ReadonlyArray<string>;
67
+ readonly sourceSpan?: {
68
+ readonly start: number;
69
+ readonly end: number;
70
+ };
71
+ readonly fixes: ReadonlyArray<ApplicationFixCode>;
72
+ readonly traceId?: string;
73
+ readonly incidentId?: string;
74
+ }
75
+ export declare class RiffDbApplicationError extends Error {
76
+ readonly details: ApplicationErrorDetails;
77
+ readonly name = "RiffDbApplicationError";
78
+ constructor(details: ApplicationErrorDetails);
79
+ }
80
+ export declare function decodeApplicationError(value: unknown): RiffDbApplicationError;
81
+ export type ApplicationValueSchema = {
82
+ readonly kind: "bool" | "i64" | "u64" | "string" | "uuid" | "enum" | "bytes" | "date" | "timestamp" | "cursor";
83
+ } | {
84
+ readonly kind: "limit";
85
+ readonly maximum?: number;
86
+ } | {
87
+ readonly kind: "decimal";
88
+ readonly precision?: number;
89
+ readonly scale?: number;
90
+ } | {
91
+ readonly kind: "money";
92
+ readonly precision?: number;
93
+ readonly scale?: number;
94
+ readonly currency?: string;
95
+ } | {
96
+ readonly kind: "optional";
97
+ readonly value: ApplicationValueSchema;
98
+ } | {
99
+ readonly kind: "list";
100
+ readonly value: ApplicationValueSchema;
101
+ readonly minimum?: number;
102
+ readonly maximum?: number;
103
+ readonly aggregateCanonicalElementBytes?: number;
104
+ } | {
105
+ readonly kind: "record";
106
+ readonly fields: ReadonlyArray<{
107
+ readonly name: string;
108
+ readonly schema: ApplicationValueSchema;
109
+ readonly wireId?: number;
110
+ }>;
111
+ };
112
+ export interface DriverOperationIdentity {
113
+ readonly name: string;
114
+ readonly inputSchemaHash: string;
115
+ }
116
+ export interface CompactApplicationValue {
117
+ readonly type: string;
118
+ readonly value?: unknown;
119
+ }
120
+ export interface CompactNamedQueryResult {
121
+ readonly outcome: string;
122
+ readonly resultName: string;
123
+ readonly entity: string;
124
+ readonly fields: ReadonlyArray<string>;
125
+ readonly rows: ReadonlyArray<ReadonlyArray<CompactApplicationValue>>;
126
+ }
127
+ export interface NamedQueryRequest<P, R> {
128
+ readonly driverOperation: DriverOperationIdentity;
129
+ readonly contractLineage: typeof CONTRACT_LINEAGE;
130
+ readonly contractVersion: typeof CONTRACT_VERSION;
131
+ readonly contractBundleHash: typeof CONTRACT_BUNDLE_HASH;
132
+ readonly moduleHash: typeof QUERY_MODULE_HASH;
133
+ readonly queryName: string;
134
+ readonly planHash: string;
135
+ readonly parameters: P;
136
+ readonly parameterSchema: ApplicationValueSchema;
137
+ readonly resultSchemas: Readonly<Record<string, ApplicationValueSchema>>;
138
+ readonly compactDecoder?: (value: CompactNamedQueryResult) => R;
139
+ readonly decodeError: typeof decodeApplicationError;
140
+ readonly resultType?: R;
141
+ }
142
+ export interface QueryResponseIdentity {
143
+ readonly contractLineage: string;
144
+ readonly contractVersion: number;
145
+ readonly contractBundleHash: string;
146
+ readonly moduleHash: string;
147
+ readonly queryName: string;
148
+ readonly planHash: string;
149
+ }
150
+ export declare function acceptsIdentity<P, R>(request: NamedQueryRequest<P, R>, identity: QueryResponseIdentity): boolean;
151
+ export interface CommandRequest<I, R> {
152
+ readonly driverOperation: DriverOperationIdentity;
153
+ readonly contractLineage: typeof CONTRACT_LINEAGE;
154
+ readonly contractVersion: typeof CONTRACT_VERSION;
155
+ readonly commandName: string;
156
+ readonly planHash: string;
157
+ readonly input: I;
158
+ readonly idempotencyKey: string;
159
+ readonly inputSchema: ApplicationValueSchema;
160
+ readonly outcomeSchemas: Readonly<Record<string, ApplicationValueSchema>>;
161
+ readonly decodeError: typeof decodeApplicationError;
162
+ readonly outcomeType?: R;
163
+ }
164
+ export interface TypedQueryResult<T> {
165
+ readonly identity: QueryResponseIdentity;
166
+ readonly value: T;
167
+ readonly applicationHead: bigint;
168
+ readonly nextCursor?: string;
169
+ }
170
+ export interface WorkflowSuccessorRevision {
171
+ readonly binding: string;
172
+ readonly revision: bigint;
173
+ }
174
+ export interface TypedCommandResult<T> {
175
+ readonly outcome: T;
176
+ readonly commitSequence?: bigint;
177
+ readonly contractVersion: number;
178
+ readonly planHash: string;
179
+ readonly replayed: boolean;
180
+ readonly outcomeUri?: string;
181
+ readonly workflowRevisions?: ReadonlyArray<WorkflowSuccessorRevision>;
182
+ }
183
+ export type QueryConsistency = "admissionHead";
184
+ export interface QueryOptions {
185
+ readonly cursor?: string;
186
+ readonly readAfterCommit?: bigint;
187
+ readonly consistency?: QueryConsistency;
188
+ }
189
+ export interface CommandBatchProgress {
190
+ readonly completed: number;
191
+ readonly total: number;
192
+ readonly checkpoint: number;
193
+ }
194
+ export declare const MAX_COMMAND_BATCH_CONCURRENCY = 384;
195
+ export declare const DEFAULT_COMMAND_ATTEMPT_BUDGET = 3;
196
+ export interface CommandBatchOptions {
197
+ readonly concurrency: number;
198
+ readonly checkpoint?: number;
199
+ readonly onProgress?: (progress: CommandBatchProgress) => void;
200
+ }
201
+ export interface CommandBatchItem<T> {
202
+ readonly index: number;
203
+ readonly result?: TypedCommandResult<T>;
204
+ readonly error?: unknown;
205
+ }
206
+ export interface CommandBatchResult<T> {
207
+ readonly items: ReadonlyArray<CommandBatchItem<T>>;
208
+ readonly checkpoint: number;
209
+ }
210
+ export interface ApplicationTransport {
211
+ executeNamedQuery<P, R>(request: NamedQueryRequest<P, R>, options?: QueryOptions): Promise<TypedQueryResult<R>>;
212
+ executeCommand<I, R>(request: CommandRequest<I, R>, attemptBudget: number): Promise<TypedCommandResult<R>>;
213
+ executeCommandBatch?<I, R>(request: CommandRequest<I, R>, inputs: ReadonlyArray<I>, concurrency: number, checkpoint: number, attemptBudget: number): Promise<CommandBatchResult<R>>;
214
+ executeVectorInspection?<P, R>(request: VectorInspectionRequest<P, R>, options?: VectorInspectionOptions): Promise<TypedVectorInspectionResult<R>>;
215
+ }
216
+ export interface VectorInspectionRequest<P, R> {
217
+ readonly driverOperation: DriverOperationIdentity;
218
+ readonly contractLineage: typeof CONTRACT_LINEAGE;
219
+ readonly contractVersion: typeof CONTRACT_VERSION;
220
+ readonly contractBundleHash: typeof CONTRACT_BUNDLE_HASH;
221
+ readonly entity: string;
222
+ readonly field: string;
223
+ readonly inspectionKind: "staleness" | "model_versions";
224
+ readonly partition: P;
225
+ readonly partitionSchema: ApplicationValueSchema;
226
+ readonly limit: number;
227
+ readonly resultType?: R;
228
+ }
229
+ export interface VectorInspectionOptions {
230
+ readonly cursor?: string;
231
+ }
232
+ export interface TypedVectorInspectionResult<T> {
233
+ readonly value: T;
234
+ readonly applicationHead?: bigint;
235
+ readonly nextCursor?: string;
236
+ }
237
+ export interface VectorStalenessItem {
238
+ readonly entityKey: Uint8Array;
239
+ readonly newestSourceWrite: bigint;
240
+ readonly embeddingWrite: bigint | null;
241
+ }
242
+ export type VectorStalenessResult = {
243
+ readonly kind: "staleness_summary";
244
+ readonly totalEntities: bigint;
245
+ readonly staleCount: bigint;
246
+ readonly staleEntityCountThreshold: bigint;
247
+ readonly sloBreached: boolean;
248
+ } | {
249
+ readonly kind: "stale_entities";
250
+ readonly items: ReadonlyArray<VectorStalenessItem>;
251
+ readonly observedFrontier: bigint | null;
252
+ };
253
+ export interface VectorModelVersionItem {
254
+ readonly entityKey: Uint8Array;
255
+ readonly model: string;
256
+ readonly modelVersion: string;
257
+ readonly embeddingWrite: bigint;
258
+ }
259
+ export type VectorModelVersionResult = {
260
+ readonly kind: "model_version_summary";
261
+ readonly currentCount: bigint;
262
+ readonly outdatedCount: bigint;
263
+ } | {
264
+ readonly kind: "outdated_model_entities";
265
+ readonly items: ReadonlyArray<VectorModelVersionItem>;
266
+ readonly observedFrontier: bigint | null;
267
+ };
268
+ export declare const ADMIN_USERS_ALL_EMAIL_ASC_QUERY_PLAN_HASH: "056edbaabe43e1dc95f1f6af9838747f54d927a90d5bc9f2be045ae266d107d3";
269
+ export interface AdminUsersAllEmailAscParams {
270
+ readonly organization_id: string;
271
+ readonly minimum_email: string;
272
+ readonly user_id?: string | null;
273
+ readonly limit?: number;
274
+ readonly offset?: bigint;
275
+ }
276
+ export interface AdminUsersAllEmailAscFound {
277
+ readonly outcome: "Found";
278
+ readonly users: ReadonlyArray<{
279
+ readonly organization_id: string;
280
+ readonly user_id: string;
281
+ readonly name: string;
282
+ readonly email: string;
283
+ readonly email_verified: boolean;
284
+ readonly image: string | null;
285
+ readonly created_at: {
286
+ readonly seconds: bigint;
287
+ readonly nanos: number;
288
+ };
289
+ readonly updated_at: {
290
+ readonly seconds: bigint;
291
+ readonly nanos: number;
292
+ };
293
+ readonly revision: bigint;
294
+ }>;
295
+ readonly total: {
296
+ readonly value: bigint;
297
+ };
298
+ }
299
+ export type AdminUsersAllEmailAscResult = AdminUsersAllEmailAscFound;
300
+ export declare function isAdminUsersAllEmailAscFound(value: AdminUsersAllEmailAscResult): value is AdminUsersAllEmailAscFound;
301
+ export declare function unwrapAdminUsersAllEmailAscFound(value: AdminUsersAllEmailAscResult | TypedQueryResult<AdminUsersAllEmailAscResult>): AdminUsersAllEmailAscFound;
302
+ export declare function adminUsersAllEmailAsc(parameters: AdminUsersAllEmailAscParams): NamedQueryRequest<AdminUsersAllEmailAscParams, AdminUsersAllEmailAscResult>;
303
+ export declare const ADMIN_USERS_CONTAINS_ASC_QUERY_PLAN_HASH: "b64d213477dd2275d98422a6c3460b0cae932dd96255fe9d565005e8afa37fc4";
304
+ export interface AdminUsersContainsAscParams {
305
+ readonly organization_id: string;
306
+ readonly needle: string;
307
+ readonly user_id?: string | null;
308
+ readonly limit?: number;
309
+ readonly offset?: bigint;
310
+ }
311
+ export interface AdminUsersContainsAscFound {
312
+ readonly outcome: "Found";
313
+ readonly users: ReadonlyArray<{
314
+ readonly organization_id: string;
315
+ readonly user_id: string;
316
+ readonly name: string;
317
+ readonly email: string;
318
+ readonly email_verified: boolean;
319
+ readonly image: string | null;
320
+ readonly created_at: {
321
+ readonly seconds: bigint;
322
+ readonly nanos: number;
323
+ };
324
+ readonly updated_at: {
325
+ readonly seconds: bigint;
326
+ readonly nanos: number;
327
+ };
328
+ readonly revision: bigint;
329
+ }>;
330
+ readonly total: {
331
+ readonly value: bigint;
332
+ };
333
+ }
334
+ export type AdminUsersContainsAscResult = AdminUsersContainsAscFound;
335
+ export declare function isAdminUsersContainsAscFound(value: AdminUsersContainsAscResult): value is AdminUsersContainsAscFound;
336
+ export declare function unwrapAdminUsersContainsAscFound(value: AdminUsersContainsAscResult | TypedQueryResult<AdminUsersContainsAscResult>): AdminUsersContainsAscFound;
337
+ export declare function adminUsersContainsAsc(parameters: AdminUsersContainsAscParams): NamedQueryRequest<AdminUsersContainsAscParams, AdminUsersContainsAscResult>;
338
+ export declare const ADMIN_USERS_CONTAINS_DESC_QUERY_PLAN_HASH: "57aba8cf311c301e985adc324f97b4d963a38e6efa6058a82e248854d75f2f05";
339
+ export interface AdminUsersContainsDescParams {
340
+ readonly organization_id: string;
341
+ readonly needle: string;
342
+ readonly user_id?: string | null;
343
+ readonly limit?: number;
344
+ readonly offset?: bigint;
345
+ }
346
+ export interface AdminUsersContainsDescFound {
347
+ readonly outcome: "Found";
348
+ readonly users: ReadonlyArray<{
349
+ readonly organization_id: string;
350
+ readonly user_id: string;
351
+ readonly name: string;
352
+ readonly email: string;
353
+ readonly email_verified: boolean;
354
+ readonly image: string | null;
355
+ readonly created_at: {
356
+ readonly seconds: bigint;
357
+ readonly nanos: number;
358
+ };
359
+ readonly updated_at: {
360
+ readonly seconds: bigint;
361
+ readonly nanos: number;
362
+ };
363
+ readonly revision: bigint;
364
+ }>;
365
+ readonly total: {
366
+ readonly value: bigint;
367
+ };
368
+ }
369
+ export type AdminUsersContainsDescResult = AdminUsersContainsDescFound;
370
+ export declare function isAdminUsersContainsDescFound(value: AdminUsersContainsDescResult): value is AdminUsersContainsDescFound;
371
+ export declare function unwrapAdminUsersContainsDescFound(value: AdminUsersContainsDescResult | TypedQueryResult<AdminUsersContainsDescResult>): AdminUsersContainsDescFound;
372
+ export declare function adminUsersContainsDesc(parameters: AdminUsersContainsDescParams): NamedQueryRequest<AdminUsersContainsDescParams, AdminUsersContainsDescResult>;
373
+ export declare const ADMIN_USERS_EMAIL_CONTAINS_CREATED_DESC_QUERY_PLAN_HASH: "7aede9eda624f5b4eb4280ca7b8a1421466ce30091177c9abab4f125987eb4ff";
374
+ export interface AdminUsersEmailContainsCreatedDescParams {
375
+ readonly organization_id: string;
376
+ readonly needle: string;
377
+ readonly user_id?: string | null;
378
+ readonly limit?: number;
379
+ readonly offset?: bigint;
380
+ }
381
+ export interface AdminUsersEmailContainsCreatedDescFound {
382
+ readonly outcome: "Found";
383
+ readonly users: ReadonlyArray<{
384
+ readonly organization_id: string;
385
+ readonly user_id: string;
386
+ readonly name: string;
387
+ readonly email: string;
388
+ readonly email_verified: boolean;
389
+ readonly image: string | null;
390
+ readonly created_at: {
391
+ readonly seconds: bigint;
392
+ readonly nanos: number;
393
+ };
394
+ readonly updated_at: {
395
+ readonly seconds: bigint;
396
+ readonly nanos: number;
397
+ };
398
+ readonly revision: bigint;
399
+ }>;
400
+ readonly total: {
401
+ readonly value: bigint;
402
+ };
403
+ }
404
+ export type AdminUsersEmailContainsCreatedDescResult = AdminUsersEmailContainsCreatedDescFound;
405
+ export declare function isAdminUsersEmailContainsCreatedDescFound(value: AdminUsersEmailContainsCreatedDescResult): value is AdminUsersEmailContainsCreatedDescFound;
406
+ export declare function unwrapAdminUsersEmailContainsCreatedDescFound(value: AdminUsersEmailContainsCreatedDescResult | TypedQueryResult<AdminUsersEmailContainsCreatedDescResult>): AdminUsersEmailContainsCreatedDescFound;
407
+ export declare function adminUsersEmailContainsCreatedDesc(parameters: AdminUsersEmailContainsCreatedDescParams): NamedQueryRequest<AdminUsersEmailContainsCreatedDescParams, AdminUsersEmailContainsCreatedDescResult>;
408
+ export declare const ADMIN_USERS_EMAIL_CONTAINS_IMAGE_ASC_QUERY_PLAN_HASH: "453cb6c81f506a1f0ac99bed3cc85da59176d2cb83597d5812d771683a60cb4c";
409
+ export interface AdminUsersEmailContainsImageAscParams {
410
+ readonly organization_id: string;
411
+ readonly needle: string;
412
+ readonly user_id?: string | null;
413
+ readonly limit?: number;
414
+ readonly offset?: bigint;
415
+ }
416
+ export interface AdminUsersEmailContainsImageAscFound {
417
+ readonly outcome: "Found";
418
+ readonly users: ReadonlyArray<{
419
+ readonly organization_id: string;
420
+ readonly user_id: string;
421
+ readonly name: string;
422
+ readonly email: string;
423
+ readonly email_verified: boolean;
424
+ readonly image: string | null;
425
+ readonly created_at: {
426
+ readonly seconds: bigint;
427
+ readonly nanos: number;
428
+ };
429
+ readonly updated_at: {
430
+ readonly seconds: bigint;
431
+ readonly nanos: number;
432
+ };
433
+ readonly revision: bigint;
434
+ }>;
435
+ readonly total: {
436
+ readonly value: bigint;
437
+ };
438
+ }
439
+ export type AdminUsersEmailContainsImageAscResult = AdminUsersEmailContainsImageAscFound;
440
+ export declare function isAdminUsersEmailContainsImageAscFound(value: AdminUsersEmailContainsImageAscResult): value is AdminUsersEmailContainsImageAscFound;
441
+ export declare function unwrapAdminUsersEmailContainsImageAscFound(value: AdminUsersEmailContainsImageAscResult | TypedQueryResult<AdminUsersEmailContainsImageAscResult>): AdminUsersEmailContainsImageAscFound;
442
+ export declare function adminUsersEmailContainsImageAsc(parameters: AdminUsersEmailContainsImageAscParams): NamedQueryRequest<AdminUsersEmailContainsImageAscParams, AdminUsersEmailContainsImageAscResult>;
443
+ export declare const ADMIN_USERS_ENDS_WITH_ASC_QUERY_PLAN_HASH: "924c7acfdcf3f7970917ac611b6eafc9175ac69f735d9e1cc01414fcc6f0e696";
444
+ export interface AdminUsersEndsWithAscParams {
445
+ readonly organization_id: string;
446
+ readonly needle: string;
447
+ readonly user_id?: string | null;
448
+ readonly limit?: number;
449
+ readonly offset?: bigint;
450
+ }
451
+ export interface AdminUsersEndsWithAscFound {
452
+ readonly outcome: "Found";
453
+ readonly users: ReadonlyArray<{
454
+ readonly organization_id: string;
455
+ readonly user_id: string;
456
+ readonly name: string;
457
+ readonly email: string;
458
+ readonly email_verified: boolean;
459
+ readonly image: string | null;
460
+ readonly created_at: {
461
+ readonly seconds: bigint;
462
+ readonly nanos: number;
463
+ };
464
+ readonly updated_at: {
465
+ readonly seconds: bigint;
466
+ readonly nanos: number;
467
+ };
468
+ readonly revision: bigint;
469
+ }>;
470
+ readonly total: {
471
+ readonly value: bigint;
472
+ };
473
+ }
474
+ export type AdminUsersEndsWithAscResult = AdminUsersEndsWithAscFound;
475
+ export declare function isAdminUsersEndsWithAscFound(value: AdminUsersEndsWithAscResult): value is AdminUsersEndsWithAscFound;
476
+ export declare function unwrapAdminUsersEndsWithAscFound(value: AdminUsersEndsWithAscResult | TypedQueryResult<AdminUsersEndsWithAscResult>): AdminUsersEndsWithAscFound;
477
+ export declare function adminUsersEndsWithAsc(parameters: AdminUsersEndsWithAscParams): NamedQueryRequest<AdminUsersEndsWithAscParams, AdminUsersEndsWithAscResult>;
478
+ export declare const ADMIN_USERS_ENDS_WITH_DESC_QUERY_PLAN_HASH: "cab8ad8456533e4ce97388948e4f703cac6f2eebb641b83a91c3b005ece7fffb";
479
+ export interface AdminUsersEndsWithDescParams {
480
+ readonly organization_id: string;
481
+ readonly needle: string;
482
+ readonly user_id?: string | null;
483
+ readonly limit?: number;
484
+ readonly offset?: bigint;
485
+ }
486
+ export interface AdminUsersEndsWithDescFound {
487
+ readonly outcome: "Found";
488
+ readonly users: ReadonlyArray<{
489
+ readonly organization_id: string;
490
+ readonly user_id: string;
491
+ readonly name: string;
492
+ readonly email: string;
493
+ readonly email_verified: boolean;
494
+ readonly image: string | null;
495
+ readonly created_at: {
496
+ readonly seconds: bigint;
497
+ readonly nanos: number;
498
+ };
499
+ readonly updated_at: {
500
+ readonly seconds: bigint;
501
+ readonly nanos: number;
502
+ };
503
+ readonly revision: bigint;
504
+ }>;
505
+ readonly total: {
506
+ readonly value: bigint;
507
+ };
508
+ }
509
+ export type AdminUsersEndsWithDescResult = AdminUsersEndsWithDescFound;
510
+ export declare function isAdminUsersEndsWithDescFound(value: AdminUsersEndsWithDescResult): value is AdminUsersEndsWithDescFound;
511
+ export declare function unwrapAdminUsersEndsWithDescFound(value: AdminUsersEndsWithDescResult | TypedQueryResult<AdminUsersEndsWithDescResult>): AdminUsersEndsWithDescFound;
512
+ export declare function adminUsersEndsWithDesc(parameters: AdminUsersEndsWithDescParams): NamedQueryRequest<AdminUsersEndsWithDescParams, AdminUsersEndsWithDescResult>;
513
+ export declare const ADMIN_USERS_STARTS_WITH_ASC_QUERY_PLAN_HASH: "add0aed3dbd0caea0de2857133a857d49eb7bfc0e031d117270cc873137da5ec";
514
+ export interface AdminUsersStartsWithAscParams {
515
+ readonly organization_id: string;
516
+ readonly needle: string;
517
+ readonly user_id?: string | null;
518
+ readonly limit?: number;
519
+ readonly offset?: bigint;
520
+ }
521
+ export interface AdminUsersStartsWithAscFound {
522
+ readonly outcome: "Found";
523
+ readonly users: ReadonlyArray<{
524
+ readonly organization_id: string;
525
+ readonly user_id: string;
526
+ readonly name: string;
527
+ readonly email: string;
528
+ readonly email_verified: boolean;
529
+ readonly image: string | null;
530
+ readonly created_at: {
531
+ readonly seconds: bigint;
532
+ readonly nanos: number;
533
+ };
534
+ readonly updated_at: {
535
+ readonly seconds: bigint;
536
+ readonly nanos: number;
537
+ };
538
+ readonly revision: bigint;
539
+ }>;
540
+ readonly total: {
541
+ readonly value: bigint;
542
+ };
543
+ }
544
+ export type AdminUsersStartsWithAscResult = AdminUsersStartsWithAscFound;
545
+ export declare function isAdminUsersStartsWithAscFound(value: AdminUsersStartsWithAscResult): value is AdminUsersStartsWithAscFound;
546
+ export declare function unwrapAdminUsersStartsWithAscFound(value: AdminUsersStartsWithAscResult | TypedQueryResult<AdminUsersStartsWithAscResult>): AdminUsersStartsWithAscFound;
547
+ export declare function adminUsersStartsWithAsc(parameters: AdminUsersStartsWithAscParams): NamedQueryRequest<AdminUsersStartsWithAscParams, AdminUsersStartsWithAscResult>;
548
+ export declare const ADMIN_USERS_STARTS_WITH_DESC_QUERY_PLAN_HASH: "23c1561fb3956217e79d1b358be468e55c4021b887e927a4fb3c0484c92be872";
549
+ export interface AdminUsersStartsWithDescParams {
550
+ readonly organization_id: string;
551
+ readonly needle: string;
552
+ readonly user_id?: string | null;
553
+ readonly limit?: number;
554
+ readonly offset?: bigint;
555
+ }
556
+ export interface AdminUsersStartsWithDescFound {
557
+ readonly outcome: "Found";
558
+ readonly users: ReadonlyArray<{
559
+ readonly organization_id: string;
560
+ readonly user_id: string;
561
+ readonly name: string;
562
+ readonly email: string;
563
+ readonly email_verified: boolean;
564
+ readonly image: string | null;
565
+ readonly created_at: {
566
+ readonly seconds: bigint;
567
+ readonly nanos: number;
568
+ };
569
+ readonly updated_at: {
570
+ readonly seconds: bigint;
571
+ readonly nanos: number;
572
+ };
573
+ readonly revision: bigint;
574
+ }>;
575
+ readonly total: {
576
+ readonly value: bigint;
577
+ };
578
+ }
579
+ export type AdminUsersStartsWithDescResult = AdminUsersStartsWithDescFound;
580
+ export declare function isAdminUsersStartsWithDescFound(value: AdminUsersStartsWithDescResult): value is AdminUsersStartsWithDescFound;
581
+ export declare function unwrapAdminUsersStartsWithDescFound(value: AdminUsersStartsWithDescResult | TypedQueryResult<AdminUsersStartsWithDescResult>): AdminUsersStartsWithDescFound;
582
+ export declare function adminUsersStartsWithDesc(parameters: AdminUsersStartsWithDescParams): NamedQueryRequest<AdminUsersStartsWithDescParams, AdminUsersStartsWithDescResult>;
583
+ export declare const FIND_ACCOUNT_BY_ID_QUERY_PLAN_HASH: "14a08df3dd8a74ea0a5622804bf0c2424086ee73eb10ce57d7df336a7d25f5ba";
584
+ export declare const FIND_ACCOUNT_BY_ID_SECRET_OUTPUTS: readonly [{
585
+ readonly query: "FindAccountById";
586
+ readonly entity: "Account";
587
+ readonly field: "access_token";
588
+ }, {
589
+ readonly query: "FindAccountById";
590
+ readonly entity: "Account";
591
+ readonly field: "refresh_token";
592
+ }, {
593
+ readonly query: "FindAccountById";
594
+ readonly entity: "Account";
595
+ readonly field: "id_token";
596
+ }, {
597
+ readonly query: "FindAccountById";
598
+ readonly entity: "Account";
599
+ readonly field: "password";
600
+ }];
601
+ export interface FindAccountByIdParams {
602
+ readonly organization_id: string;
603
+ readonly id: string;
604
+ }
605
+ export interface FindAccountByIdFound {
606
+ readonly outcome: "Found";
607
+ readonly accounts: ReadonlyArray<{
608
+ readonly id: string;
609
+ readonly user_id: string;
610
+ readonly account_id: string;
611
+ readonly provider_id: string;
612
+ readonly access_token: string | null;
613
+ readonly refresh_token: string | null;
614
+ readonly access_token_expires_at: {
615
+ readonly seconds: bigint;
616
+ readonly nanos: number;
617
+ } | null;
618
+ readonly refresh_token_expires_at: {
619
+ readonly seconds: bigint;
620
+ readonly nanos: number;
621
+ } | null;
622
+ readonly scope: string | null;
623
+ readonly id_token: string | null;
624
+ readonly password: string | null;
625
+ readonly created_at: {
626
+ readonly seconds: bigint;
627
+ readonly nanos: number;
628
+ };
629
+ readonly updated_at: {
630
+ readonly seconds: bigint;
631
+ readonly nanos: number;
632
+ };
633
+ readonly revision: bigint;
634
+ }>;
635
+ }
636
+ export type FindAccountByIdResult = FindAccountByIdFound;
637
+ export declare function isFindAccountByIdFound(value: FindAccountByIdResult): value is FindAccountByIdFound;
638
+ export declare function unwrapFindAccountByIdFound(value: FindAccountByIdResult | TypedQueryResult<FindAccountByIdResult>): FindAccountByIdFound;
639
+ export declare function redactFindAccountByIdResult(value: FindAccountByIdResult): {
640
+ readonly outcome: string;
641
+ readonly redactedSecretOutputs: typeof FIND_ACCOUNT_BY_ID_SECRET_OUTPUTS;
642
+ };
643
+ export declare function findAccountById(parameters: FindAccountByIdParams): NamedQueryRequest<FindAccountByIdParams, FindAccountByIdResult>;
644
+ export declare const FIND_ACCOUNT_BY_PROVIDER_QUERY_PLAN_HASH: "e6c4517a46d725780e79725ca3fdaba2208ef4b282d49f484121eee76c043831";
645
+ export declare const FIND_ACCOUNT_BY_PROVIDER_SECRET_OUTPUTS: readonly [{
646
+ readonly query: "FindAccountByProvider";
647
+ readonly entity: "Account";
648
+ readonly field: "access_token";
649
+ }, {
650
+ readonly query: "FindAccountByProvider";
651
+ readonly entity: "Account";
652
+ readonly field: "refresh_token";
653
+ }, {
654
+ readonly query: "FindAccountByProvider";
655
+ readonly entity: "Account";
656
+ readonly field: "id_token";
657
+ }, {
658
+ readonly query: "FindAccountByProvider";
659
+ readonly entity: "Account";
660
+ readonly field: "password";
661
+ }];
662
+ export interface FindAccountByProviderParams {
663
+ readonly organization_id: string;
664
+ readonly account_id: string;
665
+ readonly provider_id: string;
666
+ }
667
+ export interface FindAccountByProviderFound {
668
+ readonly outcome: "Found";
669
+ readonly accounts: ReadonlyArray<{
670
+ readonly id: string;
671
+ readonly user_id: string;
672
+ readonly account_id: string;
673
+ readonly provider_id: string;
674
+ readonly access_token: string | null;
675
+ readonly refresh_token: string | null;
676
+ readonly access_token_expires_at: {
677
+ readonly seconds: bigint;
678
+ readonly nanos: number;
679
+ } | null;
680
+ readonly refresh_token_expires_at: {
681
+ readonly seconds: bigint;
682
+ readonly nanos: number;
683
+ } | null;
684
+ readonly scope: string | null;
685
+ readonly id_token: string | null;
686
+ readonly password: string | null;
687
+ readonly created_at: {
688
+ readonly seconds: bigint;
689
+ readonly nanos: number;
690
+ };
691
+ readonly updated_at: {
692
+ readonly seconds: bigint;
693
+ readonly nanos: number;
694
+ };
695
+ readonly revision: bigint;
696
+ }>;
697
+ }
698
+ export type FindAccountByProviderResult = FindAccountByProviderFound;
699
+ export declare function isFindAccountByProviderFound(value: FindAccountByProviderResult): value is FindAccountByProviderFound;
700
+ export declare function unwrapFindAccountByProviderFound(value: FindAccountByProviderResult | TypedQueryResult<FindAccountByProviderResult>): FindAccountByProviderFound;
701
+ export declare function redactFindAccountByProviderResult(value: FindAccountByProviderResult): {
702
+ readonly outcome: string;
703
+ readonly redactedSecretOutputs: typeof FIND_ACCOUNT_BY_PROVIDER_SECRET_OUTPUTS;
704
+ };
705
+ export declare function findAccountByProvider(parameters: FindAccountByProviderParams): NamedQueryRequest<FindAccountByProviderParams, FindAccountByProviderResult>;
706
+ export declare const FIND_ACCOUNTS_BY_USER_ID_QUERY_PLAN_HASH: "ccdc524ca64ad667c209de25b4ce977f43b53ffdd8eb1b70fedf29fc99f27da6";
707
+ export declare const FIND_ACCOUNTS_BY_USER_ID_SECRET_OUTPUTS: readonly [{
708
+ readonly query: "FindAccountsByUserId";
709
+ readonly entity: "Account";
710
+ readonly field: "access_token";
711
+ }, {
712
+ readonly query: "FindAccountsByUserId";
713
+ readonly entity: "Account";
714
+ readonly field: "refresh_token";
715
+ }, {
716
+ readonly query: "FindAccountsByUserId";
717
+ readonly entity: "Account";
718
+ readonly field: "id_token";
719
+ }, {
720
+ readonly query: "FindAccountsByUserId";
721
+ readonly entity: "Account";
722
+ readonly field: "password";
723
+ }];
724
+ export interface FindAccountsByUserIdParams {
725
+ readonly organization_id: string;
726
+ readonly user_id: string;
727
+ readonly after?: string | null;
728
+ }
729
+ export interface FindAccountsByUserIdFound {
730
+ readonly outcome: "Found";
731
+ readonly accounts: ReadonlyArray<{
732
+ readonly id: string;
733
+ readonly user_id: string;
734
+ readonly account_id: string;
735
+ readonly provider_id: string;
736
+ readonly access_token: string | null;
737
+ readonly refresh_token: string | null;
738
+ readonly access_token_expires_at: {
739
+ readonly seconds: bigint;
740
+ readonly nanos: number;
741
+ } | null;
742
+ readonly refresh_token_expires_at: {
743
+ readonly seconds: bigint;
744
+ readonly nanos: number;
745
+ } | null;
746
+ readonly scope: string | null;
747
+ readonly id_token: string | null;
748
+ readonly password: string | null;
749
+ readonly created_at: {
750
+ readonly seconds: bigint;
751
+ readonly nanos: number;
752
+ };
753
+ readonly updated_at: {
754
+ readonly seconds: bigint;
755
+ readonly nanos: number;
756
+ };
757
+ readonly revision: bigint;
758
+ }>;
759
+ }
760
+ export type FindAccountsByUserIdResult = FindAccountsByUserIdFound;
761
+ export declare function isFindAccountsByUserIdFound(value: FindAccountsByUserIdResult): value is FindAccountsByUserIdFound;
762
+ export declare function unwrapFindAccountsByUserIdFound(value: FindAccountsByUserIdResult | TypedQueryResult<FindAccountsByUserIdResult>): FindAccountsByUserIdFound;
763
+ export declare function redactFindAccountsByUserIdResult(value: FindAccountsByUserIdResult): {
764
+ readonly outcome: string;
765
+ readonly redactedSecretOutputs: typeof FIND_ACCOUNTS_BY_USER_ID_SECRET_OUTPUTS;
766
+ };
767
+ export declare function findAccountsByUserId(parameters: FindAccountsByUserIdParams): NamedQueryRequest<FindAccountsByUserIdParams, FindAccountsByUserIdResult>;
768
+ export declare const FIND_ACCOUNTS_BY_USER_PROVIDER_QUERY_PLAN_HASH: "21d13b3c30b4a4059f3c436e290d11c20f0f1d1154e05fb48ae3dd0da882526d";
769
+ export declare const FIND_ACCOUNTS_BY_USER_PROVIDER_SECRET_OUTPUTS: readonly [{
770
+ readonly query: "FindAccountsByUserProvider";
771
+ readonly entity: "Account";
772
+ readonly field: "access_token";
773
+ }, {
774
+ readonly query: "FindAccountsByUserProvider";
775
+ readonly entity: "Account";
776
+ readonly field: "refresh_token";
777
+ }, {
778
+ readonly query: "FindAccountsByUserProvider";
779
+ readonly entity: "Account";
780
+ readonly field: "id_token";
781
+ }, {
782
+ readonly query: "FindAccountsByUserProvider";
783
+ readonly entity: "Account";
784
+ readonly field: "password";
785
+ }];
786
+ export interface FindAccountsByUserProviderParams {
787
+ readonly organization_id: string;
788
+ readonly user_id: string;
789
+ readonly provider_id: string;
790
+ readonly after?: string | null;
791
+ }
792
+ export interface FindAccountsByUserProviderFound {
793
+ readonly outcome: "Found";
794
+ readonly accounts: ReadonlyArray<{
795
+ readonly id: string;
796
+ readonly user_id: string;
797
+ readonly account_id: string;
798
+ readonly provider_id: string;
799
+ readonly access_token: string | null;
800
+ readonly refresh_token: string | null;
801
+ readonly access_token_expires_at: {
802
+ readonly seconds: bigint;
803
+ readonly nanos: number;
804
+ } | null;
805
+ readonly refresh_token_expires_at: {
806
+ readonly seconds: bigint;
807
+ readonly nanos: number;
808
+ } | null;
809
+ readonly scope: string | null;
810
+ readonly id_token: string | null;
811
+ readonly password: string | null;
812
+ readonly created_at: {
813
+ readonly seconds: bigint;
814
+ readonly nanos: number;
815
+ };
816
+ readonly updated_at: {
817
+ readonly seconds: bigint;
818
+ readonly nanos: number;
819
+ };
820
+ readonly revision: bigint;
821
+ }>;
822
+ }
823
+ export type FindAccountsByUserProviderResult = FindAccountsByUserProviderFound;
824
+ export declare function isFindAccountsByUserProviderFound(value: FindAccountsByUserProviderResult): value is FindAccountsByUserProviderFound;
825
+ export declare function unwrapFindAccountsByUserProviderFound(value: FindAccountsByUserProviderResult | TypedQueryResult<FindAccountsByUserProviderResult>): FindAccountsByUserProviderFound;
826
+ export declare function redactFindAccountsByUserProviderResult(value: FindAccountsByUserProviderResult): {
827
+ readonly outcome: string;
828
+ readonly redactedSecretOutputs: typeof FIND_ACCOUNTS_BY_USER_PROVIDER_SECRET_OUTPUTS;
829
+ };
830
+ export declare function findAccountsByUserProvider(parameters: FindAccountsByUserProviderParams): NamedQueryRequest<FindAccountsByUserProviderParams, FindAccountsByUserProviderResult>;
831
+ export declare const FIND_ACTIVE_SESSIONS_BY_USER_ID_QUERY_PLAN_HASH: "de1e5232a64a32057699b5ac21f1b43e69d755a3c143595f906fe63e16147264";
832
+ export declare const FIND_ACTIVE_SESSIONS_BY_USER_ID_SECRET_OUTPUTS: readonly [{
833
+ readonly query: "FindActiveSessionsByUserId";
834
+ readonly entity: "Session";
835
+ readonly field: "token";
836
+ }];
837
+ export interface FindActiveSessionsByUserIdParams {
838
+ readonly organization_id: string;
839
+ readonly user_id: string;
840
+ readonly expires_after: {
841
+ readonly seconds: bigint;
842
+ readonly nanos: number;
843
+ };
844
+ readonly after?: string | null;
845
+ }
846
+ export interface FindActiveSessionsByUserIdFound {
847
+ readonly outcome: "Found";
848
+ readonly sessions: ReadonlyArray<{
849
+ readonly id: string;
850
+ readonly user_id: string;
851
+ readonly token: string;
852
+ readonly expires_at: {
853
+ readonly seconds: bigint;
854
+ readonly nanos: number;
855
+ };
856
+ readonly ip_address: string | null;
857
+ readonly user_agent: string | null;
858
+ readonly created_at: {
859
+ readonly seconds: bigint;
860
+ readonly nanos: number;
861
+ };
862
+ readonly updated_at: {
863
+ readonly seconds: bigint;
864
+ readonly nanos: number;
865
+ };
866
+ readonly revision: bigint;
867
+ }>;
868
+ }
869
+ export type FindActiveSessionsByUserIdResult = FindActiveSessionsByUserIdFound;
870
+ export declare function isFindActiveSessionsByUserIdFound(value: FindActiveSessionsByUserIdResult): value is FindActiveSessionsByUserIdFound;
871
+ export declare function unwrapFindActiveSessionsByUserIdFound(value: FindActiveSessionsByUserIdResult | TypedQueryResult<FindActiveSessionsByUserIdResult>): FindActiveSessionsByUserIdFound;
872
+ export declare function redactFindActiveSessionsByUserIdResult(value: FindActiveSessionsByUserIdResult): {
873
+ readonly outcome: string;
874
+ readonly redactedSecretOutputs: typeof FIND_ACTIVE_SESSIONS_BY_USER_ID_SECRET_OUTPUTS;
875
+ };
876
+ export declare function findActiveSessionsByUserId(parameters: FindActiveSessionsByUserIdParams): NamedQueryRequest<FindActiveSessionsByUserIdParams, FindActiveSessionsByUserIdResult>;
877
+ export declare const FIND_CREDENTIAL_ACCOUNT_QUERY_PLAN_HASH: "f968271d103a76cc6b2a5496f5cceffe4cff5aa39d2a370379b518d8e7d90771";
878
+ export declare const FIND_CREDENTIAL_ACCOUNT_SECRET_OUTPUTS: readonly [{
879
+ readonly query: "FindCredentialAccount";
880
+ readonly entity: "Account";
881
+ readonly field: "access_token";
882
+ }, {
883
+ readonly query: "FindCredentialAccount";
884
+ readonly entity: "Account";
885
+ readonly field: "refresh_token";
886
+ }, {
887
+ readonly query: "FindCredentialAccount";
888
+ readonly entity: "Account";
889
+ readonly field: "id_token";
890
+ }, {
891
+ readonly query: "FindCredentialAccount";
892
+ readonly entity: "Account";
893
+ readonly field: "password";
894
+ }];
895
+ export interface FindCredentialAccountParams {
896
+ readonly organization_id: string;
897
+ readonly user_id: string;
898
+ readonly account_id: string;
899
+ readonly provider_id: string;
900
+ }
901
+ export interface FindCredentialAccountFound {
902
+ readonly outcome: "Found";
903
+ readonly accounts: ReadonlyArray<{
904
+ readonly organization_id: string;
905
+ readonly user_id: string;
906
+ readonly id: string;
907
+ readonly account_id: string;
908
+ readonly provider_id: string;
909
+ readonly access_token: string | null;
910
+ readonly refresh_token: string | null;
911
+ readonly id_token: string | null;
912
+ readonly password: string | null;
913
+ readonly access_token_expires_at: {
914
+ readonly seconds: bigint;
915
+ readonly nanos: number;
916
+ } | null;
917
+ readonly refresh_token_expires_at: {
918
+ readonly seconds: bigint;
919
+ readonly nanos: number;
920
+ } | null;
921
+ readonly scope: string | null;
922
+ readonly created_at: {
923
+ readonly seconds: bigint;
924
+ readonly nanos: number;
925
+ };
926
+ readonly updated_at: {
927
+ readonly seconds: bigint;
928
+ readonly nanos: number;
929
+ };
930
+ readonly revision: bigint;
931
+ }>;
932
+ }
933
+ export type FindCredentialAccountResult = FindCredentialAccountFound;
934
+ export declare function isFindCredentialAccountFound(value: FindCredentialAccountResult): value is FindCredentialAccountFound;
935
+ export declare function unwrapFindCredentialAccountFound(value: FindCredentialAccountResult | TypedQueryResult<FindCredentialAccountResult>): FindCredentialAccountFound;
936
+ export declare function redactFindCredentialAccountResult(value: FindCredentialAccountResult): {
937
+ readonly outcome: string;
938
+ readonly redactedSecretOutputs: typeof FIND_CREDENTIAL_ACCOUNT_SECRET_OUTPUTS;
939
+ };
940
+ export declare function findCredentialAccount(parameters: FindCredentialAccountParams): NamedQueryRequest<FindCredentialAccountParams, FindCredentialAccountResult>;
941
+ export declare const FIND_EXPIRED_VERIFICATION_IDS_QUERY_PLAN_HASH: "6c799850ba3b2eb3222aac85a76f40492c46de76870075b029f3b4ac897ed8b9";
942
+ export interface FindExpiredVerificationIdsParams {
943
+ readonly organization_id: string;
944
+ readonly expires_before: {
945
+ readonly seconds: bigint;
946
+ readonly nanos: number;
947
+ };
948
+ readonly after?: string | null;
949
+ }
950
+ export interface FindExpiredVerificationIdsFound {
951
+ readonly outcome: "Found";
952
+ readonly verifications: ReadonlyArray<{
953
+ readonly verification_id: string;
954
+ }>;
955
+ }
956
+ export type FindExpiredVerificationIdsResult = FindExpiredVerificationIdsFound;
957
+ export declare function isFindExpiredVerificationIdsFound(value: FindExpiredVerificationIdsResult): value is FindExpiredVerificationIdsFound;
958
+ export declare function unwrapFindExpiredVerificationIdsFound(value: FindExpiredVerificationIdsResult | TypedQueryResult<FindExpiredVerificationIdsResult>): FindExpiredVerificationIdsFound;
959
+ export declare function findExpiredVerificationIds(parameters: FindExpiredVerificationIdsParams): NamedQueryRequest<FindExpiredVerificationIdsParams, FindExpiredVerificationIdsResult>;
960
+ export declare const FIND_LATEST_VERIFICATION_QUERY_PLAN_HASH: "b3832c0a8a316d3fcbc62b388fbe09ceb6624b55482195f7642553467cba6fcb";
961
+ export declare const FIND_LATEST_VERIFICATION_SECRET_OUTPUTS: readonly [{
962
+ readonly query: "FindLatestVerification";
963
+ readonly entity: "Verification";
964
+ readonly field: "value";
965
+ }];
966
+ export interface FindLatestVerificationParams {
967
+ readonly organization_id: string;
968
+ readonly identifier: string;
969
+ }
970
+ export interface FindLatestVerificationFound {
971
+ readonly outcome: "Found";
972
+ readonly verifications: ReadonlyArray<{
973
+ readonly verification_id: string;
974
+ readonly identifier: string;
975
+ readonly value: string;
976
+ readonly expires_at: {
977
+ readonly seconds: bigint;
978
+ readonly nanos: number;
979
+ };
980
+ readonly created_at: {
981
+ readonly seconds: bigint;
982
+ readonly nanos: number;
983
+ };
984
+ readonly updated_at: {
985
+ readonly seconds: bigint;
986
+ readonly nanos: number;
987
+ };
988
+ readonly revision: bigint;
989
+ }>;
990
+ }
991
+ export type FindLatestVerificationResult = FindLatestVerificationFound;
992
+ export declare function isFindLatestVerificationFound(value: FindLatestVerificationResult): value is FindLatestVerificationFound;
993
+ export declare function unwrapFindLatestVerificationFound(value: FindLatestVerificationResult | TypedQueryResult<FindLatestVerificationResult>): FindLatestVerificationFound;
994
+ export declare function redactFindLatestVerificationResult(value: FindLatestVerificationResult): {
995
+ readonly outcome: string;
996
+ readonly redactedSecretOutputs: typeof FIND_LATEST_VERIFICATION_SECRET_OUTPUTS;
997
+ };
998
+ export declare function findLatestVerification(parameters: FindLatestVerificationParams): NamedQueryRequest<FindLatestVerificationParams, FindLatestVerificationResult>;
999
+ export declare const FIND_SESSION_BY_ID_QUERY_PLAN_HASH: "c92eb2035c0e3ca7dedbaa42a4e2efe7bc4786a65213394da7f5d3beb579a2a1";
1000
+ export declare const FIND_SESSION_BY_ID_SECRET_OUTPUTS: readonly [{
1001
+ readonly query: "FindSessionById";
1002
+ readonly entity: "Session";
1003
+ readonly field: "token";
1004
+ }];
1005
+ export interface FindSessionByIdParams {
1006
+ readonly organization_id: string;
1007
+ readonly id: string;
1008
+ }
1009
+ export interface FindSessionByIdFound {
1010
+ readonly outcome: "Found";
1011
+ readonly sessions: ReadonlyArray<{
1012
+ readonly id: string;
1013
+ readonly user_id: string;
1014
+ readonly token: string;
1015
+ readonly expires_at: {
1016
+ readonly seconds: bigint;
1017
+ readonly nanos: number;
1018
+ };
1019
+ readonly ip_address: string | null;
1020
+ readonly user_agent: string | null;
1021
+ readonly created_at: {
1022
+ readonly seconds: bigint;
1023
+ readonly nanos: number;
1024
+ };
1025
+ readonly updated_at: {
1026
+ readonly seconds: bigint;
1027
+ readonly nanos: number;
1028
+ };
1029
+ readonly revision: bigint;
1030
+ }>;
1031
+ }
1032
+ export type FindSessionByIdResult = FindSessionByIdFound;
1033
+ export declare function isFindSessionByIdFound(value: FindSessionByIdResult): value is FindSessionByIdFound;
1034
+ export declare function unwrapFindSessionByIdFound(value: FindSessionByIdResult | TypedQueryResult<FindSessionByIdResult>): FindSessionByIdFound;
1035
+ export declare function redactFindSessionByIdResult(value: FindSessionByIdResult): {
1036
+ readonly outcome: string;
1037
+ readonly redactedSecretOutputs: typeof FIND_SESSION_BY_ID_SECRET_OUTPUTS;
1038
+ };
1039
+ export declare function findSessionById(parameters: FindSessionByIdParams): NamedQueryRequest<FindSessionByIdParams, FindSessionByIdResult>;
1040
+ export declare const FIND_SESSION_BY_TOKEN_QUERY_PLAN_HASH: "a8a12334a3d34c30d54be828bdcc9b9b77223303c3f9681e4a602c92341876ec";
1041
+ export declare const FIND_SESSION_BY_TOKEN_SECRET_OUTPUTS: readonly [{
1042
+ readonly query: "FindSessionByToken";
1043
+ readonly entity: "Session";
1044
+ readonly field: "token";
1045
+ }];
1046
+ export interface FindSessionByTokenParams {
1047
+ readonly organization_id: string;
1048
+ readonly token: string;
1049
+ }
1050
+ export interface FindSessionByTokenFound {
1051
+ readonly outcome: "Found";
1052
+ readonly sessions: ReadonlyArray<{
1053
+ readonly id: string;
1054
+ readonly user_id: string;
1055
+ readonly token: string;
1056
+ readonly expires_at: {
1057
+ readonly seconds: bigint;
1058
+ readonly nanos: number;
1059
+ };
1060
+ readonly ip_address: string | null;
1061
+ readonly user_agent: string | null;
1062
+ readonly created_at: {
1063
+ readonly seconds: bigint;
1064
+ readonly nanos: number;
1065
+ };
1066
+ readonly updated_at: {
1067
+ readonly seconds: bigint;
1068
+ readonly nanos: number;
1069
+ };
1070
+ readonly revision: bigint;
1071
+ }>;
1072
+ }
1073
+ export type FindSessionByTokenResult = FindSessionByTokenFound;
1074
+ export declare function isFindSessionByTokenFound(value: FindSessionByTokenResult): value is FindSessionByTokenFound;
1075
+ export declare function unwrapFindSessionByTokenFound(value: FindSessionByTokenResult | TypedQueryResult<FindSessionByTokenResult>): FindSessionByTokenFound;
1076
+ export declare function redactFindSessionByTokenResult(value: FindSessionByTokenResult): {
1077
+ readonly outcome: string;
1078
+ readonly redactedSecretOutputs: typeof FIND_SESSION_BY_TOKEN_SECRET_OUTPUTS;
1079
+ };
1080
+ export declare function findSessionByToken(parameters: FindSessionByTokenParams): NamedQueryRequest<FindSessionByTokenParams, FindSessionByTokenResult>;
1081
+ export declare const FIND_SESSIONS_BY_TOKEN_SET_QUERY_PLAN_HASH: "7e23187b537599c4c2361d34ea866b5b719f63feda0135587b5ec6afd5ce62f6";
1082
+ export declare const FIND_SESSIONS_BY_TOKEN_SET_TOKENS_MAX_ITEMS: 32;
1083
+ export declare const FIND_SESSIONS_BY_TOKEN_SET_SECRET_OUTPUTS: readonly [{
1084
+ readonly query: "FindSessionsByTokenSet";
1085
+ readonly entity: "Session";
1086
+ readonly field: "token";
1087
+ }];
1088
+ export interface FindSessionsByTokenSetParams {
1089
+ readonly organization_id: string;
1090
+ readonly tokens: ReadonlyArray<string>;
1091
+ }
1092
+ export interface FindSessionsByTokenSetFound {
1093
+ readonly outcome: "Found";
1094
+ readonly sessions: ReadonlyArray<{
1095
+ readonly id: string;
1096
+ readonly user_id: string;
1097
+ readonly token: string;
1098
+ readonly expires_at: {
1099
+ readonly seconds: bigint;
1100
+ readonly nanos: number;
1101
+ };
1102
+ readonly ip_address: string | null;
1103
+ readonly user_agent: string | null;
1104
+ readonly created_at: {
1105
+ readonly seconds: bigint;
1106
+ readonly nanos: number;
1107
+ };
1108
+ readonly updated_at: {
1109
+ readonly seconds: bigint;
1110
+ readonly nanos: number;
1111
+ };
1112
+ readonly revision: bigint;
1113
+ }>;
1114
+ }
1115
+ export type FindSessionsByTokenSetResult = FindSessionsByTokenSetFound;
1116
+ export declare function isFindSessionsByTokenSetFound(value: FindSessionsByTokenSetResult): value is FindSessionsByTokenSetFound;
1117
+ export declare function unwrapFindSessionsByTokenSetFound(value: FindSessionsByTokenSetResult | TypedQueryResult<FindSessionsByTokenSetResult>): FindSessionsByTokenSetFound;
1118
+ export declare function redactFindSessionsByTokenSetResult(value: FindSessionsByTokenSetResult): {
1119
+ readonly outcome: string;
1120
+ readonly redactedSecretOutputs: typeof FIND_SESSIONS_BY_TOKEN_SET_SECRET_OUTPUTS;
1121
+ };
1122
+ export declare function findSessionsByTokenSet(parameters: FindSessionsByTokenSetParams): NamedQueryRequest<FindSessionsByTokenSetParams, FindSessionsByTokenSetResult>;
1123
+ export declare const FIND_SESSIONS_BY_USER_ID_QUERY_PLAN_HASH: "a3277546d8b0c0059b850c368ae4925000c255e69b7ff005f4b3d2ef61b504af";
1124
+ export declare const FIND_SESSIONS_BY_USER_ID_SECRET_OUTPUTS: readonly [{
1125
+ readonly query: "FindSessionsByUserId";
1126
+ readonly entity: "Session";
1127
+ readonly field: "token";
1128
+ }];
1129
+ export interface FindSessionsByUserIdParams {
1130
+ readonly organization_id: string;
1131
+ readonly user_id: string;
1132
+ readonly after?: string | null;
1133
+ }
1134
+ export interface FindSessionsByUserIdFound {
1135
+ readonly outcome: "Found";
1136
+ readonly sessions: ReadonlyArray<{
1137
+ readonly id: string;
1138
+ readonly user_id: string;
1139
+ readonly token: string;
1140
+ readonly expires_at: {
1141
+ readonly seconds: bigint;
1142
+ readonly nanos: number;
1143
+ };
1144
+ readonly ip_address: string | null;
1145
+ readonly user_agent: string | null;
1146
+ readonly created_at: {
1147
+ readonly seconds: bigint;
1148
+ readonly nanos: number;
1149
+ };
1150
+ readonly updated_at: {
1151
+ readonly seconds: bigint;
1152
+ readonly nanos: number;
1153
+ };
1154
+ readonly revision: bigint;
1155
+ }>;
1156
+ }
1157
+ export type FindSessionsByUserIdResult = FindSessionsByUserIdFound;
1158
+ export declare function isFindSessionsByUserIdFound(value: FindSessionsByUserIdResult): value is FindSessionsByUserIdFound;
1159
+ export declare function unwrapFindSessionsByUserIdFound(value: FindSessionsByUserIdResult | TypedQueryResult<FindSessionsByUserIdResult>): FindSessionsByUserIdFound;
1160
+ export declare function redactFindSessionsByUserIdResult(value: FindSessionsByUserIdResult): {
1161
+ readonly outcome: string;
1162
+ readonly redactedSecretOutputs: typeof FIND_SESSIONS_BY_USER_ID_SECRET_OUTPUTS;
1163
+ };
1164
+ export declare function findSessionsByUserId(parameters: FindSessionsByUserIdParams): NamedQueryRequest<FindSessionsByUserIdParams, FindSessionsByUserIdResult>;
1165
+ export declare const FIND_USER_BY_EMAIL_QUERY_PLAN_HASH: "b167b8cb2fb5ce19685491b47da4e816665b840e0f0e463666f6302134472b9a";
1166
+ export interface FindUserByEmailParams {
1167
+ readonly organization_id: string;
1168
+ readonly email: string;
1169
+ }
1170
+ export interface FindUserByEmailFound {
1171
+ readonly outcome: "Found";
1172
+ readonly users: ReadonlyArray<{
1173
+ readonly user_id: string;
1174
+ readonly name: string;
1175
+ readonly email: string;
1176
+ readonly email_verified: boolean;
1177
+ readonly image: string | null;
1178
+ readonly created_at: {
1179
+ readonly seconds: bigint;
1180
+ readonly nanos: number;
1181
+ };
1182
+ readonly updated_at: {
1183
+ readonly seconds: bigint;
1184
+ readonly nanos: number;
1185
+ };
1186
+ readonly revision: bigint;
1187
+ }>;
1188
+ }
1189
+ export type FindUserByEmailResult = FindUserByEmailFound;
1190
+ export declare function isFindUserByEmailFound(value: FindUserByEmailResult): value is FindUserByEmailFound;
1191
+ export declare function unwrapFindUserByEmailFound(value: FindUserByEmailResult | TypedQueryResult<FindUserByEmailResult>): FindUserByEmailFound;
1192
+ export declare function findUserByEmail(parameters: FindUserByEmailParams): NamedQueryRequest<FindUserByEmailParams, FindUserByEmailResult>;
1193
+ export declare const FIND_USER_BY_ID_QUERY_PLAN_HASH: "25d4a0a77d5df64ab6187528f9fac6b205a03c33e01c9ea6b573e8316b78b924";
1194
+ export interface FindUserByIdParams {
1195
+ readonly organization_id: string;
1196
+ readonly id: string;
1197
+ }
1198
+ export interface FindUserByIdFound {
1199
+ readonly outcome: "Found";
1200
+ readonly user: {
1201
+ readonly user_id: string;
1202
+ readonly name: string;
1203
+ readonly email: string;
1204
+ readonly email_verified: boolean;
1205
+ readonly image: string | null;
1206
+ readonly created_at: {
1207
+ readonly seconds: bigint;
1208
+ readonly nanos: number;
1209
+ };
1210
+ readonly updated_at: {
1211
+ readonly seconds: bigint;
1212
+ readonly nanos: number;
1213
+ };
1214
+ readonly revision: bigint;
1215
+ };
1216
+ }
1217
+ export interface FindUserByIdMissing {
1218
+ readonly outcome: "Missing";
1219
+ }
1220
+ export type FindUserByIdResult = FindUserByIdFound | FindUserByIdMissing;
1221
+ export declare function isFindUserByIdFound(value: FindUserByIdResult): value is FindUserByIdFound;
1222
+ export declare function isFindUserByIdMissing(value: FindUserByIdResult): value is FindUserByIdMissing;
1223
+ export declare function unwrapFindUserByIdFound(value: FindUserByIdResult | TypedQueryResult<FindUserByIdResult>): FindUserByIdFound;
1224
+ export declare function findUserById(parameters: FindUserByIdParams): NamedQueryRequest<FindUserByIdParams, FindUserByIdResult>;
1225
+ export declare const FIND_VERIFICATION_BY_ID_QUERY_PLAN_HASH: "54f07c7eba7d51857dd6473e39304dc798bf7084ca946dfa7f0203633a5133ac";
1226
+ export declare const FIND_VERIFICATION_BY_ID_SECRET_OUTPUTS: readonly [{
1227
+ readonly query: "FindVerificationById";
1228
+ readonly entity: "Verification";
1229
+ readonly field: "value";
1230
+ }];
1231
+ export interface FindVerificationByIdParams {
1232
+ readonly organization_id: string;
1233
+ readonly id: string;
1234
+ }
1235
+ export interface FindVerificationByIdFound {
1236
+ readonly outcome: "Found";
1237
+ readonly verification: {
1238
+ readonly verification_id: string;
1239
+ readonly identifier: string;
1240
+ readonly value: string;
1241
+ readonly expires_at: {
1242
+ readonly seconds: bigint;
1243
+ readonly nanos: number;
1244
+ };
1245
+ readonly created_at: {
1246
+ readonly seconds: bigint;
1247
+ readonly nanos: number;
1248
+ };
1249
+ readonly updated_at: {
1250
+ readonly seconds: bigint;
1251
+ readonly nanos: number;
1252
+ };
1253
+ readonly revision: bigint;
1254
+ };
1255
+ }
1256
+ export interface FindVerificationByIdMissing {
1257
+ readonly outcome: "Missing";
1258
+ }
1259
+ export type FindVerificationByIdResult = FindVerificationByIdFound | FindVerificationByIdMissing;
1260
+ export declare function isFindVerificationByIdFound(value: FindVerificationByIdResult): value is FindVerificationByIdFound;
1261
+ export declare function isFindVerificationByIdMissing(value: FindVerificationByIdResult): value is FindVerificationByIdMissing;
1262
+ export declare function unwrapFindVerificationByIdFound(value: FindVerificationByIdResult | TypedQueryResult<FindVerificationByIdResult>): FindVerificationByIdFound;
1263
+ export declare function redactFindVerificationByIdResult(value: FindVerificationByIdResult): {
1264
+ readonly outcome: string;
1265
+ readonly redactedSecretOutputs: typeof FIND_VERIFICATION_BY_ID_SECRET_OUTPUTS;
1266
+ };
1267
+ export declare function findVerificationById(parameters: FindVerificationByIdParams): NamedQueryRequest<FindVerificationByIdParams, FindVerificationByIdResult>;
1268
+ export declare const FIND_VERIFICATIONS_BY_IDENTIFIER_QUERY_PLAN_HASH: "4c768ae1d966454e9b791cd57a6311476947b5c457020943a50bc3cfee90765b";
1269
+ export declare const FIND_VERIFICATIONS_BY_IDENTIFIER_SECRET_OUTPUTS: readonly [{
1270
+ readonly query: "FindVerificationsByIdentifier";
1271
+ readonly entity: "Verification";
1272
+ readonly field: "value";
1273
+ }];
1274
+ export interface FindVerificationsByIdentifierParams {
1275
+ readonly organization_id: string;
1276
+ readonly identifier: string;
1277
+ readonly after?: string | null;
1278
+ }
1279
+ export interface FindVerificationsByIdentifierFound {
1280
+ readonly outcome: "Found";
1281
+ readonly verifications: ReadonlyArray<{
1282
+ readonly verification_id: string;
1283
+ readonly identifier: string;
1284
+ readonly value: string;
1285
+ readonly expires_at: {
1286
+ readonly seconds: bigint;
1287
+ readonly nanos: number;
1288
+ };
1289
+ readonly created_at: {
1290
+ readonly seconds: bigint;
1291
+ readonly nanos: number;
1292
+ };
1293
+ readonly updated_at: {
1294
+ readonly seconds: bigint;
1295
+ readonly nanos: number;
1296
+ };
1297
+ readonly revision: bigint;
1298
+ }>;
1299
+ }
1300
+ export type FindVerificationsByIdentifierResult = FindVerificationsByIdentifierFound;
1301
+ export declare function isFindVerificationsByIdentifierFound(value: FindVerificationsByIdentifierResult): value is FindVerificationsByIdentifierFound;
1302
+ export declare function unwrapFindVerificationsByIdentifierFound(value: FindVerificationsByIdentifierResult | TypedQueryResult<FindVerificationsByIdentifierResult>): FindVerificationsByIdentifierFound;
1303
+ export declare function redactFindVerificationsByIdentifierResult(value: FindVerificationsByIdentifierResult): {
1304
+ readonly outcome: string;
1305
+ readonly redactedSecretOutputs: typeof FIND_VERIFICATIONS_BY_IDENTIFIER_SECRET_OUTPUTS;
1306
+ };
1307
+ export declare function findVerificationsByIdentifier(parameters: FindVerificationsByIdentifierParams): NamedQueryRequest<FindVerificationsByIdentifierParams, FindVerificationsByIdentifierResult>;
1308
+ export interface ConsumeVerificationInput {
1309
+ readonly request_id: string;
1310
+ readonly organization_id: string;
1311
+ readonly verification_id: string;
1312
+ }
1313
+ export declare const CONSUME_VERIFICATION_SECRET_OUTPUTS: readonly [{
1314
+ readonly outcome: "VerificationConsumed";
1315
+ readonly field: "value";
1316
+ readonly entity: "Verification";
1317
+ readonly sourceField: "value";
1318
+ }];
1319
+ export type ConsumeVerificationOutcome = {
1320
+ readonly outcome: "VerificationConsumed";
1321
+ readonly value: string;
1322
+ readonly revision: bigint;
1323
+ readonly created_at: {
1324
+ readonly seconds: bigint;
1325
+ readonly nanos: number;
1326
+ };
1327
+ readonly expires_at: {
1328
+ readonly seconds: bigint;
1329
+ readonly nanos: number;
1330
+ };
1331
+ readonly identifier: string;
1332
+ readonly updated_at: {
1333
+ readonly seconds: bigint;
1334
+ readonly nanos: number;
1335
+ };
1336
+ readonly verification_id: string;
1337
+ } | {
1338
+ readonly outcome: "VerificationConsumeMissing";
1339
+ };
1340
+ export declare function isConsumeVerificationVerificationConsumed(value: ConsumeVerificationOutcome): value is Extract<ConsumeVerificationOutcome, {
1341
+ readonly outcome: "VerificationConsumed";
1342
+ }>;
1343
+ export declare function isConsumeVerificationVerificationConsumeMissing(value: ConsumeVerificationOutcome): value is Extract<ConsumeVerificationOutcome, {
1344
+ readonly outcome: "VerificationConsumeMissing";
1345
+ }>;
1346
+ export declare function redactConsumeVerificationOutcome(value: ConsumeVerificationOutcome): {
1347
+ readonly outcome: string;
1348
+ readonly redactedSecretOutputs: typeof CONSUME_VERIFICATION_SECRET_OUTPUTS;
1349
+ };
1350
+ export declare const CONSUME_VERIFICATION_PLAN_HASH: "22a3f3b01aeb537ae2b8b3f758aa19d8f8a6a58a0e284b3b347d1079972adef2";
1351
+ export declare function consumeVerification(input: ConsumeVerificationInput): CommandRequest<ConsumeVerificationInput, ConsumeVerificationOutcome>;
1352
+ export interface ConsumeVerificationSetInput {
1353
+ readonly request_id: string;
1354
+ readonly organization_id: string;
1355
+ readonly verification_ids: ReadonlyArray<string>;
1356
+ }
1357
+ export type ConsumeVerificationSetOutcome = {
1358
+ readonly outcome: "VerificationSetConsumed";
1359
+ } | {
1360
+ readonly outcome: "VerificationConsumeMissing";
1361
+ };
1362
+ export declare function isConsumeVerificationSetVerificationSetConsumed(value: ConsumeVerificationSetOutcome): value is Extract<ConsumeVerificationSetOutcome, {
1363
+ readonly outcome: "VerificationSetConsumed";
1364
+ }>;
1365
+ export declare function isConsumeVerificationSetVerificationConsumeMissing(value: ConsumeVerificationSetOutcome): value is Extract<ConsumeVerificationSetOutcome, {
1366
+ readonly outcome: "VerificationConsumeMissing";
1367
+ }>;
1368
+ export declare const CONSUME_VERIFICATION_SET_PLAN_HASH: "cc5e0d69851c61f11bbbca45ad00bec80b32687a94272379e133fbf854d59780";
1369
+ export declare function consumeVerificationSet(input: ConsumeVerificationSetInput): CommandRequest<ConsumeVerificationSetInput, ConsumeVerificationSetOutcome>;
1370
+ export interface ConsumeVerificationSnapshotInput {
1371
+ readonly request_id: string;
1372
+ readonly organization_id: string;
1373
+ readonly verification_id: string;
1374
+ readonly expected_revision: bigint;
1375
+ }
1376
+ export type ConsumeVerificationSnapshotOutcome = {
1377
+ readonly outcome: "VerificationConsumed";
1378
+ } | {
1379
+ readonly outcome: "VerificationConsumeStale";
1380
+ } | {
1381
+ readonly outcome: "VerificationConsumeMissing";
1382
+ };
1383
+ export declare function isConsumeVerificationSnapshotVerificationConsumed(value: ConsumeVerificationSnapshotOutcome): value is Extract<ConsumeVerificationSnapshotOutcome, {
1384
+ readonly outcome: "VerificationConsumed";
1385
+ }>;
1386
+ export declare function isConsumeVerificationSnapshotVerificationConsumeStale(value: ConsumeVerificationSnapshotOutcome): value is Extract<ConsumeVerificationSnapshotOutcome, {
1387
+ readonly outcome: "VerificationConsumeStale";
1388
+ }>;
1389
+ export declare function isConsumeVerificationSnapshotVerificationConsumeMissing(value: ConsumeVerificationSnapshotOutcome): value is Extract<ConsumeVerificationSnapshotOutcome, {
1390
+ readonly outcome: "VerificationConsumeMissing";
1391
+ }>;
1392
+ export declare const CONSUME_VERIFICATION_SNAPSHOT_PLAN_HASH: "1a80a36f34b4699c972fc1e6f48cad3f85da54e202831a6986aea084db09788b";
1393
+ export declare function consumeVerificationSnapshot(input: ConsumeVerificationSnapshotInput): CommandRequest<ConsumeVerificationSnapshotInput, ConsumeVerificationSnapshotOutcome>;
1394
+ export interface CreateAccountInput {
1395
+ readonly id: string;
1396
+ readonly scope: string | null;
1397
+ readonly user_id: string;
1398
+ readonly id_token: string | null;
1399
+ readonly password: string | null;
1400
+ readonly account_id: string;
1401
+ readonly created_at: {
1402
+ readonly seconds: bigint;
1403
+ readonly nanos: number;
1404
+ };
1405
+ readonly request_id: string;
1406
+ readonly updated_at: {
1407
+ readonly seconds: bigint;
1408
+ readonly nanos: number;
1409
+ };
1410
+ readonly provider_id: string;
1411
+ readonly access_token: string | null;
1412
+ readonly refresh_token: string | null;
1413
+ readonly organization_id: string;
1414
+ readonly access_token_expires_at: {
1415
+ readonly seconds: bigint;
1416
+ readonly nanos: number;
1417
+ } | null;
1418
+ readonly refresh_token_expires_at: {
1419
+ readonly seconds: bigint;
1420
+ readonly nanos: number;
1421
+ } | null;
1422
+ }
1423
+ export type CreateAccountOutcome = {
1424
+ readonly outcome: "AccountCreated";
1425
+ } | {
1426
+ readonly outcome: "AccountUserMissing";
1427
+ } | {
1428
+ readonly outcome: "AccountAlreadyExists";
1429
+ };
1430
+ export declare function isCreateAccountAccountCreated(value: CreateAccountOutcome): value is Extract<CreateAccountOutcome, {
1431
+ readonly outcome: "AccountCreated";
1432
+ }>;
1433
+ export declare function isCreateAccountAccountUserMissing(value: CreateAccountOutcome): value is Extract<CreateAccountOutcome, {
1434
+ readonly outcome: "AccountUserMissing";
1435
+ }>;
1436
+ export declare function isCreateAccountAccountAlreadyExists(value: CreateAccountOutcome): value is Extract<CreateAccountOutcome, {
1437
+ readonly outcome: "AccountAlreadyExists";
1438
+ }>;
1439
+ export declare const CREATE_ACCOUNT_PLAN_HASH: "53f2e7b330780eb514a299ceb673da4f1eeaea81beb45253267a52e41a7fd0b2";
1440
+ export declare function createAccount(input: CreateAccountInput): CommandRequest<CreateAccountInput, CreateAccountOutcome>;
1441
+ export interface CreateOAuthUserGraphInput {
1442
+ readonly scope: string | null;
1443
+ readonly user_id: string;
1444
+ readonly id_token: string | null;
1445
+ readonly password: string | null;
1446
+ readonly user_name: string;
1447
+ readonly account_id: string;
1448
+ readonly request_id: string;
1449
+ readonly user_email: string;
1450
+ readonly user_image: string | null;
1451
+ readonly provider_id: string;
1452
+ readonly access_token: string | null;
1453
+ readonly refresh_token: string | null;
1454
+ readonly organization_id: string;
1455
+ readonly user_created_at: {
1456
+ readonly seconds: bigint;
1457
+ readonly nanos: number;
1458
+ };
1459
+ readonly user_updated_at: {
1460
+ readonly seconds: bigint;
1461
+ readonly nanos: number;
1462
+ };
1463
+ readonly account_created_at: {
1464
+ readonly seconds: bigint;
1465
+ readonly nanos: number;
1466
+ };
1467
+ readonly account_updated_at: {
1468
+ readonly seconds: bigint;
1469
+ readonly nanos: number;
1470
+ };
1471
+ readonly external_account_id: string;
1472
+ readonly user_email_verified: boolean;
1473
+ readonly access_token_expires_at: {
1474
+ readonly seconds: bigint;
1475
+ readonly nanos: number;
1476
+ } | null;
1477
+ readonly refresh_token_expires_at: {
1478
+ readonly seconds: bigint;
1479
+ readonly nanos: number;
1480
+ } | null;
1481
+ }
1482
+ export type CreateOAuthUserGraphOutcome = {
1483
+ readonly outcome: "OAuthUserExists";
1484
+ } | {
1485
+ readonly outcome: "OAuthAccountExists";
1486
+ } | {
1487
+ readonly outcome: "OAuthUserGraphCreated";
1488
+ };
1489
+ export declare function isCreateOAuthUserGraphOAuthUserExists(value: CreateOAuthUserGraphOutcome): value is Extract<CreateOAuthUserGraphOutcome, {
1490
+ readonly outcome: "OAuthUserExists";
1491
+ }>;
1492
+ export declare function isCreateOAuthUserGraphOAuthAccountExists(value: CreateOAuthUserGraphOutcome): value is Extract<CreateOAuthUserGraphOutcome, {
1493
+ readonly outcome: "OAuthAccountExists";
1494
+ }>;
1495
+ export declare function isCreateOAuthUserGraphOAuthUserGraphCreated(value: CreateOAuthUserGraphOutcome): value is Extract<CreateOAuthUserGraphOutcome, {
1496
+ readonly outcome: "OAuthUserGraphCreated";
1497
+ }>;
1498
+ export declare const CREATE_O_AUTH_USER_GRAPH_PLAN_HASH: "a30c6faca9666ff17536e1f4ec35f0306e970430a064e0d72a66adccefad7407";
1499
+ export declare function createOAuthUserGraph(input: CreateOAuthUserGraphInput): CommandRequest<CreateOAuthUserGraphInput, CreateOAuthUserGraphOutcome>;
1500
+ export interface CreateSessionInput {
1501
+ readonly id: string;
1502
+ readonly token: string;
1503
+ readonly user_id: string;
1504
+ readonly created_at: {
1505
+ readonly seconds: bigint;
1506
+ readonly nanos: number;
1507
+ };
1508
+ readonly expires_at: {
1509
+ readonly seconds: bigint;
1510
+ readonly nanos: number;
1511
+ };
1512
+ readonly ip_address: string | null;
1513
+ readonly request_id: string;
1514
+ readonly updated_at: {
1515
+ readonly seconds: bigint;
1516
+ readonly nanos: number;
1517
+ };
1518
+ readonly user_agent: string | null;
1519
+ readonly organization_id: string;
1520
+ }
1521
+ export type CreateSessionOutcome = {
1522
+ readonly outcome: "SessionCreated";
1523
+ } | {
1524
+ readonly outcome: "SessionUserMissing";
1525
+ } | {
1526
+ readonly outcome: "SessionAlreadyExists";
1527
+ };
1528
+ export declare function isCreateSessionSessionCreated(value: CreateSessionOutcome): value is Extract<CreateSessionOutcome, {
1529
+ readonly outcome: "SessionCreated";
1530
+ }>;
1531
+ export declare function isCreateSessionSessionUserMissing(value: CreateSessionOutcome): value is Extract<CreateSessionOutcome, {
1532
+ readonly outcome: "SessionUserMissing";
1533
+ }>;
1534
+ export declare function isCreateSessionSessionAlreadyExists(value: CreateSessionOutcome): value is Extract<CreateSessionOutcome, {
1535
+ readonly outcome: "SessionAlreadyExists";
1536
+ }>;
1537
+ export declare const CREATE_SESSION_PLAN_HASH: "c5e41496adb0a45f87503008fa43da87c6c729674bb1f521625ff16183059050";
1538
+ export declare function createSession(input: CreateSessionInput): CommandRequest<CreateSessionInput, CreateSessionOutcome>;
1539
+ export interface CreateSignupGraphInput {
1540
+ readonly user_id: string;
1541
+ readonly user_name: string;
1542
+ readonly account_id: string;
1543
+ readonly request_id: string;
1544
+ readonly session_id: string;
1545
+ readonly user_email: string;
1546
+ readonly user_image: string | null;
1547
+ readonly provider_id: string;
1548
+ readonly session_token: string;
1549
+ readonly organization_id: string;
1550
+ readonly user_created_at: {
1551
+ readonly seconds: bigint;
1552
+ readonly nanos: number;
1553
+ };
1554
+ readonly user_updated_at: {
1555
+ readonly seconds: bigint;
1556
+ readonly nanos: number;
1557
+ };
1558
+ readonly account_password: string | null;
1559
+ readonly account_created_at: {
1560
+ readonly seconds: bigint;
1561
+ readonly nanos: number;
1562
+ };
1563
+ readonly account_updated_at: {
1564
+ readonly seconds: bigint;
1565
+ readonly nanos: number;
1566
+ };
1567
+ readonly session_created_at: {
1568
+ readonly seconds: bigint;
1569
+ readonly nanos: number;
1570
+ };
1571
+ readonly session_expires_at: {
1572
+ readonly seconds: bigint;
1573
+ readonly nanos: number;
1574
+ };
1575
+ readonly session_ip_address: string | null;
1576
+ readonly session_updated_at: {
1577
+ readonly seconds: bigint;
1578
+ readonly nanos: number;
1579
+ };
1580
+ readonly session_user_agent: string | null;
1581
+ readonly external_account_id: string;
1582
+ readonly user_email_verified: boolean;
1583
+ }
1584
+ export type CreateSignupGraphOutcome = {
1585
+ readonly outcome: "SignupUserExists";
1586
+ } | {
1587
+ readonly outcome: "SignupGraphCreated";
1588
+ } | {
1589
+ readonly outcome: "SignupAccountExists";
1590
+ } | {
1591
+ readonly outcome: "SignupSessionExists";
1592
+ };
1593
+ export declare function isCreateSignupGraphSignupUserExists(value: CreateSignupGraphOutcome): value is Extract<CreateSignupGraphOutcome, {
1594
+ readonly outcome: "SignupUserExists";
1595
+ }>;
1596
+ export declare function isCreateSignupGraphSignupGraphCreated(value: CreateSignupGraphOutcome): value is Extract<CreateSignupGraphOutcome, {
1597
+ readonly outcome: "SignupGraphCreated";
1598
+ }>;
1599
+ export declare function isCreateSignupGraphSignupAccountExists(value: CreateSignupGraphOutcome): value is Extract<CreateSignupGraphOutcome, {
1600
+ readonly outcome: "SignupAccountExists";
1601
+ }>;
1602
+ export declare function isCreateSignupGraphSignupSessionExists(value: CreateSignupGraphOutcome): value is Extract<CreateSignupGraphOutcome, {
1603
+ readonly outcome: "SignupSessionExists";
1604
+ }>;
1605
+ export declare const CREATE_SIGNUP_GRAPH_PLAN_HASH: "01e4e118b1cc5c3a16c19259284cd0845e8a2e405fc02f81ab9b1fcafc79d0b8";
1606
+ export declare function createSignupGraph(input: CreateSignupGraphInput): CommandRequest<CreateSignupGraphInput, CreateSignupGraphOutcome>;
1607
+ export interface CreateUserInput {
1608
+ readonly id: string;
1609
+ readonly name: string;
1610
+ readonly email: string;
1611
+ readonly image: string | null;
1612
+ readonly created_at: {
1613
+ readonly seconds: bigint;
1614
+ readonly nanos: number;
1615
+ };
1616
+ readonly request_id: string;
1617
+ readonly updated_at: {
1618
+ readonly seconds: bigint;
1619
+ readonly nanos: number;
1620
+ };
1621
+ readonly email_verified: boolean;
1622
+ readonly organization_id: string;
1623
+ }
1624
+ export type CreateUserOutcome = {
1625
+ readonly outcome: "UserCreated";
1626
+ } | {
1627
+ readonly outcome: "UserAlreadyExists";
1628
+ };
1629
+ export declare function isCreateUserUserCreated(value: CreateUserOutcome): value is Extract<CreateUserOutcome, {
1630
+ readonly outcome: "UserCreated";
1631
+ }>;
1632
+ export declare function isCreateUserUserAlreadyExists(value: CreateUserOutcome): value is Extract<CreateUserOutcome, {
1633
+ readonly outcome: "UserAlreadyExists";
1634
+ }>;
1635
+ export declare const CREATE_USER_PLAN_HASH: "752d7d404aa418b5c1a08065ce9a8efbb28ab2b62f18969c98a13a06092fd8b3";
1636
+ export declare function createUser(input: CreateUserInput): CommandRequest<CreateUserInput, CreateUserOutcome>;
1637
+ export interface CreateVerificationInput {
1638
+ readonly id: string;
1639
+ readonly value: string;
1640
+ readonly created_at: {
1641
+ readonly seconds: bigint;
1642
+ readonly nanos: number;
1643
+ };
1644
+ readonly expires_at: {
1645
+ readonly seconds: bigint;
1646
+ readonly nanos: number;
1647
+ };
1648
+ readonly identifier: string;
1649
+ readonly request_id: string;
1650
+ readonly updated_at: {
1651
+ readonly seconds: bigint;
1652
+ readonly nanos: number;
1653
+ };
1654
+ readonly organization_id: string;
1655
+ }
1656
+ export type CreateVerificationOutcome = {
1657
+ readonly outcome: "VerificationCreated";
1658
+ } | {
1659
+ readonly outcome: "VerificationAlreadyExists";
1660
+ };
1661
+ export declare function isCreateVerificationVerificationCreated(value: CreateVerificationOutcome): value is Extract<CreateVerificationOutcome, {
1662
+ readonly outcome: "VerificationCreated";
1663
+ }>;
1664
+ export declare function isCreateVerificationVerificationAlreadyExists(value: CreateVerificationOutcome): value is Extract<CreateVerificationOutcome, {
1665
+ readonly outcome: "VerificationAlreadyExists";
1666
+ }>;
1667
+ export declare const CREATE_VERIFICATION_PLAN_HASH: "82bce005457b1fcf1d069a69304f7bf4e2eeb7d2718d5289dc9d25e197309e35";
1668
+ export declare function createVerification(input: CreateVerificationInput): CommandRequest<CreateVerificationInput, CreateVerificationOutcome>;
1669
+ export interface DeleteAccountInput {
1670
+ readonly user_id: string;
1671
+ readonly request_id: string;
1672
+ readonly account_ids: ReadonlyArray<string>;
1673
+ readonly organization_id: string;
1674
+ }
1675
+ export type DeleteAccountOutcome = {
1676
+ readonly outcome: "AccountDeleted";
1677
+ } | {
1678
+ readonly outcome: "AccountMissing";
1679
+ };
1680
+ export declare function isDeleteAccountAccountDeleted(value: DeleteAccountOutcome): value is Extract<DeleteAccountOutcome, {
1681
+ readonly outcome: "AccountDeleted";
1682
+ }>;
1683
+ export declare function isDeleteAccountAccountMissing(value: DeleteAccountOutcome): value is Extract<DeleteAccountOutcome, {
1684
+ readonly outcome: "AccountMissing";
1685
+ }>;
1686
+ export declare const DELETE_ACCOUNT_PLAN_HASH: "6429ebe6e70797c57c44a4738c8a511bbe5304e5bf58148dfc0c2721ffaff382";
1687
+ export declare function deleteAccount(input: DeleteAccountInput): CommandRequest<DeleteAccountInput, DeleteAccountOutcome>;
1688
+ export interface DeleteSessionInput {
1689
+ readonly user_id: string;
1690
+ readonly request_id: string;
1691
+ readonly session_ids: ReadonlyArray<string>;
1692
+ readonly organization_id: string;
1693
+ }
1694
+ export type DeleteSessionOutcome = {
1695
+ readonly outcome: "SessionDeleted";
1696
+ } | {
1697
+ readonly outcome: "SessionMissing";
1698
+ };
1699
+ export declare function isDeleteSessionSessionDeleted(value: DeleteSessionOutcome): value is Extract<DeleteSessionOutcome, {
1700
+ readonly outcome: "SessionDeleted";
1701
+ }>;
1702
+ export declare function isDeleteSessionSessionMissing(value: DeleteSessionOutcome): value is Extract<DeleteSessionOutcome, {
1703
+ readonly outcome: "SessionMissing";
1704
+ }>;
1705
+ export declare const DELETE_SESSION_PLAN_HASH: "a3901beb6c2d2754fd3d2c64252b6f5059cd1792c0a0560741c94da4668a0524";
1706
+ export declare function deleteSession(input: DeleteSessionInput): CommandRequest<DeleteSessionInput, DeleteSessionOutcome>;
1707
+ export interface DeleteUserInput {
1708
+ readonly user_ids: ReadonlyArray<string>;
1709
+ readonly request_id: string;
1710
+ readonly organization_id: string;
1711
+ }
1712
+ export type DeleteUserOutcome = {
1713
+ readonly outcome: "UserDeleted";
1714
+ } | {
1715
+ readonly outcome: "DeleteUserMissing";
1716
+ } | {
1717
+ readonly outcome: "DeleteUserCascadeLimitExceeded";
1718
+ };
1719
+ export declare function isDeleteUserUserDeleted(value: DeleteUserOutcome): value is Extract<DeleteUserOutcome, {
1720
+ readonly outcome: "UserDeleted";
1721
+ }>;
1722
+ export declare function isDeleteUserDeleteUserMissing(value: DeleteUserOutcome): value is Extract<DeleteUserOutcome, {
1723
+ readonly outcome: "DeleteUserMissing";
1724
+ }>;
1725
+ export declare function isDeleteUserDeleteUserCascadeLimitExceeded(value: DeleteUserOutcome): value is Extract<DeleteUserOutcome, {
1726
+ readonly outcome: "DeleteUserCascadeLimitExceeded";
1727
+ }>;
1728
+ export declare const DELETE_USER_PLAN_HASH: "f7195857c4f50a68b37ee0f8516c27dd03b08d5cd5ba45f53d9f9345d2f90985";
1729
+ export declare function deleteUser(input: DeleteUserInput): CommandRequest<DeleteUserInput, DeleteUserOutcome>;
1730
+ export interface DeleteVerificationInput {
1731
+ readonly request_id: string;
1732
+ readonly organization_id: string;
1733
+ readonly verification_ids: ReadonlyArray<string>;
1734
+ }
1735
+ export type DeleteVerificationOutcome = {
1736
+ readonly outcome: "VerificationDeleted";
1737
+ } | {
1738
+ readonly outcome: "VerificationMissing";
1739
+ };
1740
+ export declare function isDeleteVerificationVerificationDeleted(value: DeleteVerificationOutcome): value is Extract<DeleteVerificationOutcome, {
1741
+ readonly outcome: "VerificationDeleted";
1742
+ }>;
1743
+ export declare function isDeleteVerificationVerificationMissing(value: DeleteVerificationOutcome): value is Extract<DeleteVerificationOutcome, {
1744
+ readonly outcome: "VerificationMissing";
1745
+ }>;
1746
+ export declare const DELETE_VERIFICATION_PLAN_HASH: "bffc0c5ef5ad2b602954492d043e833785ec3f9d6f0520fbc0f933422544ae6a";
1747
+ export declare function deleteVerification(input: DeleteVerificationInput): CommandRequest<DeleteVerificationInput, DeleteVerificationOutcome>;
1748
+ export interface ResetCredentialPasswordInput {
1749
+ readonly user_id: string;
1750
+ readonly password: string;
1751
+ readonly account_id: string;
1752
+ readonly request_id: string;
1753
+ readonly updated_at: {
1754
+ readonly seconds: bigint;
1755
+ readonly nanos: number;
1756
+ };
1757
+ readonly organization_id: string;
1758
+ readonly account_revision: bigint;
1759
+ readonly verification_ids: ReadonlyArray<string>;
1760
+ readonly external_account_id: string;
1761
+ readonly verification_revision: bigint;
1762
+ }
1763
+ export type ResetCredentialPasswordOutcome = {
1764
+ readonly outcome: "PasswordAccountStale";
1765
+ } | {
1766
+ readonly outcome: "PasswordAccountMissing";
1767
+ } | {
1768
+ readonly outcome: "CredentialPasswordReset";
1769
+ } | {
1770
+ readonly outcome: "PasswordProviderMismatch";
1771
+ } | {
1772
+ readonly outcome: "VerificationConsumeStale";
1773
+ } | {
1774
+ readonly outcome: "VerificationConsumeMissing";
1775
+ };
1776
+ export declare function isResetCredentialPasswordPasswordAccountStale(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
1777
+ readonly outcome: "PasswordAccountStale";
1778
+ }>;
1779
+ export declare function isResetCredentialPasswordPasswordAccountMissing(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
1780
+ readonly outcome: "PasswordAccountMissing";
1781
+ }>;
1782
+ export declare function isResetCredentialPasswordCredentialPasswordReset(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
1783
+ readonly outcome: "CredentialPasswordReset";
1784
+ }>;
1785
+ export declare function isResetCredentialPasswordPasswordProviderMismatch(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
1786
+ readonly outcome: "PasswordProviderMismatch";
1787
+ }>;
1788
+ export declare function isResetCredentialPasswordVerificationConsumeStale(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
1789
+ readonly outcome: "VerificationConsumeStale";
1790
+ }>;
1791
+ export declare function isResetCredentialPasswordVerificationConsumeMissing(value: ResetCredentialPasswordOutcome): value is Extract<ResetCredentialPasswordOutcome, {
1792
+ readonly outcome: "VerificationConsumeMissing";
1793
+ }>;
1794
+ export declare const RESET_CREDENTIAL_PASSWORD_PLAN_HASH: "ed87f267831fb0823b0e9bbf51d7b302a715a95c0cea69faf7922c0e4e7f375e";
1795
+ export declare function resetCredentialPassword(input: ResetCredentialPasswordInput): CommandRequest<ResetCredentialPasswordInput, ResetCredentialPasswordOutcome>;
1796
+ export interface UpdateAccountInput {
1797
+ readonly scope: string | null;
1798
+ readonly user_id: string;
1799
+ readonly id_token: string | null;
1800
+ readonly password: string | null;
1801
+ readonly account_id: string;
1802
+ readonly request_id: string;
1803
+ readonly updated_at: {
1804
+ readonly seconds: bigint;
1805
+ readonly nanos: number;
1806
+ };
1807
+ readonly provider_id: string;
1808
+ readonly access_token: string | null;
1809
+ readonly refresh_token: string | null;
1810
+ readonly organization_id: string;
1811
+ readonly expected_revision: bigint;
1812
+ readonly external_account_id: string;
1813
+ readonly access_token_expires_at: {
1814
+ readonly seconds: bigint;
1815
+ readonly nanos: number;
1816
+ } | null;
1817
+ readonly refresh_token_expires_at: {
1818
+ readonly seconds: bigint;
1819
+ readonly nanos: number;
1820
+ } | null;
1821
+ }
1822
+ export type UpdateAccountOutcome = {
1823
+ readonly outcome: "AccountUpdated";
1824
+ } | {
1825
+ readonly outcome: "AccountUpdateStale";
1826
+ } | {
1827
+ readonly outcome: "AccountUpdateMissing";
1828
+ };
1829
+ export declare function isUpdateAccountAccountUpdated(value: UpdateAccountOutcome): value is Extract<UpdateAccountOutcome, {
1830
+ readonly outcome: "AccountUpdated";
1831
+ }>;
1832
+ export declare function isUpdateAccountAccountUpdateStale(value: UpdateAccountOutcome): value is Extract<UpdateAccountOutcome, {
1833
+ readonly outcome: "AccountUpdateStale";
1834
+ }>;
1835
+ export declare function isUpdateAccountAccountUpdateMissing(value: UpdateAccountOutcome): value is Extract<UpdateAccountOutcome, {
1836
+ readonly outcome: "AccountUpdateMissing";
1837
+ }>;
1838
+ export declare const UPDATE_ACCOUNT_PLAN_HASH: "1556cd92effd135225904f0313f1cdf146ebe82f72621ebeccb2686c5442b849";
1839
+ export declare function updateAccount(input: UpdateAccountInput): CommandRequest<UpdateAccountInput, UpdateAccountOutcome>;
1840
+ export interface UpdateAccountPasswordsInput {
1841
+ readonly updates: ReadonlyArray<{
1842
+ readonly user_id: string;
1843
+ readonly password: string | null;
1844
+ readonly account_id: string;
1845
+ readonly updated_at: {
1846
+ readonly seconds: bigint;
1847
+ readonly nanos: number;
1848
+ };
1849
+ readonly provider_id: string;
1850
+ readonly organization_id: string;
1851
+ readonly expected_revision: bigint;
1852
+ }>;
1853
+ readonly user_id: string;
1854
+ readonly request_id: string;
1855
+ readonly organization_id: string;
1856
+ }
1857
+ export type UpdateAccountPasswordsOutcome = {
1858
+ readonly outcome: "PasswordAccountStale";
1859
+ } | {
1860
+ readonly outcome: "PasswordAccountMissing";
1861
+ } | {
1862
+ readonly outcome: "AccountPasswordsUpdated";
1863
+ } | {
1864
+ readonly outcome: "PasswordProviderMismatch";
1865
+ };
1866
+ export declare function isUpdateAccountPasswordsPasswordAccountStale(value: UpdateAccountPasswordsOutcome): value is Extract<UpdateAccountPasswordsOutcome, {
1867
+ readonly outcome: "PasswordAccountStale";
1868
+ }>;
1869
+ export declare function isUpdateAccountPasswordsPasswordAccountMissing(value: UpdateAccountPasswordsOutcome): value is Extract<UpdateAccountPasswordsOutcome, {
1870
+ readonly outcome: "PasswordAccountMissing";
1871
+ }>;
1872
+ export declare function isUpdateAccountPasswordsAccountPasswordsUpdated(value: UpdateAccountPasswordsOutcome): value is Extract<UpdateAccountPasswordsOutcome, {
1873
+ readonly outcome: "AccountPasswordsUpdated";
1874
+ }>;
1875
+ export declare function isUpdateAccountPasswordsPasswordProviderMismatch(value: UpdateAccountPasswordsOutcome): value is Extract<UpdateAccountPasswordsOutcome, {
1876
+ readonly outcome: "PasswordProviderMismatch";
1877
+ }>;
1878
+ export declare const UPDATE_ACCOUNT_PASSWORDS_PLAN_HASH: "5f18c741b5e9c09203c67b5985af9d034fad670462ecdda32a0a1f031ef288f6";
1879
+ export declare function updateAccountPasswords(input: UpdateAccountPasswordsInput): CommandRequest<UpdateAccountPasswordsInput, UpdateAccountPasswordsOutcome>;
1880
+ export interface UpdateCredentialPasswordInput {
1881
+ readonly user_id: string;
1882
+ readonly password: string;
1883
+ readonly account_id: string;
1884
+ readonly request_id: string;
1885
+ readonly updated_at: {
1886
+ readonly seconds: bigint;
1887
+ readonly nanos: number;
1888
+ };
1889
+ readonly organization_id: string;
1890
+ readonly expected_revision: bigint;
1891
+ readonly external_account_id: string;
1892
+ }
1893
+ export type UpdateCredentialPasswordOutcome = {
1894
+ readonly outcome: "PasswordAccountStale";
1895
+ } | {
1896
+ readonly outcome: "PasswordAccountMissing";
1897
+ } | {
1898
+ readonly outcome: "PasswordProviderMismatch";
1899
+ } | {
1900
+ readonly outcome: "CredentialPasswordUpdated";
1901
+ };
1902
+ export declare function isUpdateCredentialPasswordPasswordAccountStale(value: UpdateCredentialPasswordOutcome): value is Extract<UpdateCredentialPasswordOutcome, {
1903
+ readonly outcome: "PasswordAccountStale";
1904
+ }>;
1905
+ export declare function isUpdateCredentialPasswordPasswordAccountMissing(value: UpdateCredentialPasswordOutcome): value is Extract<UpdateCredentialPasswordOutcome, {
1906
+ readonly outcome: "PasswordAccountMissing";
1907
+ }>;
1908
+ export declare function isUpdateCredentialPasswordPasswordProviderMismatch(value: UpdateCredentialPasswordOutcome): value is Extract<UpdateCredentialPasswordOutcome, {
1909
+ readonly outcome: "PasswordProviderMismatch";
1910
+ }>;
1911
+ export declare function isUpdateCredentialPasswordCredentialPasswordUpdated(value: UpdateCredentialPasswordOutcome): value is Extract<UpdateCredentialPasswordOutcome, {
1912
+ readonly outcome: "CredentialPasswordUpdated";
1913
+ }>;
1914
+ export declare const UPDATE_CREDENTIAL_PASSWORD_PLAN_HASH: "08781a68739c705ab6ffe51a0de547605e1a7dd2fd2b8075445d40db923d1f15";
1915
+ export declare function updateCredentialPassword(input: UpdateCredentialPasswordInput): CommandRequest<UpdateCredentialPasswordInput, UpdateCredentialPasswordOutcome>;
1916
+ export interface UpdateSessionInput {
1917
+ readonly user_id: string;
1918
+ readonly expires_at: {
1919
+ readonly seconds: bigint;
1920
+ readonly nanos: number;
1921
+ };
1922
+ readonly ip_address: string | null;
1923
+ readonly request_id: string;
1924
+ readonly session_id: string;
1925
+ readonly updated_at: {
1926
+ readonly seconds: bigint;
1927
+ readonly nanos: number;
1928
+ };
1929
+ readonly user_agent: string | null;
1930
+ readonly organization_id: string;
1931
+ readonly expected_revision: bigint;
1932
+ }
1933
+ export type UpdateSessionOutcome = {
1934
+ readonly outcome: "SessionUpdated";
1935
+ } | {
1936
+ readonly outcome: "SessionUpdateStale";
1937
+ } | {
1938
+ readonly outcome: "SessionUpdateMissing";
1939
+ };
1940
+ export declare function isUpdateSessionSessionUpdated(value: UpdateSessionOutcome): value is Extract<UpdateSessionOutcome, {
1941
+ readonly outcome: "SessionUpdated";
1942
+ }>;
1943
+ export declare function isUpdateSessionSessionUpdateStale(value: UpdateSessionOutcome): value is Extract<UpdateSessionOutcome, {
1944
+ readonly outcome: "SessionUpdateStale";
1945
+ }>;
1946
+ export declare function isUpdateSessionSessionUpdateMissing(value: UpdateSessionOutcome): value is Extract<UpdateSessionOutcome, {
1947
+ readonly outcome: "SessionUpdateMissing";
1948
+ }>;
1949
+ export declare const UPDATE_SESSION_PLAN_HASH: "4c1184c5c0a1f8b8935a8b96204ad839afe84e1752f2ba24cdf63feef4f7ce3a";
1950
+ export declare function updateSession(input: UpdateSessionInput): CommandRequest<UpdateSessionInput, UpdateSessionOutcome>;
1951
+ export interface UpdateUserInput {
1952
+ readonly name: string;
1953
+ readonly email: string;
1954
+ readonly image: string | null;
1955
+ readonly user_id: string;
1956
+ readonly request_id: string;
1957
+ readonly updated_at: {
1958
+ readonly seconds: bigint;
1959
+ readonly nanos: number;
1960
+ };
1961
+ readonly email_verified: boolean;
1962
+ readonly organization_id: string;
1963
+ readonly expected_revision: bigint;
1964
+ }
1965
+ export type UpdateUserOutcome = {
1966
+ readonly outcome: "UserUpdated";
1967
+ } | {
1968
+ readonly outcome: "UserUpdateStale";
1969
+ } | {
1970
+ readonly outcome: "UserUpdateMissing";
1971
+ };
1972
+ export declare function isUpdateUserUserUpdated(value: UpdateUserOutcome): value is Extract<UpdateUserOutcome, {
1973
+ readonly outcome: "UserUpdated";
1974
+ }>;
1975
+ export declare function isUpdateUserUserUpdateStale(value: UpdateUserOutcome): value is Extract<UpdateUserOutcome, {
1976
+ readonly outcome: "UserUpdateStale";
1977
+ }>;
1978
+ export declare function isUpdateUserUserUpdateMissing(value: UpdateUserOutcome): value is Extract<UpdateUserOutcome, {
1979
+ readonly outcome: "UserUpdateMissing";
1980
+ }>;
1981
+ export declare const UPDATE_USER_PLAN_HASH: "cd0d3c8108976d4b2413f41fd68791b3e9276a763787f40b82bef17219091194";
1982
+ export declare function updateUser(input: UpdateUserInput): CommandRequest<UpdateUserInput, UpdateUserOutcome>;
1983
+ export interface UpdateVerificationInput {
1984
+ readonly value: string;
1985
+ readonly expires_at: {
1986
+ readonly seconds: bigint;
1987
+ readonly nanos: number;
1988
+ };
1989
+ readonly request_id: string;
1990
+ readonly updated_at: {
1991
+ readonly seconds: bigint;
1992
+ readonly nanos: number;
1993
+ };
1994
+ readonly organization_id: string;
1995
+ readonly verification_id: string;
1996
+ readonly expected_revision: bigint;
1997
+ }
1998
+ export type UpdateVerificationOutcome = {
1999
+ readonly outcome: "VerificationUpdated";
2000
+ } | {
2001
+ readonly outcome: "VerificationUpdateStale";
2002
+ } | {
2003
+ readonly outcome: "VerificationUpdateMissing";
2004
+ };
2005
+ export declare function isUpdateVerificationVerificationUpdated(value: UpdateVerificationOutcome): value is Extract<UpdateVerificationOutcome, {
2006
+ readonly outcome: "VerificationUpdated";
2007
+ }>;
2008
+ export declare function isUpdateVerificationVerificationUpdateStale(value: UpdateVerificationOutcome): value is Extract<UpdateVerificationOutcome, {
2009
+ readonly outcome: "VerificationUpdateStale";
2010
+ }>;
2011
+ export declare function isUpdateVerificationVerificationUpdateMissing(value: UpdateVerificationOutcome): value is Extract<UpdateVerificationOutcome, {
2012
+ readonly outcome: "VerificationUpdateMissing";
2013
+ }>;
2014
+ export declare const UPDATE_VERIFICATION_PLAN_HASH: "b9ea963db584e7fd9dbce1069d982dc0f53ebb06b72b41b060578b284596018f";
2015
+ export declare function updateVerification(input: UpdateVerificationInput): CommandRequest<UpdateVerificationInput, UpdateVerificationOutcome>;
2016
+ export declare class RiffDBBetterAuthCoreClient {
2017
+ private readonly transport;
2018
+ private readonly commandAttemptBudget;
2019
+ private readonly trackCausalWrites;
2020
+ private lastCommitSeq;
2021
+ constructor(transport: ApplicationTransport, commandAttemptBudget?: number, defaultReadAfterCommit?: bigint, trackCausalWrites?: boolean);
2022
+ static fromTransport(transport: ApplicationTransport, commandAttemptBudget?: number): RiffDBBetterAuthCoreClient;
2023
+ static driverIdentity(role: string, database?: string): ContractDriverIdentity;
2024
+ static connect(driver: {
2025
+ connect(config: {
2026
+ readonly socketPath: string;
2027
+ readonly identity: ContractDriverIdentity;
2028
+ }): Promise<ApplicationTransport>;
2029
+ } | ((config: {
2030
+ readonly socketPath: string;
2031
+ readonly identity: ContractDriverIdentity;
2032
+ }) => Promise<ApplicationTransport>), options: {
2033
+ readonly socketPath: string;
2034
+ readonly role: string;
2035
+ readonly database?: string;
2036
+ readonly commandAttemptBudget?: number;
2037
+ }): Promise<RiffDBBetterAuthCoreClient>;
2038
+ static connectFromEnv(driver: {
2039
+ connectFromEnv(options: {
2040
+ readonly socketPath?: string;
2041
+ readonly role?: string;
2042
+ readonly database?: string;
2043
+ readonly tenant?: string;
2044
+ readonly prefix?: string;
2045
+ readonly envPrefix?: string;
2046
+ readonly identity: typeof CONTRACT_DRIVER_IDENTITY;
2047
+ }): Promise<ApplicationTransport>;
2048
+ } | ((options: {
2049
+ readonly socketPath?: string;
2050
+ readonly role?: string;
2051
+ readonly database?: string;
2052
+ readonly tenant?: string;
2053
+ readonly prefix?: string;
2054
+ readonly envPrefix?: string;
2055
+ readonly identity: typeof CONTRACT_DRIVER_IDENTITY;
2056
+ }) => Promise<ApplicationTransport>), options?: {
2057
+ readonly socketPath?: string;
2058
+ readonly role?: string;
2059
+ readonly database?: string;
2060
+ readonly tenant?: string;
2061
+ readonly prefix?: string;
2062
+ readonly envPrefix?: string;
2063
+ readonly commandAttemptBudget?: number;
2064
+ }): Promise<RiffDBBetterAuthCoreClient>;
2065
+ withReadAfterCommit(commitSequence: bigint | undefined): RiffDBBetterAuthCoreClient;
2066
+ causalSession(initialCommitSequence?: bigint): RiffDBBetterAuthCoreClient;
2067
+ get lastCommitSequence(): bigint | undefined;
2068
+ adminUsersAllEmailAsc(parameters: AdminUsersAllEmailAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersAllEmailAscResult>>;
2069
+ adminUsersAllEmailAscAfterCommit(parameters: AdminUsersAllEmailAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersAllEmailAscResult>>;
2070
+ adminUsersContainsAsc(parameters: AdminUsersContainsAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersContainsAscResult>>;
2071
+ adminUsersContainsAscAfterCommit(parameters: AdminUsersContainsAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersContainsAscResult>>;
2072
+ adminUsersContainsDesc(parameters: AdminUsersContainsDescParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersContainsDescResult>>;
2073
+ adminUsersContainsDescAfterCommit(parameters: AdminUsersContainsDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersContainsDescResult>>;
2074
+ adminUsersEmailContainsCreatedDesc(parameters: AdminUsersEmailContainsCreatedDescParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEmailContainsCreatedDescResult>>;
2075
+ adminUsersEmailContainsCreatedDescAfterCommit(parameters: AdminUsersEmailContainsCreatedDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEmailContainsCreatedDescResult>>;
2076
+ adminUsersEmailContainsImageAsc(parameters: AdminUsersEmailContainsImageAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEmailContainsImageAscResult>>;
2077
+ adminUsersEmailContainsImageAscAfterCommit(parameters: AdminUsersEmailContainsImageAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEmailContainsImageAscResult>>;
2078
+ adminUsersEndsWithAsc(parameters: AdminUsersEndsWithAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEndsWithAscResult>>;
2079
+ adminUsersEndsWithAscAfterCommit(parameters: AdminUsersEndsWithAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEndsWithAscResult>>;
2080
+ adminUsersEndsWithDesc(parameters: AdminUsersEndsWithDescParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEndsWithDescResult>>;
2081
+ adminUsersEndsWithDescAfterCommit(parameters: AdminUsersEndsWithDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersEndsWithDescResult>>;
2082
+ adminUsersStartsWithAsc(parameters: AdminUsersStartsWithAscParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersStartsWithAscResult>>;
2083
+ adminUsersStartsWithAscAfterCommit(parameters: AdminUsersStartsWithAscParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersStartsWithAscResult>>;
2084
+ adminUsersStartsWithDesc(parameters: AdminUsersStartsWithDescParams, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersStartsWithDescResult>>;
2085
+ adminUsersStartsWithDescAfterCommit(parameters: AdminUsersStartsWithDescParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<AdminUsersStartsWithDescResult>>;
2086
+ findAccountById(parameters: FindAccountByIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindAccountByIdResult>>;
2087
+ findAccountByIdAfterCommit(parameters: FindAccountByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindAccountByIdResult>>;
2088
+ findAccountByProvider(parameters: FindAccountByProviderParams, options?: QueryOptions): Promise<TypedQueryResult<FindAccountByProviderResult>>;
2089
+ findAccountByProviderAfterCommit(parameters: FindAccountByProviderParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindAccountByProviderResult>>;
2090
+ findAccountsByUserId(parameters: FindAccountsByUserIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindAccountsByUserIdResult>>;
2091
+ findAccountsByUserIdAfterCommit(parameters: FindAccountsByUserIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindAccountsByUserIdResult>>;
2092
+ findAccountsByUserIdPages(parameters: FindAccountsByUserIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindAccountsByUserIdResult>, void, undefined>;
2093
+ findAccountsByUserProvider(parameters: FindAccountsByUserProviderParams, options?: QueryOptions): Promise<TypedQueryResult<FindAccountsByUserProviderResult>>;
2094
+ findAccountsByUserProviderAfterCommit(parameters: FindAccountsByUserProviderParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindAccountsByUserProviderResult>>;
2095
+ findAccountsByUserProviderPages(parameters: FindAccountsByUserProviderParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindAccountsByUserProviderResult>, void, undefined>;
2096
+ findActiveSessionsByUserId(parameters: FindActiveSessionsByUserIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindActiveSessionsByUserIdResult>>;
2097
+ findActiveSessionsByUserIdAfterCommit(parameters: FindActiveSessionsByUserIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindActiveSessionsByUserIdResult>>;
2098
+ findActiveSessionsByUserIdPages(parameters: FindActiveSessionsByUserIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindActiveSessionsByUserIdResult>, void, undefined>;
2099
+ findCredentialAccount(parameters: FindCredentialAccountParams, options?: QueryOptions): Promise<TypedQueryResult<FindCredentialAccountResult>>;
2100
+ findCredentialAccountAfterCommit(parameters: FindCredentialAccountParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindCredentialAccountResult>>;
2101
+ findExpiredVerificationIds(parameters: FindExpiredVerificationIdsParams, options?: QueryOptions): Promise<TypedQueryResult<FindExpiredVerificationIdsResult>>;
2102
+ findExpiredVerificationIdsAfterCommit(parameters: FindExpiredVerificationIdsParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindExpiredVerificationIdsResult>>;
2103
+ findExpiredVerificationIdsPages(parameters: FindExpiredVerificationIdsParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindExpiredVerificationIdsResult>, void, undefined>;
2104
+ findLatestVerification(parameters: FindLatestVerificationParams, options?: QueryOptions): Promise<TypedQueryResult<FindLatestVerificationResult>>;
2105
+ findLatestVerificationAfterCommit(parameters: FindLatestVerificationParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindLatestVerificationResult>>;
2106
+ findSessionById(parameters: FindSessionByIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindSessionByIdResult>>;
2107
+ findSessionByIdAfterCommit(parameters: FindSessionByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindSessionByIdResult>>;
2108
+ findSessionByToken(parameters: FindSessionByTokenParams, options?: QueryOptions): Promise<TypedQueryResult<FindSessionByTokenResult>>;
2109
+ findSessionByTokenAfterCommit(parameters: FindSessionByTokenParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindSessionByTokenResult>>;
2110
+ findSessionsByTokenSet(parameters: FindSessionsByTokenSetParams, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByTokenSetResult>>;
2111
+ findSessionsByTokenSetAfterCommit(parameters: FindSessionsByTokenSetParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByTokenSetResult>>;
2112
+ findSessionsByTokenSetAll(parameters: FindSessionsByTokenSetParams, maxPages?: number, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByTokenSetFound>>;
2113
+ findSessionsByUserId(parameters: FindSessionsByUserIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByUserIdResult>>;
2114
+ findSessionsByUserIdAfterCommit(parameters: FindSessionsByUserIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindSessionsByUserIdResult>>;
2115
+ findSessionsByUserIdPages(parameters: FindSessionsByUserIdParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindSessionsByUserIdResult>, void, undefined>;
2116
+ findUserByEmail(parameters: FindUserByEmailParams, options?: QueryOptions): Promise<TypedQueryResult<FindUserByEmailResult>>;
2117
+ findUserByEmailAfterCommit(parameters: FindUserByEmailParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindUserByEmailResult>>;
2118
+ findUserById(parameters: FindUserByIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindUserByIdResult>>;
2119
+ findUserByIdAfterCommit(parameters: FindUserByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindUserByIdResult>>;
2120
+ findVerificationById(parameters: FindVerificationByIdParams, options?: QueryOptions): Promise<TypedQueryResult<FindVerificationByIdResult>>;
2121
+ findVerificationByIdAfterCommit(parameters: FindVerificationByIdParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindVerificationByIdResult>>;
2122
+ findVerificationsByIdentifier(parameters: FindVerificationsByIdentifierParams, options?: QueryOptions): Promise<TypedQueryResult<FindVerificationsByIdentifierResult>>;
2123
+ findVerificationsByIdentifierAfterCommit(parameters: FindVerificationsByIdentifierParams, commitSequence: bigint, options?: QueryOptions): Promise<TypedQueryResult<FindVerificationsByIdentifierResult>>;
2124
+ findVerificationsByIdentifierPages(parameters: FindVerificationsByIdentifierParams, maxPages?: number, options?: QueryOptions): AsyncGenerator<TypedQueryResult<FindVerificationsByIdentifierResult>, void, undefined>;
2125
+ consumeVerification(input: ConsumeVerificationInput): Promise<TypedCommandResult<ConsumeVerificationOutcome>>;
2126
+ consumeVerificationBatch(inputs: ReadonlyArray<ConsumeVerificationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ConsumeVerificationOutcome>>;
2127
+ consumeVerificationSet(input: ConsumeVerificationSetInput): Promise<TypedCommandResult<ConsumeVerificationSetOutcome>>;
2128
+ consumeVerificationSetBatch(inputs: ReadonlyArray<ConsumeVerificationSetInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ConsumeVerificationSetOutcome>>;
2129
+ consumeVerificationSnapshot(input: ConsumeVerificationSnapshotInput): Promise<TypedCommandResult<ConsumeVerificationSnapshotOutcome>>;
2130
+ consumeVerificationSnapshotBatch(inputs: ReadonlyArray<ConsumeVerificationSnapshotInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ConsumeVerificationSnapshotOutcome>>;
2131
+ createAccount(input: CreateAccountInput): Promise<TypedCommandResult<CreateAccountOutcome>>;
2132
+ createAccountBatch(inputs: ReadonlyArray<CreateAccountInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateAccountOutcome>>;
2133
+ createOAuthUserGraph(input: CreateOAuthUserGraphInput): Promise<TypedCommandResult<CreateOAuthUserGraphOutcome>>;
2134
+ createOAuthUserGraphBatch(inputs: ReadonlyArray<CreateOAuthUserGraphInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateOAuthUserGraphOutcome>>;
2135
+ createSession(input: CreateSessionInput): Promise<TypedCommandResult<CreateSessionOutcome>>;
2136
+ createSessionBatch(inputs: ReadonlyArray<CreateSessionInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateSessionOutcome>>;
2137
+ createSignupGraph(input: CreateSignupGraphInput): Promise<TypedCommandResult<CreateSignupGraphOutcome>>;
2138
+ createSignupGraphBatch(inputs: ReadonlyArray<CreateSignupGraphInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateSignupGraphOutcome>>;
2139
+ createUser(input: CreateUserInput): Promise<TypedCommandResult<CreateUserOutcome>>;
2140
+ createUserBatch(inputs: ReadonlyArray<CreateUserInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateUserOutcome>>;
2141
+ createVerification(input: CreateVerificationInput): Promise<TypedCommandResult<CreateVerificationOutcome>>;
2142
+ createVerificationBatch(inputs: ReadonlyArray<CreateVerificationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<CreateVerificationOutcome>>;
2143
+ deleteAccount(input: DeleteAccountInput): Promise<TypedCommandResult<DeleteAccountOutcome>>;
2144
+ deleteAccountBatch(inputs: ReadonlyArray<DeleteAccountInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteAccountOutcome>>;
2145
+ deleteSession(input: DeleteSessionInput): Promise<TypedCommandResult<DeleteSessionOutcome>>;
2146
+ deleteSessionBatch(inputs: ReadonlyArray<DeleteSessionInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteSessionOutcome>>;
2147
+ deleteUser(input: DeleteUserInput): Promise<TypedCommandResult<DeleteUserOutcome>>;
2148
+ deleteUserBatch(inputs: ReadonlyArray<DeleteUserInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteUserOutcome>>;
2149
+ deleteVerification(input: DeleteVerificationInput): Promise<TypedCommandResult<DeleteVerificationOutcome>>;
2150
+ deleteVerificationBatch(inputs: ReadonlyArray<DeleteVerificationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<DeleteVerificationOutcome>>;
2151
+ resetCredentialPassword(input: ResetCredentialPasswordInput): Promise<TypedCommandResult<ResetCredentialPasswordOutcome>>;
2152
+ resetCredentialPasswordBatch(inputs: ReadonlyArray<ResetCredentialPasswordInput>, options: CommandBatchOptions): Promise<CommandBatchResult<ResetCredentialPasswordOutcome>>;
2153
+ updateAccount(input: UpdateAccountInput): Promise<TypedCommandResult<UpdateAccountOutcome>>;
2154
+ updateAccountBatch(inputs: ReadonlyArray<UpdateAccountInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateAccountOutcome>>;
2155
+ updateAccountPasswords(input: UpdateAccountPasswordsInput): Promise<TypedCommandResult<UpdateAccountPasswordsOutcome>>;
2156
+ updateAccountPasswordsBatch(inputs: ReadonlyArray<UpdateAccountPasswordsInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateAccountPasswordsOutcome>>;
2157
+ updateCredentialPassword(input: UpdateCredentialPasswordInput): Promise<TypedCommandResult<UpdateCredentialPasswordOutcome>>;
2158
+ updateCredentialPasswordBatch(inputs: ReadonlyArray<UpdateCredentialPasswordInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateCredentialPasswordOutcome>>;
2159
+ updateSession(input: UpdateSessionInput): Promise<TypedCommandResult<UpdateSessionOutcome>>;
2160
+ updateSessionBatch(inputs: ReadonlyArray<UpdateSessionInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateSessionOutcome>>;
2161
+ updateUser(input: UpdateUserInput): Promise<TypedCommandResult<UpdateUserOutcome>>;
2162
+ updateUserBatch(inputs: ReadonlyArray<UpdateUserInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateUserOutcome>>;
2163
+ updateVerification(input: UpdateVerificationInput): Promise<TypedCommandResult<UpdateVerificationOutcome>>;
2164
+ updateVerificationBatch(inputs: ReadonlyArray<UpdateVerificationInput>, options: CommandBatchOptions): Promise<CommandBatchResult<UpdateVerificationOutcome>>;
2165
+ }
2166
+ //# sourceMappingURL=client.d.ts.map