@opencode-ai/client 0.0.0-next-15315 → 0.0.0-next-15317

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,12 +1,12 @@
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";
1
+ import type { HealthGetOutput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, 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, 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, ProjectDirectoriesInput, 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, 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;
5
- readonly headers?: HeadersInit;
5
+ readonly headers?: RequestInit["headers"];
6
6
  }
7
7
  export interface RequestOptions {
8
8
  readonly signal?: AbortSignal;
9
- readonly headers?: HeadersInit;
9
+ readonly headers?: RequestInit["headers"];
10
10
  }
11
11
  export declare function make(options: ClientOptions): {
12
12
  health: {
@@ -25,641 +25,37 @@ export declare function make(options: ClientOptions): {
25
25
  list: (input?: PluginListInput, requestOptions?: RequestOptions) => Promise<PluginListOutput>;
26
26
  };
27
27
  session: {
28
- list: (input?: SessionListInput, requestOptions?: RequestOptions) => Promise<SessionListOutput>;
29
- create: (input?: SessionCreateInput, requestOptions?: RequestOptions) => Promise<{
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
- };
52
- };
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
- }>;
75
- };
76
- }>;
28
+ list: (input?: SessionListInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionsResponse>;
29
+ create: (input?: SessionCreateInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionInfo>;
77
30
  active: (requestOptions?: RequestOptions) => Promise<{
78
- [x: string]: {
79
- type: "running";
80
- };
81
- }>;
82
- get: (input: SessionGetInput, requestOptions?: RequestOptions) => Promise<{
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
- };
105
- };
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
- }>;
128
- };
31
+ [x: string]: import("./types").SessionActive;
129
32
  }>;
33
+ get: (input: SessionGetInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionInfo>;
130
34
  remove: (input: SessionRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
131
- fork: (input: SessionForkInput, requestOptions?: RequestOptions) => Promise<{
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
- };
154
- };
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
- }>;
177
- };
178
- }>;
35
+ fork: (input: SessionForkInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionInfo>;
179
36
  switchAgent: (input: SessionSwitchAgentInput, requestOptions?: RequestOptions) => Promise<void>;
180
37
  switchModel: (input: SessionSwitchModelInput, requestOptions?: RequestOptions) => Promise<void>;
181
38
  rename: (input: SessionRenameInput, requestOptions?: RequestOptions) => Promise<void>;
182
39
  move: (input: SessionMoveInput, requestOptions?: RequestOptions) => Promise<void>;
183
- prompt: (input: SessionPromptInput, requestOptions?: RequestOptions) => Promise<{
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";
196
- } | {
197
- type: "uri";
198
- uri: string;
199
- };
200
- name?: string;
201
- description?: string;
202
- mention?: {
203
- start: number;
204
- end: number;
205
- text: string;
206
- };
207
- }>;
208
- agents?: Array<{
209
- name: string;
210
- mention?: {
211
- start: number;
212
- end: number;
213
- text: string;
214
- };
215
- }>;
216
- metadata?: {
217
- [x: string]: import("./types").JsonValue;
218
- };
219
- };
220
- delivery: "steer" | "queue";
221
- }>;
222
- command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<{
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";
235
- } | {
236
- type: "uri";
237
- uri: string;
238
- };
239
- name?: string;
240
- description?: string;
241
- mention?: {
242
- start: number;
243
- end: number;
244
- text: string;
245
- };
246
- }>;
247
- agents?: Array<{
248
- name: string;
249
- mention?: {
250
- start: number;
251
- end: number;
252
- text: string;
253
- };
254
- }>;
255
- metadata?: {
256
- [x: string]: import("./types").JsonValue;
257
- };
258
- };
259
- delivery: "steer" | "queue";
260
- }>;
40
+ prompt: (input: SessionPromptInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionPendingUser>;
41
+ command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionPendingUser>;
261
42
  skill: (input: SessionSkillInput, requestOptions?: RequestOptions) => Promise<void>;
262
- synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<{
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;
273
- };
274
- };
275
- delivery: "steer" | "queue";
276
- }>;
43
+ synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionPendingSynthetic>;
277
44
  shell: (input: SessionShellInput, requestOptions?: RequestOptions) => Promise<void>;
278
- compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<{
279
- admittedSeq: number;
280
- id: string;
281
- sessionID: string;
282
- timeCreated: number;
283
- type: "compaction";
284
- }>;
45
+ compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionPendingCompaction>;
285
46
  wait: (input: SessionWaitInput, requestOptions?: RequestOptions) => Promise<void>;
