@maudecode/talaria-web-contracts 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/index.d.ts +14 -0
  2. package/dist/index.js +15 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/openapi.d.ts +7 -0
  5. package/dist/openapi.js +29 -0
  6. package/dist/openapi.js.map +1 -0
  7. package/dist/router.d.ts +4772 -0
  8. package/dist/router.js +25 -0
  9. package/dist/router.js.map +1 -0
  10. package/dist/routes/automation.d.ts +794 -0
  11. package/dist/routes/automation.js +70 -0
  12. package/dist/routes/automation.js.map +1 -0
  13. package/dist/routes/chat.d.ts +382 -0
  14. package/dist/routes/chat.js +33 -0
  15. package/dist/routes/chat.js.map +1 -0
  16. package/dist/routes/core.d.ts +400 -0
  17. package/dist/routes/core.js +128 -0
  18. package/dist/routes/core.js.map +1 -0
  19. package/dist/routes/git.d.ts +785 -0
  20. package/dist/routes/git.js +62 -0
  21. package/dist/routes/git.js.map +1 -0
  22. package/dist/routes/raw.d.ts +24 -0
  23. package/dist/routes/raw.js +107 -0
  24. package/dist/routes/raw.js.map +1 -0
  25. package/dist/routes/sessions.d.ts +1621 -0
  26. package/dist/routes/sessions.js +75 -0
  27. package/dist/routes/sessions.js.map +1 -0
  28. package/dist/routes/settings.d.ts +590 -0
  29. package/dist/routes/settings.js +57 -0
  30. package/dist/routes/settings.js.map +1 -0
  31. package/dist/routes/tools.d.ts +482 -0
  32. package/dist/routes/tools.js +65 -0
  33. package/dist/routes/tools.js.map +1 -0
  34. package/dist/routes/workspaces.d.ts +161 -0
  35. package/dist/routes/workspaces.js +31 -0
  36. package/dist/routes/workspaces.js.map +1 -0
  37. package/dist/sidecar/index.d.ts +5 -0
  38. package/dist/sidecar/index.js +6 -0
  39. package/dist/sidecar/index.js.map +1 -0
  40. package/dist/sidecar/methods.d.ts +1544 -0
  41. package/dist/sidecar/methods.js +38 -0
  42. package/dist/sidecar/methods.js.map +1 -0
  43. package/dist/sidecar/namespaces.d.ts +1766 -0
  44. package/dist/sidecar/namespaces.js +239 -0
  45. package/dist/sidecar/namespaces.js.map +1 -0
  46. package/dist/sidecar/rpc.d.ts +96 -0
  47. package/dist/sidecar/rpc.js +49 -0
  48. package/dist/sidecar/rpc.js.map +1 -0
  49. package/dist/sidecar/runtime.d.ts +53 -0
  50. package/dist/sidecar/runtime.js +29 -0
  51. package/dist/sidecar/runtime.js.map +1 -0
  52. package/dist/sidecar/version.d.ts +6 -0
  53. package/dist/sidecar/version.js +7 -0
  54. package/dist/sidecar/version.js.map +1 -0
  55. package/dist/sse.d.ts +335 -0
  56. package/dist/sse.js +91 -0
  57. package/dist/sse.js.map +1 -0
  58. package/dist/views.d.ts +2200 -0
  59. package/dist/views.js +249 -0
  60. package/dist/views.js.map +1 -0
  61. package/fixtures/sidecar/aux.json +14 -0
  62. package/fixtures/sidecar/commands.json +1232 -0
  63. package/fixtures/sidecar/config.json +15 -0
  64. package/fixtures/sidecar/cron.json +503 -0
  65. package/fixtures/sidecar/goals.json +164 -0
  66. package/fixtures/sidecar/kanban.json +952 -0
  67. package/fixtures/sidecar/mcp.json +22 -0
  68. package/fixtures/sidecar/models.json +63 -0
  69. package/fixtures/sidecar/plugins.json +1069 -0
  70. package/fixtures/sidecar/process.json +58 -0
  71. package/fixtures/sidecar/profiles.json +82 -0
  72. package/fixtures/sidecar/providers.json +1201 -0
  73. package/fixtures/sidecar/rpc.json +120 -0
  74. package/fixtures/sidecar/runtime.json +75 -0
  75. package/fixtures/sidecar/skills.json +490 -0
  76. package/fixtures/sidecar/state_db.json +61 -0
  77. package/fixtures/sidecar/stt.json +13 -0
  78. package/fixtures/sidecar/text.json +41 -0
  79. package/package.json +49 -0
