@fuzdev/fuz_app 0.162.0 → 0.164.0

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 (280) hide show
  1. package/README.md +2 -1
  2. package/dist/actions/action_event_data.d.ts +1 -1
  3. package/dist/actions/action_rpc.d.ts.map +1 -1
  4. package/dist/actions/action_rpc.js +4 -0
  5. package/dist/actions/action_spec.d.ts +3 -3
  6. package/dist/actions/action_spec.d.ts.map +1 -1
  7. package/dist/auth/CLAUDE.md +39 -36
  8. package/dist/auth/account_action_specs.d.ts +441 -115
  9. package/dist/auth/account_action_specs.d.ts.map +1 -1
  10. package/dist/auth/account_action_specs.js +47 -46
  11. package/dist/auth/account_route_schema.d.ts +98 -62
  12. package/dist/auth/account_route_schema.d.ts.map +1 -1
  13. package/dist/auth/account_route_schema.js +45 -45
  14. package/dist/auth/account_routes.js +1 -1
  15. package/dist/auth/account_schema.d.ts +54 -27
  16. package/dist/auth/account_schema.d.ts.map +1 -1
  17. package/dist/auth/account_schema.js +16 -18
  18. package/dist/auth/admin_action_specs.d.ts +76 -76
  19. package/dist/auth/admin_action_specs.js +2 -4
  20. package/dist/auth/admin_actions.d.ts +4 -4
  21. package/dist/auth/admin_actions.d.ts.map +1 -1
  22. package/dist/auth/admin_actions.js +3 -3
  23. package/dist/auth/all_cell_actions.d.ts +3 -3
  24. package/dist/auth/all_cell_actions.d.ts.map +1 -1
  25. package/dist/auth/all_cell_actions.js +1 -1
  26. package/dist/auth/api_token.d.ts +4 -4
  27. package/dist/auth/api_token.d.ts.map +1 -1
  28. package/dist/auth/api_token.js +3 -3
  29. package/dist/auth/audit_log_route_schema.d.ts +1 -1
  30. package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
  31. package/dist/auth/audit_log_route_schema.js +4 -5
  32. package/dist/auth/audit_log_schema.d.ts +46 -66
  33. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  34. package/dist/auth/audit_log_schema.js +34 -30
  35. package/dist/auth/bootstrap_route_schema.d.ts +146 -52
  36. package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
  37. package/dist/auth/bootstrap_route_schema.js +33 -19
  38. package/dist/auth/cell_grant_action_specs.d.ts +1 -1
  39. package/dist/auth/cell_grant_action_specs.js +1 -1
  40. package/dist/auth/cell_grant_actions.d.ts +4 -4
  41. package/dist/auth/cell_grant_actions.d.ts.map +1 -1
  42. package/dist/auth/cell_grant_actions.js +1 -1
  43. package/dist/auth/credential_type_schema.d.ts +16 -29
  44. package/dist/auth/credential_type_schema.d.ts.map +1 -1
  45. package/dist/auth/credential_type_schema.js +14 -18
  46. package/dist/auth/daemon_token.d.ts +4 -4
  47. package/dist/auth/daemon_token.d.ts.map +1 -1
  48. package/dist/auth/daemon_token.js +3 -3
  49. package/dist/auth/daemon_token_middleware.d.ts +1 -1
  50. package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
  51. package/dist/auth/daemon_token_middleware.js +5 -5
  52. package/dist/auth/grant_path_schema.d.ts +15 -29
  53. package/dist/auth/grant_path_schema.d.ts.map +1 -1
  54. package/dist/auth/grant_path_schema.js +13 -17
  55. package/dist/auth/middleware.js +4 -4
  56. package/dist/auth/migrations.js +1 -1
  57. package/dist/auth/name_schema.d.ts +7 -6
  58. package/dist/auth/name_schema.d.ts.map +1 -1
  59. package/dist/auth/name_schema.js +8 -9
  60. package/dist/auth/password.d.ts +15 -7
  61. package/dist/auth/password.d.ts.map +1 -1
  62. package/dist/auth/password.js +16 -9
  63. package/dist/auth/role_grant_offer_action_specs.d.ts +2 -2
  64. package/dist/auth/role_grant_offer_action_specs.js +2 -2
  65. package/dist/auth/role_grant_offer_actions.d.ts +4 -4
  66. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  67. package/dist/auth/role_grant_offer_actions.js +3 -3
  68. package/dist/auth/role_grant_offer_notifications.js +2 -2
  69. package/dist/auth/role_grant_offer_schema.d.ts +2 -2
  70. package/dist/auth/role_grant_offer_schema.js +2 -2
  71. package/dist/auth/role_schema.d.ts +47 -55
  72. package/dist/auth/role_schema.d.ts.map +1 -1
  73. package/dist/auth/role_schema.js +29 -35
  74. package/dist/auth/scope_kind_schema.d.ts +22 -26
  75. package/dist/auth/scope_kind_schema.d.ts.map +1 -1
  76. package/dist/auth/scope_kind_schema.js +19 -19
  77. package/dist/auth/self_service_role_action_specs.js +1 -1
  78. package/dist/auth/self_service_role_actions.d.ts +6 -6
  79. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  80. package/dist/auth/self_service_role_actions.js +7 -6
  81. package/dist/auth/signup_route_schema.d.ts +71 -21
  82. package/dist/auth/signup_route_schema.d.ts.map +1 -1
  83. package/dist/auth/signup_route_schema.js +17 -19
  84. package/dist/auth/standard_rpc_actions.d.ts +1 -1
  85. package/dist/auth/standard_rpc_actions.js +1 -1
  86. package/dist/auth/token_lifetime.d.ts +33 -9
  87. package/dist/auth/token_lifetime.d.ts.map +1 -1
  88. package/dist/auth/token_lifetime.js +8 -7
  89. package/dist/auth/token_scope.d.ts +99 -25
  90. package/dist/auth/token_scope.d.ts.map +1 -1
  91. package/dist/auth/token_scope.js +57 -35
  92. package/dist/db/CLAUDE.md +2 -1
  93. package/dist/db/file_fact_url.d.ts +11 -6
  94. package/dist/db/file_fact_url.d.ts.map +1 -1
  95. package/dist/db/file_fact_url.js +5 -5
  96. package/dist/db/schema_ready.d.ts +0 -5
  97. package/dist/db/schema_ready.d.ts.map +1 -1
  98. package/dist/db/schema_ready.js +0 -5
  99. package/dist/http/CLAUDE.md +104 -71
  100. package/dist/http/auth_shape.d.ts +48 -29
  101. package/dist/http/auth_shape.d.ts.map +1 -1
  102. package/dist/http/auth_shape.js +12 -85
  103. package/dist/http/body_limit.d.ts +12 -0
  104. package/dist/http/body_limit.d.ts.map +1 -1
  105. package/dist/http/body_limit.js +15 -0
  106. package/dist/http/body_limit_schema.d.ts +20 -0
  107. package/dist/http/body_limit_schema.d.ts.map +1 -0
  108. package/dist/http/body_limit_schema.js +20 -0
  109. package/dist/http/common_routes.d.ts +1 -1
  110. package/dist/http/common_routes.d.ts.map +1 -1
  111. package/dist/http/common_routes.js +11 -14
  112. package/dist/http/db_routes.d.ts.map +1 -1
  113. package/dist/http/db_routes.js +59 -69
  114. package/dist/http/dev_route_error_check.d.ts +70 -0
  115. package/dist/http/dev_route_error_check.d.ts.map +1 -0
  116. package/dist/http/dev_route_error_check.js +119 -0
  117. package/dist/http/error_schemas.d.ts +365 -189
  118. package/dist/http/error_schemas.d.ts.map +1 -1
  119. package/dist/http/error_schemas.js +256 -149
  120. package/dist/http/health_schema.d.ts +10 -6
  121. package/dist/http/health_schema.d.ts.map +1 -1
  122. package/dist/http/health_schema.js +3 -3
  123. package/dist/http/middleware_spec.d.ts +8 -3
  124. package/dist/http/middleware_spec.d.ts.map +1 -1
  125. package/dist/http/origin.d.ts +12 -43
  126. package/dist/http/origin.d.ts.map +1 -1
  127. package/dist/http/origin.js +10 -6
  128. package/dist/http/route_error_check.d.ts +158 -0
  129. package/dist/http/route_error_check.d.ts.map +1 -0
  130. package/dist/http/route_error_check.js +247 -0
  131. package/dist/http/route_errors.d.ts +80 -0
  132. package/dist/http/route_errors.d.ts.map +1 -0
  133. package/dist/http/route_errors.js +83 -0
  134. package/dist/http/route_spec.d.ts +33 -17
  135. package/dist/http/route_spec.d.ts.map +1 -1
  136. package/dist/http/route_spec.js +48 -62
  137. package/dist/http/schema_helpers.d.ts +0 -33
  138. package/dist/http/schema_helpers.d.ts.map +1 -1
  139. package/dist/http/schema_helpers.js +0 -45
  140. package/dist/http/surface.d.ts +19 -12
  141. package/dist/http/surface.d.ts.map +1 -1
  142. package/dist/http/surface.js +25 -38
  143. package/dist/http/surface_query.d.ts +11 -2
  144. package/dist/http/surface_query.d.ts.map +1 -1
  145. package/dist/http/surface_query.js +7 -1
  146. package/dist/primitive_schemas.d.ts +2 -19
  147. package/dist/primitive_schemas.d.ts.map +1 -1
  148. package/dist/primitive_schemas.js +2 -20
  149. package/dist/primitive_schemas_fuz.d.ts +39 -5
  150. package/dist/primitive_schemas_fuz.d.ts.map +1 -1
  151. package/dist/primitive_schemas_fuz.js +36 -7
  152. package/dist/rate_limiter.d.ts +13 -0
  153. package/dist/rate_limiter.d.ts.map +1 -1
  154. package/dist/rate_limiter.js +20 -2
  155. package/dist/schema_issues.d.ts +29 -11
  156. package/dist/schema_issues.d.ts.map +1 -1
  157. package/dist/schema_issues.js +11 -10
  158. package/dist/schema_meta.d.ts +8 -1
  159. package/dist/schema_meta.d.ts.map +1 -1
  160. package/dist/schema_meta.js +2 -1
  161. package/dist/server/app_server.d.ts +3 -1
  162. package/dist/server/app_server.d.ts.map +1 -1
  163. package/dist/server/app_server.js +24 -10
  164. package/dist/server/serve_fact_route.d.ts.map +1 -1
  165. package/dist/server/serve_fact_route.js +8 -31
  166. package/dist/server/surface_route.d.ts.map +1 -1
  167. package/dist/server/surface_route.js +5 -6
  168. package/dist/server/x_accel.d.ts +12 -7
  169. package/dist/server/x_accel.d.ts.map +1 -1
  170. package/dist/server/x_accel.js +7 -9
  171. package/dist/testing/CLAUDE.md +55 -44
  172. package/dist/testing/admin_integration.d.ts +3 -3
  173. package/dist/testing/admin_integration.d.ts.map +1 -1
  174. package/dist/testing/admin_integration.js +2 -2
  175. package/dist/testing/adversarial_404.d.ts +4 -18
  176. package/dist/testing/adversarial_404.d.ts.map +1 -1
  177. package/dist/testing/adversarial_404.js +19 -51
  178. package/dist/testing/adversarial_headers.d.ts +3 -4
  179. package/dist/testing/adversarial_headers.d.ts.map +1 -1
  180. package/dist/testing/adversarial_headers.js +8 -6
  181. package/dist/testing/adversarial_input.d.ts.map +1 -1
  182. package/dist/testing/adversarial_input.js +18 -17
  183. package/dist/testing/assertions.d.ts +33 -11
  184. package/dist/testing/assertions.d.ts.map +1 -1
  185. package/dist/testing/assertions.js +52 -12
  186. package/dist/testing/attack_surface.d.ts +5 -35
  187. package/dist/testing/attack_surface.d.ts.map +1 -1
  188. package/dist/testing/attack_surface.js +29 -91
  189. package/dist/testing/auth_apps.d.ts.map +1 -1
  190. package/dist/testing/auth_apps.js +2 -1
  191. package/dist/testing/cross_backend/action_manifest.d.ts +126 -56
  192. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  193. package/dist/testing/cross_backend/action_manifest.js +11 -11
  194. package/dist/testing/cross_backend/action_manifest_parity.d.ts +1 -1
  195. package/dist/testing/cross_backend/action_manifest_parity.d.ts.map +1 -1
  196. package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -1
  197. package/dist/testing/cross_backend/cell_crud.js +2 -1
  198. package/dist/testing/cross_backend/conformance_table.js +1 -1
  199. package/dist/testing/cross_backend/default_spine_surface.d.ts +2 -2
  200. package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
  201. package/dist/testing/cross_backend/default_spine_surface.js +2 -2
  202. package/dist/testing/cross_backend/fact_serving.js +3 -3
  203. package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
  204. package/dist/testing/cross_backend/identity_parity.js +39 -6
  205. package/dist/testing/cross_backend/origin_conformance.d.ts +278 -102
  206. package/dist/testing/cross_backend/origin_conformance.d.ts.map +1 -1
  207. package/dist/testing/cross_backend/origin_conformance.js +21 -21
  208. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +3 -3
  209. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  210. package/dist/testing/cross_backend/rust_spine_consumer_surface.js +7 -1
  211. package/dist/testing/cross_backend/setup.d.ts +14 -1
  212. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  213. package/dist/testing/cross_backend/setup.js +68 -48
  214. package/dist/testing/cross_backend/spine_suites.d.ts +3 -3
  215. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  216. package/dist/testing/cross_backend/standard.d.ts +4 -4
  217. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  218. package/dist/testing/cross_backend/testing_origin_check.d.ts +147 -71
  219. package/dist/testing/cross_backend/testing_origin_check.d.ts.map +1 -1
  220. package/dist/testing/cross_backend/testing_origin_check.js +16 -13
  221. package/dist/testing/cross_backend/testing_reset_actions.d.ts +70 -27
  222. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  223. package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
  224. package/dist/testing/cross_backend/token_lifetime.js +34 -1
  225. package/dist/testing/data_exposure.d.ts.map +1 -1
  226. package/dist/testing/data_exposure.js +5 -4
  227. package/dist/testing/error_coverage.d.ts +24 -34
  228. package/dist/testing/error_coverage.d.ts.map +1 -1
  229. package/dist/testing/error_coverage.js +46 -89
  230. package/dist/testing/integration.d.ts.map +1 -1
  231. package/dist/testing/integration.js +6 -14
  232. package/dist/testing/integration_helpers.d.ts +37 -9
  233. package/dist/testing/integration_helpers.d.ts.map +1 -1
  234. package/dist/testing/integration_helpers.js +86 -40
  235. package/dist/testing/middleware.d.ts +3 -5
  236. package/dist/testing/middleware.d.ts.map +1 -1
  237. package/dist/testing/middleware.js +5 -4
  238. package/dist/testing/rate_limiting.d.ts +1 -1
  239. package/dist/testing/rate_limiting.d.ts.map +1 -1
  240. package/dist/testing/rate_limiting.js +5 -4
  241. package/dist/testing/round_trip.d.ts.map +1 -1
  242. package/dist/testing/round_trip.js +5 -3
  243. package/dist/testing/schema_generators.d.ts +10 -3
  244. package/dist/testing/schema_generators.d.ts.map +1 -1
  245. package/dist/testing/schema_generators.js +23 -11
  246. package/dist/testing/stubs.d.ts +10 -1
  247. package/dist/testing/stubs.d.ts.map +1 -1
  248. package/dist/testing/stubs.js +15 -5
  249. package/dist/testing/surface_invariants.d.ts +36 -115
  250. package/dist/testing/surface_invariants.d.ts.map +1 -1
  251. package/dist/testing/surface_invariants.js +106 -269
  252. package/dist/testing/token_scope_fixtures.d.ts +24 -0
  253. package/dist/testing/token_scope_fixtures.d.ts.map +1 -0
  254. package/dist/testing/token_scope_fixtures.js +49 -0
  255. package/dist/testing/transports/bootstrap.d.ts +1 -1
  256. package/dist/testing/transports/bootstrap.d.ts.map +1 -1
  257. package/dist/testing/transports/bootstrap.js +13 -12
  258. package/dist/ui/BootstrapForm.svelte +4 -2
  259. package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
  260. package/dist/ui/CLAUDE.md +4 -2
  261. package/dist/ui/SignupForm.svelte +4 -2
  262. package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
  263. package/dist/ui/auth_state.svelte.d.ts.map +1 -1
  264. package/dist/ui/auth_state.svelte.js +2 -8
  265. package/dist/ui/backend_probe.svelte.js +3 -3
  266. package/dist/ui/table_state.svelte.d.ts.map +1 -1
  267. package/dist/ui/table_state.svelte.js +1 -8
  268. package/dist/ui/ui_fetch.d.ts +12 -2
  269. package/dist/ui/ui_fetch.d.ts.map +1 -1
  270. package/dist/ui/ui_fetch.js +22 -4
  271. package/package.json +1 -1
  272. package/dist/auth/audit_log_schema_fuz.d.ts +0 -53
  273. package/dist/auth/audit_log_schema_fuz.d.ts.map +0 -1
  274. package/dist/auth/audit_log_schema_fuz.js +0 -50
  275. package/dist/auth/role_schema_fuz.d.ts +0 -30
  276. package/dist/auth/role_schema_fuz.d.ts.map +0 -1
  277. package/dist/auth/role_schema_fuz.js +0 -30
  278. package/dist/auth/scope_kind_schema_fuz.d.ts +0 -31
  279. package/dist/auth/scope_kind_schema_fuz.d.ts.map +0 -1
  280. package/dist/auth/scope_kind_schema_fuz.js +0 -31