286
47
  revert: {
287
- stage: (input: SessionRevertStageInput, requestOptions?: RequestOptions) => Promise<{
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";
297
- }>;
298
- }>;
48
+ stage: (input: SessionRevertStageInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionRevert>;
299
49
  clear: (input: SessionRevertClearInput, requestOptions?: RequestOptions) => Promise<void>;
300
50
  commit: (input: SessionRevertCommitInput, requestOptions?: RequestOptions) => Promise<void>;
301
51
  };
302
- context: (input: SessionContextInput, requestOptions?: RequestOptions) => Promise<({
303
- id: string;
304
- metadata?: {
305
- [x: string]: import("./types").JsonValue;
306
- };
307
- time: {
308
- created: number;
309
- };
310
- type: "agent-switched";
311
- agent: string;
312
- } | {
313
- id: string;
314
- metadata?: {
315
- [x: string]: import("./types").JsonValue;
316
- };
317
- time: {
318
- created: number;
319
- };
320
- type: "model-switched";
321
- model: {
322
- id: string;
323
- providerID: string;
324
- variant?: string;
325
- };
326
- previous?: {
327
- id: string;
328
- providerID: string;
329
- variant?: string;
330
- };
331
- } | {
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";
345
- } | {
346
- type: "uri";
347
- uri: string;
348
- };
349
- name?: string;
350
- description?: string;
351
- mention?: {
352
- start: number;
353
- end: number;
354
- text: string;
355
- };
356
- }>;
357
- agents?: Array<{
358
- name: string;
359
- mention?: {
360
- start: number;
361
- end: number;
362
- text: string;
363
- };
364
- }>;
365
- type: "user";
366
- } | {
367
- id: string;
368
- metadata?: {
369
- [x: string]: import("./types").JsonValue;
370
- };
371
- time: {
372
- created: number;
373
- };
374
- text: string;
375
- description?: string;
376
- type: "synthetic";
377
- } | {
378
- id: string;
379
- metadata?: {
380
- [x: string]: import("./types").JsonValue;
381
- };
382
- time: {
383
- created: number;
384
- };
385
- type: "system";
386
- text: string;
387
- } | {
388
- id: string;
389
- metadata?: {
390
- [x: string]: import("./types").JsonValue;
391
- };
392
- time: {
393
- created: number;
394
- };
395
- type: "skill";
396
- skill: string;
397
- name: string;
398
- text: string;
399
- } | {
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;
418
- };
419
- } | {
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;
438
- } | {
439
- type: "reasoning";
440
- text: string;
441
- state?: {
442
- [x: string]: import("./types").JsonValue;
443
- };
444
- time?: {
445
- created: number;
446
- completed?: number;
447
- };
448
- } | {
449
- type: "tool";
450
- id: string;
451
- name: string;
452
- executed?: boolean;
453
- providerState?: {
454
- [x: string]: import("./types").JsonValue;
455
- };
456
- providerResultState?: {
457
- [x: string]: import("./types").JsonValue;
458
- };
459
- state: {
460
- status: "streaming";
461
- input: string;
462
- } | {
463
- status: "running";
464
- input: {
465
- [x: string]: import("./types").JsonValue;
466
- };
467
- structured: {
468
- [x: string]: import("./types").JsonValue;
469
- };
470
- content: Array<{
471
- type: "text";
472
- text: string;
473
- } | {
474
- type: "file";
475
- uri: string;
476
- mime: string;
477
- name?: string;
478
- }>;
479
- } | {
480
- status: "completed";
481
- input: {
482
- [x: string]: import("./types").JsonValue;
483
- };
484
- content: Array<{
485
- type: "text";
486
- text: string;
487
- } | {
488
- type: "file";
489
- uri: string;
490
- mime: string;
491
- name?: string;
492
- }>;
493
- structured: {
494
- [x: string]: import("./types").JsonValue;
495
- };
496
- result?: import("./types").JsonValue;
497
- } | {
498
- status: "error";
499
- input: {
500
- [x: string]: import("./types").JsonValue;
501
- };
502
- content: Array<{
503
- type: "text";
504
- text: string;
505
- } | {
506
- type: "file";
507
- uri: string;
508
- mime: string;
509
- name?: string;
510
- }>;
511
- structured: {
512
- [x: string]: import("./types").JsonValue;
513
- };
514
- error: {
515
- type: string;
516
- message: string;
517
- };
518
- result?: import("./types").JsonValue;
519
- };
520
- time: {
521
- created: number;
522
- ran?: number;
523
- completed?: number;
524
- };
525
- }>;
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;
540
- };
541
- };
542
- error?: {
543
- type: string;
544
- message: string;
545
- };
546
- retry?: {
547
- attempt: number;
548
- at: number;
549
- error: {
550
- type: string;
551
- message: string;
552
- };
553
- };
554
- } | {
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;
567
- } | {
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;
580
- } | {
581
- type: "compaction";
582
- id: string;
583
- metadata?: {
584
- [x: string]: import("./types").JsonValue;
585
- };
586
- time: {
587
- created: number;
588
- };
589
- status: "failed";
590
- reason: "auto" | "manual";
591
- error: {
592
- type: string;
593
- message: string;
594
- };
595
- })[]>;
52
+ context: (input: SessionContextInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionMessageInfo[]>;
596
53
  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
- })[]>;
54
+ list: (input: SessionPendingListInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionPendingInfo[]>;
656
55
  };