@@ -0,0 +1,400 @@
1
+ import { z } from 'zod';
2
+ export declare const ErrorBodySchema: z.ZodObject<{
3
+ error: z.ZodString;
4
+ }, z.core.$catchall<z.ZodUnknown>>;
5
+ export type ErrorBody = z.infer<typeof ErrorBodySchema>;
6
+ export declare const AuthStatusSchema: z.ZodObject<{
7
+ auth_enabled: z.ZodBoolean;
8
+ logged_in: z.ZodBoolean;
9
+ oidc_enabled: z.ZodBoolean;
10
+ oidc_native_handoff_enabled: z.ZodBoolean;
11
+ password_auth_enabled: z.ZodBoolean;
12
+ passwordless_enabled: z.ZodBoolean;
13
+ passkeys_enabled: z.ZodBoolean;
14
+ passkeys_count: z.ZodNumber;
15
+ passkey_feature_flag: z.ZodBoolean;
16
+ auth_disabled_acknowledged: z.ZodBoolean;
17
+ can_manage_server: z.ZodBoolean;
18
+ trusted_auth_enabled: z.ZodOptional<z.ZodBoolean>;
19
+ auth_type: z.ZodOptional<z.ZodString>;
20
+ user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ bound_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>;
23
+ export type AuthStatus = z.infer<typeof AuthStatusSchema>;
24
+ export declare const BootstrapFeaturesSchema: z.ZodObject<{
25
+ dashboard: z.ZodBoolean;
26
+ terminal_remote_backend: z.ZodBoolean;
27
+ extensions: z.ZodBoolean;
28
+ single_profile_mode: z.ZodBoolean;
29
+ }, z.core.$strip>;
30
+ export type BootstrapFeatures = z.infer<typeof BootstrapFeaturesSchema>;
31
+ export declare const BootstrapSchema: z.ZodObject<{
32
+ webui_version: z.ZodString;
33
+ max_upload_bytes: z.ZodNumber;
34
+ csrf_token: z.ZodString;
35
+ language: z.ZodString;
36
+ bot_name: z.ZodString;
37
+ auth: z.ZodObject<{
38
+ auth_enabled: z.ZodBoolean;
39
+ logged_in: z.ZodBoolean;
40
+ oidc_enabled: z.ZodBoolean;
41
+ oidc_native_handoff_enabled: z.ZodBoolean;
42
+ password_auth_enabled: z.ZodBoolean;
43
+ passwordless_enabled: z.ZodBoolean;
44
+ passkeys_enabled: z.ZodBoolean;
45
+ passkeys_count: z.ZodNumber;
46
+ passkey_feature_flag: z.ZodBoolean;
47
+ auth_disabled_acknowledged: z.ZodBoolean;
48
+ can_manage_server: z.ZodBoolean;
49
+ trusted_auth_enabled: z.ZodOptional<z.ZodBoolean>;
50
+ auth_type: z.ZodOptional<z.ZodString>;
51
+ user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ bound_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ }, z.core.$strip>;
54
+ profile: z.ZodNullable<z.ZodObject<{
55
+ name: z.ZodString;
56
+ is_default: z.ZodBoolean;
57
+ }, z.core.$strip>>;
58
+ onboarding: z.ZodNullable<z.ZodObject<{
59
+ completed: z.ZodBoolean;
60
+ }, z.core.$strip>>;
61
+ features: z.ZodObject<{
62
+ dashboard: z.ZodBoolean;
63
+ terminal_remote_backend: z.ZodBoolean;
64
+ extensions: z.ZodBoolean;
65
+ single_profile_mode: z.ZodBoolean;
66
+ }, z.core.$strip>;
67
+ }, z.core.$strip>;
68
+ export type Bootstrap = z.infer<typeof BootstrapSchema>;
69
+ /** `<webRoot>/_release.json` as written by `scripts/stamp-release.py`; a development checkout reports nulls. */
70
+ export declare const ReleaseInfoSchema: z.ZodObject<{
71
+ tag: z.ZodNullable<z.ZodString>;
72
+ version: z.ZodString;
73
+ sourceRevision: z.ZodNullable<z.ZodString>;
74
+ releaseSet: z.ZodNullable<z.ZodString>;
75
+ contracts: z.ZodObject<{
76
+ appWeb: z.ZodArray<z.ZodNumber>;
77
+ webRelay: z.ZodArray<z.ZodNumber>;
78
+ }, z.core.$strip>;
79
+ compatibleAgent: z.ZodObject<{
80
+ sourceRevision: z.ZodString;
81
+ version: z.ZodString;
82
+ image: z.ZodString;
83
+ }, z.core.$catchall<z.ZodUnknown>>;
84
+ }, z.core.$strip>;
85
+ export type ReleaseInfo = z.infer<typeof ReleaseInfoSchema>;
86
+ export declare const HealthSchema: z.ZodObject<{
87
+ release: z.ZodObject<{
88
+ tag: z.ZodNullable<z.ZodString>;
89
+ version: z.ZodString;
90
+ sourceRevision: z.ZodNullable<z.ZodString>;
91
+ releaseSet: z.ZodNullable<z.ZodString>;
92
+ contracts: z.ZodObject<{
93
+ appWeb: z.ZodArray<z.ZodNumber>;
94
+ webRelay: z.ZodArray<z.ZodNumber>;
95
+ }, z.core.$strip>;
96
+ compatibleAgent: z.ZodObject<{
97
+ sourceRevision: z.ZodString;
98
+ version: z.ZodString;
99
+ image: z.ZodString;
100
+ }, z.core.$catchall<z.ZodUnknown>>;
101
+ }, z.core.$strip>;
102
+ status: z.ZodEnum<{
103
+ ok: "ok";
104
+ degraded: "degraded";
105
+ starting: "starting";
106
+ }>;
107
+ phase: z.ZodOptional<z.ZodString>;
108
+ sessions: z.ZodNumber;
109
+ active_streams: z.ZodNumber;
110
+ active_runs: z.ZodNumber;
111
+ runs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
+ last_run_finished_at: z.ZodNullable<z.ZodNumber>;
113
+ server_started_at: z.ZodNumber;
114
+ uptime_seconds: z.ZodNumber;
115
+ accept_loop: z.ZodObject<{
116
+ requests_total: z.ZodNumber;
117
+ last_request_at: z.ZodNumber;
118
+ }, z.core.$strip>;
119
+ checks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
120
+ }, z.core.$strip>;
121
+ export type Health = z.infer<typeof HealthSchema>;
122
+ export declare const LoginRequestSchema: z.ZodObject<{
123
+ password: z.ZodOptional<z.ZodString>;
124
+ }, z.core.$strip>;
125
+ export declare const LogoutResponseSchema: z.ZodObject<{
126
+ ok: z.ZodLiteral<true>;
127
+ trusted_logout_url: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$strip>;
129
+ export declare const OidcNativeStartRequestSchema: z.ZodObject<{
130
+ callback_url: z.ZodString;
131
+ state: z.ZodString;
132
+ code_challenge: z.ZodString;
133
+ code_challenge_method: z.ZodString;
134
+ }, z.core.$strip>;
135
+ export declare const OidcNativeStartResponseSchema: z.ZodObject<{
136
+ flow_id: z.ZodString;
137
+ authorization_url: z.ZodString;
138
+ server_id: z.ZodString;
139
+ expires_in: z.ZodNumber;
140
+ }, z.core.$strip>;
141
+ export declare const OidcNativeExchangeRequestSchema: z.ZodObject<{
142
+ flow_id: z.ZodString;
143
+ code: z.ZodString;
144
+ state: z.ZodString;
145
+ code_verifier: z.ZodString;
146
+ }, z.core.$strip>;
147
+ export declare const OidcNativeCancelRequestSchema: z.ZodObject<{
148
+ flow_id: z.ZodString;
149
+ state: z.ZodString;
150
+ }, z.core.$strip>;
151
+ /** WebAuthn options are handed to the browser verbatim (`PublicKeyCredentialCreationOptions` / `RequestOptions` with base64url binaries). */
152
+ export declare const PasskeyOptionsResponseSchema: z.ZodObject<{
153
+ ok: z.ZodLiteral<true>;
154
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
155
+ }, z.core.$strip>;
156
+ export declare const PasskeyCredentialSchema: z.ZodObject<{
157
+ id: z.ZodString;
158
+ label: z.ZodString;
159
+ created_at: z.ZodNumber;
160
+ last_used_at: z.ZodNullable<z.ZodNumber>;
161
+ sign_count: z.ZodNumber;
162
+ }, z.core.$strip>;
163
+ export type PasskeyCredential = z.infer<typeof PasskeyCredentialSchema>;
164
+ /** A serialised `PublicKeyCredential` (`id`, `rawId`, `type`, `response.{clientDataJSON,attestationObject|authenticatorData,signature}`), plus an optional `label` on register (the Python field; the frontend's `name` is reconciled in checkpoint 8). */
165
+ export declare const PasskeyAssertionSchema: z.ZodObject<{
166
+ id: z.ZodOptional<z.ZodString>;
167
+ rawId: z.ZodOptional<z.ZodString>;
168
+ type: z.ZodOptional<z.ZodString>;
169
+ name: z.ZodOptional<z.ZodString>;
170
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
171
+ }, z.core.$catchall<z.ZodUnknown>>;
172
+ export declare const PasskeyRegisterResponseSchema: z.ZodObject<{
173
+ ok: z.ZodLiteral<true>;
174
+ credential: z.ZodObject<{
175
+ id: z.ZodString;
176
+ label: z.ZodString;
177
+ }, z.core.$strip>;
178
+ credentials: z.ZodArray<z.ZodObject<{
179
+ id: z.ZodString;
180
+ label: z.ZodString;
181
+ created_at: z.ZodNumber;
182
+ last_used_at: z.ZodNullable<z.ZodNumber>;
183
+ sign_count: z.ZodNumber;
184
+ }, z.core.$strip>>;
185
+ }, z.core.$strip>;
186
+ export declare const PasskeyLoginResponseSchema: z.ZodObject<{
187
+ ok: z.ZodLiteral<true>;
188
+ }, z.core.$strip>;
189
+ export declare const PasskeyDeleteRequestSchema: z.ZodObject<{
190
+ id: z.ZodString;
191
+ }, z.core.$strip>;
192
+ export declare const PasskeyDeleteResponseSchema: z.ZodObject<{
193
+ ok: z.ZodLiteral<true>;
194
+ credentials: z.ZodArray<z.ZodObject<{
195
+ id: z.ZodString;
196
+ label: z.ZodString;
197
+ created_at: z.ZodNumber;
198
+ last_used_at: z.ZodNullable<z.ZodNumber>;
199
+ sign_count: z.ZodNumber;
200
+ }, z.core.$strip>>;
201
+ }, z.core.$strip>;
202
+ export declare const PasskeysListSchema: z.ZodObject<{
203
+ credentials: z.ZodArray<z.ZodObject<{
204
+ id: z.ZodString;
205
+ label: z.ZodString;
206
+ created_at: z.ZodNumber;
207
+ last_used_at: z.ZodNullable<z.ZodNumber>;
208
+ sign_count: z.ZodNumber;
209
+ }, z.core.$strip>>;
210
+ disabled: z.ZodOptional<z.ZodBoolean>;
211
+ }, z.core.$strip>;
212
+ export declare const coreContract: {
213
+ health: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
214
+ deep: z.ZodOptional<z.ZodString>;
215
+ }, z.core.$strip>, z.ZodObject<{
216
+ release: z.ZodObject<{
217
+ tag: z.ZodNullable<z.ZodString>;
218
+ version: z.ZodString;
219
+ sourceRevision: z.ZodNullable<z.ZodString>;
220
+ releaseSet: z.ZodNullable<z.ZodString>;
221
+ contracts: z.ZodObject<{
222
+ appWeb: z.ZodArray<z.ZodNumber>;
223
+ webRelay: z.ZodArray<z.ZodNumber>;
224
+ }, z.core.$strip>;
225
+ compatibleAgent: z.ZodObject<{
226
+ sourceRevision: z.ZodString;
227
+ version: z.ZodString;
228
+ image: z.ZodString;
229
+ }, z.core.$catchall<z.ZodUnknown>>;
230
+ }, z.core.$strip>;
231
+ status: z.ZodEnum<{
232
+ ok: "ok";
233
+ degraded: "degraded";
234
+ starting: "starting";
235
+ }>;
236
+ phase: z.ZodOptional<z.ZodString>;
237
+ sessions: z.ZodNumber;
238
+ active_streams: z.ZodNumber;
239
+ active_runs: z.ZodNumber;
240
+ runs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
+ last_run_finished_at: z.ZodNullable<z.ZodNumber>;
242
+ server_started_at: z.ZodNumber;
243
+ uptime_seconds: z.ZodNumber;
244
+ accept_loop: z.ZodObject<{
245
+ requests_total: z.ZodNumber;
246
+ last_request_at: z.ZodNumber;
247
+ }, z.core.$strip>;
248
+ checks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
249
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
250
+ bootstrap: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
251
+ webui_version: z.ZodString;
252
+ max_upload_bytes: z.ZodNumber;
253
+ csrf_token: z.ZodString;
254
+ language: z.ZodString;
255
+ bot_name: z.ZodString;
256
+ auth: z.ZodObject<{
257
+ auth_enabled: z.ZodBoolean;
258
+ logged_in: z.ZodBoolean;
259
+ oidc_enabled: z.ZodBoolean;
260
+ oidc_native_handoff_enabled: z.ZodBoolean;
261
+ password_auth_enabled: z.ZodBoolean;
262
+ passwordless_enabled: z.ZodBoolean;
263
+ passkeys_enabled: z.ZodBoolean;
264
+ passkeys_count: z.ZodNumber;
265
+ passkey_feature_flag: z.ZodBoolean;
266
+ auth_disabled_acknowledged: z.ZodBoolean;
267
+ can_manage_server: z.ZodBoolean;
268
+ trusted_auth_enabled: z.ZodOptional<z.ZodBoolean>;
269
+ auth_type: z.ZodOptional<z.ZodString>;
270
+ user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
+ bound_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
272
+ }, z.core.$strip>;
273
+ profile: z.ZodNullable<z.ZodObject<{
274
+ name: z.ZodString;
275
+ is_default: z.ZodBoolean;
276
+ }, z.core.$strip>>;
277
+ onboarding: z.ZodNullable<z.ZodObject<{
278
+ completed: z.ZodBoolean;
279
+ }, z.core.$strip>>;
280
+ features: z.ZodObject<{
281
+ dashboard: z.ZodBoolean;
282
+ terminal_remote_backend: z.ZodBoolean;
283
+ extensions: z.ZodBoolean;
284
+ single_profile_mode: z.ZodBoolean;
285
+ }, z.core.$strip>;
286
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
287
+ auth: {
288
+ status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
289
+ auth_enabled: z.ZodBoolean;
290
+ logged_in: z.ZodBoolean;
291
+ oidc_enabled: z.ZodBoolean;
292
+ oidc_native_handoff_enabled: z.ZodBoolean;
293
+ password_auth_enabled: z.ZodBoolean;
294
+ passwordless_enabled: z.ZodBoolean;
295
+ passkeys_enabled: z.ZodBoolean;
296
+ passkeys_count: z.ZodNumber;
297
+ passkey_feature_flag: z.ZodBoolean;
298
+ auth_disabled_acknowledged: z.ZodBoolean;
299
+ can_manage_server: z.ZodBoolean;
300
+ trusted_auth_enabled: z.ZodOptional<z.ZodBoolean>;
301
+ auth_type: z.ZodOptional<z.ZodString>;
302
+ user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ bound_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
305
+ login: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
306
+ password: z.ZodOptional<z.ZodString>;
307
+ }, z.core.$strip>, z.ZodObject<{
308
+ ok: z.ZodLiteral<true>;
309
+ message: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$loose>, Record<never, never>, Record<never, never>>;
311
+ logout: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
312
+ ok: z.ZodLiteral<true>;
313
+ trusted_logout_url: z.ZodOptional<z.ZodString>;
314
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
315
+ oidcNativeStart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
316
+ callback_url: z.ZodString;
317
+ state: z.ZodString;
318
+ code_challenge: z.ZodString;
319
+ code_challenge_method: z.ZodString;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ flow_id: z.ZodString;
322
+ authorization_url: z.ZodString;
323
+ server_id: z.ZodString;
324
+ expires_in: z.ZodNumber;
325
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
326
+ oidcNativeExchange: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
327
+ flow_id: z.ZodString;
328
+ code: z.ZodString;
329
+ state: z.ZodString;
330
+ code_verifier: z.ZodString;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ ok: z.ZodLiteral<true>;
333
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
334
+ oidcNativeCancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
335
+ flow_id: z.ZodString;
336
+ state: z.ZodString;
337
+ }, z.core.$strip>, z.ZodObject<{
338
+ ok: z.ZodBoolean;
339
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
340
+ passkeyOptions: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
341
+ ok: z.ZodLiteral<true>;
342
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
343
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
344
+ passkeyLogin: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
345
+ id: z.ZodOptional<z.ZodString>;
346
+ rawId: z.ZodOptional<z.ZodString>;
347
+ type: z.ZodOptional<z.ZodString>;
348
+ name: z.ZodOptional<z.ZodString>;
349
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
350
+ }, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
351
+ ok: z.ZodLiteral<true>;
352
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
353
+ passkeyRegisterOptions: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
354
+ ok: z.ZodLiteral<true>;
355
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
356
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
357
+ passkeyRegister: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
358
+ id: z.ZodOptional<z.ZodString>;
359
+ rawId: z.ZodOptional<z.ZodString>;
360
+ type: z.ZodOptional<z.ZodString>;
361
+ name: z.ZodOptional<z.ZodString>;
362
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
363
+ }, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
364
+ ok: z.ZodLiteral<true>;
365
+ credential: z.ZodObject<{
366
+ id: z.ZodString;
367
+ label: z.ZodString;
368
+ }, z.core.$strip>;
369
+ credentials: z.ZodArray<z.ZodObject<{
370
+ id: z.ZodString;
371
+ label: z.ZodString;
372
+ created_at: z.ZodNumber;
373
+ last_used_at: z.ZodNullable<z.ZodNumber>;
374
+ sign_count: z.ZodNumber;
375
+ }, z.core.$strip>>;
376
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
377
+ passkeyDelete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
378
+ id: z.ZodString;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ ok: z.ZodLiteral<true>;
381
+ credentials: z.ZodArray<z.ZodObject<{
382
+ id: z.ZodString;
383
+ label: z.ZodString;
384
+ created_at: z.ZodNumber;
385
+ last_used_at: z.ZodNullable<z.ZodNumber>;
386
+ sign_count: z.ZodNumber;
387
+ }, z.core.$strip>>;
388
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
389
+ passkeys: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
390
+ credentials: z.ZodArray<z.ZodObject<{
391
+ id: z.ZodString;
392
+ label: z.ZodString;
393
+ created_at: z.ZodNumber;
394
+ last_used_at: z.ZodNullable<z.ZodNumber>;
395
+ sign_count: z.ZodNumber;
396
+ }, z.core.$strip>>;
397
+ disabled: z.ZodOptional<z.ZodBoolean>;
398
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
399
+ };
400
+ };
@@ -0,0 +1,128 @@
1
+ import { oc } from '@orpc/contract';
2
+ import { z } from 'zod';
3
+ import { LoginResponseSchema } from '../views.js';
4
+ /**
5
+ * Core routes: liveness, the public bootstrap document, and password
6
+ * sessions. Shapes mirror the Python backend byte for byte where a consumer
7
+ * (frontend `BootstrapSchema`, iOS app, `ctl` scripts) reads them.
8
+ */
9
+ const NullableString = z.string().nullable();
10
+ export const ErrorBodySchema = z.object({ error: z.string() }).catchall(z.unknown());
11
+ export const AuthStatusSchema = z.object({
12
+ auth_enabled: z.boolean(),
13
+ logged_in: z.boolean(),
14
+ oidc_enabled: z.boolean(),
15
+ oidc_native_handoff_enabled: z.boolean(),
16
+ password_auth_enabled: z.boolean(),
17
+ passwordless_enabled: z.boolean(),
18
+ passkeys_enabled: z.boolean(),
19
+ passkeys_count: z.number().int(),
20
+ passkey_feature_flag: z.boolean(),
21
+ auth_disabled_acknowledged: z.boolean(),
22
+ can_manage_server: z.boolean(),
23
+ trusted_auth_enabled: z.boolean().optional(),
24
+ auth_type: z.string().optional(),
25
+ user: NullableString.optional(),
26
+ bound_profile: NullableString.optional(),
27
+ });
28
+ export const BootstrapFeaturesSchema = z.object({
29
+ dashboard: z.boolean(),
30
+ terminal_remote_backend: z.boolean(),
31
+ extensions: z.boolean(),
32
+ single_profile_mode: z.boolean(),
33
+ });
34
+ export const BootstrapSchema = z.object({
35
+ webui_version: z.string(),
36
+ max_upload_bytes: z.number().int().positive(),
37
+ csrf_token: z.string(),
38
+ language: z.string(),
39
+ bot_name: z.string(),
40
+ auth: AuthStatusSchema,
41
+ profile: z.object({ name: z.string(), is_default: z.boolean() }).nullable(),
42
+ onboarding: z.object({ completed: z.boolean() }).nullable(),
43
+ features: BootstrapFeaturesSchema,
44
+ });
45
+ const Sha1 = z.string().regex(/^[a-f0-9]{40}$/);
46
+ /** `<webRoot>/_release.json` as written by `scripts/stamp-release.py`; a development checkout reports nulls. */
47
+ export const ReleaseInfoSchema = z.object({
48
+ tag: z.string().nullable(),
49
+ version: z.string(),
50
+ sourceRevision: Sha1.nullable(),
51
+ releaseSet: Sha1.nullable(),
52
+ contracts: z.object({ appWeb: z.array(z.number().int()), webRelay: z.array(z.number().int()) }),
53
+ compatibleAgent: z.object({ sourceRevision: Sha1, version: z.string(), image: z.string() }).catchall(z.unknown()),
54
+ });
55
+ export const HealthSchema = z.object({
56
+ release: ReleaseInfoSchema,
57
+ status: z.enum(['ok', 'degraded', 'starting']),
58
+ phase: z.string().optional(),
59
+ sessions: z.number().int(),
60
+ active_streams: z.number().int(),
61
+ active_runs: z.number().int(),
62
+ runs: z.array(z.record(z.string(), z.unknown())),
63
+ last_run_finished_at: z.number().nullable(),
64
+ server_started_at: z.number(),
65
+ uptime_seconds: z.number(),
66
+ accept_loop: z.object({ requests_total: z.number().int(), last_request_at: z.number() }),
67
+ checks: z.record(z.string(), z.unknown()).optional(),
68
+ });
69
+ export const LoginRequestSchema = z.object({ password: z.string().optional() });
70
+ export const LogoutResponseSchema = z.object({ ok: z.literal(true), trusted_logout_url: z.string().optional() });
71
+ export const OidcNativeStartRequestSchema = z.object({ callback_url: z.string(), state: z.string(), code_challenge: z.string(), code_challenge_method: z.string() });
72
+ export const OidcNativeStartResponseSchema = z.object({ flow_id: z.string(), authorization_url: z.string(), server_id: z.string(), expires_in: z.number().int() });
73
+ export const OidcNativeExchangeRequestSchema = z.object({ flow_id: z.string(), code: z.string(), state: z.string(), code_verifier: z.string() });
74
+ export const OidcNativeCancelRequestSchema = z.object({ flow_id: z.string(), state: z.string() });
75
+ const AuthOkSchema = z.object({ ok: z.literal(true) });
76
+ const OkFlagSchema = z.object({ ok: z.boolean() });
77
+ /** WebAuthn options are handed to the browser verbatim (`PublicKeyCredentialCreationOptions` / `RequestOptions` with base64url binaries). */
78
+ export const PasskeyOptionsResponseSchema = z.object({ ok: z.literal(true), publicKey: z.record(z.string(), z.unknown()) });
79
+ export const PasskeyCredentialSchema = z.object({ id: z.string(), label: z.string(), created_at: z.number(), last_used_at: z.number().nullable(), sign_count: z.number().int() });
80
+ /** A serialised `PublicKeyCredential` (`id`, `rawId`, `type`, `response.{clientDataJSON,attestationObject|authenticatorData,signature}`), plus an optional `label` on register (the Python field; the frontend's `name` is reconciled in checkpoint 8). */
81
+ export const PasskeyAssertionSchema = z.object({ id: z.string().optional(), rawId: z.string().optional(), type: z.string().optional(), name: z.string().optional(), response: z.record(z.string(), z.unknown()).optional() }).catchall(z.unknown());
82
+ export const PasskeyRegisterResponseSchema = z.object({ ok: z.literal(true), credential: z.object({ id: z.string(), label: z.string() }), credentials: z.array(PasskeyCredentialSchema) });
83
+ export const PasskeyLoginResponseSchema = z.object({ ok: z.literal(true) });
84
+ export const PasskeyDeleteRequestSchema = z.object({ id: z.string() });
85
+ export const PasskeyDeleteResponseSchema = z.object({ ok: z.literal(true), credentials: z.array(PasskeyCredentialSchema) });
86
+ export const PasskeysListSchema = z.object({ credentials: z.array(PasskeyCredentialSchema), disabled: z.boolean().optional() });
87
+ export const coreContract = {
88
+ health: oc
89
+ .route({ method: 'GET', path: '/health', tags: ['core'], summary: 'Liveness and release identity; `deep=1` adds startup and store probes.' })
90
+ .input(z.object({ deep: z.string().optional() }))
91
+ .output(HealthSchema),
92
+ bootstrap: oc
93
+ .route({ method: 'GET', path: '/api/bootstrap', tags: ['core'], summary: 'Public runtime configuration and initial state for the shell.' })
94
+ .output(BootstrapSchema),
95
+ auth: {
96
+ status: oc.route({ method: 'GET', path: '/api/auth/status', tags: ['auth'] }).output(AuthStatusSchema),
97
+ login: oc.route({ method: 'POST', path: '/api/auth/login', tags: ['auth'] }).input(LoginRequestSchema).output(LoginResponseSchema),
98
+ logout: oc.route({ method: 'POST', path: '/api/auth/logout', tags: ['auth'] }).output(LogoutResponseSchema),
99
+ oidcNativeStart: oc
100
+ .route({ method: 'POST', path: '/api/auth/oidc/native/start', tags: ['auth'], summary: 'Begin a native-app OIDC handoff (S256 PKCE, rate limited per client IP).' })
101
+ .input(OidcNativeStartRequestSchema).output(OidcNativeStartResponseSchema),
102
+ oidcNativeExchange: oc
103
+ .route({ method: 'POST', path: '/api/auth/oidc/native/exchange', tags: ['auth'], summary: 'Redeem the one-time native handoff code for a session cookie.' })
104
+ .input(OidcNativeExchangeRequestSchema).output(AuthOkSchema),
105
+ oidcNativeCancel: oc
106
+ .route({ method: 'POST', path: '/api/auth/oidc/native/cancel', tags: ['auth'], summary: 'Abandon a pending native handoff.' })
107
+ .input(OidcNativeCancelRequestSchema).output(OkFlagSchema),
108
+ passkeyOptions: oc
109
+ .route({ method: 'POST', path: '/api/auth/passkey/options', tags: ['auth'], summary: 'WebAuthn assertion options for login (public; CSRF exempt).' })
110
+ .output(PasskeyOptionsResponseSchema),
111
+ passkeyLogin: oc
112
+ .route({ method: 'POST', path: '/api/auth/passkey/login', tags: ['auth'], summary: 'Verify a passkey assertion and start a session (public; CSRF exempt).' })
113
+ .input(PasskeyAssertionSchema).output(PasskeyLoginResponseSchema),
114
+ passkeyRegisterOptions: oc
115
+ .route({ method: 'POST', path: '/api/auth/passkey/register/options', tags: ['auth'], summary: 'WebAuthn creation options (owner session or local first-run bootstrap).' })
116
+ .output(PasskeyOptionsResponseSchema),
117
+ passkeyRegister: oc
118
+ .route({ method: 'POST', path: '/api/auth/passkey/register', tags: ['auth'], summary: 'Store a new ES256 passkey credential.' })
119
+ .input(PasskeyAssertionSchema).output(PasskeyRegisterResponseSchema),
120
+ passkeyDelete: oc
121
+ .route({ method: 'POST', path: '/api/auth/passkey/delete', tags: ['auth'], summary: 'Remove a passkey; the last one is kept while no password is set (409).' })
122
+ .input(PasskeyDeleteRequestSchema).output(PasskeyDeleteResponseSchema),
123
+ passkeys: oc
124
+ .route({ method: 'GET', path: '/api/auth/passkeys', tags: ['auth'], summary: 'Registered passkey metadata (`disabled: true` when the feature flag is off).' })
125
+ .output(PasskeysListSchema),
126
+ },
127
+ };
128
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/routes/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD;;;;GAIG;AAEH,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAA;AAE5C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;AAGpF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,2BAA2B,EAAE,CAAC,CAAC,OAAO,EAAE;IACxC,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE;IAClC,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE;IACjC,gBAAgB,EAAE,CA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