@opencode-ai/client 0.0.0-next-15235 → 0.0.0-next-15241

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