@fuzdev/fuz_app 0.157.0 → 0.159.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/actions/CLAUDE.md +1 -0
  2. package/dist/actions/compile_action_registry.d.ts +5 -1
  3. package/dist/actions/compile_action_registry.d.ts.map +1 -1
  4. package/dist/actions/compile_action_registry.js +8 -1
  5. package/dist/auth/CLAUDE.md +11 -6
  6. package/dist/auth/actor_lookup_action_specs.d.ts +184 -40
  7. package/dist/auth/actor_lookup_action_specs.d.ts.map +1 -1
  8. package/dist/auth/actor_lookup_action_specs.js +16 -14
  9. package/dist/auth/actor_search_action_specs.d.ts +180 -40
  10. package/dist/auth/actor_search_action_specs.d.ts.map +1 -1
  11. package/dist/auth/actor_search_action_specs.js +12 -15
  12. package/dist/auth/audit_log_route_schema.d.ts +18 -6
  13. package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
  14. package/dist/auth/audit_log_route_schema.js +7 -3
  15. package/dist/auth/credential_type_schema.d.ts +4 -4
  16. package/dist/auth/credential_type_schema.d.ts.map +1 -1
  17. package/dist/auth/credential_type_schema.js +6 -6
  18. package/dist/auth/grant_path_schema.d.ts +4 -4
  19. package/dist/auth/grant_path_schema.d.ts.map +1 -1
  20. package/dist/auth/grant_path_schema.js +6 -6
  21. package/dist/auth/request_context.js +1 -1
  22. package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
  23. package/dist/auth/role_grant_offer_action_specs.js +9 -6
  24. package/dist/auth/role_grant_offer_ddl.d.ts +5 -4
  25. package/dist/auth/role_grant_offer_ddl.d.ts.map +1 -1
  26. package/dist/auth/role_grant_offer_ddl.js +5 -4
  27. package/dist/auth/role_schema.d.ts +15 -2
  28. package/dist/auth/role_schema.d.ts.map +1 -1
  29. package/dist/auth/role_schema.js +17 -4
  30. package/dist/auth/role_schema_fuz.d.ts +29 -0
  31. package/dist/auth/role_schema_fuz.d.ts.map +1 -0
  32. package/dist/auth/role_schema_fuz.js +28 -0
  33. package/dist/auth/scope_kind_schema.d.ts +22 -15
  34. package/dist/auth/scope_kind_schema.d.ts.map +1 -1
  35. package/dist/auth/scope_kind_schema.js +24 -17
  36. package/dist/auth/self_service_role_action_specs.d.ts +70 -27
  37. package/dist/auth/self_service_role_action_specs.d.ts.map +1 -1
  38. package/dist/auth/self_service_role_action_specs.js +16 -14
  39. package/dist/auth/token_scope.d.ts +3 -2
  40. package/dist/auth/token_scope.d.ts.map +1 -1
  41. package/dist/auth/token_scope.js +4 -3
  42. package/dist/http/CLAUDE.md +19 -6
  43. package/dist/http/db_routes.d.ts.map +1 -1
  44. package/dist/http/db_routes.js +8 -3
  45. package/dist/http/error_schemas.d.ts +5 -2
  46. package/dist/http/error_schemas.d.ts.map +1 -1
  47. package/dist/http/route_spec.d.ts +7 -4
  48. package/dist/http/route_spec.d.ts.map +1 -1
  49. package/dist/http/route_spec.js +26 -5
  50. package/dist/http/schema_helpers.d.ts +21 -3
  51. package/dist/http/schema_helpers.d.ts.map +1 -1
  52. package/dist/http/schema_helpers.js +34 -4
  53. package/dist/http/surface.d.ts +2 -0
  54. package/dist/http/surface.d.ts.map +1 -1
  55. package/dist/http/surface.js +6 -2
  56. package/dist/primitive_schemas.d.ts +1 -1
  57. package/dist/primitive_schemas.d.ts.map +1 -1
  58. package/dist/primitive_schemas_fuz.d.ts +19 -4
  59. package/dist/primitive_schemas_fuz.d.ts.map +1 -1
  60. package/dist/primitive_schemas_fuz.js +22 -4
  61. package/dist/schema_issues.d.ts +11 -0
  62. package/dist/schema_issues.d.ts.map +1 -1
  63. package/dist/schema_issues.js +15 -0
  64. package/dist/server/serve_fact_route.d.ts.map +1 -1
  65. package/dist/server/serve_fact_route.js +3 -2
  66. package/dist/server/surface_route.d.ts.map +1 -1
  67. package/dist/server/surface_route.js +3 -2
  68. package/dist/testing/CLAUDE.md +12 -8
  69. package/dist/testing/cross_backend/role_grant_role_grammar.d.ts.map +1 -1
  70. package/dist/testing/cross_backend/role_grant_role_grammar.js +94 -6
  71. package/package.json +1 -1