@@ -7,15 +7,14 @@
7
7
  *
8
8
  * @module
9
9
  */
10
- import { z } from 'zod';
11
10
  import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
12
11
  import type { RequestResponseActionSpec } from '../actions/action_spec.js';
13
- /** Input for `account_verify`. No parameters — the caller is the subject. */
14
- export declare const VerifyInput: z.ZodVoid;
15
- export type VerifyInput = z.infer<typeof VerifyInput>;
16
- /** Input for `account_session_list`. No parameters. */
17
- export declare const SessionListInput: z.ZodVoid;
18
- export type SessionListInput = z.infer<typeof SessionListInput>;
12
+ /** Input for `account_verify`, fuz_schema's `void`. No parameters — the caller is the subject. */
13
+ export declare const VerifyInput: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
14
+ export type VerifyInput = Infer<typeof VerifyInput>;
15
+ /** Input for `account_session_list`, fuz_schema's `void`. No parameters. */
16
+ export declare const SessionListInput: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
17
+ export type SessionListInput = Infer<typeof SessionListInput>;
19
18
  /** Output for `account_session_list`, a `@fuzdev/fuz_schema` schema. */
20
19
  export declare const SessionListOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
21
20
  sessions: {
@@ -94,21 +93,39 @@ export declare const SessionRevokeInput: import("@fuzdev/fuz_schema/schema.ts").
94
93
  };
