@opengeni/contracts 0.3.0 → 0.5.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 +677 -1
- package/dist/index.js +545 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +883 -11
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare const SandboxBackend: z.ZodEnum<{
|
|
|
20
20
|
blaxel: "blaxel";
|
|
21
21
|
cloudflare: "cloudflare";
|
|
22
22
|
vercel: "vercel";
|
|
23
|
+
selfhosted: "selfhosted";
|
|
23
24
|
}>;
|
|
24
25
|
type SandboxBackend = z.infer<typeof SandboxBackend>;
|
|
25
26
|
declare const SandboxOs: z.ZodEnum<{
|
|
@@ -174,7 +175,10 @@ declare const Permission: z.ZodEnum<{
|
|
|
174
175
|
"api_keys:manage": "api_keys:manage";
|
|
175
176
|
"environments:manage": "environments:manage";
|
|
176
177
|
"environments:use": "environments:use";
|
|
178
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
177
179
|
"goals:manage": "goals:manage";
|
|
180
|
+
"enrollments:read": "enrollments:read";
|
|
181
|
+
"enrollments:manage": "enrollments:manage";
|
|
178
182
|
}>;
|
|
179
183
|
type Permission = z.infer<typeof Permission>;
|
|
180
184
|
declare const ProductAccessMode: z.ZodEnum<{
|
|
@@ -264,7 +268,10 @@ declare const AccountGrant: z.ZodObject<{
|
|
|
264
268
|
"api_keys:manage": "api_keys:manage";
|
|
265
269
|
"environments:manage": "environments:manage";
|
|
266
270
|
"environments:use": "environments:use";
|
|
271
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
267
272
|
"goals:manage": "goals:manage";
|
|
273
|
+
"enrollments:read": "enrollments:read";
|
|
274
|
+
"enrollments:manage": "enrollments:manage";
|
|
268
275
|
}>>;
|
|
269
276
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
270
277
|
}, z.core.$strip>;
|
|
@@ -302,7 +309,10 @@ declare const AccessGrant: z.ZodObject<{
|
|
|
302
309
|
"api_keys:manage": "api_keys:manage";
|
|
303
310
|
"environments:manage": "environments:manage";
|
|
304
311
|
"environments:use": "environments:use";
|
|
312
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
305
313
|
"goals:manage": "goals:manage";
|
|
314
|
+
"enrollments:read": "enrollments:read";
|
|
315
|
+
"enrollments:manage": "enrollments:manage";
|
|
306
316
|
}>>;
|
|
307
317
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
308
318
|
}, z.core.$strip>;
|
|
@@ -352,7 +362,10 @@ declare const AccessContext: z.ZodObject<{
|
|
|
352
362
|
"api_keys:manage": "api_keys:manage";
|
|
353
363
|
"environments:manage": "environments:manage";
|
|
354
364
|
"environments:use": "environments:use";
|
|
365
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
355
366
|
"goals:manage": "goals:manage";
|
|
367
|
+
"enrollments:read": "enrollments:read";
|
|
368
|
+
"enrollments:manage": "enrollments:manage";
|
|
356
369
|
}>>;
|
|
357
370
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
358
371
|
}, z.core.$strip>>;
|
|
@@ -389,7 +402,10 @@ declare const AccessContext: z.ZodObject<{
|
|
|
389
402
|
"api_keys:manage": "api_keys:manage";
|
|
390
403
|
"environments:manage": "environments:manage";
|
|
391
404
|
"environments:use": "environments:use";
|
|
405
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
392
406
|
"goals:manage": "goals:manage";
|
|
407
|
+
"enrollments:read": "enrollments:read";
|
|
408
|
+
"enrollments:manage": "enrollments:manage";
|
|
393
409
|
}>>;
|
|
394
410
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
395
411
|
}, z.core.$strip>>;
|
|
@@ -430,7 +446,10 @@ declare const DelegatedAccessTokenPayload: z.ZodObject<{
|
|
|
430
446
|
"api_keys:manage": "api_keys:manage";
|
|
431
447
|
"environments:manage": "environments:manage";
|
|
432
448
|
"environments:use": "environments:use";
|
|
449
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
433
450
|
"goals:manage": "goals:manage";
|
|
451
|
+
"enrollments:read": "enrollments:read";
|
|
452
|
+
"enrollments:manage": "enrollments:manage";
|
|
434
453
|
}>>;
|
|
435
454
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
436
455
|
exp: z.ZodNumber;
|
|
@@ -438,6 +457,35 @@ declare const DelegatedAccessTokenPayload: z.ZodObject<{
|
|
|
438
457
|
type DelegatedAccessTokenPayload = z.infer<typeof DelegatedAccessTokenPayload>;
|
|
439
458
|
declare function signDelegatedAccessToken(secret: string, payload: DelegatedAccessTokenPayload): Promise<string>;
|
|
440
459
|
declare function verifyDelegatedAccessToken(secret: string, token: string, nowSeconds?: number): Promise<DelegatedAccessTokenPayload | null>;
|
|
460
|
+
declare const EnrollmentBearerPayload: z.ZodObject<{
|
|
461
|
+
workspaceId: z.ZodString;
|
|
462
|
+
agentId: z.ZodString;
|
|
463
|
+
enrollmentId: z.ZodString;
|
|
464
|
+
subjectPrefix: z.ZodString;
|
|
465
|
+
exp: z.ZodNumber;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
type EnrollmentBearerPayload = z.infer<typeof EnrollmentBearerPayload>;
|
|
468
|
+
declare function signEnrollmentBearer(secret: string, payload: EnrollmentBearerPayload): Promise<string>;
|
|
469
|
+
declare function verifyEnrollmentBearer(secret: string, token: string, nowSeconds?: number): Promise<EnrollmentBearerPayload | null>;
|
|
470
|
+
declare const EnrollTokenPayload: z.ZodObject<{
|
|
471
|
+
typ: z.ZodLiteral<"enroll">;
|
|
472
|
+
workspaceId: z.ZodString;
|
|
473
|
+
accountId: z.ZodString;
|
|
474
|
+
allowScreenControl: z.ZodBoolean;
|
|
475
|
+
iat: z.ZodNumber;
|
|
476
|
+
exp: z.ZodNumber;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
type EnrollTokenPayload = z.infer<typeof EnrollTokenPayload>;
|
|
479
|
+
declare function signEnrollToken(secret: string, payload: EnrollTokenPayload): Promise<string>;
|
|
480
|
+
/**
|
|
481
|
+
* Verify an enroll token: rejects (returns null) on a bad prefix (NOT `oget_`),
|
|
482
|
+
* a malformed envelope, a bad HMAC signature (constant-time), schema-invalid
|
|
483
|
+
* claims (which includes `typ !== "enroll"` — the `z.literal` rejects it), or an
|
|
484
|
+
* expired token (`exp < now`). Mirrors verifyEnrollmentBearer exactly. An `oge_`
|
|
485
|
+
* bearer fails the prefix gate; a same-secret token that lacks the typ claim fails
|
|
486
|
+
* the schema gate — both halves of the domain separation are enforced here.
|
|
487
|
+
*/
|
|
488
|
+
declare function verifyEnrollToken(secret: string, token: string, nowSeconds?: number): Promise<EnrollTokenPayload | null>;
|
|
441
489
|
declare const StreamTokenPayload: z.ZodObject<{
|
|
442
490
|
workspaceId: z.ZodString;
|
|
443
491
|
sessionId: z.ZodString;
|
|
@@ -463,6 +511,23 @@ declare function signStreamToken(secret: string, payload: StreamTokenPayload): P
|
|
|
463
511
|
* caller proves it is for THIS box's current epoch and THIS workspace+session.
|
|
464
512
|
*/
|
|
465
513
|
declare function verifyStreamToken(secret: string, token: string, nowSeconds?: number): Promise<StreamTokenPayload | null>;
|
|
514
|
+
declare const RelayTokenPayload: z.ZodObject<{
|
|
515
|
+
workspaceId: z.ZodString;
|
|
516
|
+
agentId: z.ZodString;
|
|
517
|
+
exp: z.ZodNumber;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
type RelayTokenPayload = z.infer<typeof RelayTokenPayload>;
|
|
520
|
+
declare function signRelayToken(secret: string, payload: RelayTokenPayload): Promise<string>;
|
|
521
|
+
/**
|
|
522
|
+
* Verify a relay producer token: rejects (returns null) on a bad prefix, malformed
|
|
523
|
+
* envelope, bad HMAC signature (constant-time), schema-invalid claims, or expiry.
|
|
524
|
+
* Mirrors verifyStreamToken exactly. The relay (Rust) re-implements this verify;
|
|
525
|
+
* the TS verify here proves the format for the cross-stack fixture + any TS caller.
|
|
526
|
+
*
|
|
527
|
+
* The channel-key scope (claim.workspaceId/agentId vs the StreamOpen channel key)
|
|
528
|
+
* is enforced by the relay at USE — verify proves authenticity + freshness only.
|
|
529
|
+
*/
|
|
530
|
+
declare function verifyRelayToken(secret: string, token: string, nowSeconds?: number): Promise<RelayTokenPayload | null>;
|
|
466
531
|
declare const CreateWorkspaceRequest: z.ZodObject<{
|
|
467
532
|
accountId: z.ZodOptional<z.ZodString>;
|
|
468
533
|
name: z.ZodString;
|
|
@@ -512,7 +577,10 @@ declare const ApiKey: z.ZodObject<{
|
|
|
512
577
|
"api_keys:manage": "api_keys:manage";
|
|
513
578
|
"environments:manage": "environments:manage";
|
|
514
579
|
"environments:use": "environments:use";
|
|
580
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
515
581
|
"goals:manage": "goals:manage";
|
|
582
|
+
"enrollments:read": "enrollments:read";
|
|
583
|
+
"enrollments:manage": "enrollments:manage";
|
|
516
584
|
}>>;
|
|
517
585
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
518
586
|
revokedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -552,7 +620,10 @@ declare const CreateApiKeyRequest: z.ZodObject<{
|
|
|
552
620
|
"api_keys:manage": "api_keys:manage";
|
|
553
621
|
"environments:manage": "environments:manage";
|
|
554
622
|
"environments:use": "environments:use";
|
|
623
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
555
624
|
"goals:manage": "goals:manage";
|
|
625
|
+
"enrollments:read": "enrollments:read";
|
|
626
|
+
"enrollments:manage": "enrollments:manage";
|
|
556
627
|
}>>;
|
|
557
628
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
558
629
|
}, z.core.$strip>;
|
|
@@ -592,7 +663,10 @@ declare const CreateApiKeyResponse: z.ZodObject<{
|
|
|
592
663
|
"api_keys:manage": "api_keys:manage";
|
|
593
664
|
"environments:manage": "environments:manage";
|
|
594
665
|
"environments:use": "environments:use";
|
|
666
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
595
667
|
"goals:manage": "goals:manage";
|
|
668
|
+
"enrollments:read": "enrollments:read";
|
|
669
|
+
"enrollments:manage": "enrollments:manage";
|
|
596
670
|
}>>;
|
|
597
671
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
598
672
|
revokedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -635,7 +709,10 @@ declare const WorkspaceMember: z.ZodObject<{
|
|
|
635
709
|
"api_keys:manage": "api_keys:manage";
|
|
636
710
|
"environments:manage": "environments:manage";
|
|
637
711
|
"environments:use": "environments:use";
|
|
712
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
638
713
|
"goals:manage": "goals:manage";
|
|
714
|
+
"enrollments:read": "enrollments:read";
|
|
715
|
+
"enrollments:manage": "enrollments:manage";
|
|
639
716
|
}>>;
|
|
640
717
|
createdAt: z.ZodString;
|
|
641
718
|
}, z.core.$strip>;
|
|
@@ -673,7 +750,10 @@ declare const ListWorkspaceMembersResponse: z.ZodObject<{
|
|
|
673
750
|
"api_keys:manage": "api_keys:manage";
|
|
674
751
|
"environments:manage": "environments:manage";
|
|
675
752
|
"environments:use": "environments:use";
|
|
753
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
676
754
|
"goals:manage": "goals:manage";
|
|
755
|
+
"enrollments:read": "enrollments:read";
|
|
756
|
+
"enrollments:manage": "enrollments:manage";
|
|
677
757
|
}>>;
|
|
678
758
|
createdAt: z.ZodString;
|
|
679
759
|
}, z.core.$strip>>;
|
|
@@ -710,7 +790,10 @@ declare const AddWorkspaceMemberRequest: z.ZodObject<{
|
|
|
710
790
|
"api_keys:manage": "api_keys:manage";
|
|
711
791
|
"environments:manage": "environments:manage";
|
|
712
792
|
"environments:use": "environments:use";
|
|
793
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
713
794
|
"goals:manage": "goals:manage";
|
|
795
|
+
"enrollments:read": "enrollments:read";
|
|
796
|
+
"enrollments:manage": "enrollments:manage";
|
|
714
797
|
}>>;
|
|
715
798
|
}, z.core.$strip>;
|
|
716
799
|
type AddWorkspaceMemberRequest = z.infer<typeof AddWorkspaceMemberRequest>;
|
|
@@ -744,7 +827,10 @@ declare const UpdateWorkspaceMemberRequest: z.ZodObject<{
|
|
|
744
827
|
"api_keys:manage": "api_keys:manage";
|
|
745
828
|
"environments:manage": "environments:manage";
|
|
746
829
|
"environments:use": "environments:use";
|
|
830
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
747
831
|
"goals:manage": "goals:manage";
|
|
832
|
+
"enrollments:read": "enrollments:read";
|
|
833
|
+
"enrollments:manage": "enrollments:manage";
|
|
748
834
|
}>>;
|
|
749
835
|
}, z.core.$strip>;
|
|
750
836
|
type UpdateWorkspaceMemberRequest = z.infer<typeof UpdateWorkspaceMemberRequest>;
|
|
@@ -824,6 +910,70 @@ declare const LimitDecision: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
824
910
|
message: z.ZodString;
|
|
825
911
|
}, z.core.$strip>], "allowed">;
|
|
826
912
|
type LimitDecision = z.infer<typeof LimitDecision>;
|
|
913
|
+
declare const EntitlementDecision: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
914
|
+
allowed: z.ZodLiteral<true>;
|
|
915
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
916
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
917
|
+
allowed: z.ZodLiteral<false>;
|
|
918
|
+
reason: z.ZodString;
|
|
919
|
+
code: z.ZodOptional<z.ZodString>;
|
|
920
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
921
|
+
}, z.core.$strip>], "allowed">;
|
|
922
|
+
type EntitlementDecision = z.infer<typeof EntitlementDecision>;
|
|
923
|
+
type AdmitRunInput = {
|
|
924
|
+
accountId: string;
|
|
925
|
+
workspaceId: string;
|
|
926
|
+
action: string;
|
|
927
|
+
quantity: number;
|
|
928
|
+
};
|
|
929
|
+
type EntitlementsPort = {
|
|
930
|
+
admitRun(input: AdmitRunInput): Promise<EntitlementDecision>;
|
|
931
|
+
};
|
|
932
|
+
type GitCredentialsRequest = {
|
|
933
|
+
accountId: string;
|
|
934
|
+
workspaceId: string;
|
|
935
|
+
installationId: number;
|
|
936
|
+
repositoryIds: number[];
|
|
937
|
+
};
|
|
938
|
+
type GitCredentials = {
|
|
939
|
+
token: string;
|
|
940
|
+
workspaceId: string;
|
|
941
|
+
identity?: {
|
|
942
|
+
name: string;
|
|
943
|
+
email: string;
|
|
944
|
+
} | null;
|
|
945
|
+
};
|
|
946
|
+
type SandboxSecretsRequest = {
|
|
947
|
+
accountId: string;
|
|
948
|
+
workspaceId: string;
|
|
949
|
+
environmentId: string;
|
|
950
|
+
};
|
|
951
|
+
type SandboxSecrets = {
|
|
952
|
+
values: Record<string, string>;
|
|
953
|
+
workspaceId: string;
|
|
954
|
+
id?: string;
|
|
955
|
+
name?: string;
|
|
956
|
+
description?: string | null;
|
|
957
|
+
};
|
|
958
|
+
type ConnectionCredentialsPort = {
|
|
959
|
+
gitCredentials?: (input: GitCredentialsRequest) => Promise<GitCredentials>;
|
|
960
|
+
sandboxSecrets?: (input: SandboxSecretsRequest) => Promise<SandboxSecrets>;
|
|
961
|
+
};
|
|
962
|
+
type GitHubInstallationSummary = {
|
|
963
|
+
installationId: number;
|
|
964
|
+
accountLogin: string | null;
|
|
965
|
+
accountType: string | null;
|
|
966
|
+
suspended: boolean;
|
|
967
|
+
};
|
|
968
|
+
type GitHubAppApiPort = {
|
|
969
|
+
verifyInstallationAccessForUser?: (input: {
|
|
970
|
+
code: string;
|
|
971
|
+
installationId: number;
|
|
972
|
+
}) => Promise<GitHubInstallationSummary>;
|
|
973
|
+
listRepositories?: (input: {
|
|
974
|
+
installationIds?: number[];
|
|
975
|
+
}) => Promise<GitHubRepository[]>;
|
|
976
|
+
};
|
|
827
977
|
declare const BillingBalance: z.ZodObject<{
|
|
828
978
|
accountId: z.ZodString;
|
|
829
979
|
balanceMicros: z.ZodNumber;
|
|
@@ -1018,8 +1168,32 @@ type DocumentSearchRequest = z.infer<typeof DocumentSearchRequest>;
|
|
|
1018
1168
|
declare const ToolRef: z.ZodObject<{
|
|
1019
1169
|
kind: z.ZodLiteral<"mcp">;
|
|
1020
1170
|
id: z.ZodString;
|
|
1171
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1021
1172
|
}, z.core.$strip>;
|
|
1022
1173
|
type ToolRef = z.infer<typeof ToolRef>;
|
|
1174
|
+
declare const SessionMcpServerInput: z.ZodObject<{
|
|
1175
|
+
id: z.ZodString;
|
|
1176
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1177
|
+
url: z.ZodString;
|
|
1178
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1179
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1180
|
+
cacheToolsList: z.ZodOptional<z.ZodBoolean>;
|
|
1181
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1182
|
+
}, z.core.$strip>;
|
|
1183
|
+
type SessionMcpServerInput = z.infer<typeof SessionMcpServerInput>;
|
|
1184
|
+
declare const SessionMcpCredentialUpdateInput: z.ZodObject<{
|
|
1185
|
+
id: z.ZodString;
|
|
1186
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1187
|
+
}, z.core.$strip>;
|
|
1188
|
+
type SessionMcpCredentialUpdateInput = z.infer<typeof SessionMcpCredentialUpdateInput>;
|
|
1189
|
+
declare const SessionMcpServerMetadata: z.ZodObject<{
|
|
1190
|
+
id: z.ZodString;
|
|
1191
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1192
|
+
url: z.ZodString;
|
|
1193
|
+
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1194
|
+
credentialVersion: z.ZodNumber;
|
|
1195
|
+
}, z.core.$strict>;
|
|
1196
|
+
type SessionMcpServerMetadata = z.infer<typeof SessionMcpServerMetadata>;
|
|
1023
1197
|
declare class ResourceRefConflictError extends Error {
|
|
1024
1198
|
constructor(message: string);
|
|
1025
1199
|
}
|
|
@@ -1194,6 +1368,7 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
1194
1368
|
tools: z.ZodArray<z.ZodObject<{
|
|
1195
1369
|
kind: z.ZodLiteral<"mcp">;
|
|
1196
1370
|
id: z.ZodString;
|
|
1371
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1197
1372
|
}, z.core.$strip>>;
|
|
1198
1373
|
model: z.ZodString;
|
|
1199
1374
|
reasoningEffort: z.ZodEnum<{
|
|
@@ -1215,6 +1390,7 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
1215
1390
|
blaxel: "blaxel";
|
|
1216
1391
|
cloudflare: "cloudflare";
|
|
1217
1392
|
vercel: "vercel";
|
|
1393
|
+
selfhosted: "selfhosted";
|
|
1218
1394
|
}>;
|
|
1219
1395
|
sandboxOs: z.ZodNullable<z.ZodEnum<{
|
|
1220
1396
|
linux: "linux";
|
|
@@ -1246,6 +1422,7 @@ declare const UpdateSessionTurnRequest: z.ZodObject<{
|
|
|
1246
1422
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1247
1423
|
kind: z.ZodLiteral<"mcp">;
|
|
1248
1424
|
id: z.ZodString;
|
|
1425
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1249
1426
|
}, z.core.$strip>>>;
|
|
1250
1427
|
model: z.ZodOptional<z.ZodString>;
|
|
1251
1428
|
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1267,6 +1444,7 @@ declare const UpdateSessionTurnRequest: z.ZodObject<{
|
|
|
1267
1444
|
blaxel: "blaxel";
|
|
1268
1445
|
cloudflare: "cloudflare";
|
|
1269
1446
|
vercel: "vercel";
|
|
1447
|
+
selfhosted: "selfhosted";
|
|
1270
1448
|
}>>;
|
|
1271
1449
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1272
1450
|
}, z.core.$strip>;
|
|
@@ -1388,6 +1566,7 @@ declare const ScheduledTaskAgentConfig: z.ZodObject<{
|
|
|
1388
1566
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1389
1567
|
kind: z.ZodLiteral<"mcp">;
|
|
1390
1568
|
id: z.ZodString;
|
|
1569
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1391
1570
|
}, z.core.$strip>>>;
|
|
1392
1571
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1393
1572
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1410,6 +1589,7 @@ declare const ScheduledTaskAgentConfig: z.ZodObject<{
|
|
|
1410
1589
|
blaxel: "blaxel";
|
|
1411
1590
|
cloudflare: "cloudflare";
|
|
1412
1591
|
vercel: "vercel";
|
|
1592
|
+
selfhosted: "selfhosted";
|
|
1413
1593
|
}>>;
|
|
1414
1594
|
goal: z.ZodOptional<z.ZodObject<{
|
|
1415
1595
|
text: z.ZodString;
|
|
@@ -1479,6 +1659,7 @@ declare const ScheduledTask: z.ZodObject<{
|
|
|
1479
1659
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1480
1660
|
kind: z.ZodLiteral<"mcp">;
|
|
1481
1661
|
id: z.ZodString;
|
|
1662
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1482
1663
|
}, z.core.$strip>>>;
|
|
1483
1664
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1484
1665
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1501,6 +1682,7 @@ declare const ScheduledTask: z.ZodObject<{
|
|
|
1501
1682
|
blaxel: "blaxel";
|
|
1502
1683
|
cloudflare: "cloudflare";
|
|
1503
1684
|
vercel: "vercel";
|
|
1685
|
+
selfhosted: "selfhosted";
|
|
1504
1686
|
}>>;
|
|
1505
1687
|
goal: z.ZodOptional<z.ZodObject<{
|
|
1506
1688
|
text: z.ZodString;
|
|
@@ -1591,6 +1773,7 @@ declare const CreateScheduledTaskRequest: z.ZodObject<{
|
|
|
1591
1773
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1592
1774
|
kind: z.ZodLiteral<"mcp">;
|
|
1593
1775
|
id: z.ZodString;
|
|
1776
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1594
1777
|
}, z.core.$strip>>>;
|
|
1595
1778
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1596
1779
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1613,6 +1796,7 @@ declare const CreateScheduledTaskRequest: z.ZodObject<{
|
|
|
1613
1796
|
blaxel: "blaxel";
|
|
1614
1797
|
cloudflare: "cloudflare";
|
|
1615
1798
|
vercel: "vercel";
|
|
1799
|
+
selfhosted: "selfhosted";
|
|
1616
1800
|
}>>;
|
|
1617
1801
|
goal: z.ZodOptional<z.ZodObject<{
|
|
1618
1802
|
text: z.ZodString;
|
|
@@ -1681,6 +1865,7 @@ declare const UpdateScheduledTaskRequest: z.ZodObject<{
|
|
|
1681
1865
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1682
1866
|
kind: z.ZodLiteral<"mcp">;
|
|
1683
1867
|
id: z.ZodString;
|
|
1868
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1684
1869
|
}, z.core.$strip>>>;
|
|
1685
1870
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1686
1871
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1703,6 +1888,7 @@ declare const UpdateScheduledTaskRequest: z.ZodObject<{
|
|
|
1703
1888
|
blaxel: "blaxel";
|
|
1704
1889
|
cloudflare: "cloudflare";
|
|
1705
1890
|
vercel: "vercel";
|
|
1891
|
+
selfhosted: "selfhosted";
|
|
1706
1892
|
}>>;
|
|
1707
1893
|
goal: z.ZodOptional<z.ZodObject<{
|
|
1708
1894
|
text: z.ZodString;
|
|
@@ -1831,6 +2017,7 @@ declare const CapabilityPack: z.ZodObject<{
|
|
|
1831
2017
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1832
2018
|
kind: z.ZodLiteral<"mcp">;
|
|
1833
2019
|
id: z.ZodString;
|
|
2020
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1834
2021
|
}, z.core.$strip>>>;
|
|
1835
2022
|
connectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1836
2023
|
id: z.ZodString;
|
|
@@ -1920,6 +2107,7 @@ declare const RegisterCapabilityPackRequest: z.ZodObject<{
|
|
|
1920
2107
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1921
2108
|
kind: z.ZodLiteral<"mcp">;
|
|
1922
2109
|
id: z.ZodString;
|
|
2110
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
1923
2111
|
}, z.core.$strip>>>;
|
|
1924
2112
|
connectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1925
2113
|
id: z.ZodString;
|
|
@@ -2012,6 +2200,7 @@ declare const WorkspaceRegisteredPack: z.ZodObject<{
|
|
|
2012
2200
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2013
2201
|
kind: z.ZodLiteral<"mcp">;
|
|
2014
2202
|
id: z.ZodString;
|
|
2203
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2015
2204
|
}, z.core.$strip>>>;
|
|
2016
2205
|
connectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2017
2206
|
id: z.ZodString;
|
|
@@ -2291,6 +2480,7 @@ declare const CapabilityCatalogItem: z.ZodObject<{
|
|
|
2291
2480
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2292
2481
|
kind: z.ZodLiteral<"mcp">;
|
|
2293
2482
|
id: z.ZodString;
|
|
2483
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2294
2484
|
}, z.core.$strip>>>;
|
|
2295
2485
|
runtime: z.ZodDefault<z.ZodObject<{
|
|
2296
2486
|
available: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2388,6 +2578,7 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
|
|
|
2388
2578
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2389
2579
|
kind: z.ZodLiteral<"mcp">;
|
|
2390
2580
|
id: z.ZodString;
|
|
2581
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2391
2582
|
}, z.core.$strip>>>;
|
|
2392
2583
|
runtime: z.ZodDefault<z.ZodObject<{
|
|
2393
2584
|
available: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2453,6 +2644,7 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
|
|
|
2453
2644
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2454
2645
|
kind: z.ZodLiteral<"mcp">;
|
|
2455
2646
|
id: z.ZodString;
|
|
2647
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2456
2648
|
}, z.core.$strip>>>;
|
|
2457
2649
|
runtime: z.ZodDefault<z.ZodObject<{
|
|
2458
2650
|
available: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2504,6 +2696,7 @@ declare const Session: z.ZodObject<{
|
|
|
2504
2696
|
tools: z.ZodArray<z.ZodObject<{
|
|
2505
2697
|
kind: z.ZodLiteral<"mcp">;
|
|
2506
2698
|
id: z.ZodString;
|
|
2699
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2507
2700
|
}, z.core.$strip>>;
|
|
2508
2701
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2509
2702
|
model: z.ZodString;
|
|
@@ -2518,6 +2711,7 @@ declare const Session: z.ZodObject<{
|
|
|
2518
2711
|
blaxel: "blaxel";
|
|
2519
2712
|
cloudflare: "cloudflare";
|
|
2520
2713
|
vercel: "vercel";
|
|
2714
|
+
selfhosted: "selfhosted";
|
|
2521
2715
|
}>;
|
|
2522
2716
|
sandboxOs: z.ZodEnum<{
|
|
2523
2717
|
linux: "linux";
|
|
@@ -2525,6 +2719,8 @@ declare const Session: z.ZodObject<{
|
|
|
2525
2719
|
windows: "windows";
|
|
2526
2720
|
}>;
|
|
2527
2721
|
sandboxGroupId: z.ZodString;
|
|
2722
|
+
activeSandboxId: z.ZodNullable<z.ZodString>;
|
|
2723
|
+
activeEpoch: z.ZodNumber;
|
|
2528
2724
|
environmentId: z.ZodNullable<z.ZodString>;
|
|
2529
2725
|
firstPartyMcpPermissions: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
2530
2726
|
"account:read": "account:read";
|
|
@@ -2554,14 +2750,26 @@ declare const Session: z.ZodObject<{
|
|
|
2554
2750
|
"api_keys:manage": "api_keys:manage";
|
|
2555
2751
|
"environments:manage": "environments:manage";
|
|
2556
2752
|
"environments:use": "environments:use";
|
|
2753
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
2557
2754
|
"goals:manage": "goals:manage";
|
|
2755
|
+
"enrollments:read": "enrollments:read";
|
|
2756
|
+
"enrollments:manage": "enrollments:manage";
|
|
2558
2757
|
}>>>;
|
|
2758
|
+
mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2759
|
+
id: z.ZodString;
|
|
2760
|
+
name: z.ZodNullable<z.ZodString>;
|
|
2761
|
+
url: z.ZodString;
|
|
2762
|
+
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2763
|
+
credentialVersion: z.ZodNumber;
|
|
2764
|
+
}, z.core.$strict>>>;
|
|
2559
2765
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
2560
2766
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
2561
2767
|
temporalWorkflowId: z.ZodNullable<z.ZodString>;
|
|
2562
2768
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
2563
2769
|
lastInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
2564
2770
|
lastSequence: z.ZodNumber;
|
|
2771
|
+
codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
|
|
2772
|
+
codexLastCredentialId: z.ZodNullable<z.ZodString>;
|
|
2565
2773
|
createdAt: z.ZodString;
|
|
2566
2774
|
updatedAt: z.ZodString;
|
|
2567
2775
|
}, z.core.$strip>;
|
|
@@ -2612,6 +2820,7 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
2612
2820
|
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
2613
2821
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
2614
2822
|
"session.title_set": "session.title_set";
|
|
2823
|
+
"codex.account.switched": "codex.account.switched";
|
|
2615
2824
|
}>;
|
|
2616
2825
|
type SessionEventType = z.infer<typeof SessionEventType>;
|
|
2617
2826
|
declare const StreamUrlRotatedPayload: z.ZodObject<{
|
|
@@ -3368,6 +3577,7 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
3368
3577
|
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
3369
3578
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
3370
3579
|
"session.title_set": "session.title_set";
|
|
3580
|
+
"codex.account.switched": "codex.account.switched";
|
|
3371
3581
|
}>;
|
|
3372
3582
|
payload: z.ZodDefault<z.ZodUnknown>;
|
|
3373
3583
|
occurredAt: z.ZodString;
|
|
@@ -3393,6 +3603,7 @@ declare const CreateSessionRequest: z.ZodObject<{
|
|
|
3393
3603
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3394
3604
|
kind: z.ZodLiteral<"mcp">;
|
|
3395
3605
|
id: z.ZodString;
|
|
3606
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3396
3607
|
}, z.core.$strip>>>;
|
|
3397
3608
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3398
3609
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -3415,7 +3626,10 @@ declare const CreateSessionRequest: z.ZodObject<{
|
|
|
3415
3626
|
blaxel: "blaxel";
|
|
3416
3627
|
cloudflare: "cloudflare";
|
|
3417
3628
|
vercel: "vercel";
|
|
3629
|
+
selfhosted: "selfhosted";
|
|
3418
3630
|
}>>;
|
|
3631
|
+
targetSandboxId: z.ZodOptional<z.ZodString>;
|
|
3632
|
+
workingDir: z.ZodOptional<z.ZodString>;
|
|
3419
3633
|
environmentId: z.ZodOptional<z.ZodString>;
|
|
3420
3634
|
goal: z.ZodOptional<z.ZodObject<{
|
|
3421
3635
|
text: z.ZodString;
|
|
@@ -3452,8 +3666,20 @@ declare const CreateSessionRequest: z.ZodObject<{
|
|
|
3452
3666
|
"api_keys:manage": "api_keys:manage";
|
|
3453
3667
|
"environments:manage": "environments:manage";
|
|
3454
3668
|
"environments:use": "environments:use";
|
|
3669
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
3455
3670
|
"goals:manage": "goals:manage";
|
|
3671
|
+
"enrollments:read": "enrollments:read";
|
|
3672
|
+
"enrollments:manage": "enrollments:manage";
|
|
3456
3673
|
}>>>;
|
|
3674
|
+
mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3675
|
+
id: z.ZodString;
|
|
3676
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3677
|
+
url: z.ZodString;
|
|
3678
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3679
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3680
|
+
cacheToolsList: z.ZodOptional<z.ZodBoolean>;
|
|
3681
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3682
|
+
}, z.core.$strip>>>;
|
|
3457
3683
|
sandbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"shared">, z.ZodLiteral<"new">, z.ZodObject<{
|
|
3458
3684
|
groupId: z.ZodString;
|
|
3459
3685
|
}, z.core.$strip>]>>;
|
|
@@ -3480,6 +3706,7 @@ declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3480
3706
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3481
3707
|
kind: z.ZodLiteral<"mcp">;
|
|
3482
3708
|
id: z.ZodString;
|
|
3709
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3483
3710
|
}, z.core.$strip>>>;
|
|
3484
3711
|
model: z.ZodOptional<z.ZodString>;
|
|
3485
3712
|
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3490,6 +3717,10 @@ declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3490
3717
|
high: "high";
|
|
3491
3718
|
xhigh: "xhigh";
|
|
3492
3719
|
}>>;
|
|
3720
|
+
mcpCredentialUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3721
|
+
id: z.ZodString;
|
|
3722
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3723
|
+
}, z.core.$strip>>>;
|
|
3493
3724
|
}, z.core.$strip>;
|
|
3494
3725
|
}, z.core.$strip>, z.ZodObject<{
|
|
3495
3726
|
type: z.ZodLiteral<"user.interrupt">;
|
|
@@ -3564,6 +3795,7 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
3564
3795
|
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
3565
3796
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
3566
3797
|
"session.title_set": "session.title_set";
|
|
3798
|
+
"codex.account.switched": "codex.account.switched";
|
|
3567
3799
|
}>;
|
|
3568
3800
|
payload: z.ZodDefault<z.ZodUnknown>;
|
|
3569
3801
|
occurredAt: z.ZodString;
|
|
@@ -3613,6 +3845,10 @@ declare const CapabilityUnavailableReason: z.ZodEnum<{
|
|
|
3613
3845
|
disabled_by_policy: "disabled_by_policy";
|
|
3614
3846
|
lease_cold: "lease_cold";
|
|
3615
3847
|
tier_headless: "tier_headless";
|
|
3848
|
+
agent_offline: "agent_offline";
|
|
3849
|
+
agent_reconnecting: "agent_reconnecting";
|
|
3850
|
+
consent_required: "consent_required";
|
|
3851
|
+
display_unavailable: "display_unavailable";
|
|
3616
3852
|
}>;
|
|
3617
3853
|
type CapabilityUnavailableReason = z.infer<typeof CapabilityUnavailableReason>;
|
|
3618
3854
|
declare const SessionCapabilities: z.ZodObject<{
|
|
@@ -3628,6 +3864,7 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
3628
3864
|
blaxel: "blaxel";
|
|
3629
3865
|
cloudflare: "cloudflare";
|
|
3630
3866
|
vercel: "vercel";
|
|
3867
|
+
selfhosted: "selfhosted";
|
|
3631
3868
|
}>;
|
|
3632
3869
|
os: z.ZodEnum<{
|
|
3633
3870
|
linux: "linux";
|
|
@@ -3661,6 +3898,10 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
3661
3898
|
disabled_by_policy: "disabled_by_policy";
|
|
3662
3899
|
lease_cold: "lease_cold";
|
|
3663
3900
|
tier_headless: "tier_headless";
|
|
3901
|
+
agent_offline: "agent_offline";
|
|
3902
|
+
agent_reconnecting: "agent_reconnecting";
|
|
3903
|
+
consent_required: "consent_required";
|
|
3904
|
+
display_unavailable: "display_unavailable";
|
|
3664
3905
|
}>>;
|
|
3665
3906
|
}, z.core.$strip>;
|
|
3666
3907
|
Terminal: z.ZodObject<{
|
|
@@ -3680,6 +3921,10 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
3680
3921
|
disabled_by_policy: "disabled_by_policy";
|
|
3681
3922
|
lease_cold: "lease_cold";
|
|
3682
3923
|
tier_headless: "tier_headless";
|
|
3924
|
+
agent_offline: "agent_offline";
|
|
3925
|
+
agent_reconnecting: "agent_reconnecting";
|
|
3926
|
+
consent_required: "consent_required";
|
|
3927
|
+
display_unavailable: "display_unavailable";
|
|
3683
3928
|
}>>;
|
|
3684
3929
|
}, z.core.$strip>;
|
|
3685
3930
|
Git: z.ZodObject<{
|
|
@@ -3692,6 +3937,10 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
3692
3937
|
disabled_by_policy: "disabled_by_policy";
|
|
3693
3938
|
lease_cold: "lease_cold";
|
|
3694
3939
|
tier_headless: "tier_headless";
|
|
3940
|
+
agent_offline: "agent_offline";
|
|
3941
|
+
agent_reconnecting: "agent_reconnecting";
|
|
3942
|
+
consent_required: "consent_required";
|
|
3943
|
+
display_unavailable: "display_unavailable";
|
|
3695
3944
|
}>>;
|
|
3696
3945
|
}, z.core.$strip>;
|
|
3697
3946
|
DesktopStream: z.ZodObject<{
|
|
@@ -3699,10 +3948,12 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
3699
3948
|
"vnc-ws": "vnc-ws";
|
|
3700
3949
|
"rdp-ws": "rdp-ws";
|
|
3701
3950
|
webrtc: "webrtc";
|
|
3951
|
+
"relay-frames": "relay-frames";
|
|
3702
3952
|
}>>;
|
|
3703
3953
|
client: z.ZodNullable<z.ZodEnum<{
|
|
3704
3954
|
novnc: "novnc";
|
|
3705
3955
|
"web-rdp": "web-rdp";
|
|
3956
|
+
frames: "frames";
|
|
3706
3957
|
}>>;
|
|
3707
3958
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
3708
3959
|
"read-only": "read-only";
|
|
@@ -3724,6 +3975,10 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
3724
3975
|
disabled_by_policy: "disabled_by_policy";
|
|
3725
3976
|
lease_cold: "lease_cold";
|
|
3726
3977
|
tier_headless: "tier_headless";
|
|
3978
|
+
agent_offline: "agent_offline";
|
|
3979
|
+
agent_reconnecting: "agent_reconnecting";
|
|
3980
|
+
consent_required: "consent_required";
|
|
3981
|
+
display_unavailable: "display_unavailable";
|
|
3727
3982
|
}>>;
|
|
3728
3983
|
}, z.core.$strip>;
|
|
3729
3984
|
Recording: z.ZodObject<{
|
|
@@ -3744,6 +3999,10 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
3744
3999
|
disabled_by_policy: "disabled_by_policy";
|
|
3745
4000
|
lease_cold: "lease_cold";
|
|
3746
4001
|
tier_headless: "tier_headless";
|
|
4002
|
+
agent_offline: "agent_offline";
|
|
4003
|
+
agent_reconnecting: "agent_reconnecting";
|
|
4004
|
+
consent_required: "consent_required";
|
|
4005
|
+
display_unavailable: "display_unavailable";
|
|
3747
4006
|
}>>;
|
|
3748
4007
|
}, z.core.$strip>;
|
|
3749
4008
|
ComputerUse: z.ZodObject<{
|
|
@@ -3756,6 +4015,10 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
3756
4015
|
disabled_by_policy: "disabled_by_policy";
|
|
3757
4016
|
lease_cold: "lease_cold";
|
|
3758
4017
|
tier_headless: "tier_headless";
|
|
4018
|
+
agent_offline: "agent_offline";
|
|
4019
|
+
agent_reconnecting: "agent_reconnecting";
|
|
4020
|
+
consent_required: "consent_required";
|
|
4021
|
+
display_unavailable: "display_unavailable";
|
|
3759
4022
|
}>>;
|
|
3760
4023
|
}, z.core.$strip>;
|
|
3761
4024
|
negotiatedAt: z.ZodString;
|
|
@@ -3798,6 +4061,419 @@ declare const ViewerHeartbeatResponse: z.ZodObject<{
|
|
|
3798
4061
|
alive: z.ZodBoolean;
|
|
3799
4062
|
}, z.core.$strip>;
|
|
3800
4063
|
type ViewerHeartbeatResponse = z.infer<typeof ViewerHeartbeatResponse>;
|
|
4064
|
+
declare const EnrollmentOs: z.ZodEnum<{
|
|
4065
|
+
linux: "linux";
|
|
4066
|
+
macos: "macos";
|
|
4067
|
+
windows: "windows";
|
|
4068
|
+
}>;
|
|
4069
|
+
type EnrollmentOs = z.infer<typeof EnrollmentOs>;
|
|
4070
|
+
declare const EnrollmentArch: z.ZodEnum<{
|
|
4071
|
+
x86_64: "x86_64";
|
|
4072
|
+
aarch64: "aarch64";
|
|
4073
|
+
}>;
|
|
4074
|
+
type EnrollmentArch = z.infer<typeof EnrollmentArch>;
|
|
4075
|
+
declare const DeviceEnrollmentStartRequest: z.ZodObject<{
|
|
4076
|
+
publicKey: z.ZodString;
|
|
4077
|
+
os: z.ZodDefault<z.ZodEnum<{
|
|
4078
|
+
linux: "linux";
|
|
4079
|
+
macos: "macos";
|
|
4080
|
+
windows: "windows";
|
|
4081
|
+
}>>;
|
|
4082
|
+
arch: z.ZodDefault<z.ZodEnum<{
|
|
4083
|
+
x86_64: "x86_64";
|
|
4084
|
+
aarch64: "aarch64";
|
|
4085
|
+
}>>;
|
|
4086
|
+
machineName: z.ZodOptional<z.ZodString>;
|
|
4087
|
+
exposure: z.ZodDefault<z.ZodLiteral<"whole-machine">>;
|
|
4088
|
+
canOfferDisplay: z.ZodDefault<z.ZodBoolean>;
|
|
4089
|
+
requestsScreenControl: z.ZodDefault<z.ZodBoolean>;
|
|
4090
|
+
workspaceId: z.ZodString;
|
|
4091
|
+
}, z.core.$strip>;
|
|
4092
|
+
type DeviceEnrollmentStartRequest = z.infer<typeof DeviceEnrollmentStartRequest>;
|
|
4093
|
+
declare const DeviceEnrollmentStartResponse: z.ZodObject<{
|
|
4094
|
+
deviceCode: z.ZodString;
|
|
4095
|
+
userCode: z.ZodString;
|
|
4096
|
+
verificationUri: z.ZodString;
|
|
4097
|
+
verificationUriComplete: z.ZodString;
|
|
4098
|
+
intervalSeconds: z.ZodNumber;
|
|
4099
|
+
expiresInSeconds: z.ZodNumber;
|
|
4100
|
+
}, z.core.$strip>;
|
|
4101
|
+
type DeviceEnrollmentStartResponse = z.infer<typeof DeviceEnrollmentStartResponse>;
|
|
4102
|
+
declare const DeviceEnrollmentApproveRequest: z.ZodObject<{
|
|
4103
|
+
userCode: z.ZodString;
|
|
4104
|
+
allowScreenControl: z.ZodDefault<z.ZodBoolean>;
|
|
4105
|
+
}, z.core.$strip>;
|
|
4106
|
+
type DeviceEnrollmentApproveRequest = z.infer<typeof DeviceEnrollmentApproveRequest>;
|
|
4107
|
+
declare const DeviceEnrollmentApproveResponse: z.ZodObject<{
|
|
4108
|
+
approved: z.ZodBoolean;
|
|
4109
|
+
enrollmentId: z.ZodString;
|
|
4110
|
+
sandboxId: z.ZodString;
|
|
4111
|
+
allowScreenControl: z.ZodBoolean;
|
|
4112
|
+
}, z.core.$strip>;
|
|
4113
|
+
type DeviceEnrollmentApproveResponse = z.infer<typeof DeviceEnrollmentApproveResponse>;
|
|
4114
|
+
declare const DeviceEnrollmentPollRequest: z.ZodObject<{
|
|
4115
|
+
deviceCode: z.ZodString;
|
|
4116
|
+
}, z.core.$strip>;
|
|
4117
|
+
type DeviceEnrollmentPollRequest = z.infer<typeof DeviceEnrollmentPollRequest>;
|
|
4118
|
+
declare const DeviceEnrollmentState: z.ZodEnum<{
|
|
4119
|
+
disabled: "disabled";
|
|
4120
|
+
expired: "expired";
|
|
4121
|
+
pending: "pending";
|
|
4122
|
+
authorized: "authorized";
|
|
4123
|
+
denied: "denied";
|
|
4124
|
+
}>;
|
|
4125
|
+
type DeviceEnrollmentState = z.infer<typeof DeviceEnrollmentState>;
|
|
4126
|
+
declare const EnrollmentCredentialsResponse: z.ZodObject<{
|
|
4127
|
+
agentId: z.ZodString;
|
|
4128
|
+
workspaceId: z.ZodString;
|
|
4129
|
+
bearer: z.ZodString;
|
|
4130
|
+
subjectPrefix: z.ZodString;
|
|
4131
|
+
natsUrls: z.ZodArray<z.ZodString>;
|
|
4132
|
+
relayUrl: z.ZodString;
|
|
4133
|
+
relayToken: z.ZodString;
|
|
4134
|
+
natsAccountCreds: z.ZodString;
|
|
4135
|
+
updatePublicKey: z.ZodString;
|
|
4136
|
+
consentedWholeMachine: z.ZodBoolean;
|
|
4137
|
+
consentedScreenControl: z.ZodBoolean;
|
|
4138
|
+
}, z.core.$strip>;
|
|
4139
|
+
type EnrollmentCredentialsResponse = z.infer<typeof EnrollmentCredentialsResponse>;
|
|
4140
|
+
declare const DeviceEnrollmentPollResponse: z.ZodObject<{
|
|
4141
|
+
state: z.ZodEnum<{
|
|
4142
|
+
disabled: "disabled";
|
|
4143
|
+
expired: "expired";
|
|
4144
|
+
pending: "pending";
|
|
4145
|
+
authorized: "authorized";
|
|
4146
|
+
denied: "denied";
|
|
4147
|
+
}>;
|
|
4148
|
+
credentials: z.ZodOptional<z.ZodObject<{
|
|
4149
|
+
agentId: z.ZodString;
|
|
4150
|
+
workspaceId: z.ZodString;
|
|
4151
|
+
bearer: z.ZodString;
|
|
4152
|
+
subjectPrefix: z.ZodString;
|
|
4153
|
+
natsUrls: z.ZodArray<z.ZodString>;
|
|
4154
|
+
relayUrl: z.ZodString;
|
|
4155
|
+
relayToken: z.ZodString;
|
|
4156
|
+
natsAccountCreds: z.ZodString;
|
|
4157
|
+
updatePublicKey: z.ZodString;
|
|
4158
|
+
consentedWholeMachine: z.ZodBoolean;
|
|
4159
|
+
consentedScreenControl: z.ZodBoolean;
|
|
4160
|
+
}, z.core.$strip>>;
|
|
4161
|
+
}, z.core.$strip>;
|
|
4162
|
+
type DeviceEnrollmentPollResponse = z.infer<typeof DeviceEnrollmentPollResponse>;
|
|
4163
|
+
declare const EnrollmentSummary: z.ZodObject<{
|
|
4164
|
+
id: z.ZodString;
|
|
4165
|
+
pubkey: z.ZodString;
|
|
4166
|
+
exposure: z.ZodLiteral<"whole-machine">;
|
|
4167
|
+
hasDisplay: z.ZodBoolean;
|
|
4168
|
+
allowScreenControl: z.ZodBoolean;
|
|
4169
|
+
status: z.ZodEnum<{
|
|
4170
|
+
active: "active";
|
|
4171
|
+
revoked: "revoked";
|
|
4172
|
+
}>;
|
|
4173
|
+
os: z.ZodEnum<{
|
|
4174
|
+
linux: "linux";
|
|
4175
|
+
macos: "macos";
|
|
4176
|
+
windows: "windows";
|
|
4177
|
+
}>;
|
|
4178
|
+
arch: z.ZodString;
|
|
4179
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
4180
|
+
createdAt: z.ZodString;
|
|
4181
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
4182
|
+
}, z.core.$strip>;
|
|
4183
|
+
type EnrollmentSummary = z.infer<typeof EnrollmentSummary>;
|
|
4184
|
+
declare const ListEnrollmentsResponse: z.ZodObject<{
|
|
4185
|
+
enrollments: z.ZodArray<z.ZodObject<{
|
|
4186
|
+
id: z.ZodString;
|
|
4187
|
+
pubkey: z.ZodString;
|
|
4188
|
+
exposure: z.ZodLiteral<"whole-machine">;
|
|
4189
|
+
hasDisplay: z.ZodBoolean;
|
|
4190
|
+
allowScreenControl: z.ZodBoolean;
|
|
4191
|
+
status: z.ZodEnum<{
|
|
4192
|
+
active: "active";
|
|
4193
|
+
revoked: "revoked";
|
|
4194
|
+
}>;
|
|
4195
|
+
os: z.ZodEnum<{
|
|
4196
|
+
linux: "linux";
|
|
4197
|
+
macos: "macos";
|
|
4198
|
+
windows: "windows";
|
|
4199
|
+
}>;
|
|
4200
|
+
arch: z.ZodString;
|
|
4201
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
4202
|
+
createdAt: z.ZodString;
|
|
4203
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
4204
|
+
}, z.core.$strip>>;
|
|
4205
|
+
}, z.core.$strip>;
|
|
4206
|
+
type ListEnrollmentsResponse = z.infer<typeof ListEnrollmentsResponse>;
|
|
4207
|
+
declare const RevokeEnrollmentResponse: z.ZodObject<{
|
|
4208
|
+
revoked: z.ZodBoolean;
|
|
4209
|
+
}, z.core.$strip>;
|
|
4210
|
+
type RevokeEnrollmentResponse = z.infer<typeof RevokeEnrollmentResponse>;
|
|
4211
|
+
declare const DeviceEnrollmentLookupRequest: z.ZodObject<{
|
|
4212
|
+
userCode: z.ZodString;
|
|
4213
|
+
}, z.core.$strip>;
|
|
4214
|
+
type DeviceEnrollmentLookupRequest = z.infer<typeof DeviceEnrollmentLookupRequest>;
|
|
4215
|
+
declare const DeviceEnrollmentLookupMachine: z.ZodObject<{
|
|
4216
|
+
machineName: z.ZodNullable<z.ZodString>;
|
|
4217
|
+
os: z.ZodEnum<{
|
|
4218
|
+
linux: "linux";
|
|
4219
|
+
macos: "macos";
|
|
4220
|
+
windows: "windows";
|
|
4221
|
+
}>;
|
|
4222
|
+
arch: z.ZodString;
|
|
4223
|
+
canOfferDisplay: z.ZodBoolean;
|
|
4224
|
+
requestsScreenControl: z.ZodBoolean;
|
|
4225
|
+
}, z.core.$strip>;
|
|
4226
|
+
type DeviceEnrollmentLookupMachine = z.infer<typeof DeviceEnrollmentLookupMachine>;
|
|
4227
|
+
declare const DeviceEnrollmentLookupResponse: z.ZodObject<{
|
|
4228
|
+
workspaceId: z.ZodString;
|
|
4229
|
+
userCode: z.ZodString;
|
|
4230
|
+
machine: z.ZodObject<{
|
|
4231
|
+
machineName: z.ZodNullable<z.ZodString>;
|
|
4232
|
+
os: z.ZodEnum<{
|
|
4233
|
+
linux: "linux";
|
|
4234
|
+
macos: "macos";
|
|
4235
|
+
windows: "windows";
|
|
4236
|
+
}>;
|
|
4237
|
+
arch: z.ZodString;
|
|
4238
|
+
canOfferDisplay: z.ZodBoolean;
|
|
4239
|
+
requestsScreenControl: z.ZodBoolean;
|
|
4240
|
+
}, z.core.$strip>;
|
|
4241
|
+
expiresAt: z.ZodString;
|
|
4242
|
+
}, z.core.$strip>;
|
|
4243
|
+
type DeviceEnrollmentLookupResponse = z.infer<typeof DeviceEnrollmentLookupResponse>;
|
|
4244
|
+
declare const DeviceEnrollmentDenyRequest: z.ZodObject<{
|
|
4245
|
+
userCode: z.ZodString;
|
|
4246
|
+
}, z.core.$strip>;
|
|
4247
|
+
type DeviceEnrollmentDenyRequest = z.infer<typeof DeviceEnrollmentDenyRequest>;
|
|
4248
|
+
declare const DeviceEnrollmentDenyResponse: z.ZodObject<{
|
|
4249
|
+
denied: z.ZodBoolean;
|
|
4250
|
+
}, z.core.$strip>;
|
|
4251
|
+
type DeviceEnrollmentDenyResponse = z.infer<typeof DeviceEnrollmentDenyResponse>;
|
|
4252
|
+
declare const MintEnrollTokenRequest: z.ZodObject<{
|
|
4253
|
+
allowScreenControl: z.ZodDefault<z.ZodBoolean>;
|
|
4254
|
+
}, z.core.$strip>;
|
|
4255
|
+
type MintEnrollTokenRequest = z.infer<typeof MintEnrollTokenRequest>;
|
|
4256
|
+
declare const MintEnrollTokenResponse: z.ZodObject<{
|
|
4257
|
+
token: z.ZodString;
|
|
4258
|
+
expiresAt: z.ZodString;
|
|
4259
|
+
expiresInSeconds: z.ZodNumber;
|
|
4260
|
+
}, z.core.$strip>;
|
|
4261
|
+
type MintEnrollTokenResponse = z.infer<typeof MintEnrollTokenResponse>;
|
|
4262
|
+
declare const EnrollTokenExchangeRequest: z.ZodObject<{
|
|
4263
|
+
token: z.ZodString;
|
|
4264
|
+
publicKey: z.ZodString;
|
|
4265
|
+
os: z.ZodDefault<z.ZodEnum<{
|
|
4266
|
+
linux: "linux";
|
|
4267
|
+
macos: "macos";
|
|
4268
|
+
windows: "windows";
|
|
4269
|
+
}>>;
|
|
4270
|
+
arch: z.ZodDefault<z.ZodEnum<{
|
|
4271
|
+
x86_64: "x86_64";
|
|
4272
|
+
aarch64: "aarch64";
|
|
4273
|
+
}>>;
|
|
4274
|
+
machineName: z.ZodOptional<z.ZodString>;
|
|
4275
|
+
exposure: z.ZodDefault<z.ZodLiteral<"whole-machine">>;
|
|
4276
|
+
canOfferDisplay: z.ZodDefault<z.ZodBoolean>;
|
|
4277
|
+
requestsScreenControl: z.ZodDefault<z.ZodBoolean>;
|
|
4278
|
+
}, z.core.$strip>;
|
|
4279
|
+
type EnrollTokenExchangeRequest = z.infer<typeof EnrollTokenExchangeRequest>;
|
|
4280
|
+
declare const EnrollTokenExchangeResponse: z.ZodObject<{
|
|
4281
|
+
credentials: z.ZodObject<{
|
|
4282
|
+
agentId: z.ZodString;
|
|
4283
|
+
workspaceId: z.ZodString;
|
|
4284
|
+
bearer: z.ZodString;
|
|
4285
|
+
subjectPrefix: z.ZodString;
|
|
4286
|
+
natsUrls: z.ZodArray<z.ZodString>;
|
|
4287
|
+
relayUrl: z.ZodString;
|
|
4288
|
+
relayToken: z.ZodString;
|
|
4289
|
+
natsAccountCreds: z.ZodString;
|
|
4290
|
+
updatePublicKey: z.ZodString;
|
|
4291
|
+
consentedWholeMachine: z.ZodBoolean;
|
|
4292
|
+
consentedScreenControl: z.ZodBoolean;
|
|
4293
|
+
}, z.core.$strip>;
|
|
4294
|
+
}, z.core.$strip>;
|
|
4295
|
+
type EnrollTokenExchangeResponse = z.infer<typeof EnrollTokenExchangeResponse>;
|
|
4296
|
+
/**
|
|
4297
|
+
* A point-in-time machine metrics sample as the dashboard reads it. `cpuPct` and
|
|
4298
|
+
* the load averages are 0..N doubles; the byte figures are integers; `gpuUtilPct`
|
|
4299
|
+
* / `gpuMemBytes` are null when no GPU was present at sample time (the wire
|
|
4300
|
+
* contract: absence == not-reported, NEVER a real zero). `runQueue` is the
|
|
4301
|
+
* runnable-count contention signal. `sampledAt` is an ISO-8601 instant.
|
|
4302
|
+
*/
|
|
4303
|
+
declare const MetricSample: z.ZodObject<{
|
|
4304
|
+
cpuPct: z.ZodNumber;
|
|
4305
|
+
load1: z.ZodNumber;
|
|
4306
|
+
load5: z.ZodNumber;
|
|
4307
|
+
load15: z.ZodNumber;
|
|
4308
|
+
memUsedBytes: z.ZodNumber;
|
|
4309
|
+
memTotalBytes: z.ZodNumber;
|
|
4310
|
+
diskUsedBytes: z.ZodNumber;
|
|
4311
|
+
diskTotalBytes: z.ZodNumber;
|
|
4312
|
+
gpuUtilPct: z.ZodNullable<z.ZodNumber>;
|
|
4313
|
+
gpuMemBytes: z.ZodNullable<z.ZodNumber>;
|
|
4314
|
+
runQueue: z.ZodNumber;
|
|
4315
|
+
sampledAt: z.ZodString;
|
|
4316
|
+
}, z.core.$strip>;
|
|
4317
|
+
type MetricSample = z.infer<typeof MetricSample>;
|
|
4318
|
+
/** The derived dashboard state of a machine. The M3 liveness
|
|
4319
|
+
* (online/reconnecting/offline) plus the enrollment-derived consent/display
|
|
4320
|
+
* reasons (consent_required / display_unavailable) and the in-flight device-flow
|
|
4321
|
+
* (enrolling). */
|
|
4322
|
+
declare const MachineState: z.ZodEnum<{
|
|
4323
|
+
consent_required: "consent_required";
|
|
4324
|
+
display_unavailable: "display_unavailable";
|
|
4325
|
+
online: "online";
|
|
4326
|
+
reconnecting: "reconnecting";
|
|
4327
|
+
offline: "offline";
|
|
4328
|
+
enrolling: "enrolling";
|
|
4329
|
+
}>;
|
|
4330
|
+
type MachineState = z.infer<typeof MachineState>;
|
|
4331
|
+
declare const MachineKind: z.ZodEnum<{
|
|
4332
|
+
modal: "modal";
|
|
4333
|
+
selfhosted: "selfhosted";
|
|
4334
|
+
}>;
|
|
4335
|
+
type MachineKind = z.infer<typeof MachineKind>;
|
|
4336
|
+
/**
|
|
4337
|
+
* A machine as the Machines dashboard renders it. The workspace's enrolled
|
|
4338
|
+
* selfhosted machines PLUS the session's synthetic Modal group box
|
|
4339
|
+
* (`isSessionGroup: true`). `active` marks the session's currently-active
|
|
4340
|
+
* routing target. `sharedSessionCount` is the lease refcount (how many sessions
|
|
4341
|
+
* share this whole machine). `metrics` is the latest sample, or null when none
|
|
4342
|
+
* has landed yet (just enrolled / offline before a first heartbeat).
|
|
4343
|
+
*/
|
|
4344
|
+
declare const MachineView: z.ZodObject<{
|
|
4345
|
+
sandboxId: z.ZodString;
|
|
4346
|
+
enrollmentId: z.ZodNullable<z.ZodString>;
|
|
4347
|
+
name: z.ZodString;
|
|
4348
|
+
kind: z.ZodEnum<{
|
|
4349
|
+
modal: "modal";
|
|
4350
|
+
selfhosted: "selfhosted";
|
|
4351
|
+
}>;
|
|
4352
|
+
state: z.ZodEnum<{
|
|
4353
|
+
consent_required: "consent_required";
|
|
4354
|
+
display_unavailable: "display_unavailable";
|
|
4355
|
+
online: "online";
|
|
4356
|
+
reconnecting: "reconnecting";
|
|
4357
|
+
offline: "offline";
|
|
4358
|
+
enrolling: "enrolling";
|
|
4359
|
+
}>;
|
|
4360
|
+
active: z.ZodBoolean;
|
|
4361
|
+
isSessionGroup: z.ZodBoolean;
|
|
4362
|
+
os: z.ZodString;
|
|
4363
|
+
arch: z.ZodString;
|
|
4364
|
+
hasDisplay: z.ZodBoolean;
|
|
4365
|
+
allowScreenControl: z.ZodBoolean;
|
|
4366
|
+
sharedSessionCount: z.ZodNumber;
|
|
4367
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
4368
|
+
metrics: z.ZodNullable<z.ZodObject<{
|
|
4369
|
+
cpuPct: z.ZodNumber;
|
|
4370
|
+
load1: z.ZodNumber;
|
|
4371
|
+
load5: z.ZodNumber;
|
|
4372
|
+
load15: z.ZodNumber;
|
|
4373
|
+
memUsedBytes: z.ZodNumber;
|
|
4374
|
+
memTotalBytes: z.ZodNumber;
|
|
4375
|
+
diskUsedBytes: z.ZodNumber;
|
|
4376
|
+
diskTotalBytes: z.ZodNumber;
|
|
4377
|
+
gpuUtilPct: z.ZodNullable<z.ZodNumber>;
|
|
4378
|
+
gpuMemBytes: z.ZodNullable<z.ZodNumber>;
|
|
4379
|
+
runQueue: z.ZodNumber;
|
|
4380
|
+
sampledAt: z.ZodString;
|
|
4381
|
+
}, z.core.$strip>>;
|
|
4382
|
+
}, z.core.$strip>;
|
|
4383
|
+
type MachineView = z.infer<typeof MachineView>;
|
|
4384
|
+
/**
|
|
4385
|
+
* GET /v1/workspaces/:ws/machines — the dashboard list. `activeSandboxId` /
|
|
4386
|
+
* `activeEpoch` echo the session's epoch-fenced active-sandbox pointer (null
|
|
4387
|
+
* activeSandboxId == the session's own group box is active).
|
|
4388
|
+
*/
|
|
4389
|
+
declare const MachinesResponse: z.ZodObject<{
|
|
4390
|
+
activeSandboxId: z.ZodNullable<z.ZodString>;
|
|
4391
|
+
activeEpoch: z.ZodNumber;
|
|
4392
|
+
machines: z.ZodArray<z.ZodObject<{
|
|
4393
|
+
sandboxId: z.ZodString;
|
|
4394
|
+
enrollmentId: z.ZodNullable<z.ZodString>;
|
|
4395
|
+
name: z.ZodString;
|
|
4396
|
+
kind: z.ZodEnum<{
|
|
4397
|
+
modal: "modal";
|
|
4398
|
+
selfhosted: "selfhosted";
|
|
4399
|
+
}>;
|
|
4400
|
+
state: z.ZodEnum<{
|
|
4401
|
+
consent_required: "consent_required";
|
|
4402
|
+
display_unavailable: "display_unavailable";
|
|
4403
|
+
online: "online";
|
|
4404
|
+
reconnecting: "reconnecting";
|
|
4405
|
+
offline: "offline";
|
|
4406
|
+
enrolling: "enrolling";
|
|
4407
|
+
}>;
|
|
4408
|
+
active: z.ZodBoolean;
|
|
4409
|
+
isSessionGroup: z.ZodBoolean;
|
|
4410
|
+
os: z.ZodString;
|
|
4411
|
+
arch: z.ZodString;
|
|
4412
|
+
hasDisplay: z.ZodBoolean;
|
|
4413
|
+
allowScreenControl: z.ZodBoolean;
|
|
4414
|
+
sharedSessionCount: z.ZodNumber;
|
|
4415
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
4416
|
+
metrics: z.ZodNullable<z.ZodObject<{
|
|
4417
|
+
cpuPct: z.ZodNumber;
|
|
4418
|
+
load1: z.ZodNumber;
|
|
4419
|
+
load5: z.ZodNumber;
|
|
4420
|
+
load15: z.ZodNumber;
|
|
4421
|
+
memUsedBytes: z.ZodNumber;
|
|
4422
|
+
memTotalBytes: z.ZodNumber;
|
|
4423
|
+
diskUsedBytes: z.ZodNumber;
|
|
4424
|
+
diskTotalBytes: z.ZodNumber;
|
|
4425
|
+
gpuUtilPct: z.ZodNullable<z.ZodNumber>;
|
|
4426
|
+
gpuMemBytes: z.ZodNullable<z.ZodNumber>;
|
|
4427
|
+
runQueue: z.ZodNumber;
|
|
4428
|
+
sampledAt: z.ZodString;
|
|
4429
|
+
}, z.core.$strip>>;
|
|
4430
|
+
}, z.core.$strip>>;
|
|
4431
|
+
}, z.core.$strip>;
|
|
4432
|
+
type MachinesResponse = z.infer<typeof MachinesResponse>;
|
|
4433
|
+
/**
|
|
4434
|
+
* POST /v1/workspaces/:ws/sessions/:sessionId/active-sandbox — the user-
|
|
4435
|
+
* authenticated swap of a session's active sandbox (the same epoch-fenced
|
|
4436
|
+
* mechanic the M7 `sandbox_swap` MCP tool exposes to the agent). `target` is a
|
|
4437
|
+
* `MachinesResponse` machine's `sandboxId`, or "session"/"default" to swap back
|
|
4438
|
+
* to the session's own group box.
|
|
4439
|
+
*/
|
|
4440
|
+
declare const SwapActiveSandboxRequest: z.ZodObject<{
|
|
4441
|
+
target: z.ZodString;
|
|
4442
|
+
}, z.core.$strip>;
|
|
4443
|
+
type SwapActiveSandboxRequest = z.infer<typeof SwapActiveSandboxRequest>;
|
|
4444
|
+
/**
|
|
4445
|
+
* The swap outcome (mirrors the server `FleetSwapResult`). `swapped` is true on a
|
|
4446
|
+
* successful repoint OR a no-op (already pointed there); `reason` carries the
|
|
4447
|
+
* failure detail (unowned/offline target, or a lost epoch fence) when false.
|
|
4448
|
+
*/
|
|
4449
|
+
declare const SwapActiveSandboxResponse: z.ZodObject<{
|
|
4450
|
+
swapped: z.ZodBoolean;
|
|
4451
|
+
activeSandboxId: z.ZodNullable<z.ZodString>;
|
|
4452
|
+
activeEpoch: z.ZodNumber;
|
|
4453
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4454
|
+
}, z.core.$strip>;
|
|
4455
|
+
type SwapActiveSandboxResponse = z.infer<typeof SwapActiveSandboxResponse>;
|
|
4456
|
+
/**
|
|
4457
|
+
* GET /v1/workspaces/:ws/machines/:enrollmentId/metrics/series?window=1h — the
|
|
4458
|
+
* downsampled (~1/min) history the dashboard time-range reads.
|
|
4459
|
+
*/
|
|
4460
|
+
declare const MachineMetricsSeriesResponse: z.ZodObject<{
|
|
4461
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
4462
|
+
cpuPct: z.ZodNumber;
|
|
4463
|
+
load1: z.ZodNumber;
|
|
4464
|
+
load5: z.ZodNumber;
|
|
4465
|
+
load15: z.ZodNumber;
|
|
4466
|
+
memUsedBytes: z.ZodNumber;
|
|
4467
|
+
memTotalBytes: z.ZodNumber;
|
|
4468
|
+
diskUsedBytes: z.ZodNumber;
|
|
4469
|
+
diskTotalBytes: z.ZodNumber;
|
|
4470
|
+
gpuUtilPct: z.ZodNullable<z.ZodNumber>;
|
|
4471
|
+
gpuMemBytes: z.ZodNullable<z.ZodNumber>;
|
|
4472
|
+
runQueue: z.ZodNumber;
|
|
4473
|
+
sampledAt: z.ZodString;
|
|
4474
|
+
}, z.core.$strip>>;
|
|
4475
|
+
}, z.core.$strip>;
|
|
4476
|
+
type MachineMetricsSeriesResponse = z.infer<typeof MachineMetricsSeriesResponse>;
|
|
3801
4477
|
/**
|
|
3802
4478
|
* A single host-exposed model + the provider that serves it, as surfaced to
|
|
3803
4479
|
* clients (SDK + React composer) by GET /v1/config/client. The wire `api`
|
|
@@ -3887,4 +4563,4 @@ type HealthResponse = {
|
|
|
3887
4563
|
ok: boolean;
|
|
3888
4564
|
};
|
|
3889
4565
|
|
|
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 };
|
|
4566
|
+
export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, 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, type ConnectionCredentialsPort, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateScheduledTaskRequest, CreateSessionRequest, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EnableCapabilityRequest, EnablePackRequest, EnrollTokenExchangeRequest, EnrollTokenExchangeResponse, EnrollTokenPayload, EnrollmentArch, EnrollmentBearerPayload, EnrollmentCredentialsResponse, EnrollmentOs, EnrollmentSummary, EntitlementDecision, EntitlementValue, Entitlements, EntitlementsMode, type EntitlementsPort, 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, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHubAppApiPort, GitHubAppManifestCreate, type GitHubInstallationSummary, GitHubRepository, GitLogRequest, GitLogResponse, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, LimitAction, LimitDecision, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, PackInstallation, PackInstallationStatus, PageInfo, Permission, type PortExposureKind, ProductAccessMode, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, ReorderSessionTurnsRequest, RepositoryResourceRef, ResourceRef, ResourceRefConflictError, RevokeEnrollmentResponse, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, Session, SessionBusMessage, SessionCapabilities, SessionEvent, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionMcpCredentialUpdateInput, SessionMcpServerInput, SessionMcpServerMetadata, SessionStatus, SessionStructuredCapabilities, SessionTurn, SessionTurnSource, SessionTurnStatus, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SwapActiveSandboxRequest, SwapActiveSandboxResponse, 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, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken };
|