@opengeni/contracts 0.15.0 → 0.18.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 +1855 -32
- package/dist/index.js +2984 -2116
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/event-preview.ts +25 -8
- package/src/index.ts +1040 -60
- package/src/retained-output.ts +339 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,210 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
/** Hard server-side ceiling for one retained-output response body. */
|
|
4
|
+
declare const RETAINED_OUTPUT_MAX_PAGE_BYTES: number;
|
|
5
|
+
/** Default first page when the client does not send a Range header. */
|
|
6
|
+
declare const RETAINED_OUTPUT_DEFAULT_PAGE_BYTES: number;
|
|
7
|
+
/** Receipts are timeline references, never an extensible metadata bag. */
|
|
8
|
+
declare const RETAINED_OUTPUT_RECEIPT_MAX_BYTES: number;
|
|
9
|
+
declare const RetainedOutputKind: z.ZodEnum<{
|
|
10
|
+
file: "file";
|
|
11
|
+
tool_result: "tool_result";
|
|
12
|
+
assistant_completion: "assistant_completion";
|
|
13
|
+
internal_update: "internal_update";
|
|
14
|
+
event_media: "event_media";
|
|
15
|
+
}>;
|
|
16
|
+
type RetainedOutputKind = z.infer<typeof RetainedOutputKind>;
|
|
17
|
+
declare const RetainedOutputUnavailableReason: z.ZodEnum<{
|
|
18
|
+
failed: "failed";
|
|
19
|
+
expired: "expired";
|
|
20
|
+
deleted: "deleted";
|
|
21
|
+
pending: "pending";
|
|
22
|
+
not_retained: "not_retained";
|
|
23
|
+
unsupported: "unsupported";
|
|
24
|
+
missing_storage: "missing_storage";
|
|
25
|
+
storage_write_failed: "storage_write_failed";
|
|
26
|
+
}>;
|
|
27
|
+
type RetainedOutputUnavailableReason = z.infer<typeof RetainedOutputUnavailableReason>;
|
|
28
|
+
declare const RetainedArtifactReferenceSchema: z.ZodObject<{
|
|
29
|
+
available: z.ZodLiteral<true>;
|
|
30
|
+
artifactId: z.ZodString;
|
|
31
|
+
kind: z.ZodEnum<{
|
|
32
|
+
file: "file";
|
|
33
|
+
tool_result: "tool_result";
|
|
34
|
+
assistant_completion: "assistant_completion";
|
|
35
|
+
internal_update: "internal_update";
|
|
36
|
+
event_media: "event_media";
|
|
37
|
+
}>;
|
|
38
|
+
contentType: z.ZodString;
|
|
39
|
+
originalBytes: z.ZodNumber;
|
|
40
|
+
sha256: z.ZodString;
|
|
41
|
+
retainedAt: z.ZodString;
|
|
42
|
+
retention: z.ZodObject<{
|
|
43
|
+
policy: z.ZodLiteral<"workspace_file">;
|
|
44
|
+
expiresAt: z.ZodNull;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
retrieval: z.ZodObject<{
|
|
47
|
+
method: z.ZodLiteral<"GET">;
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
acceptRanges: z.ZodLiteral<"bytes">;
|
|
50
|
+
maxRangeBytes: z.ZodNumber;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
/**
|
|
54
|
+
* Canonical evidence fact carried by bounded audit/NATS/SSE/UI previews.
|
|
55
|
+
*
|
|
56
|
+
* The available variant is intentionally provider-neutral and closed: no bucket,
|
|
57
|
+
* object key, signed URL, arbitrary metadata, or producer-controlled labels can
|
|
58
|
+
* cross this boundary.
|
|
59
|
+
*/
|
|
60
|
+
declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
available: z.ZodLiteral<false>;
|
|
62
|
+
reason: z.ZodEnum<{
|
|
63
|
+
failed: "failed";
|
|
64
|
+
expired: "expired";
|
|
65
|
+
deleted: "deleted";
|
|
66
|
+
pending: "pending";
|
|
67
|
+
not_retained: "not_retained";
|
|
68
|
+
unsupported: "unsupported";
|
|
69
|
+
missing_storage: "missing_storage";
|
|
70
|
+
storage_write_failed: "storage_write_failed";
|
|
71
|
+
}>;
|
|
72
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
73
|
+
available: z.ZodLiteral<true>;
|
|
74
|
+
artifactId: z.ZodString;
|
|
75
|
+
kind: z.ZodEnum<{
|
|
76
|
+
file: "file";
|
|
77
|
+
tool_result: "tool_result";
|
|
78
|
+
assistant_completion: "assistant_completion";
|
|
79
|
+
internal_update: "internal_update";
|
|
80
|
+
event_media: "event_media";
|
|
81
|
+
}>;
|
|
82
|
+
contentType: z.ZodString;
|
|
83
|
+
originalBytes: z.ZodNumber;
|
|
84
|
+
sha256: z.ZodString;
|
|
85
|
+
retainedAt: z.ZodString;
|
|
86
|
+
retention: z.ZodObject<{
|
|
87
|
+
policy: z.ZodLiteral<"workspace_file">;
|
|
88
|
+
expiresAt: z.ZodNull;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
retrieval: z.ZodObject<{
|
|
91
|
+
method: z.ZodLiteral<"GET">;
|
|
92
|
+
path: z.ZodString;
|
|
93
|
+
acceptRanges: z.ZodLiteral<"bytes">;
|
|
94
|
+
maxRangeBytes: z.ZodNumber;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
}, z.core.$strict>], "available">;
|
|
97
|
+
type RetainedOutputEvidence = z.infer<typeof RetainedOutputEvidenceSchema>;
|
|
98
|
+
type RetainedArtifactReference = z.infer<typeof RetainedArtifactReferenceSchema>;
|
|
99
|
+
/** @deprecated use RetainedArtifactReference. */
|
|
100
|
+
type RetainedOutputAvailableEvidence = RetainedArtifactReference;
|
|
101
|
+
declare const RetainedArtifactUnavailableSchema: z.ZodObject<{
|
|
102
|
+
available: z.ZodLiteral<false>;
|
|
103
|
+
artifactId: z.ZodString;
|
|
104
|
+
reason: z.ZodEnum<{
|
|
105
|
+
failed: "failed";
|
|
106
|
+
expired: "expired";
|
|
107
|
+
deleted: "deleted";
|
|
108
|
+
pending: "pending";
|
|
109
|
+
not_retained: "not_retained";
|
|
110
|
+
unsupported: "unsupported";
|
|
111
|
+
missing_storage: "missing_storage";
|
|
112
|
+
storage_write_failed: "storage_write_failed";
|
|
113
|
+
}>;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
type RetainedArtifactUnavailable = z.infer<typeof RetainedArtifactUnavailableSchema>;
|
|
116
|
+
/** Authenticated metadata result for one opaque workspace file identity. */
|
|
117
|
+
declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
118
|
+
available: z.ZodLiteral<true>;
|
|
119
|
+
artifactId: z.ZodString;
|
|
120
|
+
kind: z.ZodEnum<{
|
|
121
|
+
file: "file";
|
|
122
|
+
tool_result: "tool_result";
|
|
123
|
+
assistant_completion: "assistant_completion";
|
|
124
|
+
internal_update: "internal_update";
|
|
125
|
+
event_media: "event_media";
|
|
126
|
+
}>;
|
|
127
|
+
contentType: z.ZodString;
|
|
128
|
+
originalBytes: z.ZodNumber;
|
|
129
|
+
sha256: z.ZodString;
|
|
130
|
+
retainedAt: z.ZodString;
|
|
131
|
+
retention: z.ZodObject<{
|
|
132
|
+
policy: z.ZodLiteral<"workspace_file">;
|
|
133
|
+
expiresAt: z.ZodNull;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
retrieval: z.ZodObject<{
|
|
136
|
+
method: z.ZodLiteral<"GET">;
|
|
137
|
+
path: z.ZodString;
|
|
138
|
+
acceptRanges: z.ZodLiteral<"bytes">;
|
|
139
|
+
maxRangeBytes: z.ZodNumber;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
+
available: z.ZodLiteral<false>;
|
|
143
|
+
artifactId: z.ZodString;
|
|
144
|
+
reason: z.ZodEnum<{
|
|
145
|
+
failed: "failed";
|
|
146
|
+
expired: "expired";
|
|
147
|
+
deleted: "deleted";
|
|
148
|
+
pending: "pending";
|
|
149
|
+
not_retained: "not_retained";
|
|
150
|
+
unsupported: "unsupported";
|
|
151
|
+
missing_storage: "missing_storage";
|
|
152
|
+
storage_write_failed: "storage_write_failed";
|
|
153
|
+
}>;
|
|
154
|
+
}, z.core.$strict>]>;
|
|
155
|
+
type RetainedArtifactMetadata = z.infer<typeof RetainedArtifactMetadataSchema>;
|
|
156
|
+
type RetainedArtifactFileInput = {
|
|
157
|
+
id: string;
|
|
158
|
+
workspaceId: string;
|
|
159
|
+
status: string;
|
|
160
|
+
contentType: string;
|
|
161
|
+
sizeBytes: number;
|
|
162
|
+
sha256: string | null;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Convert a ready, integrity-addressed workspace file into the only available
|
|
167
|
+
* retained-output receipt shape. Invalid, pending, or checksum-less files fail
|
|
168
|
+
* closed instead of implying that full evidence is retrievable.
|
|
169
|
+
*/
|
|
170
|
+
declare function retainedArtifactReferenceFromFile(file: RetainedArtifactFileInput, kind?: RetainedOutputKind): RetainedArtifactReference | null;
|
|
171
|
+
/** Parse and clone a trusted server receipt; invalid/untrusted data fails closed. */
|
|
172
|
+
declare function validateRetainedOutputEvidence(value: unknown): RetainedOutputEvidence | null;
|
|
173
|
+
declare function retainedOutputUnavailable(reason?: RetainedOutputUnavailableReason): RetainedOutputEvidence;
|
|
174
|
+
type RetainedOutputResolvedRange = {
|
|
175
|
+
kind: "range";
|
|
176
|
+
start: number;
|
|
177
|
+
end: number;
|
|
178
|
+
length: number;
|
|
179
|
+
totalBytes: number;
|
|
180
|
+
status: 200 | 206;
|
|
181
|
+
contentRange: string | null;
|
|
182
|
+
acceptRanges: "bytes";
|
|
183
|
+
};
|
|
184
|
+
type RetainedOutputRangeResolution = RetainedOutputResolvedRange | {
|
|
185
|
+
kind: "empty";
|
|
186
|
+
length: 0;
|
|
187
|
+
totalBytes: 0;
|
|
188
|
+
status: 200;
|
|
189
|
+
contentRange: null;
|
|
190
|
+
acceptRanges: "bytes";
|
|
191
|
+
} | {
|
|
192
|
+
kind: "invalid";
|
|
193
|
+
reason: "malformed" | "multipart_not_supported" | "numeric_overflow" | "range_too_large";
|
|
194
|
+
maxPageBytes: number;
|
|
195
|
+
} | {
|
|
196
|
+
kind: "unsatisfiable";
|
|
197
|
+
reason: "empty_artifact" | "start_out_of_bounds" | "end_before_start" | "zero_suffix";
|
|
198
|
+
totalBytes: number;
|
|
199
|
+
contentRange: string;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Resolve one RFC-style bytes range without ever licensing a response larger
|
|
203
|
+
* than `maxPageBytes`. Multipart ranges and oversized explicit/suffix requests
|
|
204
|
+
* fail closed. An omitted or open-ended range becomes one resumable bounded page.
|
|
205
|
+
*/
|
|
206
|
+
declare function resolveRetainedOutputRange(rangeHeader: string | null | undefined, totalBytes: number, maxPageBytes?: number): RetainedOutputRangeResolution;
|
|
207
|
+
|
|
3
208
|
/**
|
|
4
209
|
* Canonical bounded representation for `session_events.payload`.
|
|
5
210
|
*
|
|
@@ -8,6 +213,7 @@ import { z } from 'zod';
|
|
|
8
213
|
* the loss explicit. It deliberately has no server-only dependency so the DB,
|
|
9
214
|
* realtime transports, SDK/React, and tests can share one wire contract.
|
|
10
215
|
*/
|
|
216
|
+
|
|
11
217
|
declare const SESSION_EVENT_PAYLOAD_MAX_BYTES: number;
|
|
12
218
|
type SessionEventBoundarySurface = "durable_audit" | "database_guard" | "database_read_projection" | "http_projection" | "nats_legacy_guard" | "sse_legacy_guard" | "browser_legacy_guard";
|
|
13
219
|
type SessionEventPayloadTruncation = {
|
|
@@ -19,10 +225,7 @@ type SessionEventPayloadTruncation = {
|
|
|
19
225
|
omittedBytes: number | null;
|
|
20
226
|
estimatedOriginalTokens: number | null;
|
|
21
227
|
estimatedDeliveredTokens: number;
|
|
22
|
-
fullEvidence:
|
|
23
|
-
available: false;
|
|
24
|
-
reason: "not_retained";
|
|
25
|
-
};
|
|
228
|
+
fullEvidence: RetainedOutputEvidence;
|
|
26
229
|
details: Array<{
|
|
27
230
|
path: string;
|
|
28
231
|
kind: "string" | "array" | "object" | "depth" | "budget" | "media" | "binary" | "unserializable";
|
|
@@ -35,6 +238,11 @@ type SessionEventPayloadTruncation = {
|
|
|
35
238
|
type BoundSessionEventPayloadOptions = {
|
|
36
239
|
surface?: SessionEventBoundarySurface;
|
|
37
240
|
maxBytes?: number;
|
|
241
|
+
/**
|
|
242
|
+
* Separately trusted durable receipt. Producer payload fields never populate
|
|
243
|
+
* this slot; invalid values fail closed to not_retained.
|
|
244
|
+
*/
|
|
245
|
+
fullEvidence?: unknown;
|
|
38
246
|
};
|
|
39
247
|
type SessionEventJsonMeasurement = {
|
|
40
248
|
bytes: number;
|
|
@@ -251,6 +459,15 @@ declare const Permission: z.ZodEnum<{
|
|
|
251
459
|
"rigs:manage": "rigs:manage";
|
|
252
460
|
}>;
|
|
253
461
|
type Permission = z.infer<typeof Permission>;
|
|
462
|
+
/**
|
|
463
|
+
* Capability-first permissions signed into a session's first-party OpenGeni
|
|
464
|
+
* MCP token when a top-level creator does not explicitly narrow them.
|
|
465
|
+
*
|
|
466
|
+
* Keep this contract shared by admission and runtime signing: a worker-signed
|
|
467
|
+
* child whose parent was narrowed must inherit the parent's effective subset,
|
|
468
|
+
* never fall back to a different runtime-local default.
|
|
469
|
+
*/
|
|
470
|
+
declare const DEFAULT_FIRST_PARTY_MCP_PERMISSIONS: readonly ["workspace:read", "files:read", "documents:search", "scheduled_tasks:manage", "scheduled_tasks:run", "goals:manage", "sessions:read", "sessions:create", "sessions:control", "variable-sets:use", "variable-sets:manage", "rigs:use", "github:use"];
|
|
254
471
|
declare function prefixedMcpToolName(registryId: string, toolName: string): string;
|
|
255
472
|
declare const ProductAccessMode: z.ZodEnum<{
|
|
256
473
|
local: "local";
|
|
@@ -1561,8 +1778,29 @@ type GitCredentialsRequest = {
|
|
|
1561
1778
|
installationId: number;
|
|
1562
1779
|
repositoryIds: number[];
|
|
1563
1780
|
};
|
|
1781
|
+
/**
|
|
1782
|
+
* One exact repository route exposed by a host-owned HTTPS smart-Git broker.
|
|
1783
|
+
*
|
|
1784
|
+
* `repositoryUri` must echo one URI from the request's `repositoryRefs`.
|
|
1785
|
+
* `brokerUri` is a stable, credential-free HTTPS remote. The rotating bearer
|
|
1786
|
+
* remains separate in `GitCredentials.token`, so it cannot leak through Git
|
|
1787
|
+
* configuration, provider-CLI arguments, manifests, or repository metadata.
|
|
1788
|
+
*/
|
|
1789
|
+
type GitHttpBrokerRepositoryRoute = {
|
|
1790
|
+
repositoryUri: string;
|
|
1791
|
+
brokerUri: string;
|
|
1792
|
+
};
|
|
1793
|
+
/**
|
|
1794
|
+
* Optional transport override for credentials that cannot be safely narrowed
|
|
1795
|
+
* into a provider token. Omission retains the provider-token behavior.
|
|
1796
|
+
*/
|
|
1797
|
+
type GitCredentialTransport = {
|
|
1798
|
+
kind: "http_broker";
|
|
1799
|
+
repositories: GitHttpBrokerRepositoryRoute[];
|
|
1800
|
+
};
|
|
1564
1801
|
type GitCredentials = {
|
|
1565
1802
|
token?: string;
|
|
1803
|
+
transport?: GitCredentialTransport;
|
|
1566
1804
|
workspaceId: string;
|
|
1567
1805
|
credentialBindingId?: GitCredentialBindingId;
|
|
1568
1806
|
provider?: GitCredentialProvider;
|
|
@@ -1718,6 +1956,8 @@ type McpCredentialsRequest = {
|
|
|
1718
1956
|
/** Immediate technical caller, retained only as non-authoritative audit context. */
|
|
1719
1957
|
callerSubjectId?: string;
|
|
1720
1958
|
surface: "model" | "toolspace";
|
|
1959
|
+
/** Canonical MCP destination that will receive the resolved headers. */
|
|
1960
|
+
destinationUrl: string;
|
|
1721
1961
|
serverId: string;
|
|
1722
1962
|
toolName?: string;
|
|
1723
1963
|
connectionRef: McpServerConnectionRef;
|
|
@@ -2484,6 +2724,61 @@ declare const ToolRef: z.ZodObject<{
|
|
|
2484
2724
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2485
2725
|
}, z.core.$strip>;
|
|
2486
2726
|
type ToolRef = z.infer<typeof ToolRef>;
|
|
2727
|
+
declare const SessionMcpServerId: z.ZodString;
|
|
2728
|
+
type SessionMcpServerId = z.infer<typeof SessionMcpServerId>;
|
|
2729
|
+
declare const SessionToolPolicy: z.ZodObject<{
|
|
2730
|
+
mode: z.ZodEnum<{
|
|
2731
|
+
explicit: "explicit";
|
|
2732
|
+
workspace_default: "workspace_default";
|
|
2733
|
+
inherited: "inherited";
|
|
2734
|
+
legacy: "legacy";
|
|
2735
|
+
}>;
|
|
2736
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
2737
|
+
}, z.core.$strip>;
|
|
2738
|
+
type SessionToolPolicy = z.infer<typeof SessionToolPolicy>;
|
|
2739
|
+
declare const SESSION_EFFECTIVE_TOOL_POLICY_ID_LIMIT = 64;
|
|
2740
|
+
declare const SESSION_EFFECTIVE_TOOL_POLICY_ID_MAX_LENGTH = 200;
|
|
2741
|
+
declare const SessionEffectiveToolPolicy: z.ZodObject<{
|
|
2742
|
+
mode: z.ZodEnum<{
|
|
2743
|
+
explicit: "explicit";
|
|
2744
|
+
workspace_default: "workspace_default";
|
|
2745
|
+
inherited: "inherited";
|
|
2746
|
+
legacy: "legacy";
|
|
2747
|
+
}>;
|
|
2748
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
2749
|
+
selectedIds: z.ZodArray<z.ZodString>;
|
|
2750
|
+
effectiveIds: z.ZodArray<z.ZodString>;
|
|
2751
|
+
mandatoryIds: z.ZodArray<z.ZodString>;
|
|
2752
|
+
lazyRouter: z.ZodObject<{
|
|
2753
|
+
state: z.ZodEnum<{
|
|
2754
|
+
disabled: "disabled";
|
|
2755
|
+
required: "required";
|
|
2756
|
+
}>;
|
|
2757
|
+
deferredIds: z.ZodArray<z.ZodString>;
|
|
2758
|
+
}, z.core.$strict>;
|
|
2759
|
+
configuredIds: z.ZodArray<z.ZodString>;
|
|
2760
|
+
droppedIds: z.ZodArray<z.ZodString>;
|
|
2761
|
+
counts: z.ZodObject<{
|
|
2762
|
+
selected: z.ZodNumber;
|
|
2763
|
+
effective: z.ZodNumber;
|
|
2764
|
+
mandatory: z.ZodNumber;
|
|
2765
|
+
deferred: z.ZodNumber;
|
|
2766
|
+
configured: z.ZodNumber;
|
|
2767
|
+
dropped: z.ZodNumber;
|
|
2768
|
+
}, z.core.$strict>;
|
|
2769
|
+
idsTruncated: z.ZodBoolean;
|
|
2770
|
+
}, z.core.$strict>;
|
|
2771
|
+
type SessionEffectiveToolPolicy = z.infer<typeof SessionEffectiveToolPolicy>;
|
|
2772
|
+
/**
|
|
2773
|
+
* Human-approval policy for one MCP server. `true` gates every tool, `false`
|
|
2774
|
+
* gates none, and a list gates only those unprefixed names.
|
|
2775
|
+
*/
|
|
2776
|
+
declare const SESSION_MCP_APPROVAL_POLICY_MAX_TOOL_NAMES = 2048;
|
|
2777
|
+
declare const SESSION_MCP_APPROVAL_POLICY_MAX_BYTES: number;
|
|
2778
|
+
declare const SESSION_MCP_APPROVAL_TOOL_NAME_MAX_BYTES = 1024;
|
|
2779
|
+
declare const SESSION_MCP_SERVERS_MAX = 64;
|
|
2780
|
+
declare const SessionMcpApprovalPolicy: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>;
|
|
2781
|
+
type SessionMcpApprovalPolicy = z.infer<typeof SessionMcpApprovalPolicy>;
|
|
2487
2782
|
declare const SessionMcpServerInput: z.ZodObject<{
|
|
2488
2783
|
id: z.ZodString;
|
|
2489
2784
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2491,7 +2786,7 @@ declare const SessionMcpServerInput: z.ZodObject<{
|
|
|
2491
2786
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2492
2787
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2493
2788
|
cacheToolsList: z.ZodOptional<z.ZodBoolean>;
|
|
2494
|
-
requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString
|
|
2789
|
+
requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
2495
2790
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2496
2791
|
connectionRef: z.ZodOptional<z.ZodObject<{
|
|
2497
2792
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -2527,6 +2822,7 @@ declare const SessionMcpServerMetadata: z.ZodObject<{
|
|
|
2527
2822
|
url: z.ZodString;
|
|
2528
2823
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2529
2824
|
credentialVersion: z.ZodNumber;
|
|
2825
|
+
requireApproval: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
2530
2826
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2531
2827
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
2532
2828
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -2550,6 +2846,43 @@ declare const SessionMcpServerMetadata: z.ZodObject<{
|
|
|
2550
2846
|
}, z.core.$strict>>>;
|
|
2551
2847
|
}, z.core.$strict>;
|
|
2552
2848
|
type SessionMcpServerMetadata = z.infer<typeof SessionMcpServerMetadata>;
|
|
2849
|
+
declare const UpdateSessionMcpApprovalPolicyRequest: z.ZodObject<{
|
|
2850
|
+
requireApproval: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>;
|
|
2851
|
+
}, z.core.$strict>;
|
|
2852
|
+
type UpdateSessionMcpApprovalPolicyRequest = z.infer<typeof UpdateSessionMcpApprovalPolicyRequest>;
|
|
2853
|
+
declare const UpdateSessionMcpApprovalPolicyResponse: z.ZodObject<{
|
|
2854
|
+
server: z.ZodObject<{
|
|
2855
|
+
id: z.ZodString;
|
|
2856
|
+
name: z.ZodNullable<z.ZodString>;
|
|
2857
|
+
url: z.ZodString;
|
|
2858
|
+
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2859
|
+
credentialVersion: z.ZodNumber;
|
|
2860
|
+
requireApproval: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
2861
|
+
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2862
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
2863
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2864
|
+
providerDomain: z.ZodString;
|
|
2865
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2866
|
+
oauth2: "oauth2";
|
|
2867
|
+
api_key: "api_key";
|
|
2868
|
+
app_install: "app_install";
|
|
2869
|
+
delegated: "delegated";
|
|
2870
|
+
}>>;
|
|
2871
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2872
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
2873
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2874
|
+
id: z.ZodString;
|
|
2875
|
+
kind: z.ZodLiteral<"repository">;
|
|
2876
|
+
}, z.core.$strict>>>;
|
|
2877
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
2878
|
+
subject: "subject";
|
|
2879
|
+
workspace: "workspace";
|
|
2880
|
+
}>>;
|
|
2881
|
+
}, z.core.$strict>>>;
|
|
2882
|
+
}, z.core.$strict>;
|
|
2883
|
+
effectiveFrom: z.ZodLiteral<"next_attempt">;
|
|
2884
|
+
}, z.core.$strict>;
|
|
2885
|
+
type UpdateSessionMcpApprovalPolicyResponse = z.infer<typeof UpdateSessionMcpApprovalPolicyResponse>;
|
|
2553
2886
|
declare class ResourceRefConflictError extends Error {
|
|
2554
2887
|
constructor(message: string);
|
|
2555
2888
|
}
|
|
@@ -2767,6 +3100,7 @@ declare const SessionAuthorizationOperation: z.ZodEnum<{
|
|
|
2767
3100
|
"session.human_input.read": "session.human_input.read";
|
|
2768
3101
|
"session.human_input.write": "session.human_input.write";
|
|
2769
3102
|
"session.title.write": "session.title.write";
|
|
3103
|
+
"session.mcp.approval_policy.write": "session.mcp.approval_policy.write";
|
|
2770
3104
|
"session.goal.read": "session.goal.read";
|
|
2771
3105
|
"session.goal.write": "session.goal.write";
|
|
2772
3106
|
"session.child.create": "session.child.create";
|
|
@@ -2915,6 +3249,7 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
2915
3249
|
id: z.ZodString;
|
|
2916
3250
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
2917
3251
|
}, z.core.$strip>>;
|
|
3252
|
+
toolsProvided: z.ZodOptional<z.ZodBoolean>;
|
|
2918
3253
|
model: z.ZodString;
|
|
2919
3254
|
reasoningEffort: z.ZodEnum<{
|
|
2920
3255
|
none: "none";
|
|
@@ -2980,8 +3315,8 @@ type EffectiveControlBlocker = z.infer<typeof EffectiveControlBlocker>;
|
|
|
2980
3315
|
declare const EffectiveControlResumeOption: z.ZodObject<{
|
|
2981
3316
|
scope: z.ZodEnum<{
|
|
2982
3317
|
workspace: "workspace";
|
|
2983
|
-
session: "session";
|
|
2984
3318
|
selected: "selected";
|
|
3319
|
+
session: "session";
|
|
2985
3320
|
}>;
|
|
2986
3321
|
targetId: z.ZodOptional<z.ZodString>;
|
|
2987
3322
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -3042,8 +3377,8 @@ declare const EffectiveSessionControl: z.ZodObject<{
|
|
|
3042
3377
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
3043
3378
|
scope: z.ZodEnum<{
|
|
3044
3379
|
workspace: "workspace";
|
|
3045
|
-
session: "session";
|
|
3046
3380
|
selected: "selected";
|
|
3381
|
+
session: "session";
|
|
3047
3382
|
}>;
|
|
3048
3383
|
targetId: z.ZodOptional<z.ZodString>;
|
|
3049
3384
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -3125,6 +3460,7 @@ declare const ComposerDraft: z.ZodObject<{
|
|
|
3125
3460
|
id: z.ZodString;
|
|
3126
3461
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3127
3462
|
}, z.core.$strip>>;
|
|
3463
|
+
toolsProvided: z.ZodDefault<z.ZodBoolean>;
|
|
3128
3464
|
model: z.ZodString;
|
|
3129
3465
|
reasoningEffort: z.ZodEnum<{
|
|
3130
3466
|
none: "none";
|
|
@@ -3180,8 +3516,8 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
3180
3516
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
3181
3517
|
scope: z.ZodEnum<{
|
|
3182
3518
|
workspace: "workspace";
|
|
3183
|
-
session: "session";
|
|
3184
3519
|
selected: "selected";
|
|
3520
|
+
session: "session";
|
|
3185
3521
|
}>;
|
|
3186
3522
|
targetId: z.ZodOptional<z.ZodString>;
|
|
3187
3523
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -3274,6 +3610,7 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
3274
3610
|
id: z.ZodString;
|
|
3275
3611
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3276
3612
|
}, z.core.$strip>>;
|
|
3613
|
+
toolsProvided: z.ZodOptional<z.ZodBoolean>;
|
|
3277
3614
|
model: z.ZodString;
|
|
3278
3615
|
reasoningEffort: z.ZodEnum<{
|
|
3279
3616
|
none: "none";
|
|
@@ -3392,6 +3729,7 @@ declare const SaveComposerDraftRequest: z.ZodObject<{
|
|
|
3392
3729
|
id: z.ZodString;
|
|
3393
3730
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3394
3731
|
}, z.core.$strip>>;
|
|
3732
|
+
toolsProvided: z.ZodDefault<z.ZodBoolean>;
|
|
3395
3733
|
expectedRevision: z.ZodNumber;
|
|
3396
3734
|
}, z.core.$strip>;
|
|
3397
3735
|
type SaveComposerDraftRequest = z.infer<typeof SaveComposerDraftRequest>;
|
|
@@ -5205,6 +5543,19 @@ declare const CapabilityRuntime: z.ZodObject<{
|
|
|
5205
5543
|
mcpServerId: z.ZodOptional<z.ZodString>;
|
|
5206
5544
|
transport: z.ZodOptional<z.ZodString>;
|
|
5207
5545
|
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5546
|
+
catalogTrust: z.ZodOptional<z.ZodObject<{
|
|
5547
|
+
state: z.ZodEnum<{
|
|
5548
|
+
trusted: "trusted";
|
|
5549
|
+
legacy_active: "legacy_active";
|
|
5550
|
+
unverified: "unverified";
|
|
5551
|
+
}>;
|
|
5552
|
+
reason: z.ZodEnum<{
|
|
5553
|
+
trusted_source: "trusted_source";
|
|
5554
|
+
verified_probe: "verified_probe";
|
|
5555
|
+
active_installation_compatibility: "active_installation_compatibility";
|
|
5556
|
+
missing_verification: "missing_verification";
|
|
5557
|
+
}>;
|
|
5558
|
+
}, z.core.$strip>>;
|
|
5208
5559
|
}, z.core.$strip>;
|
|
5209
5560
|
type CapabilityRuntime = z.infer<typeof CapabilityRuntime>;
|
|
5210
5561
|
declare const CapabilityCatalogItem: z.ZodObject<{
|
|
@@ -5264,6 +5615,19 @@ declare const CapabilityCatalogItem: z.ZodObject<{
|
|
|
5264
5615
|
mcpServerId: z.ZodOptional<z.ZodString>;
|
|
5265
5616
|
transport: z.ZodOptional<z.ZodString>;
|
|
5266
5617
|
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5618
|
+
catalogTrust: z.ZodOptional<z.ZodObject<{
|
|
5619
|
+
state: z.ZodEnum<{
|
|
5620
|
+
trusted: "trusted";
|
|
5621
|
+
legacy_active: "legacy_active";
|
|
5622
|
+
unverified: "unverified";
|
|
5623
|
+
}>;
|
|
5624
|
+
reason: z.ZodEnum<{
|
|
5625
|
+
trusted_source: "trusted_source";
|
|
5626
|
+
verified_probe: "verified_probe";
|
|
5627
|
+
active_installation_compatibility: "active_installation_compatibility";
|
|
5628
|
+
missing_verification: "missing_verification";
|
|
5629
|
+
}>;
|
|
5630
|
+
}, z.core.$strip>>;
|
|
5267
5631
|
}, z.core.$strip>>;
|
|
5268
5632
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5269
5633
|
enabledReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -5277,6 +5641,14 @@ declare const CapabilityCatalogItem: z.ZodObject<{
|
|
|
5277
5641
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
5278
5642
|
}, z.core.$strip>;
|
|
5279
5643
|
type CapabilityCatalogItem = z.infer<typeof CapabilityCatalogItem>;
|
|
5644
|
+
/**
|
|
5645
|
+
* Shared trust gate for catalog visibility and runtime selection. Registry rows
|
|
5646
|
+
* remain durable for provenance and audit, but only a reviewed real-MCP probe
|
|
5647
|
+
* with known authentication is exposable. API-key rows additionally need a
|
|
5648
|
+
* machine-actionable header contract; prose credential instructions are not a
|
|
5649
|
+
* runtime contract and must fail closed.
|
|
5650
|
+
*/
|
|
5651
|
+
declare function capabilityCatalogItemIsTrustedForExposure(item: Pick<CapabilityCatalogItem, "source" | "stale" | "authKind" | "metadata">): boolean;
|
|
5280
5652
|
declare const CapabilityInstallation: z.ZodObject<{
|
|
5281
5653
|
id: z.ZodString;
|
|
5282
5654
|
accountId: z.ZodString;
|
|
@@ -5413,6 +5785,19 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
|
|
|
5413
5785
|
mcpServerId: z.ZodOptional<z.ZodString>;
|
|
5414
5786
|
transport: z.ZodOptional<z.ZodString>;
|
|
5415
5787
|
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5788
|
+
catalogTrust: z.ZodOptional<z.ZodObject<{
|
|
5789
|
+
state: z.ZodEnum<{
|
|
5790
|
+
trusted: "trusted";
|
|
5791
|
+
legacy_active: "legacy_active";
|
|
5792
|
+
unverified: "unverified";
|
|
5793
|
+
}>;
|
|
5794
|
+
reason: z.ZodEnum<{
|
|
5795
|
+
trusted_source: "trusted_source";
|
|
5796
|
+
verified_probe: "verified_probe";
|
|
5797
|
+
active_installation_compatibility: "active_installation_compatibility";
|
|
5798
|
+
missing_verification: "missing_verification";
|
|
5799
|
+
}>;
|
|
5800
|
+
}, z.core.$strip>>;
|
|
5416
5801
|
}, z.core.$strip>>;
|
|
5417
5802
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5418
5803
|
enabledReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -5506,6 +5891,19 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
|
|
|
5506
5891
|
mcpServerId: z.ZodOptional<z.ZodString>;
|
|
5507
5892
|
transport: z.ZodOptional<z.ZodString>;
|
|
5508
5893
|
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5894
|
+
catalogTrust: z.ZodOptional<z.ZodObject<{
|
|
5895
|
+
state: z.ZodEnum<{
|
|
5896
|
+
trusted: "trusted";
|
|
5897
|
+
legacy_active: "legacy_active";
|
|
5898
|
+
unverified: "unverified";
|
|
5899
|
+
}>;
|
|
5900
|
+
reason: z.ZodEnum<{
|
|
5901
|
+
trusted_source: "trusted_source";
|
|
5902
|
+
verified_probe: "verified_probe";
|
|
5903
|
+
active_installation_compatibility: "active_installation_compatibility";
|
|
5904
|
+
missing_verification: "missing_verification";
|
|
5905
|
+
}>;
|
|
5906
|
+
}, z.core.$strip>>;
|
|
5509
5907
|
}, z.core.$strip>>;
|
|
5510
5908
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5511
5909
|
enabledReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -5575,6 +5973,45 @@ declare const Session: z.ZodObject<{
|
|
|
5575
5973
|
id: z.ZodString;
|
|
5576
5974
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
5577
5975
|
}, z.core.$strip>>;
|
|
5976
|
+
toolPolicy: z.ZodOptional<z.ZodObject<{
|
|
5977
|
+
mode: z.ZodEnum<{
|
|
5978
|
+
explicit: "explicit";
|
|
5979
|
+
workspace_default: "workspace_default";
|
|
5980
|
+
inherited: "inherited";
|
|
5981
|
+
legacy: "legacy";
|
|
5982
|
+
}>;
|
|
5983
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
5984
|
+
}, z.core.$strip>>;
|
|
5985
|
+
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
5986
|
+
mode: z.ZodEnum<{
|
|
5987
|
+
explicit: "explicit";
|
|
5988
|
+
workspace_default: "workspace_default";
|
|
5989
|
+
inherited: "inherited";
|
|
5990
|
+
legacy: "legacy";
|
|
5991
|
+
}>;
|
|
5992
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
5993
|
+
selectedIds: z.ZodArray<z.ZodString>;
|
|
5994
|
+
effectiveIds: z.ZodArray<z.ZodString>;
|
|
5995
|
+
mandatoryIds: z.ZodArray<z.ZodString>;
|
|
5996
|
+
lazyRouter: z.ZodObject<{
|
|
5997
|
+
state: z.ZodEnum<{
|
|
5998
|
+
disabled: "disabled";
|
|
5999
|
+
required: "required";
|
|
6000
|
+
}>;
|
|
6001
|
+
deferredIds: z.ZodArray<z.ZodString>;
|
|
6002
|
+
}, z.core.$strict>;
|
|
6003
|
+
configuredIds: z.ZodArray<z.ZodString>;
|
|
6004
|
+
droppedIds: z.ZodArray<z.ZodString>;
|
|
6005
|
+
counts: z.ZodObject<{
|
|
6006
|
+
selected: z.ZodNumber;
|
|
6007
|
+
effective: z.ZodNumber;
|
|
6008
|
+
mandatory: z.ZodNumber;
|
|
6009
|
+
deferred: z.ZodNumber;
|
|
6010
|
+
configured: z.ZodNumber;
|
|
6011
|
+
dropped: z.ZodNumber;
|
|
6012
|
+
}, z.core.$strict>;
|
|
6013
|
+
idsTruncated: z.ZodBoolean;
|
|
6014
|
+
}, z.core.$strict>>;
|
|
5578
6015
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5579
6016
|
createdBy: z.ZodObject<{
|
|
5580
6017
|
subjectId: z.ZodString;
|
|
@@ -5657,6 +6094,7 @@ declare const Session: z.ZodObject<{
|
|
|
5657
6094
|
url: z.ZodString;
|
|
5658
6095
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5659
6096
|
credentialVersion: z.ZodNumber;
|
|
6097
|
+
requireApproval: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
5660
6098
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
5661
6099
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
5662
6100
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -5726,8 +6164,8 @@ declare const Session: z.ZodObject<{
|
|
|
5726
6164
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
5727
6165
|
scope: z.ZodEnum<{
|
|
5728
6166
|
workspace: "workspace";
|
|
5729
|
-
session: "session";
|
|
5730
6167
|
selected: "selected";
|
|
6168
|
+
session: "session";
|
|
5731
6169
|
}>;
|
|
5732
6170
|
targetId: z.ZodOptional<z.ZodString>;
|
|
5733
6171
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -5837,6 +6275,45 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
5837
6275
|
id: z.ZodString;
|
|
5838
6276
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
5839
6277
|
}, z.core.$strip>>;
|
|
6278
|
+
toolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6279
|
+
mode: z.ZodEnum<{
|
|
6280
|
+
explicit: "explicit";
|
|
6281
|
+
workspace_default: "workspace_default";
|
|
6282
|
+
inherited: "inherited";
|
|
6283
|
+
legacy: "legacy";
|
|
6284
|
+
}>;
|
|
6285
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6286
|
+
}, z.core.$strip>>;
|
|
6287
|
+
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6288
|
+
mode: z.ZodEnum<{
|
|
6289
|
+
explicit: "explicit";
|
|
6290
|
+
workspace_default: "workspace_default";
|
|
6291
|
+
inherited: "inherited";
|
|
6292
|
+
legacy: "legacy";
|
|
6293
|
+
}>;
|
|
6294
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6295
|
+
selectedIds: z.ZodArray<z.ZodString>;
|
|
6296
|
+
effectiveIds: z.ZodArray<z.ZodString>;
|
|
6297
|
+
mandatoryIds: z.ZodArray<z.ZodString>;
|
|
6298
|
+
lazyRouter: z.ZodObject<{
|
|
6299
|
+
state: z.ZodEnum<{
|
|
6300
|
+
disabled: "disabled";
|
|
6301
|
+
required: "required";
|
|
6302
|
+
}>;
|
|
6303
|
+
deferredIds: z.ZodArray<z.ZodString>;
|
|
6304
|
+
}, z.core.$strict>;
|
|
6305
|
+
configuredIds: z.ZodArray<z.ZodString>;
|
|
6306
|
+
droppedIds: z.ZodArray<z.ZodString>;
|
|
6307
|
+
counts: z.ZodObject<{
|
|
6308
|
+
selected: z.ZodNumber;
|
|
6309
|
+
effective: z.ZodNumber;
|
|
6310
|
+
mandatory: z.ZodNumber;
|
|
6311
|
+
deferred: z.ZodNumber;
|
|
6312
|
+
configured: z.ZodNumber;
|
|
6313
|
+
dropped: z.ZodNumber;
|
|
6314
|
+
}, z.core.$strict>;
|
|
6315
|
+
idsTruncated: z.ZodBoolean;
|
|
6316
|
+
}, z.core.$strict>>;
|
|
5840
6317
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5841
6318
|
createdBy: z.ZodObject<{
|
|
5842
6319
|
subjectId: z.ZodString;
|
|
@@ -5919,6 +6396,7 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
5919
6396
|
url: z.ZodString;
|
|
5920
6397
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5921
6398
|
credentialVersion: z.ZodNumber;
|
|
6399
|
+
requireApproval: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
5922
6400
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
5923
6401
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
5924
6402
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -5988,8 +6466,8 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
5988
6466
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
5989
6467
|
scope: z.ZodEnum<{
|
|
5990
6468
|
workspace: "workspace";
|
|
5991
|
-
session: "session";
|
|
5992
6469
|
selected: "selected";
|
|
6470
|
+
session: "session";
|
|
5993
6471
|
}>;
|
|
5994
6472
|
targetId: z.ZodOptional<z.ZodString>;
|
|
5995
6473
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -6105,6 +6583,45 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6105
6583
|
id: z.ZodString;
|
|
6106
6584
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
6107
6585
|
}, z.core.$strip>>;
|
|
6586
|
+
toolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6587
|
+
mode: z.ZodEnum<{
|
|
6588
|
+
explicit: "explicit";
|
|
6589
|
+
workspace_default: "workspace_default";
|
|
6590
|
+
inherited: "inherited";
|
|
6591
|
+
legacy: "legacy";
|
|
6592
|
+
}>;
|
|
6593
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6594
|
+
}, z.core.$strip>>;
|
|
6595
|
+
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6596
|
+
mode: z.ZodEnum<{
|
|
6597
|
+
explicit: "explicit";
|
|
6598
|
+
workspace_default: "workspace_default";
|
|
6599
|
+
inherited: "inherited";
|
|
6600
|
+
legacy: "legacy";
|
|
6601
|
+
}>;
|
|
6602
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6603
|
+
selectedIds: z.ZodArray<z.ZodString>;
|
|
6604
|
+
effectiveIds: z.ZodArray<z.ZodString>;
|
|
6605
|
+
mandatoryIds: z.ZodArray<z.ZodString>;
|
|
6606
|
+
lazyRouter: z.ZodObject<{
|
|
6607
|
+
state: z.ZodEnum<{
|
|
6608
|
+
disabled: "disabled";
|
|
6609
|
+
required: "required";
|
|
6610
|
+
}>;
|
|
6611
|
+
deferredIds: z.ZodArray<z.ZodString>;
|
|
6612
|
+
}, z.core.$strict>;
|
|
6613
|
+
configuredIds: z.ZodArray<z.ZodString>;
|
|
6614
|
+
droppedIds: z.ZodArray<z.ZodString>;
|
|
6615
|
+
counts: z.ZodObject<{
|
|
6616
|
+
selected: z.ZodNumber;
|
|
6617
|
+
effective: z.ZodNumber;
|
|
6618
|
+
mandatory: z.ZodNumber;
|
|
6619
|
+
deferred: z.ZodNumber;
|
|
6620
|
+
configured: z.ZodNumber;
|
|
6621
|
+
dropped: z.ZodNumber;
|
|
6622
|
+
}, z.core.$strict>;
|
|
6623
|
+
idsTruncated: z.ZodBoolean;
|
|
6624
|
+
}, z.core.$strict>>;
|
|
6108
6625
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6109
6626
|
createdBy: z.ZodObject<{
|
|
6110
6627
|
subjectId: z.ZodString;
|
|
@@ -6187,6 +6704,7 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6187
6704
|
url: z.ZodString;
|
|
6188
6705
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6189
6706
|
credentialVersion: z.ZodNumber;
|
|
6707
|
+
requireApproval: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
6190
6708
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
6191
6709
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
6192
6710
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -6256,8 +6774,8 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6256
6774
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6257
6775
|
scope: z.ZodEnum<{
|
|
6258
6776
|
workspace: "workspace";
|
|
6259
|
-
session: "session";
|
|
6260
6777
|
selected: "selected";
|
|
6778
|
+
session: "session";
|
|
6261
6779
|
}>;
|
|
6262
6780
|
targetId: z.ZodOptional<z.ZodString>;
|
|
6263
6781
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -6362,6 +6880,45 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6362
6880
|
id: z.ZodString;
|
|
6363
6881
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
6364
6882
|
}, z.core.$strip>>;
|
|
6883
|
+
toolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6884
|
+
mode: z.ZodEnum<{
|
|
6885
|
+
explicit: "explicit";
|
|
6886
|
+
workspace_default: "workspace_default";
|
|
6887
|
+
inherited: "inherited";
|
|
6888
|
+
legacy: "legacy";
|
|
6889
|
+
}>;
|
|
6890
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6891
|
+
}, z.core.$strip>>;
|
|
6892
|
+
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6893
|
+
mode: z.ZodEnum<{
|
|
6894
|
+
explicit: "explicit";
|
|
6895
|
+
workspace_default: "workspace_default";
|
|
6896
|
+
inherited: "inherited";
|
|
6897
|
+
legacy: "legacy";
|
|
6898
|
+
}>;
|
|
6899
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6900
|
+
selectedIds: z.ZodArray<z.ZodString>;
|
|
6901
|
+
effectiveIds: z.ZodArray<z.ZodString>;
|
|
6902
|
+
mandatoryIds: z.ZodArray<z.ZodString>;
|
|
6903
|
+
lazyRouter: z.ZodObject<{
|
|
6904
|
+
state: z.ZodEnum<{
|
|
6905
|
+
disabled: "disabled";
|
|
6906
|
+
required: "required";
|
|
6907
|
+
}>;
|
|
6908
|
+
deferredIds: z.ZodArray<z.ZodString>;
|
|
6909
|
+
}, z.core.$strict>;
|
|
6910
|
+
configuredIds: z.ZodArray<z.ZodString>;
|
|
6911
|
+
droppedIds: z.ZodArray<z.ZodString>;
|
|
6912
|
+
counts: z.ZodObject<{
|
|
6913
|
+
selected: z.ZodNumber;
|
|
6914
|
+
effective: z.ZodNumber;
|
|
6915
|
+
mandatory: z.ZodNumber;
|
|
6916
|
+
deferred: z.ZodNumber;
|
|
6917
|
+
configured: z.ZodNumber;
|
|
6918
|
+
dropped: z.ZodNumber;
|
|
6919
|
+
}, z.core.$strict>;
|
|
6920
|
+
idsTruncated: z.ZodBoolean;
|
|
6921
|
+
}, z.core.$strict>>;
|
|
6365
6922
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6366
6923
|
createdBy: z.ZodObject<{
|
|
6367
6924
|
subjectId: z.ZodString;
|
|
@@ -6444,6 +7001,7 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6444
7001
|
url: z.ZodString;
|
|
6445
7002
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6446
7003
|
credentialVersion: z.ZodNumber;
|
|
7004
|
+
requireApproval: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
6447
7005
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
6448
7006
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
6449
7007
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -6513,8 +7071,8 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6513
7071
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6514
7072
|
scope: z.ZodEnum<{
|
|
6515
7073
|
workspace: "workspace";
|
|
6516
|
-
session: "session";
|
|
6517
7074
|
selected: "selected";
|
|
7075
|
+
session: "session";
|
|
6518
7076
|
}>;
|
|
6519
7077
|
targetId: z.ZodOptional<z.ZodString>;
|
|
6520
7078
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -6627,6 +7185,45 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
6627
7185
|
id: z.ZodString;
|
|
6628
7186
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
6629
7187
|
}, z.core.$strip>>;
|
|
7188
|
+
toolPolicy: z.ZodOptional<z.ZodObject<{
|
|
7189
|
+
mode: z.ZodEnum<{
|
|
7190
|
+
explicit: "explicit";
|
|
7191
|
+
workspace_default: "workspace_default";
|
|
7192
|
+
inherited: "inherited";
|
|
7193
|
+
legacy: "legacy";
|
|
7194
|
+
}>;
|
|
7195
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
7196
|
+
}, z.core.$strip>>;
|
|
7197
|
+
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
7198
|
+
mode: z.ZodEnum<{
|
|
7199
|
+
explicit: "explicit";
|
|
7200
|
+
workspace_default: "workspace_default";
|
|
7201
|
+
inherited: "inherited";
|
|
7202
|
+
legacy: "legacy";
|
|
7203
|
+
}>;
|
|
7204
|
+
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
7205
|
+
selectedIds: z.ZodArray<z.ZodString>;
|
|
7206
|
+
effectiveIds: z.ZodArray<z.ZodString>;
|
|
7207
|
+
mandatoryIds: z.ZodArray<z.ZodString>;
|
|
7208
|
+
lazyRouter: z.ZodObject<{
|
|
7209
|
+
state: z.ZodEnum<{
|
|
7210
|
+
disabled: "disabled";
|
|
7211
|
+
required: "required";
|
|
7212
|
+
}>;
|
|
7213
|
+
deferredIds: z.ZodArray<z.ZodString>;
|
|
7214
|
+
}, z.core.$strict>;
|
|
7215
|
+
configuredIds: z.ZodArray<z.ZodString>;
|
|
7216
|
+
droppedIds: z.ZodArray<z.ZodString>;
|
|
7217
|
+
counts: z.ZodObject<{
|
|
7218
|
+
selected: z.ZodNumber;
|
|
7219
|
+
effective: z.ZodNumber;
|
|
7220
|
+
mandatory: z.ZodNumber;
|
|
7221
|
+
deferred: z.ZodNumber;
|
|
7222
|
+
configured: z.ZodNumber;
|
|
7223
|
+
dropped: z.ZodNumber;
|
|
7224
|
+
}, z.core.$strict>;
|
|
7225
|
+
idsTruncated: z.ZodBoolean;
|
|
7226
|
+
}, z.core.$strict>>;
|
|
6630
7227
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6631
7228
|
createdBy: z.ZodObject<{
|
|
6632
7229
|
subjectId: z.ZodString;
|
|
@@ -6709,6 +7306,7 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
6709
7306
|
url: z.ZodString;
|
|
6710
7307
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6711
7308
|
credentialVersion: z.ZodNumber;
|
|
7309
|
+
requireApproval: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
6712
7310
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
6713
7311
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
6714
7312
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -6778,8 +7376,8 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
6778
7376
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6779
7377
|
scope: z.ZodEnum<{
|
|
6780
7378
|
workspace: "workspace";
|
|
6781
|
-
session: "session";
|
|
6782
7379
|
selected: "selected";
|
|
7380
|
+
session: "session";
|
|
6783
7381
|
}>;
|
|
6784
7382
|
targetId: z.ZodOptional<z.ZodString>;
|
|
6785
7383
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -6861,6 +7459,7 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
6861
7459
|
"agent.reasoning.delta": "agent.reasoning.delta";
|
|
6862
7460
|
"agent.toolCall.created": "agent.toolCall.created";
|
|
6863
7461
|
"agent.toolCall.output": "agent.toolCall.output";
|
|
7462
|
+
"agent.model.request": "agent.model.request";
|
|
6864
7463
|
"agent.model.usage": "agent.model.usage";
|
|
6865
7464
|
"tool.auth_needed": "tool.auth_needed";
|
|
6866
7465
|
"credential.auth_needed": "credential.auth_needed";
|
|
@@ -6907,6 +7506,7 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
6907
7506
|
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
6908
7507
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
6909
7508
|
"session.title_set": "session.title_set";
|
|
7509
|
+
"session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
|
|
6910
7510
|
"codex.account.switched": "codex.account.switched";
|
|
6911
7511
|
"codex.credential.selected": "codex.credential.selected";
|
|
6912
7512
|
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
@@ -6941,12 +7541,34 @@ declare const SessionEventSemanticClass: z.ZodEnum<{
|
|
|
6941
7541
|
provider_account: "provider_account";
|
|
6942
7542
|
}>;
|
|
6943
7543
|
type SessionEventSemanticClass = z.infer<typeof SessionEventSemanticClass>;
|
|
7544
|
+
/**
|
|
7545
|
+
* The semantic classes accepted by an exclusive latest lookup. `receipt` is
|
|
7546
|
+
* the concise public spelling for the historical `tool_receipt` class; the
|
|
7547
|
+
* latter remains accepted everywhere for backwards compatibility.
|
|
7548
|
+
*/
|
|
7549
|
+
declare const SessionEventLatestClass: z.ZodEnum<{
|
|
7550
|
+
control: "control";
|
|
7551
|
+
receipt: "receipt";
|
|
7552
|
+
failure: "failure";
|
|
7553
|
+
terminal: "terminal";
|
|
7554
|
+
checkpoint: "checkpoint";
|
|
7555
|
+
tool_receipt: "tool_receipt";
|
|
7556
|
+
provider_account: "provider_account";
|
|
7557
|
+
}>;
|
|
7558
|
+
type SessionEventLatestClass = z.infer<typeof SessionEventLatestClass>;
|
|
7559
|
+
declare function sessionEventLatestClassToSemanticClass(value: SessionEventLatestClass): SessionEventSemanticClass;
|
|
6944
7560
|
declare const SessionEventPayloadMode: z.ZodEnum<{
|
|
6945
7561
|
none: "none";
|
|
6946
7562
|
summary: "summary";
|
|
6947
7563
|
full: "full";
|
|
6948
7564
|
}>;
|
|
6949
7565
|
type SessionEventPayloadMode = z.infer<typeof SessionEventPayloadMode>;
|
|
7566
|
+
/** Select the compact semantic-result projection instead of an event array. */
|
|
7567
|
+
declare const SessionEventResultMode: z.ZodEnum<{
|
|
7568
|
+
events: "events";
|
|
7569
|
+
compact: "compact";
|
|
7570
|
+
}>;
|
|
7571
|
+
type SessionEventResultMode = z.infer<typeof SessionEventResultMode>;
|
|
6950
7572
|
declare const SessionEventReadMode: z.ZodEnum<{
|
|
6951
7573
|
monitoring: "monitoring";
|
|
6952
7574
|
forensic: "forensic";
|
|
@@ -6959,8 +7581,8 @@ declare const SessionEventReadDirection: z.ZodEnum<{
|
|
|
6959
7581
|
type SessionEventReadDirection = z.infer<typeof SessionEventReadDirection>;
|
|
6960
7582
|
declare const SESSION_EVENT_RAW_DELTA_TYPES: readonly ["agent.message.delta", "agent.reasoning.delta", "sandbox.command.output.delta", "terminal.pty.output.delta"];
|
|
6961
7583
|
declare const SESSION_EVENT_SEMANTIC_CLASS_TYPES: {
|
|
6962
|
-
readonly control: readonly ["session.status.changed", "session.requiresAction", "session.humanInput.requested", "user.pause", "user.approvalDecision", "user.humanInputResponse", "goal.set", "goal.updated", "goal.completed", "goal.paused", "goal.resumed", "goal.cleared", "goal.continuation", "system.update.pending", "system.update.delivered", "session.control.paused", "session.control.resumed", "session.control.steer_requested", "workspace.inference.paused", "workspace.inference.resumed", "session.queue.changed", "session.queue.prompt.cancelled"];
|
|
6963
|
-
readonly terminal: readonly ["turn.completed", "turn.failed", "turn.cancelled", "turn.superseded", "goal.completed", "goal.paused", "rig.setup.completed", "rig.setup.skipped", "rig.setup.failed", "sandbox.operation.completed", "sandbox.operation.failed", "recording.available", "recording.failed", "terminal.pty.exited"];
|
|
7584
|
+
readonly control: readonly ["session.status.changed", "session.requiresAction", "session.humanInput.requested", "user.pause", "user.approvalDecision", "user.humanInputResponse", "goal.set", "goal.updated", "goal.completed", "goal.paused", "goal.resumed", "goal.cleared", "goal.continuation", "system.update.pending", "system.update.delivered", "session.control.paused", "session.control.resumed", "session.control.steer_requested", "workspace.inference.paused", "workspace.inference.resumed", "session.queue.changed", "session.queue.prompt.cancelled", "session.mcp.approval_policy.updated"];
|
|
7585
|
+
readonly terminal: readonly ["turn.completed", "agent.message.completed", "turn.failed", "turn.cancelled", "turn.superseded", "goal.completed", "goal.paused", "rig.setup.completed", "rig.setup.skipped", "rig.setup.failed", "sandbox.operation.completed", "sandbox.operation.failed", "recording.available", "recording.failed", "terminal.pty.exited"];
|
|
6964
7586
|
readonly failure: readonly ["session.event.envelope_omitted", "turn.failed", "tool.auth_needed", "credential.auth_needed", "rig.setup.failed", "sandbox.operation.failed", "recording.failed", "sandbox.box.lost", "workspace.revision.degraded", "machine.op.failed", "machine.link.lost"];
|
|
6965
7587
|
readonly checkpoint: readonly ["session.context.compaction.requested", "session.context.compacted", "session.context.compaction.skipped", "session.context.cleared", "turn.recovery.requested", "session.queue.history", "sandbox.box.snapshot", "workspace.revision.captured"];
|
|
6966
7588
|
readonly tool_receipt: readonly ["agent.toolCall.created", "agent.toolCall.output", "tool.auth_needed", "artifact.created"];
|
|
@@ -8209,6 +8831,7 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
8209
8831
|
"agent.reasoning.delta": "agent.reasoning.delta";
|
|
8210
8832
|
"agent.toolCall.created": "agent.toolCall.created";
|
|
8211
8833
|
"agent.toolCall.output": "agent.toolCall.output";
|
|
8834
|
+
"agent.model.request": "agent.model.request";
|
|
8212
8835
|
"agent.model.usage": "agent.model.usage";
|
|
8213
8836
|
"tool.auth_needed": "tool.auth_needed";
|
|
8214
8837
|
"credential.auth_needed": "credential.auth_needed";
|
|
@@ -8255,6 +8878,7 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
8255
8878
|
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
8256
8879
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
8257
8880
|
"session.title_set": "session.title_set";
|
|
8881
|
+
"session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
|
|
8258
8882
|
"codex.account.switched": "codex.account.switched";
|
|
8259
8883
|
"codex.credential.selected": "codex.credential.selected";
|
|
8260
8884
|
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
@@ -8289,6 +8913,62 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
8289
8913
|
duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8290
8914
|
}, z.core.$strip>;
|
|
8291
8915
|
type SessionEvent = z.infer<typeof SessionEvent>;
|
|
8916
|
+
type SessionEventCompactResult = {
|
|
8917
|
+
version: 1;
|
|
8918
|
+
semanticClass: SessionEventSemanticClass;
|
|
8919
|
+
source: {
|
|
8920
|
+
id: string;
|
|
8921
|
+
type: SessionEventType;
|
|
8922
|
+
sequence: number;
|
|
8923
|
+
occurredAt: string;
|
|
8924
|
+
turnId: string | null;
|
|
8925
|
+
turnGeneration: number | null;
|
|
8926
|
+
turnAttemptId: string | null;
|
|
8927
|
+
turnAssociation: SessionEvent["turnAssociation"];
|
|
8928
|
+
};
|
|
8929
|
+
id: string;
|
|
8930
|
+
type: SessionEventType;
|
|
8931
|
+
sequence: number;
|
|
8932
|
+
occurredAt: string;
|
|
8933
|
+
turnId: string | null;
|
|
8934
|
+
turnGeneration: number | null;
|
|
8935
|
+
turnAttemptId: string | null;
|
|
8936
|
+
turnAssociation: SessionEvent["turnAssociation"];
|
|
8937
|
+
coveredSequence: {
|
|
8938
|
+
first: number;
|
|
8939
|
+
last: number;
|
|
8940
|
+
};
|
|
8941
|
+
status: "completed" | "failed" | "cancelled" | "superseded" | "checkpoint" | "receipt" | "unknown";
|
|
8942
|
+
text: string | null;
|
|
8943
|
+
output: unknown;
|
|
8944
|
+
result: unknown;
|
|
8945
|
+
failure: {
|
|
8946
|
+
error: string | null;
|
|
8947
|
+
code: string | null;
|
|
8948
|
+
retryable: boolean | null;
|
|
8949
|
+
recovery: string | null;
|
|
8950
|
+
} | null;
|
|
8951
|
+
checkpoint: unknown;
|
|
8952
|
+
receipt: unknown;
|
|
8953
|
+
truncation: {
|
|
8954
|
+
truncated: boolean;
|
|
8955
|
+
fields: string[];
|
|
8956
|
+
originalBytes: number | null;
|
|
8957
|
+
deliveredBytes: number;
|
|
8958
|
+
};
|
|
8959
|
+
};
|
|
8960
|
+
/**
|
|
8961
|
+
* Build the bounded semantic result used by `latest + result=compact`.
|
|
8962
|
+
*
|
|
8963
|
+
* This is intentionally a pure projection over one already-authoritative
|
|
8964
|
+
* event. It never reads history, invokes a model, follows a URL, or stores an
|
|
8965
|
+
* artifact. The DB/API/MCP layers decide which event is authoritative; this
|
|
8966
|
+
* helper only extracts the small result facts that can cross a client boundary.
|
|
8967
|
+
*/
|
|
8968
|
+
declare function compactSessionEventResult(event: SessionEvent, semanticClass: SessionEventSemanticClass, coveredSequence?: {
|
|
8969
|
+
first: number;
|
|
8970
|
+
last: number;
|
|
8971
|
+
}): SessionEventCompactResult;
|
|
8292
8972
|
/** Wire revision for the durable host event/usage export stream. */
|
|
8293
8973
|
declare const OPENGENI_HOST_EXPORT_SCHEMA_REVISION: "2026-07-host-export-v1";
|
|
8294
8974
|
/**
|
|
@@ -8627,8 +9307,8 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
8627
9307
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
8628
9308
|
scope: z.ZodEnum<{
|
|
8629
9309
|
workspace: "workspace";
|
|
8630
|
-
session: "session";
|
|
8631
9310
|
selected: "selected";
|
|
9311
|
+
session: "session";
|
|
8632
9312
|
}>;
|
|
8633
9313
|
targetId: z.ZodOptional<z.ZodString>;
|
|
8634
9314
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -8721,6 +9401,7 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
8721
9401
|
id: z.ZodString;
|
|
8722
9402
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
8723
9403
|
}, z.core.$strip>>;
|
|
9404
|
+
toolsProvided: z.ZodOptional<z.ZodBoolean>;
|
|
8724
9405
|
model: z.ZodString;
|
|
8725
9406
|
reasoningEffort: z.ZodEnum<{
|
|
8726
9407
|
none: "none";
|
|
@@ -8805,6 +9486,7 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
8805
9486
|
id: z.ZodString;
|
|
8806
9487
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
8807
9488
|
}, z.core.$strip>>;
|
|
9489
|
+
toolsProvided: z.ZodDefault<z.ZodBoolean>;
|
|
8808
9490
|
model: z.ZodString;
|
|
8809
9491
|
reasoningEffort: z.ZodEnum<{
|
|
8810
9492
|
none: "none";
|
|
@@ -8872,8 +9554,8 @@ declare const SessionControlResponse: z.ZodObject<{
|
|
|
8872
9554
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
8873
9555
|
scope: z.ZodEnum<{
|
|
8874
9556
|
workspace: "workspace";
|
|
8875
|
-
session: "session";
|
|
8876
9557
|
selected: "selected";
|
|
9558
|
+
session: "session";
|
|
8877
9559
|
}>;
|
|
8878
9560
|
targetId: z.ZodOptional<z.ZodString>;
|
|
8879
9561
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -9028,7 +9710,7 @@ declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
9028
9710
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9029
9711
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
9030
9712
|
cacheToolsList: z.ZodOptional<z.ZodBoolean>;
|
|
9031
|
-
requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString
|
|
9713
|
+
requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
|
|
9032
9714
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9033
9715
|
connectionRef: z.ZodOptional<z.ZodObject<{
|
|
9034
9716
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -9399,6 +10081,7 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
9399
10081
|
"agent.reasoning.delta": "agent.reasoning.delta";
|
|
9400
10082
|
"agent.toolCall.created": "agent.toolCall.created";
|
|
9401
10083
|
"agent.toolCall.output": "agent.toolCall.output";
|
|
10084
|
+
"agent.model.request": "agent.model.request";
|
|
9402
10085
|
"agent.model.usage": "agent.model.usage";
|
|
9403
10086
|
"tool.auth_needed": "tool.auth_needed";
|
|
9404
10087
|
"credential.auth_needed": "credential.auth_needed";
|
|
@@ -9445,6 +10128,7 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
9445
10128
|
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
9446
10129
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
9447
10130
|
"session.title_set": "session.title_set";
|
|
10131
|
+
"session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
|
|
9448
10132
|
"codex.account.switched": "codex.account.switched";
|
|
9449
10133
|
"codex.credential.selected": "codex.credential.selected";
|
|
9450
10134
|
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
@@ -9538,6 +10222,7 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
9538
10222
|
id: z.ZodString;
|
|
9539
10223
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
9540
10224
|
}, z.core.$strip>>;
|
|
10225
|
+
toolsProvided: z.ZodOptional<z.ZodBoolean>;
|
|
9541
10226
|
model: z.ZodString;
|
|
9542
10227
|
reasoningEffort: z.ZodEnum<{
|
|
9543
10228
|
none: "none";
|
|
@@ -9623,6 +10308,7 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
9623
10308
|
"agent.reasoning.delta": "agent.reasoning.delta";
|
|
9624
10309
|
"agent.toolCall.created": "agent.toolCall.created";
|
|
9625
10310
|
"agent.toolCall.output": "agent.toolCall.output";
|
|
10311
|
+
"agent.model.request": "agent.model.request";
|
|
9626
10312
|
"agent.model.usage": "agent.model.usage";
|
|
9627
10313
|
"tool.auth_needed": "tool.auth_needed";
|
|
9628
10314
|
"credential.auth_needed": "credential.auth_needed";
|
|
@@ -9669,6 +10355,7 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
9669
10355
|
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
9670
10356
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
9671
10357
|
"session.title_set": "session.title_set";
|
|
10358
|
+
"session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
|
|
9672
10359
|
"codex.account.switched": "codex.account.switched";
|
|
9673
10360
|
"codex.credential.selected": "codex.credential.selected";
|
|
9674
10361
|
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
@@ -9725,8 +10412,8 @@ declare const GitHubRepository: z.ZodObject<{
|
|
|
9725
10412
|
}, z.core.$strip>;
|
|
9726
10413
|
type GitHubRepository = z.infer<typeof GitHubRepository>;
|
|
9727
10414
|
declare const GitHubRepositoryScope: z.ZodEnum<{
|
|
9728
|
-
all: "all";
|
|
9729
10415
|
selected: "selected";
|
|
10416
|
+
all: "all";
|
|
9730
10417
|
}>;
|
|
9731
10418
|
type GitHubRepositoryScope = z.infer<typeof GitHubRepositoryScope>;
|
|
9732
10419
|
declare const GitHubInstallationBinding: z.ZodObject<{
|
|
@@ -9734,8 +10421,8 @@ declare const GitHubInstallationBinding: z.ZodObject<{
|
|
|
9734
10421
|
accountLogin: z.ZodNullable<z.ZodString>;
|
|
9735
10422
|
accountType: z.ZodNullable<z.ZodString>;
|
|
9736
10423
|
repositoryScope: z.ZodEnum<{
|
|
9737
|
-
all: "all";
|
|
9738
10424
|
selected: "selected";
|
|
10425
|
+
all: "all";
|
|
9739
10426
|
}>;
|
|
9740
10427
|
repositoryCount: z.ZodNumber;
|
|
9741
10428
|
createdAt: z.ZodString;
|
|
@@ -9754,8 +10441,8 @@ declare const GitHubAppInfo: z.ZodObject<{
|
|
|
9754
10441
|
accountLogin: z.ZodNullable<z.ZodString>;
|
|
9755
10442
|
accountType: z.ZodNullable<z.ZodString>;
|
|
9756
10443
|
repositoryScope: z.ZodEnum<{
|
|
9757
|
-
all: "all";
|
|
9758
10444
|
selected: "selected";
|
|
10445
|
+
all: "all";
|
|
9759
10446
|
}>;
|
|
9760
10447
|
repositoryCount: z.ZodNumber;
|
|
9761
10448
|
createdAt: z.ZodString;
|
|
@@ -10440,16 +11127,303 @@ declare const MachineMetricsSeriesResponse: z.ZodObject<{
|
|
|
10440
11127
|
}, z.core.$strip>>;
|
|
10441
11128
|
}, z.core.$strip>;
|
|
10442
11129
|
type MachineMetricsSeriesResponse = z.infer<typeof MachineMetricsSeriesResponse>;
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
11130
|
+
declare const ModelCapabilitySupportV1: z.ZodEnum<{
|
|
11131
|
+
unknown: "unknown";
|
|
11132
|
+
supported: "supported";
|
|
11133
|
+
unsupported: "unsupported";
|
|
11134
|
+
}>;
|
|
11135
|
+
type ModelCapabilitySupportV1 = z.infer<typeof ModelCapabilitySupportV1>;
|
|
11136
|
+
declare const ModelCapabilityStateV1: z.ZodObject<{
|
|
11137
|
+
upstream: z.ZodEnum<{
|
|
11138
|
+
unknown: "unknown";
|
|
11139
|
+
supported: "supported";
|
|
11140
|
+
unsupported: "unsupported";
|
|
11141
|
+
}>;
|
|
11142
|
+
runnable: z.ZodBoolean;
|
|
11143
|
+
}, z.core.$strip>;
|
|
11144
|
+
type ModelCapabilityStateV1 = z.infer<typeof ModelCapabilityStateV1>;
|
|
11145
|
+
declare const ModelCapabilitiesV1: z.ZodObject<{
|
|
11146
|
+
reasoning: z.ZodObject<{
|
|
11147
|
+
upstream: z.ZodEnum<{
|
|
11148
|
+
unknown: "unknown";
|
|
11149
|
+
supported: "supported";
|
|
11150
|
+
unsupported: "unsupported";
|
|
11151
|
+
}>;
|
|
11152
|
+
runnable: z.ZodBoolean;
|
|
11153
|
+
efforts: z.ZodArray<z.ZodEnum<{
|
|
11154
|
+
none: "none";
|
|
11155
|
+
minimal: "minimal";
|
|
11156
|
+
low: "low";
|
|
11157
|
+
medium: "medium";
|
|
11158
|
+
high: "high";
|
|
11159
|
+
xhigh: "xhigh";
|
|
11160
|
+
}>>;
|
|
11161
|
+
defaultEffort: z.ZodNullable<z.ZodEnum<{
|
|
11162
|
+
none: "none";
|
|
11163
|
+
minimal: "minimal";
|
|
11164
|
+
low: "low";
|
|
11165
|
+
medium: "medium";
|
|
11166
|
+
high: "high";
|
|
11167
|
+
xhigh: "xhigh";
|
|
11168
|
+
}>>;
|
|
11169
|
+
required: z.ZodBoolean;
|
|
11170
|
+
}, z.core.$strip>;
|
|
11171
|
+
functionCalling: z.ZodObject<{
|
|
11172
|
+
upstream: z.ZodEnum<{
|
|
11173
|
+
unknown: "unknown";
|
|
11174
|
+
supported: "supported";
|
|
11175
|
+
unsupported: "unsupported";
|
|
11176
|
+
}>;
|
|
11177
|
+
runnable: z.ZodBoolean;
|
|
11178
|
+
}, z.core.$strip>;
|
|
11179
|
+
structuredOutput: z.ZodObject<{
|
|
11180
|
+
upstream: z.ZodEnum<{
|
|
11181
|
+
unknown: "unknown";
|
|
11182
|
+
supported: "supported";
|
|
11183
|
+
unsupported: "unsupported";
|
|
11184
|
+
}>;
|
|
11185
|
+
runnable: z.ZodBoolean;
|
|
11186
|
+
}, z.core.$strip>;
|
|
11187
|
+
hostedTools: z.ZodObject<{
|
|
11188
|
+
webSearch: z.ZodObject<{
|
|
11189
|
+
upstream: z.ZodEnum<{
|
|
11190
|
+
unknown: "unknown";
|
|
11191
|
+
supported: "supported";
|
|
11192
|
+
unsupported: "unsupported";
|
|
11193
|
+
}>;
|
|
11194
|
+
runnable: z.ZodBoolean;
|
|
11195
|
+
}, z.core.$strip>;
|
|
11196
|
+
xSearch: z.ZodObject<{
|
|
11197
|
+
upstream: z.ZodEnum<{
|
|
11198
|
+
unknown: "unknown";
|
|
11199
|
+
supported: "supported";
|
|
11200
|
+
unsupported: "unsupported";
|
|
11201
|
+
}>;
|
|
11202
|
+
runnable: z.ZodBoolean;
|
|
11203
|
+
}, z.core.$strip>;
|
|
11204
|
+
codeExecution: z.ZodObject<{
|
|
11205
|
+
upstream: z.ZodEnum<{
|
|
11206
|
+
unknown: "unknown";
|
|
11207
|
+
supported: "supported";
|
|
11208
|
+
unsupported: "unsupported";
|
|
11209
|
+
}>;
|
|
11210
|
+
runnable: z.ZodBoolean;
|
|
11211
|
+
}, z.core.$strip>;
|
|
11212
|
+
}, z.core.$strip>;
|
|
11213
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
11214
|
+
text: "text";
|
|
11215
|
+
image: "image";
|
|
11216
|
+
audio: "audio";
|
|
11217
|
+
}>>;
|
|
11218
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
11219
|
+
text: "text";
|
|
11220
|
+
image: "image";
|
|
11221
|
+
audio: "audio";
|
|
11222
|
+
}>>;
|
|
11223
|
+
transports: z.ZodObject<{
|
|
11224
|
+
sse: z.ZodObject<{
|
|
11225
|
+
upstream: z.ZodEnum<{
|
|
11226
|
+
unknown: "unknown";
|
|
11227
|
+
supported: "supported";
|
|
11228
|
+
unsupported: "unsupported";
|
|
11229
|
+
}>;
|
|
11230
|
+
runnable: z.ZodBoolean;
|
|
11231
|
+
}, z.core.$strip>;
|
|
11232
|
+
responsesWebSocket: z.ZodObject<{
|
|
11233
|
+
upstream: z.ZodEnum<{
|
|
11234
|
+
unknown: "unknown";
|
|
11235
|
+
supported: "supported";
|
|
11236
|
+
unsupported: "unsupported";
|
|
11237
|
+
}>;
|
|
11238
|
+
runnable: z.ZodBoolean;
|
|
11239
|
+
}, z.core.$strip>;
|
|
11240
|
+
realtimeAudio: z.ZodObject<{
|
|
11241
|
+
upstream: z.ZodEnum<{
|
|
11242
|
+
unknown: "unknown";
|
|
11243
|
+
supported: "supported";
|
|
11244
|
+
unsupported: "unsupported";
|
|
11245
|
+
}>;
|
|
11246
|
+
runnable: z.ZodBoolean;
|
|
11247
|
+
}, z.core.$strip>;
|
|
11248
|
+
}, z.core.$strip>;
|
|
11249
|
+
latencyModes: z.ZodArray<z.ZodObject<{
|
|
11250
|
+
id: z.ZodEnum<{
|
|
11251
|
+
standard: "standard";
|
|
11252
|
+
priority: "priority";
|
|
11253
|
+
fast: "fast";
|
|
11254
|
+
}>;
|
|
11255
|
+
upstream: z.ZodEnum<{
|
|
11256
|
+
unknown: "unknown";
|
|
11257
|
+
supported: "supported";
|
|
11258
|
+
unsupported: "unsupported";
|
|
11259
|
+
}>;
|
|
11260
|
+
runnable: z.ZodBoolean;
|
|
11261
|
+
billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
|
|
11262
|
+
}, z.core.$strip>>;
|
|
11263
|
+
}, z.core.$strip>;
|
|
11264
|
+
type ModelCapabilitiesV1 = z.infer<typeof ModelCapabilitiesV1>;
|
|
11265
|
+
declare const ModelCredentialSourceV1: z.ZodUnion<readonly [z.ZodObject<{
|
|
11266
|
+
kind: z.ZodLiteral<"deployment">;
|
|
11267
|
+
mechanism: z.ZodEnum<{
|
|
11268
|
+
api_key: "api_key";
|
|
11269
|
+
azure_ad_bearer: "azure_ad_bearer";
|
|
11270
|
+
}>;
|
|
11271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11272
|
+
kind: z.ZodLiteral<"connected_subscription">;
|
|
11273
|
+
provider: z.ZodLiteral<"codex">;
|
|
11274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11275
|
+
kind: z.ZodLiteral<"workspace_connection">;
|
|
11276
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
11277
|
+
}, z.core.$strict>]>;
|
|
11278
|
+
type ModelCredentialSourceV1 = z.infer<typeof ModelCredentialSourceV1>;
|
|
11279
|
+
declare const ModelBillingAttributionV1: z.ZodObject<{
|
|
11280
|
+
upstreamPayer: z.ZodEnum<{
|
|
11281
|
+
workspace: "workspace";
|
|
11282
|
+
deployment: "deployment";
|
|
11283
|
+
connected_subscription: "connected_subscription";
|
|
11284
|
+
}>;
|
|
11285
|
+
metering: z.ZodEnum<{
|
|
11286
|
+
external: "external";
|
|
11287
|
+
opengeni_credits: "opengeni_credits";
|
|
11288
|
+
}>;
|
|
11289
|
+
}, z.core.$strict>;
|
|
11290
|
+
type ModelBillingAttributionV1 = z.infer<typeof ModelBillingAttributionV1>;
|
|
11291
|
+
declare const TURN_EXECUTION_POLICY_METADATA_KEY: "turnExecutionPolicyV1";
|
|
11292
|
+
declare const TurnExecutionModelSourceV1: z.ZodEnum<{
|
|
11293
|
+
explicit: "explicit";
|
|
11294
|
+
session: "session";
|
|
11295
|
+
deployment: "deployment";
|
|
11296
|
+
continuation: "continuation";
|
|
11297
|
+
}>;
|
|
11298
|
+
type TurnExecutionModelSourceV1 = z.infer<typeof TurnExecutionModelSourceV1>;
|
|
11299
|
+
declare const TurnExecutionReasoningSourceV1: z.ZodEnum<{
|
|
11300
|
+
explicit: "explicit";
|
|
11301
|
+
session: "session";
|
|
11302
|
+
deployment: "deployment";
|
|
11303
|
+
continuation: "continuation";
|
|
11304
|
+
}>;
|
|
11305
|
+
type TurnExecutionReasoningSourceV1 = z.infer<typeof TurnExecutionReasoningSourceV1>;
|
|
11306
|
+
/**
|
|
11307
|
+
* Secret-safe execution identity frozen onto one accepted logical turn.
|
|
11308
|
+
*
|
|
11309
|
+
* This is deliberately a strict, normalized reference to the deployment
|
|
11310
|
+
* definition rather than a serialized provider client. It must never contain
|
|
11311
|
+
* a key/token, concrete connected credential id, account label, authorization
|
|
11312
|
+
* header, or credential-bearing URL/query value.
|
|
11313
|
+
*/
|
|
11314
|
+
declare const TurnExecutionPolicyV1: z.ZodObject<{
|
|
11315
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
11316
|
+
productModelId: z.ZodString;
|
|
11317
|
+
requestedModelId: z.ZodNullable<z.ZodString>;
|
|
11318
|
+
modelSource: z.ZodEnum<{
|
|
11319
|
+
explicit: "explicit";
|
|
11320
|
+
session: "session";
|
|
11321
|
+
deployment: "deployment";
|
|
11322
|
+
continuation: "continuation";
|
|
11323
|
+
}>;
|
|
11324
|
+
reasoningEffort: z.ZodEnum<{
|
|
11325
|
+
none: "none";
|
|
11326
|
+
minimal: "minimal";
|
|
11327
|
+
low: "low";
|
|
11328
|
+
medium: "medium";
|
|
11329
|
+
high: "high";
|
|
11330
|
+
xhigh: "xhigh";
|
|
11331
|
+
}>;
|
|
11332
|
+
reasoningSource: z.ZodEnum<{
|
|
11333
|
+
explicit: "explicit";
|
|
11334
|
+
session: "session";
|
|
11335
|
+
deployment: "deployment";
|
|
11336
|
+
continuation: "continuation";
|
|
11337
|
+
}>;
|
|
11338
|
+
providerId: z.ZodString;
|
|
11339
|
+
upstreamModelId: z.ZodString;
|
|
11340
|
+
wireApi: z.ZodEnum<{
|
|
11341
|
+
chat: "chat";
|
|
11342
|
+
responses: "responses";
|
|
11343
|
+
}>;
|
|
11344
|
+
credentialSource: z.ZodUnion<readonly [z.ZodObject<{
|
|
11345
|
+
kind: z.ZodLiteral<"deployment">;
|
|
11346
|
+
mechanism: z.ZodEnum<{
|
|
11347
|
+
api_key: "api_key";
|
|
11348
|
+
azure_ad_bearer: "azure_ad_bearer";
|
|
11349
|
+
}>;
|
|
11350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11351
|
+
kind: z.ZodLiteral<"connected_subscription">;
|
|
11352
|
+
provider: z.ZodLiteral<"codex">;
|
|
11353
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11354
|
+
kind: z.ZodLiteral<"workspace_connection">;
|
|
11355
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
11356
|
+
}, z.core.$strict>]>;
|
|
11357
|
+
billing: z.ZodObject<{
|
|
11358
|
+
upstreamPayer: z.ZodEnum<{
|
|
11359
|
+
workspace: "workspace";
|
|
11360
|
+
deployment: "deployment";
|
|
11361
|
+
connected_subscription: "connected_subscription";
|
|
11362
|
+
}>;
|
|
11363
|
+
metering: z.ZodEnum<{
|
|
11364
|
+
external: "external";
|
|
11365
|
+
opengeni_credits: "opengeni_credits";
|
|
11366
|
+
}>;
|
|
11367
|
+
}, z.core.$strict>;
|
|
11368
|
+
definitionVersion: z.ZodString;
|
|
11369
|
+
}, z.core.$strict>;
|
|
11370
|
+
type TurnExecutionPolicyV1 = z.infer<typeof TurnExecutionPolicyV1>;
|
|
11371
|
+
type TurnExecutionPolicyReadV1 = {
|
|
11372
|
+
kind: "absent";
|
|
11373
|
+
} | {
|
|
11374
|
+
kind: "valid";
|
|
11375
|
+
policy: TurnExecutionPolicyV1;
|
|
11376
|
+
};
|
|
11377
|
+
/**
|
|
11378
|
+
* Read the policy from turn metadata. Only a literally absent key is legacy;
|
|
11379
|
+
* null, undefined, an unknown schema version, extra fields, and every other
|
|
11380
|
+
* malformed present value fail closed. Error text reports paths only and never
|
|
11381
|
+
* reflects the untrusted value into logs or events.
|
|
11382
|
+
*/
|
|
11383
|
+
declare function readTurnExecutionPolicyV1(metadata: unknown): TurnExecutionPolicyReadV1;
|
|
11384
|
+
/** Merge a trusted policy into metadata without disturbing dispatch/recovery state. */
|
|
11385
|
+
declare function metadataWithTurnExecutionPolicyV1(metadata: Readonly<Record<string, unknown>> | null | undefined, policy: TurnExecutionPolicyV1): Record<string, unknown>;
|
|
11386
|
+
/**
|
|
11387
|
+
* Minimal, stable evidence projection for command receipts and audit events.
|
|
11388
|
+
* It intentionally excludes aliases, URLs, request metadata, and all concrete
|
|
11389
|
+
* credential-selection identity.
|
|
11390
|
+
*/
|
|
11391
|
+
declare function turnExecutionPolicyAuditMetadata(policy: TurnExecutionPolicyV1, turnId: string): Record<string, unknown>;
|
|
11392
|
+
declare const ModelPricingV1: z.ZodObject<{
|
|
11393
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
11394
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
11395
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
11396
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
11397
|
+
}, z.core.$strip>;
|
|
11398
|
+
type ModelPricingV1 = z.infer<typeof ModelPricingV1>;
|
|
11399
|
+
declare const ModelPricingScheduleV1: z.ZodObject<{
|
|
11400
|
+
default: z.ZodObject<{
|
|
11401
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
11402
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
11403
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
11404
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
11405
|
+
}, z.core.$strip>;
|
|
11406
|
+
inputTokenTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11407
|
+
minimumInputTokens: z.ZodNumber;
|
|
11408
|
+
pricing: z.ZodObject<{
|
|
11409
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
11410
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
11411
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
11412
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
11413
|
+
}, z.core.$strip>;
|
|
11414
|
+
}, z.core.$strip>>>;
|
|
11415
|
+
}, z.core.$strip>;
|
|
11416
|
+
type ModelPricingScheduleV1 = z.infer<typeof ModelPricingScheduleV1>;
|
|
11417
|
+
/**
|
|
11418
|
+
* A single host-exposed model + the provider that serves it, as surfaced to
|
|
11419
|
+
* clients (SDK + React composer) by GET /v1/config/client. The wire `api`
|
|
11420
|
+
* ("responses" | "chat") lets a client reason about provider capabilities; the
|
|
11421
|
+
* provider id/label drive the picker's grouping. This mirrors the runtime's
|
|
11422
|
+
* ConfiguredModel (packages/config) projected to the client-safe fields.
|
|
11423
|
+
*/
|
|
11424
|
+
declare const ClientModel: z.ZodObject<{
|
|
11425
|
+
id: z.ZodString;
|
|
11426
|
+
label: z.ZodString;
|
|
10453
11427
|
provider: z.ZodString;
|
|
10454
11428
|
providerLabel: z.ZodString;
|
|
10455
11429
|
api: z.ZodEnum<{
|
|
@@ -10457,8 +11431,681 @@ declare const ClientModel: z.ZodObject<{
|
|
|
10457
11431
|
responses: "responses";
|
|
10458
11432
|
}>;
|
|
10459
11433
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
11434
|
+
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
11435
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11436
|
+
deployment: z.ZodOptional<z.ZodObject<{
|
|
11437
|
+
upstreamModelId: z.ZodString;
|
|
11438
|
+
wireApi: z.ZodEnum<{
|
|
11439
|
+
chat: "chat";
|
|
11440
|
+
responses: "responses";
|
|
11441
|
+
}>;
|
|
11442
|
+
}, z.core.$strip>>;
|
|
11443
|
+
executionLimits: z.ZodOptional<z.ZodObject<{
|
|
11444
|
+
contextWindowTokens: z.ZodNullable<z.ZodNumber>;
|
|
11445
|
+
effectiveContextWindowTokens: z.ZodNullable<z.ZodNumber>;
|
|
11446
|
+
autoCompactTokenLimit: z.ZodNullable<z.ZodNumber>;
|
|
11447
|
+
toolOutputTruncationTokens: z.ZodNullable<z.ZodNumber>;
|
|
11448
|
+
}, z.core.$strip>>;
|
|
11449
|
+
credentialSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
11450
|
+
kind: z.ZodLiteral<"deployment">;
|
|
11451
|
+
mechanism: z.ZodEnum<{
|
|
11452
|
+
api_key: "api_key";
|
|
11453
|
+
azure_ad_bearer: "azure_ad_bearer";
|
|
11454
|
+
}>;
|
|
11455
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11456
|
+
kind: z.ZodLiteral<"connected_subscription">;
|
|
11457
|
+
provider: z.ZodLiteral<"codex">;
|
|
11458
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11459
|
+
kind: z.ZodLiteral<"workspace_connection">;
|
|
11460
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
11461
|
+
}, z.core.$strict>]>>;
|
|
11462
|
+
billing: z.ZodOptional<z.ZodObject<{
|
|
11463
|
+
upstreamPayer: z.ZodEnum<{
|
|
11464
|
+
workspace: "workspace";
|
|
11465
|
+
deployment: "deployment";
|
|
11466
|
+
connected_subscription: "connected_subscription";
|
|
11467
|
+
}>;
|
|
11468
|
+
metering: z.ZodEnum<{
|
|
11469
|
+
external: "external";
|
|
11470
|
+
opengeni_credits: "opengeni_credits";
|
|
11471
|
+
}>;
|
|
11472
|
+
}, z.core.$strict>>;
|
|
11473
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
11474
|
+
reasoning: z.ZodObject<{
|
|
11475
|
+
upstream: z.ZodEnum<{
|
|
11476
|
+
unknown: "unknown";
|
|
11477
|
+
supported: "supported";
|
|
11478
|
+
unsupported: "unsupported";
|
|
11479
|
+
}>;
|
|
11480
|
+
runnable: z.ZodBoolean;
|
|
11481
|
+
efforts: z.ZodArray<z.ZodEnum<{
|
|
11482
|
+
none: "none";
|
|
11483
|
+
minimal: "minimal";
|
|
11484
|
+
low: "low";
|
|
11485
|
+
medium: "medium";
|
|
11486
|
+
high: "high";
|
|
11487
|
+
xhigh: "xhigh";
|
|
11488
|
+
}>>;
|
|
11489
|
+
defaultEffort: z.ZodNullable<z.ZodEnum<{
|
|
11490
|
+
none: "none";
|
|
11491
|
+
minimal: "minimal";
|
|
11492
|
+
low: "low";
|
|
11493
|
+
medium: "medium";
|
|
11494
|
+
high: "high";
|
|
11495
|
+
xhigh: "xhigh";
|
|
11496
|
+
}>>;
|
|
11497
|
+
required: z.ZodBoolean;
|
|
11498
|
+
}, z.core.$strip>;
|
|
11499
|
+
functionCalling: z.ZodObject<{
|
|
11500
|
+
upstream: z.ZodEnum<{
|
|
11501
|
+
unknown: "unknown";
|
|
11502
|
+
supported: "supported";
|
|
11503
|
+
unsupported: "unsupported";
|
|
11504
|
+
}>;
|
|
11505
|
+
runnable: z.ZodBoolean;
|
|
11506
|
+
}, z.core.$strip>;
|
|
11507
|
+
structuredOutput: z.ZodObject<{
|
|
11508
|
+
upstream: z.ZodEnum<{
|
|
11509
|
+
unknown: "unknown";
|
|
11510
|
+
supported: "supported";
|
|
11511
|
+
unsupported: "unsupported";
|
|
11512
|
+
}>;
|
|
11513
|
+
runnable: z.ZodBoolean;
|
|
11514
|
+
}, z.core.$strip>;
|
|
11515
|
+
hostedTools: z.ZodObject<{
|
|
11516
|
+
webSearch: z.ZodObject<{
|
|
11517
|
+
upstream: z.ZodEnum<{
|
|
11518
|
+
unknown: "unknown";
|
|
11519
|
+
supported: "supported";
|
|
11520
|
+
unsupported: "unsupported";
|
|
11521
|
+
}>;
|
|
11522
|
+
runnable: z.ZodBoolean;
|
|
11523
|
+
}, z.core.$strip>;
|
|
11524
|
+
xSearch: z.ZodObject<{
|
|
11525
|
+
upstream: z.ZodEnum<{
|
|
11526
|
+
unknown: "unknown";
|
|
11527
|
+
supported: "supported";
|
|
11528
|
+
unsupported: "unsupported";
|
|
11529
|
+
}>;
|
|
11530
|
+
runnable: z.ZodBoolean;
|
|
11531
|
+
}, z.core.$strip>;
|
|
11532
|
+
codeExecution: z.ZodObject<{
|
|
11533
|
+
upstream: z.ZodEnum<{
|
|
11534
|
+
unknown: "unknown";
|
|
11535
|
+
supported: "supported";
|
|
11536
|
+
unsupported: "unsupported";
|
|
11537
|
+
}>;
|
|
11538
|
+
runnable: z.ZodBoolean;
|
|
11539
|
+
}, z.core.$strip>;
|
|
11540
|
+
}, z.core.$strip>;
|
|
11541
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
11542
|
+
text: "text";
|
|
11543
|
+
image: "image";
|
|
11544
|
+
audio: "audio";
|
|
11545
|
+
}>>;
|
|
11546
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
11547
|
+
text: "text";
|
|
11548
|
+
image: "image";
|
|
11549
|
+
audio: "audio";
|
|
11550
|
+
}>>;
|
|
11551
|
+
transports: z.ZodObject<{
|
|
11552
|
+
sse: z.ZodObject<{
|
|
11553
|
+
upstream: z.ZodEnum<{
|
|
11554
|
+
unknown: "unknown";
|
|
11555
|
+
supported: "supported";
|
|
11556
|
+
unsupported: "unsupported";
|
|
11557
|
+
}>;
|
|
11558
|
+
runnable: z.ZodBoolean;
|
|
11559
|
+
}, z.core.$strip>;
|
|
11560
|
+
responsesWebSocket: z.ZodObject<{
|
|
11561
|
+
upstream: z.ZodEnum<{
|
|
11562
|
+
unknown: "unknown";
|
|
11563
|
+
supported: "supported";
|
|
11564
|
+
unsupported: "unsupported";
|
|
11565
|
+
}>;
|
|
11566
|
+
runnable: z.ZodBoolean;
|
|
11567
|
+
}, z.core.$strip>;
|
|
11568
|
+
realtimeAudio: z.ZodObject<{
|
|
11569
|
+
upstream: z.ZodEnum<{
|
|
11570
|
+
unknown: "unknown";
|
|
11571
|
+
supported: "supported";
|
|
11572
|
+
unsupported: "unsupported";
|
|
11573
|
+
}>;
|
|
11574
|
+
runnable: z.ZodBoolean;
|
|
11575
|
+
}, z.core.$strip>;
|
|
11576
|
+
}, z.core.$strip>;
|
|
11577
|
+
latencyModes: z.ZodArray<z.ZodObject<{
|
|
11578
|
+
id: z.ZodEnum<{
|
|
11579
|
+
standard: "standard";
|
|
11580
|
+
priority: "priority";
|
|
11581
|
+
fast: "fast";
|
|
11582
|
+
}>;
|
|
11583
|
+
upstream: z.ZodEnum<{
|
|
11584
|
+
unknown: "unknown";
|
|
11585
|
+
supported: "supported";
|
|
11586
|
+
unsupported: "unsupported";
|
|
11587
|
+
}>;
|
|
11588
|
+
runnable: z.ZodBoolean;
|
|
11589
|
+
billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
|
|
11590
|
+
}, z.core.$strip>>;
|
|
11591
|
+
}, z.core.$strip>>;
|
|
11592
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
11593
|
+
default: z.ZodObject<{
|
|
11594
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
11595
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
11596
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
11597
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
11598
|
+
}, z.core.$strip>;
|
|
11599
|
+
inputTokenTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11600
|
+
minimumInputTokens: z.ZodNumber;
|
|
11601
|
+
pricing: z.ZodObject<{
|
|
11602
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
11603
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
11604
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
11605
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
11606
|
+
}, z.core.$strip>;
|
|
11607
|
+
}, z.core.$strip>>>;
|
|
11608
|
+
}, z.core.$strip>>;
|
|
11609
|
+
definitionVersion: z.ZodOptional<z.ZodString>;
|
|
10460
11610
|
}, z.core.$strip>;
|
|
10461
11611
|
type ClientModel = z.infer<typeof ClientModel>;
|
|
11612
|
+
declare const ModelCredentialReadinessV1: z.ZodObject<{
|
|
11613
|
+
status: z.ZodEnum<{
|
|
11614
|
+
error: "error";
|
|
11615
|
+
ready: "ready";
|
|
11616
|
+
not_ready: "not_ready";
|
|
11617
|
+
}>;
|
|
11618
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
11619
|
+
needs_reauth: "needs_reauth";
|
|
11620
|
+
missing_credential: "missing_credential";
|
|
11621
|
+
prerequisites_missing: "prerequisites_missing";
|
|
11622
|
+
resolver_error: "resolver_error";
|
|
11623
|
+
observation_stale: "observation_stale";
|
|
11624
|
+
}>>;
|
|
11625
|
+
basis: z.ZodEnum<{
|
|
11626
|
+
connection: "connection";
|
|
11627
|
+
configuration: "configuration";
|
|
11628
|
+
resolver: "resolver";
|
|
11629
|
+
}>;
|
|
11630
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
11631
|
+
}, z.core.$strict>;
|
|
11632
|
+
type ModelCredentialReadinessV1 = z.infer<typeof ModelCredentialReadinessV1>;
|
|
11633
|
+
declare const ModelAvailabilityV1: z.ZodObject<{
|
|
11634
|
+
status: z.ZodEnum<{
|
|
11635
|
+
unknown: "unknown";
|
|
11636
|
+
available: "available";
|
|
11637
|
+
unavailable: "unavailable";
|
|
11638
|
+
degraded: "degraded";
|
|
11639
|
+
}>;
|
|
11640
|
+
selectable: z.ZodBoolean;
|
|
11641
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
11642
|
+
policy_blocked: "policy_blocked";
|
|
11643
|
+
needs_reauth: "needs_reauth";
|
|
11644
|
+
unsupported: "unsupported";
|
|
11645
|
+
missing_credential: "missing_credential";
|
|
11646
|
+
credential_not_ready: "credential_not_ready";
|
|
11647
|
+
not_entitled: "not_entitled";
|
|
11648
|
+
provider_unhealthy: "provider_unhealthy";
|
|
11649
|
+
}>>;
|
|
11650
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
11651
|
+
}, z.core.$strip>;
|
|
11652
|
+
type ModelAvailabilityV1 = z.infer<typeof ModelAvailabilityV1>;
|
|
11653
|
+
declare const WorkspaceModelCatalogModel: z.ZodObject<{
|
|
11654
|
+
id: z.ZodString;
|
|
11655
|
+
label: z.ZodString;
|
|
11656
|
+
provider: z.ZodString;
|
|
11657
|
+
providerLabel: z.ZodString;
|
|
11658
|
+
api: z.ZodEnum<{
|
|
11659
|
+
chat: "chat";
|
|
11660
|
+
responses: "responses";
|
|
11661
|
+
}>;
|
|
11662
|
+
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
11663
|
+
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
11664
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11665
|
+
deployment: z.ZodOptional<z.ZodObject<{
|
|
11666
|
+
upstreamModelId: z.ZodString;
|
|
11667
|
+
wireApi: z.ZodEnum<{
|
|
11668
|
+
chat: "chat";
|
|
11669
|
+
responses: "responses";
|
|
11670
|
+
}>;
|
|
11671
|
+
}, z.core.$strip>>;
|
|
11672
|
+
executionLimits: z.ZodOptional<z.ZodObject<{
|
|
11673
|
+
contextWindowTokens: z.ZodNullable<z.ZodNumber>;
|
|
11674
|
+
effectiveContextWindowTokens: z.ZodNullable<z.ZodNumber>;
|
|
11675
|
+
autoCompactTokenLimit: z.ZodNullable<z.ZodNumber>;
|
|
11676
|
+
toolOutputTruncationTokens: z.ZodNullable<z.ZodNumber>;
|
|
11677
|
+
}, z.core.$strip>>;
|
|
11678
|
+
credentialSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
11679
|
+
kind: z.ZodLiteral<"deployment">;
|
|
11680
|
+
mechanism: z.ZodEnum<{
|
|
11681
|
+
api_key: "api_key";
|
|
11682
|
+
azure_ad_bearer: "azure_ad_bearer";
|
|
11683
|
+
}>;
|
|
11684
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11685
|
+
kind: z.ZodLiteral<"connected_subscription">;
|
|
11686
|
+
provider: z.ZodLiteral<"codex">;
|
|
11687
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11688
|
+
kind: z.ZodLiteral<"workspace_connection">;
|
|
11689
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
11690
|
+
}, z.core.$strict>]>>;
|
|
11691
|
+
billing: z.ZodOptional<z.ZodObject<{
|
|
11692
|
+
upstreamPayer: z.ZodEnum<{
|
|
11693
|
+
workspace: "workspace";
|
|
11694
|
+
deployment: "deployment";
|
|
11695
|
+
connected_subscription: "connected_subscription";
|
|
11696
|
+
}>;
|
|
11697
|
+
metering: z.ZodEnum<{
|
|
11698
|
+
external: "external";
|
|
11699
|
+
opengeni_credits: "opengeni_credits";
|
|
11700
|
+
}>;
|
|
11701
|
+
}, z.core.$strict>>;
|
|
11702
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
11703
|
+
reasoning: z.ZodObject<{
|
|
11704
|
+
upstream: z.ZodEnum<{
|
|
11705
|
+
unknown: "unknown";
|
|
11706
|
+
supported: "supported";
|
|
11707
|
+
unsupported: "unsupported";
|
|
11708
|
+
}>;
|
|
11709
|
+
runnable: z.ZodBoolean;
|
|
11710
|
+
efforts: z.ZodArray<z.ZodEnum<{
|
|
11711
|
+
none: "none";
|
|
11712
|
+
minimal: "minimal";
|
|
11713
|
+
low: "low";
|
|
11714
|
+
medium: "medium";
|
|
11715
|
+
high: "high";
|
|
11716
|
+
xhigh: "xhigh";
|
|
11717
|
+
}>>;
|
|
11718
|
+
defaultEffort: z.ZodNullable<z.ZodEnum<{
|
|
11719
|
+
none: "none";
|
|
11720
|
+
minimal: "minimal";
|
|
11721
|
+
low: "low";
|
|
11722
|
+
medium: "medium";
|
|
11723
|
+
high: "high";
|
|
11724
|
+
xhigh: "xhigh";
|
|
11725
|
+
}>>;
|
|
11726
|
+
required: z.ZodBoolean;
|
|
11727
|
+
}, z.core.$strip>;
|
|
11728
|
+
functionCalling: z.ZodObject<{
|
|
11729
|
+
upstream: z.ZodEnum<{
|
|
11730
|
+
unknown: "unknown";
|
|
11731
|
+
supported: "supported";
|
|
11732
|
+
unsupported: "unsupported";
|
|
11733
|
+
}>;
|
|
11734
|
+
runnable: z.ZodBoolean;
|
|
11735
|
+
}, z.core.$strip>;
|
|
11736
|
+
structuredOutput: z.ZodObject<{
|
|
11737
|
+
upstream: z.ZodEnum<{
|
|
11738
|
+
unknown: "unknown";
|
|
11739
|
+
supported: "supported";
|
|
11740
|
+
unsupported: "unsupported";
|
|
11741
|
+
}>;
|
|
11742
|
+
runnable: z.ZodBoolean;
|
|
11743
|
+
}, z.core.$strip>;
|
|
11744
|
+
hostedTools: z.ZodObject<{
|
|
11745
|
+
webSearch: z.ZodObject<{
|
|
11746
|
+
upstream: z.ZodEnum<{
|
|
11747
|
+
unknown: "unknown";
|
|
11748
|
+
supported: "supported";
|
|
11749
|
+
unsupported: "unsupported";
|
|
11750
|
+
}>;
|
|
11751
|
+
runnable: z.ZodBoolean;
|
|
11752
|
+
}, z.core.$strip>;
|
|
11753
|
+
xSearch: z.ZodObject<{
|
|
11754
|
+
upstream: z.ZodEnum<{
|
|
11755
|
+
unknown: "unknown";
|
|
11756
|
+
supported: "supported";
|
|
11757
|
+
unsupported: "unsupported";
|
|
11758
|
+
}>;
|
|
11759
|
+
runnable: z.ZodBoolean;
|
|
11760
|
+
}, z.core.$strip>;
|
|
11761
|
+
codeExecution: z.ZodObject<{
|
|
11762
|
+
upstream: z.ZodEnum<{
|
|
11763
|
+
unknown: "unknown";
|
|
11764
|
+
supported: "supported";
|
|
11765
|
+
unsupported: "unsupported";
|
|
11766
|
+
}>;
|
|
11767
|
+
runnable: z.ZodBoolean;
|
|
11768
|
+
}, z.core.$strip>;
|
|
11769
|
+
}, z.core.$strip>;
|
|
11770
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
11771
|
+
text: "text";
|
|
11772
|
+
image: "image";
|
|
11773
|
+
audio: "audio";
|
|
11774
|
+
}>>;
|
|
11775
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
11776
|
+
text: "text";
|
|
11777
|
+
image: "image";
|
|
11778
|
+
audio: "audio";
|
|
11779
|
+
}>>;
|
|
11780
|
+
transports: z.ZodObject<{
|
|
11781
|
+
sse: z.ZodObject<{
|
|
11782
|
+
upstream: z.ZodEnum<{
|
|
11783
|
+
unknown: "unknown";
|
|
11784
|
+
supported: "supported";
|
|
11785
|
+
unsupported: "unsupported";
|
|
11786
|
+
}>;
|
|
11787
|
+
runnable: z.ZodBoolean;
|
|
11788
|
+
}, z.core.$strip>;
|
|
11789
|
+
responsesWebSocket: z.ZodObject<{
|
|
11790
|
+
upstream: z.ZodEnum<{
|
|
11791
|
+
unknown: "unknown";
|
|
11792
|
+
supported: "supported";
|
|
11793
|
+
unsupported: "unsupported";
|
|
11794
|
+
}>;
|
|
11795
|
+
runnable: z.ZodBoolean;
|
|
11796
|
+
}, z.core.$strip>;
|
|
11797
|
+
realtimeAudio: z.ZodObject<{
|
|
11798
|
+
upstream: z.ZodEnum<{
|
|
11799
|
+
unknown: "unknown";
|
|
11800
|
+
supported: "supported";
|
|
11801
|
+
unsupported: "unsupported";
|
|
11802
|
+
}>;
|
|
11803
|
+
runnable: z.ZodBoolean;
|
|
11804
|
+
}, z.core.$strip>;
|
|
11805
|
+
}, z.core.$strip>;
|
|
11806
|
+
latencyModes: z.ZodArray<z.ZodObject<{
|
|
11807
|
+
id: z.ZodEnum<{
|
|
11808
|
+
standard: "standard";
|
|
11809
|
+
priority: "priority";
|
|
11810
|
+
fast: "fast";
|
|
11811
|
+
}>;
|
|
11812
|
+
upstream: z.ZodEnum<{
|
|
11813
|
+
unknown: "unknown";
|
|
11814
|
+
supported: "supported";
|
|
11815
|
+
unsupported: "unsupported";
|
|
11816
|
+
}>;
|
|
11817
|
+
runnable: z.ZodBoolean;
|
|
11818
|
+
billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
|
|
11819
|
+
}, z.core.$strip>>;
|
|
11820
|
+
}, z.core.$strip>>;
|
|
11821
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
11822
|
+
default: z.ZodObject<{
|
|
11823
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
11824
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
11825
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
11826
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
11827
|
+
}, z.core.$strip>;
|
|
11828
|
+
inputTokenTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11829
|
+
minimumInputTokens: z.ZodNumber;
|
|
11830
|
+
pricing: z.ZodObject<{
|
|
11831
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
11832
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
11833
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
11834
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
11835
|
+
}, z.core.$strip>;
|
|
11836
|
+
}, z.core.$strip>>>;
|
|
11837
|
+
}, z.core.$strip>>;
|
|
11838
|
+
definitionVersion: z.ZodOptional<z.ZodString>;
|
|
11839
|
+
credentialReadiness: z.ZodObject<{
|
|
11840
|
+
status: z.ZodEnum<{
|
|
11841
|
+
error: "error";
|
|
11842
|
+
ready: "ready";
|
|
11843
|
+
not_ready: "not_ready";
|
|
11844
|
+
}>;
|
|
11845
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
11846
|
+
needs_reauth: "needs_reauth";
|
|
11847
|
+
missing_credential: "missing_credential";
|
|
11848
|
+
prerequisites_missing: "prerequisites_missing";
|
|
11849
|
+
resolver_error: "resolver_error";
|
|
11850
|
+
observation_stale: "observation_stale";
|
|
11851
|
+
}>>;
|
|
11852
|
+
basis: z.ZodEnum<{
|
|
11853
|
+
connection: "connection";
|
|
11854
|
+
configuration: "configuration";
|
|
11855
|
+
resolver: "resolver";
|
|
11856
|
+
}>;
|
|
11857
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
11858
|
+
}, z.core.$strict>;
|
|
11859
|
+
availability: z.ZodObject<{
|
|
11860
|
+
status: z.ZodEnum<{
|
|
11861
|
+
unknown: "unknown";
|
|
11862
|
+
available: "available";
|
|
11863
|
+
unavailable: "unavailable";
|
|
11864
|
+
degraded: "degraded";
|
|
11865
|
+
}>;
|
|
11866
|
+
selectable: z.ZodBoolean;
|
|
11867
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
11868
|
+
policy_blocked: "policy_blocked";
|
|
11869
|
+
needs_reauth: "needs_reauth";
|
|
11870
|
+
unsupported: "unsupported";
|
|
11871
|
+
missing_credential: "missing_credential";
|
|
11872
|
+
credential_not_ready: "credential_not_ready";
|
|
11873
|
+
not_entitled: "not_entitled";
|
|
11874
|
+
provider_unhealthy: "provider_unhealthy";
|
|
11875
|
+
}>>;
|
|
11876
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
11877
|
+
}, z.core.$strip>;
|
|
11878
|
+
}, z.core.$strip>;
|
|
11879
|
+
type WorkspaceModelCatalogModel = z.infer<typeof WorkspaceModelCatalogModel>;
|
|
11880
|
+
declare const WorkspaceModelCatalogResponse: z.ZodObject<{
|
|
11881
|
+
models: z.ZodArray<z.ZodObject<{
|
|
11882
|
+
id: z.ZodString;
|
|
11883
|
+
label: z.ZodString;
|
|
11884
|
+
provider: z.ZodString;
|
|
11885
|
+
providerLabel: z.ZodString;
|
|
11886
|
+
api: z.ZodEnum<{
|
|
11887
|
+
chat: "chat";
|
|
11888
|
+
responses: "responses";
|
|
11889
|
+
}>;
|
|
11890
|
+
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
11891
|
+
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
11892
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11893
|
+
deployment: z.ZodOptional<z.ZodObject<{
|
|
11894
|
+
upstreamModelId: z.ZodString;
|
|
11895
|
+
wireApi: z.ZodEnum<{
|
|
11896
|
+
chat: "chat";
|
|
11897
|
+
responses: "responses";
|
|
11898
|
+
}>;
|
|
11899
|
+
}, z.core.$strip>>;
|
|
11900
|
+
executionLimits: z.ZodOptional<z.ZodObject<{
|
|
11901
|
+
contextWindowTokens: z.ZodNullable<z.ZodNumber>;
|
|
11902
|
+
effectiveContextWindowTokens: z.ZodNullable<z.ZodNumber>;
|
|
11903
|
+
autoCompactTokenLimit: z.ZodNullable<z.ZodNumber>;
|
|
11904
|
+
toolOutputTruncationTokens: z.ZodNullable<z.ZodNumber>;
|
|
11905
|
+
}, z.core.$strip>>;
|
|
11906
|
+
credentialSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
11907
|
+
kind: z.ZodLiteral<"deployment">;
|
|
11908
|
+
mechanism: z.ZodEnum<{
|
|
11909
|
+
api_key: "api_key";
|
|
11910
|
+
azure_ad_bearer: "azure_ad_bearer";
|
|
11911
|
+
}>;
|
|
11912
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11913
|
+
kind: z.ZodLiteral<"connected_subscription">;
|
|
11914
|
+
provider: z.ZodLiteral<"codex">;
|
|
11915
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11916
|
+
kind: z.ZodLiteral<"workspace_connection">;
|
|
11917
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
11918
|
+
}, z.core.$strict>]>>;
|
|
11919
|
+
billing: z.ZodOptional<z.ZodObject<{
|
|
11920
|
+
upstreamPayer: z.ZodEnum<{
|
|
11921
|
+
workspace: "workspace";
|
|
11922
|
+
deployment: "deployment";
|
|
11923
|
+
connected_subscription: "connected_subscription";
|
|
11924
|
+
}>;
|
|
11925
|
+
metering: z.ZodEnum<{
|
|
11926
|
+
external: "external";
|
|
11927
|
+
opengeni_credits: "opengeni_credits";
|
|
11928
|
+
}>;
|
|
11929
|
+
}, z.core.$strict>>;
|
|
11930
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
11931
|
+
reasoning: z.ZodObject<{
|
|
11932
|
+
upstream: z.ZodEnum<{
|
|
11933
|
+
unknown: "unknown";
|
|
11934
|
+
supported: "supported";
|
|
11935
|
+
unsupported: "unsupported";
|
|
11936
|
+
}>;
|
|
11937
|
+
runnable: z.ZodBoolean;
|
|
11938
|
+
efforts: z.ZodArray<z.ZodEnum<{
|
|
11939
|
+
none: "none";
|
|
11940
|
+
minimal: "minimal";
|
|
11941
|
+
low: "low";
|
|
11942
|
+
medium: "medium";
|
|
11943
|
+
high: "high";
|
|
11944
|
+
xhigh: "xhigh";
|
|
11945
|
+
}>>;
|
|
11946
|
+
defaultEffort: z.ZodNullable<z.ZodEnum<{
|
|
11947
|
+
none: "none";
|
|
11948
|
+
minimal: "minimal";
|
|
11949
|
+
low: "low";
|
|
11950
|
+
medium: "medium";
|
|
11951
|
+
high: "high";
|
|
11952
|
+
xhigh: "xhigh";
|
|
11953
|
+
}>>;
|
|
11954
|
+
required: z.ZodBoolean;
|
|
11955
|
+
}, z.core.$strip>;
|
|
11956
|
+
functionCalling: z.ZodObject<{
|
|
11957
|
+
upstream: z.ZodEnum<{
|
|
11958
|
+
unknown: "unknown";
|
|
11959
|
+
supported: "supported";
|
|
11960
|
+
unsupported: "unsupported";
|
|
11961
|
+
}>;
|
|
11962
|
+
runnable: z.ZodBoolean;
|
|
11963
|
+
}, z.core.$strip>;
|
|
11964
|
+
structuredOutput: z.ZodObject<{
|
|
11965
|
+
upstream: z.ZodEnum<{
|
|
11966
|
+
unknown: "unknown";
|
|
11967
|
+
supported: "supported";
|
|
11968
|
+
unsupported: "unsupported";
|
|
11969
|
+
}>;
|
|
11970
|
+
runnable: z.ZodBoolean;
|
|
11971
|
+
}, z.core.$strip>;
|
|
11972
|
+
hostedTools: z.ZodObject<{
|
|
11973
|
+
webSearch: z.ZodObject<{
|
|
11974
|
+
upstream: z.ZodEnum<{
|
|
11975
|
+
unknown: "unknown";
|
|
11976
|
+
supported: "supported";
|
|
11977
|
+
unsupported: "unsupported";
|
|
11978
|
+
}>;
|
|
11979
|
+
runnable: z.ZodBoolean;
|
|
11980
|
+
}, z.core.$strip>;
|
|
11981
|
+
xSearch: z.ZodObject<{
|
|
11982
|
+
upstream: z.ZodEnum<{
|
|
11983
|
+
unknown: "unknown";
|
|
11984
|
+
supported: "supported";
|
|
11985
|
+
unsupported: "unsupported";
|
|
11986
|
+
}>;
|
|
11987
|
+
runnable: z.ZodBoolean;
|
|
11988
|
+
}, z.core.$strip>;
|
|
11989
|
+
codeExecution: z.ZodObject<{
|
|
11990
|
+
upstream: z.ZodEnum<{
|
|
11991
|
+
unknown: "unknown";
|
|
11992
|
+
supported: "supported";
|
|
11993
|
+
unsupported: "unsupported";
|
|
11994
|
+
}>;
|
|
11995
|
+
runnable: z.ZodBoolean;
|
|
11996
|
+
}, z.core.$strip>;
|
|
11997
|
+
}, z.core.$strip>;
|
|
11998
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
11999
|
+
text: "text";
|
|
12000
|
+
image: "image";
|
|
12001
|
+
audio: "audio";
|
|
12002
|
+
}>>;
|
|
12003
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
12004
|
+
text: "text";
|
|
12005
|
+
image: "image";
|
|
12006
|
+
audio: "audio";
|
|
12007
|
+
}>>;
|
|
12008
|
+
transports: z.ZodObject<{
|
|
12009
|
+
sse: z.ZodObject<{
|
|
12010
|
+
upstream: z.ZodEnum<{
|
|
12011
|
+
unknown: "unknown";
|
|
12012
|
+
supported: "supported";
|
|
12013
|
+
unsupported: "unsupported";
|
|
12014
|
+
}>;
|
|
12015
|
+
runnable: z.ZodBoolean;
|
|
12016
|
+
}, z.core.$strip>;
|
|
12017
|
+
responsesWebSocket: z.ZodObject<{
|
|
12018
|
+
upstream: z.ZodEnum<{
|
|
12019
|
+
unknown: "unknown";
|
|
12020
|
+
supported: "supported";
|
|
12021
|
+
unsupported: "unsupported";
|
|
12022
|
+
}>;
|
|
12023
|
+
runnable: z.ZodBoolean;
|
|
12024
|
+
}, z.core.$strip>;
|
|
12025
|
+
realtimeAudio: z.ZodObject<{
|
|
12026
|
+
upstream: z.ZodEnum<{
|
|
12027
|
+
unknown: "unknown";
|
|
12028
|
+
supported: "supported";
|
|
12029
|
+
unsupported: "unsupported";
|
|
12030
|
+
}>;
|
|
12031
|
+
runnable: z.ZodBoolean;
|
|
12032
|
+
}, z.core.$strip>;
|
|
12033
|
+
}, z.core.$strip>;
|
|
12034
|
+
latencyModes: z.ZodArray<z.ZodObject<{
|
|
12035
|
+
id: z.ZodEnum<{
|
|
12036
|
+
standard: "standard";
|
|
12037
|
+
priority: "priority";
|
|
12038
|
+
fast: "fast";
|
|
12039
|
+
}>;
|
|
12040
|
+
upstream: z.ZodEnum<{
|
|
12041
|
+
unknown: "unknown";
|
|
12042
|
+
supported: "supported";
|
|
12043
|
+
unsupported: "unsupported";
|
|
12044
|
+
}>;
|
|
12045
|
+
runnable: z.ZodBoolean;
|
|
12046
|
+
billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
|
|
12047
|
+
}, z.core.$strip>>;
|
|
12048
|
+
}, z.core.$strip>>;
|
|
12049
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
12050
|
+
default: z.ZodObject<{
|
|
12051
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
12052
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
12053
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
12054
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
12055
|
+
}, z.core.$strip>;
|
|
12056
|
+
inputTokenTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12057
|
+
minimumInputTokens: z.ZodNumber;
|
|
12058
|
+
pricing: z.ZodObject<{
|
|
12059
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
12060
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
12061
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
12062
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
12063
|
+
}, z.core.$strip>;
|
|
12064
|
+
}, z.core.$strip>>>;
|
|
12065
|
+
}, z.core.$strip>>;
|
|
12066
|
+
definitionVersion: z.ZodOptional<z.ZodString>;
|
|
12067
|
+
credentialReadiness: z.ZodObject<{
|
|
12068
|
+
status: z.ZodEnum<{
|
|
12069
|
+
error: "error";
|
|
12070
|
+
ready: "ready";
|
|
12071
|
+
not_ready: "not_ready";
|
|
12072
|
+
}>;
|
|
12073
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
12074
|
+
needs_reauth: "needs_reauth";
|
|
12075
|
+
missing_credential: "missing_credential";
|
|
12076
|
+
prerequisites_missing: "prerequisites_missing";
|
|
12077
|
+
resolver_error: "resolver_error";
|
|
12078
|
+
observation_stale: "observation_stale";
|
|
12079
|
+
}>>;
|
|
12080
|
+
basis: z.ZodEnum<{
|
|
12081
|
+
connection: "connection";
|
|
12082
|
+
configuration: "configuration";
|
|
12083
|
+
resolver: "resolver";
|
|
12084
|
+
}>;
|
|
12085
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
12086
|
+
}, z.core.$strict>;
|
|
12087
|
+
availability: z.ZodObject<{
|
|
12088
|
+
status: z.ZodEnum<{
|
|
12089
|
+
unknown: "unknown";
|
|
12090
|
+
available: "available";
|
|
12091
|
+
unavailable: "unavailable";
|
|
12092
|
+
degraded: "degraded";
|
|
12093
|
+
}>;
|
|
12094
|
+
selectable: z.ZodBoolean;
|
|
12095
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
12096
|
+
policy_blocked: "policy_blocked";
|
|
12097
|
+
needs_reauth: "needs_reauth";
|
|
12098
|
+
unsupported: "unsupported";
|
|
12099
|
+
missing_credential: "missing_credential";
|
|
12100
|
+
credential_not_ready: "credential_not_ready";
|
|
12101
|
+
not_entitled: "not_entitled";
|
|
12102
|
+
provider_unhealthy: "provider_unhealthy";
|
|
12103
|
+
}>>;
|
|
12104
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
12105
|
+
}, z.core.$strip>;
|
|
12106
|
+
}, z.core.$strip>>;
|
|
12107
|
+
}, z.core.$strip>;
|
|
12108
|
+
type WorkspaceModelCatalogResponse = z.infer<typeof WorkspaceModelCatalogResponse>;
|
|
10462
12109
|
/**
|
|
10463
12110
|
* Exact public HTTP protocol revision spoken by this release train.
|
|
10464
12111
|
*
|
|
@@ -10485,6 +12132,182 @@ declare const ClientConfig: z.ZodObject<{
|
|
|
10485
12132
|
responses: "responses";
|
|
10486
12133
|
}>;
|
|
10487
12134
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
12135
|
+
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
12136
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12137
|
+
deployment: z.ZodOptional<z.ZodObject<{
|
|
12138
|
+
upstreamModelId: z.ZodString;
|
|
12139
|
+
wireApi: z.ZodEnum<{
|
|
12140
|
+
chat: "chat";
|
|
12141
|
+
responses: "responses";
|
|
12142
|
+
}>;
|
|
12143
|
+
}, z.core.$strip>>;
|
|
12144
|
+
executionLimits: z.ZodOptional<z.ZodObject<{
|
|
12145
|
+
contextWindowTokens: z.ZodNullable<z.ZodNumber>;
|
|
12146
|
+
effectiveContextWindowTokens: z.ZodNullable<z.ZodNumber>;
|
|
12147
|
+
autoCompactTokenLimit: z.ZodNullable<z.ZodNumber>;
|
|
12148
|
+
toolOutputTruncationTokens: z.ZodNullable<z.ZodNumber>;
|
|
12149
|
+
}, z.core.$strip>>;
|
|
12150
|
+
credentialSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
12151
|
+
kind: z.ZodLiteral<"deployment">;
|
|
12152
|
+
mechanism: z.ZodEnum<{
|
|
12153
|
+
api_key: "api_key";
|
|
12154
|
+
azure_ad_bearer: "azure_ad_bearer";
|
|
12155
|
+
}>;
|
|
12156
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12157
|
+
kind: z.ZodLiteral<"connected_subscription">;
|
|
12158
|
+
provider: z.ZodLiteral<"codex">;
|
|
12159
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12160
|
+
kind: z.ZodLiteral<"workspace_connection">;
|
|
12161
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
12162
|
+
}, z.core.$strict>]>>;
|
|
12163
|
+
billing: z.ZodOptional<z.ZodObject<{
|
|
12164
|
+
upstreamPayer: z.ZodEnum<{
|
|
12165
|
+
workspace: "workspace";
|
|
12166
|
+
deployment: "deployment";
|
|
12167
|
+
connected_subscription: "connected_subscription";
|
|
12168
|
+
}>;
|
|
12169
|
+
metering: z.ZodEnum<{
|
|
12170
|
+
external: "external";
|
|
12171
|
+
opengeni_credits: "opengeni_credits";
|
|
12172
|
+
}>;
|
|
12173
|
+
}, z.core.$strict>>;
|
|
12174
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
12175
|
+
reasoning: z.ZodObject<{
|
|
12176
|
+
upstream: z.ZodEnum<{
|
|
12177
|
+
unknown: "unknown";
|
|
12178
|
+
supported: "supported";
|
|
12179
|
+
unsupported: "unsupported";
|
|
12180
|
+
}>;
|
|
12181
|
+
runnable: z.ZodBoolean;
|
|
12182
|
+
efforts: z.ZodArray<z.ZodEnum<{
|
|
12183
|
+
none: "none";
|
|
12184
|
+
minimal: "minimal";
|
|
12185
|
+
low: "low";
|
|
12186
|
+
medium: "medium";
|
|
12187
|
+
high: "high";
|
|
12188
|
+
xhigh: "xhigh";
|
|
12189
|
+
}>>;
|
|
12190
|
+
defaultEffort: z.ZodNullable<z.ZodEnum<{
|
|
12191
|
+
none: "none";
|
|
12192
|
+
minimal: "minimal";
|
|
12193
|
+
low: "low";
|
|
12194
|
+
medium: "medium";
|
|
12195
|
+
high: "high";
|
|
12196
|
+
xhigh: "xhigh";
|
|
12197
|
+
}>>;
|
|
12198
|
+
required: z.ZodBoolean;
|
|
12199
|
+
}, z.core.$strip>;
|
|
12200
|
+
functionCalling: z.ZodObject<{
|
|
12201
|
+
upstream: z.ZodEnum<{
|
|
12202
|
+
unknown: "unknown";
|
|
12203
|
+
supported: "supported";
|
|
12204
|
+
unsupported: "unsupported";
|
|
12205
|
+
}>;
|
|
12206
|
+
runnable: z.ZodBoolean;
|
|
12207
|
+
}, z.core.$strip>;
|
|
12208
|
+
structuredOutput: z.ZodObject<{
|
|
12209
|
+
upstream: z.ZodEnum<{
|
|
12210
|
+
unknown: "unknown";
|
|
12211
|
+
supported: "supported";
|
|
12212
|
+
unsupported: "unsupported";
|
|
12213
|
+
}>;
|
|
12214
|
+
runnable: z.ZodBoolean;
|
|
12215
|
+
}, z.core.$strip>;
|
|
12216
|
+
hostedTools: z.ZodObject<{
|
|
12217
|
+
webSearch: z.ZodObject<{
|
|
12218
|
+
upstream: z.ZodEnum<{
|
|
12219
|
+
unknown: "unknown";
|
|
12220
|
+
supported: "supported";
|
|
12221
|
+
unsupported: "unsupported";
|
|
12222
|
+
}>;
|
|
12223
|
+
runnable: z.ZodBoolean;
|
|
12224
|
+
}, z.core.$strip>;
|
|
12225
|
+
xSearch: z.ZodObject<{
|
|
12226
|
+
upstream: z.ZodEnum<{
|
|
12227
|
+
unknown: "unknown";
|
|
12228
|
+
supported: "supported";
|
|
12229
|
+
unsupported: "unsupported";
|
|
12230
|
+
}>;
|
|
12231
|
+
runnable: z.ZodBoolean;
|
|
12232
|
+
}, z.core.$strip>;
|
|
12233
|
+
codeExecution: z.ZodObject<{
|
|
12234
|
+
upstream: z.ZodEnum<{
|
|
12235
|
+
unknown: "unknown";
|
|
12236
|
+
supported: "supported";
|
|
12237
|
+
unsupported: "unsupported";
|
|
12238
|
+
}>;
|
|
12239
|
+
runnable: z.ZodBoolean;
|
|
12240
|
+
}, z.core.$strip>;
|
|
12241
|
+
}, z.core.$strip>;
|
|
12242
|
+
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
12243
|
+
text: "text";
|
|
12244
|
+
image: "image";
|
|
12245
|
+
audio: "audio";
|
|
12246
|
+
}>>;
|
|
12247
|
+
outputModalities: z.ZodArray<z.ZodEnum<{
|
|
12248
|
+
text: "text";
|
|
12249
|
+
image: "image";
|
|
12250
|
+
audio: "audio";
|
|
12251
|
+
}>>;
|
|
12252
|
+
transports: z.ZodObject<{
|
|
12253
|
+
sse: z.ZodObject<{
|
|
12254
|
+
upstream: z.ZodEnum<{
|
|
12255
|
+
unknown: "unknown";
|
|
12256
|
+
supported: "supported";
|
|
12257
|
+
unsupported: "unsupported";
|
|
12258
|
+
}>;
|
|
12259
|
+
runnable: z.ZodBoolean;
|
|
12260
|
+
}, z.core.$strip>;
|
|
12261
|
+
responsesWebSocket: z.ZodObject<{
|
|
12262
|
+
upstream: z.ZodEnum<{
|
|
12263
|
+
unknown: "unknown";
|
|
12264
|
+
supported: "supported";
|
|
12265
|
+
unsupported: "unsupported";
|
|
12266
|
+
}>;
|
|
12267
|
+
runnable: z.ZodBoolean;
|
|
12268
|
+
}, z.core.$strip>;
|
|
12269
|
+
realtimeAudio: z.ZodObject<{
|
|
12270
|
+
upstream: z.ZodEnum<{
|
|
12271
|
+
unknown: "unknown";
|
|
12272
|
+
supported: "supported";
|
|
12273
|
+
unsupported: "unsupported";
|
|
12274
|
+
}>;
|
|
12275
|
+
runnable: z.ZodBoolean;
|
|
12276
|
+
}, z.core.$strip>;
|
|
12277
|
+
}, z.core.$strip>;
|
|
12278
|
+
latencyModes: z.ZodArray<z.ZodObject<{
|
|
12279
|
+
id: z.ZodEnum<{
|
|
12280
|
+
standard: "standard";
|
|
12281
|
+
priority: "priority";
|
|
12282
|
+
fast: "fast";
|
|
12283
|
+
}>;
|
|
12284
|
+
upstream: z.ZodEnum<{
|
|
12285
|
+
unknown: "unknown";
|
|
12286
|
+
supported: "supported";
|
|
12287
|
+
unsupported: "unsupported";
|
|
12288
|
+
}>;
|
|
12289
|
+
runnable: z.ZodBoolean;
|
|
12290
|
+
billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
|
|
12291
|
+
}, z.core.$strip>>;
|
|
12292
|
+
}, z.core.$strip>>;
|
|
12293
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
12294
|
+
default: z.ZodObject<{
|
|
12295
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
12296
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
12297
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
12298
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
12299
|
+
}, z.core.$strip>;
|
|
12300
|
+
inputTokenTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12301
|
+
minimumInputTokens: z.ZodNumber;
|
|
12302
|
+
pricing: z.ZodObject<{
|
|
12303
|
+
inputMicrosPerMillionTokens: z.ZodNumber;
|
|
12304
|
+
cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
|
|
12305
|
+
outputMicrosPerMillionTokens: z.ZodNumber;
|
|
12306
|
+
marginBps: z.ZodOptional<z.ZodNumber>;
|
|
12307
|
+
}, z.core.$strip>;
|
|
12308
|
+
}, z.core.$strip>>>;
|
|
12309
|
+
}, z.core.$strip>>;
|
|
12310
|
+
definitionVersion: z.ZodOptional<z.ZodString>;
|
|
10488
12311
|
}, z.core.$strip>>>;
|
|
10489
12312
|
defaultReasoningEffort: z.ZodEnum<{
|
|
10490
12313
|
none: "none";
|
|
@@ -10566,4 +12389,4 @@ declare function evaluateWorkspaceModelPolicy(policy: WorkspaceModelPolicyContra
|
|
|
10566
12389
|
modelId: string;
|
|
10567
12390
|
}): WorkspaceModelPolicyVerdict;
|
|
10568
12391
|
|
|
10569
|
-
export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, ApiKey, AttachViewerRequest, type AuthorizeSessionInput, BillingBalance, BillingMode, type BoundSessionEventOptions, type BoundSessionEventPayloadOptions, type BoundWorkspaceControlEventOptions, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CapabilityCatalogAuthKind, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityCatalogTier, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, ComposerDraft, ConnectionCredentialBundle, type ConnectionCredentialsPort, ConnectionKind, ConnectionMetadata, ConnectionResponse, ConnectionStatus, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateKnowledgeMemoryRequest, CreateRigRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSessionResponse, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateVariableSetRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, CredentialAuthNeededPayload, type CredentialAuthNeededReason, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeleteSessionQueueItemRequest, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchMode, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EditSessionQueueItemRequest, EffectiveControlBlocker, EffectiveControlResumeOption, EffectiveSessionControl, 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, GetWorkspaceCaptureFileResponse, GetWorkspaceCaptureResponse, GitChangedPayload, GitCommit, GitCredentialBindingId, GitCredentialProvider, GitCredentialRepositoryRef, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHubAppApiPort, GitHubAppInfo, GitHubAppManifestCreate, GitHubInstallationBinding, type GitHubInstallationSummary, GitHubRepositoriesResponse, GitHubRepository, type GitHubRepositoryPermissions, GitHubRepositoryScope, type GitHubUserInstallationAccess, type GitHubUserRepositoryAccess, GitLogRequest, GitLogResponse, GitRepositoryAccess, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, HostEventExport, HostEventExportBatch, type HostEventSink, HostExportConsumerId, HostExportCursor, HostExportInitiator, HostExportInitiatorContext, HostSessionEvent, HostUsageEvent, HostUsageExport, HostUsageExportBatch, type HostUsageSink, HumanInputAnswer, HumanInputOption, HumanInputQuestion, HumanInputQuestionKind, HumanInputRequestStatus, HumanInputResponse, IntegrationClientMetadata, KnowledgeMemory, KnowledgeMemoryKind, KnowledgeMemorySearchRequest, KnowledgeMemoryStatus, KnowledgeSourceKind, KnowledgeSourceRef, LimitAction, LimitDecision, LineageNode, ListConnectionsResponse, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpConnectionResourceScope, type McpCredentialAuthNeededReason, type McpCredentialResolution, type McpCredentialsRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, MoveSessionQueueItemRequest, OAuthStartRequest, OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OPENGENI_HOST_EXPORT_SCHEMA_REVISION, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, ProposeRigChangeRequest, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, RequestHumanInputToolInput, type ResolveSessionAuthorizationListScopeInput, type ResolveSessionEventTypeFiltersInput, ResourceMountPathError, ResourceRef, ResourceRefConflictError, RevokeEnrollmentResponse, Rig, RigChange, RigChangeKind, RigChangeStatus, RigChangeVerification, RigCheck, RigCheckResult, RigDefinitionEditPayload, RigSetupAppendPayload, RigVerificationHealth, RigVersion, type RunCredentialAuthNeeded, type RunCredentialFile, type RunCredentialRedaction, type RunCredentialsRequest, type RunCredentialsResolution, SESSION_AUTHORIZATION_LIST_SCOPE_MAX_IDS, SESSION_EVENT_CLIENT_EVENT_ID_MAX_BYTES, SESSION_EVENT_DUPLICATE_REASON_MAX_BYTES, SESSION_EVENT_ENVELOPE_MAX_BYTES, SESSION_EVENT_PAYLOAD_MAX_BYTES, SESSION_EVENT_RAW_DELTA_TYPES, SESSION_EVENT_SEMANTIC_CLASS_TYPES, SESSION_EVENT_TURN_ASSOCIATION_MAX_BYTES, SESSION_EVENT_TYPE_MAX_BYTES, SESSION_OPERATION_KEY_MAX_CHARS, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, SaveComposerDraftRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, ServiceTurnInitiator, ServiceTurnInitiatorContext, Session, SessionAuthorizationActor, SessionAuthorizationDecision, SessionAuthorizationListScope, SessionAuthorizationOperation, type SessionAuthorizationPort, SessionAuthorizationSurface, SessionAuthorizationTarget, SessionBusMessage, SessionCapabilities, SessionCommandReceipt, SessionControlRequest, SessionControlResponse, SessionControlState, SessionEvent, type SessionEventBoundarySurface, type SessionEventJsonMeasurement, type SessionEventMediaPreview, SessionEventPayloadMode, type SessionEventPayloadTruncation, SessionEventReadDirection, SessionEventReadMode, SessionEventSemanticClass, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionHumanInputRequest, SessionLineageResponse, SessionListResponse, SessionMcpCredentialUpdateInput, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdatePayload, SessionSystemUpdateState, SessionTurn, SessionTurnSource, SessionTurnStatus, SetVariableSetVariableRequest, SetWorkspaceDefaultRigRequest, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, SteerSessionMessageRequest, SteerSessionMessageResponse, SteerSessionQueueItemRequest, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SubmitHumanInputResponseRequest, SwapActiveSandboxRequest, SwapActiveSandboxResponse, SystemUpdateClassification, TERMINAL_STREAM_PORT, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TranscriptionErrorCode, TranscriptionEvent, TranscriptionResultMetadata, TranscriptionSpeaker, TranscriptionTimeSpan, TranscriptionWord, TriggerScheduledTaskRequest, TurnInitiator, TurnInitiatorContext, UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionPinRequest, UpdateSessionRequest, UpdateVariableSetRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceModelPolicyRequest, UpdateWorkspaceRequest, UpdateWorkspaceSettingsRequest, UsageEvent, UsageEventType, UsageLimitsMode, VariableSet, VariableSetVariableMetadata, VariableSetVariableName, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, WORKSPACE_CONTROL_ACTOR_MAX_BYTES, WORKSPACE_CONTROL_EVENT_MAX_BYTES, WORKSPACE_CONTROL_REASON_MAX_BYTES, Workspace, WorkspaceCaptureDegradedReason, WorkspaceCaptureFile, WorkspaceCaptureManifest, WorkspaceCaptureRepo, WorkspaceCaptureSignedUrl, WorkspaceCaptureStats, type WorkspaceControlBoundarySurface, WorkspaceControlEvent, WorkspaceControlEventTruncation, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceInferenceControlRequest, WorkspaceInferenceControlResponse, WorkspaceInferenceState, WorkspaceMember, WorkspaceMemorySearchMode, WorkspaceMemorySearchRequest, WorkspaceMemorySearchResponse, WorkspaceMemorySearchResult, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, WorkspaceTranscriptionPolicy, WorkspaceTranscriptionTarget, approvalIdentifier, approximateSessionEventTokens, assertUniqueResourceMountPaths, boundSessionEvent, boundSessionEventPayload, boundWorkspaceControlEvent, defaultRepositoryMountPath, evaluateWorkspaceModelPolicy, gitCredentialBindingIdForRepository, gitCredentialProviderForRepository, isClearedRunStateBlob, measureSessionEventJson, mergeResourceRefs, mergeToolRefs, normalizeRepositorySubpath, normalizeResourceMountPath, prefixedMcpToolName, reasoningEffortForMetadata, resolveSessionEventTypeFilters, resolveWorkspaceMemoryEnabled, resourceIdentityKey, resourceMountPath, resourceMountPathCollisionKey, sessionEventJsonBytes, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken, workspaceControlUtf8Bytes };
|
|
12392
|
+
export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, ApiKey, AttachViewerRequest, type AuthorizeSessionInput, BillingBalance, BillingMode, type BoundSessionEventOptions, type BoundSessionEventPayloadOptions, type BoundWorkspaceControlEventOptions, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CapabilityCatalogAuthKind, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityCatalogTier, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, ComposerDraft, ConnectionCredentialBundle, type ConnectionCredentialsPort, ConnectionKind, ConnectionMetadata, ConnectionResponse, ConnectionStatus, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateKnowledgeMemoryRequest, CreateRigRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSessionResponse, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateVariableSetRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, CredentialAuthNeededPayload, type CredentialAuthNeededReason, DEFAULT_FIRST_PARTY_MCP_PERMISSIONS, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeleteSessionQueueItemRequest, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchMode, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EditSessionQueueItemRequest, EffectiveControlBlocker, EffectiveControlResumeOption, EffectiveSessionControl, 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, GetWorkspaceCaptureFileResponse, GetWorkspaceCaptureResponse, GitChangedPayload, GitCommit, GitCredentialBindingId, GitCredentialProvider, GitCredentialRepositoryRef, type GitCredentialTransport, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHttpBrokerRepositoryRoute, type GitHubAppApiPort, GitHubAppInfo, GitHubAppManifestCreate, GitHubInstallationBinding, type GitHubInstallationSummary, GitHubRepositoriesResponse, GitHubRepository, type GitHubRepositoryPermissions, GitHubRepositoryScope, type GitHubUserInstallationAccess, type GitHubUserRepositoryAccess, GitLogRequest, GitLogResponse, GitRepositoryAccess, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, HostEventExport, HostEventExportBatch, type HostEventSink, HostExportConsumerId, HostExportCursor, HostExportInitiator, HostExportInitiatorContext, HostSessionEvent, HostUsageEvent, HostUsageExport, HostUsageExportBatch, type HostUsageSink, HumanInputAnswer, HumanInputOption, HumanInputQuestion, HumanInputQuestionKind, HumanInputRequestStatus, HumanInputResponse, IntegrationClientMetadata, KnowledgeMemory, KnowledgeMemoryKind, KnowledgeMemorySearchRequest, KnowledgeMemoryStatus, KnowledgeSourceKind, KnowledgeSourceRef, LimitAction, LimitDecision, LineageNode, ListConnectionsResponse, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpConnectionResourceScope, type McpCredentialAuthNeededReason, type McpCredentialResolution, type McpCredentialsRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, ModelAvailabilityV1, ModelBillingAttributionV1, ModelCapabilitiesV1, ModelCapabilityStateV1, ModelCapabilitySupportV1, ModelCredentialReadinessV1, ModelCredentialSourceV1, ModelPricingScheduleV1, ModelPricingV1, MoveSessionQueueItemRequest, OAuthStartRequest, OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OPENGENI_HOST_EXPORT_SCHEMA_REVISION, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, ProposeRigChangeRequest, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, RETAINED_OUTPUT_RECEIPT_MAX_BYTES, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, RequestHumanInputToolInput, type ResolveSessionAuthorizationListScopeInput, type ResolveSessionEventTypeFiltersInput, ResourceMountPathError, ResourceRef, ResourceRefConflictError, type RetainedArtifactFileInput, type RetainedArtifactMetadata, RetainedArtifactMetadataSchema, type RetainedArtifactReference, RetainedArtifactReferenceSchema, type RetainedArtifactUnavailable, RetainedArtifactUnavailableSchema, type RetainedOutputAvailableEvidence, type RetainedOutputEvidence, RetainedOutputEvidenceSchema, RetainedOutputKind, type RetainedOutputRangeResolution, type RetainedOutputResolvedRange, RetainedOutputUnavailableReason, RevokeEnrollmentResponse, Rig, RigChange, RigChangeKind, RigChangeStatus, RigChangeVerification, RigCheck, RigCheckResult, RigDefinitionEditPayload, RigSetupAppendPayload, RigVerificationHealth, RigVersion, type RunCredentialAuthNeeded, type RunCredentialFile, type RunCredentialRedaction, type RunCredentialsRequest, type RunCredentialsResolution, SESSION_AUTHORIZATION_LIST_SCOPE_MAX_IDS, SESSION_EFFECTIVE_TOOL_POLICY_ID_LIMIT, SESSION_EFFECTIVE_TOOL_POLICY_ID_MAX_LENGTH, SESSION_EVENT_CLIENT_EVENT_ID_MAX_BYTES, SESSION_EVENT_DUPLICATE_REASON_MAX_BYTES, SESSION_EVENT_ENVELOPE_MAX_BYTES, SESSION_EVENT_PAYLOAD_MAX_BYTES, SESSION_EVENT_RAW_DELTA_TYPES, SESSION_EVENT_SEMANTIC_CLASS_TYPES, SESSION_EVENT_TURN_ASSOCIATION_MAX_BYTES, SESSION_EVENT_TYPE_MAX_BYTES, SESSION_MCP_APPROVAL_POLICY_MAX_BYTES, SESSION_MCP_APPROVAL_POLICY_MAX_TOOL_NAMES, SESSION_MCP_APPROVAL_TOOL_NAME_MAX_BYTES, SESSION_MCP_SERVERS_MAX, SESSION_OPERATION_KEY_MAX_CHARS, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, SaveComposerDraftRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, ServiceTurnInitiator, ServiceTurnInitiatorContext, Session, SessionAuthorizationActor, SessionAuthorizationDecision, SessionAuthorizationListScope, SessionAuthorizationOperation, type SessionAuthorizationPort, SessionAuthorizationSurface, SessionAuthorizationTarget, SessionBusMessage, SessionCapabilities, SessionCommandReceipt, SessionControlRequest, SessionControlResponse, SessionControlState, SessionEffectiveToolPolicy, SessionEvent, type SessionEventBoundarySurface, type SessionEventCompactResult, type SessionEventJsonMeasurement, SessionEventLatestClass, type SessionEventMediaPreview, SessionEventPayloadMode, type SessionEventPayloadTruncation, SessionEventReadDirection, SessionEventReadMode, SessionEventResultMode, SessionEventSemanticClass, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionHumanInputRequest, SessionLineageResponse, SessionListResponse, SessionMcpApprovalPolicy, SessionMcpCredentialUpdateInput, SessionMcpServerId, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdatePayload, SessionSystemUpdateState, SessionToolPolicy, SessionTurn, SessionTurnSource, SessionTurnStatus, SetVariableSetVariableRequest, SetWorkspaceDefaultRigRequest, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, SteerSessionMessageRequest, SteerSessionMessageResponse, SteerSessionQueueItemRequest, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SubmitHumanInputResponseRequest, SwapActiveSandboxRequest, SwapActiveSandboxResponse, SystemUpdateClassification, TERMINAL_STREAM_PORT, TURN_EXECUTION_POLICY_METADATA_KEY, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TranscriptionErrorCode, TranscriptionEvent, TranscriptionResultMetadata, TranscriptionSpeaker, TranscriptionTimeSpan, TranscriptionWord, TriggerScheduledTaskRequest, TurnExecutionModelSourceV1, type TurnExecutionPolicyReadV1, TurnExecutionPolicyV1, TurnExecutionReasoningSourceV1, TurnInitiator, TurnInitiatorContext, UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionMcpApprovalPolicyRequest, UpdateSessionMcpApprovalPolicyResponse, UpdateSessionPinRequest, UpdateSessionRequest, UpdateVariableSetRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceModelPolicyRequest, UpdateWorkspaceRequest, UpdateWorkspaceSettingsRequest, UsageEvent, UsageEventType, UsageLimitsMode, VariableSet, VariableSetVariableMetadata, VariableSetVariableName, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, WORKSPACE_CONTROL_ACTOR_MAX_BYTES, WORKSPACE_CONTROL_EVENT_MAX_BYTES, WORKSPACE_CONTROL_REASON_MAX_BYTES, Workspace, WorkspaceCaptureDegradedReason, WorkspaceCaptureFile, WorkspaceCaptureManifest, WorkspaceCaptureRepo, WorkspaceCaptureSignedUrl, WorkspaceCaptureStats, type WorkspaceControlBoundarySurface, WorkspaceControlEvent, WorkspaceControlEventTruncation, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceInferenceControlRequest, WorkspaceInferenceControlResponse, WorkspaceInferenceState, WorkspaceMember, WorkspaceMemorySearchMode, WorkspaceMemorySearchRequest, WorkspaceMemorySearchResponse, WorkspaceMemorySearchResult, WorkspaceModelCatalogModel, WorkspaceModelCatalogResponse, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, WorkspaceTranscriptionPolicy, WorkspaceTranscriptionTarget, approvalIdentifier, approximateSessionEventTokens, assertUniqueResourceMountPaths, boundSessionEvent, boundSessionEventPayload, boundWorkspaceControlEvent, capabilityCatalogItemIsTrustedForExposure, compactSessionEventResult, defaultRepositoryMountPath, evaluateWorkspaceModelPolicy, gitCredentialBindingIdForRepository, gitCredentialProviderForRepository, isClearedRunStateBlob, measureSessionEventJson, mergeResourceRefs, mergeToolRefs, metadataWithTurnExecutionPolicyV1, normalizeRepositorySubpath, normalizeResourceMountPath, prefixedMcpToolName, readTurnExecutionPolicyV1, reasoningEffortForMetadata, resolveRetainedOutputRange, resolveSessionEventTypeFilters, resolveWorkspaceMemoryEnabled, resourceIdentityKey, resourceMountPath, resourceMountPathCollisionKey, retainedArtifactReferenceFromFile, retainedOutputUnavailable, sessionEventJsonBytes, sessionEventLatestClassToSemanticClass, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, turnExecutionPolicyAuditMetadata, validateRetainedOutputEvidence, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken, workspaceControlUtf8Bytes };
|