95
94
  }>;
96
95
  export type SessionRevokeInput = Infer<typeof SessionRevokeInput>;
97
- /** Output for `account_session_revoke`. `revoked` is `false` for IDOR misses. */
98
- export declare const SessionRevokeOutput: z.ZodObject<{
99
- ok: z.ZodLiteral<true>;
100
- revoked: z.ZodBoolean;
101
- }, z.core.$strict>;
102
- export type SessionRevokeOutput = z.infer<typeof SessionRevokeOutput>;
103
- /** Input for `account_session_revoke_all`. No parameters. */
104
- export declare const SessionRevokeAllInput: z.ZodVoid;
105
- export type SessionRevokeAllInput = z.infer<typeof SessionRevokeAllInput>;
106
- /** Output for `account_session_revoke_all`. */
107
- export declare const SessionRevokeAllOutput: z.ZodObject<{
108
- ok: z.ZodLiteral<true>;
109
- count: z.ZodNumber;
110
- }, z.core.$strict>;
111
- export type SessionRevokeAllOutput = z.infer<typeof SessionRevokeAllOutput>;
96
+ /**
97
+ * Output for `account_session_revoke`, a `@fuzdev/fuz_schema` schema.
98
+ * `revoked` is `false` for IDOR misses.
99
+ */
100
+ export declare const SessionRevokeOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
101
+ ok: true;
102
+ revoked: boolean;
103
+ }, {
104
+ ok: true;
105
+ revoked: boolean;
106
+ }, "object", {
107
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
108
+ revoked: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
109
+ }>;
110
+ export type SessionRevokeOutput = Infer<typeof SessionRevokeOutput>;
111
+ /** Input for `account_session_revoke_all`, fuz_schema's `void`. No parameters. */
112
+ export declare const SessionRevokeAllInput: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
113
+ export type SessionRevokeAllInput = Infer<typeof SessionRevokeAllInput>;
114
+ /**
115
+ * Output for `account_session_revoke_all`, a `@fuzdev/fuz_schema` schema.
116
+ * `count` is the number of sessions revoked.
117
+ */
118
+ export declare const SessionRevokeAllOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
119
+ count: number;
120
+ ok: true;
121
+ }, {
122
+ count: number;
123
+ ok: true;
124
+ }, "object", {
125
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
126
+ count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
127
+ }>;
128
+ export type SessionRevokeAllOutput = Infer<typeof SessionRevokeAllOutput>;
112
129
  /**
113
130
  * Maximum length of an API token's `name`, in UTF-16 code units (what
114
131
  * `String.length` measures; enforced by `bounded_string`). The name is copied into the
@@ -129,65 +146,213 @@ export declare const ERROR_TOKEN_SCOPE_INVALID: "token_scope_invalid";
129
146
  */
