@fuzdev/fuz_app 0.168.1 → 0.170.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 +17 -19
- package/dist/actions/action_codegen.d.ts +32 -23
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_codegen.js +101 -80
- package/dist/actions/action_event.d.ts +0 -8
- package/dist/actions/action_event.d.ts.map +1 -1
- package/dist/actions/action_event.js +7 -6
- package/dist/actions/action_event_data.d.ts +18 -18
- package/dist/actions/action_rpc.d.ts +1 -1
- package/dist/actions/action_rpc.js +1 -1
- package/dist/actions/action_spec.d.ts +8 -10
- package/dist/actions/action_spec.d.ts.map +1 -1
- package/dist/actions/action_spec.js +1 -1
- 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 +2 -2
- package/dist/actions/broadcast_api.js +4 -4
- package/dist/actions/compile_action_registry.d.ts +6 -7
- package/dist/actions/compile_action_registry.d.ts.map +1 -1
- package/dist/actions/compile_action_registry.js +8 -9
- package/dist/actions/perform_action.d.ts +6 -6
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/perform_action.js +11 -10
- package/dist/actions/socket.svelte.d.ts +1 -1
- package/dist/actions/socket.svelte.js +2 -2
- package/dist/auth/CLAUDE.md +11 -11
- package/dist/auth/account_action_specs.d.ts +11 -11
- package/dist/auth/account_action_specs.js +1 -1
- package/dist/auth/account_route_schema.d.ts +18 -18
- package/dist/auth/account_route_schema.js +1 -1
- package/dist/auth/account_routes.js +1 -1
- package/dist/auth/account_schema.d.ts +38 -40
- package/dist/auth/account_schema.d.ts.map +1 -1
- package/dist/auth/account_schema.js +7 -8
- package/dist/auth/actor_lookup_action_specs.d.ts +7 -7
- package/dist/auth/actor_lookup_action_specs.js +1 -1
- package/dist/auth/actor_search_action_specs.d.ts +6 -6
- package/dist/auth/actor_search_action_specs.js +1 -1
- package/dist/auth/admin_action_specs.d.ts +166 -166
- package/dist/auth/admin_action_specs.js +1 -1
- package/dist/auth/app_settings_schema.d.ts +3 -3
- package/dist/auth/app_settings_schema.d.ts.map +1 -1
- package/dist/auth/app_settings_schema.js +1 -1
- package/dist/auth/audit_emitter.d.ts +6 -7
- package/dist/auth/audit_emitter.d.ts.map +1 -1
- package/dist/auth/audit_emitter.js +11 -22
- package/dist/auth/audit_log_ddl.d.ts +1 -1
- package/dist/auth/audit_log_ddl.js +1 -1
- package/dist/auth/audit_log_queries.d.ts +0 -13
- package/dist/auth/audit_log_queries.d.ts.map +1 -1
- package/dist/auth/audit_log_queries.js +3 -3
- package/dist/auth/audit_log_route_schema.d.ts +1 -1
- package/dist/auth/audit_log_route_schema.js +1 -1
- package/dist/auth/audit_log_schema.d.ts +69 -70
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +2 -2
- package/dist/auth/auth_ddl.d.ts +1 -1
- package/dist/auth/auth_ddl.js +1 -1
- package/dist/auth/bootstrap_route_schema.d.ts +4 -4
- package/dist/auth/bootstrap_route_schema.js +1 -1
- package/dist/auth/cell_action_specs.d.ts +466 -466
- package/dist/auth/cell_action_specs.js +1 -1
- package/dist/auth/cell_actions.d.ts +2 -2
- package/dist/auth/cell_actions.js +5 -5
- package/dist/auth/cell_audit_action_specs.d.ts +14 -14
- package/dist/auth/cell_audit_action_specs.js +1 -1
- package/dist/auth/cell_audit_metadata.d.ts +8 -8
- package/dist/auth/cell_audit_metadata.js +1 -1
- package/dist/auth/cell_field_action_specs.d.ts +55 -55
- package/dist/auth/cell_field_action_specs.js +1 -1
- package/dist/auth/cell_field_audit_metadata.d.ts +4 -4
- package/dist/auth/cell_field_audit_metadata.js +1 -1
- package/dist/auth/cell_grant_action_specs.d.ts +61 -61
- package/dist/auth/cell_grant_action_specs.js +1 -1
- package/dist/auth/cell_grant_audit_metadata.d.ts +10 -10
- package/dist/auth/cell_grant_audit_metadata.js +1 -1
- package/dist/auth/cell_item_action_specs.d.ts +76 -76
- package/dist/auth/cell_item_action_specs.js +1 -1
- package/dist/auth/cell_item_audit_metadata.d.ts +5 -5
- package/dist/auth/cell_item_audit_metadata.js +1 -1
- package/dist/auth/invite_schema.d.ts +11 -11
- package/dist/auth/invite_schema.d.ts.map +1 -1
- package/dist/auth/invite_schema.js +1 -1
- package/dist/auth/name_schema.js +1 -1
- package/dist/auth/password.js +1 -1
- package/dist/auth/request_context.js +2 -2
- package/dist/auth/role_grant_offer_action_specs.d.ts +182 -182
- package/dist/auth/role_grant_offer_action_specs.js +1 -1
- package/dist/auth/role_grant_offer_ddl.d.ts +1 -1
- package/dist/auth/role_grant_offer_ddl.js +1 -1
- package/dist/auth/role_grant_offer_notifications.d.ts +107 -107
- package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_notifications.js +3 -4
- package/dist/auth/role_grant_offer_schema.d.ts +9 -9
- package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_schema.js +1 -1
- package/dist/auth/self_service_role_action_specs.d.ts +2 -2
- package/dist/auth/self_service_role_action_specs.js +1 -1
- package/dist/auth/self_service_role_actions.d.ts +1 -1
- package/dist/auth/self_service_role_actions.js +1 -1
- package/dist/auth/signup_route_schema.d.ts +2 -2
- package/dist/auth/signup_route_schema.js +1 -1
- package/dist/auth/token_scope.d.ts +8 -8
- package/dist/db/file_fact_url.d.ts +1 -1
- package/dist/env/env_schemas.d.ts +1 -2
- package/dist/env/env_schemas.d.ts.map +1 -1
- package/dist/env/env_schemas.js +3 -4
- package/dist/http/CLAUDE.md +30 -32
- package/dist/http/auth_shape.d.ts +17 -52
- package/dist/http/auth_shape.d.ts.map +1 -1
- package/dist/http/auth_shape.js +19 -61
- package/dist/http/db_routes.d.ts +1 -1
- package/dist/http/db_routes.d.ts.map +1 -1
- package/dist/http/db_routes.js +1 -1
- package/dist/http/error_schemas.d.ts +36 -36
- package/dist/http/jsonrpc.d.ts +11 -11
- package/dist/http/jsonrpc_helpers.js +1 -1
- package/dist/http/route_error_check.d.ts +2 -2
- package/dist/http/route_error_check.d.ts.map +1 -1
- package/dist/http/route_error_check.js +2 -3
- package/dist/http/route_errors.d.ts +4 -4
- package/dist/http/route_errors.d.ts.map +1 -1
- package/dist/http/route_errors.js +0 -13
- package/dist/http/route_spec.d.ts +33 -36
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +21 -22
- package/dist/http/schema_helpers.d.ts +75 -67
- package/dist/http/schema_helpers.d.ts.map +1 -1
- package/dist/http/schema_helpers.js +54 -76
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/http/surface.js +6 -8
- package/dist/primitive_schemas.d.ts +162 -112
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/primitive_schemas.js +129 -161
- package/dist/realtime/sse.d.ts +3 -3
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse.js +2 -2
- package/dist/schema_issues.d.ts +41 -146
- package/dist/schema_issues.d.ts.map +1 -1
- package/dist/schema_issues.js +39 -322
- package/dist/schema_meta.d.ts +63 -136
- package/dist/schema_meta.d.ts.map +1 -1
- package/dist/schema_meta.js +37 -184
- package/dist/sensitivity.d.ts +3 -5
- package/dist/sensitivity.d.ts.map +1 -1
- package/dist/sensitivity.js +3 -5
- package/dist/server/serve_fact_route.js +1 -1
- package/dist/server/surface_route.js +1 -1
- package/dist/testing/CLAUDE.md +23 -25
- package/dist/testing/adversarial_headers.js +2 -2
- package/dist/testing/adversarial_input_cases.d.ts +19 -18
- package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
- package/dist/testing/adversarial_input_cases.js +29 -42
- package/dist/testing/assertions.d.ts +2 -2
- package/dist/testing/assertions.d.ts.map +1 -1
- package/dist/testing/assertions.js +3 -3
- package/dist/testing/cross_backend/account_lifecycle.js +2 -2
- package/dist/testing/cross_backend/action_manifest.d.ts +10 -9
- package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest.js +4 -3
- package/dist/testing/cross_backend/cell_crud.js +1 -1
- package/dist/testing/cross_backend/conformance_case.d.ts +96 -114
- package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_case.js +0 -256
- package/dist/testing/cross_backend/conformance_rpc_auth.d.ts +0 -62
- package/dist/testing/cross_backend/conformance_rpc_auth.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.js +3 -3
- package/dist/testing/cross_backend/cross_rpc.d.ts +3 -4
- package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
- package/dist/testing/cross_backend/cross_rpc.js +4 -4
- package/dist/testing/cross_backend/differential.js +2 -2
- package/dist/testing/cross_backend/fact_serving.js +1 -1
- package/dist/testing/cross_backend/identity_parity.js +9 -9
- package/dist/testing/cross_backend/origin_conformance.d.ts +9 -9
- package/dist/testing/cross_backend/query_shape.js +1 -1
- package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +1 -1
- package/dist/testing/cross_backend/setup.d.ts +26 -4
- package/dist/testing/cross_backend/setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/setup.js +7 -8
- package/dist/testing/cross_backend/sse_round_trip.js +2 -2
- package/dist/testing/cross_backend/testing_origin_check.d.ts +12 -12
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +608 -201
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +46 -55
- package/dist/testing/cross_backend/token_lifetime.js +3 -3
- package/dist/testing/cross_backend/wire_shapes.js +1 -1
- package/dist/testing/cross_backend/ws_outbound_overflow.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_outbound_overflow.js +35 -0
- package/dist/testing/cross_backend/ws_round_trip.js +1 -1
- package/dist/testing/data_exposure.d.ts.map +1 -1
- package/dist/testing/data_exposure.js +1 -1
- package/dist/testing/integration.js +2 -2
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +2 -2
- package/dist/testing/middleware.d.ts.map +1 -1
- package/dist/testing/middleware.js +2 -2
- package/dist/testing/rpc_attack_surface.js +1 -1
- 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 -14
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +9 -11
- package/dist/testing/schema_generators.d.ts +67 -60
- package/dist/testing/schema_generators.d.ts.map +1 -1
- package/dist/testing/schema_generators.js +144 -151
- package/dist/testing/schema_introspect.d.ts +438 -78
- package/dist/testing/schema_introspect.d.ts.map +1 -1
- package/dist/testing/schema_introspect.js +26 -26
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +2 -2
- package/dist/testing/surface_invariants.d.ts +1 -1
- package/dist/testing/surface_invariants.js +1 -1
- package/dist/testing/transports/bootstrap.d.ts +1 -1
- package/dist/testing/transports/bootstrap.d.ts.map +1 -1
- package/dist/testing/transports/bootstrap.js +1 -1
- package/dist/ui/BootstrapForm.svelte +1 -2
- package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
- package/dist/ui/SignupForm.svelte +1 -2
- package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
- package/dist/ui/admin_accounts_state.svelte.d.ts +5 -5
- 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/form_state.svelte.d.ts +1 -1
- package/dist/ui/form_state.svelte.js +1 -1
- package/dist/ui/role_grant_offers_state.svelte.d.ts +1 -1
- package/package.json +7 -9
- package/dist/primitive_schemas_fuz.d.ts +0 -178
- package/dist/primitive_schemas_fuz.d.ts.map +0 -1
- package/dist/primitive_schemas_fuz.js +0 -149
- package/dist/zod.d.ts +0 -101
- package/dist/zod.d.ts.map +0 -1
- package/dist/zod.js +0 -195
|
@@ -34,37 +34,37 @@ import './assert_dev_env.js';
|
|
|
34
34
|
*
|
|
35
35
|
* @module
|
|
36
36
|
*/
|
|
37
|
-
import {
|
|
37
|
+
import { array, boolean, nullable, number, pipe, record, safe_integer, string, strip_object } from '@fuzdev/fuz_schema/schema.ts';
|
|
38
38
|
/**
|
|
39
|
-
* Per-column structural metadata. The
|
|
39
|
+
* Per-column structural metadata. The schema is the canonical source
|
|
40
40
|
* for the column shape — `SchemaSnapshot` reuses it as the cross-impl
|
|
41
41
|
* `_testing_schema_snapshot` RPC action's wire validator, so the
|
|
42
42
|
* introspection type and the wire contract can't drift apart.
|
|
43
43
|
*/
|
|
44
|
-
export const ColumnSnapshot =
|
|
44
|
+
export const ColumnSnapshot = strip_object({
|
|
45
45
|
/** SQL standard type name from `information_schema.columns.data_type`. */
|
|
46
|
-
data_type:
|
|
46
|
+
data_type: string,
|
|
47
47
|
/** Postgres-native type name from `information_schema.columns.udt_name`. */
|
|
48
|
-
udt_name:
|
|
48
|
+
udt_name: string,
|
|
49
49
|
/** `true` when the column accepts NULL. */
|
|
50
|
-
is_nullable:
|
|
50
|
+
is_nullable: boolean,
|
|
51
51
|
/** Default-value expression as Postgres reports it, or `null` if none. */
|
|
52
|
-
column_default:
|
|
52
|
+
column_default: nullable(string),
|
|
53
53
|
/** `true` when the column was declared GENERATED ... AS IDENTITY. */
|
|
54
|
-
is_identity:
|
|
54
|
+
is_identity: boolean
|
|
55
55
|
});
|
|
56
56
|
/** Per-table structural metadata. */
|
|
57
|
-
export const TableSnapshot =
|
|
57
|
+
export const TableSnapshot = strip_object({
|
|
58
58
|
/** Column metadata keyed by column name (sorted on serialization). */
|
|
59
|
-
columns:
|
|
59
|
+
columns: record(ColumnSnapshot),
|
|
60
60
|
/** Index definitions as Postgres renders them via `pg_indexes.indexdef`. */
|
|
61
|
-
indexes:
|
|
61
|
+
indexes: array(strip_object({ name: string, definition: string })),
|
|
62
62
|
/** Constraint definitions as Postgres renders them via `pg_get_constraintdef`. */
|
|
63
|
-
constraints:
|
|
63
|
+
constraints: array(strip_object({ name: string, type: string, definition: string }))
|
|
64
64
|
});
|
|
65
65
|
/** Sequence metadata — `data_type` is `bigint` (BIGSERIAL) or `integer` (SERIAL). */
|
|
66
|
-
export const SequenceSnapshot =
|
|
67
|
-
data_type:
|
|
66
|
+
export const SequenceSnapshot = strip_object({
|
|
67
|
+
data_type: string
|
|
68
68
|
});
|
|
69
69
|
/**
|
|
70
70
|
* Enum-type metadata — the labels of a `CREATE TYPE ... AS ENUM`, captured in
|
|
@@ -72,9 +72,9 @@ export const SequenceSnapshot = z.object({
|
|
|
72
72
|
* enum's labels are an ordered set, and reordering them is a schema change, so
|
|
73
73
|
* the parity diff compares the arrays positionally.
|
|
74
74
|
*/
|
|
75
|
-
export const EnumTypeSnapshot =
|
|
75
|
+
export const EnumTypeSnapshot = strip_object({
|
|
76
76
|
/** Enum labels in declared order. */
|
|
77
|
-
labels:
|
|
77
|
+
labels: array(string)
|
|
78
78
|
});
|
|
79
79
|
/**
|
|
80
80
|
* Normalized database schema snapshot for parity comparison — the single
|
|
@@ -85,13 +85,13 @@ export const EnumTypeSnapshot = z.object({
|
|
|
85
85
|
* All fields are deterministically ordered on capture so structural equality
|
|
86
86
|
* via `JSON.stringify` or per-key comparison yields stable results.
|
|
87
87
|
*/
|
|
88
|
-
export const SchemaSnapshot =
|
|
88
|
+
export const SchemaSnapshot = strip_object({
|
|
89
89
|
/** Tables keyed by name. */
|
|
90
|
-
tables:
|
|
90
|
+
tables: record(TableSnapshot),
|
|
91
91
|
/** Sequences keyed by name. */
|
|
92
|
-
sequences:
|
|
92
|
+
sequences: record(SequenceSnapshot),
|
|
93
93
|
/** Enum types (`CREATE TYPE ... AS ENUM`) keyed by name; labels in declared order. */
|
|
94
|
-
enums:
|
|
94
|
+
enums: record(EnumTypeSnapshot)
|
|
95
95
|
});
|
|
96
96
|
/**
|
|
97
97
|
* A single `schema_version` tracker row — the migration-identity primitive.
|
|
@@ -104,21 +104,21 @@ export const SchemaSnapshot = z.object({
|
|
|
104
104
|
* bootstrapped spines so a migration-name or partitioning drift — invisible
|
|
105
105
|
* to the schema snapshot — is a gated fact, not a latent interop break.
|
|
106
106
|
*/
|
|
107
|
-
export const MigrationTrackerEntry =
|
|
107
|
+
export const MigrationTrackerEntry = strip_object({
|
|
108
108
|
/** Migration namespace (e.g. `fuz_auth`, `fuz_cell`). */
|
|
109
|
-
namespace:
|
|
109
|
+
namespace: string,
|
|
110
110
|
/** Migration name within the namespace (e.g. `full_cell_schema`). */
|
|
111
|
-
name:
|
|
111
|
+
name: string,
|
|
112
112
|
/** Per-namespace apply order, starting at 0. */
|
|
113
|
-
sequence:
|
|
113
|
+
sequence: pipe(number, safe_integer)
|
|
114
114
|
});
|
|
115
115
|
/**
|
|
116
116
|
* The full `schema_version` tracker as a deterministically-ordered list,
|
|
117
117
|
* wrapped in an object so it round-trips cleanly as a JSON-RPC result.
|
|
118
118
|
* Sorted by `(namespace, sequence)` on capture.
|
|
119
119
|
*/
|
|
120
|
-
export const MigrationTracker =
|
|
121
|
-
entries:
|
|
120
|
+
export const MigrationTracker = strip_object({
|
|
121
|
+
entries: array(MigrationTrackerEntry)
|
|
122
122
|
});
|
|
123
123
|
/**
|
|
124
124
|
* Read every `schema_version` row into a deterministic `MigrationTracker`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sse_round_trip.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/testing/sse_round_trip.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAq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AAW,CAAC,EAAE,eAAe,CAAC;IAC9B,gHAAgH;IAChH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD;;;;;;;;;;;;OAYG;IACH,aAAa,EAAE,uBAAuB,CAAC;IACvC,8BAA8B;IAC9B,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CAChC;AAmDD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,mBAAmB,KAAG,IAkIvE,CAAC"}
|
|
@@ -14,6 +14,7 @@ import './assert_dev_env.js';
|
|
|
14
14
|
* @module
|
|
15
15
|
*/
|
|
16
16
|
import { describe, test, beforeAll, afterAll, assert } from 'vitest';
|
|
17
|
+
import { parse } from '@fuzdev/fuz_schema/schema.ts';
|
|
17
18
|
import { SSE_CONNECTED_COMMENT } from '../realtime/sse_constants.js';
|
|
18
19
|
import { ROLE_ADMIN } from '../auth/role_schema.js';
|
|
19
20
|
import { create_audit_emitter } from '../auth/audit_emitter.js';
|
|
@@ -25,7 +26,6 @@ import { run_migrations } from '../db/migrate.js';
|
|
|
25
26
|
import { AUTH_MIGRATION_NS } from '../auth/migrations.js';
|
|
26
27
|
import { account_session_revoke_all_action_spec } from '../auth/account_action_specs.js';
|
|
27
28
|
import { create_sse_frame_reader } from './transports/sse_frame_reader.js';
|
|
28
|
-
import { parse_any } from '../schema_issues.js';
|
|
29
29
|
/**
|
|
30
30
|
* Validate a decoded SSE `data:` frame as a JSON-RPC-style `{method, params}` payload.
|
|
31
31
|
*/
|
|
@@ -47,7 +47,7 @@ const parse_and_validate_sse_payload = (frame, event_specs, route_path) => {
|
|
|
47
47
|
if (event_specs) {
|
|
48
48
|
const spec = event_specs.find((s) => s.method === notification.method);
|
|
49
49
|
assert.ok(spec, `${route_path}: no EventSpec declared for method '${notification.method}' (declared: ${event_specs.map((s) => s.method).join(', ')})`);
|
|
50
|
-
const result =
|
|
50
|
+
const result = parse(spec.params, notification.params);
|
|
51
51
|
if (!result.ok) {
|
|
52
52
|
throw new Error(`${route_path}: params mismatch for method '${notification.method}': ${JSON.stringify(result.issues)}`);
|
|
53
53
|
}
|
|
@@ -203,7 +203,7 @@ export declare const assert_no_unexpected_public_mutations: (surface: AppSurface
|
|
|
203
203
|
* Query-string-driven filtering (audit log, list endpoints) should use params schemas
|
|
204
204
|
* or query string parsing, not input schemas.
|
|
205
205
|
*
|
|
206
|
-
* Note: RPC endpoints (`create_rpc_endpoint`) use `input:
|
|
206
|
+
* Note: RPC endpoints (`create_rpc_endpoint`) use `input: literal(null)` on their
|
|
207
207
|
* route specs — the dispatcher handles body/query parsing internally. Real input
|
|
208
208
|
* schemas live in `rpc_endpoints` surface, not on routes; see
|
|
209
209
|
* `assert_rpc_ws_surface_invariants` for the parallel checks over RPC/WS
|
|
@@ -462,7 +462,7 @@ export const assert_no_unexpected_public_mutations = (surface, allowlist = []) =
|
|
|
462
462
|
* Query-string-driven filtering (audit log, list endpoints) should use params schemas
|
|
463
463
|
* or query string parsing, not input schemas.
|
|
464
464
|
*
|
|
465
|
-
* Note: RPC endpoints (`create_rpc_endpoint`) use `input:
|
|
465
|
+
* Note: RPC endpoints (`create_rpc_endpoint`) use `input: literal(null)` on their
|
|
466
466
|
* route specs — the dispatcher handles body/query parsing internally. Real input
|
|
467
467
|
* schemas live in `rpc_endpoints` surface, not on routes; see
|
|
468
468
|
* `assert_rpc_ws_surface_invariants` for the parallel checks over RPC/WS
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
|
-
import { Uuid } from '../../
|
|
2
|
+
import { Uuid } from '../../primitive_schemas.js';
|
|
3
3
|
import type { BackendConfig } from '../cross_backend/backend_config.js';
|
|
4
4
|
import type { FetchTransport } from './fetch_transport.js';
|
|
5
5
|
/** Input for `bootstrap()`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/transports/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwB9B,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/transports/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwB9B,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAe3D,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;CAC/B;AAED,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,kDAAkD;IAClD,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,gDAAgD;IAChD,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;KAAE,CAAC;IACtC,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,eAAe,CA8BlF,CAAC"}
|
|
@@ -19,7 +19,7 @@ import '../assert_dev_env.js';
|
|
|
19
19
|
* @module
|
|
20
20
|
*/
|
|
21
21
|
import { parse, string, strip_object } from '@fuzdev/fuz_schema/schema.ts';
|
|
22
|
-
import { Uuid } from '../../
|
|
22
|
+
import { Uuid } from '../../primitive_schemas.js';
|
|
23
23
|
import { format_issues } from '../../schema_issues.js';
|
|
24
24
|
/**
|
|
25
25
|
* The `BootstrapOutput` envelope shape the cross-process bootstrap call
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
import { autofocus } from '@fuzdev/fuz_ui/autofocus.svelte.ts';
|
|
19
19
|
import { is } from '@fuzdev/fuz_schema/schema.ts';
|
|
20
20
|
|
|
21
|
-
import { USERNAME_LENGTH_MAX, USERNAME_LENGTH_MIN } from '../primitive_schemas.js';
|
|
22
|
-
import { Username } from '../primitive_schemas_fuz.js';
|
|
21
|
+
import { USERNAME_LENGTH_MAX, USERNAME_LENGTH_MIN, Username } from '../primitive_schemas.js';
|
|
23
22
|
import { PASSWORD_LENGTH_MIN } from '../auth/password.js';
|
|
24
23
|
import { auth_state_context } from './auth_state.svelte.js';
|
|
25
24
|
import { FormState } from './form_state.svelte.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BootstrapForm.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/BootstrapForm.svelte"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BootstrapForm.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/BootstrapForm.svelte"],"names":[],"mappings":"AA0BC,KAAK,gBAAgB,GAAI;IACxB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AA2GH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
import { autofocus } from '@fuzdev/fuz_ui/autofocus.svelte.ts';
|
|
18
18
|
import { is } from '@fuzdev/fuz_schema/schema.ts';
|
|
19
19
|
|
|
20
|
-
import { USERNAME_LENGTH_MAX, USERNAME_LENGTH_MIN } from '../primitive_schemas.js';
|
|
21
|
-
import { Username } from '../primitive_schemas_fuz.js';
|
|
20
|
+
import { USERNAME_LENGTH_MAX, USERNAME_LENGTH_MIN, Username } from '../primitive_schemas.js';
|
|
22
21
|
import { PASSWORD_LENGTH_MIN } from '../auth/password.js';
|
|
23
22
|
import { auth_state_context } from './auth_state.svelte.js';
|
|
24
23
|
import { FormState } from './form_state.svelte.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignupForm.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/SignupForm.svelte"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignupForm.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/SignupForm.svelte"],"names":[],"mappings":"AAyBC,KAAK,gBAAgB,GAAI;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAsGH,QAAA,MAAM,UAAU,sDAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -101,7 +101,6 @@ export declare class AdminAccountsState {
|
|
|
101
101
|
#private;
|
|
102
102
|
readonly list: AsyncSlot<void, string>;
|
|
103
103
|
readonly grant: KeyedAsyncSlot<string, {
|
|
104
|
-
message: string | null;
|
|
105
104
|
id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">;
|
|
106
105
|
created_at: string;
|
|
107
106
|
expires_at: string;
|
|
@@ -109,6 +108,7 @@ export declare class AdminAccountsState {
|
|
|
109
108
|
scope_kind: string | null;
|
|
110
109
|
scope_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid"> | null;
|
|
111
110
|
from_actor_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">;
|
|
111
|
+
message: string | null;
|
|
112
112
|
to_account_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">;
|
|
113
113
|
to_actor_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid"> | null;
|
|
114
114
|
accepted_at: string | null;
|
|
@@ -118,10 +118,10 @@ export declare class AdminAccountsState {
|
|
|
118
118
|
superseded_at: string | null;
|
|
119
119
|
resulting_role_grant_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid"> | null;
|
|
120
120
|
}, string>;
|
|
121
|
-
readonly revoke: KeyedAsyncSlot<
|
|
122
|
-
readonly retract: KeyedAsyncSlot<
|
|
123
|
-
readonly soft_delete: KeyedAsyncSlot<
|
|
124
|
-
readonly undelete: KeyedAsyncSlot<
|
|
121
|
+
readonly revoke: KeyedAsyncSlot<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, void, string>;
|
|
122
|
+
readonly retract: KeyedAsyncSlot<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, void, string>;
|
|
123
|
+
readonly soft_delete: KeyedAsyncSlot<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, void, string>;
|
|
124
|
+
readonly undelete: KeyedAsyncSlot<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, void, string>;
|
|
125
125
|
accounts: Array<AdminAccountEntryJson>;
|
|
126
126
|
grantable_roles: Array<RoleName>;
|
|
127
127
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin_accounts_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/admin_accounts_state.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,O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AAO,CAAC,IAAI,CAAC;IAOpD;;;;OAIG;IACG,eAAe,CAAC,UAAU,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAOtD;;;;;;;;;;;;;;;;OAgBG;IACG,YAAY,CACjB,UAAU,EAAE,IAAI,EAChB,IAAI,EAAE,QAAQ,EACd,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GACvB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;IAc1C;;;;;;;;OAQG;IACG,aAAa,CAAC,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAW/F;;;;;;;OAOG;IACG,cAAc,CAAC,QAAQ,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAMnD"}
|
|
@@ -48,7 +48,7 @@ export declare class AdminInvitesState {
|
|
|
48
48
|
#private;
|
|
49
49
|
readonly list: AsyncSlot<void, string>;
|
|
50
50
|
readonly create: AsyncSlot<void, string>;
|
|
51
|
-
readonly remove: KeyedAsyncSlot<
|
|
51
|
+
readonly remove: KeyedAsyncSlot<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, void, string>;
|
|
52
52
|
invites: Array<InviteWithUsernamesJson>;
|
|
53
53
|
readonly invite_count: number;
|
|
54
54
|
readonly unclaimed_count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin_invites_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/admin_invites_state.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EACX,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9D,MAAM,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACnE,MAAM,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACnE;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;2CAAwB,eAAe;4BAAf,eAAe;uBAAf,eAAe,WAAf,eAAe;CAAG,CAAC;AAEjF,MAAM,WAAW,wBAAwB;IACxC,6CAA6C;IAC7C,OAAO,EAAE,MAAM,eAAe,CAAC;CAC/B;AAED,qBAAa,iBAAiB;;IAG7B,QAAQ,CAAC,IAAI,0BAAyB;IACtC,QAAQ,CAAC,MAAM,0BAAyB;IACxC,QAAQ,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"admin_invites_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/admin_invites_state.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EACX,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9D,MAAM,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACnE,MAAM,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACnE;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;2CAAwB,eAAe;4BAAf,eAAe;uBAAf,eAAe,WAAf,eAAe;CAAG,CAAC;AAEjF,MAAM,WAAW,wBAAwB;IACxC,6CAA6C;IAC7C,OAAO,EAAE,MAAM,eAAe,CAAC;CAC/B;AAED,qBAAa,iBAAiB;;IAG7B,QAAQ,CAAC,IAAI,0BAAyB;IACtC,QAAQ,CAAC,MAAM,0BAAyB;IACxC,QAAQ,CAAC,MAAM,+FAAoC;IAEnD,OAAO,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAkB;IAEzD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAiC;IAC9D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAA8D;gBAElF,OAAO,EAAE,wBAAwB;IAIvC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAOtB,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IASlE,aAAa,CAAC,EAAE,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAM5C"}
|
|
@@ -36,8 +36,8 @@ export interface AdminSessionsStateOptions {
|
|
|
36
36
|
export declare class AdminSessionsState {
|
|
37
37
|
#private;
|
|
38
38
|
readonly list: AsyncSlot<void, string>;
|
|
39
|
-
readonly revoke_sessions: KeyedAsyncSlot<
|
|
40
|
-
readonly revoke_tokens: KeyedAsyncSlot<
|
|
39
|
+
readonly revoke_sessions: KeyedAsyncSlot<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, void, string>;
|
|
40
|
+
readonly revoke_tokens: KeyedAsyncSlot<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, void, string>;
|
|
41
41
|
sessions: Array<AdminSessionJson>;
|
|
42
42
|
readonly active_count: number;
|
|
43
43
|
constructor(options: AdminSessionsStateOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin_sessions_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/admin_sessions_state.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACzC;;;;OAIG;IACH,OAAO,EAAE,MAAM,gBAAgB,CAAC;CAChC;AAED,qBAAa,kBAAkB;;IAG9B,QAAQ,CAAC,IAAI,0BAAyB;IACtC,QAAQ,CAAC,eAAe
|
|
1
|
+
{"version":3,"file":"admin_sessions_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/admin_sessions_state.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACzC;;;;OAIG;IACH,OAAO,EAAE,MAAM,gBAAgB,CAAC;CAChC;AAED,qBAAa,kBAAkB;;IAG9B,QAAQ,CAAC,IAAI,0BAAyB;IACtC,QAAQ,CAAC,eAAe,+FAAoC;IAC5D,QAAQ,CAAC,aAAa,+FAAoC;IAE1D,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAkB;IAEnD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAkC;gBAEnD,OAAO,EAAE,yBAAyB;IAIxC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAOtB,sBAAsB,CAAC,UAAU,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAOvD,oBAAoB,CAAC,UAAU,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAM3D"}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* <script lang="ts">
|
|
29
29
|
* const form_state = new FormState<'username'>();
|
|
30
30
|
* let username = $state.raw('');
|
|
31
|
-
* const username_valid = $derived(Username
|
|
31
|
+
* const username_valid = $derived(is(Username, username));
|
|
32
32
|
* const can_submit = $derived(username.trim() && username_valid);
|
|
33
33
|
*
|
|
34
34
|
* const handle_submit = async () => {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* <script lang="ts">
|
|
29
29
|
* const form_state = new FormState<'username'>();
|
|
30
30
|
* let username = $state.raw('');
|
|
31
|
-
* const username_valid = $derived(Username
|
|
31
|
+
* const username_valid = $derived(is(Username, username));
|
|
32
32
|
* const can_submit = $derived(username.trim() && username_valid);
|
|
33
33
|
*
|
|
34
34
|
* const handle_submit = async () => {
|
|
@@ -99,7 +99,6 @@ export declare class RoleGrantOffersState {
|
|
|
99
99
|
readonly list: AsyncSlot<void, string>;
|
|
100
100
|
readonly list_history: AsyncSlot<void, string>;
|
|
101
101
|
readonly create: AsyncSlot<{
|
|
102
|
-
message: string | null;
|
|
103
102
|
id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">;
|
|
104
103
|
created_at: string;
|
|
105
104
|
expires_at: string;
|
|
@@ -107,6 +106,7 @@ export declare class RoleGrantOffersState {
|
|
|
107
106
|
scope_kind: string | null;
|
|
108
107
|
scope_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid"> | null;
|
|
109
108
|
from_actor_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">;
|
|
109
|
+
message: string | null;
|
|
110
110
|
to_account_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">;
|
|
111
111
|
to_actor_id: import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid"> | null;
|
|
112
112
|
accepted_at: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fuzdev/fuz_app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.170.0",
|
|
4
4
|
"description": "fullstack app library",
|
|
5
5
|
"glyph": "🗝",
|
|
6
6
|
"logo": "logo.svg",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@electric-sql/pglite": ">=0.4",
|
|
38
38
|
"@fuzdev/blake3-wasm": ">=0.2.0",
|
|
39
39
|
"@fuzdev/fuz_css": ">=0.72.0",
|
|
40
|
-
"@fuzdev/fuz_schema": "^0.5.
|
|
40
|
+
"@fuzdev/fuz_schema": "^0.5.6",
|
|
41
41
|
"@fuzdev/fuz_util": ">=0.79.0",
|
|
42
42
|
"@fuzdev/pglet-wasm": ">=0.1.2",
|
|
43
43
|
"@hono/bun": ">=1",
|
|
@@ -50,8 +50,7 @@
|
|
|
50
50
|
"hono": ">=4",
|
|
51
51
|
"pg": ">=8",
|
|
52
52
|
"svelte": "^5",
|
|
53
|
-
"ws": ">=8"
|
|
54
|
-
"zod": "^4.6"
|
|
53
|
+
"ws": ">=8"
|
|
55
54
|
},
|
|
56
55
|
"peerDependenciesMeta": {
|
|
57
56
|
"@electric-sql/pglite": {
|
|
@@ -96,10 +95,10 @@
|
|
|
96
95
|
"@fuzdev/blake3-wasm": "^0.2.0",
|
|
97
96
|
"@fuzdev/fuz_code": "^0.56.0",
|
|
98
97
|
"@fuzdev/fuz_css": "^0.73.0",
|
|
99
|
-
"@fuzdev/fuz_schema": "^0.5.
|
|
100
|
-
"@fuzdev/fuz_ui": "^0.222.
|
|
98
|
+
"@fuzdev/fuz_schema": "^0.5.6",
|
|
99
|
+
"@fuzdev/fuz_ui": "^0.222.1",
|
|
101
100
|
"@fuzdev/fuz_util": "^0.79.1",
|
|
102
|
-
"@fuzdev/gro": "^0.
|
|
101
|
+
"@fuzdev/gro": "^0.225.0",
|
|
103
102
|
"@fuzdev/mdz": "^0.7.0",
|
|
104
103
|
"@fuzdev/pglet-wasm": "^0.1.2",
|
|
105
104
|
"@hono/bun": "^1.0.1",
|
|
@@ -130,8 +129,7 @@
|
|
|
130
129
|
"typescript-eslint": "^8.71.1",
|
|
131
130
|
"vite": "^8.3.4",
|
|
132
131
|
"vitest": "^5.0.0",
|
|
133
|
-
"ws": "^8.20.1"
|
|
134
|
-
"zod": "^4.6.7"
|
|
132
|
+
"ws": "^8.20.1"
|
|
135
133
|
},
|
|
136
134
|
"sideEffects": [
|
|
137
135
|
"**/*.css"
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `@fuzdev/fuz_schema` twins of the Zod `bounded_string`, `Username`,
|
|
3
|
-
* `Email`, `Uuid`, `UuidWithDefault`, `FactHashSchema` (`primitive_schemas.ts`), and
|
|
4
|
-
* `ActingActor` (`http/auth_shape.ts`), under the same names, for schemas
|
|
5
|
-
* written in fuz_schema; `UsernameCanonical`, the username an output carries;
|
|
6
|
-
* `UsernameProvided`, the username login and lookup take; `Timestamp`, a
|
|
7
|
-
* timestamp on the wire; and `Blake3Hash`, a BLAKE3 hex hash. The last four
|
|
8
|
-
* have no Zod twin.
|
|
9
|
-
*
|
|
10
|
-
* The output type is shared: the Zod `Uuid` outputs fuz_schema's
|
|
11
|
-
* `Branded<string, 'Uuid'>` too, and both `FactHashSchema`s output fuz_util's
|
|
12
|
-
* `FactHash`, so a value parsed by either twin goes where the other's is taken.
|
|
13
|
-
*
|
|
14
|
-
* Both twins have one grammar, RFC 9562's read case-insensitively as its §4
|
|
15
|
-
* says, the max UUID included, and the Rust spine's: every input gets the same
|
|
16
|
-
* verdict and output from both, and their JSON Schema is the same.
|
|
17
|
-
*
|
|
18
|
-
* The twins are `@nodocs` while the Zod schemas of the same names stay, as
|
|
19
|
-
* the docs build refuses two exports of one name.
|
|
20
|
-
*
|
|
21
|
-
* @module
|
|
22
|
-
*/
|
|
23
|
-
import { string, type Infer, type PipeSchema } from '@fuzdev/fuz_schema/schema.ts';
|
|
24
|
-
import { type BoundedStringOptions } from './primitive_schemas.js';
|
|
25
|
-
/**
|
|
26
|
-
* A string schema whose length is bounded in UTF-16 code units, the twin of
|
|
27
|
-
* the Zod `bounded_string`: fuz_schema's `min_length` / `max_length` read
|
|
28
|
-
* `String.length`, the unit the Rust spine counts too, so no check beside them
|
|
29
|
-
* is needed. Its JSON Schema carries `minLength` / `maxLength` as the Zod
|
|
30
|
-
* one's does; `max_message` replaces fuz_schema's message on the over-`max`
|
|
31
|
-
* issue.
|
|
32
|
-
*
|
|
33
|
-
* @param options - the bounds, in UTF-16 code units, and the max message
|
|
34
|
-
* @returns the bounded string schema
|
|
35
|
-
* @nodocs
|
|
36
|
-
*/
|
|
37
|
-
export declare const bounded_string: (options: BoundedStringOptions) => PipeSchema<string, typeof string>;
|
|
38
|
-
/**
|
|
39
|
-
* Username for account creation, the twin of the Zod `Username`: the same
|
|
40
|
-
* bounds and grammar, output in lowercase. Every input gets the same verdict
|
|
41
|
-
* and output from both; a string outside the bounds and off the grammar gets
|
|
42
|
-
* the length issue alone, where Zod adds the grammar issue after it.
|
|
43
|
-
*
|
|
44
|
-
* @nodocs
|
|
45
|
-
*/
|
|
46
|
-
export declare const Username: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
47
|
-
/** @nodocs */
|
|
48
|
-
export type Username = Infer<typeof Username>;
|
|
49
|
-
/**
|
|
50
|
-
* A username's canonical grammar, `USERNAME_REGEX` in lowercase: a lowercase
|
|
51
|
-
* letter, then lowercase letters, digits, `_` or `-`, ending in a lowercase
|
|
52
|
-
* letter or digit. What `Username` outputs, and what an `account` row holds
|
|
53
|
-
* (its `account_username_lowercase` CHECK).
|
|
54
|
-
*/
|
|
55
|
-
export declare const USERNAME_CANONICAL_REGEX: RegExp;
|
|
56
|
-
/**
|
|
57
|
-
* A username as an account row holds it, the `username` of an output: the
|
|
58
|
-
* bounds of `Username` and `USERNAME_CANONICAL_REGEX`, no transform. A
|
|
59
|
-
* username in any other case fails, where the Zod `Username` lowercased it.
|
|
60
|
-
*/
|
|
61
|
-
export declare const UsernameCanonical: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
62
|
-
export type UsernameCanonical = Infer<typeof UsernameCanonical>;
|
|
63
|
-
/**
|
|
64
|
-
* Username submitted for login or lookup — minimal validation, for
|
|
65
|
-
* forward-compatibility if the creation grammar changes: at least one and at
|
|
66
|
-
* most `USERNAME_PROVIDED_LENGTH_MAX` UTF-16 code units, measured before
|
|
67
|
-
* trimming, holding a character that isn't whitespace.
|
|
68
|
-
*
|
|
69
|
-
* Canonicalized to `.trim().toLowerCase()` at parse time, so login's
|
|
70
|
-
* per-account rate-limit key and its lookup see one value whatever the casing
|
|
71
|
-
* or surrounding whitespace, as `Username` canonicalizes what is stored.
|
|
72
|
-
*
|
|
73
|
-
* A whitespace-only identifier is refused, not canonicalized to `""` and left
|
|
74
|
-
* to fall through to a lookup-miss 401: an empty identifier is malformed
|
|
75
|
-
* input, not a wrong credential, and the Rust spine's `account_login` refuses
|
|
76
|
-
* it too. JS `\s` is exactly the set `trim` removes (ECMA-262's WhiteSpace and
|
|
77
|
-
* LineTerminator), so the `regex` ahead of the transform refuses what would
|
|
78
|
-
* trim to nothing.
|
|
79
|
-
*/
|
|
80
|
-
export declare const UsernameProvided: PipeSchema<string, PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
81
|
-
export type UsernameProvided = Infer<typeof UsernameProvided>;
|
|
82
|
-
/**
|
|
83
|
-
* Email validation, the twin of the Zod `Email`: `EMAIL_REGEX` and at most
|
|
84
|
-
* `EMAIL_LENGTH_MAX` UTF-8 bytes, no transform. The `max_length` ahead of the
|
|
85
|
-
* grammar refuses a string past the bound in UTF-16 code units, which is past
|
|
86
|
-
* it in bytes too, before the regex reads it, and the `check` after it the
|
|
87
|
-
* multibyte address within the units but past the bytes, both with
|
|
88
|
-
* `EMAIL_LENGTH_MESSAGE`. Every input gets the same verdict and output from
|
|
89
|
-
* both; a string past the bound in code units gets the length issue as a
|
|
90
|
-
* `max_length`, where Zod gives a `check`, and one within the bound in code
|
|
91
|
-
* units but past it in bytes and off the grammar gets the grammar issue, where
|
|
92
|
-
* Zod gives the length one.
|
|
93
|
-
*
|
|
94
|
-
* @nodocs
|
|
95
|
-
*/
|
|
96
|
-
export declare const Email: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
97
|
-
/** @nodocs */
|
|
98
|
-
export type Email = Infer<typeof Email>;
|
|
99
|
-
/**
|
|
100
|
-
* Branded UUID schema: a UUID of RFC 9562 in either case, output in
|
|
101
|
-
* lowercase, the form Postgres renders a `uuid` in and every id the server
|
|
102
|
-
* mints. The brand goes outside the `to_lower_case`, which outputs a new
|
|
103
|
-
* string.
|
|
104
|
-
*
|
|
105
|
-
* @nodocs
|
|
106
|
-
*/
|
|
107
|
-
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<"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">)[]> & {
|
|
108
|
-
readonly '~types'?: {
|
|
109
|
-
readonly input: string;
|
|
110
|
-
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
111
|
-
} | undefined;
|
|
112
|
-
};
|
|
113
|
-
/** @nodocs */
|
|
114
|
-
export type Uuid = Infer<typeof Uuid>;
|
|
115
|
-
/**
|
|
116
|
-
* `Uuid` that defaults to a fresh `create_uuid()` when the input is `undefined`.
|
|
117
|
-
*
|
|
118
|
-
* @nodocs
|
|
119
|
-
*/
|
|
120
|
-
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<"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">)[]> & {
|
|
121
|
-
readonly '~types'?: {
|
|
122
|
-
readonly input: string;
|
|
123
|
-
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
124
|
-
} | undefined;
|
|
125
|
-
}>>;
|
|
126
|
-
/** @nodocs */
|
|
127
|
-
export type UuidWithDefault = Infer<typeof UuidWithDefault>;
|
|
128
|
-
/**
|
|
129
|
-
* A timestamp on the wire: a date and time of RFC 3339 in UTC, fuz_schema's
|
|
130
|
-
* `iso_datetime`, which both spines' `YYYY-MM-DDTHH:MM:SSZ`
|
|
131
|
-
* (`iso8601_timestamp_column`) and a `toISOString()` stamp satisfy. Not
|
|
132
|
-
* branded, unlike the Zod `Datetime`.
|
|
133
|
-
*/
|
|
134
|
-
export declare const Timestamp: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
135
|
-
export type Timestamp = Infer<typeof Timestamp>;
|
|
136
|
-
/**
|
|
137
|
-
* A `blake3:`-prefixed fact hash on the wire, the twin of the Zod
|
|
138
|
-
* `FactHashSchema`: `FACT_HASH_EXACT`, its output fuz_util's `FactHash`, which
|
|
139
|
-
* `fact_hash_bytes`, `fact_hash_stream`, and `FactStore` take. The twins agree
|
|
140
|
-
* on every input, and their JSON Schema is the same `pattern`.
|
|
141
|
-
*
|
|
142
|
-
* @nodocs
|
|
143
|
-
*/
|
|
144
|
-
export declare const FactHashSchema: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "FactHash">, 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">)[]> & {
|
|
145
|
-
readonly '~types'?: {
|
|
146
|
-
readonly input: string;
|
|
147
|
-
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
148
|
-
} | undefined;
|
|
149
|
-
};
|
|
150
|
-
/** A BLAKE3 hex hash's grammar: 64 lowercase hex characters (256-bit output). */
|
|
151
|
-
export declare const BLAKE3_HASH_REGEX: RegExp;
|
|
152
|
-
/** The message of a string off `BLAKE3_HASH_REGEX`. */
|
|
153
|
-
export declare const BLAKE3_HASH_MESSAGE = "Expected a 64-character lowercase hex blake3 hash";
|
|
154
|
-
/**
|
|
155
|
-
* A BLAKE3 hex hash: `BLAKE3_HASH_REGEX`, whose issue carries
|
|
156
|
-
* `BLAKE3_HASH_MESSAGE`. A value that is no string gets fuz_schema's message.
|
|
157
|
-
*/
|
|
158
|
-
export declare const Blake3Hash: PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
159
|
-
export type Blake3Hash = Infer<typeof Blake3Hash>;
|
|
160
|
-
/** The `description` both `ActingActor` twins carry. */
|
|
161
|
-
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.";
|
|
162
|
-
/**
|
|
163
|
-
* The `acting` field of an input that needs the caller's acting actor, the
|
|
164
|
-
* twin of `ActingActor` in `http/auth_shape.ts`, whose doc has the resolution
|
|
165
|
-
* rules. The dispatcher finds either twin by reference, so an input declares
|
|
166
|
-
* this export, not a copy of it.
|
|
167
|
-
*
|
|
168
|
-
* @nodocs
|
|
169
|
-
*/
|
|
170
|
-
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<"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">)[]> & {
|
|
171
|
-
readonly '~types'?: {
|
|
172
|
-
readonly input: string;
|
|
173
|
-
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
174
|
-
} | undefined;
|
|
175
|
-
}>>;
|
|
176
|
-
/** @nodocs */
|
|
177
|
-
export type ActingActor = Infer<typeof ActingActor>;
|
|
178
|
-
//# sourceMappingURL=primitive_schemas_fuz.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitive_schemas_fuz.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/primitive_schemas_fuz.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAUN,MAAM,EAKN,KAAK,KAAK,EACV,KAAK,UAAU,EACf,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAUN,KAAK,oBAAoB,EACzB,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,GAC1B,SAAS,oBAAoB,KAC3B,UAAU,CAAC,MAAM,EAAE,OAAO,MAAM,CAKlC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,4HAIpB,CAAC;AACF,cAAc;AACd,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,QAA+B,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,4HAG7B,CAAC;AACF,MAAM,MA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