@opencode-ai/client 0.0.0-next-14944 → 0.0.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/README.md +1 -25
- package/package.json +2 -56
- package/dist/contract.d.ts +0 -1
- package/dist/contract.js +0 -1
- package/dist/effect/api/api.d.ts +0 -814
- package/dist/effect/api/api.js +0 -0
- package/dist/effect/api.d.ts +0 -6
- package/dist/effect/api.js +0 -0
- package/dist/effect/generated/client-error.d.ts +0 -7
- package/dist/effect/generated/client-error.js +0 -5
- package/dist/effect/generated/client.d.ts +0 -6112
- package/dist/effect/generated/client.js +0 -376
- package/dist/effect/generated/index.d.ts +0 -2
- package/dist/effect/generated/index.js +0 -2
- package/dist/effect/index.d.ts +0 -30
- package/dist/effect/index.js +0 -26
- package/dist/effect/service.d.ts +0 -28
- package/dist/effect/service.js +0 -113
- package/dist/promise/api.d.ts +0 -21
- package/dist/promise/api.js +0 -0
- package/dist/promise/generated/client-error.d.ts +0 -6
- package/dist/promise/generated/client-error.js +0 -8
- package/dist/promise/generated/client.d.ts +0 -1298
- package/dist/promise/generated/client.js +0 -970
- package/dist/promise/generated/index.d.ts +0 -3
- package/dist/promise/generated/index.js +0 -3
- package/dist/promise/generated/types.d.ts +0 -8306
- package/dist/promise/generated/types.js +0 -21
- package/dist/promise/index.d.ts +0 -4
- package/dist/promise/index.js +0 -1
|
@@ -1,1298 +0,0 @@
|
|
|
1
|
-
import type { HealthGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionListOutput, SessionCreateInput, SessionActiveOutput, SessionGetInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionListContextEntriesInput, SessionPutContextEntryInput, SessionRemoveContextEntryInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, ServerMcpListInput, ServerMcpListOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectCurrentInput, ProjectCurrentOutput, ProjectDirectoriesInput, ProjectDirectoriesOutput, FormListRequestsInput, FormListRequestsOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionListRequestsInput, PermissionListRequestsOutput, PermissionListSavedInput, PermissionRemoveSavedInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, EventChangesOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionListRequestsInput, QuestionListRequestsOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyCreateOutput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationOutput } from "./types";
|
|
2
|
-
export interface ClientOptions {
|
|
3
|
-
readonly baseUrl: string;
|
|
4
|
-
readonly fetch?: typeof globalThis.fetch;
|
|
5
|
-
readonly headers?: HeadersInit;
|
|
6
|
-
}
|
|
7
|
-
export interface RequestOptions {
|
|
8
|
-
readonly signal?: AbortSignal;
|
|
9
|
-
readonly headers?: HeadersInit;
|
|
10
|
-
}
|
|
11
|
-
export declare function make(options: ClientOptions): {
|
|
12
|
-
health: {
|
|
13
|
-
get: (requestOptions?: RequestOptions) => Promise<HealthGetOutput>;
|
|
14
|
-
};
|
|
15
|
-
location: {
|
|
16
|
-
get: (input?: LocationGetInput, requestOptions?: RequestOptions) => Promise<LocationGetOutput>;
|
|
17
|
-
};
|
|
18
|
-
agent: {
|
|
19
|
-
list: (input?: AgentListInput, requestOptions?: RequestOptions) => Promise<AgentListOutput>;
|
|
20
|
-
};
|
|
21
|
-
plugin: {
|
|
22
|
-
list: (input?: PluginListInput, requestOptions?: RequestOptions) => Promise<PluginListOutput>;
|
|
23
|
-
};
|
|
24
|
-
session: {
|
|
25
|
-
list: (input?: SessionListInput, requestOptions?: RequestOptions) => Promise<SessionListOutput>;
|
|
26
|
-
create: (input?: SessionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
27
|
-
readonly id: string;
|
|
28
|
-
readonly parentID?: string;
|
|
29
|
-
readonly projectID: string;
|
|
30
|
-
readonly agent?: string;
|
|
31
|
-
readonly model?: {
|
|
32
|
-
readonly id: string;
|
|
33
|
-
readonly providerID: string;
|
|
34
|
-
readonly variant?: string;
|
|
35
|
-
};
|
|
36
|
-
readonly cost: number;
|
|
37
|
-
readonly tokens: {
|
|
38
|
-
readonly input: number;
|
|
39
|
-
readonly output: number;
|
|
40
|
-
readonly reasoning: number;
|
|
41
|
-
readonly cache: {
|
|
42
|
-
readonly read: number;
|
|
43
|
-
readonly write: number;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
readonly time: {
|
|
47
|
-
readonly created: number;
|
|
48
|
-
readonly updated: number;
|
|
49
|
-
readonly archived?: number;
|
|
50
|
-
};
|
|
51
|
-
readonly title: string;
|
|
52
|
-
readonly location: {
|
|
53
|
-
readonly directory: string;
|
|
54
|
-
readonly workspaceID?: string;
|
|
55
|
-
};
|
|
56
|
-
readonly subpath?: string;
|
|
57
|
-
readonly revert?: {
|
|
58
|
-
readonly messageID: string;
|
|
59
|
-
readonly partID?: string;
|
|
60
|
-
readonly snapshot?: string;
|
|
61
|
-
readonly diff?: string;
|
|
62
|
-
readonly files?: ReadonlyArray<{
|
|
63
|
-
readonly path: string;
|
|
64
|
-
readonly status: "added" | "modified" | "deleted";
|
|
65
|
-
readonly additions: number;
|
|
66
|
-
readonly deletions: number;
|
|
67
|
-
readonly patch: string;
|
|
68
|
-
}>;
|
|
69
|
-
};
|
|
70
|
-
}>;
|
|
71
|
-
active: (requestOptions?: RequestOptions) => Promise<SessionActiveOutput>;
|
|
72
|
-
get: (input: SessionGetInput, requestOptions?: RequestOptions) => Promise<{
|
|
73
|
-
readonly id: string;
|
|
74
|
-
readonly parentID?: string;
|
|
75
|
-
readonly projectID: string;
|
|
76
|
-
readonly agent?: string;
|
|
77
|
-
readonly model?: {
|
|
78
|
-
readonly id: string;
|
|
79
|
-
readonly providerID: string;
|
|
80
|
-
readonly variant?: string;
|
|
81
|
-
};
|
|
82
|
-
readonly cost: number;
|
|
83
|
-
readonly tokens: {
|
|
84
|
-
readonly input: number;
|
|
85
|
-
readonly output: number;
|
|
86
|
-
readonly reasoning: number;
|
|
87
|
-
readonly cache: {
|
|
88
|
-
readonly read: number;
|
|
89
|
-
readonly write: number;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
readonly time: {
|
|
93
|
-
readonly created: number;
|
|
94
|
-
readonly updated: number;
|
|
95
|
-
readonly archived?: number;
|
|
96
|
-
};
|
|
97
|
-
readonly title: string;
|
|
98
|
-
readonly location: {
|
|
99
|
-
readonly directory: string;
|
|
100
|
-
readonly workspaceID?: string;
|
|
101
|
-
};
|
|
102
|
-
readonly subpath?: string;
|
|
103
|
-
readonly revert?: {
|
|
104
|
-
readonly messageID: string;
|
|
105
|
-
readonly partID?: string;
|
|
106
|
-
readonly snapshot?: string;
|
|
107
|
-
readonly diff?: string;
|
|
108
|
-
readonly files?: ReadonlyArray<{
|
|
109
|
-
readonly path: string;
|
|
110
|
-
readonly status: "added" | "modified" | "deleted";
|
|
111
|
-
readonly additions: number;
|
|
112
|
-
readonly deletions: number;
|
|
113
|
-
readonly patch: string;
|
|
114
|
-
}>;
|
|
115
|
-
};
|
|
116
|
-
}>;
|
|
117
|
-
fork: (input: SessionForkInput, requestOptions?: RequestOptions) => Promise<{
|
|
118
|
-
readonly id: string;
|
|
119
|
-
readonly parentID?: string;
|
|
120
|
-
readonly projectID: string;
|
|
121
|
-
readonly agent?: string;
|
|
122
|
-
readonly model?: {
|
|
123
|
-
readonly id: string;
|
|
124
|
-
readonly providerID: string;
|
|
125
|
-
readonly variant?: string;
|
|
126
|
-
};
|
|
127
|
-
readonly cost: number;
|
|
128
|
-
readonly tokens: {
|
|
129
|
-
readonly input: number;
|
|
130
|
-
readonly output: number;
|
|
131
|
-
readonly reasoning: number;
|
|
132
|
-
readonly cache: {
|
|
133
|
-
readonly read: number;
|
|
134
|
-
readonly write: number;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
readonly time: {
|
|
138
|
-
readonly created: number;
|
|
139
|
-
readonly updated: number;
|
|
140
|
-
readonly archived?: number;
|
|
141
|
-
};
|
|
142
|
-
readonly title: string;
|
|
143
|
-
readonly location: {
|
|
144
|
-
readonly directory: string;
|
|
145
|
-
readonly workspaceID?: string;
|
|
146
|
-
};
|
|
147
|
-
readonly subpath?: string;
|
|
148
|
-
readonly revert?: {
|
|
149
|
-
readonly messageID: string;
|
|
150
|
-
readonly partID?: string;
|
|
151
|
-
readonly snapshot?: string;
|
|
152
|
-
readonly diff?: string;
|
|
153
|
-
readonly files?: ReadonlyArray<{
|
|
154
|
-
readonly path: string;
|
|
155
|
-
readonly status: "added" | "modified" | "deleted";
|
|
156
|
-
readonly additions: number;
|
|
157
|
-
readonly deletions: number;
|
|
158
|
-
readonly patch: string;
|
|
159
|
-
}>;
|
|
160
|
-
};
|
|
161
|
-
}>;
|
|
162
|
-
switchAgent: (input: SessionSwitchAgentInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
163
|
-
switchModel: (input: SessionSwitchModelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
164
|
-
rename: (input: SessionRenameInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
165
|
-
prompt: (input: SessionPromptInput, requestOptions?: RequestOptions) => Promise<{
|
|
166
|
-
readonly admittedSeq: number;
|
|
167
|
-
readonly id: string;
|
|
168
|
-
readonly sessionID: string;
|
|
169
|
-
readonly prompt: {
|
|
170
|
-
readonly text: string;
|
|
171
|
-
readonly files?: ReadonlyArray<{
|
|
172
|
-
readonly uri: string;
|
|
173
|
-
readonly mime: string;
|
|
174
|
-
readonly name?: string;
|
|
175
|
-
readonly description?: string;
|
|
176
|
-
readonly source?: {
|
|
177
|
-
readonly start: number;
|
|
178
|
-
readonly end: number;
|
|
179
|
-
readonly text: string;
|
|
180
|
-
};
|
|
181
|
-
}>;
|
|
182
|
-
readonly agents?: ReadonlyArray<{
|
|
183
|
-
readonly name: string;
|
|
184
|
-
readonly source?: {
|
|
185
|
-
readonly start: number;
|
|
186
|
-
readonly end: number;
|
|
187
|
-
readonly text: string;
|
|
188
|
-
};
|
|
189
|
-
}>;
|
|
190
|
-
};
|
|
191
|
-
readonly delivery: "steer" | "queue";
|
|
192
|
-
readonly timeCreated: number;
|
|
193
|
-
readonly promotedSeq?: number;
|
|
194
|
-
}>;
|
|
195
|
-
command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<{
|
|
196
|
-
readonly admittedSeq: number;
|
|
197
|
-
readonly id: string;
|
|
198
|
-
readonly sessionID: string;
|
|
199
|
-
readonly prompt: {
|
|
200
|
-
readonly text: string;
|
|
201
|
-
readonly files?: ReadonlyArray<{
|
|
202
|
-
readonly uri: string;
|
|
203
|
-
readonly mime: string;
|
|
204
|
-
readonly name?: string;
|
|
205
|
-
readonly description?: string;
|
|
206
|
-
readonly source?: {
|
|
207
|
-
readonly start: number;
|
|
208
|
-
readonly end: number;
|
|
209
|
-
readonly text: string;
|
|
210
|
-
};
|
|
211
|
-
}>;
|
|
212
|
-
readonly agents?: ReadonlyArray<{
|
|
213
|
-
readonly name: string;
|
|
214
|
-
readonly source?: {
|
|
215
|
-
readonly start: number;
|
|
216
|
-
readonly end: number;
|
|
217
|
-
readonly text: string;
|
|
218
|
-
};
|
|
219
|
-
}>;
|
|
220
|
-
};
|
|
221
|
-
readonly delivery: "steer" | "queue";
|
|
222
|
-
readonly timeCreated: number;
|
|
223
|
-
readonly promotedSeq?: number;
|
|
224
|
-
}>;
|
|
225
|
-
skill: (input: SessionSkillInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
226
|
-
synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
227
|
-
shell: (input: SessionShellInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
228
|
-
compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
229
|
-
wait: (input: SessionWaitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
230
|
-
revertStage: (input: SessionRevertStageInput, requestOptions?: RequestOptions) => Promise<{
|
|
231
|
-
readonly messageID: string;
|
|
232
|
-
readonly partID?: string;
|
|
233
|
-
readonly snapshot?: string;
|
|
234
|
-
readonly diff?: string;
|
|
235
|
-
readonly files?: ReadonlyArray<{
|
|
236
|
-
readonly path: string;
|
|
237
|
-
readonly status: "added" | "modified" | "deleted";
|
|
238
|
-
readonly additions: number;
|
|
239
|
-
readonly deletions: number;
|
|
240
|
-
readonly patch: string;
|
|
241
|
-
}>;
|
|
242
|
-
}>;
|
|
243
|
-
revertClear: (input: SessionRevertClearInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
244
|
-
revertCommit: (input: SessionRevertCommitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
245
|
-
context: (input: SessionContextInput, requestOptions?: RequestOptions) => Promise<readonly ({
|
|
246
|
-
readonly id: string;
|
|
247
|
-
readonly metadata?: {
|
|
248
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
249
|
-
};
|
|
250
|
-
readonly time: {
|
|
251
|
-
readonly created: number;
|
|
252
|
-
};
|
|
253
|
-
readonly type: "agent-switched";
|
|
254
|
-
readonly agent: string;
|
|
255
|
-
} | {
|
|
256
|
-
readonly id: string;
|
|
257
|
-
readonly metadata?: {
|
|
258
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
259
|
-
};
|
|
260
|
-
readonly time: {
|
|
261
|
-
readonly created: number;
|
|
262
|
-
};
|
|
263
|
-
readonly type: "model-switched";
|
|
264
|
-
readonly model: {
|
|
265
|
-
readonly id: string;
|
|
266
|
-
readonly providerID: string;
|
|
267
|
-
readonly variant?: string;
|
|
268
|
-
};
|
|
269
|
-
readonly previous?: {
|
|
270
|
-
readonly id: string;
|
|
271
|
-
readonly providerID: string;
|
|
272
|
-
readonly variant?: string;
|
|
273
|
-
};
|
|
274
|
-
} | {
|
|
275
|
-
readonly id: string;
|
|
276
|
-
readonly metadata?: {
|
|
277
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
278
|
-
};
|
|
279
|
-
readonly time: {
|
|
280
|
-
readonly created: number;
|
|
281
|
-
};
|
|
282
|
-
readonly text: string;
|
|
283
|
-
readonly files?: ReadonlyArray<{
|
|
284
|
-
readonly uri: string;
|
|
285
|
-
readonly mime: string;
|
|
286
|
-
readonly name?: string;
|
|
287
|
-
readonly description?: string;
|
|
288
|
-
readonly source?: {
|
|
289
|
-
readonly start: number;
|
|
290
|
-
readonly end: number;
|
|
291
|
-
readonly text: string;
|
|
292
|
-
};
|
|
293
|
-
}>;
|
|
294
|
-
readonly agents?: ReadonlyArray<{
|
|
295
|
-
readonly name: string;
|
|
296
|
-
readonly source?: {
|
|
297
|
-
readonly start: number;
|
|
298
|
-
readonly end: number;
|
|
299
|
-
readonly text: string;
|
|
300
|
-
};
|
|
301
|
-
}>;
|
|
302
|
-
readonly type: "user";
|
|
303
|
-
} | {
|
|
304
|
-
readonly id: string;
|
|
305
|
-
readonly metadata?: {
|
|
306
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
307
|
-
};
|
|
308
|
-
readonly time: {
|
|
309
|
-
readonly created: number;
|
|
310
|
-
};
|
|
311
|
-
readonly sessionID: string;
|
|
312
|
-
readonly text: string;
|
|
313
|
-
readonly description?: string;
|
|
314
|
-
readonly type: "synthetic";
|
|
315
|
-
} | {
|
|
316
|
-
readonly id: string;
|
|
317
|
-
readonly metadata?: {
|
|
318
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
319
|
-
};
|
|
320
|
-
readonly time: {
|
|
321
|
-
readonly created: number;
|
|
322
|
-
};
|
|
323
|
-
readonly type: "system";
|
|
324
|
-
readonly text: string;
|
|
325
|
-
} | {
|
|
326
|
-
readonly id: string;
|
|
327
|
-
readonly metadata?: {
|
|
328
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
329
|
-
};
|
|
330
|
-
readonly time: {
|
|
331
|
-
readonly created: number;
|
|
332
|
-
};
|
|
333
|
-
readonly type: "skill";
|
|
334
|
-
readonly name: string;
|
|
335
|
-
readonly text: string;
|
|
336
|
-
} | {
|
|
337
|
-
readonly id: string;
|
|
338
|
-
readonly metadata?: {
|
|
339
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
340
|
-
};
|
|
341
|
-
readonly time: {
|
|
342
|
-
readonly created: number;
|
|
343
|
-
readonly completed?: number;
|
|
344
|
-
};
|
|
345
|
-
readonly type: "shell";
|
|
346
|
-
readonly shell: {
|
|
347
|
-
readonly id: string;
|
|
348
|
-
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
349
|
-
readonly command: string;
|
|
350
|
-
readonly cwd: string;
|
|
351
|
-
readonly shell: string;
|
|
352
|
-
readonly file: string;
|
|
353
|
-
readonly pid?: number;
|
|
354
|
-
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
355
|
-
readonly metadata: {
|
|
356
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
357
|
-
};
|
|
358
|
-
readonly time: {
|
|
359
|
-
readonly started: number | "Infinity" | "-Infinity" | "NaN";
|
|
360
|
-
readonly completed?: number | "Infinity" | "-Infinity" | "NaN";
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
readonly output?: {
|
|
364
|
-
readonly output: string;
|
|
365
|
-
readonly cursor: number;
|
|
366
|
-
readonly size: number;
|
|
367
|
-
readonly truncated: boolean;
|
|
368
|
-
};
|
|
369
|
-
} | {
|
|
370
|
-
readonly id: string;
|
|
371
|
-
readonly metadata?: {
|
|
372
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
373
|
-
};
|
|
374
|
-
readonly time: {
|
|
375
|
-
readonly created: number;
|
|
376
|
-
readonly completed?: number;
|
|
377
|
-
};
|
|
378
|
-
readonly type: "assistant";
|
|
379
|
-
readonly agent: string;
|
|
380
|
-
readonly model: {
|
|
381
|
-
readonly id: string;
|
|
382
|
-
readonly providerID: string;
|
|
383
|
-
readonly variant?: string;
|
|
384
|
-
};
|
|
385
|
-
readonly content: ReadonlyArray<{
|
|
386
|
-
readonly type: "text";
|
|
387
|
-
readonly id: string;
|
|
388
|
-
readonly text: string;
|
|
389
|
-
} | {
|
|
390
|
-
readonly type: "reasoning";
|
|
391
|
-
readonly id: string;
|
|
392
|
-
readonly text: string;
|
|
393
|
-
readonly providerMetadata?: {
|
|
394
|
-
readonly [x: string]: {
|
|
395
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
readonly time?: {
|
|
399
|
-
readonly created: number;
|
|
400
|
-
readonly completed?: number;
|
|
401
|
-
};
|
|
402
|
-
} | {
|
|
403
|
-
readonly type: "tool";
|
|
404
|
-
readonly id: string;
|
|
405
|
-
readonly name: string;
|
|
406
|
-
readonly provider?: {
|
|
407
|
-
readonly executed: boolean;
|
|
408
|
-
readonly metadata?: {
|
|
409
|
-
readonly [x: string]: {
|
|
410
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
readonly resultMetadata?: {
|
|
414
|
-
readonly [x: string]: {
|
|
415
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
readonly state: {
|
|
420
|
-
readonly status: "pending";
|
|
421
|
-
readonly input: string;
|
|
422
|
-
} | {
|
|
423
|
-
readonly status: "running";
|
|
424
|
-
readonly input: {
|
|
425
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
426
|
-
};
|
|
427
|
-
readonly structured: {
|
|
428
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
429
|
-
};
|
|
430
|
-
readonly content: ReadonlyArray<{
|
|
431
|
-
readonly type: "text";
|
|
432
|
-
readonly text: string;
|
|
433
|
-
} | {
|
|
434
|
-
readonly type: "file";
|
|
435
|
-
readonly uri: string;
|
|
436
|
-
readonly mime: string;
|
|
437
|
-
readonly name?: string;
|
|
438
|
-
}>;
|
|
439
|
-
} | {
|
|
440
|
-
readonly status: "completed";
|
|
441
|
-
readonly input: {
|
|
442
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
443
|
-
};
|
|
444
|
-
readonly attachments?: ReadonlyArray<{
|
|
445
|
-
readonly uri: string;
|
|
446
|
-
readonly mime: string;
|
|
447
|
-
readonly name?: string;
|
|
448
|
-
readonly description?: string;
|
|
449
|
-
readonly source?: {
|
|
450
|
-
readonly start: number;
|
|
451
|
-
readonly end: number;
|
|
452
|
-
readonly text: string;
|
|
453
|
-
};
|
|
454
|
-
}>;
|
|
455
|
-
readonly content: ReadonlyArray<{
|
|
456
|
-
readonly type: "text";
|
|
457
|
-
readonly text: string;
|
|
458
|
-
} | {
|
|
459
|
-
readonly type: "file";
|
|
460
|
-
readonly uri: string;
|
|
461
|
-
readonly mime: string;
|
|
462
|
-
readonly name?: string;
|
|
463
|
-
}>;
|
|
464
|
-
readonly outputPaths?: ReadonlyArray<string>;
|
|
465
|
-
readonly structured: {
|
|
466
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
467
|
-
};
|
|
468
|
-
readonly result?: import("./types").JsonValue;
|
|
469
|
-
} | {
|
|
470
|
-
readonly status: "error";
|
|
471
|
-
readonly input: {
|
|
472
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
473
|
-
};
|
|
474
|
-
readonly content: ReadonlyArray<{
|
|
475
|
-
readonly type: "text";
|
|
476
|
-
readonly text: string;
|
|
477
|
-
} | {
|
|
478
|
-
readonly type: "file";
|
|
479
|
-
readonly uri: string;
|
|
480
|
-
readonly mime: string;
|
|
481
|
-
readonly name?: string;
|
|
482
|
-
}>;
|
|
483
|
-
readonly structured: {
|
|
484
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
485
|
-
};
|
|
486
|
-
readonly error: {
|
|
487
|
-
readonly type: "unknown";
|
|
488
|
-
readonly message: string;
|
|
489
|
-
};
|
|
490
|
-
readonly result?: import("./types").JsonValue;
|
|
491
|
-
};
|
|
492
|
-
readonly time: {
|
|
493
|
-
readonly created: number;
|
|
494
|
-
readonly ran?: number;
|
|
495
|
-
readonly completed?: number;
|
|
496
|
-
readonly pruned?: number;
|
|
497
|
-
};
|
|
498
|
-
}>;
|
|
499
|
-
readonly snapshot?: {
|
|
500
|
-
readonly start?: string;
|
|
501
|
-
readonly end?: string;
|
|
502
|
-
readonly files?: ReadonlyArray<string>;
|
|
503
|
-
};
|
|
504
|
-
readonly finish?: string;
|
|
505
|
-
readonly cost?: number;
|
|
506
|
-
readonly tokens?: {
|
|
507
|
-
readonly input: number;
|
|
508
|
-
readonly output: number;
|
|
509
|
-
readonly reasoning: number;
|
|
510
|
-
readonly cache: {
|
|
511
|
-
readonly read: number;
|
|
512
|
-
readonly write: number;
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
readonly error?: {
|
|
516
|
-
readonly type: "unknown";
|
|
517
|
-
readonly message: string;
|
|
518
|
-
};
|
|
519
|
-
} | {
|
|
520
|
-
readonly type: "compaction";
|
|
521
|
-
readonly reason: "auto" | "manual";
|
|
522
|
-
readonly summary: string;
|
|
523
|
-
readonly recent: string;
|
|
524
|
-
readonly id: string;
|
|
525
|
-
readonly metadata?: {
|
|
526
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
527
|
-
};
|
|
528
|
-
readonly time: {
|
|
529
|
-
readonly created: number;
|
|
530
|
-
};
|
|
531
|
-
})[]>;
|
|
532
|
-
listContextEntries: (input: SessionListContextEntriesInput, requestOptions?: RequestOptions) => Promise<readonly {
|
|
533
|
-
readonly key: string;
|
|
534
|
-
readonly value: import("./types").JsonValue;
|
|
535
|
-
}[]>;
|
|
536
|
-
putContextEntry: (input: SessionPutContextEntryInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
537
|
-
removeContextEntry: (input: SessionRemoveContextEntryInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
538
|
-
log: (input: SessionLogInput, requestOptions?: RequestOptions) => AsyncIterable<SessionLogOutput>;
|
|
539
|
-
interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
540
|
-
background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
541
|
-
message: (input: SessionMessageInput, requestOptions?: RequestOptions) => Promise<{
|
|
542
|
-
readonly id: string;
|
|
543
|
-
readonly metadata?: {
|
|
544
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
545
|
-
};
|
|
546
|
-
readonly time: {
|
|
547
|
-
readonly created: number;
|
|
548
|
-
};
|
|
549
|
-
readonly type: "agent-switched";
|
|
550
|
-
readonly agent: string;
|
|
551
|
-
} | {
|
|
552
|
-
readonly id: string;
|
|
553
|
-
readonly metadata?: {
|
|
554
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
555
|
-
};
|
|
556
|
-
readonly time: {
|
|
557
|
-
readonly created: number;
|
|
558
|
-
};
|
|
559
|
-
readonly type: "model-switched";
|
|
560
|
-
readonly model: {
|
|
561
|
-
readonly id: string;
|
|
562
|
-
readonly providerID: string;
|
|
563
|
-
readonly variant?: string;
|
|
564
|
-
};
|
|
565
|
-
readonly previous?: {
|
|
566
|
-
readonly id: string;
|
|
567
|
-
readonly providerID: string;
|
|
568
|
-
readonly variant?: string;
|
|
569
|
-
};
|
|
570
|
-
} | {
|
|
571
|
-
readonly id: string;
|
|
572
|
-
readonly metadata?: {
|
|
573
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
574
|
-
};
|
|
575
|
-
readonly time: {
|
|
576
|
-
readonly created: number;
|
|
577
|
-
};
|
|
578
|
-
readonly text: string;
|
|
579
|
-
readonly files?: ReadonlyArray<{
|
|
580
|
-
readonly uri: string;
|
|
581
|
-
readonly mime: string;
|
|
582
|
-
readonly name?: string;
|
|
583
|
-
readonly description?: string;
|
|
584
|
-
readonly source?: {
|
|
585
|
-
readonly start: number;
|
|
586
|
-
readonly end: number;
|
|
587
|
-
readonly text: string;
|
|
588
|
-
};
|
|
589
|
-
}>;
|
|
590
|
-
readonly agents?: ReadonlyArray<{
|
|
591
|
-
readonly name: string;
|
|
592
|
-
readonly source?: {
|
|
593
|
-
readonly start: number;
|
|
594
|
-
readonly end: number;
|
|
595
|
-
readonly text: string;
|
|
596
|
-
};
|
|
597
|
-
}>;
|
|
598
|
-
readonly type: "user";
|
|
599
|
-
} | {
|
|
600
|
-
readonly id: string;
|
|
601
|
-
readonly metadata?: {
|
|
602
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
603
|
-
};
|
|
604
|
-
readonly time: {
|
|
605
|
-
readonly created: number;
|
|
606
|
-
};
|
|
607
|
-
readonly sessionID: string;
|
|
608
|
-
readonly text: string;
|
|
609
|
-
readonly description?: string;
|
|
610
|
-
readonly type: "synthetic";
|
|
611
|
-
} | {
|
|
612
|
-
readonly id: string;
|
|
613
|
-
readonly metadata?: {
|
|
614
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
615
|
-
};
|
|
616
|
-
readonly time: {
|
|
617
|
-
readonly created: number;
|
|
618
|
-
};
|
|
619
|
-
readonly type: "system";
|
|
620
|
-
readonly text: string;
|
|
621
|
-
} | {
|
|
622
|
-
readonly id: string;
|
|
623
|
-
readonly metadata?: {
|
|
624
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
625
|
-
};
|
|
626
|
-
readonly time: {
|
|
627
|
-
readonly created: number;
|
|
628
|
-
};
|
|
629
|
-
readonly type: "skill";
|
|
630
|
-
readonly name: string;
|
|
631
|
-
readonly text: string;
|
|
632
|
-
} | {
|
|
633
|
-
readonly id: string;
|
|
634
|
-
readonly metadata?: {
|
|
635
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
636
|
-
};
|
|
637
|
-
readonly time: {
|
|
638
|
-
readonly created: number;
|
|
639
|
-
readonly completed?: number;
|
|
640
|
-
};
|
|
641
|
-
readonly type: "shell";
|
|
642
|
-
readonly shell: {
|
|
643
|
-
readonly id: string;
|
|
644
|
-
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
645
|
-
readonly command: string;
|
|
646
|
-
readonly cwd: string;
|
|
647
|
-
readonly shell: string;
|
|
648
|
-
readonly file: string;
|
|
649
|
-
readonly pid?: number;
|
|
650
|
-
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
651
|
-
readonly metadata: {
|
|
652
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
653
|
-
};
|
|
654
|
-
readonly time: {
|
|
655
|
-
readonly started: number | "Infinity" | "-Infinity" | "NaN";
|
|
656
|
-
readonly completed?: number | "Infinity" | "-Infinity" | "NaN";
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
readonly output?: {
|
|
660
|
-
readonly output: string;
|
|
661
|
-
readonly cursor: number;
|
|
662
|
-
readonly size: number;
|
|
663
|
-
readonly truncated: boolean;
|
|
664
|
-
};
|
|
665
|
-
} | {
|
|
666
|
-
readonly id: string;
|
|
667
|
-
readonly metadata?: {
|
|
668
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
669
|
-
};
|
|
670
|
-
readonly time: {
|
|
671
|
-
readonly created: number;
|
|
672
|
-
readonly completed?: number;
|
|
673
|
-
};
|
|
674
|
-
readonly type: "assistant";
|
|
675
|
-
readonly agent: string;
|
|
676
|
-
readonly model: {
|
|
677
|
-
readonly id: string;
|
|
678
|
-
readonly providerID: string;
|
|
679
|
-
readonly variant?: string;
|
|
680
|
-
};
|
|
681
|
-
readonly content: ReadonlyArray<{
|
|
682
|
-
readonly type: "text";
|
|
683
|
-
readonly id: string;
|
|
684
|
-
readonly text: string;
|
|
685
|
-
} | {
|
|
686
|
-
readonly type: "reasoning";
|
|
687
|
-
readonly id: string;
|
|
688
|
-
readonly text: string;
|
|
689
|
-
readonly providerMetadata?: {
|
|
690
|
-
readonly [x: string]: {
|
|
691
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
692
|
-
};
|
|
693
|
-
};
|
|
694
|
-
readonly time?: {
|
|
695
|
-
readonly created: number;
|
|
696
|
-
readonly completed?: number;
|
|
697
|
-
};
|
|
698
|
-
} | {
|
|
699
|
-
readonly type: "tool";
|
|
700
|
-
readonly id: string;
|
|
701
|
-
readonly name: string;
|
|
702
|
-
readonly provider?: {
|
|
703
|
-
readonly executed: boolean;
|
|
704
|
-
readonly metadata?: {
|
|
705
|
-
readonly [x: string]: {
|
|
706
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
707
|
-
};
|
|
708
|
-
};
|
|
709
|
-
readonly resultMetadata?: {
|
|
710
|
-
readonly [x: string]: {
|
|
711
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
};
|
|
715
|
-
readonly state: {
|
|
716
|
-
readonly status: "pending";
|
|
717
|
-
readonly input: string;
|
|
718
|
-
} | {
|
|
719
|
-
readonly status: "running";
|
|
720
|
-
readonly input: {
|
|
721
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
722
|
-
};
|
|
723
|
-
readonly structured: {
|
|
724
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
725
|
-
};
|
|
726
|
-
readonly content: ReadonlyArray<{
|
|
727
|
-
readonly type: "text";
|
|
728
|
-
readonly text: string;
|
|
729
|
-
} | {
|
|
730
|
-
readonly type: "file";
|
|
731
|
-
readonly uri: string;
|
|
732
|
-
readonly mime: string;
|
|
733
|
-
readonly name?: string;
|
|
734
|
-
}>;
|
|
735
|
-
} | {
|
|
736
|
-
readonly status: "completed";
|
|
737
|
-
readonly input: {
|
|
738
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
739
|
-
};
|
|
740
|
-
readonly attachments?: ReadonlyArray<{
|
|
741
|
-
readonly uri: string;
|
|
742
|
-
readonly mime: string;
|
|
743
|
-
readonly name?: string;
|
|
744
|
-
readonly description?: string;
|
|
745
|
-
readonly source?: {
|
|
746
|
-
readonly start: number;
|
|
747
|
-
readonly end: number;
|
|
748
|
-
readonly text: string;
|
|
749
|
-
};
|
|
750
|
-
}>;
|
|
751
|
-
readonly content: ReadonlyArray<{
|
|
752
|
-
readonly type: "text";
|
|
753
|
-
readonly text: string;
|
|
754
|
-
} | {
|
|
755
|
-
readonly type: "file";
|
|
756
|
-
readonly uri: string;
|
|
757
|
-
readonly mime: string;
|
|
758
|
-
readonly name?: string;
|
|
759
|
-
}>;
|
|
760
|
-
readonly outputPaths?: ReadonlyArray<string>;
|
|
761
|
-
readonly structured: {
|
|
762
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
763
|
-
};
|
|
764
|
-
readonly result?: import("./types").JsonValue;
|
|
765
|
-
} | {
|
|
766
|
-
readonly status: "error";
|
|
767
|
-
readonly input: {
|
|
768
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
769
|
-
};
|
|
770
|
-
readonly content: ReadonlyArray<{
|
|
771
|
-
readonly type: "text";
|
|
772
|
-
readonly text: string;
|
|
773
|
-
} | {
|
|
774
|
-
readonly type: "file";
|
|
775
|
-
readonly uri: string;
|
|
776
|
-
readonly mime: string;
|
|
777
|
-
readonly name?: string;
|
|
778
|
-
}>;
|
|
779
|
-
readonly structured: {
|
|
780
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
781
|
-
};
|
|
782
|
-
readonly error: {
|
|
783
|
-
readonly type: "unknown";
|
|
784
|
-
readonly message: string;
|
|
785
|
-
};
|
|
786
|
-
readonly result?: import("./types").JsonValue;
|
|
787
|
-
};
|
|
788
|
-
readonly time: {
|
|
789
|
-
readonly created: number;
|
|
790
|
-
readonly ran?: number;
|
|
791
|
-
readonly completed?: number;
|
|
792
|
-
readonly pruned?: number;
|
|
793
|
-
};
|
|
794
|
-
}>;
|
|
795
|
-
readonly snapshot?: {
|
|
796
|
-
readonly start?: string;
|
|
797
|
-
readonly end?: string;
|
|
798
|
-
readonly files?: ReadonlyArray<string>;
|
|
799
|
-
};
|
|
800
|
-
readonly finish?: string;
|
|
801
|
-
readonly cost?: number;
|
|
802
|
-
readonly tokens?: {
|
|
803
|
-
readonly input: number;
|
|
804
|
-
readonly output: number;
|
|
805
|
-
readonly reasoning: number;
|
|
806
|
-
readonly cache: {
|
|
807
|
-
readonly read: number;
|
|
808
|
-
readonly write: number;
|
|
809
|
-
};
|
|
810
|
-
};
|
|
811
|
-
readonly error?: {
|
|
812
|
-
readonly type: "unknown";
|
|
813
|
-
readonly message: string;
|
|
814
|
-
};
|
|
815
|
-
} | {
|
|
816
|
-
readonly type: "compaction";
|
|
817
|
-
readonly reason: "auto" | "manual";
|
|
818
|
-
readonly summary: string;
|
|
819
|
-
readonly recent: string;
|
|
820
|
-
readonly id: string;
|
|
821
|
-
readonly metadata?: {
|
|
822
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
823
|
-
};
|
|
824
|
-
readonly time: {
|
|
825
|
-
readonly created: number;
|
|
826
|
-
};
|
|
827
|
-
}>;
|
|
828
|
-
};
|
|
829
|
-
message: {
|
|
830
|
-
list: (input: MessageListInput, requestOptions?: RequestOptions) => Promise<MessageListOutput>;
|
|
831
|
-
};
|
|
832
|
-
model: {
|
|
833
|
-
list: (input?: ModelListInput, requestOptions?: RequestOptions) => Promise<ModelListOutput>;
|
|
834
|
-
default: (input?: ModelDefaultInput, requestOptions?: RequestOptions) => Promise<ModelDefaultOutput>;
|
|
835
|
-
};
|
|
836
|
-
generate: {
|
|
837
|
-
text: (input: GenerateTextInput, requestOptions?: RequestOptions) => Promise<{
|
|
838
|
-
readonly text: string;
|
|
839
|
-
}>;
|
|
840
|
-
};
|
|
841
|
-
provider: {
|
|
842
|
-
list: (input?: ProviderListInput, requestOptions?: RequestOptions) => Promise<ProviderListOutput>;
|
|
843
|
-
get: (input: ProviderGetInput, requestOptions?: RequestOptions) => Promise<ProviderGetOutput>;
|
|
844
|
-
};
|
|
845
|
-
integration: {
|
|
846
|
-
list: (input?: IntegrationListInput, requestOptions?: RequestOptions) => Promise<IntegrationListOutput>;
|
|
847
|
-
get: (input: IntegrationGetInput, requestOptions?: RequestOptions) => Promise<IntegrationGetOutput>;
|
|
848
|
-
connectKey: (input: IntegrationConnectKeyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
849
|
-
connectOauth: (input: IntegrationConnectOauthInput, requestOptions?: RequestOptions) => Promise<IntegrationConnectOauthOutput>;
|
|
850
|
-
attemptStatus: (input: IntegrationAttemptStatusInput, requestOptions?: RequestOptions) => Promise<IntegrationAttemptStatusOutput>;
|
|
851
|
-
attemptComplete: (input: IntegrationAttemptCompleteInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
852
|
-
attemptCancel: (input: IntegrationAttemptCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
853
|
-
};
|
|
854
|
-
"server.mcp": {
|
|
855
|
-
list: (input?: ServerMcpListInput, requestOptions?: RequestOptions) => Promise<ServerMcpListOutput>;
|
|
856
|
-
};
|
|
857
|
-
credential: {
|
|
858
|
-
update: (input: CredentialUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
859
|
-
remove: (input: CredentialRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
860
|
-
};
|
|
861
|
-
project: {
|
|
862
|
-
current: (input?: ProjectCurrentInput, requestOptions?: RequestOptions) => Promise<ProjectCurrentOutput>;
|
|
863
|
-
directories: (input: ProjectDirectoriesInput, requestOptions?: RequestOptions) => Promise<ProjectDirectoriesOutput>;
|
|
864
|
-
};
|
|
865
|
-
form: {
|
|
866
|
-
listRequests: (input?: FormListRequestsInput, requestOptions?: RequestOptions) => Promise<FormListRequestsOutput>;
|
|
867
|
-
list: (input: FormListInput, requestOptions?: RequestOptions) => Promise<readonly ({
|
|
868
|
-
readonly id: string;
|
|
869
|
-
readonly sessionID: string;
|
|
870
|
-
readonly title?: string;
|
|
871
|
-
readonly metadata?: {
|
|
872
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
873
|
-
};
|
|
874
|
-
readonly mode: "form";
|
|
875
|
-
readonly fields: ReadonlyArray<{
|
|
876
|
-
readonly key: string;
|
|
877
|
-
readonly title?: string;
|
|
878
|
-
readonly description?: string;
|
|
879
|
-
readonly required?: boolean;
|
|
880
|
-
readonly when?: ReadonlyArray<{
|
|
881
|
-
readonly key: string;
|
|
882
|
-
readonly op: "eq" | "neq";
|
|
883
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
884
|
-
}>;
|
|
885
|
-
readonly type: "string";
|
|
886
|
-
readonly format?: "email" | "uri" | "date" | "date-time";
|
|
887
|
-
readonly minLength?: number;
|
|
888
|
-
readonly maxLength?: number;
|
|
889
|
-
readonly pattern?: string;
|
|
890
|
-
readonly placeholder?: string;
|
|
891
|
-
readonly default?: string;
|
|
892
|
-
readonly options?: ReadonlyArray<{
|
|
893
|
-
readonly value: string;
|
|
894
|
-
readonly label: string;
|
|
895
|
-
readonly description?: string;
|
|
896
|
-
}>;
|
|
897
|
-
readonly custom?: boolean;
|
|
898
|
-
} | {
|
|
899
|
-
readonly key: string;
|
|
900
|
-
readonly title?: string;
|
|
901
|
-
readonly description?: string;
|
|
902
|
-
readonly required?: boolean;
|
|
903
|
-
readonly when?: ReadonlyArray<{
|
|
904
|
-
readonly key: string;
|
|
905
|
-
readonly op: "eq" | "neq";
|
|
906
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
907
|
-
}>;
|
|
908
|
-
readonly type: "number";
|
|
909
|
-
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
910
|
-
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
911
|
-
readonly default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
912
|
-
} | {
|
|
913
|
-
readonly key: string;
|
|
914
|
-
readonly title?: string;
|
|
915
|
-
readonly description?: string;
|
|
916
|
-
readonly required?: boolean;
|
|
917
|
-
readonly when?: ReadonlyArray<{
|
|
918
|
-
readonly key: string;
|
|
919
|
-
readonly op: "eq" | "neq";
|
|
920
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
921
|
-
}>;
|
|
922
|
-
readonly type: "integer";
|
|
923
|
-
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
924
|
-
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
925
|
-
readonly default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
926
|
-
} | {
|
|
927
|
-
readonly key: string;
|
|
928
|
-
readonly title?: string;
|
|
929
|
-
readonly description?: string;
|
|
930
|
-
readonly required?: boolean;
|
|
931
|
-
readonly when?: ReadonlyArray<{
|
|
932
|
-
readonly key: string;
|
|
933
|
-
readonly op: "eq" | "neq";
|
|
934
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
935
|
-
}>;
|
|
936
|
-
readonly type: "boolean";
|
|
937
|
-
readonly default?: boolean;
|
|
938
|
-
} | {
|
|
939
|
-
readonly key: string;
|
|
940
|
-
readonly title?: string;
|
|
941
|
-
readonly description?: string;
|
|
942
|
-
readonly required?: boolean;
|
|
943
|
-
readonly when?: ReadonlyArray<{
|
|
944
|
-
readonly key: string;
|
|
945
|
-
readonly op: "eq" | "neq";
|
|
946
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
947
|
-
}>;
|
|
948
|
-
readonly type: "multiselect";
|
|
949
|
-
readonly options: ReadonlyArray<{
|
|
950
|
-
readonly value: string;
|
|
951
|
-
readonly label: string;
|
|
952
|
-
readonly description?: string;
|
|
953
|
-
}>;
|
|
954
|
-
readonly minItems?: number;
|
|
955
|
-
readonly maxItems?: number;
|
|
956
|
-
readonly custom?: boolean;
|
|
957
|
-
readonly default?: ReadonlyArray<string>;
|
|
958
|
-
}>;
|
|
959
|
-
} | {
|
|
960
|
-
readonly id: string;
|
|
961
|
-
readonly sessionID: string;
|
|
962
|
-
readonly title?: string;
|
|
963
|
-
readonly metadata?: {
|
|
964
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
965
|
-
};
|
|
966
|
-
readonly mode: "url";
|
|
967
|
-
readonly url: string;
|
|
968
|
-
})[]>;
|
|
969
|
-
create: (input: FormCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
970
|
-
readonly id: string;
|
|
971
|
-
readonly sessionID: string;
|
|
972
|
-
readonly title?: string;
|
|
973
|
-
readonly metadata?: {
|
|
974
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
975
|
-
};
|
|
976
|
-
readonly mode: "form";
|
|
977
|
-
readonly fields: ReadonlyArray<{
|
|
978
|
-
readonly key: string;
|
|
979
|
-
readonly title?: string;
|
|
980
|
-
readonly description?: string;
|
|
981
|
-
readonly required?: boolean;
|
|
982
|
-
readonly when?: ReadonlyArray<{
|
|
983
|
-
readonly key: string;
|
|
984
|
-
readonly op: "eq" | "neq";
|
|
985
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
986
|
-
}>;
|
|
987
|
-
readonly type: "string";
|
|
988
|
-
readonly format?: "email" | "uri" | "date" | "date-time";
|
|
989
|
-
readonly minLength?: number;
|
|
990
|
-
readonly maxLength?: number;
|
|
991
|
-
readonly pattern?: string;
|
|
992
|
-
readonly placeholder?: string;
|
|
993
|
-
readonly default?: string;
|
|
994
|
-
readonly options?: ReadonlyArray<{
|
|
995
|
-
readonly value: string;
|
|
996
|
-
readonly label: string;
|
|
997
|
-
readonly description?: string;
|
|
998
|
-
}>;
|
|
999
|
-
readonly custom?: boolean;
|
|
1000
|
-
} | {
|
|
1001
|
-
readonly key: string;
|
|
1002
|
-
readonly title?: string;
|
|
1003
|
-
readonly description?: string;
|
|
1004
|
-
readonly required?: boolean;
|
|
1005
|
-
readonly when?: ReadonlyArray<{
|
|
1006
|
-
readonly key: string;
|
|
1007
|
-
readonly op: "eq" | "neq";
|
|
1008
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1009
|
-
}>;
|
|
1010
|
-
readonly type: "number";
|
|
1011
|
-
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1012
|
-
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1013
|
-
readonly default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1014
|
-
} | {
|
|
1015
|
-
readonly key: string;
|
|
1016
|
-
readonly title?: string;
|
|
1017
|
-
readonly description?: string;
|
|
1018
|
-
readonly required?: boolean;
|
|
1019
|
-
readonly when?: ReadonlyArray<{
|
|
1020
|
-
readonly key: string;
|
|
1021
|
-
readonly op: "eq" | "neq";
|
|
1022
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1023
|
-
}>;
|
|
1024
|
-
readonly type: "integer";
|
|
1025
|
-
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1026
|
-
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1027
|
-
readonly default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1028
|
-
} | {
|
|
1029
|
-
readonly key: string;
|
|
1030
|
-
readonly title?: string;
|
|
1031
|
-
readonly description?: string;
|
|
1032
|
-
readonly required?: boolean;
|
|
1033
|
-
readonly when?: ReadonlyArray<{
|
|
1034
|
-
readonly key: string;
|
|
1035
|
-
readonly op: "eq" | "neq";
|
|
1036
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1037
|
-
}>;
|
|
1038
|
-
readonly type: "boolean";
|
|
1039
|
-
readonly default?: boolean;
|
|
1040
|
-
} | {
|
|
1041
|
-
readonly key: string;
|
|
1042
|
-
readonly title?: string;
|
|
1043
|
-
readonly description?: string;
|
|
1044
|
-
readonly required?: boolean;
|
|
1045
|
-
readonly when?: ReadonlyArray<{
|
|
1046
|
-
readonly key: string;
|
|
1047
|
-
readonly op: "eq" | "neq";
|
|
1048
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1049
|
-
}>;
|
|
1050
|
-
readonly type: "multiselect";
|
|
1051
|
-
readonly options: ReadonlyArray<{
|
|
1052
|
-
readonly value: string;
|
|
1053
|
-
readonly label: string;
|
|
1054
|
-
readonly description?: string;
|
|
1055
|
-
}>;
|
|
1056
|
-
readonly minItems?: number;
|
|
1057
|
-
readonly maxItems?: number;
|
|
1058
|
-
readonly custom?: boolean;
|
|
1059
|
-
readonly default?: ReadonlyArray<string>;
|
|
1060
|
-
}>;
|
|
1061
|
-
} | {
|
|
1062
|
-
readonly id: string;
|
|
1063
|
-
readonly sessionID: string;
|
|
1064
|
-
readonly title?: string;
|
|
1065
|
-
readonly metadata?: {
|
|
1066
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
1067
|
-
};
|
|
1068
|
-
readonly mode: "url";
|
|
1069
|
-
readonly url: string;
|
|
1070
|
-
}>;
|
|
1071
|
-
get: (input: FormGetInput, requestOptions?: RequestOptions) => Promise<{
|
|
1072
|
-
readonly id: string;
|
|
1073
|
-
readonly sessionID: string;
|
|
1074
|
-
readonly title?: string;
|
|
1075
|
-
readonly metadata?: {
|
|
1076
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
1077
|
-
};
|
|
1078
|
-
readonly mode: "form";
|
|
1079
|
-
readonly fields: ReadonlyArray<{
|
|
1080
|
-
readonly key: string;
|
|
1081
|
-
readonly title?: string;
|
|
1082
|
-
readonly description?: string;
|
|
1083
|
-
readonly required?: boolean;
|
|
1084
|
-
readonly when?: ReadonlyArray<{
|
|
1085
|
-
readonly key: string;
|
|
1086
|
-
readonly op: "eq" | "neq";
|
|
1087
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1088
|
-
}>;
|
|
1089
|
-
readonly type: "string";
|
|
1090
|
-
readonly format?: "email" | "uri" | "date" | "date-time";
|
|
1091
|
-
readonly minLength?: number;
|
|
1092
|
-
readonly maxLength?: number;
|
|
1093
|
-
readonly pattern?: string;
|
|
1094
|
-
readonly placeholder?: string;
|
|
1095
|
-
readonly default?: string;
|
|
1096
|
-
readonly options?: ReadonlyArray<{
|
|
1097
|
-
readonly value: string;
|
|
1098
|
-
readonly label: string;
|
|
1099
|
-
readonly description?: string;
|
|
1100
|
-
}>;
|
|
1101
|
-
readonly custom?: boolean;
|
|
1102
|
-
} | {
|
|
1103
|
-
readonly key: string;
|
|
1104
|
-
readonly title?: string;
|
|
1105
|
-
readonly description?: string;
|
|
1106
|
-
readonly required?: boolean;
|
|
1107
|
-
readonly when?: ReadonlyArray<{
|
|
1108
|
-
readonly key: string;
|
|
1109
|
-
readonly op: "eq" | "neq";
|
|
1110
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1111
|
-
}>;
|
|
1112
|
-
readonly type: "number";
|
|
1113
|
-
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1114
|
-
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1115
|
-
readonly default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1116
|
-
} | {
|
|
1117
|
-
readonly key: string;
|
|
1118
|
-
readonly title?: string;
|
|
1119
|
-
readonly description?: string;
|
|
1120
|
-
readonly required?: boolean;
|
|
1121
|
-
readonly when?: ReadonlyArray<{
|
|
1122
|
-
readonly key: string;
|
|
1123
|
-
readonly op: "eq" | "neq";
|
|
1124
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1125
|
-
}>;
|
|
1126
|
-
readonly type: "integer";
|
|
1127
|
-
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1128
|
-
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1129
|
-
readonly default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1130
|
-
} | {
|
|
1131
|
-
readonly key: string;
|
|
1132
|
-
readonly title?: string;
|
|
1133
|
-
readonly description?: string;
|
|
1134
|
-
readonly required?: boolean;
|
|
1135
|
-
readonly when?: ReadonlyArray<{
|
|
1136
|
-
readonly key: string;
|
|
1137
|
-
readonly op: "eq" | "neq";
|
|
1138
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1139
|
-
}>;
|
|
1140
|
-
readonly type: "boolean";
|
|
1141
|
-
readonly default?: boolean;
|
|
1142
|
-
} | {
|
|
1143
|
-
readonly key: string;
|
|
1144
|
-
readonly title?: string;
|
|
1145
|
-
readonly description?: string;
|
|
1146
|
-
readonly required?: boolean;
|
|
1147
|
-
readonly when?: ReadonlyArray<{
|
|
1148
|
-
readonly key: string;
|
|
1149
|
-
readonly op: "eq" | "neq";
|
|
1150
|
-
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1151
|
-
}>;
|
|
1152
|
-
readonly type: "multiselect";
|
|
1153
|
-
readonly options: ReadonlyArray<{
|
|
1154
|
-
readonly value: string;
|
|
1155
|
-
readonly label: string;
|
|
1156
|
-
readonly description?: string;
|
|
1157
|
-
}>;
|
|
1158
|
-
readonly minItems?: number;
|
|
1159
|
-
readonly maxItems?: number;
|
|
1160
|
-
readonly custom?: boolean;
|
|
1161
|
-
readonly default?: ReadonlyArray<string>;
|
|
1162
|
-
}>;
|
|
1163
|
-
} | {
|
|
1164
|
-
readonly id: string;
|
|
1165
|
-
readonly sessionID: string;
|
|
1166
|
-
readonly title?: string;
|
|
1167
|
-
readonly metadata?: {
|
|
1168
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
1169
|
-
};
|
|
1170
|
-
readonly mode: "url";
|
|
1171
|
-
readonly url: string;
|
|
1172
|
-
}>;
|
|
1173
|
-
state: (input: FormStateInput, requestOptions?: RequestOptions) => Promise<{
|
|
1174
|
-
readonly status: "pending";
|
|
1175
|
-
} | {
|
|
1176
|
-
readonly status: "answered";
|
|
1177
|
-
readonly answer: {
|
|
1178
|
-
readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
|
|
1179
|
-
};
|
|
1180
|
-
} | {
|
|
1181
|
-
readonly status: "cancelled";
|
|
1182
|
-
}>;
|
|
1183
|
-
reply: (input: FormReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1184
|
-
cancel: (input: FormCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1185
|
-
};
|
|
1186
|
-
permission: {
|
|
1187
|
-
listRequests: (input?: PermissionListRequestsInput, requestOptions?: RequestOptions) => Promise<PermissionListRequestsOutput>;
|
|
1188
|
-
listSaved: (input?: PermissionListSavedInput, requestOptions?: RequestOptions) => Promise<readonly {
|
|
1189
|
-
readonly id: string;
|
|
1190
|
-
readonly projectID: string;
|
|
1191
|
-
readonly action: string;
|
|
1192
|
-
readonly resource: string;
|
|
1193
|
-
}[]>;
|
|
1194
|
-
removeSaved: (input: PermissionRemoveSavedInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1195
|
-
create: (input: PermissionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
1196
|
-
readonly id: string;
|
|
1197
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
1198
|
-
}>;
|
|
1199
|
-
list: (input: PermissionListInput, requestOptions?: RequestOptions) => Promise<readonly {
|
|
1200
|
-
readonly id: string;
|
|
1201
|
-
readonly sessionID: string;
|
|
1202
|
-
readonly action: string;
|
|
1203
|
-
readonly resources: ReadonlyArray<string>;
|
|
1204
|
-
readonly save?: ReadonlyArray<string>;
|
|
1205
|
-
readonly metadata?: {
|
|
1206
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
1207
|
-
};
|
|
1208
|
-
readonly source?: {
|
|
1209
|
-
readonly type: "tool";
|
|
1210
|
-
readonly messageID: string;
|
|
1211
|
-
readonly callID: string;
|
|
1212
|
-
};
|
|
1213
|
-
}[]>;
|
|
1214
|
-
get: (input: PermissionGetInput, requestOptions?: RequestOptions) => Promise<{
|
|
1215
|
-
readonly id: string;
|
|
1216
|
-
readonly sessionID: string;
|
|
1217
|
-
readonly action: string;
|
|
1218
|
-
readonly resources: ReadonlyArray<string>;
|
|
1219
|
-
readonly save?: ReadonlyArray<string>;
|
|
1220
|
-
readonly metadata?: {
|
|
1221
|
-
readonly [x: string]: import("./types").JsonValue;
|
|
1222
|
-
};
|
|
1223
|
-
readonly source?: {
|
|
1224
|
-
readonly type: "tool";
|
|
1225
|
-
readonly messageID: string;
|
|
1226
|
-
readonly callID: string;
|
|
1227
|
-
};
|
|
1228
|
-
}>;
|
|
1229
|
-
reply: (input: PermissionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1230
|
-
};
|
|
1231
|
-
file: {
|
|
1232
|
-
read: (input: FileReadInput, requestOptions?: RequestOptions) => Promise<FileReadOutput>;
|
|
1233
|
-
list: (input?: FileListInput, requestOptions?: RequestOptions) => Promise<FileListOutput>;
|
|
1234
|
-
find: (input: FileFindInput, requestOptions?: RequestOptions) => Promise<FileFindOutput>;
|
|
1235
|
-
};
|
|
1236
|
-
command: {
|
|
1237
|
-
list: (input?: CommandListInput, requestOptions?: RequestOptions) => Promise<CommandListOutput>;
|
|
1238
|
-
};
|
|
1239
|
-
skill: {
|
|
1240
|
-
list: (input?: SkillListInput, requestOptions?: RequestOptions) => Promise<SkillListOutput>;
|
|
1241
|
-
};
|
|
1242
|
-
event: {
|
|
1243
|
-
subscribe: (requestOptions?: RequestOptions) => AsyncIterable<EventSubscribeOutput>;
|
|
1244
|
-
changes: (requestOptions?: RequestOptions) => AsyncIterable<EventChangesOutput>;
|
|
1245
|
-
};
|
|
1246
|
-
pty: {
|
|
1247
|
-
list: (input?: PtyListInput, requestOptions?: RequestOptions) => Promise<PtyListOutput>;
|
|
1248
|
-
create: (input?: PtyCreateInput, requestOptions?: RequestOptions) => Promise<PtyCreateOutput>;
|
|
1249
|
-
get: (input: PtyGetInput, requestOptions?: RequestOptions) => Promise<PtyGetOutput>;
|
|
1250
|
-
update: (input: PtyUpdateInput, requestOptions?: RequestOptions) => Promise<PtyUpdateOutput>;
|
|
1251
|
-
remove: (input: PtyRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1252
|
-
};
|
|
1253
|
-
shell: {
|
|
1254
|
-
list: (input?: ShellListInput, requestOptions?: RequestOptions) => Promise<ShellListOutput>;
|
|
1255
|
-
create: (input: ShellCreateInput, requestOptions?: RequestOptions) => Promise<ShellCreateOutput>;
|
|
1256
|
-
get: (input: ShellGetInput, requestOptions?: RequestOptions) => Promise<ShellGetOutput>;
|
|
1257
|
-
output: (input: ShellOutputInput, requestOptions?: RequestOptions) => Promise<ShellOutputOutput>;
|
|
1258
|
-
remove: (input: ShellRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1259
|
-
};
|
|
1260
|
-
question: {
|
|
1261
|
-
listRequests: (input?: QuestionListRequestsInput, requestOptions?: RequestOptions) => Promise<QuestionListRequestsOutput>;
|
|
1262
|
-
list: (input: QuestionListInput, requestOptions?: RequestOptions) => Promise<readonly {
|
|
1263
|
-
readonly id: string;
|
|
1264
|
-
readonly sessionID: string;
|
|
1265
|
-
readonly questions: ReadonlyArray<{
|
|
1266
|
-
readonly question: string;
|
|
1267
|
-
readonly header: string;
|
|
1268
|
-
readonly options: ReadonlyArray<{
|
|
1269
|
-
readonly label: string;
|
|
1270
|
-
readonly description: string;
|
|
1271
|
-
}>;
|
|
1272
|
-
readonly multiple?: boolean;
|
|
1273
|
-
readonly custom?: boolean;
|
|
1274
|
-
}>;
|
|
1275
|
-
readonly tool?: {
|
|
1276
|
-
readonly messageID: string;
|
|
1277
|
-
readonly callID: string;
|
|
1278
|
-
};
|
|
1279
|
-
}[]>;
|
|
1280
|
-
reply: (input: QuestionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1281
|
-
reject: (input: QuestionRejectInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1282
|
-
};
|
|
1283
|
-
reference: {
|
|
1284
|
-
list: (input?: ReferenceListInput, requestOptions?: RequestOptions) => Promise<ReferenceListOutput>;
|
|
1285
|
-
};
|
|
1286
|
-
projectCopy: {
|
|
1287
|
-
create: (input: ProjectCopyCreateInput, requestOptions?: RequestOptions) => Promise<ProjectCopyCreateOutput>;
|
|
1288
|
-
remove: (input: ProjectCopyRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1289
|
-
refresh: (input: ProjectCopyRefreshInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1290
|
-
};
|
|
1291
|
-
vcs: {
|
|
1292
|
-
status: (input?: VcsStatusInput, requestOptions?: RequestOptions) => Promise<VcsStatusOutput>;
|
|
1293
|
-
diff: (input: VcsDiffInput, requestOptions?: RequestOptions) => Promise<VcsDiffOutput>;
|
|
1294
|
-
};
|
|
1295
|
-
debug: {
|
|
1296
|
-
location: (requestOptions?: RequestOptions) => Promise<DebugLocationOutput>;
|
|
1297
|
-
};
|
|
1298
|
-
};
|