@@ -88,6 +88,7 @@ non-`remote_notification` kind.
88
88
  `create_rpc_endpoint` and `register_action_ws`. Validates these checks in
89
89
  order and returns the `Map<method, RpcAction>` the dispatchers use:
90
90
 
91
+ - **Schema slots** — `input` and `output` each hold a Zod or a fuz_schema schema (via `assert_validation_schema`, `schema_issues.ts`), on every spec; a value of neither library throws naming the action and the slot.
91
92
  - **Auth-shape cross-axis invariants** — roles imply a required actor, no accountless actor, nothing to gate on unrestricted auth (via `assert_route_auth_invariants`).
92
93
  - **Auth-shape biconditional** — `actor !== 'none' ⟺ input declares acting?: ActingActor` (via `assert_route_auth_acting_biconditional`).
93
94
  - **No `auth.required_scope`** — the slot is route-spec-only; nothing mounts a guard from it on an action, so declaring it would be a control that silently does nothing. Narrowed tokens are gated per method by the scope check in `perform_action`, which derives the `rpc:<method>` capability from `spec.method` rather than trusting a hand-written one.
@@ -7,6 +7,10 @@
7
7
  * numbered — "registry-time invariant N" elsewhere in the codebase refers to
8
8
  * the `RouteAuth` cross-axis set in `http/auth_shape.ts`, a different list):
9
9
  *
10
+ * - **Schema slots** — `input` and `output` each hold a Zod or a
11
+ * `@fuzdev/fuz_schema` schema (`assert_validation_schema`); a value of
12
+ * neither library throws naming the action and the slot. Fires for every
13
+ * spec, before the checks that read the schemas.
10
14
  * - **Auth-shape cross-axis invariants** — per `assert_route_auth_invariants`
11
15
  * in `http/auth_shape.ts`: roles imply a required actor, no accountless
