@fuzdev/fuz_app 0.156.0 → 0.158.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 +1 -0
- package/dist/actions/compile_action_registry.d.ts +5 -1
- package/dist/actions/compile_action_registry.d.ts.map +1 -1
- package/dist/actions/compile_action_registry.js +8 -1
- package/dist/auth/CLAUDE.md +2 -1
- package/dist/auth/actor_lookup_action_specs.d.ts +184 -40
- package/dist/auth/actor_lookup_action_specs.d.ts.map +1 -1
- package/dist/auth/actor_lookup_action_specs.js +16 -14
- package/dist/auth/actor_search_action_specs.d.ts +180 -40
- package/dist/auth/actor_search_action_specs.d.ts.map +1 -1
- package/dist/auth/actor_search_action_specs.js +12 -15
- package/dist/http/CLAUDE.md +26 -11
- package/dist/http/auth_shape.d.ts +5 -8
- package/dist/http/auth_shape.d.ts.map +1 -1
- package/dist/http/auth_shape.js +5 -8
- package/dist/http/error_schemas.d.ts +12 -4
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/route_spec.d.ts +38 -18
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +60 -21
- package/dist/http/schema_helpers.d.ts +24 -7
- package/dist/http/schema_helpers.d.ts.map +1 -1
- package/dist/http/schema_helpers.js +34 -4
- package/dist/http/surface.d.ts +2 -0
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/http/surface.js +13 -5
- package/dist/primitive_schemas.d.ts +10 -6
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/primitive_schemas.js +20 -6
- package/dist/primitive_schemas_fuz.d.ts +22 -9
- package/dist/primitive_schemas_fuz.d.ts.map +1 -1
- package/dist/primitive_schemas_fuz.js +25 -9
- package/dist/schema_issues.d.ts +11 -0
- package/dist/schema_issues.d.ts.map +1 -1
- package/dist/schema_issues.js +15 -0
- package/dist/testing/CLAUDE.md +6 -6
- 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/assertions.d.ts +6 -5
- package/dist/testing/assertions.d.ts.map +1 -1
- package/dist/testing/assertions.js +9 -4
- 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.js +3 -3
- package/package.json +1 -1
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
*
|
|
72
72
|
* @module
|
|
73
73
|
*/
|
|
74
|
-
import {
|
|
74
|
+
import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
|
|
75
75
|
/**
|
|
76
76
|
* Hard cap on the number of rows returned per call. Bounds the search-result
|
|
77
77
|
* enumeration surface. Default limit (`ACTOR_SEARCH_LIMIT_DEFAULT`) is
|
|
@@ -89,23 +89,71 @@ export declare const ACTOR_SEARCH_QUERY_LENGTH_MAX = 50;
|
|
|
89
89
|
/**
|
|
90
90
|
* Reason: `scope_ids` was empty and the caller is not admin. Distinct from
|
|
91
91
|
* standard `invalid_params` issues so the visiones picker can surface a
|
|
92
|
-
* specific "pick a scope first" message rather than echoing
|
|
92
|
+
* specific "pick a scope first" message rather than echoing validation issues.
|
|
93
93
|
*/
|
|
94
94
|
export declare const ERROR_ACTOR_SEARCH_SCOPE_REQUIRED: "actor_search_scope_required";
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
limit
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
95
|
+
/** Input for `actor_search`, a `@fuzdev/fuz_schema` schema. */
|
|
96
|
+
export declare const ActorSearchInput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
97
|
+
query: string;
|
|
98
|
+
limit?: number | undefined;
|
|
99
|
+
scope_ids?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[] | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
query: string;
|
|
102
|
+
limit?: number | undefined;
|
|
103
|
+
scope_ids?: string[] | undefined;
|
|
104
|
+
}, "object", {
|
|
105
|
+
query: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
106
|
+
scope_ids: 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[], "array", 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">)[]> & {
|
|
107
|
+
readonly '~types'?: {
|
|
108
|
+
readonly input: string;
|
|
109
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
110
|
+
} | undefined;
|
|
111
|
+
}>>>;
|
|
112
|
+
limit: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>>;
|
|
113
|
+
}>;
|
|
114
|
+
export type ActorSearchInput = Infer<typeof ActorSearchInput>;
|
|
115
|
+
/** Output for `actor_search`, a `@fuzdev/fuz_schema` schema. */
|
|
116
|
+
export declare const ActorSearchOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
117
|
+
actors: {
|
|
118
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
119
|
+
username: string;
|
|
120
|
+
display_name?: string | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
}, {
|
|
123
|
+
actors: {
|
|
124
|
+
id: string;
|
|
125
|
+
username: string;
|
|
126
|
+
display_name?: string | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
}, "object", {
|
|
129
|
+
actors: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
130
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
131
|
+
username: string;
|
|
132
|
+
display_name?: string | undefined;
|
|
133
|
+
}[], {
|
|
134
|
+
id: string;
|
|
135
|
+
username: string;
|
|
136
|
+
display_name?: string | undefined;
|
|
137
|
+
}[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
138
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
139
|
+
username: string;
|
|
140
|
+
display_name?: string | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
id: string;
|
|
143
|
+
username: string;
|
|
144
|
+
display_name?: string | undefined;
|
|
145
|
+
}, "object", {
|
|
146
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"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">)[]> & {
|
|
147
|
+
readonly '~types'?: {
|
|
148
|
+
readonly input: string;
|
|
149
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
150
|
+
} | undefined;
|
|
151
|
+
};
|
|
152
|
+
username: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
153
|
+
display_name: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
154
|
+
}>>;
|
|
155
|
+
}>;
|
|
156
|
+
export type ActorSearchOutput = Infer<typeof ActorSearchOutput>;
|
|
109
157
|
export declare const actor_search_action_spec: {
|
|
110
158
|
method: string;
|
|
111
159
|
kind: "request_response";
|
|
@@ -115,18 +163,64 @@ export declare const actor_search_action_spec: {
|
|
|
115
163
|
actor: "none";
|
|
116
164
|
};
|
|
117
165
|
side_effects: false;
|
|
118
|
-
input:
|
|
119
|
-
query:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
166
|
+
input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
167
|
+
query: string;
|
|
168
|
+
limit?: number | undefined;
|
|
169
|
+
scope_ids?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[] | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
query: string;
|
|
172
|
+
limit?: number | undefined;
|
|
173
|
+
scope_ids?: string[] | undefined;
|
|
174
|
+
}, "object", {
|
|
175
|
+
query: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
176
|
+
scope_ids: 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[], "array", 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">)[]> & {
|
|
177
|
+
readonly '~types'?: {
|
|
178
|
+
readonly input: string;
|
|
179
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
180
|
+
} | undefined;
|
|
181
|
+
}>>>;
|
|
182
|
+
limit: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>>;
|
|
183
|
+
}>;
|
|
184
|
+
output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
185
|
+
actors: {
|
|
186
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
187
|
+
username: string;
|
|
188
|
+
display_name?: string | undefined;
|
|
189
|
+
}[];
|
|
190
|
+
}, {
|
|
191
|
+
actors: {
|
|
192
|
+
id: string;
|
|
193
|
+
username: string;
|
|
194
|
+
display_name?: string | undefined;
|
|
195
|
+
}[];
|
|
196
|
+
}, "object", {
|
|
197
|
+
actors: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
198
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
199
|
+
username: string;
|
|
200
|
+
display_name?: string | undefined;
|
|
201
|
+
}[], {
|
|
202
|
+
id: string;
|
|
203
|
+
username: string;
|
|
204
|
+
display_name?: string | undefined;
|
|
205
|
+
}[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
206
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
207
|
+
username: string;
|
|
208
|
+
display_name?: string | undefined;
|
|
209
|
+
}, {
|
|
210
|
+
id: string;
|
|
211
|
+
username: string;
|
|
212
|
+
display_name?: string | undefined;
|
|
213
|
+
}, "object", {
|
|
214
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"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">)[]> & {
|
|
215
|
+
readonly '~types'?: {
|
|
216
|
+
readonly input: string;
|
|
217
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
218
|
+
} | undefined;
|
|
219
|
+
};
|
|
220
|
+
username: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
221
|
+
display_name: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
222
|
+
}>>;
|
|
223
|
+
}>;
|
|
130
224
|
async: true;
|
|
131
225
|
rate_limit: "account";
|
|
132
226
|
error_reasons: "actor_search_scope_required"[];
|
|
@@ -146,18 +240,64 @@ export declare const all_actor_search_action_specs: readonly [{
|
|
|
146
240
|
actor: "none";
|
|
147
241
|
};
|
|
148
242
|
side_effects: false;
|
|
149
|
-
input:
|
|
150
|
-
query:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
243
|
+
input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
244
|
+
query: string;
|
|
245
|
+
limit?: number | undefined;
|
|
246
|
+
scope_ids?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[] | undefined;
|
|
247
|
+
}, {
|
|
248
|
+
query: string;
|
|
249
|
+
limit?: number | undefined;
|
|
250
|
+
scope_ids?: string[] | undefined;
|
|
251
|
+
}, "object", {
|
|
252
|
+
query: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
253
|
+
scope_ids: 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[], "array", 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">)[]> & {
|
|
254
|
+
readonly '~types'?: {
|
|
255
|
+
readonly input: string;
|
|
256
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
257
|
+
} | undefined;
|
|
258
|
+
}>>>;
|
|
259
|
+
limit: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>>;
|
|
260
|
+
}>;
|
|
261
|
+
output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
262
|
+
actors: {
|
|
263
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
264
|
+
username: string;
|
|
265
|
+
display_name?: string | undefined;
|
|
266
|
+
}[];
|
|
267
|
+
}, {
|
|
268
|
+
actors: {
|
|
269
|
+
id: string;
|
|
270
|
+
username: string;
|
|
271
|
+
display_name?: string | undefined;
|
|
272
|
+
}[];
|
|
273
|
+
}, "object", {
|
|
274
|
+
actors: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
275
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
276
|
+
username: string;
|
|
277
|
+
display_name?: string | undefined;
|
|
278
|
+
}[], {
|
|
279
|
+
id: string;
|
|
280
|
+
username: string;
|
|
281
|
+
display_name?: string | undefined;
|
|
282
|
+
}[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
283
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
|
|
284
|
+
username: string;
|
|
285
|
+
display_name?: string | undefined;
|
|
286
|
+
}, {
|
|
287
|
+
id: string;
|
|
288
|
+
username: string;
|
|
289
|
+
display_name?: string | undefined;
|
|
290
|
+
}, "object", {
|
|
291
|
+
id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"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">)[]> & {
|
|
292
|
+
readonly '~types'?: {
|
|
293
|
+
readonly input: string;
|
|
294
|
+
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
295
|
+
} | undefined;
|
|
296
|
+
};
|
|
297
|
+
username: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
298
|
+
display_name: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
299
|
+
}>>;
|
|
300
|
+
}>;
|
|
161
301
|
async: true;
|
|
162
302
|
rate_limit: "account";
|
|
163
303
|
error_reasons: "actor_search_scope_required"[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actor_search_action_specs.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/actor_search_action_specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;
|
|
1
|
+
{"version":3,"file":"actor_search_action_specs.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/actor_search_action_specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AAGH,OAAO,EASN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAOtC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,EAAG,6BAAsC,CAAC;AAExF,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EAgB3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE9D,gEAAgE;AAChE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcA,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC"}
|
|
@@ -71,8 +71,9 @@
|
|
|
71
71
|
*
|
|
72
72
|
* @module
|
|
73
73
|
*/
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
74
|
+
import { meta } from '@fuzdev/fuz_schema/meta.ts';
|
|
75
|
+
import { array, integer, max_value, min_value, number, object, optional, pipe } from '@fuzdev/fuz_schema/schema.ts';
|
|
76
|
+
import { Uuid, bounded_string } from '../primitive_schemas_fuz.js';
|
|
76
77
|
import { ActorLookupEntryJson } from './actor_lookup_action_specs.js';
|
|
77
78
|
/**
|
|
78
79
|
* Hard cap on the number of rows returned per call. Bounds the search-result
|
|
@@ -91,29 +92,25 @@ export const ACTOR_SEARCH_QUERY_LENGTH_MAX = 50;
|
|
|
91
92
|
/**
|
|
92
93
|
* Reason: `scope_ids` was empty and the caller is not admin. Distinct from
|
|
93
94
|
* standard `invalid_params` issues so the visiones picker can surface a
|
|
94
|
-
* specific "pick a scope first" message rather than echoing
|
|
95
|
+
* specific "pick a scope first" message rather than echoing validation issues.
|
|
95
96
|
*/
|
|
96
97
|
export const ERROR_ACTOR_SEARCH_SCOPE_REQUIRED = 'actor_search_scope_required';
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
/** Input for `actor_search`, a `@fuzdev/fuz_schema` schema. */
|
|
99
|
+
export const ActorSearchInput = object({
|
|
100
|
+
query: meta(bounded_string({ min: 1, max: ACTOR_SEARCH_QUERY_LENGTH_MAX }), {
|
|
99
101
|
description: `Case-insensitive prefix match against \`actor.name\`. Length 1–${ACTOR_SEARCH_QUERY_LENGTH_MAX}.`,
|
|
100
102
|
sensitivity: 'personal'
|
|
101
103
|
}),
|
|
102
|
-
scope_ids:
|
|
104
|
+
scope_ids: meta(optional(array(Uuid)), {
|
|
103
105
|
description: 'Restrict results to actors holding a role_grant on any of these scopes. Required (non-empty) for non-admin callers; admin callers may omit or pass empty for unbounded search. Caller is responsible for pre-filtering against their own authority — the SQL filter does not enforce it.'
|
|
104
106
|
}),
|
|
105
|
-
limit:
|
|
106
|
-
.number()
|
|
107
|
-
.int()
|
|
108
|
-
.min(1)
|
|
109
|
-
.max(ACTOR_SEARCH_LIMIT_MAX)
|
|
110
|
-
.optional()
|
|
111
|
-
.meta({
|
|
107
|
+
limit: meta(optional(pipe(number, integer, min_value(1), max_value(ACTOR_SEARCH_LIMIT_MAX))), {
|
|
112
108
|
description: `Maximum rows to return. Defaults to ${ACTOR_SEARCH_LIMIT_DEFAULT}, hard cap ${ACTOR_SEARCH_LIMIT_MAX}.`
|
|
113
109
|
})
|
|
114
110
|
});
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
/** Output for `actor_search`, a `@fuzdev/fuz_schema` schema. */
|
|
112
|
+
export const ActorSearchOutput = object({
|
|
113
|
+
actors: array(ActorLookupEntryJson)
|
|
117
114
|
});
|
|
118
115
|
export const actor_search_action_spec = {
|
|
119
116
|
method: 'actor_search',
|
package/dist/http/CLAUDE.md
CHANGED
|
@@ -48,19 +48,30 @@ consumers.
|
|
|
48
48
|
- `auth: RouteAuth` — flat record `{account, actor, roles?, credential_types?, required_scope?}` from `http/auth_shape.ts`. `account` / `actor` are `'none' | 'optional' | 'required'`. `required_scope` names the capability a narrowed api token's scope must admit — `surface:<name>`, a non-RPC surface refused to every narrowed token (an `rpc:<method>` capability throws at registration: it is the dispatcher's per-method gate, which a route never reaches) — and is route-spec-only: `compile_action_registry` rejects it on an `ActionSpec`, where the dispatcher derives `rpc:<method>` from `spec.method`. Otherwise the same shape governs `ActionSpec.auth` (see `actions/CLAUDE.md`).
|
|
49
49
|
- `handler: RouteHandler` — `(c: Context, route: RouteContext) => Response | Promise<Response>`
|
|
50
50
|
- `description` — free-text, surfaced in `AppSurface`
|
|
51
|
-
- `params?: z.ZodObject` — strict-object schema for URL path params
|
|
52
|
-
- `query?: z.ZodObject` — strict-object schema for URL query string
|
|
53
|
-
- `input:
|
|
54
|
-
- `output:
|
|
51
|
+
- `params?: z.ZodObject | AnySchema` — strict-object schema for URL path params
|
|
52
|
+
- `query?: z.ZodObject | AnySchema` — strict-object schema for URL query string
|
|
53
|
+
- `input: ValidationSchema` — request body schema; `z.null()` (or fuz_schema `literal(null)`) for no-body (GET/DELETE)
|
|
54
|
+
- `output: ValidationSchema` — success response schema
|
|
55
55
|
- `mints_credential?: boolean` — the route issues a session cookie while declaring no auth (login, signup, bootstrap); assembly refuses it outside `AUTH_MIDDLEWARE_PATH`, as it does any route whose `auth.account` is not `'none'` (`assert_credential_routes_in_auth_scope` in `auth/middleware.ts`)
|
|
56
56
|
- `reads_credential?: boolean` — the handler reads the resolved account while the route declares no auth gate, answering an anonymous caller itself (account status, the cell-scoped fact read, `create_rpc_endpoint`'s pair, whose dispatcher gates per action); held inside `AUTH_MIDDLEWARE_PATH` by the same assertion. Such a handler reads the account through `get_public_account_id` (`auth/request_context.ts`), which answers a scope-narrowed token as anonymous — the RPC pair excepted, its dispatcher gating each method
|
|
57
57
|
- `rate_limit?: RateLimitKey` — metadata only (`'ip' | 'account' | 'both'`); auto-derives 429
|
|
58
58
|
- `errors?: RouteErrorSchemas` — handler-specific error schemas keyed by HTTP status
|
|
59
59
|
- `transaction?: boolean` — declarative transaction wrapping (see below)
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
Every schema field takes a Zod or a `@fuzdev/fuz_schema` schema
|
|
62
|
+
(`ValidationSchema`, `schema_issues.ts`), validated through `parse_any`, its
|
|
63
|
+
refusals answered with `to_wire_issues`'s `WireIssue`s either way. A slot
|
|
64
|
+
holding a value of neither library throws at registration, naming the route
|
|
65
|
+
and the slot (`assert_validation_schema`) — in an assembled app, surface
|
|
66
|
+
generation (`schema_to_surface`) reads most slots first and throws the same
|
|
67
|
+
refusal; `params`, `query` and an `errors` entry
|
|
68
|
+
may be absent. A fuz_schema `params` or `query` must be an object schema
|
|
69
|
+
under any wrappers (`get_schema_entries`); `apply_route_specs` throws naming
|
|
70
|
+
the route on one that isn't. Input/output naming mirrors SAES `ActionSpec`. Use a strict object for
|
|
71
|
+
inputs — `z.strictObject()` or fuz_schema's `object` — the surface diagnostic
|
|
72
|
+
warns on non-strict objects because unknown keys are silently stripped by Zod
|
|
73
|
+
4's default `z.object()` (and by fuz_schema's `strip_object`, kept by its
|
|
74
|
+
`loose_object`); the warning names the library's strict form.
|
|
64
75
|
|
|
65
76
|
### `RouteContext` — per-request deps
|
|
66
77
|
|
|
@@ -124,7 +135,8 @@ Duplicate `method path` pairs throw at registration.
|
|
|
124
135
|
|
|
125
136
|
Validated values are accessed via `get_route_input(c, schema)`,
|
|
126
137
|
`get_route_params(c, schema)`, `get_route_query(c, schema)` — pass the
|
|
127
|
-
matching Zod
|
|
138
|
+
matching schema, Zod or fuz_schema, and the return type infers as
|
|
139
|
+
`ValidationOutput<typeof schema>`.
|
|
128
140
|
Each helper has a `<T>(c)` overload (no schema arg) for callers without the
|
|
129
141
|
schema in scope.
|
|
130
142
|
|
|
@@ -157,7 +169,7 @@ WS); see ../../../docs/architecture.md §DEV-only Output Validation.
|
|
|
157
169
|
|
|
158
170
|
- `ERROR_*` `snake_case` string constants — single source of truth; use `.literal(ERROR_*)` in Zod schemas and inline checks in handlers
|
|
159
171
|
- `ApiError`, `ValidationError`, `PermissionError`, `CredentialTypeRequiredError`, `RateLimitError`, `PayloadTooLargeError`, `UnsupportedContentTypeError`, `ForeignKeyError` — standard shapes
|
|
160
|
-
- `RouteErrorSchemas = Partial<Record<number,
|
|
172
|
+
- `RouteErrorSchemas = Partial<Record<number, ValidationSchema>>` — Zod or fuz_schema, on `RouteSpec.errors` and `MiddlewareSpec.errors`; `derive_error_schemas` returns the Zod-only `DerivedErrorSchemas`
|
|
161
173
|
- `RateLimitKey = 'ip' | 'account' | 'both'`
|
|
162
174
|
|
|
163
175
|
All standard shapes use `z.looseObject` — intentional because multiple
|
|
@@ -170,7 +182,9 @@ Pair every schema with the `z.infer` type export.
|
|
|
170
182
|
### Three-layer error-schema merge
|
|
171
183
|
|
|
172
184
|
`merge_error_schemas(spec, middleware_errors?)` (in `http/schema_helpers.ts`)
|
|
173
|
-
merges three layers, later overrides earlier at the same status code
|
|
185
|
+
merges three layers, later overrides earlier at the same status code; an
|
|
186
|
+
entry left `undefined` is absent (`strip_undefined_error_schemas`), so it
|
|
187
|
+
overrides nothing:
|
|
174
188
|
|
|
175
189
|
1. **Derived** — from `derive_error_schemas({auth, has_input?, has_params?, has_query?, rate_limit?, checks_content_type?})`:
|
|
176
190
|
- `has_input || has_params || has_query` → 400 `ValidationError`
|
|
@@ -241,10 +255,11 @@ Key helpers:
|
|
|
241
255
|
- `json_has_own_proto_key(value)` — whether any object in a parsed JSON value has an own `__proto__` key, by an iterative walk (no recursion — `JSON.parse` nests deeper than the call stack); the dispatcher refuses such params with `ERROR_PARAMS_PROTO_KEY`. Twin of the Rust `fuz_http::json_has_own_proto_key`
|
|
242
256
|
- `safe_parse_dropping_unknown_keys(schema, value)` — the forward-compatible read of a remote-authored payload, Zod or fuz_schema, returning `parse_any`'s `{ok, value}` / `{ok: false, issues}`: while every issue is an unknown key (`unknown_key_targets`), strips them from a copy and reparses — after the first parse that reports unknown keys, one schema-guided pass deletes every key a strict fuz_schema `object` doesn't name anywhere the schema reaches (entries, array items, record values, the `variant` option), as a fuz_schema parse reports at most a hundred issues; a key under a fuz_schema `union` is never stripped (the union fails as one issue of its own), and a later `pipe` stage is stripped only as reported — until nothing is left to strip, capped at `UNKNOWN_KEY_PASSES_MAX` passes (the last failure returned past it); any other issue still fails. A Zod union of strict objects reports the key and is stripped, a fuz_schema `union` reports one issue of its own and is not. Used for response `result`s (`ActionEvent`) and peer replies (`peer/ping`); matches serde's ignore-unknown-fields default on the Rust spine
|
|
243
257
|
- `is_strict_object_schema(schema)` — detects `z.strictObject()` by checking `schema.def.catchall instanceof z.ZodNever`, or a fuz_schema `object` (not `strip_object` / `loose_object`); a fuz_schema `pipe` is read through to its first schema when no stage is a `transform` (so a refined `object` reads strict), while any Zod `ZodPipe` — even `O.pipe(O)` with no transform — reads not strict
|
|
244
|
-
- `schema_to_surface(schema, {io?, source?, on_unrepresentable?}?)` — Zod or fuz_schema → JSON Schema (`z.toJSONSchema` or fuz_schema's `to_json_schema`, by `is_schema`), on the side `io` names (`'output'` by default), with `$schema` and `default` keys stripped recursively (defaults may be non-deterministic; `$schema` is snapshot noise). `null` for a null or void schema. A part JSON Schema can't say (an output-side transform, a `z.custom()`, a fuz_schema `check`) is left out or written as `{}` (`unrepresentable: 'any'`) and reported to `on_unrepresentable`; a schema with nothing describable (`{}` from a schema other than `z.unknown()` / `z.any()`) or one an emitter refuses outright throws, prefixed with `source` — so a root-level transform output (`z.unknown().transform(f)` included), `z.custom()` or `z.date()` fails server assembly. It never answers `null` for a failure, which would read as "no input" and drop the schema from every suite that reads the surface
|
|
258
|
+
- `schema_to_surface(schema, {io?, source?, on_unrepresentable?}?)` — throws first on a value of neither library (`assert_validation_schema`, naming `source`, so an assembled app's slot of neither library fails boot as registration would refuse it, not as an unwritable JSON Schema); Zod or fuz_schema → JSON Schema (`z.toJSONSchema` or fuz_schema's `to_json_schema`, by `is_schema`), on the side `io` names (`'output'` by default), with `$schema` and `default` keys stripped recursively (defaults may be non-deterministic; `$schema` is snapshot noise). `null` for a null or void schema. A part JSON Schema can't say (an output-side transform, a `z.custom()`, a fuz_schema `check`) is left out or written as `{}` (`unrepresentable: 'any'`) and reported to `on_unrepresentable`; a schema with nothing describable (`{}` from a schema other than `z.unknown()` / `z.any()`) or one an emitter refuses outright throws, prefixed with `source` — so a root-level transform output (`z.unknown().transform(f)` included), `z.custom()` or `z.date()` fails server assembly. It never answers `null` for a failure, which would read as "no input" and drop the schema from every suite that reads the surface
|
|
245
259
|
- `middleware_applies(mw_path, route_path)` — Hono pattern matching: `'*'`, exact, `'/api/*'` prefix (handles `prefix.slice(0, -1)` so `/api/*` also matches the bare `/api`)
|
|
246
260
|
- `middleware_spec_applies(spec, route_path)` — the layer runs on the route: its `path` applies and none of its `carve_outs` does; what surface generation merges middleware errors by
|
|
247
261
|
- `merge_error_schemas(spec, middleware_errors?)` — the three-layer merge described above
|
|
262
|
+
- `strip_undefined_error_schemas(errors)` — an error-schema map without its `undefined` entries, what the merge and `collect_middleware_errors` read each layer through
|
|
248
263
|
|
|
249
264
|
## Surface Generation
|
|
250
265
|
|
|
@@ -80,14 +80,11 @@ export type ActingActor = z.infer<typeof ActingActor>;
|
|
|
80
80
|
* an input schema behind it, so there a malformed selector is final (the
|
|
81
81
|
* status route answers account-only).
|
|
82
82
|
*
|
|
83
|
-
* The grammar is the fuz_schema twin's,
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* that schema runs ahead of the authorization phase and refuses the uppercase
|
|
89
|
-
* max with a 400, a declared gap against the Rust spine until those query
|
|
90
|
-
* schemas move to the twin.
|
|
83
|
+
* The grammar is the fuz_schema twin's, which is the Zod `ActingActor`'s and
|
|
84
|
+
* the Rust spine's, so every value reads as the Zod `ActingActor` would, the
|
|
85
|
+
* max UUID in any case included. The id comes back lowercased. A route
|
|
86
|
+
* declaring `acting` on its Zod `query` schema doesn't read it here: that
|
|
87
|
+
* schema runs ahead of the authorization phase, with the same grammar.
|
|
91
88
|
*
|
|
92
89
|
* @param value - the raw `acting` field, from params / query / body
|
|
93
90
|
* @returns the actor id, or `undefined` when absent or malformed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth_shape.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/http/auth_shape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,WAAW,gNAAkE,CAAC;AAC3F,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"auth_shape.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/http/auth_shape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;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AA4B,GAAI,MAAM,SAAS,EAAE,SAAS,MAAM,KAAG,IAM/E,CAAC;AAYF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,4BAA4B,GAAI,QAAQ,gBAAgB,KAAG,OAKvE,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sCAAsC,GAClD,MAAM,SAAS,EACf,OAAO,WAAW,EAClB,SAAS,MAAM,KACb,IAmBF,CAAC"}
|
package/dist/http/auth_shape.js
CHANGED
|
@@ -83,14 +83,11 @@ export const ActingActor = Uuid.optional().meta({ description: ACTING_ACTOR_DESC
|
|
|
83
83
|
* an input schema behind it, so there a malformed selector is final (the
|
|
84
84
|
* status route answers account-only).
|
|
85
85
|
*
|
|
86
|
-
* The grammar is the fuz_schema twin's,
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* that schema runs ahead of the authorization phase and refuses the uppercase
|
|
92
|
-
* max with a 400, a declared gap against the Rust spine until those query
|
|
93
|
-
* schemas move to the twin.
|
|
86
|
+
* The grammar is the fuz_schema twin's, which is the Zod `ActingActor`'s and
|
|
87
|
+
* the Rust spine's, so every value reads as the Zod `ActingActor` would, the
|
|
88
|
+
* max UUID in any case included. The id comes back lowercased. A route
|
|
89
|
+
* declaring `acting` on its Zod `query` schema doesn't read it here: that
|
|
90
|
+
* schema runs ahead of the authorization phase, with the same grammar.
|
|
94
91
|
*
|
|
95
92
|
* @param value - the raw `acting` field, from params / query / body
|
|
96
93
|
* @returns the actor id, or `undefined` when absent or malformed
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { z } from 'zod';
|
|
15
15
|
import { type RouteAuth } from './auth_shape.js';
|
|
16
|
+
import { type ValidationSchema } from '../schema_issues.js';
|
|
16
17
|
/** Request body failed Zod validation. */
|
|
17
18
|
export declare const ERROR_INVALID_REQUEST_BODY: "invalid_request_body";
|
|
18
19
|
/** Request body is not valid JSON or not an object. */
|
|
@@ -308,11 +309,18 @@ export declare const AccountVanishedError: z.ZodObject<{
|
|
|
308
309
|
}, z.core.$loose>;
|
|
309
310
|
export type AccountVanishedError = z.infer<typeof AccountVanishedError>;
|
|
310
311
|
/**
|
|
311
|
-
* Error schema map — maps HTTP status codes to Zod
|
|
312
|
+
* Error schema map — maps HTTP status codes to Zod or `@fuzdev/fuz_schema`
|
|
313
|
+
* schemas.
|
|
312
314
|
*
|
|
313
|
-
* Used on `RouteSpec.errors` and
|
|
315
|
+
* Used on `RouteSpec.errors` and `MiddlewareSpec.errors`; `derive_error_schemas`
|
|
316
|
+
* returns its Zod-only form, `DerivedErrorSchemas`.
|
|
314
317
|
*/
|
|
315
|
-
export type RouteErrorSchemas = Partial<Record<number,
|
|
318
|
+
export type RouteErrorSchemas = Partial<Record<number, ValidationSchema>>;
|
|
319
|
+
/**
|
|
320
|
+
* The error schemas `derive_error_schemas` builds, all of them Zod, with no
|
|
321
|
+
* entry left `undefined`.
|
|
322
|
+
*/
|
|
323
|
+
export type DerivedErrorSchemas = Record<number, z.ZodType>;
|
|
316
324
|
/**
|
|
317
325
|
* Rate limit key type — declares what a route or RPC action's rate limiter
|
|
318
326
|
* is keyed on.
|
|
@@ -366,5 +374,5 @@ export interface DeriveErrorSchemasOptions {
|
|
|
366
374
|
rate_limit?: RateLimitKey;
|
|
367
375
|
checks_content_type?: boolean;
|
|
368
376
|
}
|
|
369
|
-
export declare const derive_error_schemas: ({ auth, has_input, has_params, has_query, rate_limit, checks_content_type }: DeriveErrorSchemasOptions) =>
|
|
377
|
+
export declare const derive_error_schemas: ({ auth, has_input, has_params, has_query, rate_limit, checks_content_type }: DeriveErrorSchemasOptions) => DerivedErrorSchemas;
|
|
370
378
|
//# sourceMappingURL=error_schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error_schemas.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/http/error_schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"error_schemas.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/http/error_schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvE,0CAA0C;AAC1C,eAAO,MAAM,0BAA0B,EAAG,sBAA+B,CAAC;AAE1E,uDAAuD;AACvD,eAAO,MAAM,uBAAuB,EAAG,mBAA4B,CAAC;AAEpE,6CAA6C;AAC7C,eAAO,MAAM,0BAA0B,EAAG,sBAA+B,CAAC;AAE1E,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,EAAG,sBAA+B,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAG,kBAA2B,CAAC;AAIlE,wCAAwC;AACxC,eAAO,MAAM,6BAA6B,EAAG,yBAAkC,CAAC;AAEhF,+CAA+C;AAC/C,eAAO,MAAM,8BAA8B,EAAG,0BAAmC,CAAC;AAElF;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAG,0BAAmC,CAAC;AAElF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B,EAAG,sBAA+B,CAAC;AAE1E,yCAAyC;AACzC,eAAO,MAAM,yBAAyB,EAAG,qBAA8B,CAAC;AAExE,sFAAsF;AACtF,eAAO,MAAM,yBAAyB,EAAG,qBAA8B,C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