@deepraxis/sdk 0.0.0-stage → 0.1.0-dev.06cf3b8

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.
Files changed (64) hide show
  1. package/LICENSE +202 -0
  2. package/METHODS.md +1198 -0
  3. package/README.md +279 -2
  4. package/dist/automation.d.ts +151 -0
  5. package/dist/automation.js +8 -0
  6. package/dist/core/bindings.d.ts +25 -0
  7. package/dist/core/bindings.js +45 -0
  8. package/dist/core/client.d.ts +15 -0
  9. package/dist/core/client.js +15 -0
  10. package/dist/core/credentials.d.ts +14 -0
  11. package/dist/core/credentials.js +33 -0
  12. package/dist/core/errors.d.ts +38 -0
  13. package/dist/core/errors.js +60 -0
  14. package/dist/core/multipart.d.ts +2 -0
  15. package/dist/core/multipart.js +25 -0
  16. package/dist/core/pagination.d.ts +12 -0
  17. package/dist/core/pagination.js +26 -0
  18. package/dist/core/retry.d.ts +13 -0
  19. package/dist/core/retry.js +56 -0
  20. package/dist/core/sse.d.ts +13 -0
  21. package/dist/core/sse.js +67 -0
  22. package/dist/core/transport.d.ts +36 -0
  23. package/dist/core/transport.js +121 -0
  24. package/dist/generated/client/client.gen.d.ts +2 -0
  25. package/dist/generated/client/client.gen.js +216 -0
  26. package/dist/generated/client/index.d.ts +10 -0
  27. package/dist/generated/client/index.js +6 -0
  28. package/dist/generated/client/types.gen.d.ts +120 -0
  29. package/dist/generated/client/types.gen.js +2 -0
  30. package/dist/generated/client/utils.gen.d.ts +37 -0
  31. package/dist/generated/client/utils.gen.js +228 -0
  32. package/dist/generated/client.gen.d.ts +12 -0
  33. package/dist/generated/client.gen.js +3 -0
  34. package/dist/generated/core/auth.gen.d.ts +25 -0
  35. package/dist/generated/core/auth.gen.js +14 -0
  36. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  37. package/dist/generated/core/bodySerializer.gen.js +57 -0
  38. package/dist/generated/core/params.gen.d.ts +43 -0
  39. package/dist/generated/core/params.gen.js +109 -0
  40. package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
  41. package/dist/generated/core/pathSerializer.gen.js +106 -0
  42. package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
  43. package/dist/generated/core/queryKeySerializer.gen.js +92 -0
  44. package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
  45. package/dist/generated/core/serverSentEvents.gen.js +132 -0
  46. package/dist/generated/core/types.gen.d.ts +83 -0
  47. package/dist/generated/core/types.gen.js +2 -0
  48. package/dist/generated/core/utils.gen.d.ts +19 -0
  49. package/dist/generated/core/utils.gen.js +87 -0
  50. package/dist/generated/index.d.ts +2 -0
  51. package/dist/generated/index.js +2 -0
  52. package/dist/generated/sdk.gen.d.ts +2296 -0
  53. package/dist/generated/sdk.gen.js +6897 -0
  54. package/dist/generated/types.gen.d.ts +59064 -0
  55. package/dist/generated/types.gen.js +2 -0
  56. package/dist/helpers/application-publish.d.ts +41 -0
  57. package/dist/helpers/application-publish.js +116 -0
  58. package/dist/index.d.ts +9 -0
  59. package/dist/index.js +5 -0
  60. package/dist/operations.generated.d.ts +11326 -0
  61. package/dist/operations.generated.js +14280 -0
  62. package/dist/resources.generated.d.ts +4217 -0
  63. package/dist/resources.generated.js +763 -0
  64. package/package.json +50 -4