12
16
  * actor, nothing to gate on unrestricted auth (that set's invariants 1, 3,
@@ -62,7 +66,7 @@ export interface ActionRegistryCompileResult {
62
66
  *
63
67
  * @param actions - polymorphic action array; HTTP RPC passes `RpcAction[]` (narrower), WebSocket passes `Action[]` (kind-polymorphic — handler-less notification specs are accepted)
64
68
  * @param ctx_label - per-spec error-message prefix, e.g. `'RPC action'` or `'WS action'`. Combined with the spec method as `${ctx_label} "${method}"`.
65
- * @throws Error on a cross-axis invariant or biconditional violation, rate-limit/account-axis mismatch, JSON-RPC null-input or void-output, or duplicate method.
69
+ * @throws Error on a schema slot holding a value of neither library, a cross-axis invariant or biconditional violation, rate-limit/account-axis mismatch, JSON-RPC null-input or void-output, or duplicate method.
66
70
  */
67
71
  export declare const compile_action_registry: (actions: ReadonlyArray<Action>, ctx_label: string) => ActionRegistryCompileResult;
68
72
  //# sourceMappingURL=compile_action_registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compile_action_registry.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/compile_action_registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAO3D,oDAAoD;AACpD,MAAM,WAAW,2BAA2B;IAC3C;;;;;OAKG;IACH,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GACnC,SAAS,aAAa,CAAC,MAAM,CAAC,EAC9B,WAAW,MAAM,KACf,2BAqDF,CAAC"}
1
+ {"version":3,"file":"compile_action_registry.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/compile_action_registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAQ3D,oDAAoD;AACpD,MAAM,WAAW,2BAA2B;IAC3C;;;;;OAKG;IACH,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GACnC,SAAS,aAAa,CAAC,MAAM,CAAC,EAC9B,WAAW,MAAM,KACf,2BAuDF,CAAC"}
@@ -7,6 +7,10 @@
7
7
  * numbered — "registry-time invariant N" elsewhere in the codebase refers to
8
8
  * the `RouteAuth` cross-axis set in `http/auth_shape.ts`, a different list):
9
9
  *
10
+ * - **Schema slots** — `input` and `output` each hold a Zod or a
11
+ * `@fuzdev/fuz_schema` schema (`assert_validation_schema`); a value of
12
+ * neither library throws naming the action and the slot. Fires for every
13
+ * spec, before the checks that read the schemas.
10
14
  * - **Auth-shape cross-axis invariants** — per `assert_route_auth_invariants`
11
15
  * in `http/auth_shape.ts`: roles imply a required actor, no accountless
12
16
  * actor, nothing to gate on unrestricted auth (that set's invariants 1, 3,
@@ -47,13 +51,14 @@
47
51
  */
48
52
  import { assert_route_auth_acting_biconditional, assert_route_auth_invariants } from '../http/auth_shape.js';
49
53
  import { is_null_schema, is_void_schema } from '../http/schema_helpers.js';
54
+ import { assert_validation_schema } from '../schema_issues.js';
50
55
  /**
51
56
  * Validate registry-time invariants and build the dispatcher's
52
57
  * method → action lookup.
53
58
  *
54
59
  * @param actions - polymorphic action array; HTTP RPC passes `RpcAction[]` (narrower), WebSocket passes `Action[]` (kind-polymorphic — handler-less notification specs are accepted)
55
60
  * @param ctx_label - per-spec error-message prefix, e.g. `'RPC action'` or `'WS action'`. Combined with the spec method as `${ctx_label} "${method}"`.
56
- * @throws Error on a cross-axis invariant or biconditional violation, rate-limit/account-axis mismatch, JSON-RPC null-input or void-output, or duplicate method.
61
+ * @throws Error on a schema slot holding a value of neither library, a cross-axis invariant or biconditional violation, rate-limit/account-axis mismatch, JSON-RPC null-input or void-output, or duplicate method.
57
62
  */
58
63
  export const compile_action_registry = (actions, ctx_label) => {
59
64
  const action_map = new Map();
@@ -65,6 +70,8 @@ export const compile_action_registry = (actions, ctx_label) => {
65
70
  throw new Error(`Duplicate ${ctx_label} method: ${spec.method}`);
66
71
  }
67
72
  seen_methods.add(spec.method);
73
+ assert_validation_schema(spec.input, `${ctx}: input`);
74
+ assert_validation_schema(spec.output, `${ctx}: output`);
68
75
  // Auth-shape invariants apply to any spec with non-null auth (which
69
76
  // per the spec union means `kind === 'request_response'`).
70
77
  if (spec.auth !== null) {
@@ -57,8 +57,9 @@ Cross-cutting notes that don't live on any single symbol:
57
57
  Convention — `*_schema.ts` is Zod-only; `*_ddl.ts` holds DDL strings.
58
58
 
59
59
  - `auth/account_schema.ts` — `Account`, `Actor`, `RoleGrant`, `AuthSession`, `ApiToken` + client-safe JSON shapes. Grant predicates over wire fields: `is_role_grant_active` (not revoked, not expired) and `has_global_role(role_grants, role, now?)` (an active grant of the role with `scope_id === null` — the bare-list form of `has_scoped_role(ctx, role, null)`, used client-side by `AuthState`).
60
- - `auth/role_schema.ts` — `RoleName` (lowercase letters and underscores, no leading or trailing underscore, at most `ROLE_NAME_LENGTH_MAX` = 64 characters — the grammar every `role` input and every registered role holds, twin of the Rust `is_valid_role_name`), `RoleSpec`, `ROLE_KEEPER`, `ROLE_ADMIN`, `is_builtin_role`, `create_role_schema`, `builtin_role_specs_by_name`, `role_has_grant_path`, `list_roles_with_grant_path`.
61
- - `auth/scope_kind_schema.ts` — `ScopeKindName`, `create_scope_kind_schema` (open registry, no builtins), `SCOPE_KIND_LENGTH_MAX` (64 — bounds a registered name and the `scope_kind` on `role_grant_offer_create` / `role_grant_assign`, which is copied into the row and its audit metadata).
60
+ - `auth/role_schema.ts` — `RoleName` (lowercase letters and underscores, no leading, trailing or consecutive underscores, at most `ROLE_NAME_LENGTH_MAX` = 64 characters — the grammar every `role` input and every registered role holds, twin of the Rust `is_valid_role_name`), the constants it is built from (`ROLE_NAME_PATTERN`, `ROLE_NAME_LENGTH_MESSAGE`, `ROLE_NAME_PATTERN_MESSAGE`), `RoleSpec`, `ROLE_KEEPER`, `ROLE_ADMIN`, `is_builtin_role`, `create_role_schema`, `builtin_role_specs_by_name`, `role_has_grant_path`, `list_roles_with_grant_path`.
61
+ - `auth/role_schema_fuz.ts` — the `@fuzdev/fuz_schema` twin of `RoleName` under the same name (`@nodocs` while the Zod one stays), `pipe(bounded_string({max, max_message}), message(regex(ROLE_NAME_PATTERN), ROLE_NAME_PATTERN_MESSAGE))` over the same constants: the same verdict, output and JSON Schema as the Zod one, and its messages; a string both too long and off the grammar gets the length issue alone, where Zod adds the grammar issue. Pinned by `role_schema_fuz.test.ts`. `self_service_role_set`'s input declares it; every other `role` input is the Zod one.
62
+ - `auth/scope_kind_schema.ts` — `ScopeKindName`, `create_scope_kind_schema` (open registry, no builtins), `SCOPE_KIND_LENGTH_MAX` (64). `ScopeKindName` (grammar and cap) checks a registered name and the `scope_kind` on `role_grant_offer_create` / `role_grant_assign`, which is copied into the row and its audit metadata; off the grammar is the partial unique indexes' `'GLOBAL'` token.
62
63
  - `auth/credential_type_schema.ts` — `CredentialTypeName`, `CREDENTIAL_TYPE_SESSION` / `_API_TOKEN` / `_DAEMON_TOKEN`, `create_credential_type_schema`.
63
64
  - `auth/grant_path_schema.ts` — `GrantPathName`, `GRANT_PATH_ADMIN` / `_SELF_SERVICE` / `_SYSTEM` / `_BOOTSTRAP`, `create_grant_path_schema`.
64
65
  - `auth/token_lifetime.ts` — the temporal axis of a minted token: `TokenLifetimeInput` (required union on `account_token_create` — `{kind:'eternal'}` or `{kind:'ttl', days}`), `token_lifetime_to_expires_at`, `TOKEN_TTL_DAYS_MAX`. No default — `expires_at IS NULL` always means "deliberately eternal".
@@ -492,7 +493,9 @@ Four open string registries — `RoleName`, `ScopeKindName`,
492
493
  `CredentialTypeName`, `GrantPathName` — share the same factory shape:
493
494
  construction-time guards (name regex, duplicate detection, builtin-collision
494
495
  rejection), `ReadonlyMap` output, pass into `create_role_schema` for
495
- cross-axis validation.
496
+ cross-axis validation. The four share one name grammar, runs of lowercase
497
+ letters joined by single underscores, which a token's `surface:` name holds
498
+ too.
496
499
 
497
500
  Dependency flow:
498
501
 
@@ -755,7 +758,7 @@ event additionally records `credential_type` in metadata (defense in depth).
755
758
  > suite assume auto-accept and have to redesign their tests when they
756
759
  > discover otherwise.
757
760
 
758
- - `role_grant_offer_create_action_spec` — session-only; input `{to_account_id, to_actor_id?, role, scope_kind?, scope_id?, message?}` (`scope_kind` + `scope_id` paired — both or neither, else `invalid_params`); output `{offer}`.
761
+ - `role_grant_offer_create_action_spec` — session-only; input `{to_account_id, to_actor_id?, role, scope_kind?, scope_id?, message?}` (`scope_kind` a `ScopeKindName`; `scope_kind` + `scope_id` paired — both or neither, else `invalid_params`); output `{offer}`.
759
762
  - `role_grant_offer_accept_action_spec` — session-only; input `{offer_id}`; output `{role_grant_id, offer, superseded_offer_ids}`. Refuses a builtin-role offer that must not mint (see below), leaving it pending.
760
763
  - `role_grant_offer_decline_action_spec` — input `{offer_id, reason?}`; output `{offer}` (the declined offer, as accept answers its own).
761
764
  - `role_grant_offer_retract_action_spec` — input `{offer_id}`; output `{offer}` (the retracted offer).
@@ -958,7 +961,8 @@ account actions hits `method_not_found` on first admin-suite run.
958
961
  `auth/self_service_role_actions.ts`. One static action
959
962
  `self_service_role_set({role, enabled})` toggles a global role_grant on the
960
963
  caller. Idempotent in both directions (`changed: false` when the post-call
961
- state already matched).
964
+ state already matched). Its input and output are `@fuzdev/fuz_schema`
965
+ `object`s, refusing unknown keys, `role` the fuz_schema `RoleName` twin.
962
966
 
963
967
  Audit metadata carries `self_service: true` so admin reviewers can
964
968
  distinguish self-toggled role_grants. Eligibility derives from
@@ -995,7 +999,8 @@ columns, grantor labels, picker UIs):
995
999
  `scope_ids`.
996
1000
 
997
1001
  Both: `auth: {account: 'required', actor: 'none'}` + `rate_limit: 'account'`,
998
- pure reads (no audit, no side effects). `ActorLookupEntryJson` deliberately
1002
+ pure reads (no audit, no side effects), their input and output schemas
1003
+ `@fuzdev/fuz_schema` `object`s, which refuse unknown keys. `ActorLookupEntryJson` deliberately
999
1004
  omits `account_id`, `email`, credentials, timestamps, and role state —
1000
1005
  control-plane details, timing-oracle avoidance, separation of concern. LIKE
1001
1006
  wildcards in the user-supplied query are escaped at the JS layer so
@@ -47,31 +47,91 @@
47
47
  *
48
48
  * @module
49
49
  */
50
- import { z } from 'zod';
50
+ import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
51
51
  /**
52
52
  * Hard cap on the number of ids resolvable in one call. Bounds the
53
53
  * batched username-enumeration surface.
54
54
  */
55
55
  export declare const ACTOR_LOOKUP_IDS_MAX = 50;
56
- /** One resolved actor row. `display_name` omitted when blank. */
57
- export declare const ActorLookupEntryJson: z.ZodObject<{
58
- id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
59
- username: z.ZodString;
60
- display_name: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strict>;
62
- export type ActorLookupEntryJson = z.infer<typeof ActorLookupEntryJson>;
63
- export declare const ActorLookupInput: z.ZodObject<{
64
- ids: z.ZodArray<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
65
- }, z.core.$strict>;
66
- export type ActorLookupInput = z.infer<typeof ActorLookupInput>;
67
- export declare const ActorLookupOutput: z.ZodObject<{
68
- actors: z.ZodArray<z.ZodObject<{
69
- id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
70
- username: z.ZodString;
71
- display_name: z.ZodOptional<z.ZodString>;
72
- }, z.core.$strict>>;
73
- }, z.core.$strict>;
74
- export type ActorLookupOutput = z.infer<typeof ActorLookupOutput>;
56
+ /**
57
+ * One resolved actor row, a `@fuzdev/fuz_schema` schema. `display_name`
58
+ * omitted when blank.
59
+ */
60
+ export declare const ActorLookupEntryJson: import("@fuzdev/fuz_schema/schema.ts").Schema<{
61
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
62
+ username: string;
63
+ display_name?: string | undefined;
64
+ }, {
65
+ id: string;
66
+ username: string;
67
+ display_name?: string | undefined;
68
+ }, "object", {
69
+ 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">)[]> & {
70
+ readonly '~types'?: {
71
+ readonly input: string;
72
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
73
+ } | undefined;
74
+ };
75
+ username: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
76
+ 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>>>;
77
+ }>;
78
+ export type ActorLookupEntryJson = Infer<typeof ActorLookupEntryJson>;
79
+ /** Input for `actor_lookup`, a `@fuzdev/fuz_schema` schema. */
80
+ export declare const ActorLookupInput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
81
+ ids: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[];
82
+ }, {
83
+ ids: string[];
84
+ }, "object", {
85
+ ids: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[], 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">)[]> & {
86
+ readonly '~types'?: {
87
+ readonly input: string;
88
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
89
+ } | undefined;
90
+ }>>;
91
+ }>;
92
+ export type ActorLookupInput = Infer<typeof ActorLookupInput>;
93
+ /** Output for `actor_lookup`, a `@fuzdev/fuz_schema` schema. */
94
+ export declare const ActorLookupOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
95
+ actors: {
96
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
97
+ username: string;
98
+ display_name?: string | undefined;
99
+ }[];
100
+ }, {
101
+ actors: {
102
+ id: string;
103
+ username: string;
104
+ display_name?: string | undefined;
105
+ }[];
106
+ }, "object", {
107
+ actors: import("@fuzdev/fuz_schema/schema.ts").Schema<{
108
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
109
+ username: string;
110
+ display_name?: string | undefined;
111
+ }[], {
112
+ id: string;
113
+ username: string;
114
+ display_name?: string | undefined;
115
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
116
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
117
+ username: string;
118
+ display_name?: string | undefined;
119
+ }, {
120
+ id: string;
121
+ username: string;
122
+ display_name?: string | undefined;
123
+ }, "object", {
124
+ 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">)[]> & {
125
+ readonly '~types'?: {
126
+ readonly input: string;
127
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
128
+ } | undefined;
129
+ };
130
+ username: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
131
+ 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>>>;
132
+ }>>;
133
+ }>;
134
+ export type ActorLookupOutput = Infer<typeof ActorLookupOutput>;
75
135
  export declare const actor_lookup_action_spec: {
76
136
  method: string;
77
137
  kind: "request_response";
@@ -81,16 +141,58 @@ export declare const actor_lookup_action_spec: {
81
141
  actor: "none";
82
142
  };
83
143
  side_effects: false;
84
- input: z.ZodObject<{
85
- ids: z.ZodArray<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
86
- }, z.core.$strict>;
87
- output: z.ZodObject<{
88
- actors: z.ZodArray<z.ZodObject<{
89
- id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
90
- username: z.ZodString;
91
- display_name: z.ZodOptional<z.ZodString>;
92
- }, z.core.$strict>>;
93
- }, z.core.$strict>;
144
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
145
+ ids: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[];
146
+ }, {
147
+ ids: string[];
148
+ }, "object", {
149
+ ids: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[], 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">)[]> & {
150
+ readonly '~types'?: {
151
+ readonly input: string;
152
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
153
+ } | undefined;
154
+ }>>;
155
+ }>;
156
+ output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
157
+ actors: {
158
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
159
+ username: string;
160
+ display_name?: string | undefined;
161
+ }[];
162
+ }, {
163
+ actors: {
164
+ id: string;
165
+ username: string;
166
+ display_name?: string | undefined;
167
+ }[];
168
+ }, "object", {
169
+ actors: import("@fuzdev/fuz_schema/schema.ts").Schema<{
170
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
171
+ username: string;
172
+ display_name?: string | undefined;
173
+ }[], {
174
+ id: string;
175
+ username: string;
176
+ display_name?: string | undefined;
177
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
178
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
179
+ username: string;
180
+ display_name?: string | undefined;
181
+ }, {
182
+ id: string;
183
+ username: string;
184
+ display_name?: string | undefined;
185
+ }, "object", {
186
+ 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">)[]> & {
187
+ readonly '~types'?: {
188
+ readonly input: string;
189
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
190
+ } | undefined;
191
+ };
192
+ username: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
193
+ 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>>>;
194
+ }>>;
195
+ }>;
94
196
  async: true;
