@opengeni/contracts 0.6.0 → 0.9.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/LICENSE +190 -0
- package/dist/index.d.ts +611 -19
- package/dist/index.js +253 -17
- package/dist/index.js.map +1 -1
- package/package.json +3 -6
- package/src/index.ts +275 -16
package/dist/index.js
CHANGED
|
@@ -371,17 +371,6 @@ var ErrorEnvelope = z.object({
|
|
|
371
371
|
details: z.record(z.string(), z.unknown()).optional()
|
|
372
372
|
})
|
|
373
373
|
});
|
|
374
|
-
var PageInfo = z.object({
|
|
375
|
-
limit: z.number().int().positive(),
|
|
376
|
-
nextCursor: z.string().nullable(),
|
|
377
|
-
hasMore: z.boolean()
|
|
378
|
-
});
|
|
379
|
-
function paginated(item) {
|
|
380
|
-
return z.object({
|
|
381
|
-
data: z.array(item),
|
|
382
|
-
page: PageInfo
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
374
|
var Permission = z.enum([
|
|
386
375
|
"account:read",
|
|
387
376
|
"account:admin",
|
|
@@ -423,12 +412,18 @@ var Permission = z.enum([
|
|
|
423
412
|
"github:manage",
|
|
424
413
|
"github:use",
|
|
425
414
|
"api_keys:manage",
|
|
415
|
+
"connections:read",
|
|
416
|
+
"connections:write",
|
|
426
417
|
"environments:manage",
|
|
427
418
|
"environments:use",
|
|
428
419
|
// Attach or rotate per-session third-party MCP server credentials. Deliberately
|
|
429
420
|
// not part of the worker's default first-party MCP permission set: a sandboxed
|
|
430
421
|
// agent must not be able to hand itself new bearer credentials.
|
|
431
422
|
"mcp_servers:attach",
|
|
423
|
+
// Programmatic sandbox -> tool access through the first-party MCP gate. This is
|
|
424
|
+
// intentionally narrow and is never part of first-party MCP defaults; callers
|
|
425
|
+
// must receive it through an explicit delegated `ogd_` mint carrying sessionId.
|
|
426
|
+
"toolspace:call",
|
|
432
427
|
"goals:manage",
|
|
433
428
|
// Bring-your-own-compute (M5). enrollments:read lists a workspace's machines;
|
|
434
429
|
// enrollments:manage approves a device-flow enrollment (the LOUD whole-machine
|
|
@@ -438,6 +433,9 @@ var Permission = z.enum([
|
|
|
438
433
|
"enrollments:read",
|
|
439
434
|
"enrollments:manage"
|
|
440
435
|
]);
|
|
436
|
+
function prefixedMcpToolName(registryId2, toolName) {
|
|
437
|
+
return `${registryId2}__${toolName}`;
|
|
438
|
+
}
|
|
441
439
|
var ProductAccessMode = z.enum(["local", "configured", "managed"]);
|
|
442
440
|
var BillingMode = z.enum(["disabled", "stripe"]);
|
|
443
441
|
var EntitlementsMode = z.enum(["none", "static", "managed"]);
|
|
@@ -893,6 +891,8 @@ var FileDownloadUrlResponse = z.object({
|
|
|
893
891
|
expiresAt: z.string()
|
|
894
892
|
});
|
|
895
893
|
var DocumentStatus = z.enum(["queued", "indexing", "ready", "failed"]);
|
|
894
|
+
var KnowledgeSourceKind = z.enum(["manual_upload", "meeting_transcript", "repository", "email", "chat", "document", "web", "other"]);
|
|
895
|
+
var DocumentSearchMode = z.enum(["hybrid", "vector", "keyword"]);
|
|
896
896
|
var DocumentBase = z.object({
|
|
897
897
|
id: z.string().uuid(),
|
|
898
898
|
workspaceId: z.string().uuid(),
|
|
@@ -911,6 +911,15 @@ var Document = z.object({
|
|
|
911
911
|
parser: z.string(),
|
|
912
912
|
chunkCount: z.number().int().nonnegative(),
|
|
913
913
|
error: z.string().nullable(),
|
|
914
|
+
sourceKind: KnowledgeSourceKind,
|
|
915
|
+
sourceUri: z.string().nullable(),
|
|
916
|
+
sourceExternalId: z.string().nullable(),
|
|
917
|
+
sourceTitle: z.string().nullable(),
|
|
918
|
+
sourceAuthor: z.string().nullable(),
|
|
919
|
+
sourceCreatedAt: z.string().nullable(),
|
|
920
|
+
sourceUpdatedAt: z.string().nullable(),
|
|
921
|
+
sourceVersion: z.string().nullable(),
|
|
922
|
+
aclTags: z.array(z.string()),
|
|
914
923
|
createdAt: z.string(),
|
|
915
924
|
updatedAt: z.string()
|
|
916
925
|
});
|
|
@@ -923,19 +932,97 @@ var DocumentSearchResult = z.object({
|
|
|
923
932
|
title: z.string(),
|
|
924
933
|
text: z.string(),
|
|
925
934
|
score: z.number(),
|
|
935
|
+
matchType: DocumentSearchMode,
|
|
936
|
+
vectorScore: z.number().nullable(),
|
|
937
|
+
keywordScore: z.number().nullable(),
|
|
926
938
|
chunkIndex: z.number().int().nonnegative(),
|
|
927
|
-
metadata: z.record(z.string(), z.unknown())
|
|
939
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
940
|
+
sourceKind: KnowledgeSourceKind,
|
|
941
|
+
sourceUri: z.string().nullable(),
|
|
942
|
+
sourceExternalId: z.string().nullable(),
|
|
943
|
+
sourceTitle: z.string().nullable(),
|
|
944
|
+
sourceAuthor: z.string().nullable(),
|
|
945
|
+
sourceCreatedAt: z.string().nullable(),
|
|
946
|
+
sourceUpdatedAt: z.string().nullable(),
|
|
947
|
+
sourceVersion: z.string().nullable(),
|
|
948
|
+
aclTags: z.array(z.string())
|
|
928
949
|
});
|
|
929
950
|
var CreateDocumentBaseRequest = z.object({
|
|
930
951
|
name: z.string().min(1),
|
|
931
952
|
description: z.string().optional()
|
|
932
953
|
});
|
|
933
954
|
var AddDocumentRequest = z.object({
|
|
934
|
-
fileId: z.string().uuid()
|
|
955
|
+
fileId: z.string().uuid(),
|
|
956
|
+
title: z.string().min(1).optional(),
|
|
957
|
+
sourceKind: KnowledgeSourceKind.optional(),
|
|
958
|
+
sourceUri: z.string().min(1).optional(),
|
|
959
|
+
sourceExternalId: z.string().min(1).optional(),
|
|
960
|
+
sourceTitle: z.string().min(1).optional(),
|
|
961
|
+
sourceAuthor: z.string().min(1).optional(),
|
|
962
|
+
sourceCreatedAt: z.string().datetime({ offset: true }).optional(),
|
|
963
|
+
sourceUpdatedAt: z.string().datetime({ offset: true }).optional(),
|
|
964
|
+
sourceVersion: z.string().min(1).optional(),
|
|
965
|
+
aclTags: z.array(z.string().min(1)).optional()
|
|
935
966
|
});
|
|
936
967
|
var DocumentSearchRequest = z.object({
|
|
937
968
|
query: z.string().min(1),
|
|
938
|
-
|
|
969
|
+
baseIds: z.array(z.string().uuid()).optional(),
|
|
970
|
+
mode: DocumentSearchMode.optional(),
|
|
971
|
+
sourceKinds: z.array(KnowledgeSourceKind).optional(),
|
|
972
|
+
aclTags: z.array(z.string().min(1)).optional(),
|
|
973
|
+
limit: z.number().int().positive().max(50).default(5)
|
|
974
|
+
});
|
|
975
|
+
var KnowledgeMemoryStatus = z.enum(["proposed", "approved", "rejected"]);
|
|
976
|
+
var KnowledgeMemoryKind = z.enum(["semantic", "episodic", "procedural", "decision", "preference"]);
|
|
977
|
+
var KnowledgeSourceRef = z.object({
|
|
978
|
+
kind: z.enum(["document_chunk", "document", "session_event", "memory", "external"]),
|
|
979
|
+
id: z.string().min(1),
|
|
980
|
+
uri: z.string().min(1).optional(),
|
|
981
|
+
title: z.string().min(1).optional(),
|
|
982
|
+
metadata: z.record(z.string(), z.unknown()).default({})
|
|
983
|
+
});
|
|
984
|
+
var KnowledgeMemory = z.object({
|
|
985
|
+
id: z.string().uuid(),
|
|
986
|
+
workspaceId: z.string().uuid(),
|
|
987
|
+
status: KnowledgeMemoryStatus,
|
|
988
|
+
kind: KnowledgeMemoryKind,
|
|
989
|
+
scope: z.string(),
|
|
990
|
+
text: z.string(),
|
|
991
|
+
sourceRefs: z.array(KnowledgeSourceRef),
|
|
992
|
+
confidence: z.number().min(0).max(1),
|
|
993
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
994
|
+
createdBySessionId: z.string().uuid().nullable(),
|
|
995
|
+
reviewedBy: z.string().nullable(),
|
|
996
|
+
reviewedAt: z.string().nullable(),
|
|
997
|
+
createdAt: z.string(),
|
|
998
|
+
updatedAt: z.string()
|
|
999
|
+
});
|
|
1000
|
+
var CreateKnowledgeMemoryRequest = z.object({
|
|
1001
|
+
status: KnowledgeMemoryStatus.default("proposed"),
|
|
1002
|
+
kind: KnowledgeMemoryKind.default("semantic"),
|
|
1003
|
+
scope: z.string().min(1).default("workspace"),
|
|
1004
|
+
text: z.string().min(1),
|
|
1005
|
+
sourceRefs: z.array(KnowledgeSourceRef).default([]),
|
|
1006
|
+
confidence: z.number().min(0).max(1).default(0.5),
|
|
1007
|
+
metadata: z.record(z.string(), z.unknown()).default({}),
|
|
1008
|
+
createdBySessionId: z.string().uuid().optional()
|
|
1009
|
+
});
|
|
1010
|
+
var UpdateKnowledgeMemoryRequest = z.object({
|
|
1011
|
+
status: KnowledgeMemoryStatus.optional(),
|
|
1012
|
+
kind: KnowledgeMemoryKind.optional(),
|
|
1013
|
+
scope: z.string().min(1).optional(),
|
|
1014
|
+
text: z.string().min(1).optional(),
|
|
1015
|
+
sourceRefs: z.array(KnowledgeSourceRef).optional(),
|
|
1016
|
+
confidence: z.number().min(0).max(1).optional(),
|
|
1017
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
1018
|
+
reviewedBy: z.string().min(1).optional()
|
|
1019
|
+
});
|
|
1020
|
+
var KnowledgeMemorySearchRequest = z.object({
|
|
1021
|
+
query: z.string().min(1).optional(),
|
|
1022
|
+
status: KnowledgeMemoryStatus.optional(),
|
|
1023
|
+
kind: KnowledgeMemoryKind.optional(),
|
|
1024
|
+
scope: z.string().min(1).optional(),
|
|
1025
|
+
limit: z.number().int().positive().max(100).default(20)
|
|
939
1026
|
});
|
|
940
1027
|
var ToolRef = z.object({
|
|
941
1028
|
kind: z.literal("mcp"),
|
|
@@ -963,6 +1050,12 @@ var SessionMcpServerInput = z.object({
|
|
|
963
1050
|
allowedTools: z.array(z.string().min(1)).optional(),
|
|
964
1051
|
timeoutMs: z.number().int().positive().optional(),
|
|
965
1052
|
cacheToolsList: z.boolean().optional(),
|
|
1053
|
+
// Human-approval policy for this server's tools. `true` = every tool of this
|
|
1054
|
+
// server requires approval before it runs (a `session.requiresAction` pause
|
|
1055
|
+
// the caller resolves with `user.approvalDecision`); a string[] = ONLY the
|
|
1056
|
+
// listed UNPREFIXED tool names require approval (e.g. reads auto-run, writes
|
|
1057
|
+
// ask); absent / `false` = auto-run everything (the historical default).
|
|
1058
|
+
requireApproval: z.union([z.boolean(), z.array(z.string().min(1))]).optional(),
|
|
966
1059
|
// Write-only credential headers. Values are encrypted at rest and never
|
|
967
1060
|
// returned in session responses or events; response metadata exposes names.
|
|
968
1061
|
headers: z.record(z.string(), z.string()).optional()
|
|
@@ -1460,6 +1553,86 @@ var CreateSocialPostRequest = z.object({
|
|
|
1460
1553
|
metrics: z.record(z.string(), z.number()).default({}),
|
|
1461
1554
|
raw: z.record(z.string(), z.unknown()).default({})
|
|
1462
1555
|
});
|
|
1556
|
+
var ConnectionKind = z.enum(["oauth2", "api_key", "app_install", "delegated"]);
|
|
1557
|
+
var ConnectionStatus = z.enum(["active", "needs_reauth", "revoked", "error"]);
|
|
1558
|
+
var McpServerConnectionRef = z.object({
|
|
1559
|
+
connectionId: z.string().uuid().optional(),
|
|
1560
|
+
providerDomain: z.string().min(1),
|
|
1561
|
+
kind: ConnectionKind.optional(),
|
|
1562
|
+
scopes: z.array(z.string().min(1)).optional(),
|
|
1563
|
+
resource: z.string().min(1).optional(),
|
|
1564
|
+
subjectScope: z.enum(["workspace", "subject"]).optional()
|
|
1565
|
+
}).strict();
|
|
1566
|
+
var ConnectionMetadata = z.object({
|
|
1567
|
+
id: z.string().uuid(),
|
|
1568
|
+
accountId: z.string().uuid(),
|
|
1569
|
+
workspaceId: z.string().uuid(),
|
|
1570
|
+
subjectId: z.string().nullable(),
|
|
1571
|
+
providerDomain: z.string(),
|
|
1572
|
+
kind: ConnectionKind,
|
|
1573
|
+
status: ConnectionStatus,
|
|
1574
|
+
grantedScopes: z.array(z.string()),
|
|
1575
|
+
expiresAt: z.string().nullable(),
|
|
1576
|
+
lastRefreshAt: z.string().nullable(),
|
|
1577
|
+
lastUsedAt: z.string().nullable(),
|
|
1578
|
+
lastError: z.string().nullable(),
|
|
1579
|
+
version: z.number().int().positive(),
|
|
1580
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
1581
|
+
createdBySubjectId: z.string().nullable(),
|
|
1582
|
+
updatedBySubjectId: z.string().nullable(),
|
|
1583
|
+
createdAt: z.string(),
|
|
1584
|
+
updatedAt: z.string()
|
|
1585
|
+
});
|
|
1586
|
+
var ConnectionCredentialBundle = z.record(z.string(), z.unknown());
|
|
1587
|
+
var CreateConnectionRequest = z.object({
|
|
1588
|
+
providerDomain: z.string().min(1),
|
|
1589
|
+
kind: ConnectionKind,
|
|
1590
|
+
subjectId: z.string().min(1).nullable().optional(),
|
|
1591
|
+
credential: ConnectionCredentialBundle,
|
|
1592
|
+
grantedScopes: z.array(z.string().min(1)).default([]),
|
|
1593
|
+
expiresAt: z.string().datetime({ offset: true }).nullable().optional(),
|
|
1594
|
+
metadata: z.record(z.string(), z.unknown()).default({})
|
|
1595
|
+
});
|
|
1596
|
+
var UpdateConnectionRequest = z.object({
|
|
1597
|
+
providerDomain: z.string().min(1).optional(),
|
|
1598
|
+
subjectId: z.string().min(1).nullable().optional(),
|
|
1599
|
+
kind: ConnectionKind.optional(),
|
|
1600
|
+
status: ConnectionStatus.optional(),
|
|
1601
|
+
credential: ConnectionCredentialBundle.optional(),
|
|
1602
|
+
grantedScopes: z.array(z.string().min(1)).optional(),
|
|
1603
|
+
expiresAt: z.string().datetime({ offset: true }).nullable().optional(),
|
|
1604
|
+
metadata: z.record(z.string(), z.unknown()).optional()
|
|
1605
|
+
});
|
|
1606
|
+
var ConnectionResponse = z.object({
|
|
1607
|
+
connection: ConnectionMetadata
|
|
1608
|
+
});
|
|
1609
|
+
var ListConnectionsResponse = z.object({
|
|
1610
|
+
connections: z.array(ConnectionMetadata)
|
|
1611
|
+
});
|
|
1612
|
+
var OAuthStartRequest = z.object({
|
|
1613
|
+
providerDomain: z.string().min(1).optional(),
|
|
1614
|
+
mcpUrl: z.string().url().optional(),
|
|
1615
|
+
resource: z.string().url().optional(),
|
|
1616
|
+
requestedScopes: z.array(z.string().min(1)).default([]),
|
|
1617
|
+
returnPath: z.string().min(1).optional(),
|
|
1618
|
+
connectionId: z.string().uuid().optional()
|
|
1619
|
+
}).refine((value) => Boolean(value.mcpUrl ?? value.resource), {
|
|
1620
|
+
message: "mcpUrl is required",
|
|
1621
|
+
path: ["mcpUrl"]
|
|
1622
|
+
});
|
|
1623
|
+
var OAuthStartResponse = z.object({
|
|
1624
|
+
state: z.string().min(1),
|
|
1625
|
+
authorizationUrl: z.string().url().nullable(),
|
|
1626
|
+
expiresAt: z.string()
|
|
1627
|
+
});
|
|
1628
|
+
var IntegrationClientMetadata = z.object({
|
|
1629
|
+
client_id: z.string().url(),
|
|
1630
|
+
client_name: z.literal("OpenGeni"),
|
|
1631
|
+
redirect_uris: z.array(z.string().url()),
|
|
1632
|
+
token_endpoint_auth_method: z.literal("none"),
|
|
1633
|
+
grant_types: z.array(z.enum(["authorization_code", "refresh_token"])),
|
|
1634
|
+
response_types: z.array(z.literal("code"))
|
|
1635
|
+
});
|
|
1463
1636
|
var MarketingDailyAnalysisTaskRequest = z.object({
|
|
1464
1637
|
name: z.string().min(1).optional(),
|
|
1465
1638
|
connectionIds: z.array(z.string().uuid()).default([]),
|
|
@@ -1473,8 +1646,10 @@ var MarketingDailyAnalysisTaskRequest = z.object({
|
|
|
1473
1646
|
overlapPolicy: ScheduledTaskOverlapPolicy.default("skip")
|
|
1474
1647
|
});
|
|
1475
1648
|
var CapabilityKind = z.enum(["pack", "mcp", "api", "skill", "plugin"]);
|
|
1476
|
-
var CapabilitySource = z.enum(["built_in", "configured", "public_registry", "manual"]);
|
|
1649
|
+
var CapabilitySource = z.enum(["built_in", "configured", "public_registry", "registry", "manual"]);
|
|
1477
1650
|
var CapabilityInstallationStatus = z.enum(["active", "disabled"]);
|
|
1651
|
+
var CapabilityCatalogAuthKind = z.enum(["oauth2", "api_key", "none", "unknown"]);
|
|
1652
|
+
var CapabilityCatalogTier = z.enum(["verified", "community"]);
|
|
1478
1653
|
var CapabilityRuntime = z.object({
|
|
1479
1654
|
available: z.boolean().default(false),
|
|
1480
1655
|
mcpServerId: z.string().min(1).optional(),
|
|
@@ -1495,6 +1670,18 @@ var CapabilityCatalogItem = z.object({
|
|
|
1495
1670
|
endpointUrl: z.string().url().nullable().default(null),
|
|
1496
1671
|
installUrl: z.string().url().nullable().default(null),
|
|
1497
1672
|
authModel: z.string().min(1).nullable().default(null),
|
|
1673
|
+
providerDomain: z.string().min(1).nullable().default(null),
|
|
1674
|
+
surfaceType: z.string().min(1).nullable().default(null),
|
|
1675
|
+
transport: z.string().min(1).nullable().default(null),
|
|
1676
|
+
mcpUrl: z.string().url().nullable().default(null),
|
|
1677
|
+
authKind: CapabilityCatalogAuthKind.nullable().default(null),
|
|
1678
|
+
credentialFacts: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
1679
|
+
tier: CapabilityCatalogTier.nullable().default(null),
|
|
1680
|
+
provenance: z.string().min(1).nullable().default(null),
|
|
1681
|
+
logoAssetPath: z.string().min(1).nullable().default(null),
|
|
1682
|
+
importBatchId: z.string().uuid().nullable().default(null),
|
|
1683
|
+
stale: z.boolean().default(false),
|
|
1684
|
+
staleAt: z.string().nullable().default(null),
|
|
1498
1685
|
tools: z.array(ToolRef).default([]),
|
|
1499
1686
|
runtime: CapabilityRuntime.default({ available: false, notes: null }),
|
|
1500
1687
|
enabled: z.boolean().default(false),
|
|
@@ -1532,6 +1719,7 @@ var CreateCapabilityCatalogItemRequest = z.object({
|
|
|
1532
1719
|
var EnableCapabilityRequest = z.object({
|
|
1533
1720
|
config: z.record(z.string(), z.unknown()).default({}),
|
|
1534
1721
|
metadata: z.record(z.string(), z.unknown()).default({}),
|
|
1722
|
+
connectionRef: McpServerConnectionRef.optional(),
|
|
1535
1723
|
/**
|
|
1536
1724
|
* Credential headers for remote MCP capabilities (for example an
|
|
1537
1725
|
* Authorization bearer token). Values are encrypted at rest with the
|
|
@@ -1639,6 +1827,7 @@ var SessionEventType = z.enum([
|
|
|
1639
1827
|
"agent.reasoning.delta",
|
|
1640
1828
|
"agent.toolCall.created",
|
|
1641
1829
|
"agent.toolCall.output",
|
|
1830
|
+
"tool.auth_needed",
|
|
1642
1831
|
"agent.updated",
|
|
1643
1832
|
"sandbox.operation.started",
|
|
1644
1833
|
"sandbox.operation.completed",
|
|
@@ -1696,6 +1885,17 @@ var SessionEventType = z.enum([
|
|
|
1696
1885
|
// the in-session "Running on:" indicator's live flip.
|
|
1697
1886
|
"codex.account.switched"
|
|
1698
1887
|
]);
|
|
1888
|
+
var ToolAuthNeededPayload = z.object({
|
|
1889
|
+
serverId: z.string().min(1),
|
|
1890
|
+
toolName: z.string().min(1).nullable().optional(),
|
|
1891
|
+
providerDomain: z.string().min(1),
|
|
1892
|
+
connectionId: z.string().uuid().nullable().optional(),
|
|
1893
|
+
reason: z.enum(["missing_connection", "expired", "insufficient_scope", "refresh_failed"]),
|
|
1894
|
+
scopes: z.array(z.string().min(1)).optional(),
|
|
1895
|
+
resource: z.string().min(1).optional(),
|
|
1896
|
+
authorizationUrl: z.string().url().optional(),
|
|
1897
|
+
subjectId: z.string().min(1).nullable().optional()
|
|
1898
|
+
});
|
|
1699
1899
|
var StreamUrlRotatedPayload = z.object({
|
|
1700
1900
|
url: z.string().url(),
|
|
1701
1901
|
token: z.string().nullable(),
|
|
@@ -2452,6 +2652,11 @@ var EnrollmentSummary = z.object({
|
|
|
2452
2652
|
pubkey: z.string(),
|
|
2453
2653
|
exposure: z.literal("whole-machine"),
|
|
2454
2654
|
hasDisplay: z.boolean(),
|
|
2655
|
+
// Present (non-null) only when a display EXISTS but capture is blocked (macOS
|
|
2656
|
+
// Screen Recording / TCC not granted): a human, actionable reason so the UI can
|
|
2657
|
+
// show "display: capture not granted" instead of a bare "headless". null == capture
|
|
2658
|
+
// permitted OR genuinely headless.
|
|
2659
|
+
desktopUnavailableReason: z.string().nullish(),
|
|
2455
2660
|
allowScreenControl: z.boolean(),
|
|
2456
2661
|
status: z.enum(["active", "revoked"]),
|
|
2457
2662
|
os: EnrollmentOs,
|
|
@@ -2548,6 +2753,10 @@ var MachineView = z.object({
|
|
|
2548
2753
|
os: z.string(),
|
|
2549
2754
|
arch: z.string(),
|
|
2550
2755
|
hasDisplay: z.boolean(),
|
|
2756
|
+
// Non-null only when a display exists but capture is blocked (macOS Screen
|
|
2757
|
+
// Recording / TCC not granted) — the UI can surface "display: capture not granted".
|
|
2758
|
+
// null == capture permitted OR headless.
|
|
2759
|
+
desktopUnavailableReason: z.string().nullish(),
|
|
2551
2760
|
allowScreenControl: z.boolean(),
|
|
2552
2761
|
sharedSessionCount: z.number().int(),
|
|
2553
2762
|
lastSeenAt: z.string().nullable(),
|
|
@@ -2581,6 +2790,10 @@ var ClientModel = z.object({
|
|
|
2581
2790
|
});
|
|
2582
2791
|
var ClientConfig = z.object({
|
|
2583
2792
|
deploymentRevision: z.string(),
|
|
2793
|
+
// Release-train version of the server (absent on dev/source builds). The
|
|
2794
|
+
// compatibility policy lives in docs/architecture.md — clients within the
|
|
2795
|
+
// same major are supported; evolution is additive within a major.
|
|
2796
|
+
serverVersion: z.string().optional(),
|
|
2584
2797
|
defaultModel: z.string(),
|
|
2585
2798
|
allowedModels: z.array(z.string()).min(1),
|
|
2586
2799
|
// Richer model list (provider-grouped) for the picker. Defaults to [] for
|
|
@@ -2653,8 +2866,10 @@ export {
|
|
|
2653
2866
|
CAPABILITY_DESCRIPTORS,
|
|
2654
2867
|
CLEARED_RUN_STATE_BLOB,
|
|
2655
2868
|
CLEARED_RUN_STATE_MARKER,
|
|
2869
|
+
CapabilityCatalogAuthKind,
|
|
2656
2870
|
CapabilityCatalogItem,
|
|
2657
2871
|
CapabilityCatalogResponse,
|
|
2872
|
+
CapabilityCatalogTier,
|
|
2658
2873
|
CapabilityInstallation,
|
|
2659
2874
|
CapabilityInstallationStatus,
|
|
2660
2875
|
CapabilityKind,
|
|
@@ -2676,14 +2891,21 @@ export {
|
|
|
2676
2891
|
CompactSessionContextRequest,
|
|
2677
2892
|
CompactSessionContextResult,
|
|
2678
2893
|
CompleteFileUploadResponse,
|
|
2894
|
+
ConnectionCredentialBundle,
|
|
2895
|
+
ConnectionKind,
|
|
2896
|
+
ConnectionMetadata,
|
|
2897
|
+
ConnectionResponse,
|
|
2898
|
+
ConnectionStatus,
|
|
2679
2899
|
CreateApiKeyRequest,
|
|
2680
2900
|
CreateApiKeyResponse,
|
|
2681
2901
|
CreateCapabilityCatalogItemRequest,
|
|
2682
2902
|
CreateCheckoutRequest,
|
|
2683
2903
|
CreateCheckoutResponse,
|
|
2904
|
+
CreateConnectionRequest,
|
|
2684
2905
|
CreateDocumentBaseRequest,
|
|
2685
2906
|
CreateFileUploadRequest,
|
|
2686
2907
|
CreateFileUploadResponse,
|
|
2908
|
+
CreateKnowledgeMemoryRequest,
|
|
2687
2909
|
CreateScheduledTaskRequest,
|
|
2688
2910
|
CreateSessionRequest,
|
|
2689
2911
|
CreateSocialConnectionRequest,
|
|
@@ -2707,6 +2929,7 @@ export {
|
|
|
2707
2929
|
DiscoverMcpCapabilitiesResponse,
|
|
2708
2930
|
Document,
|
|
2709
2931
|
DocumentBase,
|
|
2932
|
+
DocumentSearchMode,
|
|
2710
2933
|
DocumentSearchRequest,
|
|
2711
2934
|
DocumentSearchResult,
|
|
2712
2935
|
DocumentStatus,
|
|
@@ -2767,8 +2990,16 @@ export {
|
|
|
2767
2990
|
GitStatusRequest,
|
|
2768
2991
|
GitStatusResponse,
|
|
2769
2992
|
GoalSpec,
|
|
2993
|
+
IntegrationClientMetadata,
|
|
2994
|
+
KnowledgeMemory,
|
|
2995
|
+
KnowledgeMemoryKind,
|
|
2996
|
+
KnowledgeMemorySearchRequest,
|
|
2997
|
+
KnowledgeMemoryStatus,
|
|
2998
|
+
KnowledgeSourceKind,
|
|
2999
|
+
KnowledgeSourceRef,
|
|
2770
3000
|
LimitAction,
|
|
2771
3001
|
LimitDecision,
|
|
3002
|
+
ListConnectionsResponse,
|
|
2772
3003
|
ListEnrollmentsResponse,
|
|
2773
3004
|
ListWorkspaceMembersResponse,
|
|
2774
3005
|
MachineKind,
|
|
@@ -2778,12 +3009,14 @@ export {
|
|
|
2778
3009
|
MachinesResponse,
|
|
2779
3010
|
ManagedAccount,
|
|
2780
3011
|
MarketingDailyAnalysisTaskRequest,
|
|
3012
|
+
McpServerConnectionRef,
|
|
2781
3013
|
MetricSample,
|
|
2782
3014
|
MintEnrollTokenRequest,
|
|
2783
3015
|
MintEnrollTokenResponse,
|
|
3016
|
+
OAuthStartRequest,
|
|
3017
|
+
OAuthStartResponse,
|
|
2784
3018
|
PackInstallation,
|
|
2785
3019
|
PackInstallationStatus,
|
|
2786
|
-
PageInfo,
|
|
2787
3020
|
Permission,
|
|
2788
3021
|
ProductAccessMode,
|
|
2789
3022
|
PtyCloseRequest,
|
|
@@ -2855,8 +3088,11 @@ export {
|
|
|
2855
3088
|
TerminalPtyExitedPayload,
|
|
2856
3089
|
TerminalPtyOutputDeltaPayload,
|
|
2857
3090
|
TerminalPtyStartedPayload,
|
|
3091
|
+
ToolAuthNeededPayload,
|
|
2858
3092
|
ToolRef,
|
|
2859
3093
|
TriggerScheduledTaskRequest,
|
|
3094
|
+
UpdateConnectionRequest,
|
|
3095
|
+
UpdateKnowledgeMemoryRequest,
|
|
2860
3096
|
UpdateScheduledTaskRequest,
|
|
2861
3097
|
UpdateSessionGoalRequest,
|
|
2862
3098
|
UpdateSessionRequest,
|
|
@@ -2879,7 +3115,7 @@ export {
|
|
|
2879
3115
|
isClearedRunStateBlob,
|
|
2880
3116
|
mergeResourceRefs,
|
|
2881
3117
|
mergeToolRefs,
|
|
2882
|
-
|
|
3118
|
+
prefixedMcpToolName,
|
|
2883
3119
|
reasoningEffortForMetadata,
|
|
2884
3120
|
resourceIdentityKey,
|
|
2885
3121
|
signDelegatedAccessToken,
|