657
56
  instructions: {
658
57
  entry: {
659
- list: (input: SessionInstructionsEntryListInput, requestOptions?: RequestOptions) => Promise<{
660
- key: string;
661
- value: import("./types").JsonValue;
662
- }[]>;
58
+ list: (input: SessionInstructionsEntryListInput, requestOptions?: RequestOptions) => Promise<import("./types").InstructionEntryInfo[]>;
663
59
  put: (input: SessionInstructionsEntryPutInput, requestOptions?: RequestOptions) => Promise<void>;
664
60
  remove: (input: SessionInstructionsEntryRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
665
61
  };
@@ -667,303 +63,10 @@ export declare function make(options: ClientOptions): {
667
63
  log: (input: SessionLogInput, requestOptions?: RequestOptions) => AsyncIterable<SessionLogOutput>;
668
64
  interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<void>;
669
65
  background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
670
- message: (input: SessionMessageInput, requestOptions?: RequestOptions) => Promise<{
671
- id: string;
672
- metadata?: {
673
- [x: string]: import("./types").JsonValue;
674
- };
675
- time: {
676
- created: number;
677
- };
678
- type: "agent-switched";
679
- agent: string;
680
- } | {
681
- id: string;
682
- metadata?: {
683
- [x: string]: import("./types").JsonValue;
684
- };
685
- time: {
686
- created: number;
687
- };
688
- type: "model-switched";
689
- model: {
690
- id: string;
691
- providerID: string;
692
- variant?: string;
693
- };
694
- previous?: {
695
- id: string;
696
- providerID: string;
697
- variant?: string;
698
- };
699
- } | {
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";
713
- } | {
714
- type: "uri";
715
- uri: string;
716
- };
717
- name?: string;
718
- description?: string;
719
- mention?: {
720
- start: number;
721
- end: number;
722
- text: string;
723
- };
724
- }>;
725
- agents?: Array<{
726
- name: string;
727
- mention?: {
728
- start: number;
729
- end: number;
730
- text: string;
731
- };
732
- }>;
733
- type: "user";
734
- } | {
735
- id: string;
736
- metadata?: {
737
- [x: string]: import("./types").JsonValue;
738
- };
739
- time: {
740
- created: number;
741
- };
742
- text: string;
743
- description?: string;
744
- type: "synthetic";
745
- } | {
746
- id: string;
747
- metadata?: {
748
- [x: string]: import("./types").JsonValue;
749
- };
750
- time: {
751
- created: number;
752
- };
753
- type: "system";
754
- text: string;
755
- } | {
756
- id: string;
757
- metadata?: {
758
- [x: string]: import("./types").JsonValue;
759
- };
760
- time: {
761
- created: number;
762
- };
763
- type: "skill";
764
- skill: string;
765
- name: string;
766
- text: string;
767
- } | {
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;
786
- };
787
- } | {
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;
806
- } | {
807
- type: "reasoning";
808
- text: string;
809
- state?: {
810
- [x: string]: import("./types").JsonValue;
811
- };
812
- time?: {
813
- created: number;
814
- completed?: number;
815
- };
816
- } | {
817
- type: "tool";
818
- id: string;
819
- name: string;
820
- executed?: boolean;
821
- providerState?: {
822
- [x: string]: import("./types").JsonValue;
823
- };
824
- providerResultState?: {
825
- [x: string]: import("./types").JsonValue;
826
- };
827
- state: {
828
- status: "streaming";
829
- input: string;
830
- } | {
831
- status: "running";
832
- input: {
833
- [x: string]: import("./types").JsonValue;
834
- };
835
- structured: {
836
- [x: string]: import("./types").JsonValue;
837
- };
838
- content: Array<{
839
- type: "text";
840
- text: string;
841
- } | {
842
- type: "file";
843
- uri: string;
844
- mime: string;
845
- name?: string;
846
- }>;
847
- } | {
848
- status: "completed";
849
- input: {
850
- [x: string]: import("./types").JsonValue;
851
- };
852
- content: Array<{
853
- type: "text";
854
- text: string;
855
- } | {
856
- type: "file";
857
- uri: string;
858
- mime: string;
859
- name?: string;
860
- }>;
861
- structured: {
862
- [x: string]: import("./types").JsonValue;
863
- };
864
- result?: import("./types").JsonValue;
865
- } | {
866
- status: "error";
867
- input: {
868
- [x: string]: import("./types").JsonValue;
869
- };
870
- content: Array<{
871
- type: "text";
872
- text: string;
873
- } | {
874
- type: "file";
875
- uri: string;
876
- mime: string;
877
- name?: string;
878
- }>;
879
- structured: {
880
- [x: string]: import("./types").JsonValue;
881
- };
882
- error: {
883
- type: string;
884
- message: string;
885
- };
886
- result?: import("./types").JsonValue;
887
- };
888
- time: {
889
- created: number;
890
- ran?: number;
891
- completed?: number;
892
- };
893
- }>;
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;
908
- };
909
- };
910
- error?: {
911
- type: string;
912
- message: string;
913
- };
914
- retry?: {
915
- attempt: number;
916
- at: number;
917
- error: {
918
- type: string;
919
- message: string;
920
- };
921
- };
922
- } | {
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;
935
- } | {
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;
948
- } | {
949
- type: "compaction";
950
- id: string;
951
- metadata?: {
952
- [x: string]: import("./types").JsonValue;
953
- };
954
- time: {
955
- created: number;
956
- };
957
- status: "failed";
958
- reason: "auto" | "manual";
959
- error: {
960
- type: string;
961
- message: string;
962
- };
963
- }>;
66
+ message: (input: SessionMessageInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionMessageAgentSelected | import("./types").SessionMessageSynthetic | import("./types").SessionMessageSystem | import("./types").SessionMessageSkill | import("./types").SessionMessageShell | import("./types").SessionMessageCompactionRunning | import("./types").SessionMessageCompactionCompleted | import("./types").SessionMessageModelSelected | import("./types").SessionMessageCompactionFailed | import("./types").SessionMessageUser | import("./types").SessionMessageAssistant>;
964
67
  };