95
197
  rate_limit: "account";
96
198
  description: string;
@@ -110,16 +212,58 @@ export declare const all_actor_lookup_action_specs: readonly [{
110
212
  actor: "none";
111
213
  };
112
214
  side_effects: false;
113
- input: z.ZodObject<{
114
- ids: z.ZodArray<z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>>;
115
- }, z.core.$strict>;
116
- output: z.ZodObject<{
117
- actors: z.ZodArray<z.ZodObject<{
118
- id: z.ZodUUID & z.ZodType<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_schema/schema.js").Branded<string, "Uuid">, string>>;
119
- username: z.ZodString;
120
- display_name: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strict>>;
122
- }, z.core.$strict>;
215
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
216
+ ids: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[];
217
+ }, {
218
+ ids: string[];
219
+ }, "object", {
220
+ ids: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">[], 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">)[]> & {
221
+ readonly '~types'?: {
222
+ readonly input: string;
223
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
224
+ } | undefined;
225
+ }>>;
226
+ }>;
227
+ output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
228
+ actors: {
229
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
230
+ username: string;
231
+ display_name?: string | undefined;
232
+ }[];
233
+ }, {
234
+ actors: {
235
+ id: string;
236
+ username: string;
237
+ display_name?: string | undefined;
238
+ }[];
239
+ }, "object", {
240
+ actors: import("@fuzdev/fuz_schema/schema.ts").Schema<{
241
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
242
+ username: string;
243
+ display_name?: string | undefined;
244
+ }[], {
245
+ id: string;
246
+ username: string;
247
+ display_name?: string | undefined;
248
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
249
+ id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">;
250
+ username: string;
251
+ display_name?: string | undefined;
252
+ }, {
253
+ id: string;
254
+ username: string;
255
+ display_name?: string | undefined;
256
+ }, "object", {
257
+ 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">)[]> & {
258
+ readonly '~types'?: {
259
+ readonly input: string;
260
+ readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
261
+ } | undefined;
262
+ };
263
+ username: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
264
+ 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>>>;
265
+ }>>;
266
+ }>;
123
267
  async: true;
