@spencerboucher/switchyard-client 0.0.0-stage → 0.14.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.
@@ -0,0 +1,1463 @@
1
+ import { z } from "zod";
2
+ import { Task } from "./entities.js";
3
+ /** REST request bodies. Responses return entities from `entities.ts` unless noted. */
4
+ export declare const EnrollRequest: z.ZodObject<{
5
+ token: z.ZodString;
6
+ name: z.ZodString;
7
+ kind: z.ZodEnum<{
8
+ browser: "browser";
9
+ cli: "cli";
10
+ pwa: "pwa";
11
+ terminal: "terminal";
12
+ }>;
13
+ }, z.core.$strip>;
14
+ export declare const EnrollResponse: z.ZodObject<{
15
+ deviceId: z.ZodString;
16
+ credential: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export declare const CreateEnrollmentRequest: z.ZodObject<{
19
+ kind: z.ZodEnum<{
20
+ device: "device";
21
+ host: "host";
22
+ }>;
23
+ }, z.core.$strip>;
24
+ export declare const CreateEnrollmentResponse: z.ZodObject<{
25
+ token: z.ZodString;
26
+ url: z.ZodString;
27
+ expiresAt: z.ZodString;
28
+ qrSvg: z.ZodString;
29
+ command: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>;
31
+ export type CreateEnrollmentResponse = z.infer<typeof CreateEnrollmentResponse>;
32
+ export declare const HostEnrollRequest: z.ZodUnion<readonly [z.ZodObject<{
33
+ token: z.ZodString;
34
+ name: z.ZodString;
35
+ platform: z.ZodEnum<{
36
+ darwin: "darwin";
37
+ linux: "linux";
38
+ }>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ secret: z.ZodString;
41
+ name: z.ZodString;
42
+ platform: z.ZodEnum<{
43
+ darwin: "darwin";
44
+ linux: "linux";
45
+ }>;
46
+ }, z.core.$strip>]>;
47
+ export declare const HostEnrollResponse: z.ZodObject<{
48
+ hostId: z.ZodString;
49
+ credential: z.ZodString;
50
+ }, z.core.$strip>;
51
+ export declare const CreateProjectRequest: z.ZodObject<{
52
+ name: z.ZodString;
53
+ hostId: z.ZodString;
54
+ path: z.ZodString;
55
+ defaultProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ setupCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ checks: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ maxConcurrentRuns: z.ZodOptional<z.ZodNumber>;
59
+ worktreeDir: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strip>;
61
+ export declare const UpdateProjectRequest: z.ZodObject<{
62
+ name: z.ZodOptional<z.ZodString>;
63
+ defaultProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ defaultHostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ maxConcurrentRuns: z.ZodOptional<z.ZodNumber>;
66
+ automationEnabled: z.ZodOptional<z.ZodBoolean>;
67
+ setupCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ checks: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
+ workspaceSharing: z.ZodOptional<z.ZodEnum<{
70
+ shared: "shared";
71
+ single_writer: "single_writer";
72
+ }>>;
73
+ worktreeDir: z.ZodOptional<z.ZodString>;
74
+ }, z.core.$strip>;
75
+ export declare const AddCheckoutRequest: z.ZodObject<{
76
+ hostId: z.ZodString;
77
+ path: z.ZodString;
78
+ }, z.core.$strip>;
79
+ /** A host project folder: absolute, or relative to the host user's home with `~`. */
80
+ export declare function isProjectFolderPath(s: string): boolean;
81
+ export declare const ProjectFolder: z.ZodString;
82
+ export declare const UpdateHostRequest: z.ZodObject<{
83
+ projectFolders: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
+ }, z.core.$strip>;
85
+ export declare const ProjectScanResult: z.ZodObject<{
86
+ state: z.ZodEnum<{
87
+ done: "done";
88
+ failed: "failed";
89
+ running: "running";
90
+ }>;
91
+ startedAt: z.ZodString;
92
+ finishedAt: z.ZodNullable<z.ZodString>;
93
+ repositories: z.ZodNumber;
94
+ projectsCreated: z.ZodNumber;
95
+ checkoutsAdded: z.ZodNumber;
96
+ errors: z.ZodArray<z.ZodString>;
97
+ added: z.ZodArray<z.ZodObject<{
98
+ projectId: z.ZodString;
99
+ name: z.ZodString;
100
+ path: z.ZodString;
101
+ newProject: z.ZodBoolean;
102
+ }, z.core.$strip>>;
103
+ }, z.core.$strip>;
104
+ export type ProjectScanResult = z.infer<typeof ProjectScanResult>;
105
+ export declare const ProfileInput: z.ZodObject<{
106
+ name: z.ZodString;
107
+ provider: z.ZodDefault<z.ZodNullable<z.ZodString>>;
108
+ model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
109
+ thinking: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
110
+ high: "high";
111
+ low: "low";
112
+ max: "max";
113
+ medium: "medium";
114
+ minimal: "minimal";
115
+ off: "off";
116
+ xhigh: "xhigh";
117
+ }>>>;
118
+ projectTrust: z.ZodDefault<z.ZodEnum<{
119
+ approve: "approve";
120
+ ask: "ask";
121
+ ignore: "ignore";
122
+ }>>;
123
+ extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
124
+ resources: z.ZodDefault<z.ZodEnum<{
125
+ all: "all";
126
+ vanilla: "vanilla";
127
+ }>>;
128
+ }, z.core.$strip>;
129
+ export declare const CreateWorkspaceRequest: z.ZodObject<{
130
+ checkoutId: z.ZodString;
131
+ branch: z.ZodString;
132
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ }, z.core.$strip>;
134
+ export declare const RemoveWorkspaceRequest: z.ZodObject<{
135
+ force: z.ZodDefault<z.ZodObject<{
136
+ dirty: z.ZodBoolean;
137
+ unmerged: z.ZodBoolean;
138
+ }, z.core.$strip>>;
139
+ }, z.core.$strip>;
140
+ export declare const CreateSessionRequest: z.ZodObject<{
141
+ projectId: z.ZodString;
142
+ workspace: z.ZodUnion<readonly [z.ZodObject<{
143
+ existingId: z.ZodString;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ checkoutId: z.ZodString;
146
+ newBranch: z.ZodString;
147
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ }, z.core.$strip>]>;
149
+ profileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ prompt: z.ZodDefault<z.ZodString>;
151
+ title: z.ZodOptional<z.ZodString>;
152
+ viewId: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>;
154
+ export declare const PromptRequest: z.ZodObject<{
155
+ text: z.ZodString;
156
+ mode: z.ZodDefault<z.ZodEnum<{
157
+ followUp: "followUp";
158
+ prompt: "prompt";
159
+ steer: "steer";
160
+ }>>;
161
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
162
+ mimeType: z.ZodString;
163
+ data: z.ZodString;
164
+ }, z.core.$strip>>>;
165
+ clientMessageId: z.ZodOptional<z.ZodString>;
166
+ }, z.core.$strip>;
167
+ export declare const CacheAlertRequest: z.ZodObject<{
168
+ enabled: z.ZodBoolean;
169
+ ttlSec: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
170
+ }, z.core.$strip>;
171
+ export declare const RenameRequest: z.ZodObject<{
172
+ title: z.ZodString;
173
+ }, z.core.$strip>;
174
+ export declare const SetModelRequest: z.ZodObject<{
175
+ provider: z.ZodString;
176
+ modelId: z.ZodString;
177
+ }, z.core.$strip>;
178
+ export declare const SetThinkingRequest: z.ZodObject<{
179
+ level: z.ZodEnum<{
180
+ high: "high";
181
+ low: "low";
182
+ max: "max";
183
+ medium: "medium";
184
+ minimal: "minimal";
185
+ off: "off";
186
+ xhigh: "xhigh";
187
+ }>;
188
+ }, z.core.$strip>;
189
+ export declare const CompactRequest: z.ZodObject<{
190
+ instructions: z.ZodOptional<z.ZodString>;
191
+ }, z.core.$strip>;
192
+ export declare const SessionModelsResult: z.ZodObject<{
193
+ models: z.ZodArray<z.ZodObject<{
194
+ provider: z.ZodString;
195
+ id: z.ZodString;
196
+ name: z.ZodNullable<z.ZodString>;
197
+ contextWindow: z.ZodNullable<z.ZodNumber>;
198
+ reasoning: z.ZodBoolean;
199
+ scoped: z.ZodOptional<z.ZodBoolean>;
200
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
201
+ high: "high";
202
+ low: "low";
203
+ max: "max";
204
+ medium: "medium";
205
+ minimal: "minimal";
206
+ off: "off";
207
+ xhigh: "xhigh";
208
+ }>>;
209
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
210
+ short: z.ZodOptional<z.ZodNumber>;
211
+ long: z.ZodOptional<z.ZodNumber>;
212
+ }, z.core.$strip>>>;
213
+ }, z.core.$strip>>;
214
+ }, z.core.$strip>;
215
+ export declare const SessionCommandsResult: z.ZodObject<{
216
+ commands: z.ZodArray<z.ZodObject<{
217
+ name: z.ZodString;
218
+ description: z.ZodNullable<z.ZodString>;
219
+ source: z.ZodEnum<{
220
+ extension: "extension";
221
+ prompt: "prompt";
222
+ skill: "skill";
223
+ }>;
224
+ argumentHint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ }, z.core.$strip>>;
226
+ }, z.core.$strip>;
227
+ export declare const CompleteRequest: z.ZodObject<{
228
+ text: z.ZodString;
229
+ }, z.core.$strip>;
230
+ export declare const CompletionItem: z.ZodObject<{
231
+ value: z.ZodString;
232
+ label: z.ZodString;
233
+ description: z.ZodNullable<z.ZodString>;
234
+ }, z.core.$strip>;
235
+ export type CompletionItem = z.infer<typeof CompletionItem>;
236
+ export declare const SessionCompleteResult: z.ZodObject<{
237
+ items: z.ZodArray<z.ZodObject<{
238
+ value: z.ZodString;
239
+ label: z.ZodString;
240
+ description: z.ZodNullable<z.ZodString>;
241
+ }, z.core.$strip>>;
242
+ prefix: z.ZodString;
243
+ }, z.core.$strip>;
244
+ export type SessionCompleteResult = z.infer<typeof SessionCompleteResult>;
245
+ export declare const TreeRow: z.ZodObject<{
246
+ entryId: z.ZodString;
247
+ parentId: z.ZodNullable<z.ZodString>;
248
+ depth: z.ZodNumber;
249
+ role: z.ZodEnum<{
250
+ assistant: "assistant";
251
+ user: "user";
252
+ }>;
253
+ text: z.ZodString;
254
+ activeBranch: z.ZodBoolean;
255
+ leaf: z.ZodBoolean;
256
+ label: z.ZodNullable<z.ZodString>;
257
+ at: z.ZodNullable<z.ZodString>;
258
+ }, z.core.$strip>;
259
+ export type TreeRow = z.infer<typeof TreeRow>;
260
+ export declare const SessionTreeResult: z.ZodObject<{
261
+ rows: z.ZodArray<z.ZodObject<{
262
+ entryId: z.ZodString;
263
+ parentId: z.ZodNullable<z.ZodString>;
264
+ depth: z.ZodNumber;
265
+ role: z.ZodEnum<{
266
+ assistant: "assistant";
267
+ user: "user";
268
+ }>;
269
+ text: z.ZodString;
270
+ activeBranch: z.ZodBoolean;
271
+ leaf: z.ZodBoolean;
272
+ label: z.ZodNullable<z.ZodString>;
273
+ at: z.ZodNullable<z.ZodString>;
274
+ }, z.core.$strip>>;
275
+ }, z.core.$strip>;
276
+ export declare const BranchRequest: z.ZodObject<{
277
+ entryId: z.ZodNullable<z.ZodString>;
278
+ fork: z.ZodDefault<z.ZodBoolean>;
279
+ }, z.core.$strip>;
280
+ export declare const HostBranchResult: z.ZodObject<{
281
+ sessionFile: z.ZodNullable<z.ZodString>;
282
+ prefill: z.ZodNullable<z.ZodString>;
283
+ }, z.core.$strip>;
284
+ export declare const TranscriptPage: z.ZodObject<{
285
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
286
+ id: z.ZodString;
287
+ sessionId: z.ZodString;
288
+ order: z.ZodNumber;
289
+ at: z.ZodString;
290
+ kind: z.ZodLiteral<"user">;
291
+ data: z.ZodObject<{
292
+ text: z.ZodString;
293
+ images: z.ZodOptional<z.ZodNumber>;
294
+ entryId: z.ZodOptional<z.ZodString>;
295
+ }, z.core.$strip>;
296
+ }, z.core.$strip>, z.ZodObject<{
297
+ id: z.ZodString;
298
+ sessionId: z.ZodString;
299
+ order: z.ZodNumber;
300
+ at: z.ZodString;
301
+ kind: z.ZodLiteral<"assistant">;
302
+ data: z.ZodObject<{
303
+ text: z.ZodString;
304
+ streaming: z.ZodOptional<z.ZodBoolean>;
305
+ }, z.core.$strip>;
306
+ }, z.core.$strip>, z.ZodObject<{
307
+ id: z.ZodString;
308
+ sessionId: z.ZodString;
309
+ order: z.ZodNumber;
310
+ at: z.ZodString;
311
+ kind: z.ZodLiteral<"thinking">;
312
+ data: z.ZodObject<{
313
+ text: z.ZodString;
314
+ }, z.core.$strip>;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ id: z.ZodString;
317
+ sessionId: z.ZodString;
318
+ order: z.ZodNumber;
319
+ at: z.ZodString;
320
+ kind: z.ZodLiteral<"tool">;
321
+ data: z.ZodObject<{
322
+ toolCallId: z.ZodString;
323
+ name: z.ZodString;
324
+ status: z.ZodEnum<{
325
+ error: "error";
326
+ ok: "ok";
327
+ running: "running";
328
+ }>;
329
+ args: z.ZodUnknown;
330
+ summary: z.ZodString;
331
+ output: z.ZodString;
332
+ startedAt: z.ZodString;
333
+ durationMs: z.ZodNullable<z.ZodNumber>;
334
+ card: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
335
+ adapterId: z.ZodNullable<z.ZodString>;
336
+ adapterGeneration: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strip>;
338
+ }, z.core.$strip>, z.ZodObject<{
339
+ id: z.ZodString;
340
+ sessionId: z.ZodString;
341
+ order: z.ZodNumber;
342
+ at: z.ZodString;
343
+ kind: z.ZodLiteral<"notice">;
344
+ data: z.ZodObject<{
345
+ level: z.ZodEnum<{
346
+ error: "error";
347
+ info: "info";
348
+ warning: "warning";
349
+ }>;
350
+ text: z.ZodString;
351
+ customType: z.ZodOptional<z.ZodString>;
352
+ card: z.ZodOptional<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
353
+ adapterId: z.ZodOptional<z.ZodString>;
354
+ adapterGeneration: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$strip>;
356
+ }, z.core.$strip>, z.ZodObject<{
357
+ id: z.ZodString;
358
+ sessionId: z.ZodString;
359
+ order: z.ZodNumber;
360
+ at: z.ZodString;
361
+ kind: z.ZodLiteral<"interaction">;
362
+ data: z.ZodObject<{
363
+ interactionId: z.ZodString;
364
+ }, z.core.$strip>;
365
+ }, z.core.$strip>, z.ZodObject<{
366
+ id: z.ZodString;
367
+ sessionId: z.ZodString;
368
+ order: z.ZodNumber;
369
+ at: z.ZodString;
370
+ kind: z.ZodLiteral<"subagent">;
371
+ data: z.ZodObject<{
372
+ runId: z.ZodString;
373
+ label: z.ZodString;
374
+ status: z.ZodString;
375
+ sessionFile: z.ZodNullable<z.ZodString>;
376
+ linkedSessionId: z.ZodNullable<z.ZodString>;
377
+ }, z.core.$strip>;
378
+ }, z.core.$strip>, z.ZodObject<{
379
+ id: z.ZodString;
380
+ sessionId: z.ZodString;
381
+ order: z.ZodNumber;
382
+ at: z.ZodString;
383
+ kind: z.ZodLiteral<"system">;
384
+ data: z.ZodObject<{
385
+ text: z.ZodString;
386
+ suggestion: z.ZodOptional<z.ZodBoolean>;
387
+ }, z.core.$strip>;
388
+ }, z.core.$strip>], "kind">>;
389
+ hasMore: z.ZodBoolean;
390
+ epoch: z.ZodOptional<z.ZodNumber>;
391
+ rev: z.ZodOptional<z.ZodNumber>;
392
+ delta: z.ZodOptional<z.ZodBoolean>;
393
+ reset: z.ZodOptional<z.ZodBoolean>;
394
+ }, z.core.$strip>;
395
+ export type TranscriptPage = z.infer<typeof TranscriptPage>;
396
+ export declare const NavigateRequest: z.ZodObject<{
397
+ entryId: z.ZodString;
398
+ summarize: z.ZodDefault<z.ZodBoolean>;
399
+ instructions: z.ZodDefault<z.ZodNullable<z.ZodString>>;
400
+ }, z.core.$strip>;
401
+ export declare const HostNavigateResult: z.ZodObject<{
402
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
403
+ id: z.ZodString;
404
+ sessionId: z.ZodString;
405
+ order: z.ZodNumber;
406
+ at: z.ZodString;
407
+ kind: z.ZodLiteral<"user">;
408
+ data: z.ZodObject<{
409
+ text: z.ZodString;
410
+ images: z.ZodOptional<z.ZodNumber>;
411
+ entryId: z.ZodOptional<z.ZodString>;
412
+ }, z.core.$strip>;
413
+ }, z.core.$strip>, z.ZodObject<{
414
+ id: z.ZodString;
415
+ sessionId: z.ZodString;
416
+ order: z.ZodNumber;
417
+ at: z.ZodString;
418
+ kind: z.ZodLiteral<"assistant">;
419
+ data: z.ZodObject<{
420
+ text: z.ZodString;
421
+ streaming: z.ZodOptional<z.ZodBoolean>;
422
+ }, z.core.$strip>;
423
+ }, z.core.$strip>, z.ZodObject<{
424
+ id: z.ZodString;
425
+ sessionId: z.ZodString;
426
+ order: z.ZodNumber;
427
+ at: z.ZodString;
428
+ kind: z.ZodLiteral<"thinking">;
429
+ data: z.ZodObject<{
430
+ text: z.ZodString;
431
+ }, z.core.$strip>;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ id: z.ZodString;
434
+ sessionId: z.ZodString;
435
+ order: z.ZodNumber;
436
+ at: z.ZodString;
437
+ kind: z.ZodLiteral<"tool">;
438
+ data: z.ZodObject<{
439
+ toolCallId: z.ZodString;
440
+ name: z.ZodString;
441
+ status: z.ZodEnum<{
442
+ error: "error";
443
+ ok: "ok";
444
+ running: "running";
445
+ }>;
446
+ args: z.ZodUnknown;
447
+ summary: z.ZodString;
448
+ output: z.ZodString;
449
+ startedAt: z.ZodString;
450
+ durationMs: z.ZodNullable<z.ZodNumber>;
451
+ card: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
452
+ adapterId: z.ZodNullable<z.ZodString>;
453
+ adapterGeneration: z.ZodOptional<z.ZodString>;
454
+ }, z.core.$strip>;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ id: z.ZodString;
457
+ sessionId: z.ZodString;
458
+ order: z.ZodNumber;
459
+ at: z.ZodString;
460
+ kind: z.ZodLiteral<"notice">;
461
+ data: z.ZodObject<{
462
+ level: z.ZodEnum<{
463
+ error: "error";
464
+ info: "info";
465
+ warning: "warning";
466
+ }>;
467
+ text: z.ZodString;
468
+ customType: z.ZodOptional<z.ZodString>;
469
+ card: z.ZodOptional<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
470
+ adapterId: z.ZodOptional<z.ZodString>;
471
+ adapterGeneration: z.ZodOptional<z.ZodString>;
472
+ }, z.core.$strip>;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ id: z.ZodString;
475
+ sessionId: z.ZodString;
476
+ order: z.ZodNumber;
477
+ at: z.ZodString;
478
+ kind: z.ZodLiteral<"interaction">;
479
+ data: z.ZodObject<{
480
+ interactionId: z.ZodString;
481
+ }, z.core.$strip>;
482
+ }, z.core.$strip>, z.ZodObject<{
483
+ id: z.ZodString;
484
+ sessionId: z.ZodString;
485
+ order: z.ZodNumber;
486
+ at: z.ZodString;
487
+ kind: z.ZodLiteral<"subagent">;
488
+ data: z.ZodObject<{
489
+ runId: z.ZodString;
490
+ label: z.ZodString;
491
+ status: z.ZodString;
492
+ sessionFile: z.ZodNullable<z.ZodString>;
493
+ linkedSessionId: z.ZodNullable<z.ZodString>;
494
+ }, z.core.$strip>;
495
+ }, z.core.$strip>, z.ZodObject<{
496
+ id: z.ZodString;
497
+ sessionId: z.ZodString;
498
+ order: z.ZodNumber;
499
+ at: z.ZodString;
500
+ kind: z.ZodLiteral<"system">;
501
+ data: z.ZodObject<{
502
+ text: z.ZodString;
503
+ suggestion: z.ZodOptional<z.ZodBoolean>;
504
+ }, z.core.$strip>;
505
+ }, z.core.$strip>], "kind">>;
506
+ prefill: z.ZodNullable<z.ZodString>;
507
+ }, z.core.$strip>;
508
+ export declare const NavigateResult: z.ZodObject<{
509
+ prefill: z.ZodNullable<z.ZodString>;
510
+ epoch: z.ZodNumber;
511
+ }, z.core.$strip>;
512
+ export type NavigateResult = z.infer<typeof NavigateResult>;
513
+ export declare const BranchResult: z.ZodObject<{
514
+ session: z.ZodNullable<z.ZodObject<{
515
+ id: z.ZodString;
516
+ title: z.ZodString;
517
+ subtitle: z.ZodNullable<z.ZodString>;
518
+ hostId: z.ZodString;
519
+ workspaceId: z.ZodNullable<z.ZodString>;
520
+ projectId: z.ZodNullable<z.ZodString>;
521
+ cwd: z.ZodString;
522
+ nativeHandle: z.ZodNullable<z.ZodObject<{
523
+ sessionId: z.ZodString;
524
+ sessionFile: z.ZodString;
525
+ }, z.core.$strip>>;
526
+ profileSnapshot: z.ZodObject<{
527
+ id: z.ZodString;
528
+ name: z.ZodString;
529
+ provider: z.ZodNullable<z.ZodString>;
530
+ model: z.ZodNullable<z.ZodString>;
531
+ thinking: z.ZodNullable<z.ZodEnum<{
532
+ high: "high";
533
+ low: "low";
534
+ max: "max";
535
+ medium: "medium";
536
+ minimal: "minimal";
537
+ off: "off";
538
+ xhigh: "xhigh";
539
+ }>>;
540
+ projectTrust: z.ZodEnum<{
541
+ approve: "approve";
542
+ ask: "ask";
543
+ ignore: "ignore";
544
+ }>;
545
+ extraArgs: z.ZodArray<z.ZodString>;
546
+ resources: z.ZodOptional<z.ZodEnum<{
547
+ all: "all";
548
+ vanilla: "vanilla";
549
+ }>>;
550
+ }, z.core.$strip>;
551
+ runtime: z.ZodEnum<{
552
+ failed: "failed";
553
+ idle: "idle";
554
+ interrupted: "interrupted";
555
+ running: "running";
556
+ starting: "starting";
557
+ stopped: "stopped";
558
+ waiting_input: "waiting_input";
559
+ }>;
560
+ runtimeDetail: z.ZodNullable<z.ZodString>;
561
+ connectivity: z.ZodEnum<{
562
+ connected: "connected";
563
+ reconnecting: "reconnecting";
564
+ unreachable: "unreachable";
565
+ }>;
566
+ runId: z.ZodNullable<z.ZodString>;
567
+ taskId: z.ZodNullable<z.ZodString>;
568
+ provenance: z.ZodEnum<{
569
+ created: "created";
570
+ imported: "imported";
571
+ subagent: "subagent";
572
+ }>;
573
+ readOnly: z.ZodBoolean;
574
+ lastActivityAt: z.ZodString;
575
+ archivedAt: z.ZodNullable<z.ZodString>;
576
+ queue: z.ZodObject<{
577
+ steering: z.ZodArray<z.ZodString>;
578
+ followUp: z.ZodArray<z.ZodString>;
579
+ }, z.core.$strip>;
580
+ stats: z.ZodNullable<z.ZodObject<{
581
+ tokens: z.ZodNullable<z.ZodNumber>;
582
+ costUsd: z.ZodNullable<z.ZodNumber>;
583
+ watermark: z.ZodOptional<z.ZodObject<{
584
+ runtimeId: z.ZodString;
585
+ settleSeq: z.ZodNumber;
586
+ }, z.core.$strict>>;
587
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
588
+ tokens: z.ZodNullable<z.ZodNumber>;
589
+ window: z.ZodNumber;
590
+ percent: z.ZodNullable<z.ZodNumber>;
591
+ }, z.core.$strip>>>;
592
+ }, z.core.$strip>>;
593
+ model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
594
+ provider: z.ZodString;
595
+ id: z.ZodString;
596
+ name: z.ZodNullable<z.ZodString>;
597
+ contextWindow: z.ZodNullable<z.ZodNumber>;
598
+ reasoning: z.ZodBoolean;
599
+ scoped: z.ZodOptional<z.ZodBoolean>;
600
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
601
+ high: "high";
602
+ low: "low";
603
+ max: "max";
604
+ medium: "medium";
605
+ minimal: "minimal";
606
+ off: "off";
607
+ xhigh: "xhigh";
608
+ }>>;
609
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
610
+ short: z.ZodOptional<z.ZodNumber>;
611
+ long: z.ZodOptional<z.ZodNumber>;
612
+ }, z.core.$strip>>>;
613
+ }, z.core.$strip>>>;
614
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
615
+ high: "high";
616
+ low: "low";
617
+ max: "max";
618
+ medium: "medium";
619
+ minimal: "minimal";
620
+ off: "off";
621
+ xhigh: "xhigh";
622
+ }>>>;
623
+ compacting: z.ZodOptional<z.ZodBoolean>;
624
+ lastAssistantText: z.ZodNullable<z.ZodString>;
625
+ createdAt: z.ZodString;
626
+ terminal: z.ZodOptional<z.ZodBoolean>;
627
+ unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
628
+ adapterGeneration: z.ZodOptional<z.ZodString>;
629
+ transcriptEpoch: z.ZodOptional<z.ZodNumber>;
630
+ bridge: z.ZodOptional<z.ZodObject<{
631
+ version: z.ZodLiteral<1>;
632
+ runtimeId: z.ZodString;
633
+ nativeSessionId: z.ZodString;
634
+ controllerEpoch: z.ZodOptional<z.ZodString>;
635
+ agentTools: z.ZodBoolean;
636
+ messageDelivery: z.ZodBoolean;
637
+ policyState: z.ZodEnum<{
638
+ active: "active";
639
+ initializing: "initializing";
640
+ lost: "lost";
641
+ unsupported: "unsupported";
642
+ }>;
643
+ policyPhases: z.ZodArray<z.ZodEnum<{
644
+ request: "request";
645
+ tool_call: "tool_call";
646
+ }>>;
647
+ }, z.core.$strip>>;
648
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
649
+ at: z.ZodString;
650
+ provider: z.ZodString;
651
+ model: z.ZodString;
652
+ cacheRead: z.ZodNumber;
653
+ cacheWrite: z.ZodNumber;
654
+ cacheWrite1h: z.ZodNumber;
655
+ }, z.core.$strip>>>;
656
+ cacheAlert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
657
+ ttlSec: z.ZodNullable<z.ZodNumber>;
658
+ warnedFor: z.ZodNullable<z.ZodString>;
659
+ }, z.core.$strip>>>;
660
+ }, z.core.$strip>>;
661
+ prefill: z.ZodNullable<z.ZodString>;
662
+ }, z.core.$strip>;
663
+ export declare const SessionExportResult: z.ZodObject<{
664
+ fileName: z.ZodString;
665
+ content: z.ZodString;
666
+ }, z.core.$strip>;
667
+ export declare const CommandViewAction: z.ZodObject<{
668
+ label: z.ZodString;
669
+ command: z.ZodString;
670
+ tone: z.ZodOptional<z.ZodEnum<{
671
+ danger: "danger";
672
+ default: "default";
673
+ primary: "primary";
674
+ }>>;
675
+ }, z.core.$strip>;
676
+ export declare const CommandView: z.ZodObject<{
677
+ title: z.ZodString;
678
+ body: z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>;
679
+ actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
680
+ label: z.ZodString;
681
+ command: z.ZodString;
682
+ tone: z.ZodOptional<z.ZodEnum<{
683
+ danger: "danger";
684
+ default: "default";
685
+ primary: "primary";
686
+ }>>;
687
+ }, z.core.$strip>>>;
688
+ }, z.core.$strip>;
689
+ export type CommandView = z.infer<typeof CommandView>;
690
+ export declare const ModelStateResult: z.ZodObject<{
691
+ model: z.ZodNullable<z.ZodObject<{
692
+ provider: z.ZodString;
693
+ id: z.ZodString;
694
+ name: z.ZodNullable<z.ZodString>;
695
+ contextWindow: z.ZodNullable<z.ZodNumber>;
696
+ reasoning: z.ZodBoolean;
697
+ scoped: z.ZodOptional<z.ZodBoolean>;
698
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
699
+ high: "high";
700
+ low: "low";
701
+ max: "max";
702
+ medium: "medium";
703
+ minimal: "minimal";
704
+ off: "off";
705
+ xhigh: "xhigh";
706
+ }>>;
707
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
708
+ short: z.ZodOptional<z.ZodNumber>;
709
+ long: z.ZodOptional<z.ZodNumber>;
710
+ }, z.core.$strip>>>;
711
+ }, z.core.$strip>>;
712
+ thinking: z.ZodNullable<z.ZodEnum<{
713
+ high: "high";
714
+ low: "low";
715
+ max: "max";
716
+ medium: "medium";
717
+ minimal: "minimal";
718
+ off: "off";
719
+ xhigh: "xhigh";
720
+ }>>;
721
+ }, z.core.$strip>;
722
+ export type ModelStateResult = z.infer<typeof ModelStateResult>;
723
+ export declare const ImportSessionRequest: z.ZodObject<{
724
+ hostId: z.ZodString;
725
+ sessionFile: z.ZodString;
726
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
727
+ }, z.core.$strip>;
728
+ export declare const AnswerRequest: z.ZodObject<{
729
+ revision: z.ZodNumber;
730
+ response: z.ZodDiscriminatedUnion<[z.ZodObject<{
731
+ kind: z.ZodLiteral<"form">;
732
+ values: z.ZodRecord<z.ZodString, z.ZodType<import("./ui.js").FormValue, unknown, z.core.$ZodTypeInternals<import("./ui.js").FormValue, unknown>>>;
733
+ }, z.core.$strip>, z.ZodObject<{
734
+ kind: z.ZodLiteral<"confirm">;
735
+ confirmed: z.ZodBoolean;
736
+ }, z.core.$strip>, z.ZodObject<{
737
+ kind: z.ZodLiteral<"action">;
738
+ actionId: z.ZodString;
739
+ }, z.core.$strip>, z.ZodObject<{
740
+ kind: z.ZodLiteral<"cancel">;
741
+ }, z.core.$strip>], "kind">;
742
+ }, z.core.$strip>;
743
+ export declare const AdapterActionRequest: z.ZodObject<{
744
+ generation: z.ZodOptional<z.ZodString>;
745
+ adapterId: z.ZodString;
746
+ actionId: z.ZodString;
747
+ payload: z.ZodOptional<z.ZodUnknown>;
748
+ }, z.core.$strip>;
749
+ /** A task policy update: every nested field is optional, so a patch can change one field. */
750
+ export declare const TaskPolicyPatch: z.ZodObject<{
751
+ hostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
752
+ profileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
753
+ workspace: z.ZodOptional<z.ZodObject<{
754
+ mode: z.ZodOptional<z.ZodEnum<{
755
+ existing: "existing";
756
+ new_worktree: "new_worktree";
757
+ }>>;
758
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
759
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
760
+ workspaceId: z.ZodOptional<z.ZodString>;
761
+ }, z.core.$strip>>;
762
+ continuation: z.ZodOptional<z.ZodObject<{
763
+ enabled: z.ZodOptional<z.ZodBoolean>;
764
+ objective: z.ZodOptional<z.ZodString>;
765
+ maxContinuations: z.ZodOptional<z.ZodNumber>;
766
+ maxElapsedMinutes: z.ZodOptional<z.ZodNumber>;
767
+ maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
768
+ maxCostUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
769
+ }, z.core.$strip>>;
770
+ completion: z.ZodOptional<z.ZodObject<{
771
+ checks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
772
+ requireHumanReview: z.ZodOptional<z.ZodBoolean>;
773
+ }, z.core.$strip>>;
774
+ }, z.core.$strip>;
775
+ export type TaskPolicyPatch = z.infer<typeof TaskPolicyPatch>;
776
+ /**
777
+ * JSON merge patch (RFC 7396) except that null is a value: plain objects merge key by key,
778
+ * any other value (null, arrays, scalars) replaces, absent/undefined keeps the base.
779
+ */
780
+ export declare function mergePatch(base: unknown, patch: unknown): unknown;
781
+ export declare const CreateTaskRequest: z.ZodPipe<z.ZodObject<{
782
+ projectId: z.ZodString;
783
+ title: z.ZodOptional<z.ZodString>;
784
+ githubIssueUrl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
785
+ githubIssue: z.ZodOptional<z.ZodNever>;
786
+ launchPrompt: z.ZodOptional<z.ZodNever>;
787
+ objective: z.ZodDefault<z.ZodString>;
788
+ acceptanceCriteria: z.ZodDefault<z.ZodArray<z.ZodString>>;
789
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
790
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
791
+ priority: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
792
+ state: z.ZodDefault<z.ZodEnum<{
793
+ backlog: "backlog";
794
+ ready: "ready";
795
+ }>>;
796
+ notBefore: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
+ policy: z.ZodOptional<z.ZodObject<{
798
+ hostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
799
+ profileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
800
+ workspace: z.ZodOptional<z.ZodObject<{
801
+ mode: z.ZodOptional<z.ZodEnum<{
802
+ existing: "existing";
803
+ new_worktree: "new_worktree";
804
+ }>>;
805
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
807
+ workspaceId: z.ZodOptional<z.ZodString>;
808
+ }, z.core.$strip>>;
809
+ continuation: z.ZodOptional<z.ZodObject<{
810
+ enabled: z.ZodOptional<z.ZodBoolean>;
811
+ objective: z.ZodOptional<z.ZodString>;
812
+ maxContinuations: z.ZodOptional<z.ZodNumber>;
813
+ maxElapsedMinutes: z.ZodOptional<z.ZodNumber>;
814
+ maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
815
+ maxCostUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
816
+ }, z.core.$strip>>;
817
+ completion: z.ZodOptional<z.ZodObject<{
818
+ checks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
819
+ requireHumanReview: z.ZodOptional<z.ZodBoolean>;
820
+ }, z.core.$strip>>;
821
+ }, z.core.$strip>>;
822
+ }, z.core.$strip>, z.ZodTransform<{
823
+ projectId: string;
824
+ githubIssueUrl?: string | undefined;
825
+ githubIssue?: undefined;
826
+ launchPrompt?: undefined;
827
+ objective: string;
828
+ acceptanceCriteria: string[];
829
+ dependencies: string[];
830
+ parentTaskId?: string | null | undefined;
831
+ priority: 0 | 1 | 2 | 3;
832
+ state: "backlog" | "ready";
833
+ notBefore?: string | null | undefined;
834
+ policy?: {
835
+ hostId?: string | null | undefined;
836
+ profileId?: string | null | undefined;
837
+ workspace?: {
838
+ mode?: "existing" | "new_worktree" | undefined;
839
+ branch?: string | null | undefined;
840
+ base?: string | null | undefined;
841
+ workspaceId?: string | undefined;
842
+ } | undefined;
843
+ continuation?: {
844
+ enabled?: boolean | undefined;
845
+ objective?: string | undefined;
846
+ maxContinuations?: number | undefined;
847
+ maxElapsedMinutes?: number | undefined;
848
+ maxTokens?: number | null | undefined;
849
+ maxCostUsd?: number | null | undefined;
850
+ } | undefined;
851
+ completion?: {
852
+ checks?: string[] | null | undefined;
853
+ requireHumanReview?: boolean | undefined;
854
+ } | undefined;
855
+ } | undefined;
856
+ title: string;
857
+ }, {
858
+ projectId: string;
859
+ title?: string | undefined;
860
+ githubIssueUrl?: string | undefined;
861
+ githubIssue?: undefined;
862
+ launchPrompt?: undefined;
863
+ objective: string;
864
+ acceptanceCriteria: string[];
865
+ dependencies: string[];
866
+ parentTaskId?: string | null | undefined;
867
+ priority: 0 | 1 | 2 | 3;
868
+ state: "backlog" | "ready";
869
+ notBefore?: string | null | undefined;
870
+ policy?: {
871
+ hostId?: string | null | undefined;
872
+ profileId?: string | null | undefined;
873
+ workspace?: {
874
+ mode?: "existing" | "new_worktree" | undefined;
875
+ branch?: string | null | undefined;
876
+ base?: string | null | undefined;
877
+ workspaceId?: string | undefined;
878
+ } | undefined;
879
+ continuation?: {
880
+ enabled?: boolean | undefined;
881
+ objective?: string | undefined;
882
+ maxContinuations?: number | undefined;
883
+ maxElapsedMinutes?: number | undefined;
884
+ maxTokens?: number | null | undefined;
885
+ maxCostUsd?: number | null | undefined;
886
+ } | undefined;
887
+ completion?: {
888
+ checks?: string[] | null | undefined;
889
+ requireHumanReview?: boolean | undefined;
890
+ } | undefined;
891
+ } | undefined;
892
+ }>>;
893
+ export declare const UpdateTaskRequest: z.ZodObject<{
894
+ githubIssueUrl: z.ZodOptional<z.ZodNever>;
895
+ githubIssue: z.ZodOptional<z.ZodNever>;
896
+ launchPrompt: z.ZodOptional<z.ZodNever>;
897
+ title: z.ZodOptional<z.ZodString>;
898
+ objective: z.ZodOptional<z.ZodString>;
899
+ acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString>>;
900
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
901
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
902
+ priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
903
+ position: z.ZodOptional<z.ZodNumber>;
904
+ notBefore: z.ZodOptional<z.ZodNullable<z.ZodString>>;
905
+ policy: z.ZodOptional<z.ZodObject<{
906
+ hostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
907
+ profileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
908
+ workspace: z.ZodOptional<z.ZodObject<{
909
+ mode: z.ZodOptional<z.ZodEnum<{
910
+ existing: "existing";
911
+ new_worktree: "new_worktree";
912
+ }>>;
913
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
914
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
915
+ workspaceId: z.ZodOptional<z.ZodString>;
916
+ }, z.core.$strip>>;
917
+ continuation: z.ZodOptional<z.ZodObject<{
918
+ enabled: z.ZodOptional<z.ZodBoolean>;
919
+ objective: z.ZodOptional<z.ZodString>;
920
+ maxContinuations: z.ZodOptional<z.ZodNumber>;
921
+ maxElapsedMinutes: z.ZodOptional<z.ZodNumber>;
922
+ maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
923
+ maxCostUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
924
+ }, z.core.$strip>>;
925
+ completion: z.ZodOptional<z.ZodObject<{
926
+ checks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
927
+ requireHumanReview: z.ZodOptional<z.ZodBoolean>;
928
+ }, z.core.$strip>>;
929
+ }, z.core.$strip>>;
930
+ }, z.core.$strip>;
931
+ export declare const MoveTaskRequest: z.ZodObject<{
932
+ to: z.ZodEnum<{
933
+ backlog: "backlog";
934
+ canceled: "canceled";
935
+ done: "done";
936
+ in_progress: "in_progress";
937
+ ready: "ready";
938
+ review: "review";
939
+ }>;
940
+ confirm: z.ZodOptional<z.ZodBoolean>;
941
+ onRunning: z.ZodOptional<z.ZodEnum<{
942
+ pause: "pause";
943
+ stop: "stop";
944
+ }>>;
945
+ position: z.ZodOptional<z.ZodNumber>;
946
+ }, z.core.$strip>;
947
+ /** POST /api/tasks/:id/move (and accept, reopen, cancel) returns the updated task. */
948
+ export declare const MoveTaskResult: z.ZodObject<{
949
+ id: z.ZodString;
950
+ projectId: z.ZodString;
951
+ title: z.ZodString;
952
+ objective: z.ZodString;
953
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
954
+ dependencies: z.ZodArray<z.ZodString>;
955
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
956
+ position: z.ZodNumber;
957
+ state: z.ZodEnum<{
958
+ backlog: "backlog";
959
+ canceled: "canceled";
960
+ done: "done";
961
+ in_progress: "in_progress";
962
+ ready: "ready";
963
+ review: "review";
964
+ }>;
965
+ blocked: z.ZodNullable<z.ZodObject<{
966
+ reason: z.ZodString;
967
+ }, z.core.$strip>>;
968
+ notBefore: z.ZodNullable<z.ZodString>;
969
+ policy: z.ZodObject<{
970
+ hostId: z.ZodNullable<z.ZodString>;
971
+ profileId: z.ZodNullable<z.ZodString>;
972
+ workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
973
+ mode: z.ZodLiteral<"new_worktree">;
974
+ branch: z.ZodNullable<z.ZodString>;
975
+ base: z.ZodNullable<z.ZodString>;
976
+ }, z.core.$strip>, z.ZodObject<{
977
+ mode: z.ZodLiteral<"existing">;
978
+ workspaceId: z.ZodString;
979
+ }, z.core.$strip>], "mode">;
980
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
981
+ enabled: z.ZodLiteral<false>;
982
+ }, z.core.$strip>, z.ZodObject<{
983
+ enabled: z.ZodLiteral<true>;
984
+ objective: z.ZodString;
985
+ maxContinuations: z.ZodNumber;
986
+ maxElapsedMinutes: z.ZodNumber;
987
+ maxTokens: z.ZodNullable<z.ZodNumber>;
988
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
989
+ }, z.core.$strip>], "enabled">;
990
+ completion: z.ZodObject<{
991
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
992
+ requireHumanReview: z.ZodBoolean;
993
+ }, z.core.$strip>;
994
+ }, z.core.$strip>;
995
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
996
+ kind: z.ZodLiteral<"manual">;
997
+ }, z.core.$strip>, z.ZodObject<{
998
+ kind: z.ZodLiteral<"automation">;
999
+ automationId: z.ZodString;
1000
+ occurrenceId: z.ZodString;
1001
+ routine: z.ZodBoolean;
1002
+ }, z.core.$strip>], "kind">;
1003
+ groupingKey: z.ZodNullable<z.ZodString>;
1004
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1005
+ agentOrigin: z.ZodOptional<z.ZodObject<{
1006
+ sessionId: z.ZodString;
1007
+ toolCallId: z.ZodString;
1008
+ }, z.core.$strip>>;
1009
+ githubIssue: z.ZodOptional<z.ZodObject<{
1010
+ repository: z.ZodString;
1011
+ number: z.ZodNumber;
1012
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1013
+ launchPrompt: z.ZodString;
1014
+ }, z.core.$strict>>;
1015
+ currentRunId: z.ZodNullable<z.ZodString>;
1016
+ sessionId: z.ZodNullable<z.ZodString>;
1017
+ review: z.ZodObject<{
1018
+ feedback: z.ZodArray<z.ZodString>;
1019
+ changesRequested: z.ZodBoolean;
1020
+ }, z.core.$strip>;
1021
+ hiddenFromBoard: z.ZodBoolean;
1022
+ lastActivityAt: z.ZodString;
1023
+ createdAt: z.ZodString;
1024
+ updatedAt: z.ZodString;
1025
+ }, z.core.$strip>;
1026
+ export type MoveTaskResult = Task;
1027
+ export declare const RequestChangesRequest: z.ZodObject<{
1028
+ feedback: z.ZodArray<z.ZodString>;
1029
+ }, z.core.$strip>;
1030
+ export declare const Eligibility: z.ZodUnion<readonly [z.ZodObject<{
1031
+ eligible: z.ZodLiteral<true>;
1032
+ hostId: z.ZodString;
1033
+ hostName: z.ZodString;
1034
+ }, z.core.$strip>, z.ZodObject<{
1035
+ eligible: z.ZodLiteral<false>;
1036
+ wait: z.ZodEnum<{
1037
+ already_dispatched: "already_dispatched";
1038
+ dependency: "dependency";
1039
+ dispatch_paused: "dispatch_paused";
1040
+ host_offline: "host_offline";
1041
+ invalid_configuration: "invalid_configuration";
1042
+ not_ready: "not_ready";
1043
+ project_automation_disabled: "project_automation_disabled";
1044
+ project_limit: "project_limit";
1045
+ retry_backoff: "retry_backoff";
1046
+ scheduled_time: "scheduled_time";
1047
+ workspace_occupied: "workspace_occupied";
1048
+ }>;
1049
+ message: z.ZodString;
1050
+ }, z.core.$strip>]>;
1051
+ export type Eligibility = z.infer<typeof Eligibility>;
1052
+ export declare const NowResponse: z.ZodObject<{
1053
+ running: z.ZodArray<z.ZodObject<{
1054
+ taskId: z.ZodString;
1055
+ runId: z.ZodString;
1056
+ sessionId: z.ZodNullable<z.ZodString>;
1057
+ }, z.core.$strip>>;
1058
+ queued: z.ZodArray<z.ZodObject<{
1059
+ taskId: z.ZodString;
1060
+ eligibility: z.ZodUnion<readonly [z.ZodObject<{
1061
+ eligible: z.ZodLiteral<true>;
1062
+ hostId: z.ZodString;
1063
+ hostName: z.ZodString;
1064
+ }, z.core.$strip>, z.ZodObject<{
1065
+ eligible: z.ZodLiteral<false>;
1066
+ wait: z.ZodEnum<{
1067
+ already_dispatched: "already_dispatched";
1068
+ dependency: "dependency";
1069
+ dispatch_paused: "dispatch_paused";
1070
+ host_offline: "host_offline";
1071
+ invalid_configuration: "invalid_configuration";
1072
+ not_ready: "not_ready";
1073
+ project_automation_disabled: "project_automation_disabled";
1074
+ project_limit: "project_limit";
1075
+ retry_backoff: "retry_backoff";
1076
+ scheduled_time: "scheduled_time";
1077
+ workspace_occupied: "workspace_occupied";
1078
+ }>;
1079
+ message: z.ZodString;
1080
+ }, z.core.$strip>]>;
1081
+ }, z.core.$strip>>;
1082
+ dispatchPaused: z.ZodBoolean;
1083
+ }, z.core.$strip>;
1084
+ export type NowResponse = z.infer<typeof NowResponse>;
1085
+ export declare const AutomationInput: z.ZodObject<{
1086
+ name: z.ZodString;
1087
+ enabled: z.ZodDefault<z.ZodBoolean>;
1088
+ projectId: z.ZodString;
1089
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
1090
+ kind: z.ZodLiteral<"manual">;
1091
+ }, z.core.$strip>, z.ZodObject<{
1092
+ kind: z.ZodLiteral<"once">;
1093
+ at: z.ZodString;
1094
+ }, z.core.$strip>, z.ZodObject<{
1095
+ kind: z.ZodLiteral<"cron">;
1096
+ expr: z.ZodString;
1097
+ timezone: z.ZodString;
1098
+ }, z.core.$strip>, z.ZodObject<{
1099
+ kind: z.ZodLiteral<"webhook">;
1100
+ }, z.core.$strip>, z.ZodObject<{
1101
+ kind: z.ZodLiteral<"dependency">;
1102
+ taskId: z.ZodString;
1103
+ }, z.core.$strip>], "kind">;
1104
+ filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
1105
+ path: z.ZodString;
1106
+ equals: z.ZodString;
1107
+ }, z.core.$strip>>>;
1108
+ template: z.ZodObject<{
1109
+ title: z.ZodString;
1110
+ objective: z.ZodString;
1111
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1112
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1113
+ }, z.core.$strip>;
1114
+ hostId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1115
+ profileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1116
+ mode: z.ZodDefault<z.ZodEnum<{
1117
+ continue: "continue";
1118
+ fresh: "fresh";
1119
+ watch: "watch";
1120
+ }>>;
1121
+ groupingKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1122
+ overlap: z.ZodDefault<z.ZodEnum<{
1123
+ append: "append";
1124
+ queue_one: "queue_one";
1125
+ skip: "skip";
1126
+ }>>;
1127
+ missed: z.ZodDefault<z.ZodEnum<{
1128
+ run_once: "run_once";
1129
+ skip: "skip";
1130
+ }>>;
1131
+ continuation: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1132
+ enabled: z.ZodLiteral<false>;
1133
+ }, z.core.$strip>, z.ZodObject<{
1134
+ enabled: z.ZodLiteral<true>;
1135
+ objective: z.ZodString;
1136
+ maxContinuations: z.ZodNumber;
1137
+ maxElapsedMinutes: z.ZodNumber;
1138
+ maxTokens: z.ZodNullable<z.ZodNumber>;
1139
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
1140
+ }, z.core.$strip>], "enabled">>;
1141
+ completion: z.ZodDefault<z.ZodObject<{
1142
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
1143
+ requireHumanReview: z.ZodBoolean;
1144
+ }, z.core.$strip>>;
1145
+ }, z.core.$strip>;
1146
+ export type AutomationInput = z.infer<typeof AutomationInput>;
1147
+ /** GET /api/automations items and the automation routes' responses: the automation plus its trigger summary. */
1148
+ export declare const AutomationView: z.ZodObject<{
1149
+ id: z.ZodString;
1150
+ name: z.ZodString;
1151
+ enabled: z.ZodBoolean;
1152
+ projectId: z.ZodString;
1153
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
1154
+ kind: z.ZodLiteral<"manual">;
1155
+ }, z.core.$strip>, z.ZodObject<{
1156
+ kind: z.ZodLiteral<"once">;
1157
+ at: z.ZodString;
1158
+ }, z.core.$strip>, z.ZodObject<{
1159
+ kind: z.ZodLiteral<"cron">;
1160
+ expr: z.ZodString;
1161
+ timezone: z.ZodString;
1162
+ }, z.core.$strip>, z.ZodObject<{
1163
+ kind: z.ZodLiteral<"webhook">;
1164
+ }, z.core.$strip>, z.ZodObject<{
1165
+ kind: z.ZodLiteral<"dependency">;
1166
+ taskId: z.ZodString;
1167
+ }, z.core.$strip>], "kind">;
1168
+ filters: z.ZodArray<z.ZodObject<{
1169
+ path: z.ZodString;
1170
+ equals: z.ZodString;
1171
+ }, z.core.$strip>>;
1172
+ template: z.ZodObject<{
1173
+ title: z.ZodString;
1174
+ objective: z.ZodString;
1175
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1176
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1177
+ }, z.core.$strip>;
1178
+ hostId: z.ZodNullable<z.ZodString>;
1179
+ profileId: z.ZodNullable<z.ZodString>;
1180
+ mode: z.ZodEnum<{
1181
+ continue: "continue";
1182
+ fresh: "fresh";
1183
+ watch: "watch";
1184
+ }>;
1185
+ groupingKey: z.ZodNullable<z.ZodString>;
1186
+ overlap: z.ZodEnum<{
1187
+ append: "append";
1188
+ queue_one: "queue_one";
1189
+ skip: "skip";
1190
+ }>;
1191
+ missed: z.ZodEnum<{
1192
+ run_once: "run_once";
1193
+ skip: "skip";
1194
+ }>;
1195
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1196
+ enabled: z.ZodLiteral<false>;
1197
+ }, z.core.$strip>, z.ZodObject<{
1198
+ enabled: z.ZodLiteral<true>;
1199
+ objective: z.ZodString;
1200
+ maxContinuations: z.ZodNumber;
1201
+ maxElapsedMinutes: z.ZodNumber;
1202
+ maxTokens: z.ZodNullable<z.ZodNumber>;
1203
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
1204
+ }, z.core.$strip>], "enabled">;
1205
+ completion: z.ZodObject<{
1206
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
1207
+ requireHumanReview: z.ZodBoolean;
1208
+ }, z.core.$strip>;
1209
+ nextAt: z.ZodNullable<z.ZodString>;
1210
+ lastEvaluatedAt: z.ZodNullable<z.ZodString>;
1211
+ lastOutcome: z.ZodNullable<z.ZodString>;
1212
+ failureCount: z.ZodNumber;
1213
+ webhookTokenSet: z.ZodBoolean;
1214
+ createdAt: z.ZodString;
1215
+ updatedAt: z.ZodString;
1216
+ summary: z.ZodString;
1217
+ }, z.core.$strip>;
1218
+ export type AutomationView = z.infer<typeof AutomationView>;
1219
+ export declare const AutomationPreview: z.ZodObject<{
1220
+ summary: z.ZodString;
1221
+ task: z.ZodObject<{
1222
+ title: z.ZodString;
1223
+ objective: z.ZodString;
1224
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1225
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1226
+ }, z.core.$strip>;
1227
+ next: z.ZodArray<z.ZodString>;
1228
+ }, z.core.$strip>;
1229
+ export type AutomationPreview = z.infer<typeof AutomationPreview>;
1230
+ export declare const WebhookTokenResponse: z.ZodObject<{
1231
+ token: z.ZodString;
1232
+ url: z.ZodString;
1233
+ }, z.core.$strip>;
1234
+ export declare const PushSubscriptionRequest: z.ZodObject<{
1235
+ endpoint: z.ZodString;
1236
+ keys: z.ZodObject<{
1237
+ p256dh: z.ZodString;
1238
+ auth: z.ZodString;
1239
+ }, z.core.$strip>;
1240
+ permission: z.ZodDefault<z.ZodEnum<{
1241
+ default: "default";
1242
+ denied: "denied";
1243
+ granted: "granted";
1244
+ unknown: "unknown";
1245
+ }>>;
1246
+ }, z.core.$strip>;
1247
+ export declare const NotificationSettings: z.ZodObject<{
1248
+ quietHours: z.ZodNullable<z.ZodObject<{
1249
+ start: z.ZodString;
1250
+ end: z.ZodString;
1251
+ timezone: z.ZodString;
1252
+ }, z.core.$strip>>;
1253
+ privatePreviews: z.ZodBoolean;
1254
+ preferredDeviceId: z.ZodNullable<z.ZodString>;
1255
+ }, z.core.$strip>;
1256
+ export type NotificationSettings = z.infer<typeof NotificationSettings>;
1257
+ export declare const PushPayload: z.ZodUnion<readonly [z.ZodObject<{
1258
+ type: z.ZodLiteral<"show">;
1259
+ title: z.ZodString;
1260
+ body: z.ZodString;
1261
+ tag: z.ZodString;
1262
+ url: z.ZodString;
1263
+ renotify: z.ZodBoolean;
1264
+ }, z.core.$strip>, z.ZodObject<{
1265
+ type: z.ZodLiteral<"clear">;
1266
+ tag: z.ZodString;
1267
+ }, z.core.$strip>]>;
1268
+ export type PushPayload = z.infer<typeof PushPayload>;
1269
+ /** Owner sign-in (see docs/auth.md). */
1270
+ export declare const SetupState: z.ZodObject<{
1271
+ passkey: z.ZodObject<{
1272
+ available: z.ZodBoolean;
1273
+ registered: z.ZodBoolean;
1274
+ reason: z.ZodNullable<z.ZodString>;
1275
+ }, z.core.$strip>;
1276
+ oidc: z.ZodNullable<z.ZodObject<{
1277
+ label: z.ZodString;
1278
+ }, z.core.$strip>>;
1279
+ }, z.core.$strip>;
1280
+ export type SetupState = z.infer<typeof SetupState>;
1281
+ export declare const PasskeyRegisterOptionsResponse: z.ZodObject<{
1282
+ challengeId: z.ZodString;
1283
+ options: z.ZodUnknown;
1284
+ }, z.core.$strip>;
1285
+ export declare const PasskeyRegisterVerifyRequest: z.ZodObject<{
1286
+ challengeId: z.ZodString;
1287
+ name: z.ZodString;
1288
+ response: z.ZodUnknown;
1289
+ }, z.core.$strip>;
1290
+ export declare const PasskeySignInOptionsResponse: z.ZodObject<{
1291
+ challengeId: z.ZodString;
1292
+ options: z.ZodUnknown;
1293
+ }, z.core.$strip>;
1294
+ export declare const PasskeySignInVerifyRequest: z.ZodObject<{
1295
+ challengeId: z.ZodString;
1296
+ response: z.ZodUnknown;
1297
+ deviceName: z.ZodString;
1298
+ kind: z.ZodEnum<{
1299
+ browser: "browser";
1300
+ pwa: "pwa";
1301
+ }>;
1302
+ }, z.core.$strip>;
1303
+ export declare const OidcBeginRequest: z.ZodObject<{
1304
+ deviceName: z.ZodString;
1305
+ kind: z.ZodEnum<{
1306
+ browser: "browser";
1307
+ pwa: "pwa";
1308
+ }>;
1309
+ next: z.ZodDefault<z.ZodString>;
1310
+ handoff: z.ZodDefault<z.ZodBoolean>;
1311
+ }, z.core.$strip>;
1312
+ export declare const OidcBeginResponse: z.ZodObject<{
1313
+ authorizeUrl: z.ZodString;
1314
+ flowId: z.ZodNullable<z.ZodString>;
1315
+ pollToken: z.ZodNullable<z.ZodString>;
1316
+ }, z.core.$strip>;
1317
+ export type OidcBeginResponse = z.infer<typeof OidcBeginResponse>;
1318
+ export declare const OidcClaimRequest: z.ZodObject<{
1319
+ flowId: z.ZodString;
1320
+ pollToken: z.ZodString;
1321
+ }, z.core.$strip>;
1322
+ export declare const OidcClaimResponse: z.ZodUnion<readonly [z.ZodObject<{
1323
+ status: z.ZodLiteral<"pending">;
1324
+ }, z.core.$strip>, z.ZodObject<{
1325
+ status: z.ZodLiteral<"done">;
1326
+ deviceId: z.ZodString;
1327
+ }, z.core.$strip>]>;
1328
+ export type OidcClaimResponse = z.infer<typeof OidcClaimResponse>;
1329
+ export declare const TerminalLoginStartRequest: z.ZodObject<{
1330
+ name: z.ZodString;
1331
+ }, z.core.$strip>;
1332
+ export declare const TerminalLoginStartResponse: z.ZodObject<{
1333
+ userCode: z.ZodString;
1334
+ pollToken: z.ZodString;
1335
+ verifyUrl: z.ZodString;
1336
+ expiresAt: z.ZodString;
1337
+ intervalMs: z.ZodNumber;
1338
+ }, z.core.$strip>;
1339
+ export type TerminalLoginStartResponse = z.infer<typeof TerminalLoginStartResponse>;
1340
+ export declare const TerminalLoginClaimRequest: z.ZodObject<{
1341
+ userCode: z.ZodString;
1342
+ pollToken: z.ZodString;
1343
+ }, z.core.$strip>;
1344
+ export declare const TerminalLoginClaimResponse: z.ZodUnion<readonly [z.ZodObject<{
1345
+ status: z.ZodLiteral<"pending">;
1346
+ }, z.core.$strip>, z.ZodObject<{
1347
+ status: z.ZodLiteral<"denied">;
1348
+ }, z.core.$strip>, z.ZodObject<{
1349
+ status: z.ZodLiteral<"done">;
1350
+ deviceId: z.ZodString;
1351
+ credential: z.ZodString;
1352
+ }, z.core.$strip>]>;
1353
+ export type TerminalLoginClaimResponse = z.infer<typeof TerminalLoginClaimResponse>;
1354
+ export declare const TerminalLoginRequest: z.ZodObject<{
1355
+ userCode: z.ZodString;
1356
+ name: z.ZodString;
1357
+ requestedFrom: z.ZodString;
1358
+ createdAt: z.ZodString;
1359
+ expiresAt: z.ZodString;
1360
+ status: z.ZodEnum<{
1361
+ approved: "approved";
1362
+ denied: "denied";
1363
+ pending: "pending";
1364
+ }>;
1365
+ }, z.core.$strip>;
1366
+ export type TerminalLoginRequest = z.infer<typeof TerminalLoginRequest>;
1367
+ export declare const AuthMethods: z.ZodObject<{
1368
+ passkeys: z.ZodArray<z.ZodObject<{
1369
+ id: z.ZodString;
1370
+ name: z.ZodString;
1371
+ createdAt: z.ZodString;
1372
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1373
+ transports: z.ZodArray<z.ZodString>;
1374
+ }, z.core.$strip>>;
1375
+ passkeyAvailability: z.ZodObject<{
1376
+ available: z.ZodBoolean;
1377
+ reason: z.ZodNullable<z.ZodString>;
1378
+ }, z.core.$strip>;
1379
+ oidc: z.ZodNullable<z.ZodObject<{
1380
+ issuer: z.ZodString;
1381
+ label: z.ZodString;
1382
+ ownerMatch: z.ZodString;
1383
+ status: z.ZodEnum<{
1384
+ error: "error";
1385
+ ready: "ready";
1386
+ }>;
1387
+ error: z.ZodNullable<z.ZodString>;
1388
+ }, z.core.$strip>>;
1389
+ }, z.core.$strip>;
1390
+ export type AuthMethods = z.infer<typeof AuthMethods>;
1391
+ export declare const MeResponse: z.ZodObject<{
1392
+ device: z.ZodObject<{
1393
+ id: z.ZodString;
1394
+ name: z.ZodString;
1395
+ kind: z.ZodEnum<{
1396
+ browser: "browser";
1397
+ cli: "cli";
1398
+ pwa: "pwa";
1399
+ terminal: "terminal";
1400
+ }>;
1401
+ createdAt: z.ZodString;
1402
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1403
+ revokedAt: z.ZodNullable<z.ZodString>;
1404
+ push: z.ZodObject<{
1405
+ subscribed: z.ZodBoolean;
1406
+ permission: z.ZodEnum<{
1407
+ default: "default";
1408
+ denied: "denied";
1409
+ granted: "granted";
1410
+ unknown: "unknown";
1411
+ }>;
1412
+ }, z.core.$strip>;
1413
+ preferredMobile: z.ZodBoolean;
1414
+ enrolledVia: z.ZodDefault<z.ZodEnum<{
1415
+ admin: "admin";
1416
+ approval: "approval";
1417
+ enrollment: "enrollment";
1418
+ oidc: "oidc";
1419
+ passkey: "passkey";
1420
+ }>>;
1421
+ }, z.core.$strip>;
1422
+ admin: z.ZodBoolean;
1423
+ publicUrl: z.ZodString;
1424
+ }, z.core.$strip>;
1425
+ export type MeResponse = z.infer<typeof MeResponse>;
1426
+ export declare const ViewInput: z.ZodObject<{
1427
+ name: z.ZodString;
1428
+ mode: z.ZodOptional<z.ZodEnum<{
1429
+ all: "all";
1430
+ pinned: "pinned";
1431
+ }>>;
1432
+ projectIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1433
+ hostIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1434
+ }, z.core.$strip>;
1435
+ export declare const ViewPatch: z.ZodObject<{
1436
+ name: z.ZodOptional<z.ZodString>;
1437
+ mode: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1438
+ all: "all";
1439
+ pinned: "pinned";
1440
+ }>>>;
1441
+ projectIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
1442
+ hostIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
1443
+ }, z.core.$strip>;
1444
+ export declare const ViewClientReport: z.ZodObject<{
1445
+ id: z.ZodString;
1446
+ kind: z.ZodEnum<{
1447
+ herdr: "herdr";
1448
+ tmux: "tmux";
1449
+ }>;
1450
+ name: z.ZodString;
1451
+ machine: z.ZodString;
1452
+ }, z.core.$strip>;
1453
+ export declare const ProjectSuggestionsResponse: z.ZodObject<{
1454
+ suggestions: z.ZodArray<z.ZodObject<{
1455
+ rootPath: z.ZodString;
1456
+ sessionCount: z.ZodNumber;
1457
+ lastActivityAt: z.ZodString;
1458
+ name: z.ZodString;
1459
+ preselected: z.ZodBoolean;
1460
+ }, z.core.$strip>>;
1461
+ }, z.core.$strip>;
1462
+ export type ProjectSuggestionsResponse = z.infer<typeof ProjectSuggestionsResponse>;
1463
+ //# sourceMappingURL=api.d.ts.map