@fuzdev/fuz_app 0.165.0 → 0.166.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 +2 -2
- package/dist/actions/action_event_data.d.ts +1 -1
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +24 -15
- package/dist/actions/action_spec.d.ts +2 -2
- package/dist/actions/perform_action.d.ts +2 -1
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/auth/account_action_specs.d.ts +8 -8
- package/dist/auth/account_route_schema.d.ts +197 -164
- package/dist/auth/account_route_schema.d.ts.map +1 -1
- package/dist/auth/account_route_schema.js +19 -17
- package/dist/auth/account_routes.d.ts.map +1 -1
- package/dist/auth/account_routes.js +285 -294
- package/dist/auth/admin_action_specs.d.ts +64 -64
- package/dist/auth/audit_log_route_schema.d.ts +16 -8
- package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_route_schema.js +4 -3
- package/dist/auth/audit_log_routes.d.ts +1 -1
- package/dist/auth/audit_log_routes.d.ts.map +1 -1
- package/dist/auth/audit_log_routes.js +112 -111
- package/dist/auth/audit_log_schema.d.ts +22 -22
- package/dist/auth/bootstrap_route_schema.d.ts +46 -69
- package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
- package/dist/auth/bootstrap_route_schema.js +8 -7
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.js +100 -98
- package/dist/auth/role_grant_offer_action_specs.d.ts +4 -4
- package/dist/auth/signup_route_schema.d.ts +9 -4
- package/dist/auth/signup_route_schema.d.ts.map +1 -1
- package/dist/auth/signup_route_schema.js +5 -3
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/signup_routes.js +170 -170
- package/dist/http/CLAUDE.md +48 -3
- package/dist/http/common_routes.d.ts +1 -1
- package/dist/http/common_routes.d.ts.map +1 -1
- package/dist/http/common_routes.js +13 -11
- package/dist/http/db_routes.d.ts.map +1 -1
- package/dist/http/db_routes.js +25 -28
- package/dist/http/error_schemas.d.ts +5 -1
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/error_schemas.js +5 -1
- package/dist/http/route_result.d.ts +101 -0
- package/dist/http/route_result.d.ts.map +1 -0
- package/dist/http/route_result.js +56 -0
- package/dist/http/route_spec.d.ts +110 -6
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +82 -14
- package/dist/rate_limiter.d.ts +0 -9
- package/dist/rate_limiter.d.ts.map +1 -1
- package/dist/rate_limiter.js +0 -15
- package/dist/server/serve_fact_route.d.ts.map +1 -1
- package/dist/server/serve_fact_route.js +23 -21
- package/dist/server/surface_route.d.ts +1 -1
- package/dist/server/surface_route.d.ts.map +1 -1
- package/dist/server/surface_route.js +4 -2
- package/dist/testing/CLAUDE.md +5 -3
- package/dist/testing/adversarial_404.d.ts.map +1 -1
- package/dist/testing/adversarial_404.js +12 -7
- package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
- package/dist/testing/cross_backend/login_security.js +3 -2
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_consumer_surface.js +2 -6
- package/dist/testing/stubs.d.ts +14 -3
- package/dist/testing/stubs.d.ts.map +1 -1
- package/dist/testing/stubs.js +21 -6
- package/package.json +1 -1
package/dist/actions/CLAUDE.md
CHANGED
|
@@ -191,7 +191,7 @@ use `auth: {account: 'none', actor: 'none'}` and `transaction: false`.
|
|
|
191
191
|
|
|
192
192
|
The HTTP RPC dispatcher is a thin shim around `perform_action`
|
|
193
193
|
(`actions/perform_action.ts`). The shim owns wire-shape concerns (envelope
|
|
194
|
-
parsing, GET vs POST split, `
|
|
194
|
+
parsing, GET vs POST split, the envelope responses — each a `route_raw`); the
|
|
195
195
|
auth/validation/dispatch pipeline is shared with the WebSocket dispatcher.
|
|
196
196
|
|
|
197
197
|
**Phase order: 401 → authz → 403 → 429 → 400 → handler.** Authorize first,
|
|
@@ -211,7 +211,7 @@ Shim responsibilities (per-request):
|
|
|
211
211
|
3. GET read restriction — GET rejected for `side_effects: true` actions. Every response the GET handler writes, its refusals included, carries `Cache-Control: no-store` (`RPC_GET_CACHE_CONTROL`; a pre-handler middleware refusal, like the origin 403, does not): a read answers one caller at one moment.
|
|
212
212
|
4. Build `PerformActionInput` from `get_resolved_auth(c)` + `get_client_ip` + `c.req.raw.signal`. Test-preset escape hatch reads `has_test_context_preset(c)` + `REQUEST_CONTEXT_KEY`.
|
|
213
213
|
5. Call `perform_action` (shared core).
|
|
214
|
-
6. Bind result via `serialize_action_result(id, result, method, log)` (`actions/perform_action.ts`, shared with WS) → `{body, status}`, written with `c.json`'s content type.
|
|
214
|
+
6. Bind result via `serialize_action_result(id, result, method, log)` (`actions/perform_action.ts`, shared with WS) → `{body, status}`, written with `c.json`'s bytes and content type and returned as a `route_raw`, as is every envelope the shim answers: no REST definition describes one.
|
|
215
215
|
|
|
216
216
|
Error paths: `ThrownJsonrpcError` (recognized through
|
|
217
217
|
`to_thrown_jsonrpc_error` in `http/jsonrpc_errors.ts` by its realm-global
|
|
@@ -12,8 +12,8 @@ import { JsonrpcRequest, JsonrpcResponseOrError, JsonrpcNotification, JsonrpcErr
|
|
|
12
12
|
import { ActionExecutor } from './action_event_types.js';
|
|
13
13
|
export declare const ActionEventData: z.ZodObject<{
|
|
14
14
|
kind: z.ZodEnum<{
|
|
15
|
-
remote_notification: "remote_notification";
|
|
16
15
|
request_response: "request_response";
|
|
16
|
+
remote_notification: "remote_notification";
|
|
17
17
|
local_call: "local_call";
|
|
18
18
|
}>;
|
|
19
19
|
phase: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action_rpc.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/action_rpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"action_rpc.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/action_rpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAmC,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAiBxF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,yCAAyC;AACzC,MAAM,WAAW,wBAAwB;IACxC,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;;;;OAQG;IACH,sBAAsB,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3C;;;;;;;OAOG;IACH,2BAA2B,EAAE,WAAW,GAAG,IAAI,CAAC;CAChD;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,wBAAwB,KAAG,KAAK,CAAC,SAAS,CAoOtF,CAAC"}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
import { z } from 'zod';
|
|
16
16
|
import { DEV } from 'esm-env';
|
|
17
17
|
import { UnreachableError } from '@fuzdev/fuz_util/error.ts';
|
|
18
|
-
import {} from '../http/route_spec.js';
|
|
18
|
+
import { define_route } from '../http/route_spec.js';
|
|
19
|
+
import { route_raw } from '../http/route_result.js';
|
|
19
20
|
import { get_client_ip } from '../http/client_ip.js';
|
|
20
21
|
import { get_request_context } from '../auth/request_context.js';
|
|
21
22
|
import { get_resolved_auth } from '../auth/resolved_auth.js';
|
|
@@ -29,6 +30,14 @@ import { perform_action, serialize_action_result } from './perform_action.js';
|
|
|
29
30
|
* — a read is per caller and per moment, so nothing may store it.
|
|
30
31
|
*/
|
|
31
32
|
export const RPC_GET_CACHE_CONTROL = 'no-store';
|
|
33
|
+
/**
|
|
34
|
+
* A JSON-RPC envelope answered at `status`, with the bytes and `Content-Type`
|
|
35
|
+
* `c.json` writes, as a raw result: the endpoint answers envelopes, its
|
|
36
|
+
* refusals included, which no REST definition describes.
|
|
37
|
+
*/
|
|
38
|
+
const envelope_response = (c, envelope, status) => route_raw(c.body(JSON.stringify(envelope), status, {
|
|
39
|
+
'Content-Type': 'application/json'
|
|
40
|
+
}));
|
|
32
41
|
/**
|
|
33
42
|
* Single JSON-RPC 2.0 endpoint — the canonical RPC transport binding.
|
|
34
43
|
*
|
|
@@ -95,10 +104,10 @@ export const create_rpc_endpoint = (options) => {
|
|
|
95
104
|
const dispatch = async (c, route, method_name, raw_params, id, restrict_to_reads) => {
|
|
96
105
|
const action = action_map.get(method_name);
|
|
97
106
|
if (!action) {
|
|
98
|
-
return c
|
|
107
|
+
return envelope_response(c, create_jsonrpc_error_response(id, jsonrpc_error_messages.method_not_found(method_name)), jsonrpc_error_code_to_http_status(JSONRPC_ERROR_CODES.method_not_found));
|
|
99
108
|
}
|
|
100
109
|
if (restrict_to_reads && action.spec.side_effects) {
|
|
101
|
-
return c
|
|
110
|
+
return envelope_response(c, create_jsonrpc_error_response(id, jsonrpc_error_messages.invalid_request({
|
|
102
111
|
reason: `method '${method_name}' has side effects and must use POST`
|
|
103
112
|
})), jsonrpc_error_code_to_http_status(JSONRPC_ERROR_CODES.invalid_request));
|
|
104
113
|
}
|
|
@@ -137,9 +146,9 @@ export const create_rpc_endpoint = (options) => {
|
|
|
137
146
|
// dispatcher emits (the value space is verified by
|
|
138
147
|
// `jsonrpc_error_code_to_http_status`), which the cast to Hono's
|
|
139
148
|
// `ContentfulStatusCode` bridges. The content type is `c.json`'s.
|
|
140
|
-
return c.body(body, status, {
|
|
149
|
+
return route_raw(c.body(body, status, {
|
|
141
150
|
'Content-Type': 'application/json'
|
|
142
|
-
});
|
|
151
|
+
}));
|
|
143
152
|
};
|
|
144
153
|
// POST handler — parse JSON-RPC envelope from body
|
|
145
154
|
const post_handler = async (c, route) => {
|
|
@@ -150,7 +159,7 @@ export const create_rpc_endpoint = (options) => {
|
|
|
150
159
|
}
|
|
151
160
|
catch {
|
|
152
161
|
const error = create_jsonrpc_error_response(null, jsonrpc_error_messages.parse_error());
|
|
153
|
-
return c
|
|
162
|
+
return envelope_response(c, error, 400);
|
|
154
163
|
}
|
|
155
164
|
// the classifier the WS path runs; HTTP issues no server-initiated
|
|
156
165
|
// requests and has no notification semantics, so a response or a
|
|
@@ -162,10 +171,10 @@ export const create_rpc_endpoint = (options) => {
|
|
|
162
171
|
return dispatch(c, route, method, params, id, false);
|
|
163
172
|
}
|
|
164
173
|
case 'invalid':
|
|
165
|
-
return c
|
|
174
|
+
return envelope_response(c, create_jsonrpc_error_response(classified.id, classified.error), 400);
|
|
166
175
|
case 'notification':
|
|
167
176
|
case 'response':
|
|
168
|
-
return c
|
|
177
|
+
return envelope_response(c, create_jsonrpc_error_response(null, jsonrpc_error_messages.invalid_request()), 400);
|
|
169
178
|
default:
|
|
170
179
|
throw new UnreachableError(classified);
|
|
171
180
|
}
|
|
@@ -180,12 +189,12 @@ export const create_rpc_endpoint = (options) => {
|
|
|
180
189
|
const method_name = c.req.query('method');
|
|
181
190
|
if (!method_name) {
|
|
182
191
|
const error = create_jsonrpc_error_response(null, jsonrpc_error_messages.invalid_request({ reason: 'missing method query parameter' }));
|
|
183
|
-
return c
|
|
192
|
+
return envelope_response(c, error, 400);
|
|
184
193
|
}
|
|
185
194
|
const id_raw = c.req.query('id');
|
|
186
195
|
if (!id_raw) {
|
|
187
196
|
const error = create_jsonrpc_error_response(null, jsonrpc_error_messages.invalid_request({ reason: 'missing id query parameter' }));
|
|
188
|
-
return c
|
|
197
|
+
return envelope_response(c, error, 400);
|
|
189
198
|
}
|
|
190
199
|
// parse integer ids so GET ?id=42 matches POST {id: 42} behavior
|
|
191
200
|
// JSON-RPC spec: "Numbers SHOULD NOT contain fractional parts"
|
|
@@ -200,13 +209,13 @@ export const create_rpc_endpoint = (options) => {
|
|
|
200
209
|
}
|
|
201
210
|
catch {
|
|
202
211
|
const error = create_jsonrpc_error_response(id, jsonrpc_error_messages.invalid_params('params query parameter is not valid JSON'));
|
|
203
|
-
return c
|
|
212
|
+
return envelope_response(c, error, 400);
|
|
204
213
|
}
|
|
205
214
|
}
|
|
206
215
|
return dispatch(c, route, method_name, params, id, true);
|
|
207
216
|
};
|
|
208
217
|
return [
|
|
209
|
-
{
|
|
218
|
+
define_route({
|
|
210
219
|
method: 'POST',
|
|
211
220
|
path: endpoint_path,
|
|
212
221
|
auth: { account: 'none', actor: 'none' }, // per-action auth inside dispatcher
|
|
@@ -220,8 +229,8 @@ export const create_rpc_endpoint = (options) => {
|
|
|
220
229
|
input: z.null(), // dispatcher owns body parsing; rpc_endpoints surface has the real schemas
|
|
221
230
|
output: z.any(), // varies by method
|
|
222
231
|
transaction: false // per-action inside dispatcher
|
|
223
|
-
},
|
|
224
|
-
{
|
|
232
|
+
}),
|
|
233
|
+
define_route({
|
|
225
234
|
method: 'GET',
|
|
226
235
|
path: endpoint_path,
|
|
227
236
|
auth: { account: 'none', actor: 'none' }, // per-action auth inside dispatcher
|
|
@@ -233,6 +242,6 @@ export const create_rpc_endpoint = (options) => {
|
|
|
233
242
|
input: z.null(), // params from query string, validated by dispatcher
|
|
234
243
|
output: z.any(), // varies by method
|
|
235
244
|
transaction: false // per-action inside dispatcher
|
|
236
|
-
}
|
|
245
|
+
})
|
|
237
246
|
];
|
|
238
247
|
};
|
|
@@ -24,17 +24,17 @@ import type { ValidationSchema } from '../schema_issues.js';
|
|
|
24
24
|
/** The action kinds, in declaration order — what `ActionKind` and `is_action_spec` read. */
|
|
25
25
|
export declare const ACTION_KINDS: readonly ["request_response", "remote_notification", "local_call"];
|
|
26
26
|
export declare const ActionKind: z.ZodEnum<{
|
|
27
|
-
remote_notification: "remote_notification";
|
|
28
27
|
request_response: "request_response";
|
|
28
|
+
remote_notification: "remote_notification";
|
|
29
29
|
local_call: "local_call";
|
|
30
30
|
}>;
|
|
31
31
|
export type ActionKind = z.infer<typeof ActionKind>;
|
|
32
32
|
/** Which side initiates an action — what `ActionInitiator` reads. */
|
|
33
33
|
export declare const ACTION_INITIATORS: readonly ["frontend", "backend", "both"];
|
|
34
34
|
export declare const ActionInitiator: z.ZodEnum<{
|
|
35
|
+
both: "both";
|
|
35
36
|
frontend: "frontend";
|
|
36
37
|
backend: "backend";
|
|
37
|
-
both: "both";
|
|
38
38
|
}>;
|
|
39
39
|
export type ActionInitiator = z.infer<typeof ActionInitiator>;
|
|
40
40
|
/** The fields every action spec carries; each kind narrows some of them. */
|
|
@@ -145,7 +145,8 @@ export interface PerformActionDeps {
|
|
|
145
145
|
/**
|
|
146
146
|
* Discriminated result of `perform_action`. Each transport binds this to
|
|
147
147
|
* its wire shape: HTTP RPC folds the error into a JSON-RPC envelope and
|
|
148
|
-
* returns
|
|
148
|
+
* returns it as a `route_raw` result over `c.body`; WS sends the response
|
|
149
|
+
* over the socket.
|
|
149
150
|
*/
|
|
150
151
|
export type PerformActionResult = {
|
|
151
152
|
kind: 'ok';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform_action.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/perform_action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,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;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAC1B,OAAO,kBAAkB,EACzB,MAAM,iBAAiB,KACrB,OAAO,CAAC,mBAAmB,CAuL7B,CAAC;AA8BF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,GACnC,OAAO,gBAAgB,EACvB,QAAQ,aAAa,CAAC,QAAQ,CAAC,EAC/B,QAAQ,OAAO,KACb,kBAOF,CAAC;AA6DF;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,GAC1C,2BAA2B,aAAa,CAAC,MAAM,CAAC,KAC9C,kBAIA,CAAC;AAqEJ,0FAA0F;AAC1F,MAAM,WAAW,sBAAsB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,uBAAuB,GACnC,IAAI,gBAAgB,EACpB,QAAQ,mBAAmB,EAC3B,QAAQ,MAAM,EACd,KAAK,MAAM,KACT,sBAkBF,CAAC"}
|
|
@@ -116,11 +116,11 @@ export type SessionRevokeAllInput = Infer<typeof SessionRevokeAllInput>;
|
|
|
116
116
|
* `count` is the number of sessions revoked.
|
|
117
117
|
*/
|
|
118
118
|
export declare const SessionRevokeAllOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
119
|
-
count: number;
|
|
120
119
|
ok: true;
|
|
121
|
-
}, {
|
|
122
120
|
count: number;
|
|
121
|
+
}, {
|
|
123
122
|
ok: true;
|
|
123
|
+
count: number;
|
|
124
124
|
}, "object", {
|
|
125
125
|
ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
|
|
126
126
|
count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
|
|
@@ -256,14 +256,14 @@ export declare const TokenCreateOutput: import("@fuzdev/fuz_schema/schema.ts").S
|
|
|
256
256
|
name: string;
|
|
257
257
|
id: string;
|
|
258
258
|
expires_at: string | null;
|
|
259
|
-
token: string;
|
|
260
259
|
ok: true;
|
|
260
|
+
token: string;
|
|
261
261
|
}, {
|
|
262
262
|
name: string;
|
|
263
263
|
id: string;
|
|
264
264
|
expires_at: string | null;
|
|
265
|
-
token: string;
|
|
266
265
|
ok: true;
|
|
266
|
+
token: string;
|
|
267
267
|
}, "object", {
|
|
268
268
|
ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
|
|
269
269
|
token: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
@@ -532,11 +532,11 @@ export declare const account_session_revoke_all_action_spec: {
|
|
|
532
532
|
side_effects: true;
|
|
533
533
|
input: import("@fuzdev/fuz_schema/schema.ts").Schema<void, void, "literal", undefined>;
|
|
534
534
|
output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
535
|
-
count: number;
|
|
536
535
|
ok: true;
|
|
537
|
-
}, {
|
|
538
536
|
count: number;
|
|
537
|
+
}, {
|
|
539
538
|
ok: true;
|
|
539
|
+
count: number;
|
|
540
540
|
}, "object", {
|
|
541
541
|
ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
|
|
542
542
|
count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
|
|
@@ -657,14 +657,14 @@ export declare const account_token_create_action_spec: {
|
|
|
657
657
|
name: string;
|
|
658
658
|
id: string;
|
|
659
659
|
expires_at: string | null;
|
|
660
|
-
token: string;
|
|
661
660
|
ok: true;
|
|
661
|
+
token: string;
|
|
662
662
|
}, {
|
|
663
663
|
name: string;
|
|
664
664
|
id: string;
|
|
665
665
|
expires_at: string | null;
|
|
666
|
-
token: string;
|
|
667
666
|
ok: true;
|
|
667
|
+
token: string;
|
|
668
668
|
}, "object", {
|
|
669
669
|
ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
|
|
670
670
|
token: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|