965
68
  message: {
966
- list: (input: MessageListInput, requestOptions?: RequestOptions) => Promise<MessageListOutput>;
69
+ list: (input: MessageListInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionMessagesResponse>;
967
70
  };
968
71
  model: {
969
72
  list: (input?: ModelListInput, requestOptions?: RequestOptions) => Promise<ModelListOutput>;
@@ -1003,581 +106,21 @@ export declare function make(options: ClientOptions): {
1003
106
  };
1004
107
  project: {
1005
108
  list: (requestOptions?: RequestOptions) => Promise<ProjectListOutput>;
1006
- current: (input?: ProjectCurrentInput, requestOptions?: RequestOptions) => Promise<ProjectCurrentOutput>;
1007
- directories: (input: ProjectDirectoriesInput, requestOptions?: RequestOptions) => Promise<ProjectDirectoriesOutput>;
109
+ current: (input?: ProjectCurrentInput, requestOptions?: RequestOptions) => Promise<import("./types").ProjectCurrent>;
110
+ directories: (input: ProjectDirectoriesInput, requestOptions?: RequestOptions) => Promise<import("./types").ProjectDirectories>;
1008
111
  };
1009
112
  form: {
1010
113
  request: {
1011
114
  list: (input?: FormRequestListInput, requestOptions?: RequestOptions) => Promise<FormRequestListOutput>;
1012
115
  };
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
- fields: [({
1021
- key: string;
1022
- title?: string;
1023
- description?: string;
1024
- required?: boolean;
1025
- when?: Array<{
1026
- key: string;
1027
- op: "eq" | "neq";
1028
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1029
- }>;
1030
- type: "string";
1031
- format?: "email" | "uri" | "date" | "date-time";
1032
- minLength?: number;
1033
- maxLength?: number;
1034
- pattern?: string;
1035
- placeholder?: string;
1036
- default?: string;
1037
- options?: Array<{
1038
- value: string;
1039
- label: string;
1040
- description?: string;
1041
- }>;
1042
- custom?: boolean;
1043
- } | {
1044
- key: string;
1045
- title?: string;
1046
- description?: string;
1047
- required?: boolean;
1048
- when?: Array<{
1049
- key: string;
1050
- op: "eq" | "neq";
1051
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1052
- }>;
1053
- type: "number";
1054
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1055
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1056
- default?: number | "Infinity" | "-Infinity" | "NaN";
1057
- } | {
1058
- key: string;
1059
- title?: string;
1060
- description?: string;
1061
- required?: boolean;
1062
- when?: Array<{
1063
- key: string;
1064
- op: "eq" | "neq";
1065
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1066
- }>;
1067
- type: "integer";
1068
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1069
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1070
- default?: number | "Infinity" | "-Infinity" | "NaN";
1071
- } | {
1072
- key: string;
1073
- title?: string;
1074
- description?: string;
1075
- required?: boolean;
1076
- when?: Array<{
1077
- key: string;
1078
- op: "eq" | "neq";
1079
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1080
- }>;
1081
- type: "boolean";
1082
- default?: boolean;
1083
- } | {
1084
- key: string;
1085
- title?: string;
1086
- description?: string;
1087
- required?: boolean;
1088
- when?: Array<{
1089
- key: string;
1090
- op: "eq" | "neq";
1091
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1092
- }>;
1093
- type: "multiselect";
1094
- options: Array<{
1095
- value: string;
1096
- label: string;
1097
- description?: string;
1098
- }>;
1099
- minItems?: number;
1100
- maxItems?: number;
1101
- custom?: boolean;
1102
- default?: Array<string>;
1103
- } | {
1104
- key: string;
1105
- type: "external";
1106
- url: string;
1107
- title?: string;
1108
- description?: string;
1109
- }), ...Array<{
1110
- key: string;
1111
- title?: string;
1112
- description?: string;
1113
- required?: boolean;
1114
- when?: Array<{
1115
- key: string;
1116
- op: "eq" | "neq";
1117
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1118
- }>;
1119
- type: "string";
1120
- format?: "email" | "uri" | "date" | "date-time";
1121
- minLength?: number;
1122
- maxLength?: number;
1123
- pattern?: string;
1124
- placeholder?: string;
1125
- default?: string;
1126
- options?: Array<{
1127
- value: string;
1128
- label: string;
1129
- description?: string;
1130
- }>;
1131
- custom?: boolean;
1132
- } | {
1133
- key: string;
1134
- title?: string;
1135
- description?: string;
1136
- required?: boolean;
1137
- when?: Array<{
1138
- key: string;
1139
- op: "eq" | "neq";
1140
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1141
- }>;
1142
- type: "number";
1143
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1144
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1145
- default?: number | "Infinity" | "-Infinity" | "NaN";
1146
- } | {
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;
1155
- }>;
1156
- type: "integer";
1157
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1158
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1159
- default?: number | "Infinity" | "-Infinity" | "NaN";
1160
- } | {
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;
1169
- }>;
1170
- type: "boolean";
1171
- default?: boolean;
1172
- } | {
1173
- key: string;
1174
- title?: string;
1175
- description?: string;
1176
- required?: boolean;
1177
- when?: Array<{
1178
- key: string;
1179
- op: "eq" | "neq";
1180
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1181
- }>;
1182
- type: "multiselect";
1183
- options: Array<{
1184
- value: string;
1185
- label: string;
1186
- description?: string;
1187
- }>;
1188
- minItems?: number;
1189
- maxItems?: number;
1190
- custom?: boolean;
1191
- default?: Array<string>;
1192
- } | {
1193
- key: string;
1194
- type: "external";
1195
- url: string;
1196
- title?: string;
1197
- description?: string;
1198
- }>];
1199
- }[]>;
1200
- create: (input: FormCreateInput, requestOptions?: RequestOptions) => Promise<{
1201
- id: string;
1202
- sessionID: string;
1203
- title: string;
1204
- metadata?: {
1205
- [x: string]: import("./types").JsonValue;
1206
- };
1207
- fields: [({
1208
- key: string;
1209
- title?: string;
1210
- description?: string;
1211
- required?: boolean;
1212
- when?: Array<{
1213
- key: string;
1214
- op: "eq" | "neq";
1215
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1216
- }>;
1217
- type: "string";
1218
- format?: "email" | "uri" | "date" | "date-time";
1219
- minLength?: number;
1220
- maxLength?: number;
1221
- pattern?: string;
1222
- placeholder?: string;
1223
- default?: string;
1224
- options?: Array<{
1225
- value: string;
1226
- label: string;
1227
- description?: string;
1228
- }>;
1229
- custom?: boolean;
1230
- } | {
1231
- key: string;
1232
- title?: string;
1233
- description?: string;
1234
- required?: boolean;
1235
- when?: Array<{
1236
- key: string;
1237
- op: "eq" | "neq";
1238
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1239
- }>;
1240
- type: "number";
1241
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1242
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1243
- default?: number | "Infinity" | "-Infinity" | "NaN";
1244
- } | {
1245
- key: string;
1246
- title?: string;
1247
- description?: string;
1248
- required?: boolean;
1249
- when?: Array<{
1250
- key: string;
1251
- op: "eq" | "neq";
1252
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1253
- }>;
1254
- type: "integer";
1255
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1256
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1257
- default?: number | "Infinity" | "-Infinity" | "NaN";
1258
- } | {
1259
- key: string;
1260
- title?: string;
1261
- description?: string;
1262
- required?: boolean;
1263
- when?: Array<{
1264
- key: string;
1265
- op: "eq" | "neq";
1266
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1267
- }>;
1268
- type: "boolean";
1269
- default?: boolean;
1270
- } | {
1271
- key: string;
1272
- title?: string;
1273
- description?: string;
1274
- required?: boolean;
1275
- when?: Array<{
1276
- key: string;
1277
- op: "eq" | "neq";
1278
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1279
- }>;
1280
- type: "multiselect";
1281
- options: Array<{
1282
- value: string;
1283
- label: string;
1284
- description?: string;
1285
- }>;
1286
- minItems?: number;
1287
- maxItems?: number;
1288
- custom?: boolean;
1289
- default?: Array<string>;
1290
- } | {
1291
- key: string;
1292
- type: "external";
1293
- url: string;
1294
- title?: string;
1295
- description?: string;
1296
- }), ...Array<{
1297
- key: string;
1298
- title?: string;
1299
- description?: string;
1300
- required?: boolean;
1301
- when?: Array<{
1302
- key: string;
1303
- op: "eq" | "neq";
1304
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1305
- }>;
1306
- type: "string";
1307
- format?: "email" | "uri" | "date" | "date-time";
1308
- minLength?: number;
1309
- maxLength?: number;
1310
- pattern?: string;
1311
- placeholder?: string;
1312
- default?: string;
1313
- options?: Array<{
1314
- value: string;
1315
- label: string;
1316
- description?: string;
1317
- }>;
1318
- custom?: boolean;
1319
- } | {
1320
- key: string;
1321
- title?: string;
1322
- description?: string;
1323
- required?: boolean;
1324
- when?: Array<{
1325
- key: string;
1326
- op: "eq" | "neq";
1327
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1328
- }>;
1329
- type: "number";
1330
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1331
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1332
- default?: number | "Infinity" | "-Infinity" | "NaN";
1333
- } | {
1334
- key: string;
1335
- title?: string;
1336
- description?: string;
1337
- required?: boolean;
1338
- when?: Array<{
1339
- key: string;
1340
- op: "eq" | "neq";
1341
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1342
- }>;
1343
- type: "integer";
1344
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1345
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1346
- default?: number | "Infinity" | "-Infinity" | "NaN";
1347
- } | {
1348
- key: string;
1349
- title?: string;
1350
- description?: string;
1351
- required?: boolean;
1352
- when?: Array<{
1353
- key: string;
1354
- op: "eq" | "neq";
1355
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1356
- }>;
1357
- type: "boolean";
1358
- default?: boolean;
1359
- } | {
1360
- key: string;
1361
- title?: string;
1362
- description?: string;
1363
- required?: boolean;
1364
- when?: Array<{
1365
- key: string;
1366
- op: "eq" | "neq";
1367
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1368
- }>;
1369
- type: "multiselect";
1370
- options: Array<{
1371
- value: string;
1372
- label: string;
1373
- description?: string;
1374
- }>;
1375
- minItems?: number;
1376
- maxItems?: number;
1377
- custom?: boolean;
1378
- default?: Array<string>;
1379
- } | {
1380
- key: string;
1381
- type: "external";
1382
- url: string;
1383
- title?: string;
1384
- description?: string;
1385
- }>];
1386
- }>;
1387
- get: (input: FormGetInput, requestOptions?: RequestOptions) => Promise<{
1388
- id: string;
1389
- sessionID: string;
1390
- title: string;
1391
- metadata?: {
1392
- [x: string]: import("./types").JsonValue;
1393
- };
1394
- fields: [({
1395
- key: string;
1396
- title?: string;
1397
- description?: string;
1398
- required?: boolean;
1399
- when?: Array<{
1400
- key: string;
1401
- op: "eq" | "neq";
1402
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1403
- }>;
1404
- type: "string";
1405
- format?: "email" | "uri" | "date" | "date-time";
1406
- minLength?: number;
1407
- maxLength?: number;
1408
- pattern?: string;
1409
- placeholder?: string;
1410
- default?: string;
1411
- options?: Array<{
1412
- value: string;
1413
- label: string;
1414
- description?: string;
1415
- }>;
1416
- custom?: boolean;
1417
- } | {
1418
- key: string;
1419
- title?: string;
1420
- description?: string;
1421
- required?: boolean;
1422
- when?: Array<{
1423
- key: string;
1424
- op: "eq" | "neq";
1425
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1426
- }>;
1427
- type: "number";
1428
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1429
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1430
- default?: number | "Infinity" | "-Infinity" | "NaN";
1431
- } | {
1432
- key: string;
1433
- title?: string;
1434
- description?: string;
1435
- required?: boolean;
1436
- when?: Array<{
1437
- key: string;
1438
- op: "eq" | "neq";
1439
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1440
- }>;
1441
- type: "integer";
1442
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1443
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1444
- default?: number | "Infinity" | "-Infinity" | "NaN";
1445
- } | {
1446
- key: string;
1447
- title?: string;
1448
- description?: string;
1449
- required?: boolean;
1450
- when?: Array<{
1451
- key: string;
1452
- op: "eq" | "neq";
1453
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1454
- }>;
1455
- type: "boolean";
1456
- default?: boolean;
1457
- } | {
1458
- key: string;
1459
- title?: string;
1460
- description?: string;
1461
- required?: boolean;
1462
- when?: Array<{
1463
- key: string;
1464
- op: "eq" | "neq";
1465
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1466
- }>;
1467
- type: "multiselect";
1468
- options: Array<{
1469
- value: string;
1470
- label: string;
1471
- description?: string;
1472
- }>;
1473
- minItems?: number;
1474
- maxItems?: number;
1475
- custom?: boolean;
1476
- default?: Array<string>;
1477
- } | {
1478
- key: string;
1479
- type: "external";
1480
- url: string;
1481
- title?: string;
1482
- description?: string;
1483
- }), ...Array<{
1484
- key: string;
1485
- title?: string;
1486
- description?: string;
1487
- required?: boolean;
1488
- when?: Array<{
1489
- key: string;
1490
- op: "eq" | "neq";
1491
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1492
- }>;
1493
- type: "string";
1494
- format?: "email" | "uri" | "date" | "date-time";
1495
- minLength?: number;
1496
- maxLength?: number;
1497
- pattern?: string;
1498
- placeholder?: string;
1499
- default?: string;
1500
- options?: Array<{
1501
- value: string;
1502
- label: string;
1503
- description?: string;
1504
- }>;
1505
- custom?: boolean;
1506
- } | {
1507
- key: string;
1508
- title?: string;
1509
- description?: string;
1510
- required?: boolean;
1511
- when?: Array<{
1512
- key: string;
1513
- op: "eq" | "neq";
1514
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1515
- }>;
1516
- type: "number";
1517
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1518
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1519
- default?: number | "Infinity" | "-Infinity" | "NaN";
1520
- } | {
1521
- key: string;
1522
- title?: string;
1523
- description?: string;
1524
- required?: boolean;
1525
- when?: Array<{
1526
- key: string;
1527
- op: "eq" | "neq";
1528
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1529
- }>;
1530
- type: "integer";
1531
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1532
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1533
- default?: number | "Infinity" | "-Infinity" | "NaN";
1534
- } | {
1535
- key: string;
1536
- title?: string;
1537
- description?: string;
1538
- required?: boolean;
1539
- when?: Array<{
1540
- key: string;
1541
- op: "eq" | "neq";
1542
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1543
- }>;
1544
- type: "boolean";
1545
- default?: boolean;
1546
- } | {
1547
- key: string;
1548
- title?: string;
1549
- description?: string;
1550
- required?: boolean;
1551
- when?: Array<{
1552
- key: string;
1553
- op: "eq" | "neq";
1554
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
1555
- }>;
1556
- type: "multiselect";
1557
- options: Array<{
1558
- value: string;
1559
- label: string;
1560
- description?: string;
1561
- }>;
1562
- minItems?: number;
1563
- maxItems?: number;
1564
- custom?: boolean;
1565
- default?: Array<string>;
1566
- } | {
1567
- key: string;
1568
- type: "external";
1569
- url: string;
1570
- title?: string;
1571
- description?: string;
1572
- }>];
1573
- }>;
116
+ list: (input: FormListInput, requestOptions?: RequestOptions) => Promise<import("./types").FormInfo[]>;
117
+ create: (input: FormCreateInput, requestOptions?: RequestOptions) => Promise<import("./types").FormInfo>;
118
+ get: (input: FormGetInput, requestOptions?: RequestOptions) => Promise<import("./types").FormInfo>;
1574
119
  state: (input: FormStateInput, requestOptions?: RequestOptions) => Promise<{
1575
120
  status: "pending";
1576
121
  } | {
1577
122
  status: "answered";
1578
- answer: {
1579
- [x: string]: string | number | boolean | Array<string>;
1580
- };
123
+ answer: import("./types").FormAnswer;
1581
124
  } | {
1582
125
  status: "cancelled";
1583
126
  }>;
