@fuzdev/fuz_app 0.160.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 +31 -21
- 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/actor_lookup_action_specs.d.ts +7 -7
- package/dist/auth/actor_search_action_specs.d.ts +6 -6
- package/dist/auth/admin_action_specs.d.ts +2748 -505
- package/dist/auth/admin_action_specs.d.ts.map +1 -1
- package/dist/auth/admin_action_specs.js +175 -187
- package/dist/auth/app_settings_schema.d.ts +46 -23
- package/dist/auth/app_settings_schema.d.ts.map +1 -1
- package/dist/auth/app_settings_schema.js +12 -15
- 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_route_schema.d.ts +1 -1
- package/dist/auth/audit_log_schema.d.ts +791 -253
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +198 -198
- package/dist/auth/audit_log_schema_fuz.d.ts +53 -0
- package/dist/auth/audit_log_schema_fuz.d.ts.map +1 -0
- package/dist/auth/audit_log_schema_fuz.js +50 -0
- package/dist/auth/credential_type_schema.d.ts +5 -8
- package/dist/auth/credential_type_schema.d.ts.map +1 -1
- package/dist/auth/credential_type_schema.js +6 -10
- package/dist/auth/grant_path_schema.d.ts +4 -7
- package/dist/auth/grant_path_schema.d.ts.map +1 -1
- package/dist/auth/grant_path_schema.js +6 -10
- 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/name_schema.d.ts +63 -0
- package/dist/auth/name_schema.d.ts.map +1 -0
- package/dist/auth/name_schema.js +65 -0
- package/dist/auth/request_context.d.ts.map +1 -1
- package/dist/auth/request_context.js +2 -1
- package/dist/auth/role_grant_offer_action_specs.d.ts +192 -192
- package/dist/auth/role_grant_offer_action_specs.js +2 -2
- package/dist/auth/role_grant_offer_notifications.d.ts +126 -126
- package/dist/auth/role_grant_offer_schema.d.ts +12 -12
- package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_schema.js +8 -8
- package/dist/auth/role_schema.d.ts +14 -25
- package/dist/auth/role_schema.d.ts.map +1 -1
- package/dist/auth/role_schema.js +15 -29
- package/dist/auth/role_schema_fuz.d.ts +4 -3
- package/dist/auth/role_schema_fuz.d.ts.map +1 -1
- package/dist/auth/role_schema_fuz.js +7 -5
- package/dist/auth/scope_kind_schema.d.ts +13 -26
- package/dist/auth/scope_kind_schema.d.ts.map +1 -1
- package/dist/auth/scope_kind_schema.js +15 -31
- package/dist/auth/scope_kind_schema_fuz.d.ts +4 -3
- package/dist/auth/scope_kind_schema_fuz.d.ts.map +1 -1
- package/dist/auth/scope_kind_schema_fuz.js +7 -5
- package/dist/auth/self_service_role_action_specs.d.ts +2 -2
- package/dist/auth/token_scope.d.ts +7 -13
- package/dist/auth/token_scope.d.ts.map +1 -1
- package/dist/auth/token_scope.js +9 -14
- 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 +47 -4
- package/dist/primitive_schemas.d.ts.map +1 -1
- package/dist/primitive_schemas.js +40 -19
- package/dist/primitive_schemas_fuz.d.ts +70 -8
- package/dist/primitive_schemas_fuz.d.ts.map +1 -1
- package/dist/primitive_schemas_fuz.js +62 -7
- package/dist/testing/CLAUDE.md +11 -6
- 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 +24 -13
- package/dist/testing/cross_backend/role_grant_role_grammar.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_role_grammar.js +8 -15
- 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
|
@@ -149,25 +149,25 @@ export declare const RoleGrantOfferJson: import("@fuzdev/fuz_schema/schema.ts").
|
|
|
149
149
|
superseded_at: string | null;
|
|
150
150
|
resulting_role_grant_id: string | null;
|
|
151
151
|
}, "object", {
|
|
152
|
-
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<"
|
|
152
|
+
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<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
153
153
|
readonly '~types'?: {
|
|
154
154
|
readonly input: string;
|
|
155
155
|
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
156
156
|
} | undefined;
|
|
157
157
|
};
|
|
158
|
-
from_actor_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<"
|
|
158
|
+
from_actor_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<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
159
159
|
readonly '~types'?: {
|
|
160
160
|
readonly input: string;
|
|
161
161
|
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
162
162
|
} | undefined;
|
|
163
163
|
};
|
|
164
|
-
to_account_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<"
|
|
164
|
+
to_account_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<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
165
165
|
readonly '~types'?: {
|
|
166
166
|
readonly input: string;
|
|
167
167
|
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
168
168
|
} | undefined;
|
|
169
169
|
};
|
|
170
|
-
to_actor_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"
|
|
170
|
+
to_actor_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
171
171
|
readonly '~types'?: {
|
|
172
172
|
readonly input: string;
|
|
173
173
|
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
@@ -175,21 +175,21 @@ export declare const RoleGrantOfferJson: import("@fuzdev/fuz_schema/schema.ts").
|
|
|
175
175
|
}>>;
|
|
176
176
|
role: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
177
177
|
scope_kind: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>>;
|
|
178
|
-
scope_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"
|
|
178
|
+
scope_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
179
179
|
readonly '~types'?: {
|
|
180
180
|
readonly input: string;
|
|
181
181
|
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
182
182
|
} | undefined;
|
|
183
183
|
}>>;
|
|
184
184
|
message: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
|
|
185
|
-
created_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined
|
|
186
|
-
expires_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined
|
|
187
|
-
accepted_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined
|
|
188
|
-
declined_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined
|
|
185
|
+
created_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
186
|
+
expires_at: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
|
|
187
|
+
accepted_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
|
|
188
|
+
declined_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
|
|
189
189
|
decline_reason: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
|
|
190
|
-
retracted_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined
|
|
191
|
-
superseded_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined
|
|
192
|
-
resulting_role_grant_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"
|
|
190
|
+
retracted_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
|
|
191
|
+
superseded_at: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>>;
|
|
192
|
+
resulting_role_grant_id: import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
193
193
|
readonly '~types'?: {
|
|
194
194
|
readonly input: string;
|
|
195
195
|
readonly first: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role_grant_offer_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/role_grant_offer_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"role_grant_offer_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/role_grant_offer_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAoB,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAKpD,kHAAkH;AAClH,eAAO,MAAM,mCAAmC,MAAM,CAAC;AAEvD,yFAAyF;AACzF,eAAO,MAAM,+BAA+B,QAA2B,CAAC;AAExE,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,IAAI,CAAC;IACT,aAAa,EAAE,IAAI,CAAC;IACpB,aAAa,EAAE,IAAI,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;OAKG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,uBAAuB,EAAE,IAAI,GAAG,IAAI,CAAC;IACrC;;;;;;;OAOG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACtD,eAAe,EAAE,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACzC,aAAa,EAAE,IAAI,CAAC;IACpB,aAAa,EAAE,IAAI,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8C9B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAElE,gEAAgE;AAChE,eAAO,MAAM,wBAAwB,GAAI,OAAO,cAAc,KAAG,kBAiB/D,CAAC"}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* @module
|
|
13
13
|
*/
|
|
14
14
|
import { meta } from '@fuzdev/fuz_schema/meta.ts';
|
|
15
|
-
import { nullable, object
|
|
16
|
-
import { Uuid as UuidSchema, bounded_string } from '../primitive_schemas_fuz.js';
|
|
15
|
+
import { nullable, object } from '@fuzdev/fuz_schema/schema.ts';
|
|
16
|
+
import { Timestamp, Uuid as UuidSchema, bounded_string } from '../primitive_schemas_fuz.js';
|
|
17
17
|
import { RoleName } from './role_schema_fuz.js';
|
|
18
18
|
import { ScopeKindName } from './scope_kind_schema_fuz.js';
|
|
19
19
|
/** Maximum length of the optional message attached to an offer, and of a decline reason, in UTF-16 code units. */
|
|
@@ -42,23 +42,23 @@ export const RoleGrantOfferJson = meta(object({
|
|
|
42
42
|
message: meta(nullable(bounded_string({ max: ROLE_GRANT_OFFER_MESSAGE_LENGTH_MAX })), {
|
|
43
43
|
description: 'Optional free-form note from the grantor.'
|
|
44
44
|
}),
|
|
45
|
-
created_at: meta(
|
|
46
|
-
expires_at: meta(
|
|
45
|
+
created_at: meta(Timestamp, { description: 'ISO timestamp when the offer was created.' }),
|
|
46
|
+
expires_at: meta(Timestamp, {
|
|
47
47
|
description: 'ISO timestamp after which the offer is no longer valid.'
|
|
48
48
|
}),
|
|
49
|
-
accepted_at: meta(nullable(
|
|
49
|
+
accepted_at: meta(nullable(Timestamp), {
|
|
50
50
|
description: 'ISO timestamp when the offer was accepted.'
|
|
51
51
|
}),
|
|
52
|
-
declined_at: meta(nullable(
|
|
52
|
+
declined_at: meta(nullable(Timestamp), {
|
|
53
53
|
description: 'ISO timestamp when the offer was declined.'
|
|
54
54
|
}),
|
|
55
55
|
decline_reason: meta(nullable(bounded_string({ max: ROLE_GRANT_OFFER_MESSAGE_LENGTH_MAX })), {
|
|
56
56
|
description: 'Optional reason given on decline.'
|
|
57
57
|
}),
|
|
58
|
-
retracted_at: meta(nullable(
|
|
58
|
+
retracted_at: meta(nullable(Timestamp), {
|
|
59
59
|
description: 'ISO timestamp when the grantor retracted the offer.'
|
|
60
60
|
}),
|
|
61
|
-
superseded_at: meta(nullable(
|
|
61
|
+
superseded_at: meta(nullable(Timestamp), {
|
|
62
62
|
description: 'ISO timestamp when this offer was obsoleted by a sibling accept or by revoke of the resulting role_grant.'
|
|
63
63
|
}),
|
|
64
64
|
resulting_role_grant_id: meta(nullable(UuidSchema), {
|
|
@@ -24,29 +24,18 @@ import { z } from 'zod';
|
|
|
24
24
|
import { type CredentialTypeSchemaResult } from './credential_type_schema.js';
|
|
25
25
|
import { type GrantPathSchemaResult } from './grant_path_schema.js';
|
|
26
26
|
import type { ScopeKindSchemaResult } from './scope_kind_schema.js';
|
|
27
|
+
/** The message of a role name longer than `NAME_LENGTH_MAX`, in both `RoleName`s. */
|
|
28
|
+
export declare const ROLE_NAME_LENGTH_MESSAGE: string;
|
|
29
|
+
/** The message of a role name off `NAME_REGEX`, in both `RoleName`s. */
|
|
30
|
+
export declare const ROLE_NAME_PATTERN_MESSAGE: string;
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* The grammar of a role name: runs of lowercase letters joined by single
|
|
36
|
-
* underscores, so no leading, trailing or consecutive underscores. Both
|
|
37
|
-
* `RoleName`s hold it, the Zod one here and the `@fuzdev/fuz_schema` twin in
|
|
38
|
-
* `auth/role_schema_fuz.ts`, and the sibling name grammars are the same
|
|
39
|
-
* pattern: `GRANT_PATH_NAME_REGEX`, `CREDENTIAL_TYPE_NAME_REGEX`,
|
|
40
|
-
* `SCOPE_KIND_NAME_REGEX` and `TOKEN_SURFACE_NAME_REGEX`.
|
|
41
|
-
*/
|
|
42
|
-
export declare const ROLE_NAME_PATTERN: RegExp;
|
|
43
|
-
/** The message of a role name longer than `ROLE_NAME_LENGTH_MAX`, in both `RoleName`s. */
|
|
44
|
-
export declare const ROLE_NAME_LENGTH_MESSAGE = "Role names must be at most 64 characters";
|
|
45
|
-
/** The message of a role name outside `ROLE_NAME_PATTERN`, in both `RoleName`s. */
|
|
46
|
-
export declare const ROLE_NAME_PATTERN_MESSAGE = "Role names must be lowercase letters and underscores (a-z_), no leading, trailing or consecutive underscores";
|
|
47
|
-
/**
|
|
48
|
-
* Valid role name: lowercase letters and underscores, no leading, trailing or
|
|
49
|
-
* consecutive underscores, at most `ROLE_NAME_LENGTH_MAX` characters.
|
|
32
|
+
* Valid role name: the shared name grammar (`auth/name_schema.ts`), lowercase
|
|
33
|
+
* letters and underscores, no leading, trailing or consecutive underscores, at
|
|
34
|
+
* most `NAME_LENGTH_MAX` characters. A role string is caller-chosen text until
|
|
35
|
+
* it passes the grammar, and the grant verbs record the role they refuse in a
|
|
36
|
+
* failure audit row, so the grammar bounds its length too. Both `RoleName`s
|
|
37
|
+
* hold it, the Zod one here and the `@fuzdev/fuz_schema` twin in
|
|
38
|
+
* `auth/role_schema_fuz.ts`.
|
|
50
39
|
*/
|
|
51
40
|
export declare const RoleName: z.ZodString;
|
|
52
41
|
export type RoleName = z.infer<typeof RoleName>;
|
|
@@ -101,7 +90,7 @@ export declare const is_builtin_role: (name: string) => name is BuiltinRole;
|
|
|
101
90
|
* `builtin_role_specs_by_name`.
|
|
102
91
|
*/
|
|
103
92
|
export interface RoleSpec {
|
|
104
|
-
/** Unique role name. Must match `RoleName` —
|
|
93
|
+
/** Unique role name. Must match `RoleName` — the name grammar and its length cap; collisions with builtins throw. */
|
|
105
94
|
name: string;
|
|
106
95
|
/** Admin-UI-facing copy describing the role's intent. */
|
|
107
96
|
description?: string;
|
|
@@ -175,8 +164,8 @@ export interface RoleSchemaResult {
|
|
|
175
164
|
*
|
|
176
165
|
* Construction-time guards (all fire on misconfiguration):
|
|
177
166
|
*
|
|
178
|
-
* 1. Every `consumer_roles[i].name` matches `RoleName` —
|
|
179
|
-
* `
|
|
167
|
+
* 1. Every `consumer_roles[i].name` matches `RoleName` — the name grammar
|
|
168
|
+
* and its `NAME_LENGTH_MAX` length cap.
|
|
180
169
|
* 2. No two consumer roles share a name.
|
|
181
170
|
* 3. No consumer role collides with a builtin (`keeper` / `admin`).
|
|
182
171
|
* 4. When `options.credential_types` is supplied, every entry in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/role_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"role_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/role_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEN,KAAK,0BAA0B,EAC/B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGN,KAAK,qBAAqB,EAC1B,MAAM,wBAAwB,CAAC;AAMhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,qFAAqF;AACrF,eAAO,MAAM,wBAAwB,QAAqC,CAAC;AAE3E,wEAAwE;AACxE,eAAO,MAAM,yBAAyB,QAAsC,CAAC;AAE7E;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,aAA6B,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAIhD,sFAAsF;AACtF,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,iEAAiE;AACjE,eAAO,MAAM,UAAU,UAAU,CAAC;AAElC,+CAA+C;AAC/C,eAAO,MAAM,aAAa,8BAAqC,CAAC;AAEhE,yCAAyC;AACzC,eAAO,MAAM,WAAW;;;EAAwB,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,WACX,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,QAAQ;IACxB,qHAAqH;IACrH,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,yBAAyB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAClD;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/C;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACpC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,CAuBnE,CAAC;AAEH,iGAAiG;AACjG,MAAM,WAAW,uBAAuB;IACvC,uGAAuG;IACvG,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;IAC9C,+FAA+F;IAC/F,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,oFAAoF;IACpF,WAAW,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAChC,0GAA0G;IAC1G,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,yEAAyE;IACzE,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAC1C;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,eAAO,MAAM,kBAAkB,GAC9B,gBAAgB,aAAa,CAAC,QAAQ,CAAC,EACvC,UAAS,uBAA4B,KACnC,gBA2CF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC/B,YAAY,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,EACzC,MAAM,MAAM,EACZ,YAAY,MAAM,KAChB,OAGF,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,0BAA0B,GACtC,YAAY,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,EACzC,YAAY,MAAM,KAChB,KAAK,CAAC,MAAM,CAMd,CAAC"}
|
package/dist/auth/role_schema.js
CHANGED
|
@@ -21,37 +21,23 @@
|
|
|
21
21
|
* @module
|
|
22
22
|
*/
|
|
23
23
|
import { z } from 'zod';
|
|
24
|
-
import { bounded_string } from '../primitive_schemas.js';
|
|
25
24
|
import { CREDENTIAL_TYPE_DAEMON_TOKEN } from './credential_type_schema.js';
|
|
26
25
|
import { GRANT_PATH_ADMIN, GRANT_PATH_BOOTSTRAP } from './grant_path_schema.js';
|
|
26
|
+
import { create_name_schema, format_name_length_message, format_name_pattern_message } from './name_schema.js';
|
|
27
|
+
/** The message of a role name longer than `NAME_LENGTH_MAX`, in both `RoleName`s. */
|
|
28
|
+
export const ROLE_NAME_LENGTH_MESSAGE = format_name_length_message('Role');
|
|
29
|
+
/** The message of a role name off `NAME_REGEX`, in both `RoleName`s. */
|
|
30
|
+
export const ROLE_NAME_PATTERN_MESSAGE = format_name_pattern_message('Role');
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
+
* Valid role name: the shared name grammar (`auth/name_schema.ts`), lowercase
|
|
33
|
+
* letters and underscores, no leading, trailing or consecutive underscores, at
|
|
34
|
+
* most `NAME_LENGTH_MAX` characters. A role string is caller-chosen text until
|
|
35
|
+
* it passes the grammar, and the grant verbs record the role they refuse in a
|
|
36
|
+
* failure audit row, so the grammar bounds its length too. Both `RoleName`s
|
|
37
|
+
* hold it, the Zod one here and the `@fuzdev/fuz_schema` twin in
|
|
38
|
+
* `auth/role_schema_fuz.ts`.
|
|
32
39
|
*/
|
|
33
|
-
export const
|
|
34
|
-
/**
|
|
35
|
-
* The grammar of a role name: runs of lowercase letters joined by single
|
|
36
|
-
* underscores, so no leading, trailing or consecutive underscores. Both
|
|
37
|
-
* `RoleName`s hold it, the Zod one here and the `@fuzdev/fuz_schema` twin in
|
|
38
|
-
* `auth/role_schema_fuz.ts`, and the sibling name grammars are the same
|
|
39
|
-
* pattern: `GRANT_PATH_NAME_REGEX`, `CREDENTIAL_TYPE_NAME_REGEX`,
|
|
40
|
-
* `SCOPE_KIND_NAME_REGEX` and `TOKEN_SURFACE_NAME_REGEX`.
|
|
41
|
-
*/
|
|
42
|
-
export const ROLE_NAME_PATTERN = /^[a-z]+(?:_[a-z]+)*$/;
|
|
43
|
-
/** The message of a role name longer than `ROLE_NAME_LENGTH_MAX`, in both `RoleName`s. */
|
|
44
|
-
export const ROLE_NAME_LENGTH_MESSAGE = `Role names must be at most ${ROLE_NAME_LENGTH_MAX} characters`;
|
|
45
|
-
/** The message of a role name outside `ROLE_NAME_PATTERN`, in both `RoleName`s. */
|
|
46
|
-
export const ROLE_NAME_PATTERN_MESSAGE = 'Role names must be lowercase letters and underscores (a-z_), no leading, trailing or consecutive underscores';
|
|
47
|
-
/**
|
|
48
|
-
* Valid role name: lowercase letters and underscores, no leading, trailing or
|
|
49
|
-
* consecutive underscores, at most `ROLE_NAME_LENGTH_MAX` characters.
|
|
50
|
-
*/
|
|
51
|
-
export const RoleName = bounded_string({
|
|
52
|
-
max: ROLE_NAME_LENGTH_MAX,
|
|
53
|
-
max_message: ROLE_NAME_LENGTH_MESSAGE
|
|
54
|
-
}).regex(ROLE_NAME_PATTERN, ROLE_NAME_PATTERN_MESSAGE);
|
|
40
|
+
export const RoleName = create_name_schema('Role');
|
|
55
41
|
// Builtin roles — provided by fuz_app, always available.
|
|
56
42
|
/** System-level role. Requires daemon token (filesystem proof). Controls the keep. */
|
|
57
43
|
export const ROLE_KEEPER = 'keeper';
|
|
@@ -127,8 +113,8 @@ const validate_registry_membership = (role_name, field, values, registry) => {
|
|
|
127
113
|
*
|
|
128
114
|
* Construction-time guards (all fire on misconfiguration):
|
|
129
115
|
*
|
|
130
|
-
* 1. Every `consumer_roles[i].name` matches `RoleName` —
|
|
131
|
-
* `
|
|
116
|
+
* 1. Every `consumer_roles[i].name` matches `RoleName` — the name grammar
|
|
117
|
+
* and its `NAME_LENGTH_MAX` length cap.
|
|
132
118
|
* 2. No two consumer roles share a name.
|
|
133
119
|
* 3. No consumer role collides with a builtin (`keeper` / `admin`).
|
|
134
120
|
* 4. When `options.credential_types` is supplied, every entry in
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* The `@fuzdev/fuz_schema` twin of the Zod `RoleName` (`auth/role_schema.ts`),
|
|
3
3
|
* under the same name, for schemas written in fuz_schema.
|
|
4
4
|
*
|
|
5
|
-
* Both are built from the constants
|
|
6
|
-
*
|
|
5
|
+
* Both are built from the same constants, the bound and the grammar of
|
|
6
|
+
* `auth/name_schema.ts` and the two messages `role_schema.ts` exports, so
|
|
7
|
+
* they can't drift apart. They give every input
|
|
7
8
|
* the same verdict and output, and write the same JSON Schema
|
|
8
9
|
* (`maxLength` and `pattern`); a string both too long and outside the grammar
|
|
9
10
|
* gets the one length issue from this twin, as its `pipe` stops at the first
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
|
|
18
19
|
/**
|
|
19
20
|
* Valid role name: lowercase letters and underscores, no leading, trailing or
|
|
20
|
-
* consecutive underscores, at most `
|
|
21
|
+
* consecutive underscores, at most `NAME_LENGTH_MAX` UTF-16 code units, the twin of
|
|
21
22
|
* the Zod `RoleName`. A string it refuses gets the Zod one's message; a
|
|
22
23
|
* value that is no string, fuz_schema's.
|
|
23
24
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role_schema_fuz.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/role_schema_fuz.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"role_schema_fuz.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/role_schema_fuz.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAMhF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,0MAGpB,CAAC;AACF,cAAc;AACd,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* The `@fuzdev/fuz_schema` twin of the Zod `RoleName` (`auth/role_schema.ts`),
|
|
3
3
|
* under the same name, for schemas written in fuz_schema.
|
|
4
4
|
*
|
|
5
|
-
* Both are built from the constants
|
|
6
|
-
*
|
|
5
|
+
* Both are built from the same constants, the bound and the grammar of
|
|
6
|
+
* `auth/name_schema.ts` and the two messages `role_schema.ts` exports, so
|
|
7
|
+
* they can't drift apart. They give every input
|
|
7
8
|
* the same verdict and output, and write the same JSON Schema
|
|
8
9
|
* (`maxLength` and `pattern`); a string both too long and outside the grammar
|
|
9
10
|
* gets the one length issue from this twin, as its `pipe` stops at the first
|
|
@@ -16,13 +17,14 @@
|
|
|
16
17
|
*/
|
|
17
18
|
import { message, pipe, regex } from '@fuzdev/fuz_schema/schema.ts';
|
|
18
19
|
import { bounded_string } from '../primitive_schemas_fuz.js';
|
|
19
|
-
import {
|
|
20
|
+
import { NAME_LENGTH_MAX, NAME_REGEX } from './name_schema.js';
|
|
21
|
+
import { ROLE_NAME_LENGTH_MESSAGE, ROLE_NAME_PATTERN_MESSAGE } from './role_schema.js';
|
|
20
22
|
/**
|
|
21
23
|
* Valid role name: lowercase letters and underscores, no leading, trailing or
|
|
22
|
-
* consecutive underscores, at most `
|
|
24
|
+
* consecutive underscores, at most `NAME_LENGTH_MAX` UTF-16 code units, the twin of
|
|
23
25
|
* the Zod `RoleName`. A string it refuses gets the Zod one's message; a
|
|
24
26
|
* value that is no string, fuz_schema's.
|
|
25
27
|
*
|
|
26
28
|
* @nodocs
|
|
27
29
|
*/
|
|
28
|
-
export const RoleName = pipe(bounded_string({ max:
|
|
30
|
+
export const RoleName = pipe(bounded_string({ max: NAME_LENGTH_MAX, max_message: ROLE_NAME_LENGTH_MESSAGE }), message(regex(NAME_REGEX), ROLE_NAME_PATTERN_MESSAGE));
|
|
@@ -32,33 +32,20 @@
|
|
|
32
32
|
* @module
|
|
33
33
|
*/
|
|
34
34
|
import { z } from 'zod';
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* and the index-side `'GLOBAL'` token.
|
|
40
|
-
*/
|
|
41
|
-
export declare const SCOPE_KIND_NAME_REGEX: RegExp;
|
|
42
|
-
/**
|
|
43
|
-
* Maximum length of a `scope_kind`, in UTF-16 code units (what
|
|
44
|
-
* `String.length` measures; enforced by `bounded_string`). Part of the
|
|
45
|
-
* `ScopeKindName` grammar, which bounds a registered name and the tag where
|
|
46
|
-
* it enters — the grant inputs (`role_grant_offer_create`,
|
|
47
|
-
* `role_grant_assign`) copy it into the row and its audit metadata — so no
|
|
48
|
-
* registry declares a kind the grant inputs would refuse. Same value as
|
|
49
|
-
* `ROLE_NAME_LENGTH_MAX`, whose grammar the name shares, and as the Rust
|
|
50
|
-
* spine's `SCOPE_KIND_LENGTH_MAX`.
|
|
51
|
-
*/
|
|
52
|
-
export declare const SCOPE_KIND_LENGTH_MAX = 64;
|
|
53
|
-
/** The message of a scope-kind name longer than `SCOPE_KIND_LENGTH_MAX`, in both `ScopeKindName`s. */
|
|
54
|
-
export declare const SCOPE_KIND_NAME_LENGTH_MESSAGE = "Scope-kind names must be at most 64 characters";
|
|
55
|
-
/** The message of a scope-kind name outside `SCOPE_KIND_NAME_REGEX`, in both `ScopeKindName`s. */
|
|
56
|
-
export declare const SCOPE_KIND_NAME_PATTERN_MESSAGE = "Scope-kind names must be lowercase letters and underscores (a-z_), no leading, trailing or consecutive underscores";
|
|
35
|
+
/** The message of a scope-kind name longer than `NAME_LENGTH_MAX`, in both `ScopeKindName`s. */
|
|
36
|
+
export declare const SCOPE_KIND_NAME_LENGTH_MESSAGE: string;
|
|
37
|
+
/** The message of a scope-kind name off `NAME_REGEX`, in both `ScopeKindName`s. */
|
|
38
|
+
export declare const SCOPE_KIND_NAME_PATTERN_MESSAGE: string;
|
|
57
39
|
/**
|
|
58
40
|
* Zod schema for valid scope-kind name strings: a registered name, and the
|
|
59
|
-
* `scope_kind` the grant inputs take.
|
|
60
|
-
* `
|
|
61
|
-
*
|
|
41
|
+
* `scope_kind` the grant inputs take. The shared name grammar
|
|
42
|
+
* (`auth/name_schema.ts`), at most `NAME_LENGTH_MAX` UTF-16 code units, which
|
|
43
|
+
* bounds a registered name and the tag where it enters — the grant inputs
|
|
44
|
+
* (`role_grant_offer_create`, `role_grant_assign`) copy it into the row and
|
|
45
|
+
* its audit metadata — so no registry declares a kind the grant inputs would
|
|
46
|
+
* refuse. Off the grammar is the index-side `'GLOBAL'` token. Twin of the Rust
|
|
47
|
+
* spine's `is_valid_name`, and of the `@fuzdev/fuz_schema` `ScopeKindName` in
|
|
48
|
+
* `auth/scope_kind_schema_fuz.ts`, built from the same constants.
|
|
62
49
|
*/
|
|
63
50
|
export declare const ScopeKindName: z.ZodString;
|
|
64
51
|
export type ScopeKindName = z.infer<typeof ScopeKindName>;
|
|
@@ -104,7 +91,7 @@ export interface ScopeKindSchemaResult {
|
|
|
104
91
|
* @param consumer_kinds - the consumer-declared scope-kind set with optional metadata
|
|
105
92
|
* @returns `{ScopeKind, scope_kinds}` — Zod schema and metadata map
|
|
106
93
|
*
|
|
107
|
-
* @throws Error if any `consumer_kinds` key fails
|
|
94
|
+
* @throws Error if any `consumer_kinds` key fails `ScopeKindName` (its grammar or its length cap) or appears more than once
|
|
108
95
|
*
|
|
109
96
|
* @example
|
|
110
97
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope_kind_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/scope_kind_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"scope_kind_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/scope_kind_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,gGAAgG;AAChG,eAAO,MAAM,8BAA8B,QAA2C,CAAC;AAEvF,mFAAmF;AACnF,eAAO,MAAM,+BAA+B,QAA4C,CAAC;AAEzF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,aAAmC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,gFAAgF;AAChF,MAAM,WAAW,qBAAqB;IACrC;;;;;OAKG;IACH,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B;;;OAGG;IACH,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CAChD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,wBAAwB,GACpC,gBAAgB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,KAC3C,qBAwBF,CAAC"}
|
|
@@ -32,39 +32,23 @@
|
|
|
32
32
|
* @module
|
|
33
33
|
*/
|
|
34
34
|
import { z } from 'zod';
|
|
35
|
-
import {
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
* and the index-side `'GLOBAL'` token.
|
|
41
|
-
*/
|
|
42
|
-
export const SCOPE_KIND_NAME_REGEX = /^[a-z]+(?:_[a-z]+)*$/;
|
|
43
|
-
/**
|
|
44
|
-
* Maximum length of a `scope_kind`, in UTF-16 code units (what
|
|
45
|
-
* `String.length` measures; enforced by `bounded_string`). Part of the
|
|
46
|
-
* `ScopeKindName` grammar, which bounds a registered name and the tag where
|
|
47
|
-
* it enters — the grant inputs (`role_grant_offer_create`,
|
|
48
|
-
* `role_grant_assign`) copy it into the row and its audit metadata — so no
|
|
49
|
-
* registry declares a kind the grant inputs would refuse. Same value as
|
|
50
|
-
* `ROLE_NAME_LENGTH_MAX`, whose grammar the name shares, and as the Rust
|
|
51
|
-
* spine's `SCOPE_KIND_LENGTH_MAX`.
|
|
52
|
-
*/
|
|
53
|
-
export const SCOPE_KIND_LENGTH_MAX = 64;
|
|
54
|
-
/** The message of a scope-kind name longer than `SCOPE_KIND_LENGTH_MAX`, in both `ScopeKindName`s. */
|
|
55
|
-
export const SCOPE_KIND_NAME_LENGTH_MESSAGE = `Scope-kind names must be at most ${SCOPE_KIND_LENGTH_MAX} characters`;
|
|
56
|
-
/** The message of a scope-kind name outside `SCOPE_KIND_NAME_REGEX`, in both `ScopeKindName`s. */
|
|
57
|
-
export const SCOPE_KIND_NAME_PATTERN_MESSAGE = 'Scope-kind names must be lowercase letters and underscores (a-z_), no leading, trailing or consecutive underscores';
|
|
35
|
+
import { create_name_schema, format_name_length_message, format_name_pattern_message } from './name_schema.js';
|
|
36
|
+
/** The message of a scope-kind name longer than `NAME_LENGTH_MAX`, in both `ScopeKindName`s. */
|
|
37
|
+
export const SCOPE_KIND_NAME_LENGTH_MESSAGE = format_name_length_message('Scope-kind');
|
|
38
|
+
/** The message of a scope-kind name off `NAME_REGEX`, in both `ScopeKindName`s. */
|
|
39
|
+
export const SCOPE_KIND_NAME_PATTERN_MESSAGE = format_name_pattern_message('Scope-kind');
|
|
58
40
|
/**
|
|
59
41
|
* Zod schema for valid scope-kind name strings: a registered name, and the
|
|
60
|
-
* `scope_kind` the grant inputs take.
|
|
61
|
-
* `
|
|
62
|
-
*
|
|
42
|
+
* `scope_kind` the grant inputs take. The shared name grammar
|
|
43
|
+
* (`auth/name_schema.ts`), at most `NAME_LENGTH_MAX` UTF-16 code units, which
|
|
44
|
+
* bounds a registered name and the tag where it enters — the grant inputs
|
|
45
|
+
* (`role_grant_offer_create`, `role_grant_assign`) copy it into the row and
|
|
46
|
+
* its audit metadata — so no registry declares a kind the grant inputs would
|
|
47
|
+
* refuse. Off the grammar is the index-side `'GLOBAL'` token. Twin of the Rust
|
|
48
|
+
* spine's `is_valid_name`, and of the `@fuzdev/fuz_schema` `ScopeKindName` in
|
|
49
|
+
* `auth/scope_kind_schema_fuz.ts`, built from the same constants.
|
|
63
50
|
*/
|
|
64
|
-
export const ScopeKindName =
|
|
65
|
-
max: SCOPE_KIND_LENGTH_MAX,
|
|
66
|
-
max_message: SCOPE_KIND_NAME_LENGTH_MESSAGE
|
|
67
|
-
}).regex(SCOPE_KIND_NAME_REGEX, SCOPE_KIND_NAME_PATTERN_MESSAGE);
|
|
51
|
+
export const ScopeKindName = create_name_schema('Scope-kind');
|
|
68
52
|
/**
|
|
69
53
|
* Create a scope-kind schema from a consumer-declared registry.
|
|
70
54
|
*
|
|
@@ -84,7 +68,7 @@ export const ScopeKindName = bounded_string({
|
|
|
84
68
|
* @param consumer_kinds - the consumer-declared scope-kind set with optional metadata
|
|
85
69
|
* @returns `{ScopeKind, scope_kinds}` — Zod schema and metadata map
|
|
86
70
|
*
|
|
87
|
-
* @throws Error if any `consumer_kinds` key fails
|
|
71
|
+
* @throws Error if any `consumer_kinds` key fails `ScopeKindName` (its grammar or its length cap) or appears more than once
|
|
88
72
|
*
|
|
89
73
|
* @example
|
|
90
74
|
* ```ts
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* (`auth/scope_kind_schema.ts`), under the same name, for schemas written in
|
|
4
4
|
* fuz_schema.
|
|
5
5
|
*
|
|
6
|
-
* Both are built from the constants
|
|
7
|
-
*
|
|
6
|
+
* Both are built from the same constants, the bound and the grammar of
|
|
7
|
+
* `auth/name_schema.ts` and the two messages `scope_kind_schema.ts` exports,
|
|
8
|
+
* so they can't drift apart. They give every
|
|
8
9
|
* input the same verdict and output, and write the same JSON Schema
|
|
9
10
|
* (`maxLength` and `pattern`); a string both too long and outside the grammar
|
|
10
11
|
* gets the one length issue from this twin, as its `pipe` stops at the first
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
|
|
19
20
|
/**
|
|
20
21
|
* Valid scope-kind name: runs of lowercase letters joined by single
|
|
21
|
-
* underscores, at most `
|
|
22
|
+
* underscores, at most `NAME_LENGTH_MAX` UTF-16 code units, the twin of
|
|
22
23
|
* the Zod `ScopeKindName`. A string it refuses gets the Zod one's message; a
|
|
23
24
|
* value that is no string, fuz_schema's.
|
|
24
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope_kind_schema_fuz.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/scope_kind_schema_fuz.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"scope_kind_schema_fuz.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/scope_kind_schema_fuz.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAShF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,0MAGzB,CAAC;AACF,cAAc;AACd,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* (`auth/scope_kind_schema.ts`), under the same name, for schemas written in
|
|
4
4
|
* fuz_schema.
|
|
5
5
|
*
|
|
6
|
-
* Both are built from the constants
|
|
7
|
-
*
|
|
6
|
+
* Both are built from the same constants, the bound and the grammar of
|
|
7
|
+
* `auth/name_schema.ts` and the two messages `scope_kind_schema.ts` exports,
|
|
8
|
+
* so they can't drift apart. They give every
|
|
8
9
|
* input the same verdict and output, and write the same JSON Schema
|
|
9
10
|
* (`maxLength` and `pattern`); a string both too long and outside the grammar
|
|
10
11
|
* gets the one length issue from this twin, as its `pipe` stops at the first
|
|
@@ -17,13 +18,14 @@
|
|
|
17
18
|
*/
|
|
18
19
|
import { message, pipe, regex } from '@fuzdev/fuz_schema/schema.ts';
|
|
19
20
|
import { bounded_string } from '../primitive_schemas_fuz.js';
|
|
20
|
-
import {
|
|
21
|
+
import { NAME_LENGTH_MAX, NAME_REGEX } from './name_schema.js';
|
|
22
|
+
import { SCOPE_KIND_NAME_LENGTH_MESSAGE, SCOPE_KIND_NAME_PATTERN_MESSAGE } from './scope_kind_schema.js';
|
|
21
23
|
/**
|
|
22
24
|
* Valid scope-kind name: runs of lowercase letters joined by single
|
|
23
|
-
* underscores, at most `
|
|
25
|
+
* underscores, at most `NAME_LENGTH_MAX` UTF-16 code units, the twin of
|
|
24
26
|
* the Zod `ScopeKindName`. A string it refuses gets the Zod one's message; a
|
|
25
27
|
* value that is no string, fuz_schema's.
|
|
26
28
|
*
|
|
27
29
|
* @nodocs
|
|
28
30
|
*/
|
|
29
|
-
export const ScopeKindName = pipe(bounded_string({ max:
|
|
31
|
+
export const ScopeKindName = pipe(bounded_string({ max: NAME_LENGTH_MAX, max_message: SCOPE_KIND_NAME_LENGTH_MESSAGE }), message(regex(NAME_REGEX), SCOPE_KIND_NAME_PATTERN_MESSAGE));
|