130
147
  export declare const ERROR_TOKEN_LIFETIME_INVALID: "token_lifetime_invalid";
131
148
  /**
132
- * Input for `account_token_create`.
149
+ * Input for `account_token_create`, a `@fuzdev/fuz_schema` schema.
133
150
  *
134
151
  * `scope` is **required** — default-deny at mint. There is deliberately no
135
152
  * permissive default: a caller who wants full authority spells
136
153
  * `{kind: 'full'}`, and the stored document records that they did. That is the
137
154
  * reversal of the 2026-02 design, where the field existed but nothing depended
138
- * on it. Because `scope` has no default, the object as a whole no longer
139
- * carries `.prefault({})`.
155
+ * on it. Because `scope` has no default, the object as a whole has none.
140
156
  *
141
157
  * `lifetime` follows the same rule — a never-expiring token is
142
158
  * `{kind: 'eternal'}`, spelled out, so `expires_at IS NULL` always means
143
159
  * "deliberately eternal" (see `auth/token_lifetime.ts`).
144
160
  */
145
- export declare const TokenCreateInput: z.ZodObject<{
146
- name: z.ZodDefault<z.ZodString>;
147
- scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
148
- kind: z.ZodLiteral<"full">;
149
- }, z.core.$strict>, z.ZodObject<{
150
- kind: z.ZodLiteral<"methods">;
151
- methods: z.ZodArray<z.ZodString>;
152
- }, z.core.$strict>], "kind">;
153
- lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
154
- kind: z.ZodLiteral<"eternal">;
155
- }, z.core.$strict>, z.ZodObject<{
156
- kind: z.ZodLiteral<"ttl">;
157
- days: z.ZodNumber;
158
- }, z.core.$strict>], "kind">;
159
- }, z.core.$strict>;
160
- export type TokenCreateInput = z.infer<typeof TokenCreateInput>;
161
- /** Output for `account_token_create`. `token` is returned exactly once. */
162
- export declare const TokenCreateOutput: z.ZodObject<{
163
- ok: z.ZodLiteral<true>;
164
- token: z.ZodString;
165
- id: z.ZodString;
166
- name: z.ZodString;
167
- expires_at: z.ZodNullable<z.ZodString>;
168
- }, z.core.$strict>;
169
- export type TokenCreateOutput = z.infer<typeof TokenCreateOutput>;
170
- /** Input for `account_token_list`. No parameters. */
171
- export declare const TokenListInput: z.ZodVoid;
172
- export type TokenListInput = z.infer<typeof TokenListInput>;
173
- /** Output for `account_token_list`. Hashes are excluded. */
174
- export declare const TokenListOutput: z.ZodObject<{
175
- tokens: z.ZodArray<z.ZodObject<{
176
- id: z.ZodString;
177
- account_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string>>;
178
- name: z.ZodString;
179
- expires_at: z.ZodNullable<z.ZodString>;
180
- last_used_at: z.ZodNullable<z.ZodString>;
181
- last_used_ip: z.ZodNullable<z.ZodString>;
182
- created_at: z.ZodString;
183
- scope: z.ZodString;
184
- }, z.core.$strict>>;
185
- }, z.core.$strict>;
186
- export type TokenListOutput = z.infer<typeof TokenListOutput>;
161
+ export declare const TokenCreateInput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
162
+ name: string;
163
+ scope: {
164
+ kind: "full";
165
+ } | {
166
+ kind: "methods";
167
+ methods: string[];
168
+ };
169
+ lifetime: {
170
+ kind: "eternal";
171
+ } | {
172
+ kind: "ttl";
173
+ days: number;
174
+ };
175
+ }, {
176
+ scope: {
177
+ kind: "full";
178
+ } | {
179
+ kind: "methods";
180
+ methods: string[];
181
+ };
182
+ lifetime: {
183
+ kind: "eternal";
184
+ } | {
185
+ kind: "ttl";
186
+ days: number;
187
+ };
188
+ name?: string | undefined;
189
+ }, "object", {
190
+ name: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string | undefined, "with_default", import("@fuzdev/fuz_schema/schema.ts").SchemaDefaultDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
191
+ scope: import("@fuzdev/fuz_schema/schema.ts").Schema<{
192
+ kind: "full";
193
+ } | {
194
+ kind: "methods";
195
+ methods: string[];
196
+ }, {
197
+ kind: "full";
198
+ } | {
199
+ kind: "methods";
200
+ methods: string[];
201
+ }, "variant", {
202
+ readonly key: "kind";
203
+ readonly options: readonly [import("@fuzdev/fuz_schema/schema.ts").Schema<{
204
+ kind: "full";
205
+ }, {
206
+ kind: "full";
207
+ }, "object", {
208
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"full", "full", "literal", "full">;
209
+ }>, import("@fuzdev/fuz_schema/schema.ts").Schema<{
210
+ kind: "methods";
211
+ methods: string[];
212
+ }, {
213
+ kind: "methods";
214
+ methods: string[];
215
+ }, "object", {
216
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"methods", "methods", "literal", "methods">;
217
+ methods: import("@fuzdev/fuz_schema/schema.ts").Schema<string[], string[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
218
+ }>];
219
+ }>;
220
+ lifetime: import("@fuzdev/fuz_schema/schema.ts").Schema<{
221
+ kind: "eternal";
222
+ } | {
223
+ kind: "ttl";
224
+ days: number;
225
+ }, {
226
+ kind: "eternal";
227
+ } | {
228
+ kind: "ttl";
229
+ days: number;
230
+ }, "variant", {
231
+ readonly key: "kind";
232
+ readonly options: readonly [import("@fuzdev/fuz_schema/schema.ts").Schema<{
233
+ kind: "eternal";
234
+ }, {
235
+ kind: "eternal";
236
+ }, "object", {
237
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"eternal", "eternal", "literal", "eternal">;
238
+ }>, import("@fuzdev/fuz_schema/schema.ts").Schema<{
239
+ kind: "ttl";
240
+ days: number;
241
+ }, {
242
+ kind: "ttl";
243
+ days: number;
244
+ }, "object", {
245
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"ttl", "ttl", "literal", "ttl">;
246
+ days: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
247
+ }>];
248
+ }>;
249
+ }>;
250
+ export type TokenCreateInput = Infer<typeof TokenCreateInput>;
187
251
  /**
188
- * Input for `account_token_revoke`, a `@fuzdev/fuz_schema` schema. Its
189
- * `token_id` is `ApiTokenId`'s check written inline, as `ApiTokenId` is Zod.
252
+ * Output for `account_token_create`, a `@fuzdev/fuz_schema` schema. `token`
253
+ * is returned exactly once.
190
254
  */
255
+ export declare const TokenCreateOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
256
+ name: string;
257
+ id: string;
258
+ expires_at: string | null;
259
+ token: string;
260
+ ok: true;
261
+ }, {
262
+ name: string;
263
+ id: string;
264
+ expires_at: string | null;
265
+ token: string;
266
+ ok: true;
267
+ }, "object", {
268
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
269
+ token: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
270
+ id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
271
+ name: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
272
+ expires_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
273
+ }>;
274
+ export type TokenCreateOutput = Infer<typeof TokenCreateOutput>;
275
+ /** Input for `account_token_list`, fuz_schema's `void`. No parameters. */
276
+ export declare const TokenListInput: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
277
+ export type TokenListInput = Infer<typeof TokenListInput>;
278
+ /** Output for `account_token_list`, a `@fuzdev/fuz_schema` schema. Hashes are excluded. */
279
+ export declare const TokenListOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
280
+ tokens: {
281
+ name: string;
282
+ id: string;
283
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
284
+ created_at: string;
285
+ expires_at: string | null;
286
+ last_used_at: string | null;
287
+ last_used_ip: string | null;
288
+ scope: string;
289
+ }[];
290
+ }, {
291
+ tokens: {
292
+ name: string;
293
+ id: string;
294
+ account_id: string;
295
+ created_at: string;
296
+ expires_at: string | null;
297
+ last_used_at: string | null;
298
+ last_used_ip: string | null;
299
+ scope: string;
300
+ }[];
301
+ }, "object", {
302
+ tokens: import("@fuzdev/fuz_schema/schema.ts").Schema<{
303
+ name: string;
304
+ id: string;
305
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
306
+ created_at: string;
307
+ expires_at: string | null;
308
+ last_used_at: string | null;
309
+ last_used_ip: string | null;
310
+ scope: string;
311
+ }[], {
312
+ name: string;
313
+ id: string;
314
+ account_id: string;
315
+ created_at: string;
316
+ expires_at: string | null;
317
+ last_used_at: string | null;
318
+ last_used_ip: string | null;
319
+ scope: string;
320
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
321
+ name: string;
322
+ id: string;
323
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
324
+ created_at: string;
325
+ expires_at: string | null;
326
+ last_used_at: string | null;
327
+ last_used_ip: string | null;
328
+ scope: string;
329
+ }, {
330
+ name: string;
331
+ id: string;
332
+ account_id: string;
333
+ created_at: string;
334
+ expires_at: string | null;
335
+ last_used_at: string | null;
336
+ last_used_ip: string | null;
337
+ scope: string;
338
+ }, "object", {
339
+ id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
340
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
341
+ readonly '~types'?: {
342
+ readonly input: string;
343
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
344
+ } | undefined;
345
+ };
346
+ name: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
347
+ expires_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
348
+ last_used_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
349
+ last_used_ip: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
350
+ created_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
351
+ scope: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
352
+ }>>;
353
+ }>;
354
+ export type TokenListOutput = Infer<typeof TokenListOutput>;
355
+ /** Input for `account_token_revoke`, a `@fuzdev/fuz_schema` schema. */
191
356
  export declare const TokenRevokeInput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
