@fuzdev/fuz_app 0.161.0 → 0.162.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/auth/CLAUDE.md +16 -8
- package/dist/auth/account_action_specs.d.ts +173 -35
- package/dist/auth/account_action_specs.d.ts.map +1 -1
- package/dist/auth/account_action_specs.js +10 -7
- package/dist/auth/account_route_schema.d.ts +293 -46
- package/dist/auth/account_route_schema.d.ts.map +1 -1
- package/dist/auth/account_route_schema.js +5 -4
- package/dist/auth/account_schema.d.ts +489 -103
- package/dist/auth/account_schema.d.ts.map +1 -1
- package/dist/auth/account_schema.js +67 -47
- package/dist/auth/admin_action_specs.d.ts +1753 -240
- package/dist/auth/admin_action_specs.d.ts.map +1 -1
- package/dist/auth/admin_action_specs.js +29 -25
- package/dist/auth/audit_emitter.d.ts +8 -3
- package/dist/auth/audit_emitter.d.ts.map +1 -1
- package/dist/auth/audit_emitter.js +32 -9
- package/dist/auth/audit_log_queries.d.ts.map +1 -1
- package/dist/auth/audit_log_queries.js +4 -3
- package/dist/auth/audit_log_schema.d.ts +786 -259
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +188 -201
- package/dist/auth/audit_log_schema_fuz.d.ts +17 -3
- package/dist/auth/audit_log_schema_fuz.d.ts.map +1 -1
- package/dist/auth/audit_log_schema_fuz.js +17 -4
- package/dist/auth/credential_type_schema.d.ts +1 -1
- package/dist/auth/invite_schema.d.ts +98 -26
- package/dist/auth/invite_schema.d.ts.map +1 -1
- package/dist/auth/invite_schema.js +21 -14
- package/dist/auth/migrations.d.ts.map +1 -1
- package/dist/auth/migrations.js +27 -0
- package/dist/auth/role_grant_offer_action_specs.d.ts +72 -72
- package/dist/auth/role_grant_offer_notifications.d.ts +60 -60
- package/dist/auth/role_grant_offer_schema.d.ts +6 -6
- package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_schema.js +8 -8
- package/dist/dev/setup.d.ts +14 -7
- package/dist/dev/setup.d.ts.map +1 -1
- package/dist/dev/setup.js +11 -6
- package/dist/primitive_schemas.d.ts +1 -4
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/primitive_schemas.js +1 -5
- package/dist/primitive_schemas_fuz.d.ts +36 -2
- package/dist/primitive_schemas_fuz.d.ts.map +1 -1
- package/dist/primitive_schemas_fuz.js +34 -3
- package/dist/testing/CLAUDE.md +7 -3
- package/dist/testing/app_server.d.ts +3 -1
- package/dist/testing/app_server.d.ts.map +1 -1
- package/dist/testing/app_server.js +6 -2
- package/dist/testing/audit_drift_guard.d.ts.map +1 -1
- package/dist/testing/audit_drift_guard.js +12 -13
- package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
- package/dist/testing/cross_backend/identity_parity.js +4 -2
- package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
- package/dist/testing/cross_backend/session_cap.js +4 -3
- package/dist/testing/db_entities.d.ts +3 -1
- package/dist/testing/db_entities.d.ts.map +1 -1
- package/dist/testing/db_entities.js +4 -2
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +3 -2
- package/dist/zod.d.ts +2 -1
- package/dist/zod.d.ts.map +1 -1
- package/dist/zod.js +6 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/account_schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"account_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/account_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAON,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EA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eAAO,MAAM,kBAAkB,GAAI,SAAS,OAAO,KAAG,cAMpD,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,KAAG,gBAKlD,CAAC"}
|
|
@@ -11,13 +11,21 @@
|
|
|
11
11
|
* `RouteAuth` (the two pair: `auth.actor !== 'none'` ⟺ input declares
|
|
12
12
|
* `acting?: ActingActor`).
|
|
13
13
|
*
|
|
14
|
+
* The wire schemas are `@fuzdev/fuz_schema` schemas, `SessionId` among them,
|
|
15
|
+
* but for `ClientApiTokenJson`, which is Zod.
|
|
16
|
+
*
|
|
14
17
|
* DDL lives in `auth/auth_ddl.ts`; role system in `auth/role_schema.ts`.
|
|
15
18
|
* See docs/identity.md for design rationale.
|
|
16
19
|
*
|
|
17
20
|
* @module
|
|
18
21
|
*/
|
|
19
22
|
import { z } from 'zod';
|
|
20
|
-
import {
|
|
23
|
+
import { meta } from '@fuzdev/fuz_schema/meta.ts';
|
|
24
|
+
import { array, boolean, brand, nullable, object, string } from '@fuzdev/fuz_schema/schema.ts';
|
|
25
|
+
import { Uuid as ZodUuid } from '../primitive_schemas.js';
|
|
26
|
+
import { Blake3Hash, Email, Timestamp, UsernameCanonical, Uuid } from '../primitive_schemas_fuz.js';
|
|
27
|
+
import { RoleName } from './role_schema_fuz.js';
|
|
28
|
+
import { ScopeKindName } from './scope_kind_schema_fuz.js';
|
|
21
29
|
import { is_iso8601_seconds_live } from '../timestamp.js';
|
|
22
30
|
/**
|
|
23
31
|
* Maximum length of the optional free-form `revoked_reason` attached to a
|
|
@@ -72,37 +80,41 @@ export const is_role_grant_active = (p, now = new Date()) => !p.revoked_at && (!
|
|
|
72
80
|
export const has_global_role = (role_grants, role, now = new Date()) => role_grants.some((p) => p.role === role && p.scope_id === null && is_role_grant_active(p, now));
|
|
73
81
|
/**
|
|
74
82
|
* A session's storage key — the blake3 hash of its raw token, branded so a
|
|
75
|
-
* bare `string` can't stand in for one. `Blake3Hash` (`
|
|
76
|
-
* the shape; this is the meaning. Mint only via `hash_session_token`, or
|
|
77
|
-
*
|
|
83
|
+
* bare `string` can't stand in for one. `Blake3Hash` (`primitive_schemas_fuz.ts`)
|
|
84
|
+
* is the shape; this is the meaning. Mint only via `hash_session_token`, or a
|
|
85
|
+
* parse of this schema at an external boundary.
|
|
78
86
|
*
|
|
79
87
|
* The raw token itself is never typed — it stays a `string` that exists only
|
|
80
88
|
* long enough to be hashed.
|
|
81
89
|
*/
|
|
82
|
-
export const SessionId =
|
|
83
|
-
// Client-safe
|
|
84
|
-
/**
|
|
85
|
-
|
|
90
|
+
export const SessionId = brand(Blake3Hash, 'SessionId');
|
|
91
|
+
// Client-safe schemas — for route output validation and ActionSpec outputs.
|
|
92
|
+
/**
|
|
93
|
+
* `SessionAccount` — account without sensitive fields, a `@fuzdev/fuz_schema`
|
|
94
|
+
* schema. Its `username` is `UsernameCanonical`, the lowercase an account row
|
|
95
|
+
* holds.
|
|
96
|
+
*/
|
|
97
|
+
export const SessionAccountJson = object({
|
|
86
98
|
id: Uuid,
|
|
87
|
-
username:
|
|
88
|
-
email:
|
|
89
|
-
email_verified:
|
|
90
|
-
created_at:
|
|
99
|
+
username: UsernameCanonical,
|
|
100
|
+
email: nullable(Email),
|
|
101
|
+
email_verified: boolean,
|
|
102
|
+
created_at: Timestamp
|
|
91
103
|
});
|
|
92
|
-
/**
|
|
93
|
-
export const AuthSessionJson =
|
|
104
|
+
/** `AuthSession` — id is the blake3 hash, safe for client. A `@fuzdev/fuz_schema` schema. */
|
|
105
|
+
export const AuthSessionJson = object({
|
|
94
106
|
id: SessionId,
|
|
95
107
|
account_id: Uuid,
|
|
96
|
-
created_at:
|
|
97
|
-
expires_at:
|
|
98
|
-
is_current:
|
|
108
|
+
created_at: Timestamp,
|
|
109
|
+
expires_at: Timestamp,
|
|
110
|
+
is_current: meta(boolean, {
|
|
99
111
|
description: 'Whether this is the session the request authenticated with — `false` on every row for a non-session credential.'
|
|
100
112
|
})
|
|
101
113
|
});
|
|
102
114
|
/** Zod schema for client-safe API token listing (excludes `token_hash`). */
|
|
103
115
|
export const ClientApiTokenJson = z.strictObject({
|
|
104
116
|
id: z.string(),
|
|
105
|
-
account_id:
|
|
117
|
+
account_id: ZodUuid,
|
|
106
118
|
name: z.string(),
|
|
107
119
|
expires_at: z.string().nullable(),
|
|
108
120
|
last_used_at: z.string().nullable(),
|
|
@@ -116,35 +128,40 @@ export const ClientApiTokenJson = z.strictObject({
|
|
|
116
128
|
*/
|
|
117
129
|
scope: z.string()
|
|
118
130
|
});
|
|
119
|
-
/**
|
|
120
|
-
export const RoleGrantSummaryJson =
|
|
131
|
+
/** The role_grant summary returned in admin account listings, a `@fuzdev/fuz_schema` schema. */
|
|
132
|
+
export const RoleGrantSummaryJson = object({
|
|
121
133
|
id: Uuid,
|
|
122
|
-
role:
|
|
123
|
-
scope_kind:
|
|
124
|
-
scope_id:
|
|
125
|
-
created_at:
|
|
126
|
-
expires_at:
|
|
127
|
-
granted_by:
|
|
134
|
+
role: RoleName,
|
|
135
|
+
scope_kind: nullable(ScopeKindName),
|
|
136
|
+
scope_id: nullable(Uuid),
|
|
137
|
+
created_at: Timestamp,
|
|
138
|
+
expires_at: nullable(Timestamp),
|
|
139
|
+
granted_by: nullable(Uuid)
|
|
128
140
|
});
|
|
129
|
-
/**
|
|
130
|
-
export const ActorSummaryJson =
|
|
141
|
+
/** The actor summary returned in admin account listings, a `@fuzdev/fuz_schema` schema. */
|
|
142
|
+
export const ActorSummaryJson = object({
|
|
131
143
|
id: Uuid,
|
|
132
|
-
name:
|
|
144
|
+
name: string
|
|
133
145
|
});
|
|
134
|
-
/**
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Admin-facing account data — `SessionAccountJson`'s entries with audit
|
|
148
|
+
* fields, a `@fuzdev/fuz_schema` schema.
|
|
149
|
+
*/
|
|
150
|
+
export const AdminAccountJson = object({
|
|
151
|
+
...SessionAccountJson.def,
|
|
152
|
+
updated_at: Timestamp,
|
|
153
|
+
updated_by: nullable(Uuid),
|
|
138
154
|
/**
|
|
139
155
|
* Soft-delete tombstone, non-null when the account is deleted. Surfaced
|
|
140
156
|
* so the admin UI can mark tombstoned rows (shown only when the listing
|
|
141
157
|
* is requested with `include_deleted`) and offer reactivation via
|
|
142
158
|
* `account_undelete`. Active listings always carry `null` here.
|
|
143
159
|
*/
|
|
144
|
-
deleted_at:
|
|
160
|
+
deleted_at: nullable(Timestamp)
|
|
145
161
|
});
|
|
146
162
|
/**
|
|
147
|
-
*
|
|
163
|
+
* A pending role_grant offer surfaced in admin account listings, a
|
|
164
|
+
* `@fuzdev/fuz_schema` schema.
|
|
148
165
|
*
|
|
149
166
|
* Deliberately narrower than `RoleGrantOfferJson`: omits `message` and
|
|
150
167
|
* `decline_reason` so cross-admin visibility of the listing does not expose
|
|
@@ -156,22 +173,25 @@ export const AdminAccountJson = SessionAccountJson.extend({
|
|
|
156
173
|
* at a glance whose pending offer is blocking a "+ {role}" button; the
|
|
157
174
|
* resolution runs inside the listing query's parallel batch.
|
|
158
175
|
*/
|
|
159
|
-
export const PendingOfferSummaryJson =
|
|
176
|
+
export const PendingOfferSummaryJson = object({
|
|
160
177
|
id: Uuid,
|
|
161
|
-
role:
|
|
162
|
-
scope_kind:
|
|
163
|
-
scope_id:
|
|
178
|
+
role: RoleName,
|
|
179
|
+
scope_kind: nullable(ScopeKindName),
|
|
180
|
+
scope_id: nullable(Uuid),
|
|
164
181
|
from_actor_id: Uuid,
|
|
165
|
-
from_username:
|
|
166
|
-
created_at:
|
|
167
|
-
expires_at:
|
|
182
|
+
from_username: string,
|
|
183
|
+
created_at: Timestamp,
|
|
184
|
+
expires_at: Timestamp
|
|
168
185
|
});
|
|
169
|
-
/**
|
|
170
|
-
|
|
186
|
+
/**
|
|
187
|
+
* An admin account listing entry (account + actor + role_grants + pending
|
|
188
|
+
* offers), a `@fuzdev/fuz_schema` schema.
|
|
189
|
+
*/
|
|
190
|
+
export const AdminAccountEntryJson = object({
|
|
171
191
|
account: AdminAccountJson,
|
|
172
|
-
actor:
|
|
173
|
-
role_grants:
|
|
174
|
-
pending_offers:
|
|
192
|
+
actor: nullable(ActorSummaryJson),
|
|
193
|
+
role_grants: array(RoleGrantSummaryJson),
|
|
194
|
+
pending_offers: array(PendingOfferSummaryJson)
|
|
175
195
|
});
|
|
176
196
|
/**
|
|
177
197
|
* Convert an `Account` to a `SessionAccount` by stripping sensitive fields.
|