@@ -1589,48 +132,15 @@ export declare function make(options: ClientOptions): {
1589
132
  list: (input?: PermissionRequestListInput, requestOptions?: RequestOptions) => Promise<PermissionRequestListOutput>;
1590
133
  };
1591
134
  saved: {
1592
- list: (input?: PermissionSavedListInput, requestOptions?: RequestOptions) => Promise<{
1593
- id: string;
1594
- projectID: string;
1595
- action: string;
1596
- resource: string;
1597
- }[]>;
135
+ list: (input?: PermissionSavedListInput, requestOptions?: RequestOptions) => Promise<import("./types").PermissionSavedInfo[]>;
1598
136
  remove: (input: PermissionSavedRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
1599
137
  };
1600
138
  create: (input: PermissionCreateInput, requestOptions?: RequestOptions) => Promise<{
1601
139
  id: string;
1602
- effect: "allow" | "deny" | "ask";
1603
- }>;
1604
- list: (input: PermissionListInput, requestOptions?: RequestOptions) => Promise<{
1605
- id: string;
1606
- sessionID: string;
1607
- action: string;
1608
- resources: Array<string>;
1609
- save?: Array<string>;
1610
- metadata?: {
1611
- [x: string]: import("./types").JsonValue;
1612
- };
1613
- source?: {
1614
- type: "tool";
1615
- messageID: string;
1616
- callID: string;
1617
- };
1618
- }[]>;
1619
- get: (input: PermissionGetInput, requestOptions?: RequestOptions) => Promise<{
1620
- id: string;
1621
- sessionID: string;
1622
- action: string;
1623
- resources: Array<string>;
1624
- save?: Array<string>;
1625
- metadata?: {
1626
- [x: string]: import("./types").JsonValue;
1627
- };
1628
- source?: {
1629
- type: "tool";
1630
- messageID: string;
1631
- callID: string;
1632
- };
140
+ effect: import("./types").PermissionV2Effect;
1633
141
  }>;
142
+ list: (input: PermissionListInput, requestOptions?: RequestOptions) => Promise<import("./types").PermissionV2Request[]>;
143
+ get: (input: PermissionGetInput, requestOptions?: RequestOptions) => Promise<import("./types").PermissionV2Request>;
1634
144
  reply: (input: PermissionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
1635
145
  };
1636
146
  file: {
@@ -1666,24 +176,7 @@ export declare function make(options: ClientOptions): {
1666
176
  request: {
1667
177
  list: (input?: QuestionRequestListInput, requestOptions?: RequestOptions) => Promise<QuestionRequestListOutput>;
1668
178
  };
1669
- list: (input: QuestionListInput, requestOptions?: RequestOptions) => Promise<{
1670
- id: string;
1671
- sessionID: string;
1672
- questions: Array<{
1673
- question: string;
1674
- header: string;
1675
- options: Array<{
1676
- label: string;
1677
- description: string;
1678
- }>;
1679
- multiple?: boolean;
1680
- custom?: boolean;
1681
- }>;
1682
- tool?: {
1683
- messageID: string;
1684
- callID: string;
1685
- };
1686
- }[]>;
179
+ list: (input: QuestionListInput, requestOptions?: RequestOptions) => Promise<import("./types").QuestionV2Request[]>;
1687
180
  reply: (input: QuestionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
1688
181
  reject: (input: QuestionRejectInput, requestOptions?: RequestOptions) => Promise<void>;
1689
182
  };
@@ -1691,7 +184,7 @@ export declare function make(options: ClientOptions): {
1691
184
  list: (input?: ReferenceListInput, requestOptions?: RequestOptions) => Promise<ReferenceListOutput>;
1692
185
  };
1693
186
  projectCopy: {
1694
- create: (input: ProjectCopyCreateInput, requestOptions?: RequestOptions) => Promise<ProjectCopyCreateOutput>;
187
+ create: (input: ProjectCopyCreateInput, requestOptions?: RequestOptions) => Promise<import("./types").ProjectCopyCopy>;
1695
188
  remove: (input: ProjectCopyRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
1696
189
  refresh: (input: ProjectCopyRefreshInput, requestOptions?: RequestOptions) => Promise<void>;
1697
190
  };