192
357
  token_id: string;
193
358
  }, {
@@ -220,7 +385,7 @@ export declare const account_verify_action_spec: {
220
385
  actor: "none";
221
386
  };
222
387
  side_effects: false;
223
- input: z.ZodVoid;
388
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
224
389
  output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
225
390
  email: string | null;
226
391
  id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
@@ -257,7 +422,7 @@ export declare const account_session_list_action_spec: {
257
422
  actor: "none";
258
423
  };
259
424
  side_effects: false;
260
- input: z.ZodVoid;
425
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
261
426
  output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
262
427
  sessions: {
263
428
  id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "SessionId">;
@@ -342,10 +507,16 @@ export declare const account_session_revoke_action_spec: {
342
507
  } | undefined;
343
508
  };
344
509
  }>;
345
- output: z.ZodObject<{
346
- ok: z.ZodLiteral<true>;
347
- revoked: z.ZodBoolean;
348
- }, z.core.$strict>;
510
+ output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
511
+ ok: true;
512
+ revoked: boolean;
513
+ }, {
514
+ ok: true;
515
+ revoked: boolean;
516
+ }, "object", {
517
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
518
+ revoked: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
519
+ }>;
349
520
  async: true;
350
521
  description: string;
351
522
  };
@@ -359,11 +530,17 @@ export declare const account_session_revoke_all_action_spec: {
359
530
  credential_types: string[];
360
531
  };
