@fuzdev/fuz_app 0.162.0 → 0.163.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 (121) hide show
  1. package/dist/auth/CLAUDE.md +38 -35
  2. package/dist/auth/account_action_specs.d.ts +441 -115
  3. package/dist/auth/account_action_specs.d.ts.map +1 -1
  4. package/dist/auth/account_action_specs.js +47 -46
  5. package/dist/auth/account_route_schema.d.ts +120 -60
  6. package/dist/auth/account_route_schema.d.ts.map +1 -1
  7. package/dist/auth/account_route_schema.js +50 -36
  8. package/dist/auth/account_routes.js +1 -1
  9. package/dist/auth/account_schema.d.ts +54 -27
  10. package/dist/auth/account_schema.d.ts.map +1 -1
  11. package/dist/auth/account_schema.js +16 -18
  12. package/dist/auth/admin_action_specs.d.ts +20 -20
  13. package/dist/auth/admin_action_specs.js +2 -4
  14. package/dist/auth/admin_actions.d.ts +4 -4
  15. package/dist/auth/admin_actions.d.ts.map +1 -1
  16. package/dist/auth/admin_actions.js +3 -3
  17. package/dist/auth/all_cell_actions.d.ts +3 -3
  18. package/dist/auth/all_cell_actions.d.ts.map +1 -1
  19. package/dist/auth/all_cell_actions.js +1 -1
  20. package/dist/auth/api_token.d.ts +4 -4
  21. package/dist/auth/api_token.d.ts.map +1 -1
  22. package/dist/auth/api_token.js +3 -3
  23. package/dist/auth/audit_log_schema.d.ts +28 -48
  24. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  25. package/dist/auth/audit_log_schema.js +34 -30
  26. package/dist/auth/bootstrap_route_schema.d.ts +173 -50
  27. package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
  28. package/dist/auth/bootstrap_route_schema.js +35 -16
  29. package/dist/auth/cell_grant_action_specs.d.ts +1 -1
  30. package/dist/auth/cell_grant_action_specs.js +1 -1
  31. package/dist/auth/cell_grant_actions.d.ts +4 -4
  32. package/dist/auth/cell_grant_actions.d.ts.map +1 -1
  33. package/dist/auth/cell_grant_actions.js +1 -1
  34. package/dist/auth/credential_type_schema.d.ts +16 -29
  35. package/dist/auth/credential_type_schema.d.ts.map +1 -1
  36. package/dist/auth/credential_type_schema.js +14 -18
  37. package/dist/auth/grant_path_schema.d.ts +15 -29
  38. package/dist/auth/grant_path_schema.d.ts.map +1 -1
  39. package/dist/auth/grant_path_schema.js +13 -17
  40. package/dist/auth/migrations.js +1 -1
  41. package/dist/auth/name_schema.d.ts +7 -6
  42. package/dist/auth/name_schema.d.ts.map +1 -1
  43. package/dist/auth/name_schema.js +8 -9
  44. package/dist/auth/password.d.ts +15 -7
  45. package/dist/auth/password.d.ts.map +1 -1
  46. package/dist/auth/password.js +16 -9
  47. package/dist/auth/role_grant_offer_action_specs.js +2 -2
  48. package/dist/auth/role_grant_offer_actions.d.ts +4 -4
  49. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  50. package/dist/auth/role_grant_offer_actions.js +3 -3
  51. package/dist/auth/role_grant_offer_notifications.js +2 -2
  52. package/dist/auth/role_grant_offer_schema.d.ts +2 -2
  53. package/dist/auth/role_grant_offer_schema.js +2 -2
  54. package/dist/auth/role_schema.d.ts +47 -55
  55. package/dist/auth/role_schema.d.ts.map +1 -1
  56. package/dist/auth/role_schema.js +29 -35
  57. package/dist/auth/scope_kind_schema.d.ts +22 -26
  58. package/dist/auth/scope_kind_schema.d.ts.map +1 -1
  59. package/dist/auth/scope_kind_schema.js +19 -19
  60. package/dist/auth/self_service_role_action_specs.js +1 -1
  61. package/dist/auth/self_service_role_actions.d.ts +6 -6
  62. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  63. package/dist/auth/self_service_role_actions.js +7 -6
  64. package/dist/auth/signup_route_schema.d.ts +71 -21
  65. package/dist/auth/signup_route_schema.d.ts.map +1 -1
  66. package/dist/auth/signup_route_schema.js +18 -16
  67. package/dist/auth/standard_rpc_actions.d.ts +1 -1
  68. package/dist/auth/standard_rpc_actions.js +1 -1
  69. package/dist/auth/token_lifetime.d.ts +33 -9
  70. package/dist/auth/token_lifetime.d.ts.map +1 -1
  71. package/dist/auth/token_lifetime.js +8 -7
  72. package/dist/auth/token_scope.d.ts +99 -25
  73. package/dist/auth/token_scope.d.ts.map +1 -1
  74. package/dist/auth/token_scope.js +57 -35
  75. package/dist/primitive_schemas.d.ts +2 -19
  76. package/dist/primitive_schemas.d.ts.map +1 -1
  77. package/dist/primitive_schemas.js +2 -20
  78. package/dist/primitive_schemas_fuz.d.ts +22 -2
  79. package/dist/primitive_schemas_fuz.d.ts.map +1 -1
  80. package/dist/primitive_schemas_fuz.js +23 -4
  81. package/dist/testing/CLAUDE.md +22 -5
  82. package/dist/testing/admin_integration.d.ts +3 -3
  83. package/dist/testing/admin_integration.d.ts.map +1 -1
  84. package/dist/testing/admin_integration.js +1 -1
  85. package/dist/testing/cross_backend/default_spine_surface.d.ts +2 -2
  86. package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
  87. package/dist/testing/cross_backend/default_spine_surface.js +2 -2
  88. package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
  89. package/dist/testing/cross_backend/identity_parity.js +39 -6
  90. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +3 -3
  91. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  92. package/dist/testing/cross_backend/setup.d.ts +1 -1
  93. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  94. package/dist/testing/cross_backend/setup.js +45 -42
  95. package/dist/testing/cross_backend/spine_suites.d.ts +3 -3
  96. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  97. package/dist/testing/cross_backend/standard.d.ts +4 -4
  98. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  99. package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
  100. package/dist/testing/cross_backend/token_lifetime.js +34 -1
  101. package/dist/testing/integration.js +1 -1
  102. package/dist/testing/token_scope_fixtures.d.ts +24 -0
  103. package/dist/testing/token_scope_fixtures.d.ts.map +1 -0
  104. package/dist/testing/token_scope_fixtures.js +49 -0
  105. package/dist/testing/transports/bootstrap.d.ts +1 -1
  106. package/dist/testing/transports/bootstrap.d.ts.map +1 -1
  107. package/dist/testing/transports/bootstrap.js +13 -12
  108. package/dist/ui/BootstrapForm.svelte +4 -2
  109. package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
  110. package/dist/ui/SignupForm.svelte +4 -2
  111. package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
  112. package/package.json +1 -1
  113. package/dist/auth/audit_log_schema_fuz.d.ts +0 -53
  114. package/dist/auth/audit_log_schema_fuz.d.ts.map +0 -1
  115. package/dist/auth/audit_log_schema_fuz.js +0 -50
  116. package/dist/auth/role_schema_fuz.d.ts +0 -30
  117. package/dist/auth/role_schema_fuz.d.ts.map +0 -1
  118. package/dist/auth/role_schema_fuz.js +0 -30
  119. package/dist/auth/scope_kind_schema_fuz.d.ts +0 -31
  120. package/dist/auth/scope_kind_schema_fuz.d.ts.map +0 -1
  121. 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
  };