@spotpatch/shared 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotation-Cz-NNgR4.d.cts +102 -0
- package/dist/annotation-Cz-NNgR4.d.ts +102 -0
- package/dist/chunk-CLQ6MIJB.js +586 -0
- package/dist/chunk-CLQ6MIJB.js.map +1 -0
- package/dist/chunk-EWJTKNL4.js +90 -0
- package/dist/chunk-EWJTKNL4.js.map +1 -0
- package/dist/{chunk-JGOIBOFI.js → chunk-FPDSZDP2.js} +16 -2
- package/dist/chunk-FPDSZDP2.js.map +1 -0
- package/dist/{chunk-2LVIH7OA.js → chunk-IX6MSCK6.js} +6 -2
- package/dist/chunk-IX6MSCK6.js.map +1 -0
- package/dist/{chunk-JU5HIWX7.js → chunk-JTZFOTPT.js} +9 -174
- package/dist/chunk-JTZFOTPT.js.map +1 -0
- package/dist/chunk-R6QJFNT2.js +195 -0
- package/dist/chunk-R6QJFNT2.js.map +1 -0
- package/dist/contextual-ask-BpbkpFFf.d.cts +1476 -0
- package/dist/contextual-ask-BpbkpFFf.d.ts +1476 -0
- package/dist/contextual-ask-browser.cjs +201 -0
- package/dist/contextual-ask-browser.cjs.map +1 -0
- package/dist/contextual-ask-browser.d.cts +31 -0
- package/dist/contextual-ask-browser.d.ts +31 -0
- package/dist/contextual-ask-browser.js +66 -0
- package/dist/contextual-ask-browser.js.map +1 -0
- package/dist/contextual-ask-node.cjs +971 -0
- package/dist/contextual-ask-node.cjs.map +1 -0
- package/dist/contextual-ask-node.d.cts +14 -0
- package/dist/contextual-ask-node.d.ts +14 -0
- package/dist/contextual-ask-node.js +122 -0
- package/dist/contextual-ask-node.js.map +1 -0
- package/dist/{data-flow-runtime-BelOgo8s.d.ts → data-flow-runtime-DhWpQoik.d.ts} +26 -13
- package/dist/{data-flow-runtime-oq9m21IP.d.cts → data-flow-runtime-w43iwvGA.d.cts} +26 -13
- package/dist/data-flow-runtime.cjs +2 -0
- package/dist/data-flow-runtime.cjs.map +1 -1
- package/dist/data-flow-runtime.d.cts +2 -2
- package/dist/data-flow-runtime.d.ts +2 -2
- package/dist/data-flow-runtime.js +1 -1
- package/dist/{endpoints-GedF44M2.d.cts → endpoints-O3ohYyAo.d.cts} +7 -1
- package/dist/{endpoints-GedF44M2.d.ts → endpoints-O3ohYyAo.d.ts} +7 -1
- package/dist/error-code-DRz2eqcB.d.cts +63 -0
- package/dist/error-code-DRz2eqcB.d.ts +63 -0
- package/dist/external-agent-node.cjs +320 -141
- package/dist/external-agent-node.cjs.map +1 -1
- package/dist/external-agent-node.d.cts +43 -27
- package/dist/external-agent-node.d.ts +43 -27
- package/dist/external-agent-node.js +174 -20
- package/dist/external-agent-node.js.map +1 -1
- package/dist/{external-handoff-BNUyMfNb.d.ts → external-handoff-5zHu-fz2.d.ts} +41 -131
- package/dist/{external-handoff-BNUyMfNb.d.cts → external-handoff-DeiIvR-2.d.cts} +41 -131
- package/dist/external-handoff-browser.cjs +7 -1
- package/dist/external-handoff-browser.cjs.map +1 -1
- package/dist/external-handoff-browser.d.cts +4 -3
- package/dist/external-handoff-browser.d.ts +4 -3
- package/dist/external-handoff-browser.js +2 -2
- package/dist/index.cjs +1170 -426
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +138 -178
- package/dist/index.d.ts +138 -178
- package/dist/index.js +116 -20
- package/dist/index.js.map +1 -1
- package/package.json +29 -2
- package/dist/chunk-2LVIH7OA.js.map +0 -1
- package/dist/chunk-JGOIBOFI.js.map +0 -1
- package/dist/chunk-JU5HIWX7.js.map +0 -1
- package/dist/{external-agent-control-BMoSq_xI.d.cts → external-agent-control-C79Nl85y.d.cts} +49 -49
- package/dist/{external-agent-control-BMoSq_xI.d.ts → external-agent-control-C79Nl85y.d.ts} +49 -49
|
@@ -0,0 +1,1476 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CONTEXTUAL_ASK_SCHEMA_VERSION: 1;
|
|
4
|
+
declare const CONTEXTUAL_ASK_LIMITS: Readonly<{
|
|
5
|
+
readonly maximumTargets: 20;
|
|
6
|
+
readonly maximumQuestionCharacters: 4000;
|
|
7
|
+
readonly maximumAnswerCharacters: 40000;
|
|
8
|
+
readonly maximumAnswerBlocks: 40;
|
|
9
|
+
readonly maximumSources: 64;
|
|
10
|
+
readonly maximumReadFiles: 32;
|
|
11
|
+
readonly maximumReadBytesPerFile: number;
|
|
12
|
+
readonly maximumReadBytesTotal: number;
|
|
13
|
+
readonly maximumToolCalls: 48;
|
|
14
|
+
readonly maximumModelTurns: 12;
|
|
15
|
+
readonly jobTimeoutMs: 300000;
|
|
16
|
+
readonly resultTtlMs: 900000;
|
|
17
|
+
readonly maximumActiveJobsPerSession: 1;
|
|
18
|
+
readonly maximumRetainedResultsPerSession: 1;
|
|
19
|
+
readonly maximumRetainedEvents: 256;
|
|
20
|
+
readonly maximumEventSubscribers: 4;
|
|
21
|
+
readonly eventHeartbeatMs: 15000;
|
|
22
|
+
readonly maximumRequestBodyBytes: number;
|
|
23
|
+
readonly maximumSearchQueryCharacters: 256;
|
|
24
|
+
readonly maximumSearchResults: 64;
|
|
25
|
+
readonly maximumSearchPreviewCharacters: 500;
|
|
26
|
+
readonly capabilityTimeoutMs: 30000;
|
|
27
|
+
readonly maximumIdCharacters: 128;
|
|
28
|
+
readonly maximumProfileIdCharacters: 64;
|
|
29
|
+
readonly maximumLabelCharacters: 256;
|
|
30
|
+
readonly maximumRelativePathCharacters: 1024;
|
|
31
|
+
readonly maximumLanguageCharacters: 64;
|
|
32
|
+
readonly maximumPhaseMessageCharacters: 1024;
|
|
33
|
+
readonly maximumExecutors: 32;
|
|
34
|
+
readonly maximumModels: 800;
|
|
35
|
+
readonly contentHashHexCharacters: 64;
|
|
36
|
+
}>;
|
|
37
|
+
declare const CONTEXTUAL_ASK_EXECUTOR_KINDS: readonly ["configured-key", "managed-codex"];
|
|
38
|
+
type ContextualAskExecutorKind = (typeof CONTEXTUAL_ASK_EXECUTOR_KINDS)[number];
|
|
39
|
+
declare const CONTEXTUAL_ASK_EXECUTOR_STATES: readonly ["ready", "degraded", "unavailable"];
|
|
40
|
+
type ContextualAskExecutorState = (typeof CONTEXTUAL_ASK_EXECUTOR_STATES)[number];
|
|
41
|
+
declare const ASK_JOB_STATUSES: readonly ["queued", "authorizing", "running", "cancelling", "answered", "cancelled", "failed"];
|
|
42
|
+
type AskJobStatus = (typeof ASK_JOB_STATUSES)[number];
|
|
43
|
+
declare const ASK_ANSWER_WARNING_CODES: readonly ["insufficient-evidence", "partial-context", "source-truncated", "source-stale"];
|
|
44
|
+
type AskAnswerWarningCode = (typeof ASK_ANSWER_WARNING_CODES)[number];
|
|
45
|
+
/** Warnings an executor may declare from its own evidence assessment. */
|
|
46
|
+
declare const ASK_EXECUTOR_ANSWER_WARNING_CODES: readonly ["insufficient-evidence", "partial-context"];
|
|
47
|
+
type AskExecutorAnswerWarningCode = (typeof ASK_EXECUTOR_ANSWER_WARNING_CODES)[number];
|
|
48
|
+
declare const ASK_READ_ACTIVITY_STATES: readonly ["started", "succeeded", "failed"];
|
|
49
|
+
type AskReadActivityState = (typeof ASK_READ_ACTIVITY_STATES)[number];
|
|
50
|
+
declare const ASK_FILE_COUNT_BUCKETS: readonly ["one", "few", "many"];
|
|
51
|
+
type AskFileCountBucket = (typeof ASK_FILE_COUNT_BUCKETS)[number];
|
|
52
|
+
declare const ASK_SOURCE_CONFIDENCES: readonly ["exact", "probable", "approximate"];
|
|
53
|
+
type AskSourceConfidence = (typeof ASK_SOURCE_CONFIDENCES)[number];
|
|
54
|
+
declare const CONTEXTUAL_ASK_PERMISSION_PROFILE: "spotpatch-ask-readonly";
|
|
55
|
+
|
|
56
|
+
declare const contextualAskExecutorPreferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
+
kind: z.ZodLiteral<"configured-key">;
|
|
58
|
+
providerProfileId: z.ZodString;
|
|
59
|
+
modelProfileId: z.ZodString;
|
|
60
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
61
|
+
kind: z.ZodLiteral<"managed-codex">;
|
|
62
|
+
}, z.core.$strict>], "kind">;
|
|
63
|
+
declare const contextualAskOptionsSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
64
|
+
defaultExecutor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
|
+
kind: z.ZodLiteral<"configured-key">;
|
|
66
|
+
providerProfileId: z.ZodString;
|
|
67
|
+
modelProfileId: z.ZodString;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"managed-codex">;
|
|
70
|
+
}, z.core.$strict>], "kind">>;
|
|
71
|
+
}, z.core.$strict>]>;
|
|
72
|
+
declare const spotSelectionTargetSchema: z.ZodObject<{
|
|
73
|
+
source: z.ZodObject<{
|
|
74
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
76
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
origin: z.ZodEnum<{
|
|
79
|
+
"jsx-host": "jsx-host";
|
|
80
|
+
"astro-host": "astro-host";
|
|
81
|
+
"react-fiber": "react-fiber";
|
|
82
|
+
"dom-ancestor": "dom-ancestor";
|
|
83
|
+
none: "none";
|
|
84
|
+
}>;
|
|
85
|
+
confidence: z.ZodEnum<{
|
|
86
|
+
exact: "exact";
|
|
87
|
+
probable: "probable";
|
|
88
|
+
approximate: "approximate";
|
|
89
|
+
unknown: "unknown";
|
|
90
|
+
}>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
react: z.ZodObject<{
|
|
93
|
+
supported: z.ZodBoolean;
|
|
94
|
+
version: z.ZodOptional<z.ZodString>;
|
|
95
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
96
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
97
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
98
|
+
componentStack: z.ZodArray<z.ZodString>;
|
|
99
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
101
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
102
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
origin: z.ZodEnum<{
|
|
105
|
+
"jsx-host": "jsx-host";
|
|
106
|
+
"astro-host": "astro-host";
|
|
107
|
+
"react-fiber": "react-fiber";
|
|
108
|
+
"dom-ancestor": "dom-ancestor";
|
|
109
|
+
none: "none";
|
|
110
|
+
}>;
|
|
111
|
+
confidence: z.ZodEnum<{
|
|
112
|
+
exact: "exact";
|
|
113
|
+
probable: "probable";
|
|
114
|
+
approximate: "approximate";
|
|
115
|
+
unknown: "unknown";
|
|
116
|
+
}>;
|
|
117
|
+
}, z.core.$strict>>;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
element: z.ZodObject<{
|
|
120
|
+
tagName: z.ZodString;
|
|
121
|
+
selector: z.ZodString;
|
|
122
|
+
sanitizedHtml: z.ZodString;
|
|
123
|
+
textPreview: z.ZodOptional<z.ZodString>;
|
|
124
|
+
role: z.ZodOptional<z.ZodString>;
|
|
125
|
+
rect: z.ZodObject<{
|
|
126
|
+
x: z.ZodNumber;
|
|
127
|
+
y: z.ZodNumber;
|
|
128
|
+
width: z.ZodNumber;
|
|
129
|
+
height: z.ZodNumber;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
styles: z.ZodObject<{
|
|
133
|
+
classNames: z.ZodArray<z.ZodString>;
|
|
134
|
+
inlineStyle: z.ZodOptional<z.ZodString>;
|
|
135
|
+
matchedRules: z.ZodArray<z.ZodObject<{
|
|
136
|
+
selector: z.ZodString;
|
|
137
|
+
declarations: z.ZodString;
|
|
138
|
+
source: z.ZodOptional<z.ZodString>;
|
|
139
|
+
media: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
computed: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
142
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
145
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
relativePath: z.ZodString;
|
|
147
|
+
language: z.ZodEnum<{
|
|
148
|
+
tsx: "tsx";
|
|
149
|
+
jsx: "jsx";
|
|
150
|
+
astro: "astro";
|
|
151
|
+
}>;
|
|
152
|
+
startLine: z.ZodNumber;
|
|
153
|
+
endLine: z.ZodNumber;
|
|
154
|
+
excerpt: z.ZodString;
|
|
155
|
+
boundary: z.ZodEnum<{
|
|
156
|
+
component: "component";
|
|
157
|
+
"nearby-lines": "nearby-lines";
|
|
158
|
+
}>;
|
|
159
|
+
}, z.core.$strict>>;
|
|
160
|
+
targetId: z.ZodString;
|
|
161
|
+
page: z.ZodObject<{
|
|
162
|
+
url: z.ZodString;
|
|
163
|
+
pathname: z.ZodString;
|
|
164
|
+
title: z.ZodString;
|
|
165
|
+
viewportWidth: z.ZodNumber;
|
|
166
|
+
viewportHeight: z.ZodNumber;
|
|
167
|
+
devicePixelRatio: z.ZodNumber;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
}, z.core.$strict>;
|
|
170
|
+
declare const spotSelectionContextSchema: z.ZodObject<{
|
|
171
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
172
|
+
selectionId: z.ZodString;
|
|
173
|
+
locale: z.ZodEnum<{
|
|
174
|
+
"en-US": "en-US";
|
|
175
|
+
"zh-CN": "zh-CN";
|
|
176
|
+
}>;
|
|
177
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
178
|
+
source: z.ZodObject<{
|
|
179
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
180
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
181
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
origin: z.ZodEnum<{
|
|
184
|
+
"jsx-host": "jsx-host";
|
|
185
|
+
"astro-host": "astro-host";
|
|
186
|
+
"react-fiber": "react-fiber";
|
|
187
|
+
"dom-ancestor": "dom-ancestor";
|
|
188
|
+
none: "none";
|
|
189
|
+
}>;
|
|
190
|
+
confidence: z.ZodEnum<{
|
|
191
|
+
exact: "exact";
|
|
192
|
+
probable: "probable";
|
|
193
|
+
approximate: "approximate";
|
|
194
|
+
unknown: "unknown";
|
|
195
|
+
}>;
|
|
196
|
+
}, z.core.$strict>;
|
|
197
|
+
react: z.ZodObject<{
|
|
198
|
+
supported: z.ZodBoolean;
|
|
199
|
+
version: z.ZodOptional<z.ZodString>;
|
|
200
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
201
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
202
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
203
|
+
componentStack: z.ZodArray<z.ZodString>;
|
|
204
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
206
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
207
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
origin: z.ZodEnum<{
|
|
210
|
+
"jsx-host": "jsx-host";
|
|
211
|
+
"astro-host": "astro-host";
|
|
212
|
+
"react-fiber": "react-fiber";
|
|
213
|
+
"dom-ancestor": "dom-ancestor";
|
|
214
|
+
none: "none";
|
|
215
|
+
}>;
|
|
216
|
+
confidence: z.ZodEnum<{
|
|
217
|
+
exact: "exact";
|
|
218
|
+
probable: "probable";
|
|
219
|
+
approximate: "approximate";
|
|
220
|
+
unknown: "unknown";
|
|
221
|
+
}>;
|
|
222
|
+
}, z.core.$strict>>;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
element: z.ZodObject<{
|
|
225
|
+
tagName: z.ZodString;
|
|
226
|
+
selector: z.ZodString;
|
|
227
|
+
sanitizedHtml: z.ZodString;
|
|
228
|
+
textPreview: z.ZodOptional<z.ZodString>;
|
|
229
|
+
role: z.ZodOptional<z.ZodString>;
|
|
230
|
+
rect: z.ZodObject<{
|
|
231
|
+
x: z.ZodNumber;
|
|
232
|
+
y: z.ZodNumber;
|
|
233
|
+
width: z.ZodNumber;
|
|
234
|
+
height: z.ZodNumber;
|
|
235
|
+
}, z.core.$strict>;
|
|
236
|
+
}, z.core.$strict>;
|
|
237
|
+
styles: z.ZodObject<{
|
|
238
|
+
classNames: z.ZodArray<z.ZodString>;
|
|
239
|
+
inlineStyle: z.ZodOptional<z.ZodString>;
|
|
240
|
+
matchedRules: z.ZodArray<z.ZodObject<{
|
|
241
|
+
selector: z.ZodString;
|
|
242
|
+
declarations: z.ZodString;
|
|
243
|
+
source: z.ZodOptional<z.ZodString>;
|
|
244
|
+
media: z.ZodOptional<z.ZodString>;
|
|
245
|
+
}, z.core.$strict>>;
|
|
246
|
+
computed: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
247
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
250
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
relativePath: z.ZodString;
|
|
252
|
+
language: z.ZodEnum<{
|
|
253
|
+
tsx: "tsx";
|
|
254
|
+
jsx: "jsx";
|
|
255
|
+
astro: "astro";
|
|
256
|
+
}>;
|
|
257
|
+
startLine: z.ZodNumber;
|
|
258
|
+
endLine: z.ZodNumber;
|
|
259
|
+
excerpt: z.ZodString;
|
|
260
|
+
boundary: z.ZodEnum<{
|
|
261
|
+
component: "component";
|
|
262
|
+
"nearby-lines": "nearby-lines";
|
|
263
|
+
}>;
|
|
264
|
+
}, z.core.$strict>>;
|
|
265
|
+
targetId: z.ZodString;
|
|
266
|
+
page: z.ZodObject<{
|
|
267
|
+
url: z.ZodString;
|
|
268
|
+
pathname: z.ZodString;
|
|
269
|
+
title: z.ZodString;
|
|
270
|
+
viewportWidth: z.ZodNumber;
|
|
271
|
+
viewportHeight: z.ZodNumber;
|
|
272
|
+
devicePixelRatio: z.ZodNumber;
|
|
273
|
+
}, z.core.$strict>;
|
|
274
|
+
}, z.core.$strict>>;
|
|
275
|
+
createdAt: z.ZodISODateTime;
|
|
276
|
+
}, z.core.$strict>;
|
|
277
|
+
declare const askDraftOriginSchema: z.ZodObject<{
|
|
278
|
+
kind: z.ZodLiteral<"contextual-ask">;
|
|
279
|
+
askJobId: z.ZodString;
|
|
280
|
+
question: z.ZodString;
|
|
281
|
+
answerDigest: z.ZodString;
|
|
282
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
declare const spotAskTaskEnvelopeSchema: z.ZodObject<{
|
|
285
|
+
task: z.ZodObject<{
|
|
286
|
+
kind: z.ZodLiteral<"ask">;
|
|
287
|
+
question: z.ZodString;
|
|
288
|
+
}, z.core.$strict>;
|
|
289
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
290
|
+
taskId: z.ZodString;
|
|
291
|
+
selection: z.ZodObject<{
|
|
292
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
293
|
+
selectionId: z.ZodString;
|
|
294
|
+
locale: z.ZodEnum<{
|
|
295
|
+
"en-US": "en-US";
|
|
296
|
+
"zh-CN": "zh-CN";
|
|
297
|
+
}>;
|
|
298
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
299
|
+
source: z.ZodObject<{
|
|
300
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
301
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
302
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
origin: z.ZodEnum<{
|
|
305
|
+
"jsx-host": "jsx-host";
|
|
306
|
+
"astro-host": "astro-host";
|
|
307
|
+
"react-fiber": "react-fiber";
|
|
308
|
+
"dom-ancestor": "dom-ancestor";
|
|
309
|
+
none: "none";
|
|
310
|
+
}>;
|
|
311
|
+
confidence: z.ZodEnum<{
|
|
312
|
+
exact: "exact";
|
|
313
|
+
probable: "probable";
|
|
314
|
+
approximate: "approximate";
|
|
315
|
+
unknown: "unknown";
|
|
316
|
+
}>;
|
|
317
|
+
}, z.core.$strict>;
|
|
318
|
+
react: z.ZodObject<{
|
|
319
|
+
supported: z.ZodBoolean;
|
|
320
|
+
version: z.ZodOptional<z.ZodString>;
|
|
321
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
322
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
323
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
324
|
+
componentStack: z.ZodArray<z.ZodString>;
|
|
325
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
326
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
327
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
328
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
origin: z.ZodEnum<{
|
|
331
|
+
"jsx-host": "jsx-host";
|
|
332
|
+
"astro-host": "astro-host";
|
|
333
|
+
"react-fiber": "react-fiber";
|
|
334
|
+
"dom-ancestor": "dom-ancestor";
|
|
335
|
+
none: "none";
|
|
336
|
+
}>;
|
|
337
|
+
confidence: z.ZodEnum<{
|
|
338
|
+
exact: "exact";
|
|
339
|
+
probable: "probable";
|
|
340
|
+
approximate: "approximate";
|
|
341
|
+
unknown: "unknown";
|
|
342
|
+
}>;
|
|
343
|
+
}, z.core.$strict>>;
|
|
344
|
+
}, z.core.$strict>;
|
|
345
|
+
element: z.ZodObject<{
|
|
346
|
+
tagName: z.ZodString;
|
|
347
|
+
selector: z.ZodString;
|
|
348
|
+
sanitizedHtml: z.ZodString;
|
|
349
|
+
textPreview: z.ZodOptional<z.ZodString>;
|
|
350
|
+
role: z.ZodOptional<z.ZodString>;
|
|
351
|
+
rect: z.ZodObject<{
|
|
352
|
+
x: z.ZodNumber;
|
|
353
|
+
y: z.ZodNumber;
|
|
354
|
+
width: z.ZodNumber;
|
|
355
|
+
height: z.ZodNumber;
|
|
356
|
+
}, z.core.$strict>;
|
|
357
|
+
}, z.core.$strict>;
|
|
358
|
+
styles: z.ZodObject<{
|
|
359
|
+
classNames: z.ZodArray<z.ZodString>;
|
|
360
|
+
inlineStyle: z.ZodOptional<z.ZodString>;
|
|
361
|
+
matchedRules: z.ZodArray<z.ZodObject<{
|
|
362
|
+
selector: z.ZodString;
|
|
363
|
+
declarations: z.ZodString;
|
|
364
|
+
source: z.ZodOptional<z.ZodString>;
|
|
365
|
+
media: z.ZodOptional<z.ZodString>;
|
|
366
|
+
}, z.core.$strict>>;
|
|
367
|
+
computed: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
368
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
369
|
+
}, z.core.$strict>;
|
|
370
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
371
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
relativePath: z.ZodString;
|
|
373
|
+
language: z.ZodEnum<{
|
|
374
|
+
tsx: "tsx";
|
|
375
|
+
jsx: "jsx";
|
|
376
|
+
astro: "astro";
|
|
377
|
+
}>;
|
|
378
|
+
startLine: z.ZodNumber;
|
|
379
|
+
endLine: z.ZodNumber;
|
|
380
|
+
excerpt: z.ZodString;
|
|
381
|
+
boundary: z.ZodEnum<{
|
|
382
|
+
component: "component";
|
|
383
|
+
"nearby-lines": "nearby-lines";
|
|
384
|
+
}>;
|
|
385
|
+
}, z.core.$strict>>;
|
|
386
|
+
targetId: z.ZodString;
|
|
387
|
+
page: z.ZodObject<{
|
|
388
|
+
url: z.ZodString;
|
|
389
|
+
pathname: z.ZodString;
|
|
390
|
+
title: z.ZodString;
|
|
391
|
+
viewportWidth: z.ZodNumber;
|
|
392
|
+
viewportHeight: z.ZodNumber;
|
|
393
|
+
devicePixelRatio: z.ZodNumber;
|
|
394
|
+
}, z.core.$strict>;
|
|
395
|
+
}, z.core.$strict>>;
|
|
396
|
+
createdAt: z.ZodISODateTime;
|
|
397
|
+
}, z.core.$strict>;
|
|
398
|
+
createdAt: z.ZodISODateTime;
|
|
399
|
+
}, z.core.$strict>;
|
|
400
|
+
declare const spotChangeTaskEnvelopeSchema: z.ZodObject<{
|
|
401
|
+
task: z.ZodObject<{
|
|
402
|
+
kind: z.ZodLiteral<"change">;
|
|
403
|
+
instructions: z.ZodArray<z.ZodObject<{
|
|
404
|
+
targetId: z.ZodString;
|
|
405
|
+
instruction: z.ZodString;
|
|
406
|
+
}, z.core.$strict>>;
|
|
407
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
408
|
+
kind: z.ZodLiteral<"contextual-ask">;
|
|
409
|
+
askJobId: z.ZodString;
|
|
410
|
+
question: z.ZodString;
|
|
411
|
+
answerDigest: z.ZodString;
|
|
412
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
413
|
+
}, z.core.$strict>>;
|
|
414
|
+
}, z.core.$strict>;
|
|
415
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
416
|
+
taskId: z.ZodString;
|
|
417
|
+
selection: z.ZodObject<{
|
|
418
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
419
|
+
selectionId: z.ZodString;
|
|
420
|
+
locale: z.ZodEnum<{
|
|
421
|
+
"en-US": "en-US";
|
|
422
|
+
"zh-CN": "zh-CN";
|
|
423
|
+
}>;
|
|
424
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
425
|
+
source: z.ZodObject<{
|
|
426
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
427
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
428
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
429
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
430
|
+
origin: z.ZodEnum<{
|
|
431
|
+
"jsx-host": "jsx-host";
|
|
432
|
+
"astro-host": "astro-host";
|
|
433
|
+
"react-fiber": "react-fiber";
|
|
434
|
+
"dom-ancestor": "dom-ancestor";
|
|
435
|
+
none: "none";
|
|
436
|
+
}>;
|
|
437
|
+
confidence: z.ZodEnum<{
|
|
438
|
+
exact: "exact";
|
|
439
|
+
probable: "probable";
|
|
440
|
+
approximate: "approximate";
|
|
441
|
+
unknown: "unknown";
|
|
442
|
+
}>;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
react: z.ZodObject<{
|
|
445
|
+
supported: z.ZodBoolean;
|
|
446
|
+
version: z.ZodOptional<z.ZodString>;
|
|
447
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
448
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
449
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
450
|
+
componentStack: z.ZodArray<z.ZodString>;
|
|
451
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
452
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
453
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
454
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
origin: z.ZodEnum<{
|
|
457
|
+
"jsx-host": "jsx-host";
|
|
458
|
+
"astro-host": "astro-host";
|
|
459
|
+
"react-fiber": "react-fiber";
|
|
460
|
+
"dom-ancestor": "dom-ancestor";
|
|
461
|
+
none: "none";
|
|
462
|
+
}>;
|
|
463
|
+
confidence: z.ZodEnum<{
|
|
464
|
+
exact: "exact";
|
|
465
|
+
probable: "probable";
|
|
466
|
+
approximate: "approximate";
|
|
467
|
+
unknown: "unknown";
|
|
468
|
+
}>;
|
|
469
|
+
}, z.core.$strict>>;
|
|
470
|
+
}, z.core.$strict>;
|
|
471
|
+
element: z.ZodObject<{
|
|
472
|
+
tagName: z.ZodString;
|
|
473
|
+
selector: z.ZodString;
|
|
474
|
+
sanitizedHtml: z.ZodString;
|
|
475
|
+
textPreview: z.ZodOptional<z.ZodString>;
|
|
476
|
+
role: z.ZodOptional<z.ZodString>;
|
|
477
|
+
rect: z.ZodObject<{
|
|
478
|
+
x: z.ZodNumber;
|
|
479
|
+
y: z.ZodNumber;
|
|
480
|
+
width: z.ZodNumber;
|
|
481
|
+
height: z.ZodNumber;
|
|
482
|
+
}, z.core.$strict>;
|
|
483
|
+
}, z.core.$strict>;
|
|
484
|
+
styles: z.ZodObject<{
|
|
485
|
+
classNames: z.ZodArray<z.ZodString>;
|
|
486
|
+
inlineStyle: z.ZodOptional<z.ZodString>;
|
|
487
|
+
matchedRules: z.ZodArray<z.ZodObject<{
|
|
488
|
+
selector: z.ZodString;
|
|
489
|
+
declarations: z.ZodString;
|
|
490
|
+
source: z.ZodOptional<z.ZodString>;
|
|
491
|
+
media: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strict>>;
|
|
493
|
+
computed: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
494
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
495
|
+
}, z.core.$strict>;
|
|
496
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
497
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
498
|
+
relativePath: z.ZodString;
|
|
499
|
+
language: z.ZodEnum<{
|
|
500
|
+
tsx: "tsx";
|
|
501
|
+
jsx: "jsx";
|
|
502
|
+
astro: "astro";
|
|
503
|
+
}>;
|
|
504
|
+
startLine: z.ZodNumber;
|
|
505
|
+
endLine: z.ZodNumber;
|
|
506
|
+
excerpt: z.ZodString;
|
|
507
|
+
boundary: z.ZodEnum<{
|
|
508
|
+
component: "component";
|
|
509
|
+
"nearby-lines": "nearby-lines";
|
|
510
|
+
}>;
|
|
511
|
+
}, z.core.$strict>>;
|
|
512
|
+
targetId: z.ZodString;
|
|
513
|
+
page: z.ZodObject<{
|
|
514
|
+
url: z.ZodString;
|
|
515
|
+
pathname: z.ZodString;
|
|
516
|
+
title: z.ZodString;
|
|
517
|
+
viewportWidth: z.ZodNumber;
|
|
518
|
+
viewportHeight: z.ZodNumber;
|
|
519
|
+
devicePixelRatio: z.ZodNumber;
|
|
520
|
+
}, z.core.$strict>;
|
|
521
|
+
}, z.core.$strict>>;
|
|
522
|
+
createdAt: z.ZodISODateTime;
|
|
523
|
+
}, z.core.$strict>;
|
|
524
|
+
createdAt: z.ZodISODateTime;
|
|
525
|
+
}, z.core.$strict>;
|
|
526
|
+
declare const spotTaskEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
527
|
+
task: z.ZodObject<{
|
|
528
|
+
kind: z.ZodLiteral<"ask">;
|
|
529
|
+
question: z.ZodString;
|
|
530
|
+
}, z.core.$strict>;
|
|
531
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
532
|
+
taskId: z.ZodString;
|
|
533
|
+
selection: z.ZodObject<{
|
|
534
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
535
|
+
selectionId: z.ZodString;
|
|
536
|
+
locale: z.ZodEnum<{
|
|
537
|
+
"en-US": "en-US";
|
|
538
|
+
"zh-CN": "zh-CN";
|
|
539
|
+
}>;
|
|
540
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
541
|
+
source: z.ZodObject<{
|
|
542
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
543
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
544
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
545
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
546
|
+
origin: z.ZodEnum<{
|
|
547
|
+
"jsx-host": "jsx-host";
|
|
548
|
+
"astro-host": "astro-host";
|
|
549
|
+
"react-fiber": "react-fiber";
|
|
550
|
+
"dom-ancestor": "dom-ancestor";
|
|
551
|
+
none: "none";
|
|
552
|
+
}>;
|
|
553
|
+
confidence: z.ZodEnum<{
|
|
554
|
+
exact: "exact";
|
|
555
|
+
probable: "probable";
|
|
556
|
+
approximate: "approximate";
|
|
557
|
+
unknown: "unknown";
|
|
558
|
+
}>;
|
|
559
|
+
}, z.core.$strict>;
|
|
560
|
+
react: z.ZodObject<{
|
|
561
|
+
supported: z.ZodBoolean;
|
|
562
|
+
version: z.ZodOptional<z.ZodString>;
|
|
563
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
564
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
565
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
566
|
+
componentStack: z.ZodArray<z.ZodString>;
|
|
567
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
568
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
569
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
570
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
571
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
572
|
+
origin: z.ZodEnum<{
|
|
573
|
+
"jsx-host": "jsx-host";
|
|
574
|
+
"astro-host": "astro-host";
|
|
575
|
+
"react-fiber": "react-fiber";
|
|
576
|
+
"dom-ancestor": "dom-ancestor";
|
|
577
|
+
none: "none";
|
|
578
|
+
}>;
|
|
579
|
+
confidence: z.ZodEnum<{
|
|
580
|
+
exact: "exact";
|
|
581
|
+
probable: "probable";
|
|
582
|
+
approximate: "approximate";
|
|
583
|
+
unknown: "unknown";
|
|
584
|
+
}>;
|
|
585
|
+
}, z.core.$strict>>;
|
|
586
|
+
}, z.core.$strict>;
|
|
587
|
+
element: z.ZodObject<{
|
|
588
|
+
tagName: z.ZodString;
|
|
589
|
+
selector: z.ZodString;
|
|
590
|
+
sanitizedHtml: z.ZodString;
|
|
591
|
+
textPreview: z.ZodOptional<z.ZodString>;
|
|
592
|
+
role: z.ZodOptional<z.ZodString>;
|
|
593
|
+
rect: z.ZodObject<{
|
|
594
|
+
x: z.ZodNumber;
|
|
595
|
+
y: z.ZodNumber;
|
|
596
|
+
width: z.ZodNumber;
|
|
597
|
+
height: z.ZodNumber;
|
|
598
|
+
}, z.core.$strict>;
|
|
599
|
+
}, z.core.$strict>;
|
|
600
|
+
styles: z.ZodObject<{
|
|
601
|
+
classNames: z.ZodArray<z.ZodString>;
|
|
602
|
+
inlineStyle: z.ZodOptional<z.ZodString>;
|
|
603
|
+
matchedRules: z.ZodArray<z.ZodObject<{
|
|
604
|
+
selector: z.ZodString;
|
|
605
|
+
declarations: z.ZodString;
|
|
606
|
+
source: z.ZodOptional<z.ZodString>;
|
|
607
|
+
media: z.ZodOptional<z.ZodString>;
|
|
608
|
+
}, z.core.$strict>>;
|
|
609
|
+
computed: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
610
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
611
|
+
}, z.core.$strict>;
|
|
612
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
613
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
614
|
+
relativePath: z.ZodString;
|
|
615
|
+
language: z.ZodEnum<{
|
|
616
|
+
tsx: "tsx";
|
|
617
|
+
jsx: "jsx";
|
|
618
|
+
astro: "astro";
|
|
619
|
+
}>;
|
|
620
|
+
startLine: z.ZodNumber;
|
|
621
|
+
endLine: z.ZodNumber;
|
|
622
|
+
excerpt: z.ZodString;
|
|
623
|
+
boundary: z.ZodEnum<{
|
|
624
|
+
component: "component";
|
|
625
|
+
"nearby-lines": "nearby-lines";
|
|
626
|
+
}>;
|
|
627
|
+
}, z.core.$strict>>;
|
|
628
|
+
targetId: z.ZodString;
|
|
629
|
+
page: z.ZodObject<{
|
|
630
|
+
url: z.ZodString;
|
|
631
|
+
pathname: z.ZodString;
|
|
632
|
+
title: z.ZodString;
|
|
633
|
+
viewportWidth: z.ZodNumber;
|
|
634
|
+
viewportHeight: z.ZodNumber;
|
|
635
|
+
devicePixelRatio: z.ZodNumber;
|
|
636
|
+
}, z.core.$strict>;
|
|
637
|
+
}, z.core.$strict>>;
|
|
638
|
+
createdAt: z.ZodISODateTime;
|
|
639
|
+
}, z.core.$strict>;
|
|
640
|
+
createdAt: z.ZodISODateTime;
|
|
641
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
642
|
+
task: z.ZodObject<{
|
|
643
|
+
kind: z.ZodLiteral<"change">;
|
|
644
|
+
instructions: z.ZodArray<z.ZodObject<{
|
|
645
|
+
targetId: z.ZodString;
|
|
646
|
+
instruction: z.ZodString;
|
|
647
|
+
}, z.core.$strict>>;
|
|
648
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
649
|
+
kind: z.ZodLiteral<"contextual-ask">;
|
|
650
|
+
askJobId: z.ZodString;
|
|
651
|
+
question: z.ZodString;
|
|
652
|
+
answerDigest: z.ZodString;
|
|
653
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
654
|
+
}, z.core.$strict>>;
|
|
655
|
+
}, z.core.$strict>;
|
|
656
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
657
|
+
taskId: z.ZodString;
|
|
658
|
+
selection: z.ZodObject<{
|
|
659
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
660
|
+
selectionId: z.ZodString;
|
|
661
|
+
locale: z.ZodEnum<{
|
|
662
|
+
"en-US": "en-US";
|
|
663
|
+
"zh-CN": "zh-CN";
|
|
664
|
+
}>;
|
|
665
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
666
|
+
source: z.ZodObject<{
|
|
667
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
668
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
669
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
670
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
671
|
+
origin: z.ZodEnum<{
|
|
672
|
+
"jsx-host": "jsx-host";
|
|
673
|
+
"astro-host": "astro-host";
|
|
674
|
+
"react-fiber": "react-fiber";
|
|
675
|
+
"dom-ancestor": "dom-ancestor";
|
|
676
|
+
none: "none";
|
|
677
|
+
}>;
|
|
678
|
+
confidence: z.ZodEnum<{
|
|
679
|
+
exact: "exact";
|
|
680
|
+
probable: "probable";
|
|
681
|
+
approximate: "approximate";
|
|
682
|
+
unknown: "unknown";
|
|
683
|
+
}>;
|
|
684
|
+
}, z.core.$strict>;
|
|
685
|
+
react: z.ZodObject<{
|
|
686
|
+
supported: z.ZodBoolean;
|
|
687
|
+
version: z.ZodOptional<z.ZodString>;
|
|
688
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
689
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
690
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
691
|
+
componentStack: z.ZodArray<z.ZodString>;
|
|
692
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
693
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
694
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
695
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
696
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
697
|
+
origin: z.ZodEnum<{
|
|
698
|
+
"jsx-host": "jsx-host";
|
|
699
|
+
"astro-host": "astro-host";
|
|
700
|
+
"react-fiber": "react-fiber";
|
|
701
|
+
"dom-ancestor": "dom-ancestor";
|
|
702
|
+
none: "none";
|
|
703
|
+
}>;
|
|
704
|
+
confidence: z.ZodEnum<{
|
|
705
|
+
exact: "exact";
|
|
706
|
+
probable: "probable";
|
|
707
|
+
approximate: "approximate";
|
|
708
|
+
unknown: "unknown";
|
|
709
|
+
}>;
|
|
710
|
+
}, z.core.$strict>>;
|
|
711
|
+
}, z.core.$strict>;
|
|
712
|
+
element: z.ZodObject<{
|
|
713
|
+
tagName: z.ZodString;
|
|
714
|
+
selector: z.ZodString;
|
|
715
|
+
sanitizedHtml: z.ZodString;
|
|
716
|
+
textPreview: z.ZodOptional<z.ZodString>;
|
|
717
|
+
role: z.ZodOptional<z.ZodString>;
|
|
718
|
+
rect: z.ZodObject<{
|
|
719
|
+
x: z.ZodNumber;
|
|
720
|
+
y: z.ZodNumber;
|
|
721
|
+
width: z.ZodNumber;
|
|
722
|
+
height: z.ZodNumber;
|
|
723
|
+
}, z.core.$strict>;
|
|
724
|
+
}, z.core.$strict>;
|
|
725
|
+
styles: z.ZodObject<{
|
|
726
|
+
classNames: z.ZodArray<z.ZodString>;
|
|
727
|
+
inlineStyle: z.ZodOptional<z.ZodString>;
|
|
728
|
+
matchedRules: z.ZodArray<z.ZodObject<{
|
|
729
|
+
selector: z.ZodString;
|
|
730
|
+
declarations: z.ZodString;
|
|
731
|
+
source: z.ZodOptional<z.ZodString>;
|
|
732
|
+
media: z.ZodOptional<z.ZodString>;
|
|
733
|
+
}, z.core.$strict>>;
|
|
734
|
+
computed: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
735
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
736
|
+
}, z.core.$strict>;
|
|
737
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
738
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
739
|
+
relativePath: z.ZodString;
|
|
740
|
+
language: z.ZodEnum<{
|
|
741
|
+
tsx: "tsx";
|
|
742
|
+
jsx: "jsx";
|
|
743
|
+
astro: "astro";
|
|
744
|
+
}>;
|
|
745
|
+
startLine: z.ZodNumber;
|
|
746
|
+
endLine: z.ZodNumber;
|
|
747
|
+
excerpt: z.ZodString;
|
|
748
|
+
boundary: z.ZodEnum<{
|
|
749
|
+
component: "component";
|
|
750
|
+
"nearby-lines": "nearby-lines";
|
|
751
|
+
}>;
|
|
752
|
+
}, z.core.$strict>>;
|
|
753
|
+
targetId: z.ZodString;
|
|
754
|
+
page: z.ZodObject<{
|
|
755
|
+
url: z.ZodString;
|
|
756
|
+
pathname: z.ZodString;
|
|
757
|
+
title: z.ZodString;
|
|
758
|
+
viewportWidth: z.ZodNumber;
|
|
759
|
+
viewportHeight: z.ZodNumber;
|
|
760
|
+
devicePixelRatio: z.ZodNumber;
|
|
761
|
+
}, z.core.$strict>;
|
|
762
|
+
}, z.core.$strict>>;
|
|
763
|
+
createdAt: z.ZodISODateTime;
|
|
764
|
+
}, z.core.$strict>;
|
|
765
|
+
createdAt: z.ZodISODateTime;
|
|
766
|
+
}, z.core.$strict>]>;
|
|
767
|
+
declare const askAnswerWarningSchema: z.ZodObject<{
|
|
768
|
+
code: z.ZodEnum<{
|
|
769
|
+
"insufficient-evidence": "insufficient-evidence";
|
|
770
|
+
"partial-context": "partial-context";
|
|
771
|
+
"source-truncated": "source-truncated";
|
|
772
|
+
"source-stale": "source-stale";
|
|
773
|
+
}>;
|
|
774
|
+
}, z.core.$strict>;
|
|
775
|
+
declare const askDraftCitationSchema: z.ZodObject<{
|
|
776
|
+
handleId: z.ZodString;
|
|
777
|
+
startLine: z.ZodNumber;
|
|
778
|
+
endLine: z.ZodNumber;
|
|
779
|
+
}, z.core.$strict>;
|
|
780
|
+
declare const askAnswerDraftBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
781
|
+
kind: z.ZodLiteral<"paragraph">;
|
|
782
|
+
text: z.ZodString;
|
|
783
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
784
|
+
handleId: z.ZodString;
|
|
785
|
+
startLine: z.ZodNumber;
|
|
786
|
+
endLine: z.ZodNumber;
|
|
787
|
+
}, z.core.$strict>>;
|
|
788
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
789
|
+
kind: z.ZodLiteral<"list">;
|
|
790
|
+
items: z.ZodArray<z.ZodObject<{
|
|
791
|
+
text: z.ZodString;
|
|
792
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
793
|
+
handleId: z.ZodString;
|
|
794
|
+
startLine: z.ZodNumber;
|
|
795
|
+
endLine: z.ZodNumber;
|
|
796
|
+
}, z.core.$strict>>;
|
|
797
|
+
}, z.core.$strict>>;
|
|
798
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
799
|
+
kind: z.ZodLiteral<"code">;
|
|
800
|
+
code: z.ZodString;
|
|
801
|
+
language: z.ZodOptional<z.ZodString>;
|
|
802
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
803
|
+
handleId: z.ZodString;
|
|
804
|
+
startLine: z.ZodNumber;
|
|
805
|
+
endLine: z.ZodNumber;
|
|
806
|
+
}, z.core.$strict>>;
|
|
807
|
+
}, z.core.$strict>], "kind">;
|
|
808
|
+
declare const askAnswerDraftSchema: z.ZodObject<{
|
|
809
|
+
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
810
|
+
kind: z.ZodLiteral<"paragraph">;
|
|
811
|
+
text: z.ZodString;
|
|
812
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
813
|
+
handleId: z.ZodString;
|
|
814
|
+
startLine: z.ZodNumber;
|
|
815
|
+
endLine: z.ZodNumber;
|
|
816
|
+
}, z.core.$strict>>;
|
|
817
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
818
|
+
kind: z.ZodLiteral<"list">;
|
|
819
|
+
items: z.ZodArray<z.ZodObject<{
|
|
820
|
+
text: z.ZodString;
|
|
821
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
822
|
+
handleId: z.ZodString;
|
|
823
|
+
startLine: z.ZodNumber;
|
|
824
|
+
endLine: z.ZodNumber;
|
|
825
|
+
}, z.core.$strict>>;
|
|
826
|
+
}, z.core.$strict>>;
|
|
827
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
828
|
+
kind: z.ZodLiteral<"code">;
|
|
829
|
+
code: z.ZodString;
|
|
830
|
+
language: z.ZodOptional<z.ZodString>;
|
|
831
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
832
|
+
handleId: z.ZodString;
|
|
833
|
+
startLine: z.ZodNumber;
|
|
834
|
+
endLine: z.ZodNumber;
|
|
835
|
+
}, z.core.$strict>>;
|
|
836
|
+
}, z.core.$strict>], "kind">>;
|
|
837
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
838
|
+
code: z.ZodEnum<{
|
|
839
|
+
"insufficient-evidence": "insufficient-evidence";
|
|
840
|
+
"partial-context": "partial-context";
|
|
841
|
+
}>;
|
|
842
|
+
}, z.core.$strict>>;
|
|
843
|
+
}, z.core.$strict>;
|
|
844
|
+
declare const askAnswerBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
845
|
+
kind: z.ZodLiteral<"paragraph">;
|
|
846
|
+
text: z.ZodString;
|
|
847
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
848
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
849
|
+
kind: z.ZodLiteral<"list">;
|
|
850
|
+
items: z.ZodArray<z.ZodObject<{
|
|
851
|
+
text: z.ZodString;
|
|
852
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
853
|
+
}, z.core.$strict>>;
|
|
854
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
855
|
+
kind: z.ZodLiteral<"code">;
|
|
856
|
+
code: z.ZodString;
|
|
857
|
+
language: z.ZodOptional<z.ZodString>;
|
|
858
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
859
|
+
}, z.core.$strict>], "kind">;
|
|
860
|
+
declare const askSourceReferenceSchema: z.ZodObject<{
|
|
861
|
+
sourceId: z.ZodString;
|
|
862
|
+
label: z.ZodString;
|
|
863
|
+
relativePath: z.ZodString;
|
|
864
|
+
fileId: z.ZodString;
|
|
865
|
+
startLine: z.ZodNumber;
|
|
866
|
+
endLine: z.ZodNumber;
|
|
867
|
+
confidence: z.ZodEnum<{
|
|
868
|
+
exact: "exact";
|
|
869
|
+
probable: "probable";
|
|
870
|
+
approximate: "approximate";
|
|
871
|
+
}>;
|
|
872
|
+
targetIds: z.ZodArray<z.ZodString>;
|
|
873
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
874
|
+
contentHash: z.ZodString;
|
|
875
|
+
}, z.core.$strict>;
|
|
876
|
+
declare const askAnswerResultSchema: z.ZodObject<{
|
|
877
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
878
|
+
jobId: z.ZodString;
|
|
879
|
+
selectionId: z.ZodString;
|
|
880
|
+
contextHash: z.ZodString;
|
|
881
|
+
executor: z.ZodObject<{
|
|
882
|
+
executorId: z.ZodString;
|
|
883
|
+
kind: z.ZodEnum<{
|
|
884
|
+
"configured-key": "configured-key";
|
|
885
|
+
"managed-codex": "managed-codex";
|
|
886
|
+
}>;
|
|
887
|
+
label: z.ZodString;
|
|
888
|
+
modelLabel: z.ZodString;
|
|
889
|
+
}, z.core.$strict>;
|
|
890
|
+
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
891
|
+
kind: z.ZodLiteral<"paragraph">;
|
|
892
|
+
text: z.ZodString;
|
|
893
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
894
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
895
|
+
kind: z.ZodLiteral<"list">;
|
|
896
|
+
items: z.ZodArray<z.ZodObject<{
|
|
897
|
+
text: z.ZodString;
|
|
898
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
899
|
+
}, z.core.$strict>>;
|
|
900
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
901
|
+
kind: z.ZodLiteral<"code">;
|
|
902
|
+
code: z.ZodString;
|
|
903
|
+
language: z.ZodOptional<z.ZodString>;
|
|
904
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
905
|
+
}, z.core.$strict>], "kind">>;
|
|
906
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
907
|
+
sourceId: z.ZodString;
|
|
908
|
+
label: z.ZodString;
|
|
909
|
+
relativePath: z.ZodString;
|
|
910
|
+
fileId: z.ZodString;
|
|
911
|
+
startLine: z.ZodNumber;
|
|
912
|
+
endLine: z.ZodNumber;
|
|
913
|
+
confidence: z.ZodEnum<{
|
|
914
|
+
exact: "exact";
|
|
915
|
+
probable: "probable";
|
|
916
|
+
approximate: "approximate";
|
|
917
|
+
}>;
|
|
918
|
+
targetIds: z.ZodArray<z.ZodString>;
|
|
919
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
920
|
+
contentHash: z.ZodString;
|
|
921
|
+
}, z.core.$strict>>;
|
|
922
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
923
|
+
code: z.ZodEnum<{
|
|
924
|
+
"insufficient-evidence": "insufficient-evidence";
|
|
925
|
+
"partial-context": "partial-context";
|
|
926
|
+
"source-truncated": "source-truncated";
|
|
927
|
+
"source-stale": "source-stale";
|
|
928
|
+
}>;
|
|
929
|
+
}, z.core.$strict>>;
|
|
930
|
+
createdAt: z.ZodISODateTime;
|
|
931
|
+
expiresAt: z.ZodISODateTime;
|
|
932
|
+
}, z.core.$strict>;
|
|
933
|
+
declare const contextualAskExecutorCapabilitySchema: z.ZodObject<{
|
|
934
|
+
executorId: z.ZodString;
|
|
935
|
+
kind: z.ZodEnum<{
|
|
936
|
+
"configured-key": "configured-key";
|
|
937
|
+
"managed-codex": "managed-codex";
|
|
938
|
+
}>;
|
|
939
|
+
label: z.ZodString;
|
|
940
|
+
requestedModelLabel: z.ZodString;
|
|
941
|
+
effectiveModelLabel: z.ZodString;
|
|
942
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
943
|
+
state: z.ZodEnum<{
|
|
944
|
+
ready: "ready";
|
|
945
|
+
degraded: "degraded";
|
|
946
|
+
unavailable: "unavailable";
|
|
947
|
+
}>;
|
|
948
|
+
providerDataConsentRequired: z.ZodBoolean;
|
|
949
|
+
readOnlyProven: z.ZodBoolean;
|
|
950
|
+
errorCode: z.ZodOptional<z.ZodEnum<{
|
|
951
|
+
ASK_DISABLED: "ASK_DISABLED";
|
|
952
|
+
ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
|
|
953
|
+
ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
|
|
954
|
+
ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
|
|
955
|
+
ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
|
|
956
|
+
ASK_TIMEOUT: "ASK_TIMEOUT";
|
|
957
|
+
ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
|
|
958
|
+
ASK_BUSY: "ASK_BUSY";
|
|
959
|
+
ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
|
|
960
|
+
ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
|
|
961
|
+
ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
|
|
962
|
+
ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
|
|
963
|
+
ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
|
|
964
|
+
ASK_CANCELLED: "ASK_CANCELLED";
|
|
965
|
+
ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
|
|
966
|
+
ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
|
|
967
|
+
}>>;
|
|
968
|
+
}, z.core.$strict>;
|
|
969
|
+
declare const contextualAskCapabilitySchema: z.ZodObject<{
|
|
970
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
971
|
+
enabled: z.ZodBoolean;
|
|
972
|
+
executors: z.ZodArray<z.ZodObject<{
|
|
973
|
+
executorId: z.ZodString;
|
|
974
|
+
kind: z.ZodEnum<{
|
|
975
|
+
"configured-key": "configured-key";
|
|
976
|
+
"managed-codex": "managed-codex";
|
|
977
|
+
}>;
|
|
978
|
+
label: z.ZodString;
|
|
979
|
+
requestedModelLabel: z.ZodString;
|
|
980
|
+
effectiveModelLabel: z.ZodString;
|
|
981
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
982
|
+
state: z.ZodEnum<{
|
|
983
|
+
ready: "ready";
|
|
984
|
+
degraded: "degraded";
|
|
985
|
+
unavailable: "unavailable";
|
|
986
|
+
}>;
|
|
987
|
+
providerDataConsentRequired: z.ZodBoolean;
|
|
988
|
+
readOnlyProven: z.ZodBoolean;
|
|
989
|
+
errorCode: z.ZodOptional<z.ZodEnum<{
|
|
990
|
+
ASK_DISABLED: "ASK_DISABLED";
|
|
991
|
+
ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
|
|
992
|
+
ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
|
|
993
|
+
ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
|
|
994
|
+
ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
|
|
995
|
+
ASK_TIMEOUT: "ASK_TIMEOUT";
|
|
996
|
+
ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
|
|
997
|
+
ASK_BUSY: "ASK_BUSY";
|
|
998
|
+
ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
|
|
999
|
+
ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
|
|
1000
|
+
ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
|
|
1001
|
+
ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
|
|
1002
|
+
ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
|
|
1003
|
+
ASK_CANCELLED: "ASK_CANCELLED";
|
|
1004
|
+
ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
|
|
1005
|
+
ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
|
|
1006
|
+
}>>;
|
|
1007
|
+
}, z.core.$strict>>;
|
|
1008
|
+
safety: z.ZodObject<{
|
|
1009
|
+
selectionRequired: z.ZodLiteral<true>;
|
|
1010
|
+
singleTurn: z.ZodLiteral<true>;
|
|
1011
|
+
writesAllowed: z.ZodLiteral<false>;
|
|
1012
|
+
historyStored: z.ZodLiteral<false>;
|
|
1013
|
+
}, z.core.$strict>;
|
|
1014
|
+
checkedAt: z.ZodISODateTime;
|
|
1015
|
+
}, z.core.$strict>;
|
|
1016
|
+
type ContextualAskExecutorPreference = z.infer<typeof contextualAskExecutorPreferenceSchema>;
|
|
1017
|
+
type ContextualAskOptions = z.infer<typeof contextualAskOptionsSchema>;
|
|
1018
|
+
type SpotSelectionTarget = z.infer<typeof spotSelectionTargetSchema>;
|
|
1019
|
+
type SpotSelectionContext = z.infer<typeof spotSelectionContextSchema>;
|
|
1020
|
+
type AskDraftOrigin = z.infer<typeof askDraftOriginSchema>;
|
|
1021
|
+
type SpotAskTaskEnvelope = z.infer<typeof spotAskTaskEnvelopeSchema>;
|
|
1022
|
+
type SpotChangeTaskEnvelope = z.infer<typeof spotChangeTaskEnvelopeSchema>;
|
|
1023
|
+
type SpotTaskEnvelope = z.infer<typeof spotTaskEnvelopeSchema>;
|
|
1024
|
+
type AskAnswerWarning = z.infer<typeof askAnswerWarningSchema>;
|
|
1025
|
+
type AskDraftCitation = z.infer<typeof askDraftCitationSchema>;
|
|
1026
|
+
type AskAnswerDraftBlock = z.infer<typeof askAnswerDraftBlockSchema>;
|
|
1027
|
+
type AskAnswerDraft = z.infer<typeof askAnswerDraftSchema>;
|
|
1028
|
+
type AskAnswerBlock = z.infer<typeof askAnswerBlockSchema>;
|
|
1029
|
+
type AskSourceReference = z.infer<typeof askSourceReferenceSchema>;
|
|
1030
|
+
type AskAnswerResult = z.infer<typeof askAnswerResultSchema>;
|
|
1031
|
+
type ContextualAskExecutorCapability = z.infer<typeof contextualAskExecutorCapabilitySchema>;
|
|
1032
|
+
type ContextualAskCapability = z.infer<typeof contextualAskCapabilitySchema>;
|
|
1033
|
+
|
|
1034
|
+
declare const contextualAskCapabilityRequestSchema: z.ZodObject<{}, z.core.$strict>;
|
|
1035
|
+
declare const askJobCreateRequestSchema: z.ZodObject<{
|
|
1036
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1037
|
+
requestId: z.ZodString;
|
|
1038
|
+
envelope: z.ZodObject<{
|
|
1039
|
+
task: z.ZodObject<{
|
|
1040
|
+
kind: z.ZodLiteral<"ask">;
|
|
1041
|
+
question: z.ZodString;
|
|
1042
|
+
}, z.core.$strict>;
|
|
1043
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1044
|
+
taskId: z.ZodString;
|
|
1045
|
+
selection: z.ZodObject<{
|
|
1046
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1047
|
+
selectionId: z.ZodString;
|
|
1048
|
+
locale: z.ZodEnum<{
|
|
1049
|
+
"en-US": "en-US";
|
|
1050
|
+
"zh-CN": "zh-CN";
|
|
1051
|
+
}>;
|
|
1052
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
1053
|
+
source: z.ZodObject<{
|
|
1054
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1057
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
1058
|
+
origin: z.ZodEnum<{
|
|
1059
|
+
"jsx-host": "jsx-host";
|
|
1060
|
+
"astro-host": "astro-host";
|
|
1061
|
+
"react-fiber": "react-fiber";
|
|
1062
|
+
"dom-ancestor": "dom-ancestor";
|
|
1063
|
+
none: "none";
|
|
1064
|
+
}>;
|
|
1065
|
+
confidence: z.ZodEnum<{
|
|
1066
|
+
exact: "exact";
|
|
1067
|
+
probable: "probable";
|
|
1068
|
+
approximate: "approximate";
|
|
1069
|
+
unknown: "unknown";
|
|
1070
|
+
}>;
|
|
1071
|
+
}, z.core.$strict>;
|
|
1072
|
+
react: z.ZodObject<{
|
|
1073
|
+
supported: z.ZodBoolean;
|
|
1074
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
componentStack: z.ZodArray<z.ZodString>;
|
|
1079
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1080
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1083
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
1084
|
+
origin: z.ZodEnum<{
|
|
1085
|
+
"jsx-host": "jsx-host";
|
|
1086
|
+
"astro-host": "astro-host";
|
|
1087
|
+
"react-fiber": "react-fiber";
|
|
1088
|
+
"dom-ancestor": "dom-ancestor";
|
|
1089
|
+
none: "none";
|
|
1090
|
+
}>;
|
|
1091
|
+
confidence: z.ZodEnum<{
|
|
1092
|
+
exact: "exact";
|
|
1093
|
+
probable: "probable";
|
|
1094
|
+
approximate: "approximate";
|
|
1095
|
+
unknown: "unknown";
|
|
1096
|
+
}>;
|
|
1097
|
+
}, z.core.$strict>>;
|
|
1098
|
+
}, z.core.$strict>;
|
|
1099
|
+
element: z.ZodObject<{
|
|
1100
|
+
tagName: z.ZodString;
|
|
1101
|
+
selector: z.ZodString;
|
|
1102
|
+
sanitizedHtml: z.ZodString;
|
|
1103
|
+
textPreview: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
rect: z.ZodObject<{
|
|
1106
|
+
x: z.ZodNumber;
|
|
1107
|
+
y: z.ZodNumber;
|
|
1108
|
+
width: z.ZodNumber;
|
|
1109
|
+
height: z.ZodNumber;
|
|
1110
|
+
}, z.core.$strict>;
|
|
1111
|
+
}, z.core.$strict>;
|
|
1112
|
+
styles: z.ZodObject<{
|
|
1113
|
+
classNames: z.ZodArray<z.ZodString>;
|
|
1114
|
+
inlineStyle: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
matchedRules: z.ZodArray<z.ZodObject<{
|
|
1116
|
+
selector: z.ZodString;
|
|
1117
|
+
declarations: z.ZodString;
|
|
1118
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
media: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
}, z.core.$strict>>;
|
|
1121
|
+
computed: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1122
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1123
|
+
}, z.core.$strict>;
|
|
1124
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1125
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
1126
|
+
relativePath: z.ZodString;
|
|
1127
|
+
language: z.ZodEnum<{
|
|
1128
|
+
tsx: "tsx";
|
|
1129
|
+
jsx: "jsx";
|
|
1130
|
+
astro: "astro";
|
|
1131
|
+
}>;
|
|
1132
|
+
startLine: z.ZodNumber;
|
|
1133
|
+
endLine: z.ZodNumber;
|
|
1134
|
+
excerpt: z.ZodString;
|
|
1135
|
+
boundary: z.ZodEnum<{
|
|
1136
|
+
component: "component";
|
|
1137
|
+
"nearby-lines": "nearby-lines";
|
|
1138
|
+
}>;
|
|
1139
|
+
}, z.core.$strict>>;
|
|
1140
|
+
targetId: z.ZodString;
|
|
1141
|
+
page: z.ZodObject<{
|
|
1142
|
+
url: z.ZodString;
|
|
1143
|
+
pathname: z.ZodString;
|
|
1144
|
+
title: z.ZodString;
|
|
1145
|
+
viewportWidth: z.ZodNumber;
|
|
1146
|
+
viewportHeight: z.ZodNumber;
|
|
1147
|
+
devicePixelRatio: z.ZodNumber;
|
|
1148
|
+
}, z.core.$strict>;
|
|
1149
|
+
}, z.core.$strict>>;
|
|
1150
|
+
createdAt: z.ZodISODateTime;
|
|
1151
|
+
}, z.core.$strict>;
|
|
1152
|
+
createdAt: z.ZodISODateTime;
|
|
1153
|
+
}, z.core.$strict>;
|
|
1154
|
+
executorId: z.ZodString;
|
|
1155
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
providerDataConsent: z.ZodLiteral<true>;
|
|
1157
|
+
}, z.core.$strict>;
|
|
1158
|
+
declare const askJobActionRequestSchema: z.ZodObject<{}, z.core.$strict>;
|
|
1159
|
+
declare const askJobEventsRequestSchema: z.ZodObject<{
|
|
1160
|
+
afterSequence: z.ZodOptional<z.ZodNumber>;
|
|
1161
|
+
}, z.core.$strict>;
|
|
1162
|
+
declare const askJobSnapshotSchema: z.ZodObject<{
|
|
1163
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1164
|
+
jobId: z.ZodString;
|
|
1165
|
+
selectionId: z.ZodString;
|
|
1166
|
+
status: z.ZodEnum<{
|
|
1167
|
+
queued: "queued";
|
|
1168
|
+
authorizing: "authorizing";
|
|
1169
|
+
running: "running";
|
|
1170
|
+
cancelling: "cancelling";
|
|
1171
|
+
answered: "answered";
|
|
1172
|
+
cancelled: "cancelled";
|
|
1173
|
+
failed: "failed";
|
|
1174
|
+
}>;
|
|
1175
|
+
executor: z.ZodObject<{
|
|
1176
|
+
executorId: z.ZodString;
|
|
1177
|
+
kind: z.ZodEnum<{
|
|
1178
|
+
"configured-key": "configured-key";
|
|
1179
|
+
"managed-codex": "managed-codex";
|
|
1180
|
+
}>;
|
|
1181
|
+
label: z.ZodString;
|
|
1182
|
+
modelLabel: z.ZodString;
|
|
1183
|
+
}, z.core.$strict>;
|
|
1184
|
+
phaseMessage: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
createdAt: z.ZodISODateTime;
|
|
1186
|
+
updatedAt: z.ZodISODateTime;
|
|
1187
|
+
canCancel: z.ZodBoolean;
|
|
1188
|
+
errorCode: z.ZodOptional<z.ZodEnum<{
|
|
1189
|
+
ASK_DISABLED: "ASK_DISABLED";
|
|
1190
|
+
ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
|
|
1191
|
+
ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
|
|
1192
|
+
ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
|
|
1193
|
+
ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
|
|
1194
|
+
ASK_TIMEOUT: "ASK_TIMEOUT";
|
|
1195
|
+
ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
|
|
1196
|
+
ASK_BUSY: "ASK_BUSY";
|
|
1197
|
+
ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
|
|
1198
|
+
ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
|
|
1199
|
+
ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
|
|
1200
|
+
ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
|
|
1201
|
+
ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
|
|
1202
|
+
ASK_CANCELLED: "ASK_CANCELLED";
|
|
1203
|
+
ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
|
|
1204
|
+
ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
|
|
1205
|
+
}>>;
|
|
1206
|
+
}, z.core.$strict>;
|
|
1207
|
+
declare const askJobResultResponseSchema: z.ZodObject<{
|
|
1208
|
+
snapshot: z.ZodObject<{
|
|
1209
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1210
|
+
jobId: z.ZodString;
|
|
1211
|
+
selectionId: z.ZodString;
|
|
1212
|
+
status: z.ZodEnum<{
|
|
1213
|
+
queued: "queued";
|
|
1214
|
+
authorizing: "authorizing";
|
|
1215
|
+
running: "running";
|
|
1216
|
+
cancelling: "cancelling";
|
|
1217
|
+
answered: "answered";
|
|
1218
|
+
cancelled: "cancelled";
|
|
1219
|
+
failed: "failed";
|
|
1220
|
+
}>;
|
|
1221
|
+
executor: z.ZodObject<{
|
|
1222
|
+
executorId: z.ZodString;
|
|
1223
|
+
kind: z.ZodEnum<{
|
|
1224
|
+
"configured-key": "configured-key";
|
|
1225
|
+
"managed-codex": "managed-codex";
|
|
1226
|
+
}>;
|
|
1227
|
+
label: z.ZodString;
|
|
1228
|
+
modelLabel: z.ZodString;
|
|
1229
|
+
}, z.core.$strict>;
|
|
1230
|
+
phaseMessage: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
createdAt: z.ZodISODateTime;
|
|
1232
|
+
updatedAt: z.ZodISODateTime;
|
|
1233
|
+
canCancel: z.ZodBoolean;
|
|
1234
|
+
errorCode: z.ZodOptional<z.ZodEnum<{
|
|
1235
|
+
ASK_DISABLED: "ASK_DISABLED";
|
|
1236
|
+
ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
|
|
1237
|
+
ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
|
|
1238
|
+
ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
|
|
1239
|
+
ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
|
|
1240
|
+
ASK_TIMEOUT: "ASK_TIMEOUT";
|
|
1241
|
+
ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
|
|
1242
|
+
ASK_BUSY: "ASK_BUSY";
|
|
1243
|
+
ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
|
|
1244
|
+
ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
|
|
1245
|
+
ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
|
|
1246
|
+
ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
|
|
1247
|
+
ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
|
|
1248
|
+
ASK_CANCELLED: "ASK_CANCELLED";
|
|
1249
|
+
ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
|
|
1250
|
+
ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
|
|
1251
|
+
}>>;
|
|
1252
|
+
}, z.core.$strict>;
|
|
1253
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
1254
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1255
|
+
jobId: z.ZodString;
|
|
1256
|
+
selectionId: z.ZodString;
|
|
1257
|
+
contextHash: z.ZodString;
|
|
1258
|
+
executor: z.ZodObject<{
|
|
1259
|
+
executorId: z.ZodString;
|
|
1260
|
+
kind: z.ZodEnum<{
|
|
1261
|
+
"configured-key": "configured-key";
|
|
1262
|
+
"managed-codex": "managed-codex";
|
|
1263
|
+
}>;
|
|
1264
|
+
label: z.ZodString;
|
|
1265
|
+
modelLabel: z.ZodString;
|
|
1266
|
+
}, z.core.$strict>;
|
|
1267
|
+
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1268
|
+
kind: z.ZodLiteral<"paragraph">;
|
|
1269
|
+
text: z.ZodString;
|
|
1270
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
1271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1272
|
+
kind: z.ZodLiteral<"list">;
|
|
1273
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1274
|
+
text: z.ZodString;
|
|
1275
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
1276
|
+
}, z.core.$strict>>;
|
|
1277
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1278
|
+
kind: z.ZodLiteral<"code">;
|
|
1279
|
+
code: z.ZodString;
|
|
1280
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1281
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
1282
|
+
}, z.core.$strict>], "kind">>;
|
|
1283
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
1284
|
+
sourceId: z.ZodString;
|
|
1285
|
+
label: z.ZodString;
|
|
1286
|
+
relativePath: z.ZodString;
|
|
1287
|
+
fileId: z.ZodString;
|
|
1288
|
+
startLine: z.ZodNumber;
|
|
1289
|
+
endLine: z.ZodNumber;
|
|
1290
|
+
confidence: z.ZodEnum<{
|
|
1291
|
+
exact: "exact";
|
|
1292
|
+
probable: "probable";
|
|
1293
|
+
approximate: "approximate";
|
|
1294
|
+
}>;
|
|
1295
|
+
targetIds: z.ZodArray<z.ZodString>;
|
|
1296
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
contentHash: z.ZodString;
|
|
1298
|
+
}, z.core.$strict>>;
|
|
1299
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
1300
|
+
code: z.ZodEnum<{
|
|
1301
|
+
"insufficient-evidence": "insufficient-evidence";
|
|
1302
|
+
"partial-context": "partial-context";
|
|
1303
|
+
"source-truncated": "source-truncated";
|
|
1304
|
+
"source-stale": "source-stale";
|
|
1305
|
+
}>;
|
|
1306
|
+
}, z.core.$strict>>;
|
|
1307
|
+
createdAt: z.ZodISODateTime;
|
|
1308
|
+
expiresAt: z.ZodISODateTime;
|
|
1309
|
+
}, z.core.$strict>>;
|
|
1310
|
+
}, z.core.$strict>;
|
|
1311
|
+
declare const askJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1312
|
+
type: z.ZodLiteral<"snapshot">;
|
|
1313
|
+
snapshot: z.ZodObject<{
|
|
1314
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1315
|
+
jobId: z.ZodString;
|
|
1316
|
+
selectionId: z.ZodString;
|
|
1317
|
+
status: z.ZodEnum<{
|
|
1318
|
+
queued: "queued";
|
|
1319
|
+
authorizing: "authorizing";
|
|
1320
|
+
running: "running";
|
|
1321
|
+
cancelling: "cancelling";
|
|
1322
|
+
answered: "answered";
|
|
1323
|
+
cancelled: "cancelled";
|
|
1324
|
+
failed: "failed";
|
|
1325
|
+
}>;
|
|
1326
|
+
executor: z.ZodObject<{
|
|
1327
|
+
executorId: z.ZodString;
|
|
1328
|
+
kind: z.ZodEnum<{
|
|
1329
|
+
"configured-key": "configured-key";
|
|
1330
|
+
"managed-codex": "managed-codex";
|
|
1331
|
+
}>;
|
|
1332
|
+
label: z.ZodString;
|
|
1333
|
+
modelLabel: z.ZodString;
|
|
1334
|
+
}, z.core.$strict>;
|
|
1335
|
+
phaseMessage: z.ZodOptional<z.ZodString>;
|
|
1336
|
+
createdAt: z.ZodISODateTime;
|
|
1337
|
+
updatedAt: z.ZodISODateTime;
|
|
1338
|
+
canCancel: z.ZodBoolean;
|
|
1339
|
+
errorCode: z.ZodOptional<z.ZodEnum<{
|
|
1340
|
+
ASK_DISABLED: "ASK_DISABLED";
|
|
1341
|
+
ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
|
|
1342
|
+
ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
|
|
1343
|
+
ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
|
|
1344
|
+
ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
|
|
1345
|
+
ASK_TIMEOUT: "ASK_TIMEOUT";
|
|
1346
|
+
ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
|
|
1347
|
+
ASK_BUSY: "ASK_BUSY";
|
|
1348
|
+
ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
|
|
1349
|
+
ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
|
|
1350
|
+
ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
|
|
1351
|
+
ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
|
|
1352
|
+
ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
|
|
1353
|
+
ASK_CANCELLED: "ASK_CANCELLED";
|
|
1354
|
+
ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
|
|
1355
|
+
ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
|
|
1356
|
+
}>>;
|
|
1357
|
+
}, z.core.$strict>;
|
|
1358
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1359
|
+
sequence: z.ZodNumber;
|
|
1360
|
+
jobId: z.ZodString;
|
|
1361
|
+
status: z.ZodEnum<{
|
|
1362
|
+
queued: "queued";
|
|
1363
|
+
authorizing: "authorizing";
|
|
1364
|
+
running: "running";
|
|
1365
|
+
cancelling: "cancelling";
|
|
1366
|
+
answered: "answered";
|
|
1367
|
+
cancelled: "cancelled";
|
|
1368
|
+
failed: "failed";
|
|
1369
|
+
}>;
|
|
1370
|
+
timestamp: z.ZodISODateTime;
|
|
1371
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1372
|
+
type: z.ZodLiteral<"phase">;
|
|
1373
|
+
message: z.ZodString;
|
|
1374
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1375
|
+
sequence: z.ZodNumber;
|
|
1376
|
+
jobId: z.ZodString;
|
|
1377
|
+
status: z.ZodEnum<{
|
|
1378
|
+
queued: "queued";
|
|
1379
|
+
authorizing: "authorizing";
|
|
1380
|
+
running: "running";
|
|
1381
|
+
cancelling: "cancelling";
|
|
1382
|
+
answered: "answered";
|
|
1383
|
+
cancelled: "cancelled";
|
|
1384
|
+
failed: "failed";
|
|
1385
|
+
}>;
|
|
1386
|
+
timestamp: z.ZodISODateTime;
|
|
1387
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1388
|
+
type: z.ZodLiteral<"read-activity">;
|
|
1389
|
+
activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1390
|
+
kind: z.ZodLiteral<"source">;
|
|
1391
|
+
sourceId: z.ZodString;
|
|
1392
|
+
relativePath: z.ZodString;
|
|
1393
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1394
|
+
kind: z.ZodLiteral<"file-count">;
|
|
1395
|
+
bucket: z.ZodEnum<{
|
|
1396
|
+
one: "one";
|
|
1397
|
+
few: "few";
|
|
1398
|
+
many: "many";
|
|
1399
|
+
}>;
|
|
1400
|
+
}, z.core.$strict>], "kind">;
|
|
1401
|
+
state: z.ZodEnum<{
|
|
1402
|
+
failed: "failed";
|
|
1403
|
+
started: "started";
|
|
1404
|
+
succeeded: "succeeded";
|
|
1405
|
+
}>;
|
|
1406
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1407
|
+
sequence: z.ZodNumber;
|
|
1408
|
+
jobId: z.ZodString;
|
|
1409
|
+
status: z.ZodEnum<{
|
|
1410
|
+
queued: "queued";
|
|
1411
|
+
authorizing: "authorizing";
|
|
1412
|
+
running: "running";
|
|
1413
|
+
cancelling: "cancelling";
|
|
1414
|
+
answered: "answered";
|
|
1415
|
+
cancelled: "cancelled";
|
|
1416
|
+
failed: "failed";
|
|
1417
|
+
}>;
|
|
1418
|
+
timestamp: z.ZodISODateTime;
|
|
1419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1420
|
+
type: z.ZodLiteral<"answer-ready">;
|
|
1421
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1422
|
+
sequence: z.ZodNumber;
|
|
1423
|
+
jobId: z.ZodString;
|
|
1424
|
+
status: z.ZodEnum<{
|
|
1425
|
+
queued: "queued";
|
|
1426
|
+
authorizing: "authorizing";
|
|
1427
|
+
running: "running";
|
|
1428
|
+
cancelling: "cancelling";
|
|
1429
|
+
answered: "answered";
|
|
1430
|
+
cancelled: "cancelled";
|
|
1431
|
+
failed: "failed";
|
|
1432
|
+
}>;
|
|
1433
|
+
timestamp: z.ZodISODateTime;
|
|
1434
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1435
|
+
type: z.ZodLiteral<"error">;
|
|
1436
|
+
errorCode: z.ZodEnum<{
|
|
1437
|
+
ASK_DISABLED: "ASK_DISABLED";
|
|
1438
|
+
ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
|
|
1439
|
+
ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
|
|
1440
|
+
ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
|
|
1441
|
+
ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
|
|
1442
|
+
ASK_TIMEOUT: "ASK_TIMEOUT";
|
|
1443
|
+
ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
|
|
1444
|
+
ASK_BUSY: "ASK_BUSY";
|
|
1445
|
+
ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
|
|
1446
|
+
ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
|
|
1447
|
+
ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
|
|
1448
|
+
ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
|
|
1449
|
+
ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
|
|
1450
|
+
ASK_CANCELLED: "ASK_CANCELLED";
|
|
1451
|
+
ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
|
|
1452
|
+
ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
|
|
1453
|
+
}>;
|
|
1454
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1455
|
+
sequence: z.ZodNumber;
|
|
1456
|
+
jobId: z.ZodString;
|
|
1457
|
+
status: z.ZodEnum<{
|
|
1458
|
+
queued: "queued";
|
|
1459
|
+
authorizing: "authorizing";
|
|
1460
|
+
running: "running";
|
|
1461
|
+
cancelling: "cancelling";
|
|
1462
|
+
answered: "answered";
|
|
1463
|
+
cancelled: "cancelled";
|
|
1464
|
+
failed: "failed";
|
|
1465
|
+
}>;
|
|
1466
|
+
timestamp: z.ZodISODateTime;
|
|
1467
|
+
}, z.core.$strict>], "type">;
|
|
1468
|
+
type ContextualAskCapabilityRequest = z.infer<typeof contextualAskCapabilityRequestSchema>;
|
|
1469
|
+
type AskJobCreateRequest = z.infer<typeof askJobCreateRequestSchema>;
|
|
1470
|
+
type AskJobActionRequest = z.infer<typeof askJobActionRequestSchema>;
|
|
1471
|
+
type AskJobEventsRequest = z.infer<typeof askJobEventsRequestSchema>;
|
|
1472
|
+
type AskJobSnapshot = z.infer<typeof askJobSnapshotSchema>;
|
|
1473
|
+
type AskJobResultResponse = z.infer<typeof askJobResultResponseSchema>;
|
|
1474
|
+
type AskJobEvent = z.infer<typeof askJobEventSchema>;
|
|
1475
|
+
|
|
1476
|
+
export { askJobEventsRequestSchema as $, ASK_ANSWER_WARNING_CODES as A, type ContextualAskCapabilityRequest as B, CONTEXTUAL_ASK_EXECUTOR_KINDS as C, type ContextualAskExecutorCapability as D, type ContextualAskExecutorKind as E, type ContextualAskExecutorState as F, type SpotChangeTaskEnvelope as G, type SpotSelectionContext as H, type SpotSelectionTarget as I, type SpotTaskEnvelope as J, type AskAnswerDraft as K, type AskAnswerDraftBlock as L, type AskDraftCitation as M, CONTEXTUAL_ASK_PERMISSION_PROFILE as N, type ContextualAskExecutorPreference as O, type ContextualAskOptions as P, askAnswerBlockSchema as Q, askAnswerDraftBlockSchema as R, type SpotAskTaskEnvelope as S, askAnswerDraftSchema as T, askAnswerResultSchema as U, askAnswerWarningSchema as V, askDraftCitationSchema as W, askDraftOriginSchema as X, askJobActionRequestSchema as Y, askJobCreateRequestSchema as Z, askJobEventSchema as _, ASK_EXECUTOR_ANSWER_WARNING_CODES as a, askJobResultResponseSchema as a0, askJobSnapshotSchema as a1, askSourceReferenceSchema as a2, contextualAskCapabilityRequestSchema as a3, contextualAskCapabilitySchema as a4, contextualAskExecutorCapabilitySchema as a5, contextualAskExecutorPreferenceSchema as a6, contextualAskOptionsSchema as a7, spotAskTaskEnvelopeSchema as a8, spotChangeTaskEnvelopeSchema as a9, spotSelectionContextSchema as aa, spotSelectionTargetSchema as ab, spotTaskEnvelopeSchema as ac, ASK_FILE_COUNT_BUCKETS as b, ASK_JOB_STATUSES as c, ASK_READ_ACTIVITY_STATES as d, ASK_SOURCE_CONFIDENCES as e, type AskAnswerBlock as f, type AskAnswerResult as g, type AskAnswerWarning as h, type AskAnswerWarningCode as i, type AskDraftOrigin as j, type AskExecutorAnswerWarningCode as k, type AskFileCountBucket as l, type AskJobActionRequest as m, type AskJobCreateRequest as n, type AskJobEvent as o, type AskJobEventsRequest as p, type AskJobResultResponse as q, type AskJobSnapshot as r, type AskJobStatus as s, type AskReadActivityState as t, type AskSourceConfidence as u, type AskSourceReference as v, CONTEXTUAL_ASK_EXECUTOR_STATES as w, CONTEXTUAL_ASK_LIMITS as x, CONTEXTUAL_ASK_SCHEMA_VERSION as y, type ContextualAskCapability as z };
|