@opengeni/contracts 0.2.0 → 0.3.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/index.d.ts +1344 -1
- package/dist/index.js +1065 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1197 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,8 +14,82 @@ declare const SandboxBackend: z.ZodEnum<{
|
|
|
14
14
|
modal: "modal";
|
|
15
15
|
local: "local";
|
|
16
16
|
none: "none";
|
|
17
|
+
daytona: "daytona";
|
|
18
|
+
runloop: "runloop";
|
|
19
|
+
e2b: "e2b";
|
|
20
|
+
blaxel: "blaxel";
|
|
21
|
+
cloudflare: "cloudflare";
|
|
22
|
+
vercel: "vercel";
|
|
17
23
|
}>;
|
|
18
24
|
type SandboxBackend = z.infer<typeof SandboxBackend>;
|
|
25
|
+
declare const SandboxOs: z.ZodEnum<{
|
|
26
|
+
linux: "linux";
|
|
27
|
+
macos: "macos";
|
|
28
|
+
windows: "windows";
|
|
29
|
+
}>;
|
|
30
|
+
type SandboxOs = z.infer<typeof SandboxOs>;
|
|
31
|
+
declare const SandboxCapabilityName: z.ZodEnum<{
|
|
32
|
+
FileSystem: "FileSystem";
|
|
33
|
+
Terminal: "Terminal";
|
|
34
|
+
Git: "Git";
|
|
35
|
+
DesktopStream: "DesktopStream";
|
|
36
|
+
Recording: "Recording";
|
|
37
|
+
}>;
|
|
38
|
+
type SandboxCapabilityName = z.infer<typeof SandboxCapabilityName>;
|
|
39
|
+
type PortExposureKind = "provider-tunnel" | "preview-url" | "local-port" | "none";
|
|
40
|
+
type CapabilityDescriptor = {
|
|
41
|
+
backend: SandboxBackend;
|
|
42
|
+
backendId: string;
|
|
43
|
+
tier: "desktop" | "headless" | "dev" | "none";
|
|
44
|
+
os: {
|
|
45
|
+
supported: SandboxOs[];
|
|
46
|
+
default: SandboxOs;
|
|
47
|
+
};
|
|
48
|
+
capabilities: {
|
|
49
|
+
FileSystem: {
|
|
50
|
+
available: boolean;
|
|
51
|
+
readOnly: boolean;
|
|
52
|
+
};
|
|
53
|
+
Terminal: {
|
|
54
|
+
available: boolean;
|
|
55
|
+
transport: "sse-events" | "pty-ws" | null;
|
|
56
|
+
pty: boolean;
|
|
57
|
+
};
|
|
58
|
+
Git: {
|
|
59
|
+
available: boolean;
|
|
60
|
+
};
|
|
61
|
+
DesktopStream: {
|
|
62
|
+
available: boolean;
|
|
63
|
+
transport: "vnc-ws" | "rdp-ws" | "webrtc" | null;
|
|
64
|
+
};
|
|
65
|
+
Recording: {
|
|
66
|
+
available: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
lifetime: {
|
|
70
|
+
hardLifetimeMs?: number;
|
|
71
|
+
requiresSnapshotRollover: boolean;
|
|
72
|
+
hasIdleKiller: boolean;
|
|
73
|
+
supportsSuspendResume: boolean;
|
|
74
|
+
resumeIsLockFree: boolean;
|
|
75
|
+
idleKillDisableHint?: string;
|
|
76
|
+
};
|
|
77
|
+
snapshot: {
|
|
78
|
+
kind: "native-fs" | "native-dir" | "native-snapshot-id" | "tar-only" | "none";
|
|
79
|
+
hasTarFallback: boolean;
|
|
80
|
+
};
|
|
81
|
+
portExposure: {
|
|
82
|
+
kind: PortExposureKind;
|
|
83
|
+
supportsOnDemandPorts: boolean;
|
|
84
|
+
};
|
|
85
|
+
workspaceRoot: string;
|
|
86
|
+
nativeBucketMount: boolean;
|
|
87
|
+
persistable: boolean;
|
|
88
|
+
supportsRunAs: boolean;
|
|
89
|
+
};
|
|
90
|
+
declare const DESKTOP_STREAM_PORT = 6080;
|
|
91
|
+
declare const TERMINAL_STREAM_PORT = 7681;
|
|
92
|
+
declare const CAPABILITY_DESCRIPTORS: Record<SandboxBackend, CapabilityDescriptor>;
|
|
19
93
|
declare const ReasoningEffort: z.ZodEnum<{
|
|
20
94
|
none: "none";
|
|
21
95
|
minimal: "minimal";
|
|
@@ -84,8 +158,13 @@ declare const Permission: z.ZodEnum<{
|
|
|
84
158
|
"sessions:create": "sessions:create";
|
|
85
159
|
"sessions:read": "sessions:read";
|
|
86
160
|
"sessions:control": "sessions:control";
|
|
161
|
+
"stream:view": "stream:view";
|
|
162
|
+
"stream:control": "stream:control";
|
|
163
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
87
164
|
"files:upload": "files:upload";
|
|
88
165
|
"files:read": "files:read";
|
|
166
|
+
"files:write": "files:write";
|
|
167
|
+
"terminal:attach": "terminal:attach";
|
|
89
168
|
"documents:manage": "documents:manage";
|
|
90
169
|
"documents:search": "documents:search";
|
|
91
170
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -169,8 +248,13 @@ declare const AccountGrant: z.ZodObject<{
|
|
|
169
248
|
"sessions:create": "sessions:create";
|
|
170
249
|
"sessions:read": "sessions:read";
|
|
171
250
|
"sessions:control": "sessions:control";
|
|
251
|
+
"stream:view": "stream:view";
|
|
252
|
+
"stream:control": "stream:control";
|
|
253
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
172
254
|
"files:upload": "files:upload";
|
|
173
255
|
"files:read": "files:read";
|
|
256
|
+
"files:write": "files:write";
|
|
257
|
+
"terminal:attach": "terminal:attach";
|
|
174
258
|
"documents:manage": "documents:manage";
|
|
175
259
|
"documents:search": "documents:search";
|
|
176
260
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -202,8 +286,13 @@ declare const AccessGrant: z.ZodObject<{
|
|
|
202
286
|
"sessions:create": "sessions:create";
|
|
203
287
|
"sessions:read": "sessions:read";
|
|
204
288
|
"sessions:control": "sessions:control";
|
|
289
|
+
"stream:view": "stream:view";
|
|
290
|
+
"stream:control": "stream:control";
|
|
291
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
205
292
|
"files:upload": "files:upload";
|
|
206
293
|
"files:read": "files:read";
|
|
294
|
+
"files:write": "files:write";
|
|
295
|
+
"terminal:attach": "terminal:attach";
|
|
207
296
|
"documents:manage": "documents:manage";
|
|
208
297
|
"documents:search": "documents:search";
|
|
209
298
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -247,8 +336,13 @@ declare const AccessContext: z.ZodObject<{
|
|
|
247
336
|
"sessions:create": "sessions:create";
|
|
248
337
|
"sessions:read": "sessions:read";
|
|
249
338
|
"sessions:control": "sessions:control";
|
|
339
|
+
"stream:view": "stream:view";
|
|
340
|
+
"stream:control": "stream:control";
|
|
341
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
250
342
|
"files:upload": "files:upload";
|
|
251
343
|
"files:read": "files:read";
|
|
344
|
+
"files:write": "files:write";
|
|
345
|
+
"terminal:attach": "terminal:attach";
|
|
252
346
|
"documents:manage": "documents:manage";
|
|
253
347
|
"documents:search": "documents:search";
|
|
254
348
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -279,8 +373,13 @@ declare const AccessContext: z.ZodObject<{
|
|
|
279
373
|
"sessions:create": "sessions:create";
|
|
280
374
|
"sessions:read": "sessions:read";
|
|
281
375
|
"sessions:control": "sessions:control";
|
|
376
|
+
"stream:view": "stream:view";
|
|
377
|
+
"stream:control": "stream:control";
|
|
378
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
282
379
|
"files:upload": "files:upload";
|
|
283
380
|
"files:read": "files:read";
|
|
381
|
+
"files:write": "files:write";
|
|
382
|
+
"terminal:attach": "terminal:attach";
|
|
284
383
|
"documents:manage": "documents:manage";
|
|
285
384
|
"documents:search": "documents:search";
|
|
286
385
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -315,8 +414,13 @@ declare const DelegatedAccessTokenPayload: z.ZodObject<{
|
|
|
315
414
|
"sessions:create": "sessions:create";
|
|
316
415
|
"sessions:read": "sessions:read";
|
|
317
416
|
"sessions:control": "sessions:control";
|
|
417
|
+
"stream:view": "stream:view";
|
|
418
|
+
"stream:control": "stream:control";
|
|
419
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
318
420
|
"files:upload": "files:upload";
|
|
319
421
|
"files:read": "files:read";
|
|
422
|
+
"files:write": "files:write";
|
|
423
|
+
"terminal:attach": "terminal:attach";
|
|
320
424
|
"documents:manage": "documents:manage";
|
|
321
425
|
"documents:search": "documents:search";
|
|
322
426
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -334,6 +438,31 @@ declare const DelegatedAccessTokenPayload: z.ZodObject<{
|
|
|
334
438
|
type DelegatedAccessTokenPayload = z.infer<typeof DelegatedAccessTokenPayload>;
|
|
335
439
|
declare function signDelegatedAccessToken(secret: string, payload: DelegatedAccessTokenPayload): Promise<string>;
|
|
336
440
|
declare function verifyDelegatedAccessToken(secret: string, token: string, nowSeconds?: number): Promise<DelegatedAccessTokenPayload | null>;
|
|
441
|
+
declare const StreamTokenPayload: z.ZodObject<{
|
|
442
|
+
workspaceId: z.ZodString;
|
|
443
|
+
sessionId: z.ZodString;
|
|
444
|
+
viewerId: z.ZodString;
|
|
445
|
+
leaseEpoch: z.ZodNumber;
|
|
446
|
+
mode: z.ZodEnum<{
|
|
447
|
+
view: "view";
|
|
448
|
+
control: "control";
|
|
449
|
+
}>;
|
|
450
|
+
port: z.ZodNumber;
|
|
451
|
+
exp: z.ZodNumber;
|
|
452
|
+
}, z.core.$strip>;
|
|
453
|
+
type StreamTokenPayload = z.infer<typeof StreamTokenPayload>;
|
|
454
|
+
declare function signStreamToken(secret: string, payload: StreamTokenPayload): Promise<string>;
|
|
455
|
+
/**
|
|
456
|
+
* Verify a stream token: rejects (returns null) on a bad prefix, malformed
|
|
457
|
+
* envelope, bad HMAC signature (constant-time), schema-invalid claims, or an
|
|
458
|
+
* expired token (`exp < now`). Mirrors verifyDelegatedAccessToken exactly.
|
|
459
|
+
*
|
|
460
|
+
* The epoch fence (claim.leaseEpoch vs the LIVE lease epoch) and the
|
|
461
|
+
* workspace/session scope are checked by the CALLER at use against the live
|
|
462
|
+
* lease + route params — verify proves the token is authentic + unexpired, the
|
|
463
|
+
* caller proves it is for THIS box's current epoch and THIS workspace+session.
|
|
464
|
+
*/
|
|
465
|
+
declare function verifyStreamToken(secret: string, token: string, nowSeconds?: number): Promise<StreamTokenPayload | null>;
|
|
337
466
|
declare const CreateWorkspaceRequest: z.ZodObject<{
|
|
338
467
|
accountId: z.ZodOptional<z.ZodString>;
|
|
339
468
|
name: z.ZodString;
|
|
@@ -367,8 +496,13 @@ declare const ApiKey: z.ZodObject<{
|
|
|
367
496
|
"sessions:create": "sessions:create";
|
|
368
497
|
"sessions:read": "sessions:read";
|
|
369
498
|
"sessions:control": "sessions:control";
|
|
499
|
+
"stream:view": "stream:view";
|
|
500
|
+
"stream:control": "stream:control";
|
|
501
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
370
502
|
"files:upload": "files:upload";
|
|
371
503
|
"files:read": "files:read";
|
|
504
|
+
"files:write": "files:write";
|
|
505
|
+
"terminal:attach": "terminal:attach";
|
|
372
506
|
"documents:manage": "documents:manage";
|
|
373
507
|
"documents:search": "documents:search";
|
|
374
508
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -402,8 +536,13 @@ declare const CreateApiKeyRequest: z.ZodObject<{
|
|
|
402
536
|
"sessions:create": "sessions:create";
|
|
403
537
|
"sessions:read": "sessions:read";
|
|
404
538
|
"sessions:control": "sessions:control";
|
|
539
|
+
"stream:view": "stream:view";
|
|
540
|
+
"stream:control": "stream:control";
|
|
541
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
405
542
|
"files:upload": "files:upload";
|
|
406
543
|
"files:read": "files:read";
|
|
544
|
+
"files:write": "files:write";
|
|
545
|
+
"terminal:attach": "terminal:attach";
|
|
407
546
|
"documents:manage": "documents:manage";
|
|
408
547
|
"documents:search": "documents:search";
|
|
409
548
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -437,8 +576,13 @@ declare const CreateApiKeyResponse: z.ZodObject<{
|
|
|
437
576
|
"sessions:create": "sessions:create";
|
|
438
577
|
"sessions:read": "sessions:read";
|
|
439
578
|
"sessions:control": "sessions:control";
|
|
579
|
+
"stream:view": "stream:view";
|
|
580
|
+
"stream:control": "stream:control";
|
|
581
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
440
582
|
"files:upload": "files:upload";
|
|
441
583
|
"files:read": "files:read";
|
|
584
|
+
"files:write": "files:write";
|
|
585
|
+
"terminal:attach": "terminal:attach";
|
|
442
586
|
"documents:manage": "documents:manage";
|
|
443
587
|
"documents:search": "documents:search";
|
|
444
588
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -459,6 +603,151 @@ declare const CreateApiKeyResponse: z.ZodObject<{
|
|
|
459
603
|
token: z.ZodString;
|
|
460
604
|
}, z.core.$strip>;
|
|
461
605
|
type CreateApiKeyResponse = z.infer<typeof CreateApiKeyResponse>;
|
|
606
|
+
declare const WorkspaceMember: z.ZodObject<{
|
|
607
|
+
subjectId: z.ZodString;
|
|
608
|
+
subjectLabel: z.ZodNullable<z.ZodString>;
|
|
609
|
+
role: z.ZodString;
|
|
610
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
611
|
+
"account:read": "account:read";
|
|
612
|
+
"account:admin": "account:admin";
|
|
613
|
+
"members:manage": "members:manage";
|
|
614
|
+
"workspace:create": "workspace:create";
|
|
615
|
+
"billing:read": "billing:read";
|
|
616
|
+
"billing:manage": "billing:manage";
|
|
617
|
+
"workspace:read": "workspace:read";
|
|
618
|
+
"workspace:admin": "workspace:admin";
|
|
619
|
+
"sessions:create": "sessions:create";
|
|
620
|
+
"sessions:read": "sessions:read";
|
|
621
|
+
"sessions:control": "sessions:control";
|
|
622
|
+
"stream:view": "stream:view";
|
|
623
|
+
"stream:control": "stream:control";
|
|
624
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
625
|
+
"files:upload": "files:upload";
|
|
626
|
+
"files:read": "files:read";
|
|
627
|
+
"files:write": "files:write";
|
|
628
|
+
"terminal:attach": "terminal:attach";
|
|
629
|
+
"documents:manage": "documents:manage";
|
|
630
|
+
"documents:search": "documents:search";
|
|
631
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
632
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
633
|
+
"github:manage": "github:manage";
|
|
634
|
+
"github:use": "github:use";
|
|
635
|
+
"api_keys:manage": "api_keys:manage";
|
|
636
|
+
"environments:manage": "environments:manage";
|
|
637
|
+
"environments:use": "environments:use";
|
|
638
|
+
"goals:manage": "goals:manage";
|
|
639
|
+
}>>;
|
|
640
|
+
createdAt: z.ZodString;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
type WorkspaceMember = z.infer<typeof WorkspaceMember>;
|
|
643
|
+
declare const ListWorkspaceMembersResponse: z.ZodObject<{
|
|
644
|
+
members: z.ZodArray<z.ZodObject<{
|
|
645
|
+
subjectId: z.ZodString;
|
|
646
|
+
subjectLabel: z.ZodNullable<z.ZodString>;
|
|
647
|
+
role: z.ZodString;
|
|
648
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
649
|
+
"account:read": "account:read";
|
|
650
|
+
"account:admin": "account:admin";
|
|
651
|
+
"members:manage": "members:manage";
|
|
652
|
+
"workspace:create": "workspace:create";
|
|
653
|
+
"billing:read": "billing:read";
|
|
654
|
+
"billing:manage": "billing:manage";
|
|
655
|
+
"workspace:read": "workspace:read";
|
|
656
|
+
"workspace:admin": "workspace:admin";
|
|
657
|
+
"sessions:create": "sessions:create";
|
|
658
|
+
"sessions:read": "sessions:read";
|
|
659
|
+
"sessions:control": "sessions:control";
|
|
660
|
+
"stream:view": "stream:view";
|
|
661
|
+
"stream:control": "stream:control";
|
|
662
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
663
|
+
"files:upload": "files:upload";
|
|
664
|
+
"files:read": "files:read";
|
|
665
|
+
"files:write": "files:write";
|
|
666
|
+
"terminal:attach": "terminal:attach";
|
|
667
|
+
"documents:manage": "documents:manage";
|
|
668
|
+
"documents:search": "documents:search";
|
|
669
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
670
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
671
|
+
"github:manage": "github:manage";
|
|
672
|
+
"github:use": "github:use";
|
|
673
|
+
"api_keys:manage": "api_keys:manage";
|
|
674
|
+
"environments:manage": "environments:manage";
|
|
675
|
+
"environments:use": "environments:use";
|
|
676
|
+
"goals:manage": "goals:manage";
|
|
677
|
+
}>>;
|
|
678
|
+
createdAt: z.ZodString;
|
|
679
|
+
}, z.core.$strip>>;
|
|
680
|
+
}, z.core.$strip>;
|
|
681
|
+
type ListWorkspaceMembersResponse = z.infer<typeof ListWorkspaceMembersResponse>;
|
|
682
|
+
declare const AddWorkspaceMemberRequest: z.ZodObject<{
|
|
683
|
+
email: z.ZodString;
|
|
684
|
+
role: z.ZodOptional<z.ZodString>;
|
|
685
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
686
|
+
"account:read": "account:read";
|
|
687
|
+
"account:admin": "account:admin";
|
|
688
|
+
"members:manage": "members:manage";
|
|
689
|
+
"workspace:create": "workspace:create";
|
|
690
|
+
"billing:read": "billing:read";
|
|
691
|
+
"billing:manage": "billing:manage";
|
|
692
|
+
"workspace:read": "workspace:read";
|
|
693
|
+
"workspace:admin": "workspace:admin";
|
|
694
|
+
"sessions:create": "sessions:create";
|
|
695
|
+
"sessions:read": "sessions:read";
|
|
696
|
+
"sessions:control": "sessions:control";
|
|
697
|
+
"stream:view": "stream:view";
|
|
698
|
+
"stream:control": "stream:control";
|
|
699
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
700
|
+
"files:upload": "files:upload";
|
|
701
|
+
"files:read": "files:read";
|
|
702
|
+
"files:write": "files:write";
|
|
703
|
+
"terminal:attach": "terminal:attach";
|
|
704
|
+
"documents:manage": "documents:manage";
|
|
705
|
+
"documents:search": "documents:search";
|
|
706
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
707
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
708
|
+
"github:manage": "github:manage";
|
|
709
|
+
"github:use": "github:use";
|
|
710
|
+
"api_keys:manage": "api_keys:manage";
|
|
711
|
+
"environments:manage": "environments:manage";
|
|
712
|
+
"environments:use": "environments:use";
|
|
713
|
+
"goals:manage": "goals:manage";
|
|
714
|
+
}>>;
|
|
715
|
+
}, z.core.$strip>;
|
|
716
|
+
type AddWorkspaceMemberRequest = z.infer<typeof AddWorkspaceMemberRequest>;
|
|
717
|
+
declare const UpdateWorkspaceMemberRequest: z.ZodObject<{
|
|
718
|
+
role: z.ZodOptional<z.ZodString>;
|
|
719
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
720
|
+
"account:read": "account:read";
|
|
721
|
+
"account:admin": "account:admin";
|
|
722
|
+
"members:manage": "members:manage";
|
|
723
|
+
"workspace:create": "workspace:create";
|
|
724
|
+
"billing:read": "billing:read";
|
|
725
|
+
"billing:manage": "billing:manage";
|
|
726
|
+
"workspace:read": "workspace:read";
|
|
727
|
+
"workspace:admin": "workspace:admin";
|
|
728
|
+
"sessions:create": "sessions:create";
|
|
729
|
+
"sessions:read": "sessions:read";
|
|
730
|
+
"sessions:control": "sessions:control";
|
|
731
|
+
"stream:view": "stream:view";
|
|
732
|
+
"stream:control": "stream:control";
|
|
733
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
734
|
+
"files:upload": "files:upload";
|
|
735
|
+
"files:read": "files:read";
|
|
736
|
+
"files:write": "files:write";
|
|
737
|
+
"terminal:attach": "terminal:attach";
|
|
738
|
+
"documents:manage": "documents:manage";
|
|
739
|
+
"documents:search": "documents:search";
|
|
740
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
741
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
742
|
+
"github:manage": "github:manage";
|
|
743
|
+
"github:use": "github:use";
|
|
744
|
+
"api_keys:manage": "api_keys:manage";
|
|
745
|
+
"environments:manage": "environments:manage";
|
|
746
|
+
"environments:use": "environments:use";
|
|
747
|
+
"goals:manage": "goals:manage";
|
|
748
|
+
}>>;
|
|
749
|
+
}, z.core.$strip>;
|
|
750
|
+
type UpdateWorkspaceMemberRequest = z.infer<typeof UpdateWorkspaceMemberRequest>;
|
|
462
751
|
declare const UsageEventType: z.ZodEnum<{
|
|
463
752
|
"agent_run.created": "agent_run.created";
|
|
464
753
|
"agent_run.completed": "agent_run.completed";
|
|
@@ -469,6 +758,8 @@ declare const UsageEventType: z.ZodEnum<{
|
|
|
469
758
|
"document.indexed": "document.indexed";
|
|
470
759
|
"scheduled_task.fired": "scheduled_task.fired";
|
|
471
760
|
"api_key.request": "api_key.request";
|
|
761
|
+
"sandbox.warm_seconds": "sandbox.warm_seconds";
|
|
762
|
+
"sandbox.warm_cost": "sandbox.warm_cost";
|
|
472
763
|
}>;
|
|
473
764
|
type UsageEventType = z.infer<typeof UsageEventType>;
|
|
474
765
|
declare const UsageEvent: z.ZodObject<{
|
|
@@ -486,6 +777,8 @@ declare const UsageEvent: z.ZodObject<{
|
|
|
486
777
|
"document.indexed": "document.indexed";
|
|
487
778
|
"scheduled_task.fired": "scheduled_task.fired";
|
|
488
779
|
"api_key.request": "api_key.request";
|
|
780
|
+
"sandbox.warm_seconds": "sandbox.warm_seconds";
|
|
781
|
+
"sandbox.warm_cost": "sandbox.warm_cost";
|
|
489
782
|
}>;
|
|
490
783
|
quantity: z.ZodNumber;
|
|
491
784
|
unit: z.ZodString;
|
|
@@ -817,6 +1110,10 @@ declare const UpdateSessionGoalRequest: z.ZodObject<{
|
|
|
817
1110
|
rationale: z.ZodOptional<z.ZodString>;
|
|
818
1111
|
}, z.core.$strip>;
|
|
819
1112
|
type UpdateSessionGoalRequest = z.infer<typeof UpdateSessionGoalRequest>;
|
|
1113
|
+
declare const UpdateSessionRequest: z.ZodObject<{
|
|
1114
|
+
title: z.ZodString;
|
|
1115
|
+
}, z.core.$strip>;
|
|
1116
|
+
type UpdateSessionRequest = z.infer<typeof UpdateSessionRequest>;
|
|
820
1117
|
/**
|
|
821
1118
|
* Clear a session's conversation context. `confirm` must be the literal `true`
|
|
822
1119
|
* so an accidental/empty POST cannot wipe context — the destructive intent is
|
|
@@ -912,7 +1209,18 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
912
1209
|
modal: "modal";
|
|
913
1210
|
local: "local";
|
|
914
1211
|
none: "none";
|
|
1212
|
+
daytona: "daytona";
|
|
1213
|
+
runloop: "runloop";
|
|
1214
|
+
e2b: "e2b";
|
|
1215
|
+
blaxel: "blaxel";
|
|
1216
|
+
cloudflare: "cloudflare";
|
|
1217
|
+
vercel: "vercel";
|
|
915
1218
|
}>;
|
|
1219
|
+
sandboxOs: z.ZodNullable<z.ZodEnum<{
|
|
1220
|
+
linux: "linux";
|
|
1221
|
+
macos: "macos";
|
|
1222
|
+
windows: "windows";
|
|
1223
|
+
}>>;
|
|
916
1224
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
917
1225
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
918
1226
|
finishedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -953,6 +1261,12 @@ declare const UpdateSessionTurnRequest: z.ZodObject<{
|
|
|
953
1261
|
modal: "modal";
|
|
954
1262
|
local: "local";
|
|
955
1263
|
none: "none";
|
|
1264
|
+
daytona: "daytona";
|
|
1265
|
+
runloop: "runloop";
|
|
1266
|
+
e2b: "e2b";
|
|
1267
|
+
blaxel: "blaxel";
|
|
1268
|
+
cloudflare: "cloudflare";
|
|
1269
|
+
vercel: "vercel";
|
|
956
1270
|
}>>;
|
|
957
1271
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
958
1272
|
}, z.core.$strip>;
|
|
@@ -1090,6 +1404,12 @@ declare const ScheduledTaskAgentConfig: z.ZodObject<{
|
|
|
1090
1404
|
modal: "modal";
|
|
1091
1405
|
local: "local";
|
|
1092
1406
|
none: "none";
|
|
1407
|
+
daytona: "daytona";
|
|
1408
|
+
runloop: "runloop";
|
|
1409
|
+
e2b: "e2b";
|
|
1410
|
+
blaxel: "blaxel";
|
|
1411
|
+
cloudflare: "cloudflare";
|
|
1412
|
+
vercel: "vercel";
|
|
1093
1413
|
}>>;
|
|
1094
1414
|
goal: z.ZodOptional<z.ZodObject<{
|
|
1095
1415
|
text: z.ZodString;
|
|
@@ -1175,6 +1495,12 @@ declare const ScheduledTask: z.ZodObject<{
|
|
|
1175
1495
|
modal: "modal";
|
|
1176
1496
|
local: "local";
|
|
1177
1497
|
none: "none";
|
|
1498
|
+
daytona: "daytona";
|
|
1499
|
+
runloop: "runloop";
|
|
1500
|
+
e2b: "e2b";
|
|
1501
|
+
blaxel: "blaxel";
|
|
1502
|
+
cloudflare: "cloudflare";
|
|
1503
|
+
vercel: "vercel";
|
|
1178
1504
|
}>>;
|
|
1179
1505
|
goal: z.ZodOptional<z.ZodObject<{
|
|
1180
1506
|
text: z.ZodString;
|
|
@@ -1281,6 +1607,12 @@ declare const CreateScheduledTaskRequest: z.ZodObject<{
|
|
|
1281
1607
|
modal: "modal";
|
|
1282
1608
|
local: "local";
|
|
1283
1609
|
none: "none";
|
|
1610
|
+
daytona: "daytona";
|
|
1611
|
+
runloop: "runloop";
|
|
1612
|
+
e2b: "e2b";
|
|
1613
|
+
blaxel: "blaxel";
|
|
1614
|
+
cloudflare: "cloudflare";
|
|
1615
|
+
vercel: "vercel";
|
|
1284
1616
|
}>>;
|
|
1285
1617
|
goal: z.ZodOptional<z.ZodObject<{
|
|
1286
1618
|
text: z.ZodString;
|
|
@@ -1365,6 +1697,12 @@ declare const UpdateScheduledTaskRequest: z.ZodObject<{
|
|
|
1365
1697
|
modal: "modal";
|
|
1366
1698
|
local: "local";
|
|
1367
1699
|
none: "none";
|
|
1700
|
+
daytona: "daytona";
|
|
1701
|
+
runloop: "runloop";
|
|
1702
|
+
e2b: "e2b";
|
|
1703
|
+
blaxel: "blaxel";
|
|
1704
|
+
cloudflare: "cloudflare";
|
|
1705
|
+
vercel: "vercel";
|
|
1368
1706
|
}>>;
|
|
1369
1707
|
goal: z.ZodOptional<z.ZodObject<{
|
|
1370
1708
|
text: z.ZodString;
|
|
@@ -2145,6 +2483,11 @@ declare const Session: z.ZodObject<{
|
|
|
2145
2483
|
cancelled: "cancelled";
|
|
2146
2484
|
}>;
|
|
2147
2485
|
initialMessage: z.ZodString;
|
|
2486
|
+
title: z.ZodNullable<z.ZodString>;
|
|
2487
|
+
titleSource: z.ZodNullable<z.ZodEnum<{
|
|
2488
|
+
user: "user";
|
|
2489
|
+
agent: "agent";
|
|
2490
|
+
}>>;
|
|
2148
2491
|
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2149
2492
|
kind: z.ZodLiteral<"repository">;
|
|
2150
2493
|
uri: z.ZodString;
|
|
@@ -2169,7 +2512,19 @@ declare const Session: z.ZodObject<{
|
|
|
2169
2512
|
modal: "modal";
|
|
2170
2513
|
local: "local";
|
|
2171
2514
|
none: "none";
|
|
2515
|
+
daytona: "daytona";
|
|
2516
|
+
runloop: "runloop";
|
|
2517
|
+
e2b: "e2b";
|
|
2518
|
+
blaxel: "blaxel";
|
|
2519
|
+
cloudflare: "cloudflare";
|
|
2520
|
+
vercel: "vercel";
|
|
2521
|
+
}>;
|
|
2522
|
+
sandboxOs: z.ZodEnum<{
|
|
2523
|
+
linux: "linux";
|
|
2524
|
+
macos: "macos";
|
|
2525
|
+
windows: "windows";
|
|
2172
2526
|
}>;
|
|
2527
|
+
sandboxGroupId: z.ZodString;
|
|
2173
2528
|
environmentId: z.ZodNullable<z.ZodString>;
|
|
2174
2529
|
firstPartyMcpPermissions: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
2175
2530
|
"account:read": "account:read";
|
|
@@ -2183,8 +2538,13 @@ declare const Session: z.ZodObject<{
|
|
|
2183
2538
|
"sessions:create": "sessions:create";
|
|
2184
2539
|
"sessions:read": "sessions:read";
|
|
2185
2540
|
"sessions:control": "sessions:control";
|
|
2541
|
+
"stream:view": "stream:view";
|
|
2542
|
+
"stream:control": "stream:control";
|
|
2543
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
2186
2544
|
"files:upload": "files:upload";
|
|
2187
2545
|
"files:read": "files:read";
|
|
2546
|
+
"files:write": "files:write";
|
|
2547
|
+
"terminal:attach": "terminal:attach";
|
|
2188
2548
|
"documents:manage": "documents:manage";
|
|
2189
2549
|
"documents:search": "documents:search";
|
|
2190
2550
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -2239,8 +2599,724 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
2239
2599
|
"goal.paused": "goal.paused";
|
|
2240
2600
|
"goal.resumed": "goal.resumed";
|
|
2241
2601
|
"goal.continuation": "goal.continuation";
|
|
2602
|
+
"stream.url.rotated": "stream.url.rotated";
|
|
2603
|
+
"stream.opened": "stream.opened";
|
|
2604
|
+
"stream.closed": "stream.closed";
|
|
2605
|
+
"stream.revoked": "stream.revoked";
|
|
2606
|
+
"recording.started": "recording.started";
|
|
2607
|
+
"recording.available": "recording.available";
|
|
2608
|
+
"recording.failed": "recording.failed";
|
|
2609
|
+
"fs.changed": "fs.changed";
|
|
2610
|
+
"git.changed": "git.changed";
|
|
2611
|
+
"terminal.pty.started": "terminal.pty.started";
|
|
2612
|
+
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
2613
|
+
"terminal.pty.exited": "terminal.pty.exited";
|
|
2614
|
+
"session.title_set": "session.title_set";
|
|
2242
2615
|
}>;
|
|
2243
2616
|
type SessionEventType = z.infer<typeof SessionEventType>;
|
|
2617
|
+
declare const StreamUrlRotatedPayload: z.ZodObject<{
|
|
2618
|
+
url: z.ZodString;
|
|
2619
|
+
token: z.ZodNullable<z.ZodString>;
|
|
2620
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
2621
|
+
leaseEpoch: z.ZodNumber;
|
|
2622
|
+
transport: z.ZodLiteral<"vnc-ws">;
|
|
2623
|
+
viewerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2624
|
+
}, z.core.$strip>;
|
|
2625
|
+
type StreamUrlRotatedPayload = z.infer<typeof StreamUrlRotatedPayload>;
|
|
2626
|
+
declare const StreamOpenedPayload: z.ZodObject<{
|
|
2627
|
+
viewerId: z.ZodString;
|
|
2628
|
+
shared: z.ZodDefault<z.ZodBoolean>;
|
|
2629
|
+
viewerCount: z.ZodNumber;
|
|
2630
|
+
}, z.core.$strip>;
|
|
2631
|
+
type StreamOpenedPayload = z.infer<typeof StreamOpenedPayload>;
|
|
2632
|
+
declare const StreamClosedPayload: z.ZodObject<{
|
|
2633
|
+
viewerId: z.ZodString;
|
|
2634
|
+
reason: z.ZodEnum<{
|
|
2635
|
+
"client-disconnect": "client-disconnect";
|
|
2636
|
+
reaped: "reaped";
|
|
2637
|
+
revoked: "revoked";
|
|
2638
|
+
"box-rollover": "box-rollover";
|
|
2639
|
+
}>;
|
|
2640
|
+
viewerCount: z.ZodNumber;
|
|
2641
|
+
}, z.core.$strip>;
|
|
2642
|
+
type StreamClosedPayload = z.infer<typeof StreamClosedPayload>;
|
|
2643
|
+
declare const StreamRevokedPayload: z.ZodObject<{
|
|
2644
|
+
viewerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2645
|
+
reason: z.ZodEnum<{
|
|
2646
|
+
admin: "admin";
|
|
2647
|
+
"grant-revoked": "grant-revoked";
|
|
2648
|
+
"session-failed": "session-failed";
|
|
2649
|
+
}>;
|
|
2650
|
+
}, z.core.$strip>;
|
|
2651
|
+
type StreamRevokedPayload = z.infer<typeof StreamRevokedPayload>;
|
|
2652
|
+
declare const RecordingMode: z.ZodEnum<{
|
|
2653
|
+
manual: "manual";
|
|
2654
|
+
"on-turn": "on-turn";
|
|
2655
|
+
"on-verify": "on-verify";
|
|
2656
|
+
}>;
|
|
2657
|
+
type RecordingMode = z.infer<typeof RecordingMode>;
|
|
2658
|
+
declare const RecordingCodec: z.ZodEnum<{
|
|
2659
|
+
"h264-mp4": "h264-mp4";
|
|
2660
|
+
"vp9-webm": "vp9-webm";
|
|
2661
|
+
}>;
|
|
2662
|
+
type RecordingCodec = z.infer<typeof RecordingCodec>;
|
|
2663
|
+
declare const RecordingContentType: z.ZodEnum<{
|
|
2664
|
+
"video/mp4": "video/mp4";
|
|
2665
|
+
"video/webm": "video/webm";
|
|
2666
|
+
}>;
|
|
2667
|
+
type RecordingContentType = z.infer<typeof RecordingContentType>;
|
|
2668
|
+
declare const RecordingStartedPayload: z.ZodObject<{
|
|
2669
|
+
recordingId: z.ZodString;
|
|
2670
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
2671
|
+
mode: z.ZodEnum<{
|
|
2672
|
+
manual: "manual";
|
|
2673
|
+
"on-turn": "on-turn";
|
|
2674
|
+
"on-verify": "on-verify";
|
|
2675
|
+
}>;
|
|
2676
|
+
codec: z.ZodEnum<{
|
|
2677
|
+
"h264-mp4": "h264-mp4";
|
|
2678
|
+
"vp9-webm": "vp9-webm";
|
|
2679
|
+
}>;
|
|
2680
|
+
dimensions: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
2681
|
+
framerate: z.ZodNumber;
|
|
2682
|
+
startedAt: z.ZodString;
|
|
2683
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2684
|
+
}, z.core.$strip>;
|
|
2685
|
+
type RecordingStartedPayload = z.infer<typeof RecordingStartedPayload>;
|
|
2686
|
+
declare const RecordingAvailablePayload: z.ZodObject<{
|
|
2687
|
+
recordingId: z.ZodString;
|
|
2688
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
2689
|
+
codec: z.ZodEnum<{
|
|
2690
|
+
"h264-mp4": "h264-mp4";
|
|
2691
|
+
"vp9-webm": "vp9-webm";
|
|
2692
|
+
}>;
|
|
2693
|
+
contentType: z.ZodEnum<{
|
|
2694
|
+
"video/mp4": "video/mp4";
|
|
2695
|
+
"video/webm": "video/webm";
|
|
2696
|
+
}>;
|
|
2697
|
+
storageKey: z.ZodString;
|
|
2698
|
+
durationSeconds: z.ZodNullable<z.ZodNumber>;
|
|
2699
|
+
sizeBytes: z.ZodNumber;
|
|
2700
|
+
dimensions: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
2701
|
+
}, z.core.$strip>;
|
|
2702
|
+
type RecordingAvailablePayload = z.infer<typeof RecordingAvailablePayload>;
|
|
2703
|
+
declare const RecordingFailedReason: z.ZodEnum<{
|
|
2704
|
+
"box-rollover": "box-rollover";
|
|
2705
|
+
"ffmpeg-error": "ffmpeg-error";
|
|
2706
|
+
"box-death": "box-death";
|
|
2707
|
+
"upload-failed": "upload-failed";
|
|
2708
|
+
"max-bytes-exceeded": "max-bytes-exceeded";
|
|
2709
|
+
"display-unavailable": "display-unavailable";
|
|
2710
|
+
}>;
|
|
2711
|
+
type RecordingFailedReason = z.infer<typeof RecordingFailedReason>;
|
|
2712
|
+
declare const RecordingFailedPayload: z.ZodObject<{
|
|
2713
|
+
recordingId: z.ZodString;
|
|
2714
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
2715
|
+
reason: z.ZodEnum<{
|
|
2716
|
+
"box-rollover": "box-rollover";
|
|
2717
|
+
"ffmpeg-error": "ffmpeg-error";
|
|
2718
|
+
"box-death": "box-death";
|
|
2719
|
+
"upload-failed": "upload-failed";
|
|
2720
|
+
"max-bytes-exceeded": "max-bytes-exceeded";
|
|
2721
|
+
"display-unavailable": "display-unavailable";
|
|
2722
|
+
}>;
|
|
2723
|
+
detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2724
|
+
}, z.core.$strip>;
|
|
2725
|
+
type RecordingFailedPayload = z.infer<typeof RecordingFailedPayload>;
|
|
2726
|
+
declare const SandboxCommandOutputDeltaPayload: z.ZodObject<{
|
|
2727
|
+
stream: z.ZodDefault<z.ZodEnum<{
|
|
2728
|
+
stdout: "stdout";
|
|
2729
|
+
stderr: "stderr";
|
|
2730
|
+
}>>;
|
|
2731
|
+
chunk: z.ZodString;
|
|
2732
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
2733
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
2734
|
+
}, z.core.$strip>;
|
|
2735
|
+
type SandboxCommandOutputDeltaPayload = z.infer<typeof SandboxCommandOutputDeltaPayload>;
|
|
2736
|
+
declare const FsChangeKind: z.ZodEnum<{
|
|
2737
|
+
deleted: "deleted";
|
|
2738
|
+
created: "created";
|
|
2739
|
+
modified: "modified";
|
|
2740
|
+
renamed: "renamed";
|
|
2741
|
+
}>;
|
|
2742
|
+
type FsChangeKind = z.infer<typeof FsChangeKind>;
|
|
2743
|
+
declare const FsChangedPayload: z.ZodObject<{
|
|
2744
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2745
|
+
path: z.ZodString;
|
|
2746
|
+
kind: z.ZodEnum<{
|
|
2747
|
+
deleted: "deleted";
|
|
2748
|
+
created: "created";
|
|
2749
|
+
modified: "modified";
|
|
2750
|
+
renamed: "renamed";
|
|
2751
|
+
}>;
|
|
2752
|
+
isDir: z.ZodDefault<z.ZodBoolean>;
|
|
2753
|
+
sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2754
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
}, z.core.$strip>>;
|
|
2756
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
2757
|
+
agent: "agent";
|
|
2758
|
+
write: "write";
|
|
2759
|
+
watch: "watch";
|
|
2760
|
+
}>>;
|
|
2761
|
+
revision: z.ZodNumber;
|
|
2762
|
+
leaseEpoch: z.ZodDefault<z.ZodNumber>;
|
|
2763
|
+
}, z.core.$strip>;
|
|
2764
|
+
type FsChangedPayload = z.infer<typeof FsChangedPayload>;
|
|
2765
|
+
declare const GitChangedPayload: z.ZodObject<{
|
|
2766
|
+
head: z.ZodNullable<z.ZodString>;
|
|
2767
|
+
dirty: z.ZodBoolean;
|
|
2768
|
+
ahead: z.ZodDefault<z.ZodNumber>;
|
|
2769
|
+
behind: z.ZodDefault<z.ZodNumber>;
|
|
2770
|
+
changedFileCount: z.ZodNumber;
|
|
2771
|
+
reason: z.ZodDefault<z.ZodEnum<{
|
|
2772
|
+
unknown: "unknown";
|
|
2773
|
+
commit: "commit";
|
|
2774
|
+
checkout: "checkout";
|
|
2775
|
+
stage: "stage";
|
|
2776
|
+
worktree: "worktree";
|
|
2777
|
+
fetch: "fetch";
|
|
2778
|
+
}>>;
|
|
2779
|
+
revision: z.ZodDefault<z.ZodNumber>;
|
|
2780
|
+
leaseEpoch: z.ZodDefault<z.ZodNumber>;
|
|
2781
|
+
}, z.core.$strip>;
|
|
2782
|
+
type GitChangedPayload = z.infer<typeof GitChangedPayload>;
|
|
2783
|
+
declare const TerminalPtyStartedPayload: z.ZodObject<{
|
|
2784
|
+
ptyId: z.ZodString;
|
|
2785
|
+
cols: z.ZodNumber;
|
|
2786
|
+
rows: z.ZodNumber;
|
|
2787
|
+
shell: z.ZodString;
|
|
2788
|
+
cwd: z.ZodString;
|
|
2789
|
+
}, z.core.$strip>;
|
|
2790
|
+
type TerminalPtyStartedPayload = z.infer<typeof TerminalPtyStartedPayload>;
|
|
2791
|
+
declare const TerminalPtyOutputDeltaPayload: z.ZodObject<{
|
|
2792
|
+
ptyId: z.ZodString;
|
|
2793
|
+
stream: z.ZodDefault<z.ZodEnum<{
|
|
2794
|
+
stdout: "stdout";
|
|
2795
|
+
stderr: "stderr";
|
|
2796
|
+
}>>;
|
|
2797
|
+
chunk: z.ZodString;
|
|
2798
|
+
seq: z.ZodNumber;
|
|
2799
|
+
}, z.core.$strip>;
|
|
2800
|
+
type TerminalPtyOutputDeltaPayload = z.infer<typeof TerminalPtyOutputDeltaPayload>;
|
|
2801
|
+
declare const TerminalPtyExitedPayload: z.ZodObject<{
|
|
2802
|
+
ptyId: z.ZodString;
|
|
2803
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
2804
|
+
reason: z.ZodEnum<{
|
|
2805
|
+
exit: "exit";
|
|
2806
|
+
killed: "killed";
|
|
2807
|
+
owner_gone: "owner_gone";
|
|
2808
|
+
timeout: "timeout";
|
|
2809
|
+
}>;
|
|
2810
|
+
}, z.core.$strip>;
|
|
2811
|
+
type TerminalPtyExitedPayload = z.infer<typeof TerminalPtyExitedPayload>;
|
|
2812
|
+
declare const FsNodeType: z.ZodEnum<{
|
|
2813
|
+
file: "file";
|
|
2814
|
+
dir: "dir";
|
|
2815
|
+
symlink: "symlink";
|
|
2816
|
+
other: "other";
|
|
2817
|
+
}>;
|
|
2818
|
+
type FsNodeType = z.infer<typeof FsNodeType>;
|
|
2819
|
+
interface FsTreeNode {
|
|
2820
|
+
name: string;
|
|
2821
|
+
path: string;
|
|
2822
|
+
type: z.infer<typeof FsNodeType>;
|
|
2823
|
+
sizeBytes: number | null;
|
|
2824
|
+
mtimeMs: number | null;
|
|
2825
|
+
mode: number | null;
|
|
2826
|
+
children?: FsTreeNode[] | undefined;
|
|
2827
|
+
truncated: boolean;
|
|
2828
|
+
}
|
|
2829
|
+
declare const FsTreeNode: z.ZodType<FsTreeNode>;
|
|
2830
|
+
declare const FsListRequest: z.ZodObject<{
|
|
2831
|
+
path: z.ZodDefault<z.ZodString>;
|
|
2832
|
+
depth: z.ZodDefault<z.ZodNumber>;
|
|
2833
|
+
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
2834
|
+
includeHidden: z.ZodDefault<z.ZodBoolean>;
|
|
2835
|
+
}, z.core.$strip>;
|
|
2836
|
+
type FsListRequest = z.infer<typeof FsListRequest>;
|
|
2837
|
+
declare const FsListResponse: z.ZodObject<{
|
|
2838
|
+
root: z.ZodType<FsTreeNode, unknown, z.core.$ZodTypeInternals<FsTreeNode, unknown>>;
|
|
2839
|
+
revision: z.ZodNumber;
|
|
2840
|
+
truncated: z.ZodBoolean;
|
|
2841
|
+
}, z.core.$strip>;
|
|
2842
|
+
type FsListResponse = z.infer<typeof FsListResponse>;
|
|
2843
|
+
declare const FsEncoding: z.ZodEnum<{
|
|
2844
|
+
utf8: "utf8";
|
|
2845
|
+
base64: "base64";
|
|
2846
|
+
}>;
|
|
2847
|
+
type FsEncoding = z.infer<typeof FsEncoding>;
|
|
2848
|
+
declare const FsReadRequest: z.ZodObject<{
|
|
2849
|
+
path: z.ZodString;
|
|
2850
|
+
encoding: z.ZodDefault<z.ZodEnum<{
|
|
2851
|
+
utf8: "utf8";
|
|
2852
|
+
base64: "base64";
|
|
2853
|
+
}>>;
|
|
2854
|
+
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
2855
|
+
}, z.core.$strip>;
|
|
2856
|
+
type FsReadRequest = z.infer<typeof FsReadRequest>;
|
|
2857
|
+
declare const FsReadResponse: z.ZodObject<{
|
|
2858
|
+
path: z.ZodString;
|
|
2859
|
+
encoding: z.ZodEnum<{
|
|
2860
|
+
utf8: "utf8";
|
|
2861
|
+
base64: "base64";
|
|
2862
|
+
}>;
|
|
2863
|
+
content: z.ZodString;
|
|
2864
|
+
sizeBytes: z.ZodNumber;
|
|
2865
|
+
truncated: z.ZodBoolean;
|
|
2866
|
+
isBinary: z.ZodBoolean;
|
|
2867
|
+
revision: z.ZodNumber;
|
|
2868
|
+
}, z.core.$strip>;
|
|
2869
|
+
type FsReadResponse = z.infer<typeof FsReadResponse>;
|
|
2870
|
+
declare const FsWriteRequest: z.ZodObject<{
|
|
2871
|
+
path: z.ZodString;
|
|
2872
|
+
encoding: z.ZodDefault<z.ZodEnum<{
|
|
2873
|
+
utf8: "utf8";
|
|
2874
|
+
base64: "base64";
|
|
2875
|
+
}>>;
|
|
2876
|
+
content: z.ZodString;
|
|
2877
|
+
overwrite: z.ZodDefault<z.ZodBoolean>;
|
|
2878
|
+
createParents: z.ZodDefault<z.ZodBoolean>;
|
|
2879
|
+
}, z.core.$strip>;
|
|
2880
|
+
type FsWriteRequest = z.infer<typeof FsWriteRequest>;
|
|
2881
|
+
declare const FsWriteResponse: z.ZodObject<{
|
|
2882
|
+
path: z.ZodString;
|
|
2883
|
+
sizeBytes: z.ZodNumber;
|
|
2884
|
+
revision: z.ZodNumber;
|
|
2885
|
+
}, z.core.$strip>;
|
|
2886
|
+
type FsWriteResponse = z.infer<typeof FsWriteResponse>;
|
|
2887
|
+
declare const FsDeleteRequest: z.ZodObject<{
|
|
2888
|
+
path: z.ZodString;
|
|
2889
|
+
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
2890
|
+
}, z.core.$strip>;
|
|
2891
|
+
type FsDeleteRequest = z.infer<typeof FsDeleteRequest>;
|
|
2892
|
+
declare const FsDeleteResponse: z.ZodObject<{
|
|
2893
|
+
revision: z.ZodNumber;
|
|
2894
|
+
}, z.core.$strip>;
|
|
2895
|
+
type FsDeleteResponse = z.infer<typeof FsDeleteResponse>;
|
|
2896
|
+
declare const FsMoveRequest: z.ZodObject<{
|
|
2897
|
+
path: z.ZodString;
|
|
2898
|
+
newPath: z.ZodString;
|
|
2899
|
+
overwrite: z.ZodDefault<z.ZodBoolean>;
|
|
2900
|
+
createParents: z.ZodDefault<z.ZodBoolean>;
|
|
2901
|
+
}, z.core.$strip>;
|
|
2902
|
+
type FsMoveRequest = z.infer<typeof FsMoveRequest>;
|
|
2903
|
+
declare const FsMoveResponse: z.ZodObject<{
|
|
2904
|
+
path: z.ZodString;
|
|
2905
|
+
newPath: z.ZodString;
|
|
2906
|
+
revision: z.ZodNumber;
|
|
2907
|
+
}, z.core.$strip>;
|
|
2908
|
+
type FsMoveResponse = z.infer<typeof FsMoveResponse>;
|
|
2909
|
+
declare const FsMkdirRequest: z.ZodObject<{
|
|
2910
|
+
path: z.ZodString;
|
|
2911
|
+
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
2912
|
+
}, z.core.$strip>;
|
|
2913
|
+
type FsMkdirRequest = z.infer<typeof FsMkdirRequest>;
|
|
2914
|
+
declare const FsMkdirResponse: z.ZodObject<{
|
|
2915
|
+
path: z.ZodString;
|
|
2916
|
+
revision: z.ZodNumber;
|
|
2917
|
+
}, z.core.$strip>;
|
|
2918
|
+
type FsMkdirResponse = z.infer<typeof FsMkdirResponse>;
|
|
2919
|
+
declare const GitFileStatusCode: z.ZodEnum<{
|
|
2920
|
+
deleted: "deleted";
|
|
2921
|
+
modified: "modified";
|
|
2922
|
+
renamed: "renamed";
|
|
2923
|
+
added: "added";
|
|
2924
|
+
copied: "copied";
|
|
2925
|
+
untracked: "untracked";
|
|
2926
|
+
ignored: "ignored";
|
|
2927
|
+
conflicted: "conflicted";
|
|
2928
|
+
typechange: "typechange";
|
|
2929
|
+
}>;
|
|
2930
|
+
type GitFileStatusCode = z.infer<typeof GitFileStatusCode>;
|
|
2931
|
+
declare const GitFileStatus: z.ZodObject<{
|
|
2932
|
+
path: z.ZodString;
|
|
2933
|
+
oldPath: z.ZodNullable<z.ZodString>;
|
|
2934
|
+
index: z.ZodNullable<z.ZodEnum<{
|
|
2935
|
+
deleted: "deleted";
|
|
2936
|
+
modified: "modified";
|
|
2937
|
+
renamed: "renamed";
|
|
2938
|
+
added: "added";
|
|
2939
|
+
copied: "copied";
|
|
2940
|
+
untracked: "untracked";
|
|
2941
|
+
ignored: "ignored";
|
|
2942
|
+
conflicted: "conflicted";
|
|
2943
|
+
typechange: "typechange";
|
|
2944
|
+
}>>;
|
|
2945
|
+
worktree: z.ZodNullable<z.ZodEnum<{
|
|
2946
|
+
deleted: "deleted";
|
|
2947
|
+
modified: "modified";
|
|
2948
|
+
renamed: "renamed";
|
|
2949
|
+
added: "added";
|
|
2950
|
+
copied: "copied";
|
|
2951
|
+
untracked: "untracked";
|
|
2952
|
+
ignored: "ignored";
|
|
2953
|
+
conflicted: "conflicted";
|
|
2954
|
+
typechange: "typechange";
|
|
2955
|
+
}>>;
|
|
2956
|
+
isConflicted: z.ZodDefault<z.ZodBoolean>;
|
|
2957
|
+
}, z.core.$strip>;
|
|
2958
|
+
type GitFileStatus = z.infer<typeof GitFileStatus>;
|
|
2959
|
+
declare const GitStatusRequest: z.ZodObject<{
|
|
2960
|
+
path: z.ZodDefault<z.ZodString>;
|
|
2961
|
+
}, z.core.$strip>;
|
|
2962
|
+
type GitStatusRequest = z.infer<typeof GitStatusRequest>;
|
|
2963
|
+
declare const GitStatusResponse: z.ZodObject<{
|
|
2964
|
+
isRepo: z.ZodBoolean;
|
|
2965
|
+
head: z.ZodNullable<z.ZodString>;
|
|
2966
|
+
detached: z.ZodDefault<z.ZodBoolean>;
|
|
2967
|
+
upstream: z.ZodNullable<z.ZodString>;
|
|
2968
|
+
ahead: z.ZodDefault<z.ZodNumber>;
|
|
2969
|
+
behind: z.ZodDefault<z.ZodNumber>;
|
|
2970
|
+
files: z.ZodArray<z.ZodObject<{
|
|
2971
|
+
path: z.ZodString;
|
|
2972
|
+
oldPath: z.ZodNullable<z.ZodString>;
|
|
2973
|
+
index: z.ZodNullable<z.ZodEnum<{
|
|
2974
|
+
deleted: "deleted";
|
|
2975
|
+
modified: "modified";
|
|
2976
|
+
renamed: "renamed";
|
|
2977
|
+
added: "added";
|
|
2978
|
+
copied: "copied";
|
|
2979
|
+
untracked: "untracked";
|
|
2980
|
+
ignored: "ignored";
|
|
2981
|
+
conflicted: "conflicted";
|
|
2982
|
+
typechange: "typechange";
|
|
2983
|
+
}>>;
|
|
2984
|
+
worktree: z.ZodNullable<z.ZodEnum<{
|
|
2985
|
+
deleted: "deleted";
|
|
2986
|
+
modified: "modified";
|
|
2987
|
+
renamed: "renamed";
|
|
2988
|
+
added: "added";
|
|
2989
|
+
copied: "copied";
|
|
2990
|
+
untracked: "untracked";
|
|
2991
|
+
ignored: "ignored";
|
|
2992
|
+
conflicted: "conflicted";
|
|
2993
|
+
typechange: "typechange";
|
|
2994
|
+
}>>;
|
|
2995
|
+
isConflicted: z.ZodDefault<z.ZodBoolean>;
|
|
2996
|
+
}, z.core.$strip>>;
|
|
2997
|
+
revision: z.ZodNumber;
|
|
2998
|
+
}, z.core.$strip>;
|
|
2999
|
+
type GitStatusResponse = z.infer<typeof GitStatusResponse>;
|
|
3000
|
+
declare const GitDiffLineType: z.ZodEnum<{
|
|
3001
|
+
context: "context";
|
|
3002
|
+
add: "add";
|
|
3003
|
+
del: "del";
|
|
3004
|
+
meta: "meta";
|
|
3005
|
+
}>;
|
|
3006
|
+
type GitDiffLineType = z.infer<typeof GitDiffLineType>;
|
|
3007
|
+
declare const GitDiffLine: z.ZodObject<{
|
|
3008
|
+
type: z.ZodEnum<{
|
|
3009
|
+
context: "context";
|
|
3010
|
+
add: "add";
|
|
3011
|
+
del: "del";
|
|
3012
|
+
meta: "meta";
|
|
3013
|
+
}>;
|
|
3014
|
+
oldNo: z.ZodNullable<z.ZodNumber>;
|
|
3015
|
+
newNo: z.ZodNullable<z.ZodNumber>;
|
|
3016
|
+
text: z.ZodString;
|
|
3017
|
+
}, z.core.$strip>;
|
|
3018
|
+
type GitDiffLine = z.infer<typeof GitDiffLine>;
|
|
3019
|
+
declare const GitDiffHunk: z.ZodObject<{
|
|
3020
|
+
oldStart: z.ZodNumber;
|
|
3021
|
+
oldLines: z.ZodNumber;
|
|
3022
|
+
newStart: z.ZodNumber;
|
|
3023
|
+
newLines: z.ZodNumber;
|
|
3024
|
+
header: z.ZodString;
|
|
3025
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
3026
|
+
type: z.ZodEnum<{
|
|
3027
|
+
context: "context";
|
|
3028
|
+
add: "add";
|
|
3029
|
+
del: "del";
|
|
3030
|
+
meta: "meta";
|
|
3031
|
+
}>;
|
|
3032
|
+
oldNo: z.ZodNullable<z.ZodNumber>;
|
|
3033
|
+
newNo: z.ZodNullable<z.ZodNumber>;
|
|
3034
|
+
text: z.ZodString;
|
|
3035
|
+
}, z.core.$strip>>;
|
|
3036
|
+
}, z.core.$strip>;
|
|
3037
|
+
type GitDiffHunk = z.infer<typeof GitDiffHunk>;
|
|
3038
|
+
declare const GitFileDiff: z.ZodObject<{
|
|
3039
|
+
path: z.ZodString;
|
|
3040
|
+
oldPath: z.ZodNullable<z.ZodString>;
|
|
3041
|
+
status: z.ZodEnum<{
|
|
3042
|
+
deleted: "deleted";
|
|
3043
|
+
modified: "modified";
|
|
3044
|
+
renamed: "renamed";
|
|
3045
|
+
added: "added";
|
|
3046
|
+
copied: "copied";
|
|
3047
|
+
untracked: "untracked";
|
|
3048
|
+
ignored: "ignored";
|
|
3049
|
+
conflicted: "conflicted";
|
|
3050
|
+
typechange: "typechange";
|
|
3051
|
+
}>;
|
|
3052
|
+
isBinary: z.ZodDefault<z.ZodBoolean>;
|
|
3053
|
+
isImage: z.ZodDefault<z.ZodBoolean>;
|
|
3054
|
+
additions: z.ZodNumber;
|
|
3055
|
+
deletions: z.ZodNumber;
|
|
3056
|
+
hunks: z.ZodArray<z.ZodObject<{
|
|
3057
|
+
oldStart: z.ZodNumber;
|
|
3058
|
+
oldLines: z.ZodNumber;
|
|
3059
|
+
newStart: z.ZodNumber;
|
|
3060
|
+
newLines: z.ZodNumber;
|
|
3061
|
+
header: z.ZodString;
|
|
3062
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
3063
|
+
type: z.ZodEnum<{
|
|
3064
|
+
context: "context";
|
|
3065
|
+
add: "add";
|
|
3066
|
+
del: "del";
|
|
3067
|
+
meta: "meta";
|
|
3068
|
+
}>;
|
|
3069
|
+
oldNo: z.ZodNullable<z.ZodNumber>;
|
|
3070
|
+
newNo: z.ZodNullable<z.ZodNumber>;
|
|
3071
|
+
text: z.ZodString;
|
|
3072
|
+
}, z.core.$strip>>;
|
|
3073
|
+
}, z.core.$strip>>;
|
|
3074
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
3075
|
+
}, z.core.$strip>;
|
|
3076
|
+
type GitFileDiff = z.infer<typeof GitFileDiff>;
|
|
3077
|
+
declare const GitDiffRequest: z.ZodObject<{
|
|
3078
|
+
path: z.ZodDefault<z.ZodString>;
|
|
3079
|
+
staged: z.ZodDefault<z.ZodBoolean>;
|
|
3080
|
+
fromRef: z.ZodOptional<z.ZodString>;
|
|
3081
|
+
toRef: z.ZodOptional<z.ZodString>;
|
|
3082
|
+
pathspec: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3083
|
+
contextLines: z.ZodDefault<z.ZodNumber>;
|
|
3084
|
+
maxBytesPerFile: z.ZodDefault<z.ZodNumber>;
|
|
3085
|
+
}, z.core.$strip>;
|
|
3086
|
+
type GitDiffRequest = z.infer<typeof GitDiffRequest>;
|
|
3087
|
+
declare const GitDiffResponse: z.ZodObject<{
|
|
3088
|
+
files: z.ZodArray<z.ZodObject<{
|
|
3089
|
+
path: z.ZodString;
|
|
3090
|
+
oldPath: z.ZodNullable<z.ZodString>;
|
|
3091
|
+
status: z.ZodEnum<{
|
|
3092
|
+
deleted: "deleted";
|
|
3093
|
+
modified: "modified";
|
|
3094
|
+
renamed: "renamed";
|
|
3095
|
+
added: "added";
|
|
3096
|
+
copied: "copied";
|
|
3097
|
+
untracked: "untracked";
|
|
3098
|
+
ignored: "ignored";
|
|
3099
|
+
conflicted: "conflicted";
|
|
3100
|
+
typechange: "typechange";
|
|
3101
|
+
}>;
|
|
3102
|
+
isBinary: z.ZodDefault<z.ZodBoolean>;
|
|
3103
|
+
isImage: z.ZodDefault<z.ZodBoolean>;
|
|
3104
|
+
additions: z.ZodNumber;
|
|
3105
|
+
deletions: z.ZodNumber;
|
|
3106
|
+
hunks: z.ZodArray<z.ZodObject<{
|
|
3107
|
+
oldStart: z.ZodNumber;
|
|
3108
|
+
oldLines: z.ZodNumber;
|
|
3109
|
+
newStart: z.ZodNumber;
|
|
3110
|
+
newLines: z.ZodNumber;
|
|
3111
|
+
header: z.ZodString;
|
|
3112
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
3113
|
+
type: z.ZodEnum<{
|
|
3114
|
+
context: "context";
|
|
3115
|
+
add: "add";
|
|
3116
|
+
del: "del";
|
|
3117
|
+
meta: "meta";
|
|
3118
|
+
}>;
|
|
3119
|
+
oldNo: z.ZodNullable<z.ZodNumber>;
|
|
3120
|
+
newNo: z.ZodNullable<z.ZodNumber>;
|
|
3121
|
+
text: z.ZodString;
|
|
3122
|
+
}, z.core.$strip>>;
|
|
3123
|
+
}, z.core.$strip>>;
|
|
3124
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
3125
|
+
}, z.core.$strip>>;
|
|
3126
|
+
revision: z.ZodNumber;
|
|
3127
|
+
}, z.core.$strip>;
|
|
3128
|
+
type GitDiffResponse = z.infer<typeof GitDiffResponse>;
|
|
3129
|
+
declare const GitLogRequest: z.ZodObject<{
|
|
3130
|
+
path: z.ZodDefault<z.ZodString>;
|
|
3131
|
+
ref: z.ZodDefault<z.ZodString>;
|
|
3132
|
+
maxCount: z.ZodDefault<z.ZodNumber>;
|
|
3133
|
+
skip: z.ZodDefault<z.ZodNumber>;
|
|
3134
|
+
pathspec: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3135
|
+
}, z.core.$strip>;
|
|
3136
|
+
type GitLogRequest = z.infer<typeof GitLogRequest>;
|
|
3137
|
+
declare const GitCommit: z.ZodObject<{
|
|
3138
|
+
sha: z.ZodString;
|
|
3139
|
+
shortSha: z.ZodString;
|
|
3140
|
+
parents: z.ZodArray<z.ZodString>;
|
|
3141
|
+
author: z.ZodObject<{
|
|
3142
|
+
name: z.ZodString;
|
|
3143
|
+
email: z.ZodString;
|
|
3144
|
+
timestamp: z.ZodNumber;
|
|
3145
|
+
}, z.core.$strip>;
|
|
3146
|
+
committer: z.ZodObject<{
|
|
3147
|
+
name: z.ZodString;
|
|
3148
|
+
email: z.ZodString;
|
|
3149
|
+
timestamp: z.ZodNumber;
|
|
3150
|
+
}, z.core.$strip>;
|
|
3151
|
+
subject: z.ZodString;
|
|
3152
|
+
body: z.ZodString;
|
|
3153
|
+
refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3154
|
+
}, z.core.$strip>;
|
|
3155
|
+
type GitCommit = z.infer<typeof GitCommit>;
|
|
3156
|
+
declare const GitLogResponse: z.ZodObject<{
|
|
3157
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
3158
|
+
sha: z.ZodString;
|
|
3159
|
+
shortSha: z.ZodString;
|
|
3160
|
+
parents: z.ZodArray<z.ZodString>;
|
|
3161
|
+
author: z.ZodObject<{
|
|
3162
|
+
name: z.ZodString;
|
|
3163
|
+
email: z.ZodString;
|
|
3164
|
+
timestamp: z.ZodNumber;
|
|
3165
|
+
}, z.core.$strip>;
|
|
3166
|
+
committer: z.ZodObject<{
|
|
3167
|
+
name: z.ZodString;
|
|
3168
|
+
email: z.ZodString;
|
|
3169
|
+
timestamp: z.ZodNumber;
|
|
3170
|
+
}, z.core.$strip>;
|
|
3171
|
+
subject: z.ZodString;
|
|
3172
|
+
body: z.ZodString;
|
|
3173
|
+
refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3174
|
+
}, z.core.$strip>>;
|
|
3175
|
+
hasMore: z.ZodBoolean;
|
|
3176
|
+
}, z.core.$strip>;
|
|
3177
|
+
type GitLogResponse = z.infer<typeof GitLogResponse>;
|
|
3178
|
+
declare const GitShowRequest: z.ZodObject<{
|
|
3179
|
+
path: z.ZodDefault<z.ZodString>;
|
|
3180
|
+
ref: z.ZodString;
|
|
3181
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
3182
|
+
encoding: z.ZodDefault<z.ZodEnum<{
|
|
3183
|
+
utf8: "utf8";
|
|
3184
|
+
base64: "base64";
|
|
3185
|
+
}>>;
|
|
3186
|
+
maxBytesPerFile: z.ZodDefault<z.ZodNumber>;
|
|
3187
|
+
}, z.core.$strip>;
|
|
3188
|
+
type GitShowRequest = z.infer<typeof GitShowRequest>;
|
|
3189
|
+
declare const GitShowResponse: z.ZodObject<{
|
|
3190
|
+
commit: z.ZodNullable<z.ZodObject<{
|
|
3191
|
+
sha: z.ZodString;
|
|
3192
|
+
shortSha: z.ZodString;
|
|
3193
|
+
parents: z.ZodArray<z.ZodString>;
|
|
3194
|
+
author: z.ZodObject<{
|
|
3195
|
+
name: z.ZodString;
|
|
3196
|
+
email: z.ZodString;
|
|
3197
|
+
timestamp: z.ZodNumber;
|
|
3198
|
+
}, z.core.$strip>;
|
|
3199
|
+
committer: z.ZodObject<{
|
|
3200
|
+
name: z.ZodString;
|
|
3201
|
+
email: z.ZodString;
|
|
3202
|
+
timestamp: z.ZodNumber;
|
|
3203
|
+
}, z.core.$strip>;
|
|
3204
|
+
subject: z.ZodString;
|
|
3205
|
+
body: z.ZodString;
|
|
3206
|
+
refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3207
|
+
}, z.core.$strip>>;
|
|
3208
|
+
files: z.ZodArray<z.ZodObject<{
|
|
3209
|
+
path: z.ZodString;
|
|
3210
|
+
oldPath: z.ZodNullable<z.ZodString>;
|
|
3211
|
+
status: z.ZodEnum<{
|
|
3212
|
+
deleted: "deleted";
|
|
3213
|
+
modified: "modified";
|
|
3214
|
+
renamed: "renamed";
|
|
3215
|
+
added: "added";
|
|
3216
|
+
copied: "copied";
|
|
3217
|
+
untracked: "untracked";
|
|
3218
|
+
ignored: "ignored";
|
|
3219
|
+
conflicted: "conflicted";
|
|
3220
|
+
typechange: "typechange";
|
|
3221
|
+
}>;
|
|
3222
|
+
isBinary: z.ZodDefault<z.ZodBoolean>;
|
|
3223
|
+
isImage: z.ZodDefault<z.ZodBoolean>;
|
|
3224
|
+
additions: z.ZodNumber;
|
|
3225
|
+
deletions: z.ZodNumber;
|
|
3226
|
+
hunks: z.ZodArray<z.ZodObject<{
|
|
3227
|
+
oldStart: z.ZodNumber;
|
|
3228
|
+
oldLines: z.ZodNumber;
|
|
3229
|
+
newStart: z.ZodNumber;
|
|
3230
|
+
newLines: z.ZodNumber;
|
|
3231
|
+
header: z.ZodString;
|
|
3232
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
3233
|
+
type: z.ZodEnum<{
|
|
3234
|
+
context: "context";
|
|
3235
|
+
add: "add";
|
|
3236
|
+
del: "del";
|
|
3237
|
+
meta: "meta";
|
|
3238
|
+
}>;
|
|
3239
|
+
oldNo: z.ZodNullable<z.ZodNumber>;
|
|
3240
|
+
newNo: z.ZodNullable<z.ZodNumber>;
|
|
3241
|
+
text: z.ZodString;
|
|
3242
|
+
}, z.core.$strip>>;
|
|
3243
|
+
}, z.core.$strip>>;
|
|
3244
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
3245
|
+
}, z.core.$strip>>;
|
|
3246
|
+
blob: z.ZodNullable<z.ZodObject<{
|
|
3247
|
+
content: z.ZodString;
|
|
3248
|
+
encoding: z.ZodEnum<{
|
|
3249
|
+
utf8: "utf8";
|
|
3250
|
+
base64: "base64";
|
|
3251
|
+
}>;
|
|
3252
|
+
sizeBytes: z.ZodNumber;
|
|
3253
|
+
truncated: z.ZodBoolean;
|
|
3254
|
+
}, z.core.$strip>>;
|
|
3255
|
+
revision: z.ZodNumber;
|
|
3256
|
+
}, z.core.$strip>;
|
|
3257
|
+
type GitShowResponse = z.infer<typeof GitShowResponse>;
|
|
3258
|
+
declare const TerminalExecRequest: z.ZodObject<{
|
|
3259
|
+
command: z.ZodString;
|
|
3260
|
+
cwd: z.ZodDefault<z.ZodString>;
|
|
3261
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3262
|
+
emitStream: z.ZodDefault<z.ZodBoolean>;
|
|
3263
|
+
}, z.core.$strip>;
|
|
3264
|
+
type TerminalExecRequest = z.infer<typeof TerminalExecRequest>;
|
|
3265
|
+
declare const TerminalExecResponse: z.ZodObject<{
|
|
3266
|
+
stdout: z.ZodString;
|
|
3267
|
+
stderr: z.ZodString;
|
|
3268
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
3269
|
+
running: z.ZodBoolean;
|
|
3270
|
+
wallTimeSeconds: z.ZodNumber;
|
|
3271
|
+
}, z.core.$strip>;
|
|
3272
|
+
type TerminalExecResponse = z.infer<typeof TerminalExecResponse>;
|
|
3273
|
+
declare const PtyOpenRequest: z.ZodObject<{
|
|
3274
|
+
cols: z.ZodDefault<z.ZodNumber>;
|
|
3275
|
+
rows: z.ZodDefault<z.ZodNumber>;
|
|
3276
|
+
cwd: z.ZodDefault<z.ZodString>;
|
|
3277
|
+
shell: z.ZodOptional<z.ZodString>;
|
|
3278
|
+
}, z.core.$strip>;
|
|
3279
|
+
type PtyOpenRequest = z.infer<typeof PtyOpenRequest>;
|
|
3280
|
+
declare const PtyOpenResponse: z.ZodObject<{
|
|
3281
|
+
ptyId: z.ZodString;
|
|
3282
|
+
streamVia: z.ZodLiteral<"sse-events">;
|
|
3283
|
+
supportsInput: z.ZodBoolean;
|
|
3284
|
+
}, z.core.$strip>;
|
|
3285
|
+
type PtyOpenResponse = z.infer<typeof PtyOpenResponse>;
|
|
3286
|
+
declare const PtyWriteRequest: z.ZodObject<{
|
|
3287
|
+
ptyId: z.ZodString;
|
|
3288
|
+
data: z.ZodString;
|
|
3289
|
+
}, z.core.$strip>;
|
|
3290
|
+
type PtyWriteRequest = z.infer<typeof PtyWriteRequest>;
|
|
3291
|
+
declare const PtyResizeRequest: z.ZodObject<{
|
|
3292
|
+
ptyId: z.ZodString;
|
|
3293
|
+
cols: z.ZodNumber;
|
|
3294
|
+
rows: z.ZodNumber;
|
|
3295
|
+
}, z.core.$strip>;
|
|
3296
|
+
type PtyResizeRequest = z.infer<typeof PtyResizeRequest>;
|
|
3297
|
+
declare const PtyCloseRequest: z.ZodObject<{
|
|
3298
|
+
ptyId: z.ZodString;
|
|
3299
|
+
}, z.core.$strip>;
|
|
3300
|
+
type PtyCloseRequest = z.infer<typeof PtyCloseRequest>;
|
|
3301
|
+
declare const SessionStructuredCapabilities: z.ZodObject<{
|
|
3302
|
+
FileSystem: z.ZodObject<{
|
|
3303
|
+
available: z.ZodBoolean;
|
|
3304
|
+
readOnly: z.ZodBoolean;
|
|
3305
|
+
root: z.ZodString;
|
|
3306
|
+
}, z.core.$strip>;
|
|
3307
|
+
Terminal: z.ZodObject<{
|
|
3308
|
+
events: z.ZodBoolean;
|
|
3309
|
+
exec: z.ZodBoolean;
|
|
3310
|
+
pty: z.ZodObject<{
|
|
3311
|
+
available: z.ZodBoolean;
|
|
3312
|
+
}, z.core.$strip>;
|
|
3313
|
+
}, z.core.$strip>;
|
|
3314
|
+
Git: z.ZodObject<{
|
|
3315
|
+
available: z.ZodBoolean;
|
|
3316
|
+
repos: z.ZodArray<z.ZodString>;
|
|
3317
|
+
}, z.core.$strip>;
|
|
3318
|
+
}, z.core.$strip>;
|
|
3319
|
+
type SessionStructuredCapabilities = z.infer<typeof SessionStructuredCapabilities>;
|
|
2244
3320
|
declare const SessionEvent: z.ZodObject<{
|
|
2245
3321
|
id: z.ZodString;
|
|
2246
3322
|
workspaceId: z.ZodString;
|
|
@@ -2279,6 +3355,19 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
2279
3355
|
"goal.paused": "goal.paused";
|
|
2280
3356
|
"goal.resumed": "goal.resumed";
|
|
2281
3357
|
"goal.continuation": "goal.continuation";
|
|
3358
|
+
"stream.url.rotated": "stream.url.rotated";
|
|
3359
|
+
"stream.opened": "stream.opened";
|
|
3360
|
+
"stream.closed": "stream.closed";
|
|
3361
|
+
"stream.revoked": "stream.revoked";
|
|
3362
|
+
"recording.started": "recording.started";
|
|
3363
|
+
"recording.available": "recording.available";
|
|
3364
|
+
"recording.failed": "recording.failed";
|
|
3365
|
+
"fs.changed": "fs.changed";
|
|
3366
|
+
"git.changed": "git.changed";
|
|
3367
|
+
"terminal.pty.started": "terminal.pty.started";
|
|
3368
|
+
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
3369
|
+
"terminal.pty.exited": "terminal.pty.exited";
|
|
3370
|
+
"session.title_set": "session.title_set";
|
|
2282
3371
|
}>;
|
|
2283
3372
|
payload: z.ZodDefault<z.ZodUnknown>;
|
|
2284
3373
|
occurredAt: z.ZodString;
|
|
@@ -2320,6 +3409,12 @@ declare const CreateSessionRequest: z.ZodObject<{
|
|
|
2320
3409
|
modal: "modal";
|
|
2321
3410
|
local: "local";
|
|
2322
3411
|
none: "none";
|
|
3412
|
+
daytona: "daytona";
|
|
3413
|
+
runloop: "runloop";
|
|
3414
|
+
e2b: "e2b";
|
|
3415
|
+
blaxel: "blaxel";
|
|
3416
|
+
cloudflare: "cloudflare";
|
|
3417
|
+
vercel: "vercel";
|
|
2323
3418
|
}>>;
|
|
2324
3419
|
environmentId: z.ZodOptional<z.ZodString>;
|
|
2325
3420
|
goal: z.ZodOptional<z.ZodObject<{
|
|
@@ -2341,8 +3436,13 @@ declare const CreateSessionRequest: z.ZodObject<{
|
|
|
2341
3436
|
"sessions:create": "sessions:create";
|
|
2342
3437
|
"sessions:read": "sessions:read";
|
|
2343
3438
|
"sessions:control": "sessions:control";
|
|
3439
|
+
"stream:view": "stream:view";
|
|
3440
|
+
"stream:control": "stream:control";
|
|
3441
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
2344
3442
|
"files:upload": "files:upload";
|
|
2345
3443
|
"files:read": "files:read";
|
|
3444
|
+
"files:write": "files:write";
|
|
3445
|
+
"terminal:attach": "terminal:attach";
|
|
2346
3446
|
"documents:manage": "documents:manage";
|
|
2347
3447
|
"documents:search": "documents:search";
|
|
2348
3448
|
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
@@ -2354,6 +3454,9 @@ declare const CreateSessionRequest: z.ZodObject<{
|
|
|
2354
3454
|
"environments:use": "environments:use";
|
|
2355
3455
|
"goals:manage": "goals:manage";
|
|
2356
3456
|
}>>>;
|
|
3457
|
+
sandbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"shared">, z.ZodLiteral<"new">, z.ZodObject<{
|
|
3458
|
+
groupId: z.ZodString;
|
|
3459
|
+
}, z.core.$strip>]>>;
|
|
2357
3460
|
}, z.core.$strip>;
|
|
2358
3461
|
type CreateSessionRequest = z.infer<typeof CreateSessionRequest>;
|
|
2359
3462
|
declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2448,6 +3551,19 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
2448
3551
|
"goal.paused": "goal.paused";
|
|
2449
3552
|
"goal.resumed": "goal.resumed";
|
|
2450
3553
|
"goal.continuation": "goal.continuation";
|
|
3554
|
+
"stream.url.rotated": "stream.url.rotated";
|
|
3555
|
+
"stream.opened": "stream.opened";
|
|
3556
|
+
"stream.closed": "stream.closed";
|
|
3557
|
+
"stream.revoked": "stream.revoked";
|
|
3558
|
+
"recording.started": "recording.started";
|
|
3559
|
+
"recording.available": "recording.available";
|
|
3560
|
+
"recording.failed": "recording.failed";
|
|
3561
|
+
"fs.changed": "fs.changed";
|
|
3562
|
+
"git.changed": "git.changed";
|
|
3563
|
+
"terminal.pty.started": "terminal.pty.started";
|
|
3564
|
+
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
3565
|
+
"terminal.pty.exited": "terminal.pty.exited";
|
|
3566
|
+
"session.title_set": "session.title_set";
|
|
2451
3567
|
}>;
|
|
2452
3568
|
payload: z.ZodDefault<z.ZodUnknown>;
|
|
2453
3569
|
occurredAt: z.ZodString;
|
|
@@ -2490,10 +3606,232 @@ declare const ClientAuthConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2490
3606
|
session: z.ZodLiteral<"cookie">;
|
|
2491
3607
|
}, z.core.$strip>], "mode">;
|
|
2492
3608
|
type ClientAuthConfig = z.infer<typeof ClientAuthConfig>;
|
|
3609
|
+
declare const CapabilityUnavailableReason: z.ZodEnum<{
|
|
3610
|
+
backend_unsupported: "backend_unsupported";
|
|
3611
|
+
os_unsupported: "os_unsupported";
|
|
3612
|
+
not_provisioned: "not_provisioned";
|
|
3613
|
+
disabled_by_policy: "disabled_by_policy";
|
|
3614
|
+
lease_cold: "lease_cold";
|
|
3615
|
+
tier_headless: "tier_headless";
|
|
3616
|
+
}>;
|
|
3617
|
+
type CapabilityUnavailableReason = z.infer<typeof CapabilityUnavailableReason>;
|
|
3618
|
+
declare const SessionCapabilities: z.ZodObject<{
|
|
3619
|
+
sessionId: z.ZodString;
|
|
3620
|
+
backend: z.ZodEnum<{
|
|
3621
|
+
docker: "docker";
|
|
3622
|
+
modal: "modal";
|
|
3623
|
+
local: "local";
|
|
3624
|
+
none: "none";
|
|
3625
|
+
daytona: "daytona";
|
|
3626
|
+
runloop: "runloop";
|
|
3627
|
+
e2b: "e2b";
|
|
3628
|
+
blaxel: "blaxel";
|
|
3629
|
+
cloudflare: "cloudflare";
|
|
3630
|
+
vercel: "vercel";
|
|
3631
|
+
}>;
|
|
3632
|
+
os: z.ZodEnum<{
|
|
3633
|
+
linux: "linux";
|
|
3634
|
+
macos: "macos";
|
|
3635
|
+
windows: "windows";
|
|
3636
|
+
}>;
|
|
3637
|
+
liveness: z.ZodEnum<{
|
|
3638
|
+
cold: "cold";
|
|
3639
|
+
warming: "warming";
|
|
3640
|
+
warm: "warm";
|
|
3641
|
+
draining: "draining";
|
|
3642
|
+
}>;
|
|
3643
|
+
leaseEpoch: z.ZodNumber;
|
|
3644
|
+
viewerHeartbeatIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
3645
|
+
FileSystem: z.ZodObject<{
|
|
3646
|
+
available: z.ZodBoolean;
|
|
3647
|
+
readOnly: z.ZodBoolean;
|
|
3648
|
+
root: z.ZodString;
|
|
3649
|
+
pathSep: z.ZodEnum<{
|
|
3650
|
+
"/": "/";
|
|
3651
|
+
"\\": "\\";
|
|
3652
|
+
}>;
|
|
3653
|
+
treeMode: z.ZodEnum<{
|
|
3654
|
+
lazy: "lazy";
|
|
3655
|
+
snapshot: "snapshot";
|
|
3656
|
+
}>;
|
|
3657
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
3658
|
+
backend_unsupported: "backend_unsupported";
|
|
3659
|
+
os_unsupported: "os_unsupported";
|
|
3660
|
+
not_provisioned: "not_provisioned";
|
|
3661
|
+
disabled_by_policy: "disabled_by_policy";
|
|
3662
|
+
lease_cold: "lease_cold";
|
|
3663
|
+
tier_headless: "tier_headless";
|
|
3664
|
+
}>>;
|
|
3665
|
+
}, z.core.$strip>;
|
|
3666
|
+
Terminal: z.ZodObject<{
|
|
3667
|
+
transport: z.ZodNullable<z.ZodEnum<{
|
|
3668
|
+
"sse-events": "sse-events";
|
|
3669
|
+
"pty-ws": "pty-ws";
|
|
3670
|
+
}>>;
|
|
3671
|
+
ptyCapable: z.ZodBoolean;
|
|
3672
|
+
shell: z.ZodString;
|
|
3673
|
+
url: z.ZodNullable<z.ZodString>;
|
|
3674
|
+
token: z.ZodNullable<z.ZodString>;
|
|
3675
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
3676
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
3677
|
+
backend_unsupported: "backend_unsupported";
|
|
3678
|
+
os_unsupported: "os_unsupported";
|
|
3679
|
+
not_provisioned: "not_provisioned";
|
|
3680
|
+
disabled_by_policy: "disabled_by_policy";
|
|
3681
|
+
lease_cold: "lease_cold";
|
|
3682
|
+
tier_headless: "tier_headless";
|
|
3683
|
+
}>>;
|
|
3684
|
+
}, z.core.$strip>;
|
|
3685
|
+
Git: z.ZodObject<{
|
|
3686
|
+
available: z.ZodBoolean;
|
|
3687
|
+
repos: z.ZodArray<z.ZodString>;
|
|
3688
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
3689
|
+
backend_unsupported: "backend_unsupported";
|
|
3690
|
+
os_unsupported: "os_unsupported";
|
|
3691
|
+
not_provisioned: "not_provisioned";
|
|
3692
|
+
disabled_by_policy: "disabled_by_policy";
|
|
3693
|
+
lease_cold: "lease_cold";
|
|
3694
|
+
tier_headless: "tier_headless";
|
|
3695
|
+
}>>;
|
|
3696
|
+
}, z.core.$strip>;
|
|
3697
|
+
DesktopStream: z.ZodObject<{
|
|
3698
|
+
transport: z.ZodNullable<z.ZodEnum<{
|
|
3699
|
+
"vnc-ws": "vnc-ws";
|
|
3700
|
+
"rdp-ws": "rdp-ws";
|
|
3701
|
+
webrtc: "webrtc";
|
|
3702
|
+
}>>;
|
|
3703
|
+
client: z.ZodNullable<z.ZodEnum<{
|
|
3704
|
+
novnc: "novnc";
|
|
3705
|
+
"web-rdp": "web-rdp";
|
|
3706
|
+
}>>;
|
|
3707
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
3708
|
+
"read-only": "read-only";
|
|
3709
|
+
interactive: "interactive";
|
|
3710
|
+
}>>;
|
|
3711
|
+
url: z.ZodNullable<z.ZodString>;
|
|
3712
|
+
token: z.ZodNullable<z.ZodString>;
|
|
3713
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
3714
|
+
resolution: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
3715
|
+
unredacted: z.ZodBoolean;
|
|
3716
|
+
requiresAcknowledgment: z.ZodBoolean;
|
|
3717
|
+
acknowledged: z.ZodBoolean;
|
|
3718
|
+
shared: z.ZodDefault<z.ZodBoolean>;
|
|
3719
|
+
sharedSessionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3720
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
3721
|
+
backend_unsupported: "backend_unsupported";
|
|
3722
|
+
os_unsupported: "os_unsupported";
|
|
3723
|
+
not_provisioned: "not_provisioned";
|
|
3724
|
+
disabled_by_policy: "disabled_by_policy";
|
|
3725
|
+
lease_cold: "lease_cold";
|
|
3726
|
+
tier_headless: "tier_headless";
|
|
3727
|
+
}>>;
|
|
3728
|
+
}, z.core.$strip>;
|
|
3729
|
+
Recording: z.ZodObject<{
|
|
3730
|
+
available: z.ZodBoolean;
|
|
3731
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
3732
|
+
manual: "manual";
|
|
3733
|
+
"on-turn": "on-turn";
|
|
3734
|
+
"on-verify": "on-verify";
|
|
3735
|
+
}>>;
|
|
3736
|
+
codecs: z.ZodArray<z.ZodEnum<{
|
|
3737
|
+
"h264-mp4": "h264-mp4";
|
|
3738
|
+
"vp9-webm": "vp9-webm";
|
|
3739
|
+
}>>;
|
|
3740
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
3741
|
+
backend_unsupported: "backend_unsupported";
|
|
3742
|
+
os_unsupported: "os_unsupported";
|
|
3743
|
+
not_provisioned: "not_provisioned";
|
|
3744
|
+
disabled_by_policy: "disabled_by_policy";
|
|
3745
|
+
lease_cold: "lease_cold";
|
|
3746
|
+
tier_headless: "tier_headless";
|
|
3747
|
+
}>>;
|
|
3748
|
+
}, z.core.$strip>;
|
|
3749
|
+
ComputerUse: z.ZodObject<{
|
|
3750
|
+
available: z.ZodBoolean;
|
|
3751
|
+
readOnly: z.ZodBoolean;
|
|
3752
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
3753
|
+
backend_unsupported: "backend_unsupported";
|
|
3754
|
+
os_unsupported: "os_unsupported";
|
|
3755
|
+
not_provisioned: "not_provisioned";
|
|
3756
|
+
disabled_by_policy: "disabled_by_policy";
|
|
3757
|
+
lease_cold: "lease_cold";
|
|
3758
|
+
tier_headless: "tier_headless";
|
|
3759
|
+
}>>;
|
|
3760
|
+
}, z.core.$strip>;
|
|
3761
|
+
negotiatedAt: z.ZodString;
|
|
3762
|
+
}, z.core.$strip>;
|
|
3763
|
+
type SessionCapabilities = z.infer<typeof SessionCapabilities>;
|
|
3764
|
+
declare const AttachViewerRequest: z.ZodObject<{
|
|
3765
|
+
viewerId: z.ZodOptional<z.ZodString>;
|
|
3766
|
+
desktop: z.ZodOptional<z.ZodBoolean>;
|
|
3767
|
+
}, z.core.$strip>;
|
|
3768
|
+
type AttachViewerRequest = z.infer<typeof AttachViewerRequest>;
|
|
3769
|
+
declare const ViewerHolder: z.ZodObject<{
|
|
3770
|
+
viewerId: z.ZodString;
|
|
3771
|
+
sandboxGroupId: z.ZodString;
|
|
3772
|
+
liveness: z.ZodEnum<{
|
|
3773
|
+
cold: "cold";
|
|
3774
|
+
warming: "warming";
|
|
3775
|
+
warm: "warm";
|
|
3776
|
+
draining: "draining";
|
|
3777
|
+
}>;
|
|
3778
|
+
leaseEpoch: z.ZodNumber;
|
|
3779
|
+
viewerHeartbeatIntervalMs: z.ZodNumber;
|
|
3780
|
+
dataPlaneUrl: z.ZodNullable<z.ZodString>;
|
|
3781
|
+
}, z.core.$strip>;
|
|
3782
|
+
type ViewerHolder = z.infer<typeof ViewerHolder>;
|
|
3783
|
+
declare const AcknowledgeStreamRequest: z.ZodObject<{
|
|
3784
|
+
acknowledgeUnredacted: z.ZodDefault<z.ZodBoolean>;
|
|
3785
|
+
acknowledgeShared: z.ZodDefault<z.ZodBoolean>;
|
|
3786
|
+
}, z.core.$strip>;
|
|
3787
|
+
type AcknowledgeStreamRequest = z.infer<typeof AcknowledgeStreamRequest>;
|
|
3788
|
+
declare const AcknowledgeStreamResponse: z.ZodObject<{
|
|
3789
|
+
acknowledged: z.ZodBoolean;
|
|
3790
|
+
acknowledgedShared: z.ZodBoolean;
|
|
3791
|
+
}, z.core.$strip>;
|
|
3792
|
+
type AcknowledgeStreamResponse = z.infer<typeof AcknowledgeStreamResponse>;
|
|
3793
|
+
declare const ViewerHeartbeatRequest: z.ZodObject<{
|
|
3794
|
+
leaseEpoch: z.ZodNumber;
|
|
3795
|
+
}, z.core.$strip>;
|
|
3796
|
+
type ViewerHeartbeatRequest = z.infer<typeof ViewerHeartbeatRequest>;
|
|
3797
|
+
declare const ViewerHeartbeatResponse: z.ZodObject<{
|
|
3798
|
+
alive: z.ZodBoolean;
|
|
3799
|
+
}, z.core.$strip>;
|
|
3800
|
+
type ViewerHeartbeatResponse = z.infer<typeof ViewerHeartbeatResponse>;
|
|
3801
|
+
/**
|
|
3802
|
+
* A single host-exposed model + the provider that serves it, as surfaced to
|
|
3803
|
+
* clients (SDK + React composer) by GET /v1/config/client. The wire `api`
|
|
3804
|
+
* ("responses" | "chat") lets a client reason about provider capabilities; the
|
|
3805
|
+
* provider id/label drive the picker's grouping. This mirrors the runtime's
|
|
3806
|
+
* ConfiguredModel (packages/config) projected to the client-safe fields.
|
|
3807
|
+
*/
|
|
3808
|
+
declare const ClientModel: z.ZodObject<{
|
|
3809
|
+
id: z.ZodString;
|
|
3810
|
+
label: z.ZodString;
|
|
3811
|
+
provider: z.ZodString;
|
|
3812
|
+
providerLabel: z.ZodString;
|
|
3813
|
+
api: z.ZodEnum<{
|
|
3814
|
+
responses: "responses";
|
|
3815
|
+
chat: "chat";
|
|
3816
|
+
}>;
|
|
3817
|
+
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
3818
|
+
}, z.core.$strip>;
|
|
3819
|
+
type ClientModel = z.infer<typeof ClientModel>;
|
|
2493
3820
|
declare const ClientConfig: z.ZodObject<{
|
|
2494
3821
|
deploymentRevision: z.ZodString;
|
|
2495
3822
|
defaultModel: z.ZodString;
|
|
2496
3823
|
allowedModels: z.ZodArray<z.ZodString>;
|
|
3824
|
+
models: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3825
|
+
id: z.ZodString;
|
|
3826
|
+
label: z.ZodString;
|
|
3827
|
+
provider: z.ZodString;
|
|
3828
|
+
providerLabel: z.ZodString;
|
|
3829
|
+
api: z.ZodEnum<{
|
|
3830
|
+
responses: "responses";
|
|
3831
|
+
chat: "chat";
|
|
3832
|
+
}>;
|
|
3833
|
+
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
3834
|
+
}, z.core.$strip>>>;
|
|
2497
3835
|
defaultReasoningEffort: z.ZodEnum<{
|
|
2498
3836
|
none: "none";
|
|
2499
3837
|
minimal: "minimal";
|
|
@@ -2536,6 +3874,11 @@ declare const ClientConfig: z.ZodObject<{
|
|
|
2536
3874
|
mode: z.ZodLiteral<"managedSession">;
|
|
2537
3875
|
session: z.ZodLiteral<"cookie">;
|
|
2538
3876
|
}, z.core.$strip>], "mode">>;
|
|
3877
|
+
structuredServices: z.ZodDefault<z.ZodObject<{
|
|
3878
|
+
fileSystem: z.ZodBoolean;
|
|
3879
|
+
git: z.ZodBoolean;
|
|
3880
|
+
terminalEvents: z.ZodBoolean;
|
|
3881
|
+
}, z.core.$strip>>;
|
|
2539
3882
|
}, z.core.$strip>;
|
|
2540
3883
|
type ClientConfig = z.infer<typeof ClientConfig>;
|
|
2541
3884
|
type HealthResponse = {
|
|
@@ -2544,4 +3887,4 @@ type HealthResponse = {
|
|
|
2544
3887
|
ok: boolean;
|
|
2545
3888
|
};
|
|
2546
3889
|
|
|
2547
|
-
export { AccessContext, AccessGrant, AccountGrant, AccountRole, AddDocumentRequest, ApiKey, BillingBalance, BillingMode, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientSessionEvent, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateScheduledTaskRequest, CreateSessionRequest, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, DelegatedAccessTokenPayload, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EnableCapabilityRequest, EnablePackRequest, EntitlementValue, Entitlements, EntitlementsMode, ErrorCode, ErrorEnvelope, FileAsset, FileDownloadUrlResponse, FileResourceRef, FileStatus, FileUploadStatus, GitHubAppManifestCreate, GitHubRepository, GoalSpec, type HealthResponse, LimitAction, LimitDecision, ManagedAccount, MarketingDailyAnalysisTaskRequest, PackInstallation, PackInstallationStatus, PageInfo, Permission, ProductAccessMode, ReasoningEffort, RegisterCapabilityPackRequest, ReorderSessionTurnsRequest, RepositoryResourceRef, ResourceRef, ResourceRefConflictError, SandboxBackend, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, Session, SessionBusMessage, SessionEvent, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionStatus, SessionTurn, SessionTurnSource, SessionTurnStatus, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, ToolRef, TriggerScheduledTaskRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionTurnRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceRequest, UsageEvent, UsageEventType, UsageLimitsMode, Workspace, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceEnvironmentVariableName, WorkspaceRegisteredPack, isClearedRunStateBlob, mergeResourceRefs, mergeToolRefs, paginated, reasoningEffortForMetadata, resourceIdentityKey, signDelegatedAccessToken, stableJson, verifyDelegatedAccessToken };
|
|
3890
|
+
export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, ApiKey, AttachViewerRequest, BillingBalance, BillingMode, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CapabilityCatalogItem, CapabilityCatalogResponse, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateScheduledTaskRequest, CreateSessionRequest, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EnableCapabilityRequest, EnablePackRequest, EntitlementValue, Entitlements, EntitlementsMode, ErrorCode, ErrorEnvelope, FileAsset, FileDownloadUrlResponse, FileResourceRef, FileStatus, FileUploadStatus, FsChangeKind, FsChangedPayload, FsDeleteRequest, FsDeleteResponse, FsEncoding, FsListRequest, FsListResponse, FsMkdirRequest, FsMkdirResponse, FsMoveRequest, FsMoveResponse, FsNodeType, FsReadRequest, FsReadResponse, FsTreeNode, FsWriteRequest, FsWriteResponse, GitChangedPayload, GitCommit, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, GitHubAppManifestCreate, GitHubRepository, GitLogRequest, GitLogResponse, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, LimitAction, LimitDecision, ListWorkspaceMembersResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, PackInstallation, PackInstallationStatus, PageInfo, Permission, type PortExposureKind, ProductAccessMode, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, ReorderSessionTurnsRequest, RepositoryResourceRef, ResourceRef, ResourceRefConflictError, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, Session, SessionBusMessage, SessionCapabilities, SessionEvent, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionStatus, SessionStructuredCapabilities, SessionTurn, SessionTurnSource, SessionTurnStatus, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, TERMINAL_STREAM_PORT, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolRef, TriggerScheduledTaskRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionRequest, UpdateSessionTurnRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceRequest, UsageEvent, UsageEventType, UsageLimitsMode, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, Workspace, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceEnvironmentVariableName, WorkspaceMember, WorkspaceRegisteredPack, isClearedRunStateBlob, mergeResourceRefs, mergeToolRefs, paginated, reasoningEffortForMetadata, resourceIdentityKey, signDelegatedAccessToken, signStreamToken, stableJson, verifyDelegatedAccessToken, verifyStreamToken };
|