124
268
  rate_limit: "account";
125
269
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"actor_lookup_action_specs.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/actor_lookup_action_specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;GAGG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,iEAAiE;AACjE,eAAO,MAAM,oBAAoB;;;;kBAI/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,eAAO,MAAM,gBAAgB;;kBAU3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,iBAAiB;;;;;;kBAE5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;CAaA,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC"}
1
+ {"version":3,"file":"actor_lookup_action_specs.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/actor_lookup_action_specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAGH,OAAO,EAQN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAMtC;;;GAGG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;EAI/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEtE,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB;;;;;;;;;;;EAM3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaA,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC"}
@@ -47,30 +47,32 @@
47
47
  *
48
48
  * @module
49
49
  */
50
- import { z } from 'zod';
51
- import { Uuid } from '../primitive_schemas.js';
50
+ import { meta } from '@fuzdev/fuz_schema/meta.ts';
51
+ import { array, max_length, min_length, object, optional, pipe, string } from '@fuzdev/fuz_schema/schema.ts';
52
+ import { Uuid } from '../primitive_schemas_fuz.js';
52
53
  /**
53
54
  * Hard cap on the number of ids resolvable in one call. Bounds the
54
55
  * batched username-enumeration surface.
55
56
  */
56
57
  export const ACTOR_LOOKUP_IDS_MAX = 50;