361
532
  side_effects: true;
362
- input: z.ZodVoid;
363
- output: z.ZodObject<{
364
- ok: z.ZodLiteral<true>;
365
- count: z.ZodNumber;
366
- }, z.core.$strict>;
533
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
534
+ output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
535
+ count: number;
536
+ ok: true;
537
+ }, {
538
+ count: number;
539
+ ok: true;
540
+ }, "object", {
541
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
542
+ count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
543
+ }>;
367
544
  async: true;
368
545
  description: string;
369
546
  };
@@ -387,28 +564,114 @@ export declare const account_token_create_action_spec: {
387
564
  credential_types: string[];
388
565
  };
389
566
  side_effects: true;
390
- input: z.ZodObject<{
391
- name: z.ZodDefault<z.ZodString>;
392
- scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
393
- kind: z.ZodLiteral<"full">;
394
- }, z.core.$strict>, z.ZodObject<{
395
- kind: z.ZodLiteral<"methods">;
396
- methods: z.ZodArray<z.ZodString>;
397
- }, z.core.$strict>], "kind">;
398
- lifetime: z.ZodDiscriminatedUnion<[z.ZodObject<{
399
- kind: z.ZodLiteral<"eternal">;
400
- }, z.core.$strict>, z.ZodObject<{
401
- kind: z.ZodLiteral<"ttl">;
402
- days: z.ZodNumber;
403
- }, z.core.$strict>], "kind">;
404
- }, z.core.$strict>;
405
- output: z.ZodObject<{
406
- ok: z.ZodLiteral<true>;
407
- token: z.ZodString;
408
- id: z.ZodString;
409
- name: z.ZodString;
410
- expires_at: z.ZodNullable<z.ZodString>;
411
- }, z.core.$strict>;
567
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
568
+ name: string;
569
+ scope: {
570
+ kind: "full";
571
+ } | {
572
+ kind: "methods";
573
+ methods: string[];
574
+ };
575
+ lifetime: {
576
+ kind: "eternal";
577
+ } | {
578
+ kind: "ttl";
579
+ days: number;
580
+ };
581
+ }, {
582
+ scope: {
583
+ kind: "full";
584
+ } | {
585
+ kind: "methods";
586
+ methods: string[];
587
+ };
588
+ lifetime: {
589
+ kind: "eternal";
590
+ } | {
591
+ kind: "ttl";
592
+ days: number;
593
+ };
594
+ name?: string | undefined;
595
+ }, "object", {
596
+ name: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string | undefined, "with_default", import("@fuzdev/fuz_schema/schema.ts").SchemaDefaultDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
597
+ scope: import("@fuzdev/fuz_schema/schema.ts").Schema<{
598
+ kind: "full";
599
+ } | {
600
+ kind: "methods";
601
+ methods: string[];
602
+ }, {
603
+ kind: "full";
604
+ } | {
605
+ kind: "methods";
606
+ methods: string[];
607
+ }, "variant", {
608
+ readonly key: "kind";
609
+ readonly options: readonly [import("@fuzdev/fuz_schema/schema.ts").Schema<{
610
+ kind: "full";
611
+ }, {
612
+ kind: "full";
613
+ }, "object", {
614
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"full", "full", "literal", "full">;
615
+ }>, import("@fuzdev/fuz_schema/schema.ts").Schema<{
616
+ kind: "methods";
617
+ methods: string[];
618
+ }, {
619
+ kind: "methods";
620
+ methods: string[];
621
+ }, "object", {
622
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"methods", "methods", "literal", "methods">;
623
+ methods: import("@fuzdev/fuz_schema/schema.ts").Schema<string[], string[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
624
+ }>];
625
+ }>;
626
+ lifetime: import("@fuzdev/fuz_schema/schema.ts").Schema<{
627
+ kind: "eternal";
628
+ } | {
629
+ kind: "ttl";
630
+ days: number;
631
+ }, {
632
+ kind: "eternal";
633
+ } | {
634
+ kind: "ttl";
635
+ days: number;
636
+ }, "variant", {
637
+ readonly key: "kind";
638
+ readonly options: readonly [import("@fuzdev/fuz_schema/schema.ts").Schema<{
639
+ kind: "eternal";
640
+ }, {
641
+ kind: "eternal";
642
+ }, "object", {
643
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"eternal", "eternal", "literal", "eternal">;
644
+ }>, import("@fuzdev/fuz_schema/schema.ts").Schema<{
645
+ kind: "ttl";
646
+ days: number;
647
+ }, {
648
+ kind: "ttl";
649
+ days: number;
650
+ }, "object", {
651
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"ttl", "ttl", "literal", "ttl">;
652
+ days: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
653
+ }>];
654
+ }>;
655
+ }>;
656
+ output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
657
+ name: string;
658
+ id: string;
659
+ expires_at: string | null;
660
+ token: string;
661
+ ok: true;
662
+ }, {
663
+ name: string;
664
+ id: string;
665
+ expires_at: string | null;
666
+ token: string;
667
+ ok: true;
668
+ }, "object", {
669
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
670
+ token: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
671
+ id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
672
+ name: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
673
+ expires_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
674
+ }>;
412
675
  async: true;
