@fuzdev/fuz_app 0.155.1 → 0.157.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.
- package/dist/actions/CLAUDE.md +27 -14
- package/dist/actions/action_codegen.d.ts +10 -3
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_codegen.js +52 -13
- package/dist/actions/action_event.d.ts.map +1 -1
- package/dist/actions/action_event.js +13 -11
- package/dist/actions/action_rpc.d.ts +4 -3
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +4 -3
- package/dist/actions/action_spec.d.ts +102 -206
- package/dist/actions/action_spec.d.ts.map +1 -1
- package/dist/actions/action_spec.js +18 -96
- package/dist/actions/action_types.d.ts +4 -4
- package/dist/actions/action_types.d.ts.map +1 -1
- package/dist/actions/action_types.js +2 -2
- package/dist/actions/broadcast_api.d.ts.map +1 -1
- package/dist/actions/broadcast_api.js +6 -5
- package/dist/actions/compile_action_registry.d.ts +11 -6
- package/dist/actions/compile_action_registry.d.ts.map +1 -1
- package/dist/actions/compile_action_registry.js +15 -9
- package/dist/actions/perform_action.d.ts +4 -4
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/perform_action.js +11 -11
- package/dist/auth/CLAUDE.md +1 -1
- package/dist/auth/account_action_specs.d.ts +50 -23
- package/dist/auth/account_action_specs.d.ts.map +1 -1
- package/dist/auth/account_action_specs.js +18 -8
- package/dist/auth/account_route_schema.d.ts +10 -10
- package/dist/auth/account_schema.d.ts +21 -21
- package/dist/auth/actor_lookup_action_specs.d.ts +7 -7
- package/dist/auth/actor_search_action_specs.d.ts +6 -6
- package/dist/auth/admin_action_specs.d.ts +98 -98
- package/dist/auth/app_settings_schema.d.ts +2 -2
- package/dist/auth/audit_log_route_schema.d.ts +1 -1
- package/dist/auth/audit_log_schema.d.ts +44 -44
- package/dist/auth/auth_guard_resolver.d.ts +2 -2
- package/dist/auth/auth_guard_resolver.js +2 -2
- package/dist/auth/bootstrap_route_schema.d.ts +4 -4
- package/dist/auth/cell_action_specs.d.ts +241 -241
- package/dist/auth/cell_actions.js +3 -3
- package/dist/auth/cell_audit_action_specs.d.ts +14 -14
- package/dist/auth/cell_audit_metadata.d.ts +6 -6
- package/dist/auth/cell_field_action_specs.d.ts +38 -38
- package/dist/auth/cell_field_audit_metadata.d.ts +4 -4
- package/dist/auth/cell_grant_action_specs.d.ts +61 -61
- package/dist/auth/cell_grant_audit_metadata.d.ts +10 -10
- package/dist/auth/cell_item_action_specs.d.ts +50 -50
- package/dist/auth/cell_item_audit_metadata.d.ts +5 -5
- package/dist/auth/invite_schema.d.ts +6 -6
- package/dist/auth/role_grant_offer_action_specs.d.ts +120 -120
- package/dist/auth/role_grant_offer_notifications.d.ts +66 -66
- package/dist/auth/role_grant_offer_schema.d.ts +6 -6
- package/dist/auth/self_service_role_action_specs.d.ts +2 -2
- package/dist/auth/signup_route_schema.d.ts +2 -2
- package/dist/http/CLAUDE.md +26 -17
- package/dist/http/auth_shape.d.ts +51 -17
- package/dist/http/auth_shape.d.ts.map +1 -1
- package/dist/http/auth_shape.js +101 -52
- package/dist/http/error_schemas.d.ts +15 -8
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/error_schemas.js +4 -9
- package/dist/http/jsonrpc_errors.d.ts +11 -4
- package/dist/http/jsonrpc_errors.d.ts.map +1 -1
- package/dist/http/jsonrpc_errors.js +11 -4
- package/dist/http/jsonrpc_helpers.d.ts.map +1 -1
- package/dist/http/jsonrpc_helpers.js +2 -1
- package/dist/http/route_spec.d.ts +37 -19
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +54 -24
- package/dist/http/schema_helpers.d.ts +27 -24
- package/dist/http/schema_helpers.d.ts.map +1 -1
- package/dist/http/schema_helpers.js +24 -19
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/http/surface.js +7 -3
- package/dist/primitive_schemas.d.ts +16 -5
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/primitive_schemas.js +26 -4
- package/dist/primitive_schemas_fuz.d.ts +67 -0
- package/dist/primitive_schemas_fuz.d.ts.map +1 -0
- package/dist/primitive_schemas_fuz.js +47 -0
- package/dist/realtime/sse.d.ts +3 -3
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse.js +4 -4
- package/dist/schema_issues.d.ts +91 -4
- package/dist/schema_issues.d.ts.map +1 -1
- package/dist/schema_issues.js +262 -1
- package/dist/schema_meta.d.ts +24 -8
- package/dist/schema_meta.d.ts.map +1 -1
- package/dist/schema_meta.js +31 -10
- package/dist/server/serve_fact_route.d.ts.map +1 -1
- package/dist/server/serve_fact_route.js +2 -1
- package/dist/testing/CLAUDE.md +23 -17
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/admin_integration.js +3 -2
- package/dist/testing/adversarial_404.d.ts +2 -2
- package/dist/testing/adversarial_404.d.ts.map +1 -1
- package/dist/testing/adversarial_404.js +8 -5
- package/dist/testing/adversarial_input.js +1 -1
- package/dist/testing/adversarial_input_cases.d.ts +18 -23
- package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
- package/dist/testing/adversarial_input_cases.js +51 -46
- package/dist/testing/assertions.d.ts +6 -5
- package/dist/testing/assertions.d.ts.map +1 -1
- package/dist/testing/assertions.js +9 -4
- package/dist/testing/cross_backend/action_manifest.d.ts +2 -1
- package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest.js +3 -3
- package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_crud.js +3 -8
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.js +5 -4
- package/dist/testing/cross_backend/cross_rpc.d.ts +4 -2
- package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
- package/dist/testing/cross_backend/cross_rpc.js +6 -4
- package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
- package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/sse_round_trip.js +3 -2
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +8 -8
- package/dist/testing/error_coverage.d.ts +9 -17
- package/dist/testing/error_coverage.d.ts.map +1 -1
- package/dist/testing/error_coverage.js +20 -3
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +7 -6
- package/dist/testing/rpc_envelope_cases.d.ts +3 -3
- package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
- package/dist/testing/rpc_envelope_cases.js +1 -1
- package/dist/testing/rpc_helpers.d.ts +12 -8
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +18 -15
- package/dist/testing/schema_generators.d.ts +75 -40
- package/dist/testing/schema_generators.d.ts.map +1 -1
- package/dist/testing/schema_generators.js +273 -99
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +4 -3
- package/dist/ui/admin_accounts_state.svelte.d.ts +10 -10
- package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_invites_state.svelte.d.ts +1 -1
- package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_sessions_state.svelte.d.ts +2 -2
- package/dist/ui/admin_sessions_state.svelte.d.ts.map +1 -1
- package/dist/ui/role_grant_offers_state.svelte.d.ts +6 -6
- package/dist/zod.d.ts +23 -5
- package/dist/zod.d.ts.map +1 -1
- package/dist/zod.js +2 -2
- package/package.json +6 -6
|
@@ -182,19 +182,41 @@ export const Email = z
|
|
|
182
182
|
});
|
|
183
183
|
/** Returns a new random (v4) `Uuid`. */
|
|
184
184
|
export const create_uuid = () => crypto.randomUUID();
|
|
185
|
+
/**
|
|
186
|
+
* The UUID grammar of RFC 9562, in either case: five groups of hex digits,
|
|
187
|
+
* 8-4-4-4-12, with a version from 1 to 8 and the RFC's variant, or the nil or
|
|
188
|
+
* the max UUID. It is `z.uuid()`'s own but for the max UUID, which `z.uuid()`
|
|
189
|
+
* spells in lowercase only, where RFC 9562 §4 reads a UUID case-insensitively.
|
|
190
|
+
* The same source as the pattern fuz_schema's `uuid` renders to JSON Schema,
|
|
191
|
+
* which a test holds it to, and the grammar of the Rust spine's
|
|
192
|
+
* `is_valid_uuid`.
|
|
193
|
+
*/
|
|
194
|
+
const UUID_REGEX = /^(?:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$/;
|
|
185
195
|
/**
|
|
186
196
|
* Branded UUID schema. Accepts either case and outputs lowercase — the form
|
|
187
197
|
* Postgres renders a `uuid` in and every id the server mints — so a parsed id
|
|
188
198
|
* compares equal to the same id read back from the database. The Rust spine
|
|
189
|
-
* canonicalizes the same way
|
|
190
|
-
*
|
|
191
|
-
*
|
|
199
|
+
* canonicalizes the same way, and its grammar is this one, the fuz_schema
|
|
200
|
+
* twin's in `primitive_schemas_fuz.ts`: `z.uuid()` with the max UUID taken in
|
|
201
|
+
* any case. Issues and JSON Schema keep `format: 'uuid'`; only the `pattern`
|
|
202
|
+
* differs from a bare `z.uuid()`'s, rendered or on a Zod issue (the wire
|
|
203
|
+
* issue drops it).
|
|
204
|
+
*
|
|
205
|
+
* `pattern` is a `$ZodUUIDDef` field that `z.uuid()` honors (its default
|
|
206
|
+
* applies only when none is given) but whose public params type omits it,
|
|
207
|
+
* hence the cast on the params.
|
|
192
208
|
*
|
|
193
209
|
* `.toLowerCase()` rather than `.transform()`: an overwrite keeps the output
|
|
194
210
|
* type and stays invisible to `z.toJSONSchema`, where a transform would leave
|
|
195
211
|
* no input schema to render.
|
|
212
|
+
*
|
|
213
|
+
* The output type is fuz_schema's `Branded<string, 'Uuid'>`, the twin's, by a
|
|
214
|
+
* cast as on `FactHashSchema`: Zod's `.brand('Uuid')` would output Zod's own
|
|
215
|
+
* brand, which a fuz_schema `Uuid` isn't assignable to.
|
|
196
216
|
*/
|
|
197
|
-
export const Uuid = z
|
|
217
|
+
export const Uuid = z
|
|
218
|
+
.uuid({ pattern: UUID_REGEX })
|
|
219
|
+
.toLowerCase();
|
|
198
220
|
/** `Uuid` that defaults to a fresh `create_uuid()` when the input is `undefined`. */
|
|
199
221
|
export const UuidWithDefault = Uuid.default(create_uuid);
|
|
200
222
|
/**
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@fuzdev/fuz_schema` twins of the Zod `Uuid`, `UuidWithDefault`
|
|
3
|
+
* (`primitive_schemas.ts`), and `ActingActor` (`http/auth_shape.ts`), under the
|
|
4
|
+
* same names, for inputs written in fuz_schema.
|
|
5
|
+
*
|
|
6
|
+
* The output type is shared: the Zod `Uuid` outputs fuz_schema's
|
|
7
|
+
* `Branded<string, 'Uuid'>` too, so a value parsed by either twin goes where
|
|
8
|
+
* the other's is taken.
|
|
9
|
+
*
|
|
10
|
+
* Both twins have one grammar, RFC 9562's read case-insensitively as its §4
|
|
11
|
+
* says, the max UUID included, and the Rust spine's: every input gets the same
|
|
12
|
+
* verdict and output from both, and their JSON Schema is the same.
|
|
13
|
+
*
|
|
14
|
+
* The exports are `@nodocs` while the Zod schemas of the same names stay, as
|
|
15
|
+
* the docs build refuses two exports of one name.
|
|
16
|
+
*
|
|
17
|
+
* @module
|
|
18
|
+
*/
|
|
19
|
+
import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
|
|
20
|
+
/**
|
|
21
|
+
* Branded UUID schema: a UUID of RFC 9562 in either case, output in
|
|
22
|
+
* lowercase, the form Postgres renders a `uuid` in and every id the server
|
|
23
|
+
* mints. The brand goes outside the `to_lower_case`, which outputs a new
|
|
24
|
+
* string.
|
|
25
|
+
*
|
|
26
|
+
* @nodocs
|
|
27
|
+
*/
|
|
28
|
+
export declare const Uuid: 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<"to_lower_case"> | 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">)[]> & {
|
|
29
|
+
readonly '~types'?: {
|
|
30
|
+
readonly input: string;
|
|
31
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
32
|
+
} | undefined;
|
|
33
|
+
};
|
|
34
|
+
/** @nodocs */
|
|
35
|
+
export type Uuid = Infer<typeof Uuid>;
|
|
36
|
+
/**
|
|
37
|
+
* `Uuid` that defaults to a fresh `create_uuid()` when the input is `undefined`.
|
|
38
|
+
*
|
|
39
|
+
* @nodocs
|
|
40
|
+
*/
|
|
41
|
+
export declare const UuidWithDefault: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string | undefined, "with_default_fn", import("@fuzdev/fuz_schema/schema.ts").SchemaDefaultFnDef<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<"to_lower_case"> | 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">)[]> & {
|
|
42
|
+
readonly '~types'?: {
|
|
43
|
+
readonly input: string;
|
|
44
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
45
|
+
} | undefined;
|
|
46
|
+
}>>;
|
|
47
|
+
/** @nodocs */
|
|
48
|
+
export type UuidWithDefault = Infer<typeof UuidWithDefault>;
|
|
49
|
+
/** The `description` both `ActingActor` twins carry. */
|
|
50
|
+
export declare const ACTING_ACTOR_DESCRIPTION = "Actor on the authenticated account that this request acts as. Omit on single-actor accounts; required on multi-actor.";
|
|
51
|
+
/**
|
|
52
|
+
* The `acting` field of an input that needs the caller's acting actor, the
|
|
53
|
+
* twin of `ActingActor` in `http/auth_shape.ts`, whose doc has the resolution
|
|
54
|
+
* rules. The dispatcher finds either twin by reference, so an input declares
|
|
55
|
+
* this export, not a copy of it.
|
|
56
|
+
*
|
|
57
|
+
* @nodocs
|
|
58
|
+
*/
|
|
59
|
+
export declare const ActingActor: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<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<"to_lower_case"> | 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">)[]> & {
|
|
60
|
+
readonly '~types'?: {
|
|
61
|
+
readonly input: string;
|
|
62
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
63
|
+
} | undefined;
|
|
64
|
+
}>>;
|
|
65
|
+
/** @nodocs */
|
|
66
|
+
export type ActingActor = Infer<typeof ActingActor>;
|
|
67
|
+
//# sourceMappingURL=primitive_schemas_fuz.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive_schemas_fuz.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/primitive_schemas_fuz.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAQN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAItC;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI;;;;;CAAmD,CAAC;AACrE,cAAc;AACd,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;GAAqC,CAAC;AAClE,cAAc;AACd,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE5D,wDAAwD;AACxD,eAAO,MAAM,wBAAwB,0HACmF,CAAC;AAEzH;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;;;;;GAAkE,CAAC;AAC3F,cAAc;AACd,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@fuzdev/fuz_schema` twins of the Zod `Uuid`, `UuidWithDefault`
|
|
3
|
+
* (`primitive_schemas.ts`), and `ActingActor` (`http/auth_shape.ts`), under the
|
|
4
|
+
* same names, for inputs written in fuz_schema.
|
|
5
|
+
*
|
|
6
|
+
* The output type is shared: the Zod `Uuid` outputs fuz_schema's
|
|
7
|
+
* `Branded<string, 'Uuid'>` too, so a value parsed by either twin goes where
|
|
8
|
+
* the other's is taken.
|
|
9
|
+
*
|
|
10
|
+
* Both twins have one grammar, RFC 9562's read case-insensitively as its §4
|
|
11
|
+
* says, the max UUID included, and the Rust spine's: every input gets the same
|
|
12
|
+
* verdict and output from both, and their JSON Schema is the same.
|
|
13
|
+
*
|
|
14
|
+
* The exports are `@nodocs` while the Zod schemas of the same names stay, as
|
|
15
|
+
* the docs build refuses two exports of one name.
|
|
16
|
+
*
|
|
17
|
+
* @module
|
|
18
|
+
*/
|
|
19
|
+
import { meta } from '@fuzdev/fuz_schema/meta.ts';
|
|
20
|
+
import { brand, optional, pipe, string, to_lower_case, uuid, with_default_fn } from '@fuzdev/fuz_schema/schema.ts';
|
|
21
|
+
import { create_uuid } from './primitive_schemas.js';
|
|
22
|
+
/**
|
|
23
|
+
* Branded UUID schema: a UUID of RFC 9562 in either case, output in
|
|
24
|
+
* lowercase, the form Postgres renders a `uuid` in and every id the server
|
|
25
|
+
* mints. The brand goes outside the `to_lower_case`, which outputs a new
|
|
26
|
+
* string.
|
|
27
|
+
*
|
|
28
|
+
* @nodocs
|
|
29
|
+
*/
|
|
30
|
+
export const Uuid = brand(pipe(string, uuid, to_lower_case), 'Uuid');
|
|
31
|
+
/**
|
|
32
|
+
* `Uuid` that defaults to a fresh `create_uuid()` when the input is `undefined`.
|
|
33
|
+
*
|
|
34
|
+
* @nodocs
|
|
35
|
+
*/
|
|
36
|
+
export const UuidWithDefault = with_default_fn(Uuid, create_uuid);
|
|
37
|
+
/** The `description` both `ActingActor` twins carry. */
|
|
38
|
+
export const ACTING_ACTOR_DESCRIPTION = 'Actor on the authenticated account that this request acts as. Omit on single-actor accounts; required on multi-actor.';
|
|
39
|
+
/**
|
|
40
|
+
* The `acting` field of an input that needs the caller's acting actor, the
|
|
41
|
+
* twin of `ActingActor` in `http/auth_shape.ts`, whose doc has the resolution
|
|
42
|
+
* rules. The dispatcher finds either twin by reference, so an input declares
|
|
43
|
+
* this export, not a copy of it.
|
|
44
|
+
*
|
|
45
|
+
* @nodocs
|
|
46
|
+
*/
|
|
47
|
+
export const ActingActor = meta(optional(Uuid), { description: ACTING_ACTOR_DESCRIPTION });
|
package/dist/realtime/sse.d.ts
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
* @module
|
|
32
32
|
*/
|
|
33
33
|
import type { Context } from 'hono';
|
|
34
|
-
import { z } from 'zod';
|
|
35
34
|
import type { Logger } from '@fuzdev/fuz_util/log.ts';
|
|
35
|
+
import { type ValidationSchema } from '../schema_issues.js';
|
|
36
36
|
/**
|
|
37
37
|
* Generic SSE stream controller interface.
|
|
38
38
|
*
|
|
@@ -118,8 +118,8 @@ export declare const create_sse_response: <T = unknown>(c: Context, log: Logger,
|
|
|
118
118
|
export interface EventSpec {
|
|
119
119
|
/** Event method name, used as the JSON-RPC notification `method`. */
|
|
120
120
|
method: string;
|
|
121
|
-
/**
|
|
122
|
-
params:
|
|
121
|
+
/** Schema for the notification `params` payload, Zod or `@fuzdev/fuz_schema`. */
|
|
122
|
+
params: ValidationSchema;
|
|
123
123
|
/** Human-readable description for surface output and docs. */
|
|
124
124
|
description: string;
|
|
125
125
|
/** Channel this event broadcasts on. Omit for cross-channel events. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sse.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/realtime/sse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"sse.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/realtime/sse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AASvE;;;;GAIG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,OAAO;IACrC;;;;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AAE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,CAAA;CAmBjD,CAAC"}
|
package/dist/realtime/sse.js
CHANGED
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
* @module
|
|
32
32
|
*/
|
|
33
33
|
import { streamSSE } from 'hono/streaming';
|
|
34
|
-
import { z } from 'zod';
|
|
35
34
|
import { DEV } from 'esm-env';
|
|
36
35
|
import { utf8_length } from '../actions/transports.js';
|
|
37
36
|
import { OutboundBudget } from './outbound_budget.js';
|
|
37
|
+
import { parse_any } from '../schema_issues.js';
|
|
38
38
|
import { SSE_CONNECTED_COMMENT, SSE_KEEP_ALIVE_COMMENT, SSE_KEEP_ALIVE_INTERVAL_MS, SSE_OUTBOUND_QUEUE_BYTES, validate_sse_keep_alive_ms } from './sse_constants.js';
|
|
39
39
|
const is_node_connection_stream = (value) => {
|
|
40
40
|
if (typeof value !== 'object' || value === null)
|
|
@@ -249,9 +249,9 @@ export const create_validated_broadcaster = (broadcaster, event_specs, log) => {
|
|
|
249
249
|
log.warn(`Unknown event method: '${data.method}'`);
|
|
250
250
|
}
|
|
251
251
|
else {
|
|
252
|
-
const result = spec.params
|
|
253
|
-
if (!result.
|
|
254
|
-
log.warn(`Params mismatch for '${data.method}':`, result.
|
|
252
|
+
const result = parse_any(spec.params, data.params);
|
|
253
|
+
if (!result.ok) {
|
|
254
|
+
log.warn(`Params mismatch for '${data.method}':`, result.issues);
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
broadcaster.broadcast(channel, data);
|
package/dist/schema_issues.d.ts
CHANGED
|
@@ -4,17 +4,42 @@
|
|
|
4
4
|
* wholly one library, so one parse's issues are all of one kind; these
|
|
5
5
|
* helpers read either, so the dispatcher, `ActionEvent` and the
|
|
6
6
|
* forward-compatible reads treat a spec the same whichever library it is
|
|
7
|
-
* written in
|
|
7
|
+
* written in, and an error response carries either library's issues in one
|
|
8
|
+
* shape, `WireIssue`.
|
|
8
9
|
*
|
|
9
10
|
* @module
|
|
10
11
|
*/
|
|
11
12
|
import { z } from 'zod';
|
|
12
|
-
import { SchemaError, type AnySchema, type Infer, type SchemaIssue } from '@fuzdev/fuz_schema/schema.ts';
|
|
13
|
+
import { SchemaError, type AnySchema, type Infer, type InferInput, type Schema, type SchemaIssue } from '@fuzdev/fuz_schema/schema.ts';
|
|
13
14
|
import type { Result } from '@fuzdev/fuz_util/result.ts';
|
|
14
15
|
/** A schema of either library: a Zod schema or a `@fuzdev/fuz_schema` one. */
|
|
15
16
|
export type ValidationSchema = z.ZodType | AnySchema;
|
|
16
|
-
/**
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Whether `value` is a Zod schema. Zod's `instanceof` reads the schema's
|
|
19
|
+
* traits, so a schema made by another copy of Zod is one too.
|
|
20
|
+
*
|
|
21
|
+
* @param value - any value
|
|
22
|
+
*/
|
|
23
|
+
export declare const is_zod_schema: (value: unknown) => value is z.ZodType;
|
|
24
|
+
/**
|
|
25
|
+
* Throw unless `value` is a Zod schema, naming `label` — what a reader of a
|
|
26
|
+
* spec's schema calls once it has ruled out a `@fuzdev/fuz_schema` schema
|
|
27
|
+
* (`is_schema`), so a value of neither library fails loudly where it is read,
|
|
28
|
+
* rather than as a `TypeError` deeper in or a silent `undefined`.
|
|
29
|
+
*
|
|
30
|
+
* @param value - the schema, known not to be a fuz_schema schema
|
|
31
|
+
* @param label - names the schema in the error, e.g. `` `action 'foo' input` ``
|
|
32
|
+
* @throws Error when `value` is not a Zod schema, saying it is of neither library
|
|
33
|
+
*/
|
|
34
|
+
export declare function assert_zod_schema(value: unknown, label: string): asserts value is z.ZodType;
|
|
35
|
+
/**
|
|
36
|
+
* The output type of a `ValidationSchema`: fuz_schema's `Infer` or Zod's
|
|
37
|
+
* `z.output`. The test narrows `T` itself: `Infer<T & Schema>` would read as
|
|
38
|
+
* `unknown`.
|
|
39
|
+
*/
|
|
40
|
+
export type ValidationOutput<T extends ValidationSchema> = T extends Schema ? Infer<T> : T extends z.ZodType ? z.output<T> : never;
|
|
41
|
+
/** The input type of a `ValidationSchema`: fuz_schema's `InferInput` or Zod's `z.input`. */
|
|
42
|
+
export type ValidationInput<T extends ValidationSchema> = T extends Schema ? InferInput<T> : T extends z.ZodType ? z.input<T> : never;
|
|
18
43
|
/** One issue of a failed parse, in the library's own shape. */
|
|
19
44
|
export type AnyIssue = z.core.$ZodIssue | SchemaIssue;
|
|
20
45
|
/** What `parse_any` returns: the output, or the failed parse's issues in the library's order. */
|
|
@@ -33,6 +58,7 @@ export type ParseAnyResult<T> = Result<{
|
|
|
33
58
|
* @param schema - a Zod or fuz_schema schema
|
|
34
59
|
* @param value - the value to validate
|
|
35
60
|
* @returns the output, or the issues
|
|
61
|
+
* @throws Error when `schema` is neither a Zod nor a fuz_schema schema
|
|
36
62
|
*/
|
|
37
63
|
export declare const parse_any: <T extends ValidationSchema>(schema: T, value: unknown) => ParseAnyResult<ValidationOutput<T>>;
|
|
38
64
|
/**
|
|
@@ -93,4 +119,65 @@ export declare const format_issues: (issues: ReadonlyArray<AnyIssue>) => string;
|
|
|
93
119
|
* @param err - a caught value
|
|
94
120
|
*/
|
|
95
121
|
export declare const is_schema_validation_error: (err: unknown) => err is z.ZodError | SchemaError;
|
|
122
|
+
/**
|
|
123
|
+
* A validation issue as an error response carries it, for either schema
|
|
124
|
+
* library: `@fuzdev/fuz_schema`'s `SchemaIssue` as JSON, with `message` the
|
|
125
|
+
* text of the issue. `to_wire_issues` builds it from either library's issues.
|
|
126
|
+
*
|
|
127
|
+
* Loose: a client reads it, and a newer server may add fields.
|
|
128
|
+
*/
|
|
129
|
+
export declare const WireIssue: z.ZodObject<{
|
|
130
|
+
kind: z.ZodString;
|
|
131
|
+
path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
132
|
+
expected: z.ZodString;
|
|
133
|
+
received: z.ZodString;
|
|
134
|
+
message: z.ZodString;
|
|
135
|
+
}, z.core.$loose>;
|
|
136
|
+
export type WireIssue = z.infer<typeof WireIssue>;
|
|
137
|
+
/**
|
|
138
|
+
* A failed parse's issues as `WireIssue`s, whichever library made them.
|
|
139
|
+
*
|
|
140
|
+
* A fuz_schema issue keeps its `kind`, `path`, `expected` and `received`, and
|
|
141
|
+
* its `message` is `format_issue`'s text, the path included.
|
|
142
|
+
*
|
|
143
|
+
* A Zod issue maps to the kind fuz_schema reports for the same check, its
|
|
144
|
+
* `message` Zod's own text, which names no path:
|
|
145
|
+
*
|
|
146
|
+
* - `invalid_type` — the type's kind (`string`, `number`, `boolean`,
|
|
147
|
+
* `bigint`, `object`, `record`, `array`); `int` is `integer`, a `tuple` an
|
|
148
|
+
* `array`, `null`, `undefined`, `void` and `nan` a `literal` of the value,
|
|
149
|
+
* `nonoptional` a `missing_key`, and a type fuz_schema has no kind for
|
|
150
|
+
* (`date`, `map`, `set`, `file`, `symbol`, `function`, `never`) a `check`
|
|
151
|
+
* expecting the type's name. A missing key is reported as fuz_schema
|
|
152
|
+
* reports it, as the type expected with `received: 'undefined'`.
|
|
153
|
+
* - `too_small` / `too_big` — `min_length` / `max_length` for a string,
|
|
154
|
+
* array, set or file (`length >= N`), `min_value` / `max_value` otherwise
|
|
155
|
+
* (`>= N`); an exclusive bound writes `>` or `<`, which fuz_schema has no
|
|
156
|
+
* check for, and an exact length is reported as the bound it broke.
|
|
157
|
+
* - `invalid_format` — `uuid` for a `uuid` or `guid`, `iso_datetime` for a
|
|
158
|
+
* `datetime`, `regex` for a `regex` (expecting its pattern), and a `check`
|
|
159
|
+
* expecting the format's name for every other format.
|
|
160
|
+
* - `unrecognized_keys` — an `unknown_key` per key, the key appended to the
|
|
161
|
+
* path, as fuz_schema reports them.
|
|
162
|
+
* - `invalid_union` — a `variant` expecting the options when Zod names a
|
|
163
|
+
* discriminator, else a `union` expecting each option as fuz_schema names
|
|
164
|
+
* it: by the type or the values it expected of the value, or by the
|
|
165
|
+
* value's type when the option took the type and failed a refinement or a
|
|
166
|
+
* field below. A union refused because more than one option matched is a
|
|
167
|
+
* `union` expecting `exactly one option`.
|
|
168
|
+
* - `invalid_value` — a `literal` of one value, a `one_of` of more.
|
|
169
|
+
* - `custom` — a `check`; `not_multiple_of` a `check` expecting
|
|
170
|
+
* `multiple of N`; `invalid_key` and `invalid_element` a `check` expecting
|
|
171
|
+
* `a valid key` / `a valid element`.
|
|
172
|
+
*
|
|
173
|
+
* A Zod issue holds no value, so `received` is read from `input` at the
|
|
174
|
+
* issue's path: `'undefined'` where a key is missing or the path leads
|
|
175
|
+
* through something that isn't an object. Where an earlier step of a Zod
|
|
176
|
+
* pipe replaced the value, it names the input's value, not the replacement.
|
|
177
|
+
*
|
|
178
|
+
* @param issues - a failed parse's issues, either library
|
|
179
|
+
* @param input - the value that was parsed
|
|
180
|
+
* @returns the issues, one per issue but for a Zod `unrecognized_keys`, which is one per key
|
|
181
|
+
*/
|
|
182
|
+
export declare const to_wire_issues: (issues: ReadonlyArray<AnyIssue>, input: unknown) => Array<WireIssue>;
|
|
96
183
|
//# sourceMappingURL=schema_issues.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema_issues.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/schema_issues.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema_issues.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/schema_issues.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAIN,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEzD,8EAA8E;AAC9E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,OAAO,GAAG,SAAS,CAAC;A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