@fuzdev/fuz_app 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/CLAUDE.md +630 -0
- package/dist/actions/action_rpc.d.ts +29 -0
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +42 -6
- package/dist/actions/action_types.d.ts +2 -2
- package/dist/actions/cancel.d.ts +12 -13
- package/dist/actions/cancel.d.ts.map +1 -1
- package/dist/actions/cancel.js +10 -13
- package/dist/actions/heartbeat.d.ts +8 -13
- package/dist/actions/heartbeat.d.ts.map +1 -1
- package/dist/actions/heartbeat.js +5 -8
- package/dist/actions/register_action_ws.d.ts +3 -3
- package/dist/actions/register_action_ws.js +2 -2
- package/dist/actions/register_ws_endpoint.d.ts +4 -4
- package/dist/actions/register_ws_endpoint.d.ts.map +1 -1
- package/dist/actions/register_ws_endpoint.js +3 -3
- package/dist/actions/socket.svelte.d.ts +16 -16
- package/dist/actions/socket.svelte.d.ts.map +1 -1
- package/dist/actions/socket.svelte.js +15 -15
- package/dist/actions/transports_ws_auth_guard.d.ts.map +1 -1
- package/dist/actions/transports_ws_backend.d.ts +15 -0
- package/dist/actions/transports_ws_backend.d.ts.map +1 -1
- package/dist/actions/transports_ws_backend.js +17 -0
- package/dist/auth/CLAUDE.md +923 -0
- package/dist/auth/account_action_specs.d.ts +216 -0
- package/dist/auth/account_action_specs.d.ts.map +1 -0
- package/dist/auth/account_action_specs.js +159 -0
- package/dist/auth/account_actions.d.ts +51 -0
- package/dist/auth/account_actions.d.ts.map +1 -0
- package/dist/auth/account_actions.js +119 -0
- package/dist/auth/account_queries.d.ts +6 -2
- package/dist/auth/account_queries.d.ts.map +1 -1
- package/dist/auth/account_queries.js +40 -4
- package/dist/auth/account_routes.d.ts +94 -16
- package/dist/auth/account_routes.d.ts.map +1 -1
- package/dist/auth/account_routes.js +108 -180
- package/dist/auth/account_schema.d.ts +85 -30
- package/dist/auth/account_schema.d.ts.map +1 -1
- package/dist/auth/account_schema.js +40 -8
- package/dist/auth/admin_action_specs.d.ts +674 -0
- package/dist/auth/admin_action_specs.d.ts.map +1 -0
- package/dist/auth/admin_action_specs.js +287 -0
- package/dist/auth/admin_actions.d.ts +69 -0
- package/dist/auth/admin_actions.d.ts.map +1 -0
- package/dist/auth/admin_actions.js +256 -0
- package/dist/auth/api_token.d.ts +10 -0
- package/dist/auth/api_token.d.ts.map +1 -1
- package/dist/auth/api_token.js +9 -0
- package/dist/auth/api_token_queries.d.ts +3 -3
- package/dist/auth/api_token_queries.js +3 -3
- package/dist/auth/app_settings_schema.d.ts +4 -3
- package/dist/auth/app_settings_schema.d.ts.map +1 -1
- package/dist/auth/app_settings_schema.js +2 -1
- package/dist/auth/audit_log_routes.d.ts +14 -6
- package/dist/auth/audit_log_routes.d.ts.map +1 -1
- package/dist/auth/audit_log_routes.js +22 -79
- package/dist/auth/audit_log_schema.d.ts +100 -29
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +83 -11
- package/dist/auth/bootstrap_routes.d.ts +14 -0
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.js +10 -3
- package/dist/auth/cleanup.d.ts +63 -0
- package/dist/auth/cleanup.d.ts.map +1 -0
- package/dist/auth/cleanup.js +80 -0
- package/dist/auth/invite_schema.d.ts +11 -10
- package/dist/auth/invite_schema.d.ts.map +1 -1
- package/dist/auth/invite_schema.js +4 -3
- package/dist/auth/migrations.d.ts +6 -0
- package/dist/auth/migrations.d.ts.map +1 -1
- package/dist/auth/migrations.js +28 -0
- package/dist/auth/permit_offer_action_specs.d.ts +364 -0
- package/dist/auth/permit_offer_action_specs.d.ts.map +1 -0
- package/dist/auth/permit_offer_action_specs.js +216 -0
- package/dist/auth/permit_offer_actions.d.ts +96 -0
- package/dist/auth/permit_offer_actions.d.ts.map +1 -0
- package/dist/auth/permit_offer_actions.js +428 -0
- package/dist/auth/permit_offer_notifications.d.ts +361 -0
- package/dist/auth/permit_offer_notifications.d.ts.map +1 -0
- package/dist/auth/permit_offer_notifications.js +179 -0
- package/dist/auth/permit_offer_queries.d.ts +165 -0
- package/dist/auth/permit_offer_queries.d.ts.map +1 -0
- package/dist/auth/permit_offer_queries.js +390 -0
- package/dist/auth/permit_offer_schema.d.ts +103 -0
- package/dist/auth/permit_offer_schema.d.ts.map +1 -0
- package/dist/auth/permit_offer_schema.js +142 -0
- package/dist/auth/permit_queries.d.ts +77 -14
- package/dist/auth/permit_queries.d.ts.map +1 -1
- package/dist/auth/permit_queries.js +119 -24
- package/dist/auth/session_queries.d.ts +4 -2
- package/dist/auth/session_queries.d.ts.map +1 -1
- package/dist/auth/session_queries.js +4 -2
- package/dist/auth/signup_routes.d.ts +13 -0
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/signup_routes.js +14 -7
- package/dist/http/CLAUDE.md +584 -0
- package/dist/http/pending_effects.d.ts +29 -0
- package/dist/http/pending_effects.d.ts.map +1 -0
- package/dist/http/pending_effects.js +31 -0
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +4 -3
- package/dist/rate_limiter.d.ts +30 -0
- package/dist/rate_limiter.d.ts.map +1 -1
- package/dist/rate_limiter.js +25 -2
- package/dist/realtime/sse_auth_guard.d.ts +2 -0
- package/dist/realtime/sse_auth_guard.d.ts.map +1 -1
- package/dist/realtime/sse_auth_guard.js +5 -3
- package/dist/testing/CLAUDE.md +668 -1
- package/dist/testing/admin_integration.d.ts +10 -7
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/admin_integration.js +382 -482
- package/dist/testing/app_server.d.ts +7 -6
- package/dist/testing/app_server.d.ts.map +1 -1
- package/dist/testing/attack_surface.d.ts +9 -3
- package/dist/testing/attack_surface.d.ts.map +1 -1
- package/dist/testing/attack_surface.js +4 -4
- package/dist/testing/audit_completeness.d.ts +6 -0
- package/dist/testing/audit_completeness.d.ts.map +1 -1
- package/dist/testing/audit_completeness.js +158 -134
- package/dist/testing/auth_apps.d.ts.map +1 -1
- package/dist/testing/auth_apps.js +4 -33
- package/dist/testing/db.d.ts +1 -1
- package/dist/testing/db.d.ts.map +1 -1
- package/dist/testing/db.js +2 -0
- package/dist/testing/entities.d.ts +35 -13
- package/dist/testing/entities.d.ts.map +1 -1
- package/dist/testing/entities.js +17 -0
- package/dist/testing/integration.d.ts +10 -0
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +352 -340
- package/dist/testing/integration_helpers.d.ts +16 -5
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +24 -4
- package/dist/testing/rate_limiting.d.ts +7 -0
- package/dist/testing/rate_limiting.d.ts.map +1 -1
- package/dist/testing/rate_limiting.js +41 -10
- package/dist/testing/rpc_helpers.d.ts +153 -1
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +184 -8
- package/dist/testing/sse_round_trip.d.ts +8 -0
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +10 -3
- package/dist/testing/standard.d.ts +9 -1
- package/dist/testing/standard.d.ts.map +1 -1
- package/dist/testing/standard.js +6 -2
- package/dist/testing/surface_invariants.d.ts +7 -3
- package/dist/testing/surface_invariants.d.ts.map +1 -1
- package/dist/testing/surface_invariants.js +5 -4
- package/dist/testing/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/ws_round_trip.js +9 -38
- package/dist/ui/AccountSessions.svelte +8 -4
- package/dist/ui/AccountSessions.svelte.d.ts.map +1 -1
- package/dist/ui/AdminAccounts.svelte +61 -33
- package/dist/ui/AdminAccounts.svelte.d.ts.map +1 -1
- package/dist/ui/AdminAuditLog.svelte +3 -2
- package/dist/ui/AdminAuditLog.svelte.d.ts.map +1 -1
- package/dist/ui/AdminInvites.svelte +3 -2
- package/dist/ui/AdminInvites.svelte.d.ts.map +1 -1
- package/dist/ui/AdminOverview.svelte +14 -9
- package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
- package/dist/ui/AdminPermitHistory.svelte +3 -2
- package/dist/ui/AdminPermitHistory.svelte.d.ts.map +1 -1
- package/dist/ui/AdminSessions.svelte +29 -25
- package/dist/ui/AdminSessions.svelte.d.ts.map +1 -1
- package/dist/ui/CLAUDE.md +351 -0
- package/dist/ui/OpenSignupToggle.svelte +6 -3
- package/dist/ui/OpenSignupToggle.svelte.d.ts.map +1 -1
- package/dist/ui/PermitOfferForm.svelte +141 -0
- package/dist/ui/PermitOfferForm.svelte.d.ts +14 -0
- package/dist/ui/PermitOfferForm.svelte.d.ts.map +1 -0
- package/dist/ui/PermitOfferHistory.svelte +109 -0
- package/dist/ui/PermitOfferHistory.svelte.d.ts +11 -0
- package/dist/ui/PermitOfferHistory.svelte.d.ts.map +1 -0
- package/dist/ui/PermitOfferInbox.svelte +121 -0
- package/dist/ui/PermitOfferInbox.svelte.d.ts +12 -0
- package/dist/ui/PermitOfferInbox.svelte.d.ts.map +1 -0
- package/dist/ui/account_sessions_state.svelte.d.ts +53 -3
- package/dist/ui/account_sessions_state.svelte.d.ts.map +1 -1
- package/dist/ui/account_sessions_state.svelte.js +39 -16
- package/dist/ui/admin_accounts_state.svelte.d.ts +118 -2
- package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_accounts_state.svelte.js +99 -23
- package/dist/ui/admin_invites_state.svelte.d.ts +47 -1
- package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_invites_state.svelte.js +38 -26
- package/dist/ui/admin_sessions_state.svelte.d.ts +26 -0
- package/dist/ui/admin_sessions_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_sessions_state.svelte.js +35 -21
- package/dist/ui/app_settings_state.svelte.d.ts +39 -0
- package/dist/ui/app_settings_state.svelte.d.ts.map +1 -1
- package/dist/ui/app_settings_state.svelte.js +34 -18
- package/dist/ui/audit_log_state.svelte.d.ts +40 -3
- package/dist/ui/audit_log_state.svelte.d.ts.map +1 -1
- package/dist/ui/audit_log_state.svelte.js +36 -42
- package/dist/ui/auth_state.svelte.d.ts +4 -3
- package/dist/ui/auth_state.svelte.d.ts.map +1 -1
- package/dist/ui/auth_state.svelte.js +4 -1
- package/dist/ui/permit_offers_state.svelte.d.ts +125 -0
- package/dist/ui/permit_offers_state.svelte.d.ts.map +1 -0
- package/dist/ui/permit_offers_state.svelte.js +197 -0
- package/package.json +3 -3
- package/dist/auth/admin_routes.d.ts +0 -29
- package/dist/auth/admin_routes.d.ts.map +0 -1
- package/dist/auth/admin_routes.js +0 -226
- package/dist/auth/app_settings_routes.d.ts +0 -27
- package/dist/auth/app_settings_routes.d.ts.map +0 -1
- package/dist/auth/app_settings_routes.js +0 -66
- package/dist/auth/invite_routes.d.ts +0 -18
- package/dist/auth/invite_routes.d.ts.map +0 -1
- package/dist/auth/invite_routes.js +0 -129
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin RPC action specs — declarative contract for admin-only operations.
|
|
3
|
+
*
|
|
4
|
+
* Import this module for the specs, Input/Output schemas, and the
|
|
5
|
+
* `all_admin_action_specs` registry. Handlers live in `./admin_actions.js`.
|
|
6
|
+
*
|
|
7
|
+
* Authorization is declared at the spec level (`auth: {role: ROLE_ADMIN}`)
|
|
8
|
+
* so the RPC dispatcher enforces admin before the handler runs and the
|
|
9
|
+
* generated surface accurately reports the requirement.
|
|
10
|
+
*
|
|
11
|
+
* The registry always includes `app_settings_get` / `app_settings_update` —
|
|
12
|
+
* the runtime factory only wires their handlers when
|
|
13
|
+
* `AdminActionOptions.app_settings` is provided; dispatch falls back to
|
|
14
|
+
* `method_not_found` when absent.
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
import { z } from 'zod';
|
|
19
|
+
import type { RequestResponseActionSpec } from '../actions/action_spec.js';
|
|
20
|
+
/** Max audit-log page size. Mirrors the former REST route's clamp. */
|
|
21
|
+
export declare const AUDIT_LOG_LIST_LIMIT_MAX = 200;
|
|
22
|
+
/** Input for `admin_account_list`. No parameters — the caller is the subject. */
|
|
23
|
+
export declare const AdminAccountListInput: z.ZodNull;
|
|
24
|
+
export type AdminAccountListInput = z.infer<typeof AdminAccountListInput>;
|
|
25
|
+
/** Output for `admin_account_list`. */
|
|
26
|
+
export declare const AdminAccountListOutput: z.ZodObject<{
|
|
27
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
28
|
+
account: z.ZodObject<{
|
|
29
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
30
|
+
username: z.ZodString;
|
|
31
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
32
|
+
email_verified: z.ZodBoolean;
|
|
33
|
+
created_at: z.ZodString;
|
|
34
|
+
updated_at: z.ZodString;
|
|
35
|
+
updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
actor: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
permits: z.ZodArray<z.ZodObject<{
|
|
42
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
43
|
+
role: z.ZodString;
|
|
44
|
+
scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
45
|
+
created_at: z.ZodString;
|
|
46
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
47
|
+
granted_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
48
|
+
}, z.core.$strict>>;
|
|
49
|
+
pending_offers: z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
51
|
+
role: z.ZodString;
|
|
52
|
+
scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
53
|
+
from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
54
|
+
from_username: z.ZodString;
|
|
55
|
+
created_at: z.ZodString;
|
|
56
|
+
expires_at: z.ZodString;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
grantable_roles: z.ZodArray<z.ZodString>;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
export type AdminAccountListOutput = z.infer<typeof AdminAccountListOutput>;
|
|
62
|
+
/** Input for `admin_session_list`. No parameters — reads every active session. */
|
|
63
|
+
export declare const AdminSessionListInput: z.ZodNull;
|
|
64
|
+
export type AdminSessionListInput = z.infer<typeof AdminSessionListInput>;
|
|
65
|
+
/** Output for `admin_session_list`. Cross-account listing; fan-out already scoped by role auth. */
|
|
66
|
+
export declare const AdminSessionListOutput: z.ZodObject<{
|
|
67
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
70
|
+
created_at: z.ZodString;
|
|
71
|
+
expires_at: z.ZodString;
|
|
72
|
+
last_seen_at: z.ZodString;
|
|
73
|
+
username: z.ZodString;
|
|
74
|
+
}, z.core.$strict>>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
export type AdminSessionListOutput = z.infer<typeof AdminSessionListOutput>;
|
|
77
|
+
/** Input for `admin_session_revoke_all`. */
|
|
78
|
+
export declare const AdminSessionRevokeAllInput: z.ZodObject<{
|
|
79
|
+
account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
80
|
+
}, z.core.$strict>;
|
|
81
|
+
export type AdminSessionRevokeAllInput = z.infer<typeof AdminSessionRevokeAllInput>;
|
|
82
|
+
/** Output for `admin_session_revoke_all`. */
|
|
83
|
+
export declare const AdminSessionRevokeAllOutput: z.ZodObject<{
|
|
84
|
+
ok: z.ZodLiteral<true>;
|
|
85
|
+
count: z.ZodNumber;
|
|
86
|
+
}, z.core.$strict>;
|
|
87
|
+
export type AdminSessionRevokeAllOutput = z.infer<typeof AdminSessionRevokeAllOutput>;
|
|
88
|
+
/** Input for `admin_token_revoke_all`. */
|
|
89
|
+
export declare const AdminTokenRevokeAllInput: z.ZodObject<{
|
|
90
|
+
account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
export type AdminTokenRevokeAllInput = z.infer<typeof AdminTokenRevokeAllInput>;
|
|
93
|
+
/** Output for `admin_token_revoke_all`. */
|
|
94
|
+
export declare const AdminTokenRevokeAllOutput: z.ZodObject<{
|
|
95
|
+
ok: z.ZodLiteral<true>;
|
|
96
|
+
count: z.ZodNumber;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export type AdminTokenRevokeAllOutput = z.infer<typeof AdminTokenRevokeAllOutput>;
|
|
99
|
+
/**
|
|
100
|
+
* Input for `audit_log_list`. All filter fields are optional — omit for the
|
|
101
|
+
* default newest-first page. `since_seq` exists for SSE reconnection gap
|
|
102
|
+
* fill (caller supplies the highest seq seen; server returns everything
|
|
103
|
+
* after).
|
|
104
|
+
*/
|
|
105
|
+
export declare const AuditLogListInput: z.ZodObject<{
|
|
106
|
+
event_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
107
|
+
login: "login";
|
|
108
|
+
logout: "logout";
|
|
109
|
+
bootstrap: "bootstrap";
|
|
110
|
+
signup: "signup";
|
|
111
|
+
password_change: "password_change";
|
|
112
|
+
session_revoke: "session_revoke";
|
|
113
|
+
session_revoke_all: "session_revoke_all";
|
|
114
|
+
token_create: "token_create";
|
|
115
|
+
token_revoke: "token_revoke";
|
|
116
|
+
token_revoke_all: "token_revoke_all";
|
|
117
|
+
permit_grant: "permit_grant";
|
|
118
|
+
permit_revoke: "permit_revoke";
|
|
119
|
+
permit_offer_create: "permit_offer_create";
|
|
120
|
+
permit_offer_accept: "permit_offer_accept";
|
|
121
|
+
permit_offer_decline: "permit_offer_decline";
|
|
122
|
+
permit_offer_retract: "permit_offer_retract";
|
|
123
|
+
permit_offer_expire: "permit_offer_expire";
|
|
124
|
+
permit_offer_supersede: "permit_offer_supersede";
|
|
125
|
+
invite_create: "invite_create";
|
|
126
|
+
invite_delete: "invite_delete";
|
|
127
|
+
app_settings_update: "app_settings_update";
|
|
128
|
+
}>>>;
|
|
129
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
130
|
+
success: "success";
|
|
131
|
+
failure: "failure";
|
|
132
|
+
}>>>;
|
|
133
|
+
account_id: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
|
|
134
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
135
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
136
|
+
since_seq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
export type AuditLogListInput = z.infer<typeof AuditLogListInput>;
|
|
139
|
+
/** Output for `audit_log_list`. */
|
|
140
|
+
export declare const AuditLogListOutput: z.ZodObject<{
|
|
141
|
+
events: z.ZodArray<z.ZodObject<{
|
|
142
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
143
|
+
seq: z.ZodNumber;
|
|
144
|
+
event_type: z.ZodEnum<{
|
|
145
|
+
login: "login";
|
|
146
|
+
logout: "logout";
|
|
147
|
+
bootstrap: "bootstrap";
|
|
148
|
+
signup: "signup";
|
|
149
|
+
password_change: "password_change";
|
|
150
|
+
session_revoke: "session_revoke";
|
|
151
|
+
session_revoke_all: "session_revoke_all";
|
|
152
|
+
token_create: "token_create";
|
|
153
|
+
token_revoke: "token_revoke";
|
|
154
|
+
token_revoke_all: "token_revoke_all";
|
|
155
|
+
permit_grant: "permit_grant";
|
|
156
|
+
permit_revoke: "permit_revoke";
|
|
157
|
+
permit_offer_create: "permit_offer_create";
|
|
158
|
+
permit_offer_accept: "permit_offer_accept";
|
|
159
|
+
permit_offer_decline: "permit_offer_decline";
|
|
160
|
+
permit_offer_retract: "permit_offer_retract";
|
|
161
|
+
permit_offer_expire: "permit_offer_expire";
|
|
162
|
+
permit_offer_supersede: "permit_offer_supersede";
|
|
163
|
+
invite_create: "invite_create";
|
|
164
|
+
invite_delete: "invite_delete";
|
|
165
|
+
app_settings_update: "app_settings_update";
|
|
166
|
+
}>;
|
|
167
|
+
outcome: z.ZodEnum<{
|
|
168
|
+
success: "success";
|
|
169
|
+
failure: "failure";
|
|
170
|
+
}>;
|
|
171
|
+
actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
172
|
+
account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
173
|
+
target_account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
174
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
175
|
+
created_at: z.ZodString;
|
|
176
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
177
|
+
username: z.ZodNullable<z.ZodString>;
|
|
178
|
+
target_username: z.ZodNullable<z.ZodString>;
|
|
179
|
+
}, z.core.$strict>>;
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
export type AuditLogListOutput = z.infer<typeof AuditLogListOutput>;
|
|
182
|
+
/** Input for `audit_log_permit_history`. */
|
|
183
|
+
export declare const AuditLogPermitHistoryInput: z.ZodObject<{
|
|
184
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
185
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
186
|
+
}, z.core.$strict>;
|
|
187
|
+
export type AuditLogPermitHistoryInput = z.infer<typeof AuditLogPermitHistoryInput>;
|
|
188
|
+
/** Output for `audit_log_permit_history`. */
|
|
189
|
+
export declare const AuditLogPermitHistoryOutput: z.ZodObject<{
|
|
190
|
+
events: z.ZodArray<z.ZodObject<{
|
|
191
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
192
|
+
seq: z.ZodNumber;
|
|
193
|
+
event_type: z.ZodEnum<{
|
|
194
|
+
login: "login";
|
|
195
|
+
logout: "logout";
|
|
196
|
+
bootstrap: "bootstrap";
|
|
197
|
+
signup: "signup";
|
|
198
|
+
password_change: "password_change";
|
|
199
|
+
session_revoke: "session_revoke";
|
|
200
|
+
session_revoke_all: "session_revoke_all";
|
|
201
|
+
token_create: "token_create";
|
|
202
|
+
token_revoke: "token_revoke";
|
|
203
|
+
token_revoke_all: "token_revoke_all";
|
|
204
|
+
permit_grant: "permit_grant";
|
|
205
|
+
permit_revoke: "permit_revoke";
|
|
206
|
+
permit_offer_create: "permit_offer_create";
|
|
207
|
+
permit_offer_accept: "permit_offer_accept";
|
|
208
|
+
permit_offer_decline: "permit_offer_decline";
|
|
209
|
+
permit_offer_retract: "permit_offer_retract";
|
|
210
|
+
permit_offer_expire: "permit_offer_expire";
|
|
211
|
+
permit_offer_supersede: "permit_offer_supersede";
|
|
212
|
+
invite_create: "invite_create";
|
|
213
|
+
invite_delete: "invite_delete";
|
|
214
|
+
app_settings_update: "app_settings_update";
|
|
215
|
+
}>;
|
|
216
|
+
outcome: z.ZodEnum<{
|
|
217
|
+
success: "success";
|
|
218
|
+
failure: "failure";
|
|
219
|
+
}>;
|
|
220
|
+
actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
221
|
+
account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
222
|
+
target_account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
223
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
224
|
+
created_at: z.ZodString;
|
|
225
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
226
|
+
username: z.ZodNullable<z.ZodString>;
|
|
227
|
+
target_username: z.ZodNullable<z.ZodString>;
|
|
228
|
+
}, z.core.$strict>>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
export type AuditLogPermitHistoryOutput = z.infer<typeof AuditLogPermitHistoryOutput>;
|
|
231
|
+
/** Input for `invite_create`. At least one of `email` / `username` must be provided. */
|
|
232
|
+
export declare const InviteCreateInput: z.ZodObject<{
|
|
233
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
234
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
+
}, z.core.$strict>;
|
|
236
|
+
export type InviteCreateInput = z.infer<typeof InviteCreateInput>;
|
|
237
|
+
/** Output for `invite_create`. */
|
|
238
|
+
export declare const InviteCreateOutput: z.ZodObject<{
|
|
239
|
+
ok: z.ZodLiteral<true>;
|
|
240
|
+
invite: z.ZodObject<{
|
|
241
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
242
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
243
|
+
username: z.ZodNullable<z.ZodString>;
|
|
244
|
+
claimed_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
245
|
+
claimed_at: z.ZodNullable<z.ZodString>;
|
|
246
|
+
created_at: z.ZodString;
|
|
247
|
+
created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
export type InviteCreateOutput = z.infer<typeof InviteCreateOutput>;
|
|
251
|
+
/** Input for `invite_list`. */
|
|
252
|
+
export declare const InviteListInput: z.ZodNull;
|
|
253
|
+
export type InviteListInput = z.infer<typeof InviteListInput>;
|
|
254
|
+
/** Output for `invite_list`. Uses the enriched row including creator/claimer usernames. */
|
|
255
|
+
export declare const InviteListOutput: z.ZodObject<{
|
|
256
|
+
invites: z.ZodArray<z.ZodObject<{
|
|
257
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
258
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
259
|
+
username: z.ZodNullable<z.ZodString>;
|
|
260
|
+
claimed_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
261
|
+
claimed_at: z.ZodNullable<z.ZodString>;
|
|
262
|
+
created_at: z.ZodString;
|
|
263
|
+
created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
264
|
+
created_by_username: z.ZodNullable<z.ZodString>;
|
|
265
|
+
claimed_by_username: z.ZodNullable<z.ZodString>;
|
|
266
|
+
}, z.core.$strict>>;
|
|
267
|
+
}, z.core.$strict>;
|
|
268
|
+
export type InviteListOutput = z.infer<typeof InviteListOutput>;
|
|
269
|
+
/** Input for `invite_delete`. */
|
|
270
|
+
export declare const InviteDeleteInput: z.ZodObject<{
|
|
271
|
+
invite_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
export type InviteDeleteInput = z.infer<typeof InviteDeleteInput>;
|
|
274
|
+
/** Output for `invite_delete`. */
|
|
275
|
+
export declare const InviteDeleteOutput: z.ZodObject<{
|
|
276
|
+
ok: z.ZodLiteral<true>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
export type InviteDeleteOutput = z.infer<typeof InviteDeleteOutput>;
|
|
279
|
+
/** Input for `app_settings_get`. No parameters. */
|
|
280
|
+
export declare const AppSettingsGetInput: z.ZodNull;
|
|
281
|
+
export type AppSettingsGetInput = z.infer<typeof AppSettingsGetInput>;
|
|
282
|
+
/** Output for `app_settings_get`. */
|
|
283
|
+
export declare const AppSettingsGetOutput: z.ZodObject<{
|
|
284
|
+
settings: z.ZodObject<{
|
|
285
|
+
open_signup: z.ZodBoolean;
|
|
286
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
287
|
+
updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
288
|
+
updated_by_username: z.ZodNullable<z.ZodString>;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
}, z.core.$strict>;
|
|
291
|
+
export type AppSettingsGetOutput = z.infer<typeof AppSettingsGetOutput>;
|
|
292
|
+
/** Input for `app_settings_update`. */
|
|
293
|
+
export declare const AppSettingsUpdateInput: z.ZodObject<{
|
|
294
|
+
open_signup: z.ZodBoolean;
|
|
295
|
+
}, z.core.$strict>;
|
|
296
|
+
export type AppSettingsUpdateInput = z.infer<typeof AppSettingsUpdateInput>;
|
|
297
|
+
/** Output for `app_settings_update`. */
|
|
298
|
+
export declare const AppSettingsUpdateOutput: z.ZodObject<{
|
|
299
|
+
ok: z.ZodLiteral<true>;
|
|
300
|
+
settings: z.ZodObject<{
|
|
301
|
+
open_signup: z.ZodBoolean;
|
|
302
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
303
|
+
updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
304
|
+
updated_by_username: z.ZodNullable<z.ZodString>;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
export type AppSettingsUpdateOutput = z.infer<typeof AppSettingsUpdateOutput>;
|
|
308
|
+
export declare const admin_account_list_action_spec: {
|
|
309
|
+
method: string;
|
|
310
|
+
kind: "request_response";
|
|
311
|
+
initiator: "frontend";
|
|
312
|
+
auth: {
|
|
313
|
+
role: string;
|
|
314
|
+
};
|
|
315
|
+
side_effects: false;
|
|
316
|
+
input: z.ZodNull;
|
|
317
|
+
output: z.ZodObject<{
|
|
318
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
319
|
+
account: z.ZodObject<{
|
|
320
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
321
|
+
username: z.ZodString;
|
|
322
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
323
|
+
email_verified: z.ZodBoolean;
|
|
324
|
+
created_at: z.ZodString;
|
|
325
|
+
updated_at: z.ZodString;
|
|
326
|
+
updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
actor: z.ZodNullable<z.ZodObject<{
|
|
329
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
330
|
+
name: z.ZodString;
|
|
331
|
+
}, z.core.$strict>>;
|
|
332
|
+
permits: z.ZodArray<z.ZodObject<{
|
|
333
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
334
|
+
role: z.ZodString;
|
|
335
|
+
scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
336
|
+
created_at: z.ZodString;
|
|
337
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
338
|
+
granted_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
339
|
+
}, z.core.$strict>>;
|
|
340
|
+
pending_offers: z.ZodArray<z.ZodObject<{
|
|
341
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
342
|
+
role: z.ZodString;
|
|
343
|
+
scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
344
|
+
from_actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
345
|
+
from_username: z.ZodString;
|
|
346
|
+
created_at: z.ZodString;
|
|
347
|
+
expires_at: z.ZodString;
|
|
348
|
+
}, z.core.$strict>>;
|
|
349
|
+
}, z.core.$strict>>;
|
|
350
|
+
grantable_roles: z.ZodArray<z.ZodString>;
|
|
351
|
+
}, z.core.$strict>;
|
|
352
|
+
async: true;
|
|
353
|
+
description: string;
|
|
354
|
+
};
|
|
355
|
+
export declare const admin_session_list_action_spec: {
|
|
356
|
+
method: string;
|
|
357
|
+
kind: "request_response";
|
|
358
|
+
initiator: "frontend";
|
|
359
|
+
auth: {
|
|
360
|
+
role: string;
|
|
361
|
+
};
|
|
362
|
+
side_effects: false;
|
|
363
|
+
input: z.ZodNull;
|
|
364
|
+
output: z.ZodObject<{
|
|
365
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
368
|
+
created_at: z.ZodString;
|
|
369
|
+
expires_at: z.ZodString;
|
|
370
|
+
last_seen_at: z.ZodString;
|
|
371
|
+
username: z.ZodString;
|
|
372
|
+
}, z.core.$strict>>;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
async: true;
|
|
375
|
+
description: string;
|
|
376
|
+
};
|
|
377
|
+
export declare const admin_session_revoke_all_action_spec: {
|
|
378
|
+
method: string;
|
|
379
|
+
kind: "request_response";
|
|
380
|
+
initiator: "frontend";
|
|
381
|
+
auth: {
|
|
382
|
+
role: string;
|
|
383
|
+
};
|
|
384
|
+
side_effects: true;
|
|
385
|
+
input: z.ZodObject<{
|
|
386
|
+
account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
387
|
+
}, z.core.$strict>;
|
|
388
|
+
output: z.ZodObject<{
|
|
389
|
+
ok: z.ZodLiteral<true>;
|
|
390
|
+
count: z.ZodNumber;
|
|
391
|
+
}, z.core.$strict>;
|
|
392
|
+
async: true;
|
|
393
|
+
description: string;
|
|
394
|
+
};
|
|
395
|
+
export declare const admin_token_revoke_all_action_spec: {
|
|
396
|
+
method: string;
|
|
397
|
+
kind: "request_response";
|
|
398
|
+
initiator: "frontend";
|
|
399
|
+
auth: {
|
|
400
|
+
role: string;
|
|
401
|
+
};
|
|
402
|
+
side_effects: true;
|
|
403
|
+
input: z.ZodObject<{
|
|
404
|
+
account_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
405
|
+
}, z.core.$strict>;
|
|
406
|
+
output: z.ZodObject<{
|
|
407
|
+
ok: z.ZodLiteral<true>;
|
|
408
|
+
count: z.ZodNumber;
|
|
409
|
+
}, z.core.$strict>;
|
|
410
|
+
async: true;
|
|
411
|
+
description: string;
|
|
412
|
+
};
|
|
413
|
+
export declare const audit_log_list_action_spec: {
|
|
414
|
+
method: string;
|
|
415
|
+
kind: "request_response";
|
|
416
|
+
initiator: "frontend";
|
|
417
|
+
auth: {
|
|
418
|
+
role: string;
|
|
419
|
+
};
|
|
420
|
+
side_effects: false;
|
|
421
|
+
input: z.ZodObject<{
|
|
422
|
+
event_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
423
|
+
login: "login";
|
|
424
|
+
logout: "logout";
|
|
425
|
+
bootstrap: "bootstrap";
|
|
426
|
+
signup: "signup";
|
|
427
|
+
password_change: "password_change";
|
|
428
|
+
session_revoke: "session_revoke";
|
|
429
|
+
session_revoke_all: "session_revoke_all";
|
|
430
|
+
token_create: "token_create";
|
|
431
|
+
token_revoke: "token_revoke";
|
|
432
|
+
token_revoke_all: "token_revoke_all";
|
|
433
|
+
permit_grant: "permit_grant";
|
|
434
|
+
permit_revoke: "permit_revoke";
|
|
435
|
+
permit_offer_create: "permit_offer_create";
|
|
436
|
+
permit_offer_accept: "permit_offer_accept";
|
|
437
|
+
permit_offer_decline: "permit_offer_decline";
|
|
438
|
+
permit_offer_retract: "permit_offer_retract";
|
|
439
|
+
permit_offer_expire: "permit_offer_expire";
|
|
440
|
+
permit_offer_supersede: "permit_offer_supersede";
|
|
441
|
+
invite_create: "invite_create";
|
|
442
|
+
invite_delete: "invite_delete";
|
|
443
|
+
app_settings_update: "app_settings_update";
|
|
444
|
+
}>>>;
|
|
445
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
446
|
+
success: "success";
|
|
447
|
+
failure: "failure";
|
|
448
|
+
}>>>;
|
|
449
|
+
account_id: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
|
|
450
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
451
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
452
|
+
since_seq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
output: z.ZodObject<{
|
|
455
|
+
events: z.ZodArray<z.ZodObject<{
|
|
456
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
457
|
+
seq: z.ZodNumber;
|
|
458
|
+
event_type: z.ZodEnum<{
|
|
459
|
+
login: "login";
|
|
460
|
+
logout: "logout";
|
|
461
|
+
bootstrap: "bootstrap";
|
|
462
|
+
signup: "signup";
|
|
463
|
+
password_change: "password_change";
|
|
464
|
+
session_revoke: "session_revoke";
|
|
465
|
+
session_revoke_all: "session_revoke_all";
|
|
466
|
+
token_create: "token_create";
|
|
467
|
+
token_revoke: "token_revoke";
|
|
468
|
+
token_revoke_all: "token_revoke_all";
|
|
469
|
+
permit_grant: "permit_grant";
|
|
470
|
+
permit_revoke: "permit_revoke";
|
|
471
|
+
permit_offer_create: "permit_offer_create";
|
|
472
|
+
permit_offer_accept: "permit_offer_accept";
|
|
473
|
+
permit_offer_decline: "permit_offer_decline";
|
|
474
|
+
permit_offer_retract: "permit_offer_retract";
|
|
475
|
+
permit_offer_expire: "permit_offer_expire";
|
|
476
|
+
permit_offer_supersede: "permit_offer_supersede";
|
|
477
|
+
invite_create: "invite_create";
|
|
478
|
+
invite_delete: "invite_delete";
|
|
479
|
+
app_settings_update: "app_settings_update";
|
|
480
|
+
}>;
|
|
481
|
+
outcome: z.ZodEnum<{
|
|
482
|
+
success: "success";
|
|
483
|
+
failure: "failure";
|
|
484
|
+
}>;
|
|
485
|
+
actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
486
|
+
account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
487
|
+
target_account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
488
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
489
|
+
created_at: z.ZodString;
|
|
490
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
491
|
+
username: z.ZodNullable<z.ZodString>;
|
|
492
|
+
target_username: z.ZodNullable<z.ZodString>;
|
|
493
|
+
}, z.core.$strict>>;
|
|
494
|
+
}, z.core.$strict>;
|
|
495
|
+
async: true;
|
|
496
|
+
description: string;
|
|
497
|
+
};
|
|
498
|
+
export declare const audit_log_permit_history_action_spec: {
|
|
499
|
+
method: string;
|
|
500
|
+
kind: "request_response";
|
|
501
|
+
initiator: "frontend";
|
|
502
|
+
auth: {
|
|
503
|
+
role: string;
|
|
504
|
+
};
|
|
505
|
+
side_effects: false;
|
|
506
|
+
input: z.ZodObject<{
|
|
507
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
508
|
+
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
509
|
+
}, z.core.$strict>;
|
|
510
|
+
output: z.ZodObject<{
|
|
511
|
+
events: z.ZodArray<z.ZodObject<{
|
|
512
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
513
|
+
seq: z.ZodNumber;
|
|
514
|
+
event_type: z.ZodEnum<{
|
|
515
|
+
login: "login";
|
|
516
|
+
logout: "logout";
|
|
517
|
+
bootstrap: "bootstrap";
|
|
518
|
+
signup: "signup";
|
|
519
|
+
password_change: "password_change";
|
|
520
|
+
session_revoke: "session_revoke";
|
|
521
|
+
session_revoke_all: "session_revoke_all";
|
|
522
|
+
token_create: "token_create";
|
|
523
|
+
token_revoke: "token_revoke";
|
|
524
|
+
token_revoke_all: "token_revoke_all";
|
|
525
|
+
permit_grant: "permit_grant";
|
|
526
|
+
permit_revoke: "permit_revoke";
|
|
527
|
+
permit_offer_create: "permit_offer_create";
|
|
528
|
+
permit_offer_accept: "permit_offer_accept";
|
|
529
|
+
permit_offer_decline: "permit_offer_decline";
|
|
530
|
+
permit_offer_retract: "permit_offer_retract";
|
|
531
|
+
permit_offer_expire: "permit_offer_expire";
|
|
532
|
+
permit_offer_supersede: "permit_offer_supersede";
|
|
533
|
+
invite_create: "invite_create";
|
|
534
|
+
invite_delete: "invite_delete";
|
|
535
|
+
app_settings_update: "app_settings_update";
|
|
536
|
+
}>;
|
|
537
|
+
outcome: z.ZodEnum<{
|
|
538
|
+
success: "success";
|
|
539
|
+
failure: "failure";
|
|
540
|
+
}>;
|
|
541
|
+
actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
542
|
+
account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
543
|
+
target_account_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
544
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
545
|
+
created_at: z.ZodString;
|
|
546
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
547
|
+
username: z.ZodNullable<z.ZodString>;
|
|
548
|
+
target_username: z.ZodNullable<z.ZodString>;
|
|
549
|
+
}, z.core.$strict>>;
|
|
550
|
+
}, z.core.$strict>;
|
|
551
|
+
async: true;
|
|
552
|
+
description: string;
|
|
553
|
+
};
|
|
554
|
+
export declare const invite_create_action_spec: {
|
|
555
|
+
method: string;
|
|
556
|
+
kind: "request_response";
|
|
557
|
+
initiator: "frontend";
|
|
558
|
+
auth: {
|
|
559
|
+
role: string;
|
|
560
|
+
};
|
|
561
|
+
side_effects: true;
|
|
562
|
+
input: z.ZodObject<{
|
|
563
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
564
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
565
|
+
}, z.core.$strict>;
|
|
566
|
+
output: z.ZodObject<{
|
|
567
|
+
ok: z.ZodLiteral<true>;
|
|
568
|
+
invite: z.ZodObject<{
|
|
569
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
570
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
571
|
+
username: z.ZodNullable<z.ZodString>;
|
|
572
|
+
claimed_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
573
|
+
claimed_at: z.ZodNullable<z.ZodString>;
|
|
574
|
+
created_at: z.ZodString;
|
|
575
|
+
created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
576
|
+
}, z.core.$strict>;
|
|
577
|
+
}, z.core.$strict>;
|
|
578
|
+
async: true;
|
|
579
|
+
description: string;
|
|
580
|
+
};
|
|
581
|
+
export declare const invite_list_action_spec: {
|
|
582
|
+
method: string;
|
|
583
|
+
kind: "request_response";
|
|
584
|
+
initiator: "frontend";
|
|
585
|
+
auth: {
|
|
586
|
+
role: string;
|
|
587
|
+
};
|
|
588
|
+
side_effects: false;
|
|
589
|
+
input: z.ZodNull;
|
|
590
|
+
output: z.ZodObject<{
|
|
591
|
+
invites: z.ZodArray<z.ZodObject<{
|
|
592
|
+
id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
593
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
594
|
+
username: z.ZodNullable<z.ZodString>;
|
|
595
|
+
claimed_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
596
|
+
claimed_at: z.ZodNullable<z.ZodString>;
|
|
597
|
+
created_at: z.ZodString;
|
|
598
|
+
created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
599
|
+
created_by_username: z.ZodNullable<z.ZodString>;
|
|
600
|
+
claimed_by_username: z.ZodNullable<z.ZodString>;
|
|
601
|
+
}, z.core.$strict>>;
|
|
602
|
+
}, z.core.$strict>;
|
|
603
|
+
async: true;
|
|
604
|
+
description: string;
|
|
605
|
+
};
|
|
606
|
+
export declare const invite_delete_action_spec: {
|
|
607
|
+
method: string;
|
|
608
|
+
kind: "request_response";
|
|
609
|
+
initiator: "frontend";
|
|
610
|
+
auth: {
|
|
611
|
+
role: string;
|
|
612
|
+
};
|
|
613
|
+
side_effects: true;
|
|
614
|
+
input: z.ZodObject<{
|
|
615
|
+
invite_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
|
|
616
|
+
}, z.core.$strict>;
|
|
617
|
+
output: z.ZodObject<{
|
|
618
|
+
ok: z.ZodLiteral<true>;
|
|
619
|
+
}, z.core.$strict>;
|
|
620
|
+
async: true;
|
|
621
|
+
description: string;
|
|
622
|
+
};
|
|
623
|
+
export declare const app_settings_get_action_spec: {
|
|
624
|
+
method: string;
|
|
625
|
+
kind: "request_response";
|
|
626
|
+
initiator: "frontend";
|
|
627
|
+
auth: {
|
|
628
|
+
role: string;
|
|
629
|
+
};
|
|
630
|
+
side_effects: false;
|
|
631
|
+
input: z.ZodNull;
|
|
632
|
+
output: z.ZodObject<{
|
|
633
|
+
settings: z.ZodObject<{
|
|
634
|
+
open_signup: z.ZodBoolean;
|
|
635
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
636
|
+
updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
637
|
+
updated_by_username: z.ZodNullable<z.ZodString>;
|
|
638
|
+
}, z.core.$strict>;
|
|
639
|
+
}, z.core.$strict>;
|
|
640
|
+
async: true;
|
|
641
|
+
description: string;
|
|
642
|
+
};
|
|
643
|
+
export declare const app_settings_update_action_spec: {
|
|
644
|
+
method: string;
|
|
645
|
+
kind: "request_response";
|
|
646
|
+
initiator: "frontend";
|
|
647
|
+
auth: {
|
|
648
|
+
role: string;
|
|
649
|
+
};
|
|
650
|
+
side_effects: true;
|
|
651
|
+
input: z.ZodObject<{
|
|
652
|
+
open_signup: z.ZodBoolean;
|
|
653
|
+
}, z.core.$strict>;
|
|
654
|
+
output: z.ZodObject<{
|
|
655
|
+
ok: z.ZodLiteral<true>;
|
|
656
|
+
settings: z.ZodObject<{
|
|
657
|
+
open_signup: z.ZodBoolean;
|
|
658
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
659
|
+
updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
|
|
660
|
+
updated_by_username: z.ZodNullable<z.ZodString>;
|
|
661
|
+
}, z.core.$strict>;
|
|
662
|
+
}, z.core.$strict>;
|
|
663
|
+
async: true;
|
|
664
|
+
description: string;
|
|
665
|
+
};
|
|
666
|
+
/**
|
|
667
|
+
* All admin action specs — a codegen-ready registry. Consumers spread this
|
|
668
|
+
* into their own action-spec array to include admin methods in a typed
|
|
669
|
+
* client surface. Always includes the two app-settings specs; the runtime
|
|
670
|
+
* factory only wires their handlers when `AdminActionOptions.app_settings`
|
|
671
|
+
* is provided.
|
|
672
|
+
*/
|
|
673
|
+
export declare const all_admin_action_specs: Array<RequestResponseActionSpec>;
|
|
674
|
+
//# sourceMappingURL=admin_action_specs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin_action_specs.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/admin_action_specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,2BAA2B,CAAC;AAezE,sEAAsE;AACtE,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAI5C,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,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