413
676
  description: string;
414
677
  rate_limit: "account";
@@ -422,19 +685,82 @@ export declare const account_token_list_action_spec: {
422
685
  actor: "none";
423
686
  };
424
687
  side_effects: false;
425
- input: z.ZodVoid;
426
- output: z.ZodObject<{
427
- tokens: z.ZodArray<z.ZodObject<{
428
- id: z.ZodString;
429
- account_id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string>>;
430
- name: z.ZodString;
431
- expires_at: z.ZodNullable<z.ZodString>;
432
- last_used_at: z.ZodNullable<z.ZodString>;
433
- last_used_ip: z.ZodNullable<z.ZodString>;
434
- created_at: z.ZodString;
435
- scope: z.ZodString;
436
- }, z.core.$strict>>;
437
- }, z.core.$strict>;
688
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
689
+ output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
690
+ tokens: {
691
+ name: string;
692
+ id: string;
693
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
694
+ created_at: string;
695
+ expires_at: string | null;
696
+ last_used_at: string | null;
697
+ last_used_ip: string | null;
698
+ scope: string;
699
+ }[];
700
+ }, {
701
+ tokens: {
702
+ name: string;
703
+ id: string;
704
+ account_id: string;
705
+ created_at: string;
706
+ expires_at: string | null;
707
+ last_used_at: string | null;
708
+ last_used_ip: string | null;
709
+ scope: string;
710
+ }[];
711
+ }, "object", {
712
+ tokens: import("@fuzdev/fuz_schema/schema.ts").Schema<{
713
+ name: string;
714
+ id: string;
715
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
716
+ created_at: string;
717
+ expires_at: string | null;
718
+ last_used_at: string | null;
719
+ last_used_ip: string | null;
720
+ scope: string;
721
+ }[], {
722
+ name: string;
723
+ id: string;
724
+ account_id: string;
725
+ created_at: string;
726
+ expires_at: string | null;
727
+ last_used_at: string | null;
728
+ last_used_ip: string | null;
729
+ scope: string;
730
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
731
+ name: string;
732
+ id: string;
733
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
734
+ created_at: string;
735
+ expires_at: string | null;
736
+ last_used_at: string | null;
737
+ last_used_ip: string | null;
738
+ scope: string;
739
+ }, {
740
+ name: string;
741
+ id: string;
742
+ account_id: string;
743
+ created_at: string;
744
+ expires_at: string | null;
745
+ last_used_at: string | null;
746
+ last_used_ip: string | null;
747
+ scope: string;
748
+ }, "object", {
749
+ id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
750
+ account_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
751
+ readonly '~types'?: {
752
+ readonly input: string;
753
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
754
+ } | undefined;
755
+ };
756
+ name: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
757
+ expires_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
758
+ last_used_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
759
+ last_used_ip: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
760
+ created_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
761
+ scope: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
762
+ }>>;
763
+ }>;
438
764
  async: true;
439
765
  description: string;
440
766
  };