@@ -0,0 +1,4217 @@
1
+ import type * as Types from './generated/types.gen.js';
2
+ import type { RenameParameters } from './core/bindings.js';
3
+ import type { Transport } from './core/transport.js';
4
+ export declare function createAgent(transport: Transport): {
5
+ agents: {
6
+ archive: (options: import("./core/transport.js").CallOptions<Types.AgentsArchiveData>) => Promise<{
7
+ id: string;
8
+ archived_at: null | string;
9
+ created_at: string;
10
+ description: null | string;
11
+ mcp_servers: Array<Types.AgentManaged36>;
12
+ metadata: Types.AgentManaged37;
13
+ model: {
14
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
15
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
16
+ inference_geo?: string;
17
+ speed?: "standard" | "fast";
18
+ settings?: {
19
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
20
+ };
21
+ };
22
+ multiagent: null | Types.AgentManaged39;
23
+ name: string;
24
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
25
+ system: null | string;
26
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
27
+ type: "agent";
28
+ updated_at: string;
29
+ version: number;
30
+ kind: "personal" | "service";
31
+ computer_id?: string;
32
+ subagent_model?: string | null;
33
+ subagents?: Array<{
34
+ name: string;
35
+ description: string;
36
+ prompt: string;
37
+ tools?: Array<string>;
38
+ disallowed_tools?: Array<string>;
39
+ model?: string;
40
+ }> | null;
41
+ commands?: Array<{
42
+ name: string;
43
+ description?: string;
44
+ argument_hint?: string;
45
+ prompt: string;
46
+ }> | null;
47
+ settings?: {
48
+ hooks?: {
49
+ SessionStart?: Array<{
50
+ matcher?: string;
51
+ hooks: Array<{
52
+ type: "command";
53
+ command: string;
54
+ timeout?: number;
55
+ async?: boolean;
56
+ enabled?: boolean;
57
+ }>;
58
+ }>;
59
+ UserPromptSubmit?: Array<{
60
+ matcher?: string;
61
+ hooks: Array<{
62
+ type: "command";
63
+ command: string;
64
+ timeout?: number;
65
+ async?: boolean;
66
+ enabled?: boolean;
67
+ }>;
68
+ }>;
69
+ PreToolUse?: Array<{
70
+ matcher?: string;
71
+ hooks: Array<{
72
+ type: "command";
73
+ command: string;
74
+ timeout?: number;
75
+ async?: boolean;
76
+ enabled?: boolean;
77
+ }>;
78
+ }>;
79
+ PermissionRequest?: Array<{
80
+ matcher?: string;
81
+ hooks: Array<{
82
+ type: "command";
83
+ command: string;
84
+ timeout?: number;
85
+ async?: boolean;
86
+ enabled?: boolean;
87
+ }>;
88
+ }>;
89
+ PostToolUse?: Array<{
90
+ matcher?: string;
91
+ hooks: Array<{
92
+ type: "command";
93
+ command: string;
94
+ timeout?: number;
95
+ async?: boolean;
96
+ enabled?: boolean;
97
+ }>;
98
+ }>;
99
+ PostToolUseFailure?: Array<{
100
+ matcher?: string;
101
+ hooks: Array<{
102
+ type: "command";
103
+ command: string;
104
+ timeout?: number;
105
+ async?: boolean;
106
+ enabled?: boolean;
107
+ }>;
108
+ }>;
109
+ Stop?: Array<{
110
+ matcher?: string;
111
+ hooks: Array<{
112
+ type: "command";
113
+ command: string;
114
+ timeout?: number;
115
+ async?: boolean;
116
+ enabled?: boolean;
117
+ }>;
118
+ }>;
119
+ };
120
+ allowManagedHooksOnly?: boolean;
121
+ allowManagedMcpServersOnly?: boolean;
122
+ allowManagedPermissionRulesOnly?: boolean;
123
+ autoMemoryEnabled?: boolean;
124
+ disabled?: {
125
+ subagents?: Array<string>;
126
+ commands?: Array<string>;
127
+ skills?: Array<string>;
128
+ mcpServers?: Array<string>;
129
+ hooks?: Array<string>;
130
+ };
131
+ } | null;
132
+ models?: {
133
+ allowed: Array<string>;
134
+ };
135
+ }>;
136
+ create: (options: import("./core/transport.js").CallOptions<Types.AgentsCreateData>) => Promise<{
137
+ id: string;
138
+ archived_at: null | string;
139
+ created_at: string;
140
+ description: null | string;
141
+ mcp_servers: Array<Types.AgentManaged36>;
142
+ metadata: Types.AgentManaged37;
143
+ model: {
144
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
145
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
146
+ inference_geo?: string;
147
+ speed?: "standard" | "fast";
148
+ settings?: {
149
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
150
+ };
151
+ };
152
+ multiagent: null | Types.AgentManaged39;
153
+ name: string;
154
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
155
+ system: null | string;
156
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
157
+ type: "agent";
158
+ updated_at: string;
159
+ version: number;
160
+ kind: "personal" | "service";
161
+ computer_id?: string;
162
+ subagent_model?: string | null;
163
+ subagents?: Array<{
164
+ name: string;
165
+ description: string;
166
+ prompt: string;
167
+ tools?: Array<string>;
168
+ disallowed_tools?: Array<string>;
169
+ model?: string;
170
+ }> | null;
171
+ commands?: Array<{
172
+ name: string;
173
+ description?: string;
174
+ argument_hint?: string;
175
+ prompt: string;
176
+ }> | null;
177
+ settings?: {
178
+ hooks?: {
179
+ SessionStart?: Array<{
180
+ matcher?: string;
181
+ hooks: Array<{
182
+ type: "command";
183
+ command: string;
184
+ timeout?: number;
185
+ async?: boolean;
186
+ enabled?: boolean;
187
+ }>;
188
+ }>;
189
+ UserPromptSubmit?: Array<{
190
+ matcher?: string;
191
+ hooks: Array<{
192
+ type: "command";
193
+ command: string;
194
+ timeout?: number;
195
+ async?: boolean;
196
+ enabled?: boolean;
197
+ }>;
198
+ }>;
199
+ PreToolUse?: Array<{
200
+ matcher?: string;
201
+ hooks: Array<{
202
+ type: "command";
203
+ command: string;
204
+ timeout?: number;
205
+ async?: boolean;
206
+ enabled?: boolean;
207
+ }>;
208
+ }>;
209
+ PermissionRequest?: Array<{
210
+ matcher?: string;
211
+ hooks: Array<{
212
+ type: "command";
213
+ command: string;
214
+ timeout?: number;
215
+ async?: boolean;
216
+ enabled?: boolean;
217
+ }>;
218
+ }>;
219
+ PostToolUse?: Array<{
220
+ matcher?: string;
221
+ hooks: Array<{
222
+ type: "command";
223
+ command: string;
224
+ timeout?: number;
225
+ async?: boolean;
226
+ enabled?: boolean;
227
+ }>;
228
+ }>;
229
+ PostToolUseFailure?: Array<{
230
+ matcher?: string;
231
+ hooks: Array<{
232
+ type: "command";
233
+ command: string;
234
+ timeout?: number;
235
+ async?: boolean;
236
+ enabled?: boolean;
237
+ }>;
238
+ }>;
239
+ Stop?: Array<{
240
+ matcher?: string;
241
+ hooks: Array<{
242
+ type: "command";
243
+ command: string;
244
+ timeout?: number;
245
+ async?: boolean;
246
+ enabled?: boolean;
247
+ }>;
248
+ }>;
249
+ };
250
+ allowManagedHooksOnly?: boolean;
251
+ allowManagedMcpServersOnly?: boolean;
252
+ allowManagedPermissionRulesOnly?: boolean;
253
+ autoMemoryEnabled?: boolean;
254
+ disabled?: {
255
+ subagents?: Array<string>;
256
+ commands?: Array<string>;
257
+ skills?: Array<string>;
258
+ mcpServers?: Array<string>;
259
+ hooks?: Array<string>;
260
+ };
261
+ } | null;
262
+ models?: {
263
+ allowed: Array<string>;
264
+ };
265
+ }>;
266
+ endUsers: {
267
+ block: {
268
+ create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
269
+ external_user_id: string;
270
+ first_seen_at: string | null;
271
+ last_active_at: string | null;
272
+ session_count: number;
273
+ cost_micro_usd: number;
274
+ blocked: boolean;
275
+ }>;
276
+ };
277
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
278
+ id: string;
279
+ status: "pending";
280
+ }>;
281
+ list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
282
+ data: Array<{
283
+ external_user_id: string;
284
+ first_seen_at: string | null;
285
+ last_active_at: string | null;
286
+ session_count: number;
287
+ cost_micro_usd: number;
288
+ blocked: boolean;
289
+ }>;
290
+ next_page: string | null;
291
+ }>;
292
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
293
+ external_user_id: string;
294
+ first_seen_at: string | null;
295
+ last_active_at: string | null;
296
+ session_count: number;
297
+ cost_micro_usd: number;
298
+ blocked: boolean;
299
+ recent_sessions: Array<{
300
+ id: string;
301
+ title: string | null;
302
+ source: string | null;
303
+ created_at: string;
304
+ updated_at: string;
305
+ }>;
306
+ }>;
307
+ retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
308
+ id: string;
309
+ status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
310
+ counts: {
311
+ sessions?: number;
312
+ events?: number;
313
+ messages?: number;
314
+ d1_rows?: number;
315
+ attachments?: number;
316
+ };
317
+ snapshot_key?: string;
318
+ error?: string;
319
+ created_at: string;
320
+ updated_at: string;
321
+ }>;
322
+ revokeTokens: {
323
+ create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
324
+ revoked: number;
325
+ }>;
326
+ };
327
+ unblock: {
328
+ create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
329
+ external_user_id: string;
330
+ first_seen_at: string | null;
331
+ last_active_at: string | null;
332
+ session_count: number;
333
+ cost_micro_usd: number;
334
+ blocked: boolean;
335
+ }>;
336
+ };
337
+ };
338
+ list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
339
+ data: Array<{
340
+ id: string;
341
+ archived_at: null | string;
342
+ created_at: string;
343
+ description: null | string;
344
+ mcp_servers: Array<Types.AgentManaged36>;
345
+ metadata: Types.AgentManaged37;
346
+ model: {
347
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
348
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
349
+ inference_geo?: string;
350
+ speed?: "standard" | "fast";
351
+ settings?: {
352
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
353
+ };
354
+ };
355
+ multiagent: null | Types.AgentManaged39;
356
+ name: string;
357
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
358
+ system: null | string;
359
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
360
+ type: "agent";
361
+ updated_at: string;
362
+ version: number;
363
+ kind: "personal" | "service";
364
+ computer_id?: string;
365
+ subagent_model?: string | null;
366
+ subagents?: Array<{
367
+ name: string;
368
+ description: string;
369
+ prompt: string;
370
+ tools?: Array<string>;
371
+ disallowed_tools?: Array<string>;
372
+ model?: string;
373
+ }> | null;
374
+ commands?: Array<{
375
+ name: string;
376
+ description?: string;
377
+ argument_hint?: string;
378
+ prompt: string;
379
+ }> | null;
380
+ settings?: {
381
+ hooks?: {
382
+ SessionStart?: Array<{
383
+ matcher?: string;
384
+ hooks: Array<{
385
+ type: "command";
386
+ command: string;
387
+ timeout?: number;
388
+ async?: boolean;
389
+ enabled?: boolean;
390
+ }>;
391
+ }>;
392
+ UserPromptSubmit?: Array<{
393
+ matcher?: string;
394
+ hooks: Array<{
395
+ type: "command";
396
+ command: string;
397
+ timeout?: number;
398
+ async?: boolean;
399
+ enabled?: boolean;
400
+ }>;
401
+ }>;
402
+ PreToolUse?: Array<{
403
+ matcher?: string;
404
+ hooks: Array<{
405
+ type: "command";
406
+ command: string;
407
+ timeout?: number;
408
+ async?: boolean;
409
+ enabled?: boolean;
410
+ }>;
411
+ }>;
412
+ PermissionRequest?: Array<{
413
+ matcher?: string;
414
+ hooks: Array<{
415
+ type: "command";
416
+ command: string;
417
+ timeout?: number;
418
+ async?: boolean;
419
+ enabled?: boolean;
420
+ }>;
421
+ }>;
422
+ PostToolUse?: Array<{
423
+ matcher?: string;
424
+ hooks: Array<{
425
+ type: "command";
426
+ command: string;
427
+ timeout?: number;
428
+ async?: boolean;
429
+ enabled?: boolean;
430
+ }>;
431
+ }>;
432
+ PostToolUseFailure?: Array<{
433
+ matcher?: string;
434
+ hooks: Array<{
435
+ type: "command";
436
+ command: string;
437
+ timeout?: number;
438
+ async?: boolean;
439
+ enabled?: boolean;
440
+ }>;
441
+ }>;
442
+ Stop?: Array<{
443
+ matcher?: string;
444
+ hooks: Array<{
445
+ type: "command";
446
+ command: string;
447
+ timeout?: number;
448
+ async?: boolean;
449
+ enabled?: boolean;
450
+ }>;
451
+ }>;
452
+ };
453
+ allowManagedHooksOnly?: boolean;
454
+ allowManagedMcpServersOnly?: boolean;
455
+ allowManagedPermissionRulesOnly?: boolean;
456
+ autoMemoryEnabled?: boolean;
457
+ disabled?: {
458
+ subagents?: Array<string>;
459
+ commands?: Array<string>;
460
+ skills?: Array<string>;
461
+ mcpServers?: Array<string>;
462
+ hooks?: Array<string>;
463
+ };
464
+ } | null;
465
+ models?: {
466
+ allowed: Array<string>;
467
+ };
468
+ }>;
469
+ next_page: string | null;
470
+ }>;
471
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AgentsRetrieveData>) => Promise<{
472
+ id: string;
473
+ archived_at: null | string;
474
+ created_at: string;
475
+ description: null | string;
476
+ mcp_servers: Array<Types.AgentManaged36>;
477
+ metadata: Types.AgentManaged37;
478
+ model: {
479
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
480
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
481
+ inference_geo?: string;
482
+ speed?: "standard" | "fast";
483
+ settings?: {
484
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
485
+ };
486
+ };
487
+ multiagent: null | Types.AgentManaged39;
488
+ name: string;
489
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
490
+ system: null | string;
491
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
492
+ type: "agent";
493
+ updated_at: string;
494
+ version: number;
495
+ kind: "personal" | "service";
496
+ computer_id?: string;
497
+ subagent_model?: string | null;
498
+ subagents?: Array<{
499
+ name: string;
500
+ description: string;
501
+ prompt: string;
502
+ tools?: Array<string>;
503
+ disallowed_tools?: Array<string>;
504
+ model?: string;
505
+ }> | null;
506
+ commands?: Array<{
507
+ name: string;
508
+ description?: string;
509
+ argument_hint?: string;
510
+ prompt: string;
511
+ }> | null;
512
+ settings?: {
513
+ hooks?: {
514
+ SessionStart?: Array<{
515
+ matcher?: string;
516
+ hooks: Array<{
517
+ type: "command";
518
+ command: string;
519
+ timeout?: number;
520
+ async?: boolean;
521
+ enabled?: boolean;
522
+ }>;
523
+ }>;
524
+ UserPromptSubmit?: Array<{
525
+ matcher?: string;
526
+ hooks: Array<{
527
+ type: "command";
528
+ command: string;
529
+ timeout?: number;
530
+ async?: boolean;
531
+ enabled?: boolean;
532
+ }>;
533
+ }>;
534
+ PreToolUse?: Array<{
535
+ matcher?: string;
536
+ hooks: Array<{
537
+ type: "command";
538
+ command: string;
539
+ timeout?: number;
540
+ async?: boolean;
541
+ enabled?: boolean;
542
+ }>;
543
+ }>;
544
+ PermissionRequest?: Array<{
545
+ matcher?: string;
546
+ hooks: Array<{
547
+ type: "command";
548
+ command: string;
549
+ timeout?: number;
550
+ async?: boolean;
551
+ enabled?: boolean;
552
+ }>;
553
+ }>;
554
+ PostToolUse?: Array<{
555
+ matcher?: string;
556
+ hooks: Array<{
557
+ type: "command";
558
+ command: string;
559
+ timeout?: number;
560
+ async?: boolean;
561
+ enabled?: boolean;
562
+ }>;
563
+ }>;
564
+ PostToolUseFailure?: Array<{
565
+ matcher?: string;
566
+ hooks: Array<{
567
+ type: "command";
568
+ command: string;
569
+ timeout?: number;
570
+ async?: boolean;
571
+ enabled?: boolean;
572
+ }>;
573
+ }>;
574
+ Stop?: Array<{
575
+ matcher?: string;
576
+ hooks: Array<{
577
+ type: "command";
578
+ command: string;
579
+ timeout?: number;
580
+ async?: boolean;
581
+ enabled?: boolean;
582
+ }>;
583
+ }>;
584
+ };
585
+ allowManagedHooksOnly?: boolean;
586
+ allowManagedMcpServersOnly?: boolean;
587
+ allowManagedPermissionRulesOnly?: boolean;
588
+ autoMemoryEnabled?: boolean;
589
+ disabled?: {
590
+ subagents?: Array<string>;
591
+ commands?: Array<string>;
592
+ skills?: Array<string>;
593
+ mcpServers?: Array<string>;
594
+ hooks?: Array<string>;
595
+ };
596
+ } | null;
597
+ models?: {
598
+ allowed: Array<string>;
599
+ };
600
+ }>;
601
+ update: (options: import("./core/transport.js").CallOptions<Types.AgentsUpdateData>) => Promise<{
602
+ id: string;
603
+ archived_at: null | string;
604
+ created_at: string;
605
+ description: null | string;
606
+ mcp_servers: Array<Types.AgentManaged36>;
607
+ metadata: Types.AgentManaged37;
608
+ model: {
609
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
610
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
611
+ inference_geo?: string;
612
+ speed?: "standard" | "fast";
613
+ settings?: {
614
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
615
+ };
616
+ };
617
+ multiagent: null | Types.AgentManaged39;
618
+ name: string;
619
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
620
+ system: null | string;
621
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
622
+ type: "agent";
623
+ updated_at: string;
624
+ version: number;
625
+ kind: "personal" | "service";
626
+ computer_id?: string;
627
+ subagent_model?: string | null;
628
+ subagents?: Array<{
629
+ name: string;
630
+ description: string;
631
+ prompt: string;
632
+ tools?: Array<string>;
633
+ disallowed_tools?: Array<string>;
634
+ model?: string;
635
+ }> | null;
636
+ commands?: Array<{
637
+ name: string;
638
+ description?: string;
639
+ argument_hint?: string;
640
+ prompt: string;
641
+ }> | null;
642
+ settings?: {
643
+ hooks?: {
644
+ SessionStart?: Array<{
645
+ matcher?: string;
646
+ hooks: Array<{
647
+ type: "command";
648
+ command: string;
649
+ timeout?: number;
650
+ async?: boolean;
651
+ enabled?: boolean;
652
+ }>;
653
+ }>;
654
+ UserPromptSubmit?: Array<{
655
+ matcher?: string;
656
+ hooks: Array<{
657
+ type: "command";
658
+ command: string;
659
+ timeout?: number;
660
+ async?: boolean;
661
+ enabled?: boolean;
662
+ }>;
663
+ }>;
664
+ PreToolUse?: Array<{
665
+ matcher?: string;
666
+ hooks: Array<{
667
+ type: "command";
668
+ command: string;
669
+ timeout?: number;
670
+ async?: boolean;
671
+ enabled?: boolean;
672
+ }>;
673
+ }>;
674
+ PermissionRequest?: Array<{
675
+ matcher?: string;
676
+ hooks: Array<{
677
+ type: "command";
678
+ command: string;
679
+ timeout?: number;
680
+ async?: boolean;
681
+ enabled?: boolean;
682
+ }>;
683
+ }>;
684
+ PostToolUse?: Array<{
685
+ matcher?: string;
686
+ hooks: Array<{
687
+ type: "command";
688
+ command: string;
689
+ timeout?: number;
690
+ async?: boolean;
691
+ enabled?: boolean;
692
+ }>;
693
+ }>;
694
+ PostToolUseFailure?: Array<{
695
+ matcher?: string;
696
+ hooks: Array<{
697
+ type: "command";
698
+ command: string;
699
+ timeout?: number;
700
+ async?: boolean;
701
+ enabled?: boolean;
702
+ }>;
703
+ }>;
704
+ Stop?: Array<{
705
+ matcher?: string;
706
+ hooks: Array<{
707
+ type: "command";
708
+ command: string;
709
+ timeout?: number;
710
+ async?: boolean;
711
+ enabled?: boolean;
712
+ }>;
713
+ }>;
714
+ };
715
+ allowManagedHooksOnly?: boolean;
716
+ allowManagedMcpServersOnly?: boolean;
717
+ allowManagedPermissionRulesOnly?: boolean;
718
+ autoMemoryEnabled?: boolean;
719
+ disabled?: {
720
+ subagents?: Array<string>;
721
+ commands?: Array<string>;
722
+ skills?: Array<string>;
723
+ mcpServers?: Array<string>;
724
+ hooks?: Array<string>;
725
+ };
726
+ } | null;
727
+ models?: {
728
+ allowed: Array<string>;
729
+ };
730
+ }>;
731
+ versions: {
732
+ list: (options: import("./core/transport.js").CallOptions<Types.AgentsVersionsListData>) => Promise<{
733
+ data: Array<{
734
+ id: string;
735
+ archived_at: null | string;
736
+ created_at: string;
737
+ description: null | string;
738
+ mcp_servers: Array<Types.AgentManaged36>;
739
+ metadata: Types.AgentManaged37;
740
+ model: {
741
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
742
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
743
+ inference_geo?: string;
744
+ speed?: "standard" | "fast";
745
+ settings?: {
746
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
747
+ };
748
+ };
749
+ multiagent: null | Types.AgentManaged39;
750
+ name: string;
751
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
752
+ system: null | string;
753
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
754
+ type: "agent";
755
+ updated_at: string;
756
+ version: number;
757
+ kind: "personal" | "service";
758
+ computer_id?: string;
759
+ subagent_model?: string | null;
760
+ subagents?: Array<{
761
+ name: string;
762
+ description: string;
763
+ prompt: string;
764
+ tools?: Array<string>;
765
+ disallowed_tools?: Array<string>;
766
+ model?: string;
767
+ }> | null;
768
+ commands?: Array<{
769
+ name: string;
770
+ description?: string;
771
+ argument_hint?: string;
772
+ prompt: string;
773
+ }> | null;
774
+ settings?: {
775
+ hooks?: {
776
+ SessionStart?: Array<{
777
+ matcher?: string;
778
+ hooks: Array<{
779
+ type: "command";
780
+ command: string;
781
+ timeout?: number;
782
+ async?: boolean;
783
+ enabled?: boolean;
784
+ }>;
785
+ }>;
786
+ UserPromptSubmit?: Array<{
787
+ matcher?: string;
788
+ hooks: Array<{
789
+ type: "command";
790
+ command: string;
791
+ timeout?: number;
792
+ async?: boolean;
793
+ enabled?: boolean;
794
+ }>;
795
+ }>;
796
+ PreToolUse?: Array<{
797
+ matcher?: string;
798
+ hooks: Array<{
799
+ type: "command";
800
+ command: string;
801
+ timeout?: number;
802
+ async?: boolean;
803
+ enabled?: boolean;
804
+ }>;
805
+ }>;
806
+ PermissionRequest?: Array<{
807
+ matcher?: string;
808
+ hooks: Array<{
809
+ type: "command";
810
+ command: string;
811
+ timeout?: number;
812
+ async?: boolean;
813
+ enabled?: boolean;
814
+ }>;
815
+ }>;
816
+ PostToolUse?: Array<{
817
+ matcher?: string;
818
+ hooks: Array<{
819
+ type: "command";
820
+ command: string;
821
+ timeout?: number;
822
+ async?: boolean;
823
+ enabled?: boolean;
824
+ }>;
825
+ }>;
826
+ PostToolUseFailure?: Array<{
827
+ matcher?: string;
828
+ hooks: Array<{
829
+ type: "command";
830
+ command: string;
831
+ timeout?: number;
832
+ async?: boolean;
833
+ enabled?: boolean;
834
+ }>;
835
+ }>;
836
+ Stop?: Array<{
837
+ matcher?: string;
838
+ hooks: Array<{
839
+ type: "command";
840
+ command: string;
841
+ timeout?: number;
842
+ async?: boolean;
843
+ enabled?: boolean;
844
+ }>;
845
+ }>;
846
+ };
847
+ allowManagedHooksOnly?: boolean;
848
+ allowManagedMcpServersOnly?: boolean;
849
+ allowManagedPermissionRulesOnly?: boolean;
850
+ autoMemoryEnabled?: boolean;
851
+ disabled?: {
852
+ subagents?: Array<string>;
853
+ commands?: Array<string>;
854
+ skills?: Array<string>;
855
+ mcpServers?: Array<string>;
856
+ hooks?: Array<string>;
857
+ };
858
+ } | null;
859
+ models?: {
860
+ allowed: Array<string>;
861
+ };
862
+ }>;
863
+ next_page: string | null;
864
+ }>;
865
+ };
866
+ };
867
+ computers: {
868
+ archive: (options: import("./core/transport.js").CallOptions<Types.ComputersArchiveData>) => Promise<{
869
+ type: "computer";
870
+ id: string;
871
+ name: string;
872
+ sandbox_id: string | null;
873
+ environment_id: string | null;
874
+ status: "active" | "archived";
875
+ created_at: string;
876
+ updated_at: string;
877
+ archived_at: string | null;
878
+ }>;
879
+ attachments: {
880
+ create: (options: import("./core/transport.js").CallOptions<Types.ComputersAttachmentsCreateData>) => Promise<{
881
+ path: string;
882
+ name: string;
883
+ type: "file" | "dir" | "symlink";
884
+ size: number;
885
+ mime_type: string;
886
+ read_only: boolean;
887
+ digest?: string | null;
888
+ updated_at: string | null;
889
+ }>;
890
+ };
891
+ connect: (options: import("./core/transport.js").CallOptions<Types.ConnectComputerData>) => Promise<{
892
+ sandbox_id: string;
893
+ envd_access_token: string;
894
+ template_id: string;
895
+ tier: "light" | "heavy";
896
+ lease_id: string | null;
897
+ lease_expires_at: string | null;
898
+ }>;
899
+ create: (options: import("./core/transport.js").CallOptions<Types.ComputersCreateData>) => Promise<{
900
+ type: "computer";
901
+ id: string;
902
+ name: string;
903
+ sandbox_id: string | null;
904
+ environment_id: string | null;
905
+ status: "active" | "archived";
906
+ created_at: string;
907
+ updated_at: string;
908
+ archived_at: string | null;
909
+ }>;
910
+ delete: (options: import("./core/transport.js").CallOptions<Types.ComputersDeleteData>) => Promise<{
911
+ id: string;
912
+ type: "computer_deleted";
913
+ }>;
914
+ files: {
915
+ list: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesListData>) => Promise<{
916
+ data: Array<{
917
+ path: string;
918
+ name: string;
919
+ type: "file" | "dir" | "symlink";
920
+ size: number;
921
+ mime_type: string;
922
+ read_only: boolean;
923
+ digest?: string | null;
924
+ updated_at: string | null;
925
+ }>;
926
+ has_more: false;
927
+ }>;
928
+ retrieveContent: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesContentData>) => Promise<Blob | File>;
929
+ };
930
+ leases: {
931
+ delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
932
+ id: string;
933
+ type: "computer_lease_released";
934
+ }>;
935
+ renew: {
936
+ create: (options: import("./core/transport.js").CallOptions<Types.RenewComputerLeaseData>) => Promise<{
937
+ lease_id: string;
938
+ lease_expires_at: string;
939
+ }>;
940
+ };
941
+ };
942
+ list: (options?: import("./core/transport.js").CallOptions<Types.ComputersListData> | undefined) => Promise<{
943
+ data: Array<{
944
+ type: "computer";
945
+ id: string;
946
+ name: string;
947
+ sandbox_id: string | null;
948
+ environment_id: string | null;
949
+ status: "active" | "archived";
950
+ created_at: string;
951
+ updated_at: string;
952
+ archived_at: string | null;
953
+ }>;
954
+ has_more: boolean;
955
+ next_page: string | null;
956
+ }>;
957
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.ComputersRetrieveData>) => Promise<{
958
+ type: "computer";
959
+ id: string;
960
+ name: string;
961
+ sandbox_id: string | null;
962
+ environment_id: string | null;
963
+ status: "active" | "archived";
964
+ created_at: string;
965
+ updated_at: string;
966
+ archived_at: string | null;
967
+ implementation: "virtual" | "sandbox";
968
+ storage_bytes: number;
969
+ file_count: number;
970
+ }>;
971
+ update: (options: import("./core/transport.js").CallOptions<Types.ComputersUpdateData>) => Promise<{
972
+ type: "computer";
973
+ id: string;
974
+ name: string;
975
+ sandbox_id: string | null;
976
+ environment_id: string | null;
977
+ status: "active" | "archived";
978
+ created_at: string;
979
+ updated_at: string;
980
+ archived_at: string | null;
981
+ }>;
982
+ };
983
+ deploymentRuns: {
984
+ list: (options?: import("./core/transport.js").CallOptions<Types.DeploymentRunsListData> | undefined) => Promise<{
985
+ data: Array<Types.AgentManaged113>;
986
+ next_page: string | null;
987
+ }>;
988
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.DeploymentRunsRetrieveData>) => Promise<Types.AgentManaged113>;
989
+ };
990
+ deployments: {
991
+ archive: (options: import("./core/transport.js").CallOptions<Types.DeploymentsArchiveData>) => Promise<{
992
+ id: string;
993
+ agent: {
994
+ id: string;
995
+ type: "agent";
996
+ version: number;
997
+ } | {
998
+ id: string;
999
+ type: "agent_with_overrides";
1000
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1001
+ cwd?: string;
1002
+ model?: string | {
1003
+ id: string;
1004
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1005
+ speed?: null | "standard" | "fast";
1006
+ };
1007
+ version: number;
1008
+ };
1009
+ archived_at: null | string;
1010
+ created_at: string;
1011
+ description: null | string;
1012
+ environment_id?: string | null;
1013
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
1014
+ metadata: Types.AgentManaged91;
1015
+ name: string;
1016
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
1017
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
1018
+ schedule: null | Types.AgentManaged111;
1019
+ status: "active" | "paused";
1020
+ type: "deployment";
1021
+ updated_at: string;
1022
+ vault_ids: Array<string>;
1023
+ budget?: null | Types.AgentManaged76;
1024
+ target: {
1025
+ type: "environment" | "computer";
1026
+ };
1027
+ }>;
1028
+ create: (options: import("./core/transport.js").CallOptions<Types.DeploymentsCreateData>) => Promise<{
1029
+ id: string;
1030
+ agent: {
1031
+ id: string;
1032
+ type: "agent";
1033
+ version: number;
1034
+ } | {
1035
+ id: string;
1036
+ type: "agent_with_overrides";
1037
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1038
+ cwd?: string;
1039
+ model?: string | {
1040
+ id: string;
1041
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1042
+ speed?: null | "standard" | "fast";
1043
+ };
1044
+ version: number;
1045
+ };
1046
+ archived_at: null | string;
1047
+ created_at: string;
1048
+ description: null | string;
1049
+ environment_id?: string | null;
1050
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
1051
+ metadata: Types.AgentManaged91;
1052
+ name: string;
1053
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
1054
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
1055
+ schedule: null | Types.AgentManaged111;
1056
+ status: "active" | "paused";
1057
+ type: "deployment";
1058
+ updated_at: string;
1059
+ vault_ids: Array<string>;
1060
+ budget?: null | Types.AgentManaged76;
1061
+ target: {
1062
+ type: "environment" | "computer";
1063
+ };
1064
+ }>;
1065
+ list: (options?: import("./core/transport.js").CallOptions<Types.DeploymentsListData> | undefined) => Promise<{
1066
+ data: Array<{
1067
+ id: string;
1068
+ agent: {
1069
+ id: string;
1070
+ type: "agent";
1071
+ version: number;
1072
+ } | {
1073
+ id: string;
1074
+ type: "agent_with_overrides";
1075
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1076
+ cwd?: string;
1077
+ model?: string | {
1078
+ id: string;
1079
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1080
+ speed?: null | "standard" | "fast";
1081
+ };
1082
+ version: number;
1083
+ };
1084
+ archived_at: null | string;
1085
+ created_at: string;
1086
+ description: null | string;
1087
+ environment_id?: string | null;
1088
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
1089
+ metadata: Types.AgentManaged91;
1090
+ name: string;
1091
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
1092
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
1093
+ schedule: null | Types.AgentManaged111;
1094
+ status: "active" | "paused";
1095
+ type: "deployment";
1096
+ updated_at: string;
1097
+ vault_ids: Array<string>;
1098
+ budget?: null | Types.AgentManaged76;
1099
+ target: {
1100
+ type: "environment" | "computer";
1101
+ };
1102
+ }>;
1103
+ next_page: string | null;
1104
+ }>;
1105
+ pause: (options: import("./core/transport.js").CallOptions<Types.DeploymentsPauseData>) => Promise<{
1106
+ id: string;
1107
+ agent: {
1108
+ id: string;
1109
+ type: "agent";
1110
+ version: number;
1111
+ } | {
1112
+ id: string;
1113
+ type: "agent_with_overrides";
1114
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1115
+ cwd?: string;
1116
+ model?: string | {
1117
+ id: string;
1118
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1119
+ speed?: null | "standard" | "fast";
1120
+ };
1121
+ version: number;
1122
+ };
1123
+ archived_at: null | string;
1124
+ created_at: string;
1125
+ description: null | string;
1126
+ environment_id?: string | null;
1127
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
1128
+ metadata: Types.AgentManaged91;
1129
+ name: string;
1130
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
1131
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
1132
+ schedule: null | Types.AgentManaged111;
1133
+ status: "active" | "paused";
1134
+ type: "deployment";
1135
+ updated_at: string;
1136
+ vault_ids: Array<string>;
1137
+ budget?: null | Types.AgentManaged76;
1138
+ target: {
1139
+ type: "environment" | "computer";
1140
+ };
1141
+ }>;
1142
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.DeploymentsRetrieveData>) => Promise<{
1143
+ id: string;
1144
+ agent: {
1145
+ id: string;
1146
+ type: "agent";
1147
+ version: number;
1148
+ } | {
1149
+ id: string;
1150
+ type: "agent_with_overrides";
1151
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1152
+ cwd?: string;
1153
+ model?: string | {
1154
+ id: string;
1155
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1156
+ speed?: null | "standard" | "fast";
1157
+ };
1158
+ version: number;
1159
+ };
1160
+ archived_at: null | string;
1161
+ created_at: string;
1162
+ description: null | string;
1163
+ environment_id?: string | null;
1164
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
1165
+ metadata: Types.AgentManaged91;
1166
+ name: string;
1167
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
1168
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
1169
+ schedule: null | Types.AgentManaged111;
1170
+ status: "active" | "paused";
1171
+ type: "deployment";
1172
+ updated_at: string;
1173
+ vault_ids: Array<string>;
1174
+ budget?: null | Types.AgentManaged76;
1175
+ target: {
1176
+ type: "environment" | "computer";
1177
+ };
1178
+ }>;
1179
+ run: {
1180
+ create: (options: import("./core/transport.js").CallOptions<Types.DeploymentsRunData>) => Promise<Types.AgentManaged113>;
1181
+ };
1182
+ unpause: {
1183
+ create: (options: import("./core/transport.js").CallOptions<Types.DeploymentsUnpauseData>) => Promise<{
1184
+ id: string;
1185
+ agent: {
1186
+ id: string;
1187
+ type: "agent";
1188
+ version: number;
1189
+ } | {
1190
+ id: string;
1191
+ type: "agent_with_overrides";
1192
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1193
+ cwd?: string;
1194
+ model?: string | {
1195
+ id: string;
1196
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1197
+ speed?: null | "standard" | "fast";
1198
+ };
1199
+ version: number;
1200
+ };
1201
+ archived_at: null | string;
1202
+ created_at: string;
1203
+ description: null | string;
1204
+ environment_id?: string | null;
1205
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
1206
+ metadata: Types.AgentManaged91;
1207
+ name: string;
1208
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
1209
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
1210
+ schedule: null | Types.AgentManaged111;
1211
+ status: "active" | "paused";
1212
+ type: "deployment";
1213
+ updated_at: string;
1214
+ vault_ids: Array<string>;
1215
+ budget?: null | Types.AgentManaged76;
1216
+ target: {
1217
+ type: "environment" | "computer";
1218
+ };
1219
+ }>;
1220
+ };
1221
+ update: (options: import("./core/transport.js").CallOptions<Types.DeploymentsUpdateData>) => Promise<{
1222
+ id: string;
1223
+ agent: {
1224
+ id: string;
1225
+ type: "agent";
1226
+ version: number;
1227
+ } | {
1228
+ id: string;
1229
+ type: "agent_with_overrides";
1230
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1231
+ cwd?: string;
1232
+ model?: string | {
1233
+ id: string;
1234
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1235
+ speed?: null | "standard" | "fast";
1236
+ };
1237
+ version: number;
1238
+ };
1239
+ archived_at: null | string;
1240
+ created_at: string;
1241
+ description: null | string;
1242
+ environment_id?: string | null;
1243
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
1244
+ metadata: Types.AgentManaged91;
1245
+ name: string;
1246
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
1247
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
1248
+ schedule: null | Types.AgentManaged111;
1249
+ status: "active" | "paused";
1250
+ type: "deployment";
1251
+ updated_at: string;
1252
+ vault_ids: Array<string>;
1253
+ budget?: null | Types.AgentManaged76;
1254
+ target: {
1255
+ type: "environment" | "computer";
1256
+ };
1257
+ }>;
1258
+ };
1259
+ embed: {
1260
+ exchange: {
1261
+ create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
1262
+ token: string;
1263
+ expires_at: string;
1264
+ }>;
1265
+ };
1266
+ retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
1267
+ agent?: {
1268
+ name?: string;
1269
+ avatar?: string;
1270
+ };
1271
+ layout?: "inline" | "sidebar" | "popup" | "modal";
1272
+ launcher?: {
1273
+ type: "none" | "bubble" | "mascot";
1274
+ image?: string;
1275
+ position?: "bottom-right" | "bottom-left";
1276
+ label?: string;
1277
+ };
1278
+ header?: {
1279
+ title?: string;
1280
+ subtitle?: string;
1281
+ icon?: string;
1282
+ };
1283
+ theme?: {
1284
+ colorScheme?: "light" | "dark" | "system";
1285
+ accent?: string;
1286
+ surface?: string;
1287
+ grayscale?: "neutral" | "warm" | "cool";
1288
+ radius?: "none" | "sm" | "md" | "lg" | "full";
1289
+ density?: "compact" | "normal" | "spacious";
1290
+ fontFamily?: string;
1291
+ fontSize?: number;
1292
+ };
1293
+ locale?: "zh" | "en";
1294
+ startScreen?: {
1295
+ greeting?: string;
1296
+ prompts?: Array<{
1297
+ label: string;
1298
+ prompt: string;
1299
+ }>;
1300
+ };
1301
+ composer?: {
1302
+ placeholder?: string;
1303
+ };
1304
+ disclaimer?: string;
1305
+ footer?: string;
1306
+ history?: {
1307
+ enabled?: boolean;
1308
+ };
1309
+ }>;
1310
+ };
1311
+ embedTokens: {
1312
+ anonymous: {
1313
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
1314
+ token: string;
1315
+ expires_at: string;
1316
+ visitor_secret?: string;
1317
+ }>;
1318
+ };
1319
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
1320
+ hosted_url?: string;
1321
+ id: string;
1322
+ token: string;
1323
+ expires_at: string;
1324
+ }>;
1325
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListEmbedTokensData> | undefined) => Promise<{
1326
+ data: Array<{
1327
+ id: string;
1328
+ type: "embed_token";
1329
+ agent_id: string;
1330
+ agent_version: number;
1331
+ external_user_id: string;
1332
+ created_at: string;
1333
+ expires_at: string;
1334
+ revoked_at: string | null;
1335
+ host_origin: string | null;
1336
+ issued_by: {
1337
+ type: "user" | "api_key";
1338
+ id: string;
1339
+ };
1340
+ }>;
1341
+ next_page: string | null;
1342
+ }>;
1343
+ revoke: {
1344
+ create: (options: import("./core/transport.js").CallOptions<Types.RevokeEmbedTokenData>) => Promise<{
1345
+ id: string;
1346
+ type: "embed_token";
1347
+ agent_id: string;
1348
+ agent_version: number;
1349
+ external_user_id: string;
1350
+ created_at: string;
1351
+ expires_at: string;
1352
+ revoked_at: string | null;
1353
+ host_origin: string | null;
1354
+ issued_by: {
1355
+ type: "user" | "api_key";
1356
+ id: string;
1357
+ };
1358
+ }>;
1359
+ };
1360
+ };
1361
+ environments: {
1362
+ archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
1363
+ create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
1364
+ list: (options?: import("./core/transport.js").CallOptions<Types.EnvironmentsListData> | undefined) => Promise<{
1365
+ data: Array<Types.AgentManaged138>;
1366
+ next_page: string | null;
1367
+ }>;
1368
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsRetrieveData>) => Promise<Types.AgentManaged138>;
1369
+ update: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsUpdateData>) => Promise<Types.AgentManaged138>;
1370
+ };
1371
+ sessions: {
1372
+ archive: (options: import("./core/transport.js").CallOptions<Types.SessionsArchiveData>) => Promise<{
1373
+ id: string;
1374
+ agent: {
1375
+ id: string;
1376
+ description: null | string;
1377
+ mcp_servers: Array<Types.AgentManaged36>;
1378
+ model: {
1379
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
1380
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1381
+ inference_geo?: string;
1382
+ speed?: "standard" | "fast";
1383
+ settings?: {
1384
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1385
+ };
1386
+ };
1387
+ multiagent: null | Types.AgentManaged171;
1388
+ name: string;
1389
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1390
+ system: null | string;
1391
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
1392
+ type: "agent";
1393
+ version: number;
1394
+ };
1395
+ archived_at: null | string;
1396
+ budget: null | Types.AgentManaged76;
1397
+ created_at: string;
1398
+ environment_id?: string;
1399
+ metadata: Types.AgentManaged173;
1400
+ outcome_evaluations: Array<Types.AgentManaged174>;
1401
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
1402
+ stats: Types.AgentManaged178;
1403
+ status: "rescheduling" | "running" | "idle" | "terminated";
1404
+ title: null | string;
1405
+ type: "session";
1406
+ updated_at: string;
1407
+ usage: Types.AgentManaged179;
1408
+ vault_ids: Array<string>;
1409
+ deployment_id?: null | string;
1410
+ cwd: string;
1411
+ computer_id?: string;
1412
+ model?: {
1413
+ id: string;
1414
+ thinking: {
1415
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
1416
+ can_disable: boolean;
1417
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
1418
+ } | null;
1419
+ };
1420
+ thinking?: {
1421
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1422
+ } | null;
1423
+ forked_from?: {
1424
+ session_id: string;
1425
+ message_id: string;
1426
+ } | null;
1427
+ readonly external_user_id: string | null;
1428
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
1429
+ }>;
1430
+ backgroundTasks: {
1431
+ list: (options: import("./core/transport.js").CallOptions<Types.ListSessionBackgroundTasksData>) => Promise<{
1432
+ data: Array<{
1433
+ id: string;
1434
+ kind: string;
1435
+ title: string;
1436
+ thread_id: string | null;
1437
+ status: "running" | "result_pending" | "completed" | "failed" | "cancelled" | "lost";
1438
+ started_at: string;
1439
+ ended_at: string | null;
1440
+ cancellable: boolean;
1441
+ notified_at: string | null;
1442
+ trigger_count: number | null;
1443
+ }>;
1444
+ }>;
1445
+ retrieveOutput: (options: import("./core/transport.js").CallOptions<Types.GetSessionBackgroundTaskOutputData>) => Promise<{
1446
+ text: string;
1447
+ next_offset: number;
1448
+ eof: boolean;
1449
+ unavailable?: true;
1450
+ }>;
1451
+ stop: (options: import("./core/transport.js").CallOptions<Types.StopSessionBackgroundTaskData>) => Promise<{
1452
+ id: string;
1453
+ kind: string;
1454
+ title: string;
1455
+ thread_id: string | null;
1456
+ status: "running" | "result_pending" | "completed" | "failed" | "cancelled" | "lost";
1457
+ started_at: string;
1458
+ ended_at: string | null;
1459
+ cancellable: boolean;
1460
+ notified_at: string | null;
1461
+ trigger_count: number | null;
1462
+ }>;
1463
+ };
1464
+ compact: (options: import("./core/transport.js").CallOptions<Types.CompactSessionData>) => Promise<{
1465
+ type: "session_compaction";
1466
+ id: string;
1467
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed";
1468
+ reason?: string;
1469
+ } | {
1470
+ type: "session_compaction";
1471
+ id: string;
1472
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed";
1473
+ reason?: string;
1474
+ }>;
1475
+ compactions: {
1476
+ list: (options: import("./core/transport.js").CallOptions<Types.ListSessionCompactionsData>) => Promise<{
1477
+ data: Array<{
1478
+ type: "context_compaction";
1479
+ id: string;
1480
+ event_id: string | null;
1481
+ trigger: "auto" | "manual" | "model_downshift";
1482
+ status: "succeeded" | "failed";
1483
+ model: string;
1484
+ compacted_message_count: number;
1485
+ input_tokens_before: number;
1486
+ input_tokens_after: number | null;
1487
+ summary: string | null;
1488
+ error: string | null;
1489
+ created_at: string;
1490
+ }>;
1491
+ }>;
1492
+ };
1493
+ create: (options: import("./core/transport.js").CallOptions<Types.SessionsCreateData>) => Promise<{
1494
+ id: string;
1495
+ agent: {
1496
+ id: string;
1497
+ description: null | string;
1498
+ mcp_servers: Array<Types.AgentManaged36>;
1499
+ model: {
1500
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
1501
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1502
+ inference_geo?: string;
1503
+ speed?: "standard" | "fast";
1504
+ settings?: {
1505
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1506
+ };
1507
+ };
1508
+ multiagent: null | Types.AgentManaged171;
1509
+ name: string;
1510
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1511
+ system: null | string;
1512
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
1513
+ type: "agent";
1514
+ version: number;
1515
+ };
1516
+ archived_at: null | string;
1517
+ budget: null | Types.AgentManaged76;
1518
+ created_at: string;
1519
+ environment_id?: string;
1520
+ metadata: Types.AgentManaged173;
1521
+ outcome_evaluations: Array<Types.AgentManaged174>;
1522
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
1523
+ stats: Types.AgentManaged178;
1524
+ status: "rescheduling" | "running" | "idle" | "terminated";
1525
+ title: null | string;
1526
+ type: "session";
1527
+ updated_at: string;
1528
+ usage: Types.AgentManaged179;
1529
+ vault_ids: Array<string>;
1530
+ deployment_id?: null | string;
1531
+ cwd: string;
1532
+ computer_id?: string;
1533
+ model?: {
1534
+ id: string;
1535
+ thinking: {
1536
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
1537
+ can_disable: boolean;
1538
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
1539
+ } | null;
1540
+ };
1541
+ thinking?: {
1542
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1543
+ } | null;
1544
+ forked_from?: {
1545
+ session_id: string;
1546
+ message_id: string;
1547
+ } | null;
1548
+ readonly external_user_id: string | null;
1549
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
1550
+ }>;
1551
+ events: {
1552
+ list: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsListData>) => Promise<{
1553
+ data: Array<{
1554
+ id: string;
1555
+ content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
1556
+ type: "user.message";
1557
+ processed_at?: null | string;
1558
+ praxis_context?: {
1559
+ items: Array<{
1560
+ name: string;
1561
+ value: string;
1562
+ }>;
1563
+ };
1564
+ message_id?: string;
1565
+ } | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
1566
+ id: string;
1567
+ content: Array<{
1568
+ text: string;
1569
+ type: "text";
1570
+ citations?: Array<{
1571
+ type: "search_result_location";
1572
+ source: string;
1573
+ title: string;
1574
+ cited_text: string;
1575
+ search_result_index: number;
1576
+ start_block_index: number;
1577
+ end_block_index: number;
1578
+ }>;
1579
+ } | Types.AgentManaged70>;
1580
+ processed_at: string;
1581
+ type: "agent.message";
1582
+ run_id: string | null;
1583
+ message_id?: string;
1584
+ } | {
1585
+ id: string;
1586
+ processed_at: string;
1587
+ type: "agent.thinking";
1588
+ run_id: string | null;
1589
+ message_id?: string;
1590
+ } | {
1591
+ id: string;
1592
+ input: Types.AgentManaged197;
1593
+ mcp_server_name: string;
1594
+ name: string;
1595
+ processed_at: string;
1596
+ type: "agent.mcp_tool_use";
1597
+ evaluated_permission?: "allow" | "deny" | "ask";
1598
+ evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
1599
+ session_thread_id?: null | string;
1600
+ run_id: string | null;
1601
+ _meta?: {
1602
+ ui?: {
1603
+ resourceUri?: string;
1604
+ visibility?: Array<string>;
1605
+ [key: string]: unknown;
1606
+ };
1607
+ "openai/ui"?: {
1608
+ [key: string]: unknown;
1609
+ };
1610
+ };
1611
+ source?: "app" | "codemode";
1612
+ parent_tool_use_id?: string;
1613
+ title?: string;
1614
+ input_titles?: {
1615
+ [key: string]: string;
1616
+ };
1617
+ } | {
1618
+ id: string;
1619
+ mcp_tool_use_id: string;
1620
+ processed_at: string;
1621
+ type: "agent.mcp_tool_result";
1622
+ content?: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged189>;
1623
+ is_error?: null | false | true;
1624
+ run_id: string | null;
1625
+ structured_content?: unknown;
1626
+ _meta?: {
1627
+ [key: string]: unknown;
1628
+ };
1629
+ source?: "app" | "codemode";
1630
+ } | {
1631
+ id: string;
1632
+ input: Types.AgentManaged206;
1633
+ name: string;
1634
+ processed_at: string;
1635
+ type: "agent.tool_use";
1636
+ evaluated_permission?: "allow" | "deny" | "ask";
1637
+ evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
1638
+ session_thread_id?: null | string;
1639
+ run_id: string | null;
1640
+ } | {
1641
+ id: string;
1642
+ processed_at: string;
1643
+ tool_use_id: string;
1644
+ type: "agent.tool_result";
1645
+ content?: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged189>;
1646
+ is_error?: null | false | true;
1647
+ run_id: string | null;
1648
+ } | Types.AgentManaged208 | Types.AgentManaged209 | Types.AgentManaged210 | Types.AgentManaged211 | Types.AgentManaged223 | {
1649
+ id: string;
1650
+ processed_at: string;
1651
+ type: "session.status_running";
1652
+ run_id: string | null;
1653
+ } | {
1654
+ id: string;
1655
+ processed_at: string;
1656
+ stop_reason: Types.AgentManaged226 | Types.AgentManaged227 | Types.AgentManaged228 | Types.AgentManaged229;
1657
+ type: "session.status_idle";
1658
+ run_id: string | null;
1659
+ } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
1660
+ id: string;
1661
+ processed_at: string;
1662
+ type: "session.updated";
1663
+ agent?: null | Types.AgentManaged170;
1664
+ budget?: null | Types.AgentManaged76;
1665
+ metadata?: Types.AgentManaged246;
1666
+ title?: null | string;
1667
+ model?: {
1668
+ id: string;
1669
+ };
1670
+ } | Types.AgentManaged247 | Types.AgentManaged248 | {
1671
+ id: string;
1672
+ type: "session.forked";
1673
+ processed_at: string;
1674
+ forked_from_session_id: string;
1675
+ forked_from_message_id: string;
1676
+ } | {
1677
+ id: string;
1678
+ type: "session.goal_changed";
1679
+ processed_at: string;
1680
+ action: "set" | "status_updated" | "cleared" | "usage_accounted";
1681
+ source: "command" | "runtime";
1682
+ goal: {
1683
+ goal_id: string;
1684
+ objective: string;
1685
+ summary_title: string | null;
1686
+ status: "active" | "paused" | "budget_limited" | "complete";
1687
+ token_budget: number | null;
1688
+ tokens_used: number;
1689
+ time_used_seconds: number;
1690
+ iteration: number;
1691
+ created_at: number;
1692
+ updated_at: number;
1693
+ } | null;
1694
+ previous_goal: {
1695
+ goal_id: string;
1696
+ objective: string;
1697
+ summary_title: string | null;
1698
+ status: "active" | "paused" | "budget_limited" | "complete";
1699
+ token_budget: number | null;
1700
+ tokens_used: number;
1701
+ time_used_seconds: number;
1702
+ iteration: number;
1703
+ created_at: number;
1704
+ updated_at: number;
1705
+ } | null;
1706
+ } | {
1707
+ id: string;
1708
+ type: "session.goal_verification";
1709
+ processed_at: string;
1710
+ status: "started" | "completed" | "failed_closed" | "cancelled";
1711
+ goal_id: string;
1712
+ goal_iteration: number;
1713
+ verification_id: string;
1714
+ anchor_message_id: string | null;
1715
+ verification?: {
1716
+ passed: boolean;
1717
+ reason: string;
1718
+ next_action?: string;
1719
+ };
1720
+ } | {
1721
+ id: string;
1722
+ type: "user.steer";
1723
+ event_id: string;
1724
+ processed_at: string;
1725
+ } | {
1726
+ id: string;
1727
+ type: "user.tool_confirmation";
1728
+ processed_at: string;
1729
+ tool_use_id: string;
1730
+ result: "allow";
1731
+ answers: {
1732
+ [key: string]: string;
1733
+ };
1734
+ annotations?: {
1735
+ [key: string]: {
1736
+ preview?: string;
1737
+ notes?: string;
1738
+ };
1739
+ };
1740
+ }>;
1741
+ next_page: string | null;
1742
+ }>;
1743
+ send: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsSendData>) => Promise<{
1744
+ data?: Array<{
1745
+ id: string;
1746
+ content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
1747
+ type: "user.message";
1748
+ processed_at?: null | string;
1749
+ praxis_context?: {
1750
+ items: Array<{
1751
+ name: string;
1752
+ value: string;
1753
+ }>;
1754
+ };
1755
+ } | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged238 | Types.AgentManaged243 | Types.AgentManaged247 | {
1756
+ id: string;
1757
+ type: "user.steer";
1758
+ event_id: string;
1759
+ processed_at: string;
1760
+ } | {
1761
+ id: string;
1762
+ type: "user.tool_confirmation";
1763
+ processed_at: string;
1764
+ tool_use_id: string;
1765
+ result: "allow";
1766
+ answers: {
1767
+ [key: string]: string;
1768
+ };
1769
+ annotations?: {
1770
+ [key: string]: {
1771
+ preview?: string;
1772
+ notes?: string;
1773
+ };
1774
+ };
1775
+ }>;
1776
+ }>;
1777
+ stream: (options: import("./core/transport.js").StreamOptions<Types.SessionsEventsStreamData>) => AsyncIterable<Types.AgentSseEvent>;
1778
+ };
1779
+ fork: (options: import("./core/transport.js").CallOptions<Types.ForkSessionData>) => Promise<{
1780
+ id: string;
1781
+ agent: {
1782
+ id: string;
1783
+ description: null | string;
1784
+ mcp_servers: Array<{
1785
+ type: "url";
1786
+ name: string;
1787
+ url: string;
1788
+ headers?: {
1789
+ [key: string]: string;
1790
+ };
1791
+ timeout_ms?: number;
1792
+ } | {
1793
+ type: "sse";
1794
+ name: string;
1795
+ url: string;
1796
+ headers?: {
1797
+ [key: string]: string;
1798
+ };
1799
+ timeout_ms?: number;
1800
+ } | {
1801
+ type: "stdio";
1802
+ name: string;
1803
+ command: string;
1804
+ args?: Array<string>;
1805
+ env?: {
1806
+ [key: string]: string;
1807
+ };
1808
+ timeout_ms?: number;
1809
+ }>;
1810
+ model: {
1811
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
1812
+ effort?: {
1813
+ type: "low";
1814
+ } | {
1815
+ type: "medium";
1816
+ } | {
1817
+ type: "high";
1818
+ } | {
1819
+ type: "xhigh";
1820
+ } | {
1821
+ type: "max";
1822
+ };
1823
+ inference_geo?: string;
1824
+ speed?: "standard" | "fast";
1825
+ settings?: {
1826
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1827
+ };
1828
+ };
1829
+ multiagent: null | {
1830
+ agents: Array<{
1831
+ model: string;
1832
+ type: "advisor";
1833
+ } | {
1834
+ id: string;
1835
+ description: null | string;
1836
+ mcp_servers: Array<{
1837
+ type: "url";
1838
+ name: string;
1839
+ url: string;
1840
+ headers?: {
1841
+ [key: string]: string;
1842
+ };
1843
+ timeout_ms?: number;
1844
+ } | {
1845
+ type: "sse";
1846
+ name: string;
1847
+ url: string;
1848
+ headers?: {
1849
+ [key: string]: string;
1850
+ };
1851
+ timeout_ms?: number;
1852
+ } | {
1853
+ type: "stdio";
1854
+ name: string;
1855
+ command: string;
1856
+ args?: Array<string>;
1857
+ env?: {
1858
+ [key: string]: string;
1859
+ };
1860
+ timeout_ms?: number;
1861
+ }>;
1862
+ model: {
1863
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
1864
+ effort?: {
1865
+ type: "low";
1866
+ } | {
1867
+ type: "medium";
1868
+ } | {
1869
+ type: "high";
1870
+ } | {
1871
+ type: "xhigh";
1872
+ } | {
1873
+ type: "max";
1874
+ };
1875
+ inference_geo?: string;
1876
+ speed?: "standard" | "fast";
1877
+ };
1878
+ name: string;
1879
+ skills: Array<{
1880
+ skill_id: string;
1881
+ type: "anthropic";
1882
+ version: string;
1883
+ } | {
1884
+ skill_id: string;
1885
+ type: "custom";
1886
+ version: string;
1887
+ }>;
1888
+ system: null | string;
1889
+ tools: Array<{
1890
+ configs: Array<{
1891
+ enabled: boolean;
1892
+ name: "bash";
1893
+ permission_policy: {
1894
+ type: "always_allow";
1895
+ } | {
1896
+ type: "always_ask";
1897
+ } | {
1898
+ type: "auto";
1899
+ };
1900
+ type: "bash";
1901
+ } | {
1902
+ enabled: boolean;
1903
+ name: "edit";
1904
+ permission_policy: {
1905
+ type: "always_allow";
1906
+ } | {
1907
+ type: "always_ask";
1908
+ } | {
1909
+ type: "auto";
1910
+ };
1911
+ type: "edit";
1912
+ } | {
1913
+ enabled: boolean;
1914
+ name: "read";
1915
+ permission_policy: {
1916
+ type: "always_allow";
1917
+ } | {
1918
+ type: "always_ask";
1919
+ } | {
1920
+ type: "auto";
1921
+ };
1922
+ type: "read";
1923
+ } | {
1924
+ enabled: boolean;
1925
+ name: "write";
1926
+ permission_policy: {
1927
+ type: "always_allow";
1928
+ } | {
1929
+ type: "always_ask";
1930
+ } | {
1931
+ type: "auto";
1932
+ };
1933
+ type: "write";
1934
+ } | {
1935
+ enabled: boolean;
1936
+ name: "glob";
1937
+ permission_policy: {
1938
+ type: "always_allow";
1939
+ } | {
1940
+ type: "always_ask";
1941
+ } | {
1942
+ type: "auto";
1943
+ };
1944
+ type: "glob";
1945
+ } | {
1946
+ enabled: boolean;
1947
+ name: "grep";
1948
+ permission_policy: {
1949
+ type: "always_allow";
1950
+ } | {
1951
+ type: "always_ask";
1952
+ } | {
1953
+ type: "auto";
1954
+ };
1955
+ type: "grep";
1956
+ } | {
1957
+ enabled: boolean;
1958
+ name: "web_fetch";
1959
+ permission_policy: {
1960
+ type: "always_allow";
1961
+ } | {
1962
+ type: "always_ask";
1963
+ } | {
1964
+ type: "auto";
1965
+ };
1966
+ type: "web_fetch";
1967
+ allowed_domains?: Array<string>;
1968
+ blocked_domains?: Array<string>;
1969
+ max_content_tokens?: null | number;
1970
+ } | {
1971
+ enabled: boolean;
1972
+ name: "web_search";
1973
+ permission_policy: {
1974
+ type: "always_allow";
1975
+ } | {
1976
+ type: "always_ask";
1977
+ } | {
1978
+ type: "auto";
1979
+ };
1980
+ type: "web_search";
1981
+ allowed_domains?: Array<string>;
1982
+ blocked_domains?: Array<string>;
1983
+ user_location?: null | {
1984
+ type: "approximate";
1985
+ city?: null | string;
1986
+ country?: null | string;
1987
+ region?: null | string;
1988
+ timezone?: null | string;
1989
+ };
1990
+ } | {
1991
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
1992
+ enabled: boolean;
1993
+ permission_policy: {
1994
+ type: "always_allow" | "always_ask";
1995
+ };
1996
+ }>;
1997
+ default_config: {
1998
+ enabled: boolean;
1999
+ permission_policy: {
2000
+ type: "always_allow";
2001
+ } | {
2002
+ type: "always_ask";
2003
+ } | {
2004
+ type: "auto";
2005
+ };
2006
+ };
2007
+ type: "agent_toolset_20260401";
2008
+ } | {
2009
+ type: "mcp_toolset";
2010
+ mcp_server_name: string;
2011
+ default_config?: {
2012
+ enabled?: boolean | null;
2013
+ permission_policy?: null | {
2014
+ type: "always_allow" | "always_ask";
2015
+ };
2016
+ } | null;
2017
+ configs?: Array<{
2018
+ name: string;
2019
+ enabled?: boolean | null;
2020
+ permission_policy?: null | {
2021
+ type: "always_allow" | "always_ask";
2022
+ };
2023
+ }> | null;
2024
+ } | {
2025
+ description: string;
2026
+ input_schema: {
2027
+ type: "object";
2028
+ properties?: null | {
2029
+ [key: string]: unknown;
2030
+ };
2031
+ required?: null | Array<string>;
2032
+ [key: string]: unknown;
2033
+ };
2034
+ name: string;
2035
+ type: "custom";
2036
+ }>;
2037
+ type: "agent";
2038
+ version: number;
2039
+ }>;
2040
+ type: "coordinator";
2041
+ };
2042
+ name: string;
2043
+ skills: Array<{
2044
+ skill_id: string;
2045
+ type: "anthropic";
2046
+ version: string;
2047
+ } | {
2048
+ skill_id: string;
2049
+ type: "custom";
2050
+ version: string;
2051
+ }>;
2052
+ system: null | string;
2053
+ tools: Array<{
2054
+ configs: Array<{
2055
+ enabled: boolean;
2056
+ name: "bash";
2057
+ permission_policy: {
2058
+ type: "always_allow";
2059
+ } | {
2060
+ type: "always_ask";
2061
+ } | {
2062
+ type: "auto";
2063
+ };
2064
+ type: "bash";
2065
+ } | {
2066
+ enabled: boolean;
2067
+ name: "edit";
2068
+ permission_policy: {
2069
+ type: "always_allow";
2070
+ } | {
2071
+ type: "always_ask";
2072
+ } | {
2073
+ type: "auto";
2074
+ };
2075
+ type: "edit";
2076
+ } | {
2077
+ enabled: boolean;
2078
+ name: "read";
2079
+ permission_policy: {
2080
+ type: "always_allow";
2081
+ } | {
2082
+ type: "always_ask";
2083
+ } | {
2084
+ type: "auto";
2085
+ };
2086
+ type: "read";
2087
+ } | {
2088
+ enabled: boolean;
2089
+ name: "write";
2090
+ permission_policy: {
2091
+ type: "always_allow";
2092
+ } | {
2093
+ type: "always_ask";
2094
+ } | {
2095
+ type: "auto";
2096
+ };
2097
+ type: "write";
2098
+ } | {
2099
+ enabled: boolean;
2100
+ name: "glob";
2101
+ permission_policy: {
2102
+ type: "always_allow";
2103
+ } | {
2104
+ type: "always_ask";
2105
+ } | {
2106
+ type: "auto";
2107
+ };
2108
+ type: "glob";
2109
+ } | {
2110
+ enabled: boolean;
2111
+ name: "grep";
2112
+ permission_policy: {
2113
+ type: "always_allow";
2114
+ } | {
2115
+ type: "always_ask";
2116
+ } | {
2117
+ type: "auto";
2118
+ };
2119
+ type: "grep";
2120
+ } | {
2121
+ enabled: boolean;
2122
+ name: "web_fetch";
2123
+ permission_policy: {
2124
+ type: "always_allow";
2125
+ } | {
2126
+ type: "always_ask";
2127
+ } | {
2128
+ type: "auto";
2129
+ };
2130
+ type: "web_fetch";
2131
+ allowed_domains?: Array<string>;
2132
+ blocked_domains?: Array<string>;
2133
+ max_content_tokens?: null | number;
2134
+ } | {
2135
+ enabled: boolean;
2136
+ name: "web_search";
2137
+ permission_policy: {
2138
+ type: "always_allow";
2139
+ } | {
2140
+ type: "always_ask";
2141
+ } | {
2142
+ type: "auto";
2143
+ };
2144
+ type: "web_search";
2145
+ allowed_domains?: Array<string>;
2146
+ blocked_domains?: Array<string>;
2147
+ user_location?: null | {
2148
+ type: "approximate";
2149
+ city?: null | string;
2150
+ country?: null | string;
2151
+ region?: null | string;
2152
+ timezone?: null | string;
2153
+ };
2154
+ } | {
2155
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
2156
+ enabled: boolean;
2157
+ permission_policy: {
2158
+ type: "always_allow" | "always_ask";
2159
+ };
2160
+ }>;
2161
+ default_config: {
2162
+ enabled: boolean;
2163
+ permission_policy: {
2164
+ type: "always_allow";
2165
+ } | {
2166
+ type: "always_ask";
2167
+ } | {
2168
+ type: "auto";
2169
+ };
2170
+ };
2171
+ type: "agent_toolset_20260401";
2172
+ } | {
2173
+ type: "mcp_toolset";
2174
+ mcp_server_name: string;
2175
+ default_config?: {
2176
+ enabled?: boolean | null;
2177
+ permission_policy?: null | {
2178
+ type: "always_allow" | "always_ask";
2179
+ };
2180
+ } | null;
2181
+ configs?: Array<{
2182
+ name: string;
2183
+ enabled?: boolean | null;
2184
+ permission_policy?: null | {
2185
+ type: "always_allow" | "always_ask";
2186
+ };
2187
+ }> | null;
2188
+ } | {
2189
+ description: string;
2190
+ input_schema: {
2191
+ type: "object";
2192
+ properties?: null | {
2193
+ [key: string]: unknown;
2194
+ };
2195
+ required?: null | Array<string>;
2196
+ [key: string]: unknown;
2197
+ };
2198
+ name: string;
2199
+ type: "custom";
2200
+ }>;
2201
+ type: "agent";
2202
+ version: number;
2203
+ };
2204
+ archived_at: null | string;
2205
+ budget: null | {
2206
+ max_list_cost: {
2207
+ amount: string;
2208
+ currency: "USD";
2209
+ };
2210
+ type: "limit";
2211
+ };
2212
+ created_at: string;
2213
+ environment_id?: string;
2214
+ metadata: {
2215
+ [key: string]: string;
2216
+ };
2217
+ outcome_evaluations: Array<{
2218
+ completed_at: null | string;
2219
+ description: string;
2220
+ explanation: null | string;
2221
+ iteration: number;
2222
+ outcome_id: string;
2223
+ result: string;
2224
+ type: "outcome_evaluation";
2225
+ }>;
2226
+ resources: Array<{
2227
+ id: string;
2228
+ created_at: string;
2229
+ mount_path: string;
2230
+ type: "github_repository";
2231
+ updated_at: string;
2232
+ url: string;
2233
+ checkout?: null | {
2234
+ name: string;
2235
+ type: "branch";
2236
+ } | {
2237
+ sha: string;
2238
+ type: "commit";
2239
+ };
2240
+ } | {
2241
+ id: string;
2242
+ created_at: string;
2243
+ file_id: string;
2244
+ mount_path: string;
2245
+ type: "file";
2246
+ updated_at: string;
2247
+ } | {
2248
+ memory_store_id: string;
2249
+ type: "memory_store";
2250
+ access?: null | "read_write" | "read_only";
2251
+ description?: string;
2252
+ instructions?: null | string;
2253
+ mount_path?: null | string;
2254
+ name?: null | string;
2255
+ }>;
2256
+ stats: {
2257
+ active_seconds?: number;
2258
+ duration_seconds?: number;
2259
+ };
2260
+ status: "rescheduling" | "running" | "idle" | "terminated";
2261
+ title: null | string;
2262
+ type: "session";
2263
+ updated_at: string;
2264
+ usage: {
2265
+ active_seconds?: number;
2266
+ cache_creation?: {
2267
+ ephemeral_1h_input_tokens?: number;
2268
+ ephemeral_5m_input_tokens?: number;
2269
+ };
2270
+ cache_read_input_tokens?: number;
2271
+ input_tokens?: number;
2272
+ list_cost?: null | {
2273
+ amount: string;
2274
+ currency: "USD";
2275
+ };
2276
+ output_tokens?: number;
2277
+ server_tool_use?: null | {
2278
+ web_fetch_requests?: number;
2279
+ web_search_requests?: number;
2280
+ };
2281
+ };
2282
+ vault_ids: Array<string>;
2283
+ deployment_id?: null | string;
2284
+ cwd: string;
2285
+ computer_id?: string;
2286
+ model?: {
2287
+ id: string;
2288
+ thinking: {
2289
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
2290
+ can_disable: boolean;
2291
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
2292
+ } | null;
2293
+ };
2294
+ thinking?: {
2295
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2296
+ } | null;
2297
+ forked_from?: {
2298
+ session_id: string;
2299
+ message_id: string;
2300
+ } | null;
2301
+ readonly external_user_id: string | null;
2302
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
2303
+ }>;
2304
+ list: (options?: import("./core/transport.js").CallOptions<Types.SessionsListData> | undefined) => Promise<{
2305
+ data: Array<{
2306
+ id: string;
2307
+ agent: {
2308
+ id: string;
2309
+ description: null | string;
2310
+ mcp_servers: Array<Types.AgentManaged36>;
2311
+ model: {
2312
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
2313
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
2314
+ inference_geo?: string;
2315
+ speed?: "standard" | "fast";
2316
+ settings?: {
2317
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2318
+ };
2319
+ };
2320
+ multiagent: null | Types.AgentManaged171;
2321
+ name: string;
2322
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
2323
+ system: null | string;
2324
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
2325
+ type: "agent";
2326
+ version: number;
2327
+ };
2328
+ archived_at: null | string;
2329
+ budget: null | Types.AgentManaged76;
2330
+ created_at: string;
2331
+ environment_id?: string;
2332
+ metadata: Types.AgentManaged173;
2333
+ outcome_evaluations: Array<Types.AgentManaged174>;
2334
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
2335
+ stats: Types.AgentManaged178;
2336
+ status: "rescheduling" | "running" | "idle" | "terminated";
2337
+ title: null | string;
2338
+ type: "session";
2339
+ updated_at: string;
2340
+ usage: Types.AgentManaged179;
2341
+ vault_ids: Array<string>;
2342
+ deployment_id?: null | string;
2343
+ cwd: string;
2344
+ computer_id?: string;
2345
+ model?: {
2346
+ id: string;
2347
+ thinking: {
2348
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
2349
+ can_disable: boolean;
2350
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
2351
+ } | null;
2352
+ };
2353
+ thinking?: {
2354
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2355
+ } | null;
2356
+ forked_from?: {
2357
+ session_id: string;
2358
+ message_id: string;
2359
+ } | null;
2360
+ readonly external_user_id: string | null;
2361
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
2362
+ }>;
2363
+ next_page: string | null;
2364
+ }>;
2365
+ resources: {
2366
+ create: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesAddData>) => Promise<Types.AgentManaged176>;
2367
+ delete: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesDeleteData, {
2368
+ query: {
2369
+ "session_id": "query_session_id";
2370
+ };
2371
+ }>>) => Promise<Types.AgentManaged255>;
2372
+ list: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesListData>) => Promise<{
2373
+ data: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
2374
+ next_page: string | null;
2375
+ }>;
2376
+ retrieve: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesRetrieveData, {
2377
+ query: {
2378
+ "session_id": "query_session_id";
2379
+ };
2380
+ }>>) => Promise<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
2381
+ };
2382
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.SessionsRetrieveData>) => Promise<{
2383
+ id: string;
2384
+ agent: {
2385
+ id: string;
2386
+ description: null | string;
2387
+ mcp_servers: Array<Types.AgentManaged36>;
2388
+ model: {
2389
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
2390
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
2391
+ inference_geo?: string;
2392
+ speed?: "standard" | "fast";
2393
+ settings?: {
2394
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2395
+ };
2396
+ };
2397
+ multiagent: null | Types.AgentManaged171;
2398
+ name: string;
2399
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
2400
+ system: null | string;
2401
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
2402
+ type: "agent";
2403
+ version: number;
2404
+ };
2405
+ archived_at: null | string;
2406
+ budget: null | Types.AgentManaged76;
2407
+ created_at: string;
2408
+ environment_id?: string;
2409
+ metadata: Types.AgentManaged173;
2410
+ outcome_evaluations: Array<Types.AgentManaged174>;
2411
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
2412
+ stats: Types.AgentManaged178;
2413
+ status: "rescheduling" | "running" | "idle" | "terminated";
2414
+ title: null | string;
2415
+ type: "session";
2416
+ updated_at: string;
2417
+ usage: Types.AgentManaged179;
2418
+ vault_ids: Array<string>;
2419
+ deployment_id?: null | string;
2420
+ cwd: string;
2421
+ computer_id?: string;
2422
+ model?: {
2423
+ id: string;
2424
+ thinking: {
2425
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
2426
+ can_disable: boolean;
2427
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
2428
+ } | null;
2429
+ };
2430
+ thinking?: {
2431
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2432
+ } | null;
2433
+ forked_from?: {
2434
+ session_id: string;
2435
+ message_id: string;
2436
+ } | null;
2437
+ readonly external_user_id: string | null;
2438
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
2439
+ }>;
2440
+ retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
2441
+ type: "session_compaction";
2442
+ id: string;
2443
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed";
2444
+ reason?: string;
2445
+ }>;
2446
+ retrieveContext: (options: import("./core/transport.js").CallOptions<Types.GetSessionContextData>) => Promise<{
2447
+ type: "session_context";
2448
+ session_id: string;
2449
+ model: {
2450
+ id: string;
2451
+ display_name: string;
2452
+ thinking: {
2453
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
2454
+ can_disable: boolean;
2455
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
2456
+ } | null;
2457
+ };
2458
+ total_tokens: number | null;
2459
+ total_tokens_source: "actual" | "estimated" | null;
2460
+ max_tokens: number | null;
2461
+ max_input_tokens: number | null;
2462
+ percentage: number;
2463
+ auto_compact_threshold: number | null;
2464
+ is_auto_compact_enabled: boolean;
2465
+ clear_tool_results_at: number;
2466
+ detail: "summary";
2467
+ categories: Array<{
2468
+ key: string;
2469
+ name: string;
2470
+ tokens: number;
2471
+ kind: "used" | "free" | "buffer" | "deferred";
2472
+ }>;
2473
+ mcp_tools: Array<{
2474
+ name: string;
2475
+ server_name: string;
2476
+ tokens: number;
2477
+ }>;
2478
+ plugin_blocks: Array<{
2479
+ name: string;
2480
+ tokens: number;
2481
+ }>;
2482
+ message_breakdown: {
2483
+ user_message_tokens: number;
2484
+ assistant_message_tokens: number;
2485
+ tool_call_tokens: number;
2486
+ tool_result_tokens: number;
2487
+ reasoning_tokens: number;
2488
+ tool_calls_by_type: Array<{
2489
+ name: string;
2490
+ call_tokens: number;
2491
+ result_tokens: number;
2492
+ }>;
2493
+ };
2494
+ compaction_summary: {
2495
+ tokens: number;
2496
+ } | null;
2497
+ excluded_items: {
2498
+ count: number;
2499
+ tokens: number;
2500
+ };
2501
+ measured_at: string | null;
2502
+ }>;
2503
+ runs: {
2504
+ deleteFeedback: (options: import("./core/transport.js").CallOptions<Types.DeleteRunFeedbackData>) => Promise<void>;
2505
+ feedback: {
2506
+ create: (options: import("./core/transport.js").CallOptions<Types.SetRunFeedbackData>) => Promise<{
2507
+ type: "run_feedback";
2508
+ session_id: string;
2509
+ run_id: string;
2510
+ rating: "positive" | "negative";
2511
+ comment: string | null;
2512
+ created_at: string;
2513
+ updated_at: string;
2514
+ }>;
2515
+ };
2516
+ };
2517
+ threads: {
2518
+ archive: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsArchiveData, {
2519
+ query: {
2520
+ "session_id": "query_session_id";
2521
+ };
2522
+ }>>) => Promise<Types.AgentManaged256>;
2523
+ events: {
2524
+ list: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsEventsListData, {
2525
+ query: {
2526
+ "session_id": "query_session_id";
2527
+ };
2528
+ }>>) => Promise<{
2529
+ data: Array<{
2530
+ id: string;
2531
+ content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
2532
+ type: "user.message";
2533
+ processed_at?: null | string;
2534
+ praxis_context?: {
2535
+ items: Array<{
2536
+ name: string;
2537
+ value: string;
2538
+ }>;
2539
+ };
2540
+ message_id?: string;
2541
+ } | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
2542
+ id: string;
2543
+ content: Array<{
2544
+ text: string;
2545
+ type: "text";
2546
+ citations?: Array<{
2547
+ type: "search_result_location";
2548
+ source: string;
2549
+ title: string;
2550
+ cited_text: string;
2551
+ search_result_index: number;
2552
+ start_block_index: number;
2553
+ end_block_index: number;
2554
+ }>;
2555
+ } | Types.AgentManaged70>;
2556
+ processed_at: string;
2557
+ type: "agent.message";
2558
+ run_id: string | null;
2559
+ message_id?: string;
2560
+ } | {
2561
+ id: string;
2562
+ processed_at: string;
2563
+ type: "agent.thinking";
2564
+ run_id: string | null;
2565
+ message_id?: string;
2566
+ } | {
2567
+ id: string;
2568
+ input: Types.AgentManaged197;
2569
+ mcp_server_name: string;
2570
+ name: string;
2571
+ processed_at: string;
2572
+ type: "agent.mcp_tool_use";
2573
+ evaluated_permission?: "allow" | "deny" | "ask";
2574
+ evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2575
+ session_thread_id?: null | string;
2576
+ run_id: string | null;
2577
+ parent_tool_use_id?: string;
2578
+ _meta?: {
2579
+ ui?: {
2580
+ resourceUri?: string;
2581
+ visibility?: Array<string>;
2582
+ [key: string]: unknown;
2583
+ };
2584
+ "openai/ui"?: {
2585
+ [key: string]: unknown;
2586
+ };
2587
+ };
2588
+ source?: "app" | "codemode";
2589
+ title?: string;
2590
+ input_titles?: {
2591
+ [key: string]: string;
2592
+ };
2593
+ } | {
2594
+ id: string;
2595
+ mcp_tool_use_id: string;
2596
+ processed_at: string;
2597
+ type: "agent.mcp_tool_result";
2598
+ content?: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged189>;
2599
+ is_error?: null | false | true;
2600
+ run_id: string | null;
2601
+ structured_content?: unknown;
2602
+ _meta?: {
2603
+ [key: string]: unknown;
2604
+ };
2605
+ source?: "app" | "codemode";
2606
+ } | {
2607
+ id: string;
2608
+ input: Types.AgentManaged206;
2609
+ name: string;
2610
+ processed_at: string;
2611
+ type: "agent.tool_use";
2612
+ evaluated_permission?: "allow" | "deny" | "ask";
2613
+ evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2614
+ session_thread_id?: null | string;
2615
+ run_id: string | null;
2616
+ } | {
2617
+ id: string;
2618
+ processed_at: string;
2619
+ tool_use_id: string;
2620
+ type: "agent.tool_result";
2621
+ content?: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged189>;
2622
+ is_error?: null | false | true;
2623
+ run_id: string | null;
2624
+ } | Types.AgentManaged208 | Types.AgentManaged209 | Types.AgentManaged210 | Types.AgentManaged211 | Types.AgentManaged223 | {
2625
+ id: string;
2626
+ processed_at: string;
2627
+ type: "session.status_running";
2628
+ run_id: string | null;
2629
+ } | {
2630
+ id: string;
2631
+ processed_at: string;
2632
+ stop_reason: Types.AgentManaged226 | Types.AgentManaged227 | Types.AgentManaged228 | Types.AgentManaged229;
2633
+ type: "session.status_idle";
2634
+ run_id: string | null;
2635
+ } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
2636
+ id: string;
2637
+ processed_at: string;
2638
+ type: "session.updated";
2639
+ agent?: null | Types.AgentManaged170;
2640
+ budget?: null | Types.AgentManaged76;
2641
+ metadata?: Types.AgentManaged246;
2642
+ title?: null | string;
2643
+ model?: {
2644
+ id: string;
2645
+ };
2646
+ } | Types.AgentManaged247 | Types.AgentManaged248 | {
2647
+ id: string;
2648
+ type: "session.forked";
2649
+ processed_at: string;
2650
+ forked_from_session_id: string;
2651
+ forked_from_message_id: string;
2652
+ } | {
2653
+ id: string;
2654
+ type: "session.goal_changed";
2655
+ processed_at: string;
2656
+ action: "set" | "status_updated" | "cleared" | "usage_accounted";
2657
+ source: "command" | "runtime";
2658
+ goal: {
2659
+ goal_id: string;
2660
+ objective: string;
2661
+ summary_title: string | null;
2662
+ status: "active" | "paused" | "budget_limited" | "complete";
2663
+ token_budget: number | null;
2664
+ tokens_used: number;
2665
+ time_used_seconds: number;
2666
+ iteration: number;
2667
+ created_at: number;
2668
+ updated_at: number;
2669
+ } | null;
2670
+ previous_goal: {
2671
+ goal_id: string;
2672
+ objective: string;
2673
+ summary_title: string | null;
2674
+ status: "active" | "paused" | "budget_limited" | "complete";
2675
+ token_budget: number | null;
2676
+ tokens_used: number;
2677
+ time_used_seconds: number;
2678
+ iteration: number;
2679
+ created_at: number;
2680
+ updated_at: number;
2681
+ } | null;
2682
+ } | {
2683
+ id: string;
2684
+ type: "session.goal_verification";
2685
+ processed_at: string;
2686
+ status: "started" | "completed" | "failed_closed" | "cancelled";
2687
+ goal_id: string;
2688
+ goal_iteration: number;
2689
+ verification_id: string;
2690
+ anchor_message_id: string | null;
2691
+ verification?: {
2692
+ passed: boolean;
2693
+ reason: string;
2694
+ next_action?: string;
2695
+ };
2696
+ } | {
2697
+ id: string;
2698
+ type: "user.steer";
2699
+ event_id: string;
2700
+ processed_at: string;
2701
+ }>;
2702
+ next_page: string | null;
2703
+ }>;
2704
+ };
2705
+ list: (options: import("./core/transport.js").CallOptions<Types.SessionsThreadsListData>) => Promise<{
2706
+ data: Array<Types.AgentManaged256>;
2707
+ next_page: string | null;
2708
+ }>;
2709
+ retrieve: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsRetrieveData, {
2710
+ query: {
2711
+ "session_id": "query_session_id";
2712
+ };
2713
+ }>>) => Promise<Types.AgentManaged256>;
2714
+ stream: (options: import("./core/transport.js").StreamOptions<RenameParameters<Types.SessionsThreadsEventsStreamData, {
2715
+ query: {
2716
+ "session_id": "query_session_id";
2717
+ };
2718
+ }>>) => AsyncIterable<Types.AgentSseEvent>;
2719
+ };
2720
+ update: (options: import("./core/transport.js").CallOptions<Types.SessionsUpdateData>) => Promise<{
2721
+ id: string;
2722
+ agent: {
2723
+ id: string;
2724
+ description: null | string;
2725
+ mcp_servers: Array<Types.AgentManaged36>;
2726
+ model: {
2727
+ id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
2728
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
2729
+ inference_geo?: string;
2730
+ speed?: "standard" | "fast";
2731
+ settings?: {
2732
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2733
+ };
2734
+ };
2735
+ multiagent: null | Types.AgentManaged171;
2736
+ name: string;
2737
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
2738
+ system: null | string;
2739
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
2740
+ type: "agent";
2741
+ version: number;
2742
+ };
2743
+ archived_at: null | string;
2744
+ budget: null | Types.AgentManaged76;
2745
+ created_at: string;
2746
+ environment_id?: string;
2747
+ metadata: Types.AgentManaged173;
2748
+ outcome_evaluations: Array<Types.AgentManaged174>;
2749
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
2750
+ stats: Types.AgentManaged178;
2751
+ status: "rescheduling" | "running" | "idle" | "terminated";
2752
+ title: null | string;
2753
+ type: "session";
2754
+ updated_at: string;
2755
+ usage: Types.AgentManaged179;
2756
+ vault_ids: Array<string>;
2757
+ deployment_id?: null | string;
2758
+ cwd: string;
2759
+ computer_id?: string;
2760
+ model?: {
2761
+ id: string;
2762
+ thinking: {
2763
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
2764
+ can_disable: boolean;
2765
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
2766
+ } | null;
2767
+ };
2768
+ thinking?: {
2769
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2770
+ } | null;
2771
+ forked_from?: {
2772
+ session_id: string;
2773
+ message_id: string;
2774
+ } | null;
2775
+ readonly external_user_id: string | null;
2776
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
2777
+ }>;
2778
+ };
2779
+ toolsets: {
2780
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListToolsetsData> | undefined) => Promise<{
2781
+ data: Array<{
2782
+ type: string;
2783
+ plugin: {
2784
+ name: string;
2785
+ version: string;
2786
+ };
2787
+ description: string;
2788
+ environment: string;
2789
+ tools: Array<{
2790
+ name: string;
2791
+ description: string;
2792
+ input_schema: {
2793
+ [key: string]: unknown;
2794
+ };
2795
+ read_only: boolean;
2796
+ default_permission_policy: "always_allow" | "always_ask";
2797
+ mod: string;
2798
+ configurable: boolean;
2799
+ }>;
2800
+ }>;
2801
+ next_page: null;
2802
+ }>;
2803
+ };
2804
+ };
2805
+ export declare function createApplication(transport: Transport): {
2806
+ assets: {
2807
+ upload: {
2808
+ create: (options: import("./core/transport.js").CallOptions<Types.ApplicationUploadAssetsData>) => Promise<Types.ApplicationAssetUploadResult>;
2809
+ };
2810
+ };
2811
+ subdomain: {
2812
+ retrieve: (options?: import("./core/transport.js").CallOptions<Types.ApplicationGetSubdomainData> | undefined) => Promise<Types.ApplicationAccountSubdomain>;
2813
+ update: (options: import("./core/transport.js").CallOptions<Types.ApplicationPutSubdomainData>) => Promise<Types.ApplicationAccountSubdomain>;
2814
+ };
2815
+ workers: {
2816
+ assetsUploadSession: {
2817
+ create: (options: import("./core/transport.js").CallOptions<Types.ApplicationCreateAssetUploadSessionData>) => Promise<Types.ApplicationAssetUploadSession>;
2818
+ };
2819
+ components: {
2820
+ list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListComponentsData>) => Promise<Types.ApplicationComponent[]>;
2821
+ };
2822
+ create: (options: import("./core/transport.js").CallOptions<Types.ApplicationCreateWorkerData>) => Promise<Types.ApplicationWorker>;
2823
+ delete: (options: import("./core/transport.js").CallOptions<Types.ApplicationDeleteWorkerData>) => Promise<Types.ApplicationWorker>;
2824
+ deployments: {
2825
+ create: (options: import("./core/transport.js").CallOptions<Types.ApplicationCreateDeploymentData>) => Promise<Types.ApplicationDeployment>;
2826
+ list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListDeploymentsData>) => Promise<import("./automation.js").Page<Types.ApplicationDeployment>>;
2827
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.ApplicationGetDeploymentData>) => Promise<Types.ApplicationDeployment>;
2828
+ };
2829
+ events: {
2830
+ list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListEventsData>) => Promise<Types.ApplicationEventPage>;
2831
+ };
2832
+ grants: {
2833
+ create: (options: import("./core/transport.js").CallOptions<Types.ApplicationCreateGrantData>) => Promise<Types.ApplicationGrant>;
2834
+ delete: (options: import("./core/transport.js").CallOptions<Types.ApplicationDeleteGrantData>) => Promise<{
2835
+ deleted: true;
2836
+ }>;
2837
+ list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListGrantsData>) => Promise<Types.ApplicationGrant[]>;
2838
+ };
2839
+ list: (options?: import("./core/transport.js").CallOptions<Types.ApplicationListWorkersData> | undefined) => Promise<import("./automation.js").Page<Types.ApplicationWorker>>;
2840
+ restore: (options: import("./core/transport.js").CallOptions<Types.ApplicationRestoreWorkerData>) => Promise<Types.ApplicationWorker>;
2841
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.ApplicationGetWorkerData>) => Promise<Types.ApplicationWorkerDetail>;
2842
+ secrets: {
2843
+ delete: (options: import("./core/transport.js").CallOptions<Types.ApplicationDeleteSecretData>) => Promise<{
2844
+ deployment: Types.ApplicationDeployment;
2845
+ }>;
2846
+ list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListSecretsData>) => Promise<Types.ApplicationSecret[]>;
2847
+ update: (options: import("./core/transport.js").CallOptions<Types.ApplicationPutSecretData>) => Promise<Types.ApplicationSecretWriteResult>;
2848
+ };
2849
+ update: (options: import("./core/transport.js").CallOptions<Types.ApplicationUpdateWorkerData>) => Promise<Types.ApplicationWorker>;
2850
+ versions: {
2851
+ create: (options: import("./core/transport.js").CallOptions<Types.ApplicationCreateVersionData>) => Promise<Types.ApplicationCreateVersionResult>;
2852
+ list: (options: import("./core/transport.js").CallOptions<Types.ApplicationListVersionsData>) => Promise<import("./automation.js").Page<Types.ApplicationVersion>>;
2853
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.ApplicationGetVersionData>) => Promise<Types.ApplicationVersion>;
2854
+ };
2855
+ };
2856
+ };
2857
+ export declare function createAutomation(transport: Transport): {
2858
+ actions: {
2859
+ archive: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsArchiveData>) => Promise<Types.AutomationActionArchiveResult>;
2860
+ create: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsCreateData>) => Promise<Types.AutomationActionDef>;
2861
+ dependents: {
2862
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsDependentsData>) => Promise<import("./automation.js").Page<Types.AutomationDependent>>;
2863
+ };
2864
+ invocations: {
2865
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsInvocationsData>) => Promise<import("./automation.js").Page<Types.AutomationInvocation>>;
2866
+ };
2867
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationActionsListData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationActionListItem>>;
2868
+ restore: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsRestoreData>) => Promise<Types.AutomationActionDef>;
2869
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsGetData>) => Promise<Types.AutomationActionDef>;
2870
+ revisions: {
2871
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsRevisionsData>) => Promise<import("./automation.js").Page<Types.AutomationRevisionSummary>>;
2872
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsRevisionData>) => Promise<Types.AutomationRevisionListItem>;
2873
+ };
2874
+ rollback: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsRollbackData>) => Promise<Types.AutomationActionDef>;
2875
+ update: (options: import("./core/transport.js").CallOptions<Types.AutomationActionsUpdateData>) => Promise<Types.AutomationActionUpdateResult>;
2876
+ };
2877
+ hooks: {
2878
+ send: (options: import("./core/transport.js").CallOptions<Types.AutomationHooksReceiveData>) => Promise<Types.AutomationFiring>;
2879
+ };
2880
+ resolve: {
2881
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationResolveResolveData>) => Promise<Types.AutomationResolveResult>;
2882
+ };
2883
+ runs: {
2884
+ artifacts: {
2885
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsArtifactsData>) => Promise<import("./automation.js").Page<Types.AutomationRunArtifact>>;
2886
+ };
2887
+ calls: {
2888
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsCallsData>) => Promise<import("./automation.js").Page<Types.AutomationCall>>;
2889
+ };
2890
+ cancel: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsCancelData>) => Promise<Types.AutomationRun>;
2891
+ create: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsCreateData>) => Promise<Types.AutomationRun>;
2892
+ events: (options: import("./core/transport.js").StreamOptions<Types.AutomationRunsEventsData>) => AsyncIterable<Types.PraxisSdkSseGetAutomationV1RunsIdEvents>;
2893
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationRunsListData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationRun>>;
2894
+ logs: (options: import("./core/transport.js").StreamOptions<Types.AutomationRunsLogsData>) => AsyncIterable<Types.PraxisSdkSseGetAutomationV1RunsIdLogs>;
2895
+ rerun: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsRerunData>) => Promise<Types.AutomationRun>;
2896
+ resume: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsResumeData>) => Promise<Types.AutomationRun>;
2897
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsGetData>) => Promise<Types.AutomationExpandedRun>;
2898
+ retrieveSource: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsSourceData>) => Promise<{
2899
+ language: Types.AutomationSourceLanguage;
2900
+ source: string;
2901
+ sha256: string;
2902
+ }>;
2903
+ suspend: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsSuspendData>) => Promise<Types.AutomationRun>;
2904
+ tasks: {
2905
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsTasksData>) => Promise<import("./automation.js").Page<Types.AutomationTask | Types.AutomationTaskGroup>>;
2906
+ };
2907
+ waits: {
2908
+ complete: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsCompleteWaitData>) => Promise<{
2909
+ id: string;
2910
+ run_id: string;
2911
+ kind: "event" | "timer" | "child";
2912
+ state: "cancelled" | "open" | "resolved" | "expired";
2913
+ task: null | {
2914
+ reference: string;
2915
+ name: string;
2916
+ };
2917
+ resume_at: null | string;
2918
+ event_type: null | string;
2919
+ child_run_id: null | string;
2920
+ created_at: string;
2921
+ expires_at: null | string;
2922
+ resolved_at: null | string;
2923
+ replayed: boolean;
2924
+ }>;
2925
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationRunsWaitsData>) => Promise<import("./automation.js").Page<Types.AutomationWait>>;
2926
+ };
2927
+ };
2928
+ scripts: {
2929
+ archive: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsArchiveData>) => Promise<Types.AutomationDefinition>;
2930
+ create: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsCreateData>) => Promise<Types.AutomationDefinitionDetail>;
2931
+ distTags: {
2932
+ delete: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsDeleteDistTagData>) => Promise<{
2933
+ [key: string]: Types.AutomationDistTag;
2934
+ }>;
2935
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsDistTagsData>) => Promise<{
2936
+ [key: string]: Types.AutomationDistTag;
2937
+ }>;
2938
+ set: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsSetDistTagData>) => Promise<{
2939
+ [key: string]: Types.AutomationDistTag;
2940
+ }>;
2941
+ };
2942
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationScriptsListData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationDefinition>>;
2943
+ restore: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsRestoreData>) => Promise<Types.AutomationDefinition>;
2944
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsGetData>) => Promise<Types.AutomationDefinitionDetail>;
2945
+ update: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsPatchData>) => Promise<Types.AutomationDefinitionDetail>;
2946
+ versions: {
2947
+ create: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsPublishData>) => Promise<Types.AutomationVersion>;
2948
+ deprecate: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsDeprecateData>) => Promise<Types.AutomationVersion>;
2949
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsVersionsData>) => Promise<import("./automation.js").Page<Types.AutomationVersionListItem>>;
2950
+ publish: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsPublishData>) => Promise<Types.AutomationVersion>;
2951
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationScriptsVersionData>) => Promise<Types.AutomationVersion>;
2952
+ };
2953
+ };
2954
+ targets: {
2955
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationTargetsTargetsData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationTargetHit>>;
2956
+ };
2957
+ triggers: {
2958
+ create: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersCreateData>) => Promise<Types.AutomationTriggerCreateResult>;
2959
+ delete: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersDeleteData>) => Promise<void>;
2960
+ fire: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersFireData>) => Promise<Types.AutomationFiring>;
2961
+ firings: {
2962
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersFiringsData>) => Promise<import("./automation.js").Page<Types.AutomationFiring>>;
2963
+ };
2964
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationTriggersListData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationTrigger>>;
2965
+ pause: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersPauseData>) => Promise<Types.AutomationTrigger>;
2966
+ preview: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersPreviewData>) => Promise<Types.AutomationTriggerPreview>;
2967
+ resume: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersResumeData>) => Promise<Types.AutomationTrigger>;
2968
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersGetData>) => Promise<Types.AutomationTrigger>;
2969
+ rotateWebhook: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersRotateWebhookData>) => Promise<Types.AutomationWebhookUrl>;
2970
+ update: (options: import("./core/transport.js").CallOptions<Types.AutomationTriggersPatchData>) => Promise<Types.AutomationTrigger>;
2971
+ };
2972
+ validate: {
2973
+ create: (options: import("./core/transport.js").CallOptions<Types.AutomationValidateValidateData>) => Promise<Types.AutomationValidateResult>;
2974
+ };
2975
+ workflows: {
2976
+ archive: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsArchiveData>) => Promise<Types.AutomationDefinition>;
2977
+ create: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsCreateData>) => Promise<Types.AutomationDefinitionDetail>;
2978
+ distTags: {
2979
+ delete: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsDeleteDistTagData>) => Promise<{
2980
+ [key: string]: Types.AutomationDistTag;
2981
+ }>;
2982
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsDistTagsData>) => Promise<{
2983
+ [key: string]: Types.AutomationDistTag;
2984
+ }>;
2985
+ set: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsSetDistTagData>) => Promise<{
2986
+ [key: string]: Types.AutomationDistTag;
2987
+ }>;
2988
+ };
2989
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsListData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationDefinition>>;
2990
+ restore: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsRestoreData>) => Promise<Types.AutomationDefinition>;
2991
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsGetData>) => Promise<Types.AutomationDefinitionDetail>;
2992
+ update: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsPatchData>) => Promise<Types.AutomationDefinitionDetail>;
2993
+ versions: {
2994
+ create: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsPublishData>) => Promise<Types.AutomationVersion>;
2995
+ deprecate: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsDeprecateData>) => Promise<Types.AutomationVersion>;
2996
+ list: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsVersionsData>) => Promise<import("./automation.js").Page<Types.AutomationVersionListItem>>;
2997
+ publish: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsPublishData>) => Promise<Types.AutomationVersion>;
2998
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationWorkflowsVersionData>) => Promise<Types.AutomationVersion>;
2999
+ };
3000
+ };
3001
+ };
3002
+ export declare function createBrowser(transport: Transport): {
3003
+ connect: {
3004
+ retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserConnectData> | undefined) => Promise<unknown>;
3005
+ };
3006
+ contexts: {
3007
+ create: (options: import("./core/transport.js").CallOptions<Types.BrowserCreateContextData>) => Promise<Types.BrowserContextCreateResult>;
3008
+ delete: (options: import("./core/transport.js").CallOptions<Types.BrowserDeleteContextData>) => Promise<{
3009
+ deleted: true;
3010
+ }>;
3011
+ list: (options?: import("./core/transport.js").CallOptions<Types.BrowserListContextsData> | undefined) => Promise<{
3012
+ data: Array<Types.BrowserContext>;
3013
+ nextCursor: string | null;
3014
+ }>;
3015
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.BrowserGetContextData>) => Promise<Types.BrowserContext>;
3016
+ update: (options: import("./core/transport.js").CallOptions<Types.BrowserUpdateContextData>) => Promise<Types.BrowserContext>;
3017
+ };
3018
+ live: {
3019
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.BrowserLiveViewData>) => Promise<unknown>;
3020
+ };
3021
+ seleniumUnsupported: {
3022
+ retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserSeleniumUnsupportedData> | undefined) => Promise<unknown>;
3023
+ };
3024
+ sessions: {
3025
+ create: (options: import("./core/transport.js").CallOptions<Types.BrowserCreateSessionData>) => Promise<Types.BrowserSessionCreateResult>;
3026
+ events: {
3027
+ list: (options: import("./core/transport.js").CallOptions<Types.BrowserListEventsData>) => Promise<{
3028
+ data: Array<Types.BrowserEventRecord>;
3029
+ nextCursor: string | null;
3030
+ }>;
3031
+ };
3032
+ handoff: {
3033
+ complete: (options: import("./core/transport.js").CallOptions<Types.BrowserCompleteHandoffData>) => Promise<Types.BrowserEventRecord>;
3034
+ create: (options: import("./core/transport.js").CallOptions<Types.BrowserRequestHandoffData>) => Promise<Types.BrowserEventRecord>;
3035
+ };
3036
+ list: (options?: import("./core/transport.js").CallOptions<Types.BrowserListSessionsData> | undefined) => Promise<{
3037
+ data: Array<Types.BrowserSession>;
3038
+ nextCursor: string | null;
3039
+ }>;
3040
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.BrowserGetSessionData>) => Promise<Types.BrowserSessionGetResult>;
3041
+ retrieveDebug: (options: import("./core/transport.js").CallOptions<Types.BrowserGetDebugData>) => Promise<Types.BrowserSessionLiveUrls>;
3042
+ stream: (options: import("./core/transport.js").StreamOptions<Types.BrowserStreamSessionData>) => AsyncIterable<Types.BrowserStreamMessage>;
3043
+ update: (options: import("./core/transport.js").CallOptions<Types.BrowserCloseSessionData>) => Promise<Types.BrowserSession>;
3044
+ viewer: {
3045
+ create: (options: import("./core/transport.js").CallOptions<Types.BrowserViewerHeartbeatData>) => Promise<{
3046
+ ok: true;
3047
+ }>;
3048
+ };
3049
+ };
3050
+ };
3051
+ export declare function createDatabase(transport: Transport): {
3052
+ databases: {
3053
+ create: (options: import("./core/transport.js").CallOptions<Types.DatabaseCreateDatabaseData>) => Promise<Types.DatabaseDatabase>;
3054
+ delete: (options: import("./core/transport.js").CallOptions<Types.DatabaseDeleteDatabaseData>) => Promise<Types.DatabaseDatabase>;
3055
+ events: {
3056
+ list: (options: import("./core/transport.js").CallOptions<Types.DatabaseListEventsData>) => Promise<Types.DatabasePage & {
3057
+ data: Array<Types.DatabaseDatabaseEvent>;
3058
+ }>;
3059
+ };
3060
+ list: (options?: import("./core/transport.js").CallOptions<Types.DatabaseListDatabasesData> | undefined) => Promise<import("./automation.js").Page<Types.DatabaseDatabase>>;
3061
+ purge: {
3062
+ create: (options: import("./core/transport.js").CallOptions<Types.DatabasePurgeDatabaseData>) => Promise<{
3063
+ id: string;
3064
+ object: "database";
3065
+ purged: true;
3066
+ }>;
3067
+ };
3068
+ rest: {
3069
+ create: (options: import("./core/transport.js").CallOptions<Types.DatabaseInsertData>) => Promise<(Types.DatabaseRow | Types.DatabaseProjectedRow)[]>;
3070
+ delete: (options: import("./core/transport.js").CallOptions<Types.DatabaseDeleteData>) => Promise<void | (Types.DatabaseRow | Types.DatabaseProjectedRow)[]>;
3071
+ head: (options: import("./core/transport.js").CallOptions<Types.DatabaseHeadData>) => Promise<unknown>;
3072
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.DatabaseSelectData>) => Promise<(Types.DatabaseRow | Types.DatabaseProjectedRow)[]>;
3073
+ update: (options: import("./core/transport.js").CallOptions<Types.DatabaseUpdateData>) => Promise<void | (Types.DatabaseRow | Types.DatabaseProjectedRow)[]>;
3074
+ };
3075
+ restore: (options: import("./core/transport.js").CallOptions<Types.DatabaseRestoreDatabaseData>) => Promise<Types.DatabaseDatabase>;
3076
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.DatabaseGetDatabaseData>) => Promise<Types.DatabaseDatabase>;
3077
+ tables: {
3078
+ create: (options: import("./core/transport.js").CallOptions<Types.DatabaseCreateTableData>) => Promise<Types.DatabaseTable>;
3079
+ delete: (options: import("./core/transport.js").CallOptions<Types.DatabaseDeleteTableData>) => Promise<{
3080
+ deleted: true;
3081
+ }>;
3082
+ fields: {
3083
+ create: (options: import("./core/transport.js").CallOptions<Types.DatabaseAddFieldData>) => Promise<Types.DatabaseTable>;
3084
+ delete: (options: import("./core/transport.js").CallOptions<Types.DatabaseDeleteFieldData>) => Promise<Types.DatabaseTable>;
3085
+ update: (options: import("./core/transport.js").CallOptions<Types.DatabaseUpdateFieldData>) => Promise<Types.DatabaseTable>;
3086
+ };
3087
+ list: (options: import("./core/transport.js").CallOptions<Types.DatabaseListTablesData>) => Promise<Types.DatabasePage & {
3088
+ data: Array<Types.DatabaseTable>;
3089
+ }>;
3090
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.DatabaseGetTableData>) => Promise<Types.DatabaseTable>;
3091
+ update: (options: import("./core/transport.js").CallOptions<Types.DatabaseUpdateTableData>) => Promise<Types.DatabaseTable>;
3092
+ };
3093
+ update: (options: import("./core/transport.js").CallOptions<Types.DatabaseUpdateDatabaseData>) => Promise<Types.DatabaseDatabase>;
3094
+ };
3095
+ };
3096
+ export declare function createFile(transport: Transport): {
3097
+ files: {
3098
+ create: (options: import("./core/transport.js").CallOptions<Types.FileCreateFileData>) => Promise<Types.OwnFileOpenAiFile>;
3099
+ delete: (options: import("./core/transport.js").CallOptions<Types.FileDeleteFileData>) => Promise<Types.OwnFileDeleteFileResponse>;
3100
+ list: (options?: import("./core/transport.js").CallOptions<Types.FileListFilesData> | undefined) => Promise<Types.OwnFileListFilesResponse>;
3101
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveFileData>) => Promise<Types.OwnFileOpenAiFile>;
3102
+ retrieveContent: (options: import("./core/transport.js").CallOptions<Types.FileRetrieveFileContentData>) => Promise<Blob | File>;
3103
+ };
3104
+ };
3105
+ export declare function createKnowledge(transport: Transport): {
3106
+ vectorStores: {
3107
+ create: (options: import("./core/transport.js").CallOptions<Types.KnowledgeCreateVectorStoreData>) => Promise<Types.KnowledgeNativeVectorStore>;
3108
+ delete: (options: import("./core/transport.js").CallOptions<Types.KnowledgeDeleteVectorStoreData>) => Promise<Types.KnowledgeNativeVectorStore>;
3109
+ events: {
3110
+ list: (options: import("./core/transport.js").CallOptions<Types.KnowledgeListEventsData>) => Promise<Types.KnowledgeEventList>;
3111
+ };
3112
+ fileBatches: {
3113
+ cancel: (options: import("./core/transport.js").CallOptions<Types.KnowledgeCancelFileBatchData>) => Promise<Types.KnowledgeFileBatch>;
3114
+ create: (options: import("./core/transport.js").CallOptions<Types.KnowledgeCreateFileBatchData>) => Promise<Types.KnowledgeFileBatch>;
3115
+ files: {
3116
+ list: (options: import("./core/transport.js").CallOptions<Types.KnowledgeListBatchFilesData>) => Promise<Types.KnowledgeNativeVectorStoreFileList>;
3117
+ };
3118
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.KnowledgeRetrieveFileBatchData>) => Promise<Types.KnowledgeFileBatch>;
3119
+ };
3120
+ files: {
3121
+ create: (options: import("./core/transport.js").CallOptions<Types.KnowledgeAttachFileData>) => Promise<Types.KnowledgeNativeVectorStoreFile>;
3122
+ delete: (options: import("./core/transport.js").CallOptions<Types.KnowledgeRemoveFileData>) => Promise<Types.KnowledgeRemovedFile>;
3123
+ list: (options: import("./core/transport.js").CallOptions<Types.KnowledgeListFilesData>) => Promise<Types.KnowledgeNativeVectorStoreFileList>;
3124
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.KnowledgeRetrieveFileData>) => Promise<Types.KnowledgeNativeVectorStoreFile>;
3125
+ retrieveContent: (options: import("./core/transport.js").CallOptions<Types.KnowledgeRetrieveFileContentData>) => Promise<Types.KnowledgeFileContent>;
3126
+ retry: {
3127
+ create: (options: import("./core/transport.js").CallOptions<Types.KnowledgeRetryFileData>) => Promise<Types.KnowledgeNativeVectorStoreFile>;
3128
+ };
3129
+ segments: {
3130
+ list: (options: import("./core/transport.js").CallOptions<Types.KnowledgeListSegmentsData>) => Promise<Types.KnowledgeSegmentList>;
3131
+ };
3132
+ update: (options: import("./core/transport.js").CallOptions<Types.KnowledgeUpdateFileData>) => Promise<Types.KnowledgeNativeVectorStoreFile>;
3133
+ };
3134
+ list: (options?: import("./core/transport.js").CallOptions<Types.KnowledgeListVectorStoresData> | undefined) => Promise<Types.KnowledgeNativeVectorStoreList>;
3135
+ purge: {
3136
+ create: (options: import("./core/transport.js").CallOptions<Types.KnowledgePurgeVectorStoreData>) => Promise<Types.KnowledgePurgedVectorStore>;
3137
+ };
3138
+ restore: (options: import("./core/transport.js").CallOptions<Types.KnowledgeRestoreVectorStoreData>) => Promise<Types.KnowledgeNativeVectorStore>;
3139
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.KnowledgeRetrieveVectorStoreData>) => Promise<Types.KnowledgeNativeExpandedVectorStore>;
3140
+ search: {
3141
+ create: (options: import("./core/transport.js").CallOptions<Types.KnowledgeSearchVectorStoreData>) => Promise<Types.KnowledgeNativeSearchPage>;
3142
+ };
3143
+ segments: {
3144
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.KnowledgeRetrieveSegmentData>) => Promise<Types.KnowledgeSegmentDetail>;
3145
+ };
3146
+ update: (options: import("./core/transport.js").CallOptions<Types.KnowledgeUpdateVectorStoreData>) => Promise<Types.KnowledgeNativeVectorStore>;
3147
+ };
3148
+ };
3149
+ export declare function createMedia(transport: Transport): {
3150
+ libraries: {
3151
+ assets: {
3152
+ batch: (options: import("./core/transport.js").CallOptions<Types.MediaBatchAssetsData>) => Promise<Types.MediaJob>;
3153
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaUploadAssetData>) => Promise<Types.MediaUploadResult>;
3154
+ delete: (options: import("./core/transport.js").CallOptions<Types.MediaDeleteAssetData>) => Promise<Types.MediaDeleted>;
3155
+ import: {
3156
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaImportAssetData>) => Promise<Types.MediaAsset>;
3157
+ };
3158
+ list: (options: import("./core/transport.js").CallOptions<Types.MediaListAssetsData>) => Promise<import("./automation.js").Page<Types.MediaAsset>>;
3159
+ reprocess: {
3160
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaReprocessAssetData>) => Promise<Types.MediaAsset>;
3161
+ };
3162
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.MediaGetAssetData>) => Promise<Types.MediaAsset>;
3163
+ understandings: {
3164
+ list: (options: import("./core/transport.js").CallOptions<Types.MediaListUnderstandingsData>) => Promise<import("./automation.js").Page<Types.MediaUnderstanding>>;
3165
+ };
3166
+ update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateAssetData>) => Promise<Types.MediaAsset>;
3167
+ };
3168
+ batches: {
3169
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateBatchData>) => Promise<Types.MediaJob>;
3170
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.MediaGetBatchData>) => Promise<Types.MediaJob>;
3171
+ };
3172
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateLibraryData>) => Promise<Types.MediaLibrary>;
3173
+ delete: (options: import("./core/transport.js").CallOptions<Types.MediaDeleteLibraryData>) => Promise<Types.MediaLibrary>;
3174
+ events: {
3175
+ list: (options: import("./core/transport.js").CallOptions<Types.MediaListEventsData>) => Promise<Types.MediaMediaEventPage>;
3176
+ };
3177
+ folders: {
3178
+ list: (options: import("./core/transport.js").CallOptions<Types.MediaListFoldersData>) => Promise<Types.MediaFolders>;
3179
+ };
3180
+ jobs: {
3181
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.MediaGetJobData>) => Promise<Types.MediaJob>;
3182
+ };
3183
+ list: (options?: import("./core/transport.js").CallOptions<Types.MediaListLibrariesData> | undefined) => Promise<import("./automation.js").Page<Types.MediaLibrary>>;
3184
+ purge: {
3185
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaPurgeLibraryData>) => Promise<Types.MediaPurgedLibrary>;
3186
+ };
3187
+ restore: (options: import("./core/transport.js").CallOptions<Types.MediaRestoreLibraryData>) => Promise<Types.MediaLibrary>;
3188
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.MediaGetLibraryData>) => Promise<Types.MediaLibrary>;
3189
+ search: {
3190
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaSearchData>) => Promise<Types.MediaSemanticSearchResult>;
3191
+ expression: {
3192
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaExpressionSearchData>) => Promise<Types.MediaExpressionSearchResult>;
3193
+ };
3194
+ semantic: {
3195
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaSemanticSearchData>) => Promise<Types.MediaSemanticSearchResult>;
3196
+ };
3197
+ visual: {
3198
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaVisualSearchData>) => Promise<Types.MediaSemanticSearchResult>;
3199
+ };
3200
+ };
3201
+ update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
3202
+ };
3203
+ };
3204
+ export declare function createMeta(transport: Transport): {
3205
+ health: {
3206
+ retrieve: (options?: import("./core/transport.js").CallOptions<Types.HealthCheckData> | undefined) => Promise<string>;
3207
+ };
3208
+ methods: {
3209
+ list: (options?: import("./core/transport.js").CallOptions<Types.MetaMethodsSearchData> | undefined) => Promise<{
3210
+ has_more?: boolean;
3211
+ first_id?: string | null;
3212
+ last_id?: string | null;
3213
+ data: Array<{
3214
+ params: string;
3215
+ name: string;
3216
+ summary: string;
3217
+ http: string;
3218
+ path: string;
3219
+ }>;
3220
+ }>;
3221
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.MetaMethodsRetrieveData>) => Promise<Types.MetaMethod>;
3222
+ };
3223
+ };
3224
+ export declare function createModel(transport: Transport): {
3225
+ audio: {
3226
+ speech: {
3227
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateAudioSpeechData>) => Promise<Blob | File>;
3228
+ };
3229
+ transcriptions: {
3230
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateAudioTranscriptionData>) => Promise<{
3231
+ text: string;
3232
+ task?: "transcribe";
3233
+ language?: string;
3234
+ duration?: number;
3235
+ segments?: Array<{
3236
+ id: number;
3237
+ start: number;
3238
+ end: number;
3239
+ text: string;
3240
+ temperature?: number;
3241
+ avg_logprob?: number;
3242
+ compression_ratio?: number;
3243
+ no_speech_prob?: number;
3244
+ }>;
3245
+ }>;
3246
+ };
3247
+ };
3248
+ chat: {
3249
+ completions: {
3250
+ create: import("./core/bindings.js").MixedMethod<Types.CreateChatCompletionData, {
3251
+ id: string;
3252
+ object: "chat.completion";
3253
+ created: number;
3254
+ model: string;
3255
+ choices: Array<{
3256
+ index: number;
3257
+ message: {
3258
+ role: string;
3259
+ content: string | null;
3260
+ reasoning?: string | null;
3261
+ reasoning_details?: Array<{
3262
+ [key: string]: unknown;
3263
+ }> | null;
3264
+ };
3265
+ finish_reason: string | null;
3266
+ logprobs?: unknown | null;
3267
+ }>;
3268
+ usage: {
3269
+ prompt_tokens: number;
3270
+ completion_tokens: number;
3271
+ total_tokens: number;
3272
+ prompt_tokens_details: {
3273
+ cached_tokens: number;
3274
+ audio_tokens: number;
3275
+ };
3276
+ completion_tokens_details: {
3277
+ reasoning_tokens: number;
3278
+ audio_tokens: number;
3279
+ };
3280
+ prompt_cache_hit_tokens?: number;
3281
+ prompt_cache_miss_tokens?: number;
3282
+ };
3283
+ system_fingerprint: string | null;
3284
+ service_tier?: string | null;
3285
+ providerMetadata: {
3286
+ praxis: {
3287
+ generationId: string | null;
3288
+ cost: number | null;
3289
+ credential: "platform" | "byok";
3290
+ model: string;
3291
+ };
3292
+ };
3293
+ }, Types.PraxisSdkSsePostModelV1ChatCompletions>;
3294
+ };
3295
+ };
3296
+ conversations: {
3297
+ create: (options?: import("./core/transport.js").CallOptions<Types.CreateConversationData> | undefined) => Promise<Types.Conversation>;
3298
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteConversationData>) => Promise<{
3299
+ id?: string;
3300
+ object?: "conversation.deleted";
3301
+ deleted?: boolean;
3302
+ }>;
3303
+ items: {
3304
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateConversationItemsData>) => Promise<Types.ConversationItemList>;
3305
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteConversationItemData>) => Promise<Types.Conversation>;
3306
+ list: (options: import("./core/transport.js").CallOptions<Types.ListConversationItemsData>) => Promise<Types.ConversationItemList>;
3307
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RetrieveConversationItemData>) => Promise<{
3308
+ [key: string]: unknown;
3309
+ }>;
3310
+ };
3311
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RetrieveConversationData>) => Promise<Types.Conversation>;
3312
+ update: (options: import("./core/transport.js").CallOptions<Types.UpdateConversationData>) => Promise<Types.Conversation>;
3313
+ };
3314
+ embeddings: {
3315
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbeddingData>) => Promise<{
3316
+ data: Array<{
3317
+ embedding: Array<number> | string;
3318
+ index?: number;
3319
+ object: "embedding";
3320
+ }>;
3321
+ id?: string;
3322
+ model: string;
3323
+ object: "list";
3324
+ usage?: {
3325
+ cost?: number;
3326
+ cost_details?: Types.OpenaiCostDetails;
3327
+ is_byok?: boolean;
3328
+ prompt_tokens: number;
3329
+ prompt_tokens_details?: {
3330
+ audio_tokens?: number;
3331
+ file_tokens?: number;
3332
+ image_tokens?: number;
3333
+ text_tokens?: number;
3334
+ video_tokens?: number;
3335
+ };
3336
+ total_tokens: number;
3337
+ };
3338
+ }>;
3339
+ };
3340
+ generation: {
3341
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetGenerationData>) => Promise<{
3342
+ id: string;
3343
+ model: string;
3344
+ cost: number | null;
3345
+ usage: {
3346
+ prompt_tokens: number;
3347
+ completion_tokens: number;
3348
+ total_tokens: number;
3349
+ cached_input_tokens: number;
3350
+ };
3351
+ latency_ms: number | null;
3352
+ created: number;
3353
+ }>;
3354
+ };
3355
+ images: {
3356
+ edits: {
3357
+ create: (options: import("./core/transport.js").CallOptions<Types.EditImageData>) => Promise<{
3358
+ [key: string]: unknown;
3359
+ created: number;
3360
+ data: Array<{
3361
+ url?: string;
3362
+ b64_json?: string;
3363
+ [key: string]: unknown;
3364
+ }>;
3365
+ }>;
3366
+ };
3367
+ generations: {
3368
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateImageData>) => Promise<{
3369
+ created?: number;
3370
+ data?: Array<{
3371
+ url?: string;
3372
+ b64_json?: string;
3373
+ revised_prompt?: string;
3374
+ }>;
3375
+ }>;
3376
+ };
3377
+ };
3378
+ messages: {
3379
+ countTokens: (options: import("./core/transport.js").CallOptions<Types.CountTokensData>) => Promise<Types.AnthropicMessageTokensCount>;
3380
+ create: import("./core/bindings.js").MixedMethod<Types.CreateMessageData, Types.AnthropicMessage, Types.PraxisSdkSsePostModelV1Messages>;
3381
+ };
3382
+ models: {
3383
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListModelsData> | undefined) => Promise<{
3384
+ object: "list";
3385
+ data: Array<{
3386
+ id: string;
3387
+ object: "model";
3388
+ created: number;
3389
+ owned_by: string;
3390
+ name: string;
3391
+ description: string | null;
3392
+ context_window: number | null;
3393
+ max_tokens: number | null;
3394
+ type: "language" | "image" | "embedding" | "ocr" | "transcription" | "speech" | "video" | "reranking";
3395
+ supported_apis: Array<string>;
3396
+ tags: Array<string>;
3397
+ architecture: {
3398
+ modality: string;
3399
+ input_modalities: Array<string>;
3400
+ output_modalities: Array<string>;
3401
+ tokenizer: string | null;
3402
+ instruct_type: string | null;
3403
+ };
3404
+ x_praxis: {
3405
+ input_modalities: {
3406
+ text: "native" | "converted" | "unsupported";
3407
+ image: "native" | "converted" | "unsupported";
3408
+ pdf: "native" | "converted" | "unsupported";
3409
+ docx: "native" | "converted" | "unsupported";
3410
+ pptx: "native" | "converted" | "unsupported";
3411
+ xlsx: "native" | "converted" | "unsupported";
3412
+ audio: "native" | "converted" | "unsupported";
3413
+ video: "native" | "converted" | "unsupported";
3414
+ };
3415
+ };
3416
+ pricing: {
3417
+ input?: string;
3418
+ output?: string;
3419
+ input_cache_read?: string;
3420
+ input_cache_write?: string;
3421
+ image?: string;
3422
+ video_second?: string;
3423
+ audio_input_minute?: string;
3424
+ audio_output_minute?: string;
3425
+ input_character?: string;
3426
+ page?: string;
3427
+ };
3428
+ released: string;
3429
+ }>;
3430
+ }>;
3431
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RetrieveModelData>) => Promise<{
3432
+ id: string;
3433
+ object: "model";
3434
+ created: number;
3435
+ owned_by: string;
3436
+ name: string;
3437
+ description: string | null;
3438
+ context_window: number | null;
3439
+ max_tokens: number | null;
3440
+ type: "language" | "image" | "embedding" | "ocr" | "transcription" | "speech" | "video" | "reranking";
3441
+ supported_apis: Array<string>;
3442
+ tags: Array<string>;
3443
+ architecture: {
3444
+ modality: string;
3445
+ input_modalities: Array<string>;
3446
+ output_modalities: Array<string>;
3447
+ tokenizer: string | null;
3448
+ instruct_type: string | null;
3449
+ };
3450
+ x_praxis: {
3451
+ input_modalities: {
3452
+ text: "native" | "converted" | "unsupported";
3453
+ image: "native" | "converted" | "unsupported";
3454
+ pdf: "native" | "converted" | "unsupported";
3455
+ docx: "native" | "converted" | "unsupported";
3456
+ pptx: "native" | "converted" | "unsupported";
3457
+ xlsx: "native" | "converted" | "unsupported";
3458
+ audio: "native" | "converted" | "unsupported";
3459
+ video: "native" | "converted" | "unsupported";
3460
+ };
3461
+ };
3462
+ pricing: {
3463
+ input?: string;
3464
+ output?: string;
3465
+ input_cache_read?: string;
3466
+ input_cache_write?: string;
3467
+ image?: string;
3468
+ video_second?: string;
3469
+ audio_input_minute?: string;
3470
+ audio_output_minute?: string;
3471
+ input_character?: string;
3472
+ page?: string;
3473
+ };
3474
+ released: string;
3475
+ }>;
3476
+ };
3477
+ ocr: {
3478
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateOcrData>) => Promise<{
3479
+ [key: string]: unknown;
3480
+ pages: Array<{
3481
+ index: number;
3482
+ markdown: string;
3483
+ images: Array<{
3484
+ id: string;
3485
+ top_left_x: number | null;
3486
+ top_left_y: number | null;
3487
+ bottom_right_x: number | null;
3488
+ bottom_right_y: number | null;
3489
+ image_base64?: string | null;
3490
+ image_annotation?: string | null;
3491
+ [key: string]: unknown;
3492
+ }>;
3493
+ dimensions: {
3494
+ dpi: number;
3495
+ height: number;
3496
+ width: number;
3497
+ [key: string]: unknown;
3498
+ } | null;
3499
+ tables?: Array<{
3500
+ id: string;
3501
+ content: string;
3502
+ format: "markdown" | "html";
3503
+ word_confidence_scores?: Array<{
3504
+ text: string;
3505
+ confidence: number;
3506
+ start_index: number;
3507
+ [key: string]: unknown;
3508
+ }> | null;
3509
+ [key: string]: unknown;
3510
+ }>;
3511
+ hyperlinks?: Array<string>;
3512
+ header?: string | null;
3513
+ footer?: string | null;
3514
+ blocks?: Array<{
3515
+ top_left_x: number;
3516
+ top_left_y: number;
3517
+ bottom_right_x: number;
3518
+ bottom_right_y: number;
3519
+ content: string;
3520
+ confidence_scores?: {
3521
+ average_content_confidence_score?: number | null;
3522
+ minimum_content_confidence_score?: number | null;
3523
+ block_type_confidence_score?: number | null;
3524
+ [key: string]: unknown;
3525
+ } | null;
3526
+ type?: "text" | "list" | "title" | "equation" | "caption" | "code" | "references" | "aside_text" | "header" | "footer" | "signature";
3527
+ [key: string]: unknown;
3528
+ } | {
3529
+ top_left_x: number;
3530
+ top_left_y: number;
3531
+ bottom_right_x: number;
3532
+ bottom_right_y: number;
3533
+ content: string;
3534
+ confidence_scores?: {
3535
+ average_content_confidence_score?: number | null;
3536
+ minimum_content_confidence_score?: number | null;
3537
+ block_type_confidence_score?: number | null;
3538
+ [key: string]: unknown;
3539
+ } | null;
3540
+ type?: "image";
3541
+ image_id: string;
3542
+ [key: string]: unknown;
3543
+ } | {
3544
+ top_left_x: number;
3545
+ top_left_y: number;
3546
+ bottom_right_x: number;
3547
+ bottom_right_y: number;
3548
+ content: string;
3549
+ confidence_scores?: {
3550
+ average_content_confidence_score?: number | null;
3551
+ minimum_content_confidence_score?: number | null;
3552
+ block_type_confidence_score?: number | null;
3553
+ [key: string]: unknown;
3554
+ } | null;
3555
+ type?: "table";
3556
+ table_id?: string | null;
3557
+ [key: string]: unknown;
3558
+ }> | null;
3559
+ confidence_scores?: {
3560
+ word_confidence_scores?: Array<{
3561
+ text: string;
3562
+ confidence: number;
3563
+ start_index: number;
3564
+ [key: string]: unknown;
3565
+ }>;
3566
+ average_page_confidence_score: number;
3567
+ minimum_page_confidence_score: number;
3568
+ [key: string]: unknown;
3569
+ } | null;
3570
+ [key: string]: unknown;
3571
+ }>;
3572
+ model: string;
3573
+ usage_info: {
3574
+ pages_processed: number;
3575
+ doc_size_bytes?: number | null;
3576
+ [key: string]: unknown;
3577
+ };
3578
+ document_annotation?: string | null;
3579
+ }>;
3580
+ };
3581
+ rerank: {
3582
+ create: (options: import("./core/transport.js").CallOptions<Types.RerankData>) => Promise<{
3583
+ results: Array<{
3584
+ index: number;
3585
+ relevance_score: number;
3586
+ }>;
3587
+ }>;
3588
+ };
3589
+ responses: {
3590
+ cancel: (options: import("./core/transport.js").CallOptions<Types.CancelResponseData>) => Promise<{
3591
+ [key: string]: unknown;
3592
+ }>;
3593
+ compact: (options: import("./core/transport.js").CallOptions<Types.CompactResponseData>) => Promise<{
3594
+ [key: string]: unknown;
3595
+ }>;
3596
+ create: import("./core/bindings.js").MixedMethod<Types.CreateResponseData, Types.OpenaiOpenResponsesResult, Types.PraxisSdkSsePostModelV1Responses>;
3597
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteResponseData>) => Promise<{
3598
+ [key: string]: unknown;
3599
+ }>;
3600
+ inputItems: {
3601
+ list: (options: import("./core/transport.js").CallOptions<Types.ListResponseInputItemsData>) => Promise<{
3602
+ [key: string]: unknown;
3603
+ }>;
3604
+ };
3605
+ inputTokens: {
3606
+ create: (options: import("./core/transport.js").CallOptions<Types.CountResponseInputTokensData>) => Promise<{
3607
+ [key: string]: unknown;
3608
+ }>;
3609
+ };
3610
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RetrieveResponseData>) => Promise<{
3611
+ [key: string]: unknown;
3612
+ }>;
3613
+ };
3614
+ videos: {
3615
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateVideoData>) => Promise<{
3616
+ id: string;
3617
+ object: "video";
3618
+ model: string;
3619
+ status: "queued" | "in_progress" | "completed" | "failed";
3620
+ progress: number;
3621
+ created_at: number;
3622
+ completed_at: number | null;
3623
+ expires_at: number | null;
3624
+ seconds: string;
3625
+ size: string;
3626
+ prompt?: string | null;
3627
+ remixed_from_video_id?: null;
3628
+ error: {
3629
+ code?: string;
3630
+ message?: string;
3631
+ } | null;
3632
+ polling_url: string;
3633
+ unsigned_urls: Array<string>;
3634
+ usage?: {
3635
+ cost: number;
3636
+ };
3637
+ }>;
3638
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteVideoData>) => Promise<{
3639
+ id: string;
3640
+ object: "video.deleted";
3641
+ deleted: true;
3642
+ }>;
3643
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListVideosData> | undefined) => Promise<{
3644
+ object: "list";
3645
+ data: Array<{
3646
+ id: string;
3647
+ object: "video";
3648
+ model: string;
3649
+ status: "queued" | "in_progress" | "completed" | "failed";
3650
+ progress: number;
3651
+ created_at: number;
3652
+ completed_at: number | null;
3653
+ expires_at: number | null;
3654
+ seconds: string;
3655
+ size: string;
3656
+ prompt?: string | null;
3657
+ remixed_from_video_id?: null;
3658
+ error: {
3659
+ code?: string;
3660
+ message?: string;
3661
+ } | null;
3662
+ polling_url: string;
3663
+ unsigned_urls: Array<string>;
3664
+ usage?: {
3665
+ cost: number;
3666
+ };
3667
+ }>;
3668
+ has_more: boolean;
3669
+ first_id: string | null;
3670
+ last_id: string | null;
3671
+ }>;
3672
+ remix: (options: import("./core/transport.js").CallOptions<Types.RemixVideoData>) => Promise<unknown>;
3673
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RetrieveVideoData>) => Promise<{
3674
+ id: string;
3675
+ object: "video";
3676
+ model: string;
3677
+ status: "queued" | "in_progress" | "completed" | "failed";
3678
+ progress: number;
3679
+ created_at: number;
3680
+ completed_at: number | null;
3681
+ expires_at: number | null;
3682
+ seconds: string;
3683
+ size: string;
3684
+ prompt?: string | null;
3685
+ remixed_from_video_id?: null;
3686
+ error: {
3687
+ code?: string;
3688
+ message?: string;
3689
+ } | null;
3690
+ polling_url: string;
3691
+ unsigned_urls: Array<string>;
3692
+ usage?: {
3693
+ cost: number;
3694
+ };
3695
+ }>;
3696
+ retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
3697
+ };
3698
+ };
3699
+ export declare function createOrganization(transport: Transport): {
3700
+ charges: {
3701
+ list: (options: import("./core/transport.js").CallOptions<Types.ExportOrganizationChargesData>) => Promise<{
3702
+ ChargePeriodStart: string;
3703
+ ChargePeriodEnd: string;
3704
+ BilledCost: string;
3705
+ BillingCurrency: "CNY" | "USD";
3706
+ ServiceName: string;
3707
+ ServiceCategory: string;
3708
+ ResourceId: string;
3709
+ ResourceName: string;
3710
+ ConsumedQuantity: string;
3711
+ ConsumedUnit: string;
3712
+ ChargeCategory: "Usage" | "Adjustment";
3713
+ ChargeClass: "Correction" | null;
3714
+ ChargeDescription: string;
3715
+ x_RequestId: string | null;
3716
+ x_EventId: string;
3717
+ }>;
3718
+ };
3719
+ costs: {
3720
+ list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationCostsData>) => Promise<{
3721
+ object: "page";
3722
+ data: Array<{
3723
+ object: "bucket";
3724
+ starting_at: string;
3725
+ ending_at: string;
3726
+ estimated: boolean;
3727
+ results: Array<{
3728
+ ServiceName?: string;
3729
+ ServiceCategory?: string;
3730
+ ResourceId?: string;
3731
+ ResourceName?: string;
3732
+ BilledCost: string;
3733
+ BillingCurrency: "CNY" | "USD";
3734
+ x_EventCount: string;
3735
+ }>;
3736
+ }>;
3737
+ has_more: boolean;
3738
+ next_page: string | null;
3739
+ }>;
3740
+ };
3741
+ events: {
3742
+ list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationEventsData>) => Promise<{
3743
+ object: "page";
3744
+ data: Array<{
3745
+ object: "usage.event";
3746
+ id: string;
3747
+ occurred_at: string;
3748
+ ServiceName: string;
3749
+ ServiceCategory: string;
3750
+ ResourceId: string;
3751
+ ResourceName: string;
3752
+ BilledCost: string;
3753
+ BillingCurrency: "CNY" | "USD";
3754
+ ChargeClass: "Correction" | null;
3755
+ request_id: string | null;
3756
+ settlement: {
3757
+ status: "settled" | "no_charge" | "rejected";
3758
+ shortfall: string | null;
3759
+ zero_reason: string | null;
3760
+ };
3761
+ lines: Array<{
3762
+ meter: string;
3763
+ display_name: string;
3764
+ ConsumedQuantity: string;
3765
+ ConsumedUnit: string;
3766
+ }>;
3767
+ }>;
3768
+ has_more: boolean;
3769
+ next_page: string | null;
3770
+ }>;
3771
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationEventData>) => Promise<{
3772
+ object: "usage.event";
3773
+ id: string;
3774
+ occurred_at: string;
3775
+ ServiceName: string;
3776
+ ServiceCategory: string;
3777
+ ResourceId: string;
3778
+ ResourceName: string;
3779
+ BilledCost: string;
3780
+ BillingCurrency: "CNY" | "USD";
3781
+ ChargeClass: "Correction" | null;
3782
+ request_id: string | null;
3783
+ settlement: {
3784
+ status: "settled" | "no_charge" | "rejected";
3785
+ shortfall: string | null;
3786
+ zero_reason: string | null;
3787
+ };
3788
+ lines?: Array<{
3789
+ meter: string;
3790
+ display_name: string;
3791
+ ConsumedQuantity: string;
3792
+ ConsumedUnit: string;
3793
+ ListUnitPrice: string | null;
3794
+ PricingUnit: string | null;
3795
+ BilledCost: string;
3796
+ }>;
3797
+ x_Charges?: Array<{
3798
+ transaction_id: string;
3799
+ BilledCost: string;
3800
+ BillingCurrency: "CNY" | "USD";
3801
+ sub_account: "cash" | "promotional";
3802
+ }>;
3803
+ }>;
3804
+ };
3805
+ feedback: {
3806
+ counts: {
3807
+ list: (options?: import("./core/transport.js").CallOptions<Types.GetOrganizationFeedbackCountsData> | undefined) => Promise<{
3808
+ object: "feedback.counts";
3809
+ open: number;
3810
+ awaiting_customer: number;
3811
+ in_progress: number;
3812
+ resolved: number;
3813
+ closed: number;
3814
+ total: number;
3815
+ }>;
3816
+ };
3817
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateOrganizationFeedbackData>) => Promise<{
3818
+ id: string;
3819
+ }>;
3820
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationFeedbackData> | undefined) => Promise<{
3821
+ object: "page";
3822
+ data: Array<{
3823
+ object: "feedback";
3824
+ id: string;
3825
+ title?: string | null;
3826
+ type?: string | null;
3827
+ message: string;
3828
+ phase: "open" | "awaiting_customer" | "in_progress" | "resolved" | "closed";
3829
+ status: "unresolved" | "resolved" | "ignored";
3830
+ source: "console" | "api" | "codemode";
3831
+ url?: string | null;
3832
+ first_response_due_time?: string | null;
3833
+ first_response_time?: string | null;
3834
+ last_message_time: string;
3835
+ unread: boolean;
3836
+ create_time: string;
3837
+ update_time: string;
3838
+ reporter?: {
3839
+ type?: "user" | "api_key" | "agent_session";
3840
+ };
3841
+ last_message_preview?: {
3842
+ author_kind?: "customer" | "staff" | "system";
3843
+ body?: string;
3844
+ create_time?: string;
3845
+ } | null;
3846
+ attachments: Array<{
3847
+ id?: string;
3848
+ name?: string;
3849
+ content_type?: string;
3850
+ size?: number;
3851
+ create_time?: string;
3852
+ }>;
3853
+ }>;
3854
+ has_more: boolean;
3855
+ next_page: string | null;
3856
+ }>;
3857
+ messages: {
3858
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateOrganizationFeedbackMessageData>) => Promise<{
3859
+ object: "feedback.message";
3860
+ id: string;
3861
+ feedback_id: string;
3862
+ author: {
3863
+ kind?: "customer" | "staff" | "system";
3864
+ name?: string;
3865
+ };
3866
+ body: string;
3867
+ event?: {
3868
+ type?: "phase_changed" | "assigned";
3869
+ from?: string | null;
3870
+ to?: string | null;
3871
+ } | null;
3872
+ attachments: Array<{
3873
+ id?: string;
3874
+ name?: string;
3875
+ content_type?: string;
3876
+ size?: number;
3877
+ create_time?: string;
3878
+ }>;
3879
+ create_time: string;
3880
+ }>;
3881
+ list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationFeedbackMessagesData>) => Promise<{
3882
+ object: "page";
3883
+ data: Array<{
3884
+ object: "feedback.message";
3885
+ id: string;
3886
+ feedback_id: string;
3887
+ author: {
3888
+ kind?: "customer" | "staff" | "system";
3889
+ name?: string;
3890
+ };
3891
+ body: string;
3892
+ event?: {
3893
+ type?: "phase_changed" | "assigned";
3894
+ from?: string | null;
3895
+ to?: string | null;
3896
+ } | null;
3897
+ attachments: Array<{
3898
+ id?: string;
3899
+ name?: string;
3900
+ content_type?: string;
3901
+ size?: number;
3902
+ create_time?: string;
3903
+ }>;
3904
+ create_time: string;
3905
+ }>;
3906
+ has_more: boolean;
3907
+ next_page: string | null;
3908
+ }>;
3909
+ };
3910
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationFeedbackData>) => Promise<{
3911
+ object: "feedback";
3912
+ id: string;
3913
+ title?: string | null;
3914
+ type?: string | null;
3915
+ message: string;
3916
+ phase: "open" | "awaiting_customer" | "in_progress" | "resolved" | "closed";
3917
+ status: "unresolved" | "resolved" | "ignored";
3918
+ source: "console" | "api" | "codemode";
3919
+ url?: string | null;
3920
+ first_response_due_time?: string | null;
3921
+ first_response_time?: string | null;
3922
+ last_message_time: string;
3923
+ unread: boolean;
3924
+ create_time: string;
3925
+ update_time: string;
3926
+ reporter?: {
3927
+ type?: "user" | "api_key" | "agent_session";
3928
+ };
3929
+ last_message_preview?: {
3930
+ author_kind?: "customer" | "staff" | "system";
3931
+ body?: string;
3932
+ create_time?: string;
3933
+ } | null;
3934
+ attachments: Array<{
3935
+ id?: string;
3936
+ name?: string;
3937
+ content_type?: string;
3938
+ size?: number;
3939
+ create_time?: string;
3940
+ }>;
3941
+ }>;
3942
+ };
3943
+ usage: {
3944
+ list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationUsageData>) => Promise<{
3945
+ object: "page";
3946
+ data: Array<{
3947
+ object: "bucket";
3948
+ starting_at: string;
3949
+ ending_at: string;
3950
+ estimated: boolean;
3951
+ results: Array<{
3952
+ ServiceName?: string;
3953
+ ServiceCategory?: string;
3954
+ ResourceId?: string;
3955
+ ResourceName?: string;
3956
+ ConsumedQuantity: string;
3957
+ ConsumedUnit: string;
3958
+ x_EventCount: string;
3959
+ }>;
3960
+ }>;
3961
+ has_more: boolean;
3962
+ next_page: string | null;
3963
+ }>;
3964
+ };
3965
+ };
3966
+ export declare function createSandbox(transport: Transport): {
3967
+ sandboxes: {
3968
+ commands: {
3969
+ run: (options: import("./core/transport.js").CallOptions<Types.RunSandboxCommandData>) => Promise<{
3970
+ stdout: string;
3971
+ stderr: string;
3972
+ exitCode: number;
3973
+ }>;
3974
+ };
3975
+ connect: (options: import("./core/transport.js").CallOptions<Types.PostSandboxV1SandboxesBySandboxIdConnectData>) => Promise<Types.SandboxSandbox>;
3976
+ create: (options: import("./core/transport.js").CallOptions<Types.PostSandboxV1SandboxesData>) => Promise<Types.SandboxSandbox>;
3977
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteSandboxV1SandboxesBySandboxIdData>) => Promise<void>;
3978
+ extend: (options: import("./core/transport.js").CallOptions<Types.ExtendSandboxData>) => Promise<{
3979
+ endAt: string;
3980
+ }>;
3981
+ files: {
3982
+ list: (options: import("./core/transport.js").CallOptions<Types.ListSandboxFilesData>) => Promise<{
3983
+ name: string;
3984
+ path: string;
3985
+ type: "file" | "dir" | "symlink";
3986
+ size: number;
3987
+ }[]>;
3988
+ makeDir: (options: import("./core/transport.js").CallOptions<Types.MakeSandboxDirectoryData>) => Promise<boolean>;
3989
+ read: (options: import("./core/transport.js").CallOptions<Types.ReadSandboxFileData>) => Promise<string>;
3990
+ remove: (options: import("./core/transport.js").CallOptions<Types.RemoveSandboxFileData>) => Promise<void>;
3991
+ write: (options: import("./core/transport.js").CallOptions<Types.WriteSandboxFileData>) => Promise<{
3992
+ name: string;
3993
+ path: string;
3994
+ type: "file" | "dir" | "symlink";
3995
+ size: number;
3996
+ }>;
3997
+ };
3998
+ fork: (options: import("./core/transport.js").CallOptions<Types.PostSandboxV1SandboxesBySandboxIdForkData>) => Promise<Types.SandboxSandboxForkResult[]>;
3999
+ list: (options?: import("./core/transport.js").CallOptions<Types.GetSandboxV1SandboxesData> | undefined) => Promise<Types.SandboxListedSandbox[]>;
4000
+ logs: {
4001
+ list: (options: import("./core/transport.js").CallOptions<Types.GetSandboxV1SandboxesBySandboxIdLogsData>) => Promise<Types.SandboxSandboxLogsV2Response>;
4002
+ };
4003
+ metrics: {
4004
+ list: (options: import("./core/transport.js").CallOptions<Types.GetSandboxV1SandboxesBySandboxIdMetricsData>) => Promise<Types.SandboxSandboxMetric[]>;
4005
+ };
4006
+ pause: (options: import("./core/transport.js").CallOptions<Types.PostSandboxV1SandboxesBySandboxIdPauseData>) => Promise<void>;
4007
+ processes: {
4008
+ list: (options: import("./core/transport.js").CallOptions<Types.ListObservedProcessesData>) => Promise<{
4009
+ processes: Array<{
4010
+ processId: string;
4011
+ pid: number;
4012
+ tag?: string;
4013
+ config: {
4014
+ cmd: string;
4015
+ args: Array<string>;
4016
+ cwd?: string;
4017
+ };
4018
+ pty?: boolean;
4019
+ startedAt?: string;
4020
+ exitedAt?: string;
4021
+ exitCode?: number;
4022
+ state: "running" | "exited" | "unknown";
4023
+ observed: boolean;
4024
+ observationGap: boolean;
4025
+ outputTruncated: boolean;
4026
+ }>;
4027
+ }>;
4028
+ retrieveOutput: (options: import("./core/transport.js").CallOptions<Types.GetObservedProcessOutputData>) => Promise<{
4029
+ chunks: Array<{
4030
+ seq: number;
4031
+ stream: "stdout" | "stderr" | "pty";
4032
+ data: string;
4033
+ timestamp: number;
4034
+ }>;
4035
+ complete: boolean;
4036
+ gap: boolean;
4037
+ truncated: boolean;
4038
+ exitCode: number | null;
4039
+ }>;
4040
+ };
4041
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetSandboxV1SandboxesBySandboxIdData>) => Promise<Types.SandboxSandboxDetail>;
4042
+ snapshots: {
4043
+ create: (options: import("./core/transport.js").CallOptions<Types.PostSandboxV1SandboxesBySandboxIdSnapshotsData>) => Promise<Types.SandboxSnapshotInfo>;
4044
+ };
4045
+ timeout: (options: import("./core/transport.js").CallOptions<Types.PostSandboxV1SandboxesBySandboxIdTimeoutData>) => Promise<void>;
4046
+ update: (options: import("./core/transport.js").CallOptions<Types.RenameSandboxData>) => Promise<Types.SandboxSandboxDetail & {
4047
+ name: string;
4048
+ }>;
4049
+ updateNetwork: (options: import("./core/transport.js").CallOptions<Types.PutSandboxV1SandboxesBySandboxIdNetworkData>) => Promise<void>;
4050
+ upgrade: {
4051
+ create: (options: import("./core/transport.js").CallOptions<Types.UpgradeSandboxData>) => Promise<Types.SandboxSandboxDetail>;
4052
+ };
4053
+ };
4054
+ snapshots: {
4055
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteSandboxV1SnapshotsBySnapshotIdData>) => Promise<void>;
4056
+ list: (options?: import("./core/transport.js").CallOptions<Types.GetSandboxV1SnapshotsData> | undefined) => Promise<Types.SandboxSnapshotInfo[]>;
4057
+ };
4058
+ templates: {
4059
+ list: (options?: import("./core/transport.js").CallOptions<Types.GetSandboxV1TemplatesData> | undefined) => Promise<Types.SandboxTemplate[]>;
4060
+ };
4061
+ volumes: {
4062
+ create: (options: import("./core/transport.js").CallOptions<Types.PostSandboxV1VolumesData>) => Promise<Types.SandboxVolumeAndToken>;
4063
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteSandboxV1VolumesByVolumeIdData>) => Promise<void>;
4064
+ list: (options?: import("./core/transport.js").CallOptions<Types.GetSandboxV1VolumesData> | undefined) => Promise<Types.SandboxVolume[]>;
4065
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetSandboxV1VolumesByVolumeIdData>) => Promise<Types.SandboxVolumeAndToken>;
4066
+ };
4067
+ };
4068
+ export declare function createSearch(transport: Transport): {
4069
+ crawl: {
4070
+ create: (options: import("./core/transport.js").CallOptions<Types.SearchCrawlData>) => Promise<{
4071
+ base_url?: string;
4072
+ results?: Array<{
4073
+ url?: string;
4074
+ raw_content?: string;
4075
+ favicon?: string;
4076
+ }>;
4077
+ response_time?: number;
4078
+ usage?: {
4079
+ [key: string]: unknown;
4080
+ };
4081
+ request_id?: string;
4082
+ }>;
4083
+ };
4084
+ extract: {
4085
+ create: (options: import("./core/transport.js").CallOptions<Types.SearchExtractData>) => Promise<{
4086
+ results?: Array<{
4087
+ url?: string;
4088
+ raw_content?: string;
4089
+ images?: Array<string>;
4090
+ favicon?: string;
4091
+ }>;
4092
+ failed_results?: Array<{
4093
+ url?: string;
4094
+ error?: string;
4095
+ }>;
4096
+ response_time?: number;
4097
+ usage?: {
4098
+ [key: string]: unknown;
4099
+ };
4100
+ request_id?: string;
4101
+ }>;
4102
+ };
4103
+ map: {
4104
+ create: (options: import("./core/transport.js").CallOptions<Types.SearchMapData>) => Promise<{
4105
+ base_url?: string;
4106
+ results?: Array<string>;
4107
+ response_time?: number;
4108
+ usage?: {
4109
+ [key: string]: unknown;
4110
+ };
4111
+ request_id?: string;
4112
+ }>;
4113
+ };
4114
+ search: {
4115
+ create: (options: import("./core/transport.js").CallOptions<Types.SearchSearchData>) => Promise<{
4116
+ query: string;
4117
+ answer: string;
4118
+ images: Array<{
4119
+ url?: string;
4120
+ description?: string;
4121
+ }>;
4122
+ results: Array<{
4123
+ title?: string;
4124
+ url?: string;
4125
+ content?: string;
4126
+ score?: number;
4127
+ raw_content?: string;
4128
+ published_date?: string;
4129
+ favicon?: string;
4130
+ images?: Array<{
4131
+ url?: string;
4132
+ description?: string;
4133
+ }>;
4134
+ id?: string;
4135
+ }>;
4136
+ auto_parameters?: {
4137
+ [key: string]: unknown;
4138
+ };
4139
+ response_time: number;
4140
+ usage?: {
4141
+ [key: string]: unknown;
4142
+ };
4143
+ request_id?: string;
4144
+ }>;
4145
+ };
4146
+ };
4147
+ export declare function createVault(transport: Transport): {
4148
+ authorizations: {
4149
+ create: (options: import("./core/transport.js").CallOptions<Types.VaultCreateAuthorizationData>) => Promise<Types.VaultAuthorization>;
4150
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.VaultGetAuthorizationData>) => Promise<Types.VaultAuthorization>;
4151
+ retrieveCallback: (options?: import("./core/transport.js").CallOptions<Types.VaultAuthorizationCallbackData> | undefined) => Promise<string>;
4152
+ };
4153
+ connect: {
4154
+ continue: {
4155
+ create: (options: import("./core/transport.js").CallOptions<Types.VaultConnectContinueData>) => Promise<unknown>;
4156
+ };
4157
+ deny: {
4158
+ create: (options: import("./core/transport.js").CallOptions<Types.VaultConnectDenyData>) => Promise<string>;
4159
+ };
4160
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.VaultConnectPageData>) => Promise<string>;
4161
+ };
4162
+ oauth: {
4163
+ retrieveClientMetadata: (options?: import("./core/transport.js").CallOptions<Types.VaultOAuthClientMetadataData> | undefined) => Promise<Types.VaultOAuthClientMetadata>;
4164
+ };
4165
+ settings: {
4166
+ returnUrls: {
4167
+ list: (options?: import("./core/transport.js").CallOptions<Types.VaultGetReturnUrlsData> | undefined) => Promise<Types.VaultReturnUrls>;
4168
+ update: (options: import("./core/transport.js").CallOptions<Types.VaultSetReturnUrlsData>) => Promise<Types.VaultReturnUrls>;
4169
+ };
4170
+ };
4171
+ templates: {
4172
+ list: (options?: import("./core/transport.js").CallOptions<Types.VaultListTemplatesData> | undefined) => Promise<Types.VaultTemplateList>;
4173
+ };
4174
+ vaults: {
4175
+ archive: (options: import("./core/transport.js").CallOptions<Types.VaultArchiveVaultData>) => Promise<Types.VaultVault>;
4176
+ check: (options: import("./core/transport.js").CallOptions<Types.VaultCheckVaultsData>) => Promise<Types.VaultCheckVaultsResult>;
4177
+ create: (options: import("./core/transport.js").CallOptions<Types.VaultCreateVaultData>) => Promise<Types.VaultVault>;
4178
+ delete: (options: import("./core/transport.js").CallOptions<Types.VaultDeleteVaultData>) => Promise<Types.VaultVaultDeleted>;
4179
+ events: {
4180
+ list: (options: import("./core/transport.js").CallOptions<Types.VaultListEventsData>) => Promise<import("./automation.js").Page<Types.VaultVaultEvent>>;
4181
+ };
4182
+ list: (options?: import("./core/transport.js").CallOptions<Types.VaultListVaultsData> | undefined) => Promise<import("./automation.js").Page<Types.VaultVault>>;
4183
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.VaultGetVaultData>) => Promise<Types.VaultVault>;
4184
+ secrets: {
4185
+ archive: (options: import("./core/transport.js").CallOptions<Types.VaultArchiveSecretData>) => Promise<Types.VaultSecret>;
4186
+ create: (options: import("./core/transport.js").CallOptions<Types.VaultCreateSecretData>) => Promise<Types.VaultSecret>;
4187
+ delete: (options: import("./core/transport.js").CallOptions<Types.VaultDeleteSecretData>) => Promise<Types.VaultSecretDeleted>;
4188
+ import: (options: import("./core/transport.js").CallOptions<Types.VaultImportSecretsData>) => Promise<Types.VaultImportResult>;
4189
+ list: (options: import("./core/transport.js").CallOptions<Types.VaultListSecretsData>) => Promise<import("./automation.js").Page<Types.VaultSecret>>;
4190
+ refresh: {
4191
+ create: (options: import("./core/transport.js").CallOptions<Types.VaultRefreshSecretData>) => Promise<Types.VaultSecret>;
4192
+ };
4193
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.VaultGetSecretData>) => Promise<Types.VaultSecret>;
4194
+ update: (options: import("./core/transport.js").CallOptions<Types.VaultUpdateSecretData>) => Promise<Types.VaultSecret>;
4195
+ validate: {
4196
+ create: (options: import("./core/transport.js").CallOptions<Types.VaultValidateSecretData>) => Promise<Types.VaultSecretValidation>;
4197
+ };
4198
+ };
4199
+ update: (options: import("./core/transport.js").CallOptions<Types.VaultUpdateVaultData>) => Promise<Types.VaultVault>;
4200
+ };
4201
+ };
4202
+ export declare const resourceFactories: {
4203
+ agent: typeof createAgent;
4204
+ application: typeof createApplication;
4205
+ automation: typeof createAutomation;
4206
+ browser: typeof createBrowser;
4207
+ database: typeof createDatabase;
4208
+ file: typeof createFile;
4209
+ knowledge: typeof createKnowledge;
4210
+ media: typeof createMedia;
4211
+ meta: typeof createMeta;
4212
+ model: typeof createModel;
4213
+ organization: typeof createOrganization;
4214
+ sandbox: typeof createSandbox;
4215
+ search: typeof createSearch;
4216
+ vault: typeof createVault;
4217
+ };