57
- /** One resolved actor row. `display_name` omitted when blank. */
58
- export const ActorLookupEntryJson = z.strictObject({
58
+ /**
59
+ * One resolved actor row, a `@fuzdev/fuz_schema` schema. `display_name`
60
+ * omitted when blank.
61
+ */
62
+ export const ActorLookupEntryJson = object({
59
63
  id: Uuid,
60
- username: z.string(),
61
- display_name: z.string().optional()
64
+ username: string,
65
+ display_name: optional(string)
62
66
  });
63
- export const ActorLookupInput = z.strictObject({
64
- ids: z
65
- .array(Uuid)
66
- .min(1)
67
- .max(ACTOR_LOOKUP_IDS_MAX)
68
- .meta({
67
+ /** Input for `actor_lookup`, a `@fuzdev/fuz_schema` schema. */
68
+ export const ActorLookupInput = object({
69
+ ids: meta(pipe(array(Uuid), min_length(1), max_length(ACTOR_LOOKUP_IDS_MAX)), {
69
70
  description: `Actor ids to resolve. Capped at ${ACTOR_LOOKUP_IDS_MAX}; unknown ids are silently absent from the response.`
70
71
  })
71
72
  });
72
- export const ActorLookupOutput = z.strictObject({
73
- actors: z.array(ActorLookupEntryJson)
73
+ /** Output for `actor_lookup`, a `@fuzdev/fuz_schema` schema. */
74
+ export const ActorLookupOutput = object({
75
+ actors: array(ActorLookupEntryJson)
74
76
  });
75
77
  export const actor_lookup_action_spec = {
76
78
  method: 'actor_lookup',