@blazingagents/sdk 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/api.d.ts +6 -3
- package/dist/contracts/api.js +2 -1
- package/dist/contracts/entities/agents.d.ts +2 -118
- package/dist/contracts/entities/agents.js +2 -24
- package/dist/contracts/entities/chat.d.ts +0 -12
- package/dist/contracts/entities/chat.js +1 -4
- package/dist/contracts/entities/providers.d.ts +2 -6
- package/dist/contracts/entities/providers.js +2 -9
- package/dist/contracts/entities/session-inputs.d.ts +235 -0
- package/dist/contracts/entities/session-inputs.js +80 -0
- package/dist/contracts/entities/sessions.d.ts +106 -5
- package/dist/contracts/entities/sessions.js +5 -3
- package/dist/contracts/entities/tasks.d.ts +285 -10
- package/dist/contracts/entities/tasks.js +2 -5
- package/dist/contracts/index.d.ts +4 -2
- package/dist/contracts/index.js +3 -2
- package/dist/contracts/limitations.d.ts +0 -2
- package/dist/contracts/limitations.js +0 -2
- package/dist/direct-chat-transport.d.ts +7 -1
- package/dist/direct-chat-transport.js +26 -1
- package/dist/generation.d.ts +1 -1
- package/dist/generation.js +3 -10
- package/dist/index.d.ts +6 -3
- package/dist/index.js +2 -0
- package/dist/relay.d.ts +0 -1
- package/dist/relay.js +0 -2
- package/dist/resources/agents.js +1 -33
- package/dist/resources/providers.js +1 -1
- package/dist/resources/sessions.d.ts +1 -1
- package/dist/resources/sessions.js +50 -3
- package/dist/types.d.ts +52 -23
- package/package.json +1 -1
|
@@ -50,7 +50,6 @@ export type TaskScheduleInput = z.infer<typeof taskScheduleInputSchema>;
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const createTaskBodySchema: z.ZodObject<{
|
|
52
52
|
agentId: z.ZodString;
|
|
53
|
-
agentVersion: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
54
53
|
name: z.ZodString;
|
|
55
54
|
prompt: z.ZodString;
|
|
56
55
|
schedule: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -78,7 +77,6 @@ export declare const createTaskBodySchema: z.ZodObject<{
|
|
|
78
77
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
79
78
|
}, z.core.$strict>;
|
|
80
79
|
export declare const updateTaskBodySchema: z.ZodObject<{
|
|
81
|
-
agentVersion: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
82
80
|
name: z.ZodOptional<z.ZodString>;
|
|
83
81
|
prompt: z.ZodOptional<z.ZodString>;
|
|
84
82
|
schedule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -123,7 +121,6 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
123
121
|
id: z.ZodString;
|
|
124
122
|
tenantId: z.ZodString;
|
|
125
123
|
agentId: z.ZodString;
|
|
126
|
-
agentVersion: z.ZodNullable<z.ZodNumber>;
|
|
127
124
|
name: z.ZodString;
|
|
128
125
|
prompt: z.ZodString;
|
|
129
126
|
schedule: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -170,7 +167,6 @@ export declare const taskListItemSchema: z.ZodObject<{
|
|
|
170
167
|
id: z.ZodString;
|
|
171
168
|
tenantId: z.ZodString;
|
|
172
169
|
agentId: z.ZodString;
|
|
173
|
-
agentVersion: z.ZodNullable<z.ZodNumber>;
|
|
174
170
|
name: z.ZodString;
|
|
175
171
|
prompt: z.ZodString;
|
|
176
172
|
schedule: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -218,7 +214,6 @@ export declare const tasksListResponseSchema: z.ZodObject<{
|
|
|
218
214
|
id: z.ZodString;
|
|
219
215
|
tenantId: z.ZodString;
|
|
220
216
|
agentId: z.ZodString;
|
|
221
|
-
agentVersion: z.ZodNullable<z.ZodNumber>;
|
|
222
217
|
name: z.ZodString;
|
|
223
218
|
prompt: z.ZodString;
|
|
224
219
|
schedule: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -272,7 +267,6 @@ export declare const taskResponseSchema: z.ZodObject<{
|
|
|
272
267
|
id: z.ZodString;
|
|
273
268
|
tenantId: z.ZodString;
|
|
274
269
|
agentId: z.ZodString;
|
|
275
|
-
agentVersion: z.ZodNullable<z.ZodNumber>;
|
|
276
270
|
name: z.ZodString;
|
|
277
271
|
prompt: z.ZodString;
|
|
278
272
|
schedule: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -312,7 +306,101 @@ export declare const taskRunSchema: z.ZodObject<{
|
|
|
312
306
|
taskId: z.ZodString;
|
|
313
307
|
tenantId: z.ZodString;
|
|
314
308
|
agentId: z.ZodString;
|
|
315
|
-
|
|
309
|
+
agentConfig: z.ZodObject<{
|
|
310
|
+
approvalInChat: z.ZodDefault<z.ZodObject<{
|
|
311
|
+
default: z.ZodEnum<{
|
|
312
|
+
auto: "auto";
|
|
313
|
+
deny: "deny";
|
|
314
|
+
full: "full";
|
|
315
|
+
manual: "manual";
|
|
316
|
+
}>;
|
|
317
|
+
overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
318
|
+
tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
319
|
+
type: z.ZodLiteral<"builtin">;
|
|
320
|
+
name: z.ZodEnum<{
|
|
321
|
+
activate_skill: "activate_skill";
|
|
322
|
+
bash: "bash";
|
|
323
|
+
delete_memory: "delete_memory";
|
|
324
|
+
edit: "edit";
|
|
325
|
+
get_memory: "get_memory";
|
|
326
|
+
glob: "glob";
|
|
327
|
+
grep: "grep";
|
|
328
|
+
publish_artifacts: "publish_artifacts";
|
|
329
|
+
read: "read";
|
|
330
|
+
save_memory: "save_memory";
|
|
331
|
+
search_memories: "search_memories";
|
|
332
|
+
update_memory: "update_memory";
|
|
333
|
+
write: "write";
|
|
334
|
+
write_todos: "write_todos";
|
|
335
|
+
}>;
|
|
336
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
337
|
+
type: z.ZodLiteral<"mcp">;
|
|
338
|
+
connectionId: z.ZodString;
|
|
339
|
+
name: z.ZodString;
|
|
340
|
+
}, z.core.$strict>], "type">;
|
|
341
|
+
decision: z.ZodEnum<{
|
|
342
|
+
auto: "auto";
|
|
343
|
+
deny: "deny";
|
|
344
|
+
full: "full";
|
|
345
|
+
manual: "manual";
|
|
346
|
+
}>;
|
|
347
|
+
}, z.core.$strict>>>;
|
|
348
|
+
}, z.core.$strict>>;
|
|
349
|
+
approvalInTasks: z.ZodDefault<z.ZodObject<{
|
|
350
|
+
default: z.ZodEnum<{
|
|
351
|
+
auto: "auto";
|
|
352
|
+
deny: "deny";
|
|
353
|
+
full: "full";
|
|
354
|
+
manual: "manual";
|
|
355
|
+
}>;
|
|
356
|
+
overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
357
|
+
tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
|
+
type: z.ZodLiteral<"builtin">;
|
|
359
|
+
name: z.ZodEnum<{
|
|
360
|
+
activate_skill: "activate_skill";
|
|
361
|
+
bash: "bash";
|
|
362
|
+
delete_memory: "delete_memory";
|
|
363
|
+
edit: "edit";
|
|
364
|
+
get_memory: "get_memory";
|
|
365
|
+
glob: "glob";
|
|
366
|
+
grep: "grep";
|
|
367
|
+
publish_artifacts: "publish_artifacts";
|
|
368
|
+
read: "read";
|
|
369
|
+
save_memory: "save_memory";
|
|
370
|
+
search_memories: "search_memories";
|
|
371
|
+
update_memory: "update_memory";
|
|
372
|
+
write: "write";
|
|
373
|
+
write_todos: "write_todos";
|
|
374
|
+
}>;
|
|
375
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
376
|
+
type: z.ZodLiteral<"mcp">;
|
|
377
|
+
connectionId: z.ZodString;
|
|
378
|
+
name: z.ZodString;
|
|
379
|
+
}, z.core.$strict>], "type">;
|
|
380
|
+
decision: z.ZodEnum<{
|
|
381
|
+
auto: "auto";
|
|
382
|
+
deny: "deny";
|
|
383
|
+
full: "full";
|
|
384
|
+
manual: "manual";
|
|
385
|
+
}>;
|
|
386
|
+
}, z.core.$strict>>>;
|
|
387
|
+
}, z.core.$strict>>;
|
|
388
|
+
name: z.ZodString;
|
|
389
|
+
model: z.ZodNullable<z.ZodString>;
|
|
390
|
+
thinkingLevel: z.ZodNullable<z.ZodString>;
|
|
391
|
+
providerId: z.ZodNullable<z.ZodString>;
|
|
392
|
+
autoCompaction: z.ZodBoolean;
|
|
393
|
+
compactionReserveTokens: z.ZodNumber;
|
|
394
|
+
memoryInjectionEnabled: z.ZodBoolean;
|
|
395
|
+
tools: z.ZodArray<z.ZodEnum<{
|
|
396
|
+
memory: "memory";
|
|
397
|
+
workspace: "workspace";
|
|
398
|
+
write_todos: "write_todos";
|
|
399
|
+
}>>;
|
|
400
|
+
instructions: z.ZodString;
|
|
401
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
402
|
+
mcpConnectionIds: z.ZodArray<z.ZodString>;
|
|
403
|
+
}, z.core.$strip>;
|
|
316
404
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
317
405
|
turnId: z.ZodNullable<z.ZodString>;
|
|
318
406
|
status: z.ZodEnum<{
|
|
@@ -338,7 +426,101 @@ export declare const taskRunResponseSchema: z.ZodObject<{
|
|
|
338
426
|
taskId: z.ZodString;
|
|
339
427
|
tenantId: z.ZodString;
|
|
340
428
|
agentId: z.ZodString;
|
|
341
|
-
|
|
429
|
+
agentConfig: z.ZodObject<{
|
|
430
|
+
approvalInChat: z.ZodDefault<z.ZodObject<{
|
|
431
|
+
default: z.ZodEnum<{
|
|
432
|
+
auto: "auto";
|
|
433
|
+
deny: "deny";
|
|
434
|
+
full: "full";
|
|
435
|
+
manual: "manual";
|
|
436
|
+
}>;
|
|
437
|
+
overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
438
|
+
tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
439
|
+
type: z.ZodLiteral<"builtin">;
|
|
440
|
+
name: z.ZodEnum<{
|
|
441
|
+
activate_skill: "activate_skill";
|
|
442
|
+
bash: "bash";
|
|
443
|
+
delete_memory: "delete_memory";
|
|
444
|
+
edit: "edit";
|
|
445
|
+
get_memory: "get_memory";
|
|
446
|
+
glob: "glob";
|
|
447
|
+
grep: "grep";
|
|
448
|
+
publish_artifacts: "publish_artifacts";
|
|
449
|
+
read: "read";
|
|
450
|
+
save_memory: "save_memory";
|
|
451
|
+
search_memories: "search_memories";
|
|
452
|
+
update_memory: "update_memory";
|
|
453
|
+
write: "write";
|
|
454
|
+
write_todos: "write_todos";
|
|
455
|
+
}>;
|
|
456
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
457
|
+
type: z.ZodLiteral<"mcp">;
|
|
458
|
+
connectionId: z.ZodString;
|
|
459
|
+
name: z.ZodString;
|
|
460
|
+
}, z.core.$strict>], "type">;
|
|
461
|
+
decision: z.ZodEnum<{
|
|
462
|
+
auto: "auto";
|
|
463
|
+
deny: "deny";
|
|
464
|
+
full: "full";
|
|
465
|
+
manual: "manual";
|
|
466
|
+
}>;
|
|
467
|
+
}, z.core.$strict>>>;
|
|
468
|
+
}, z.core.$strict>>;
|
|
469
|
+
approvalInTasks: z.ZodDefault<z.ZodObject<{
|
|
470
|
+
default: z.ZodEnum<{
|
|
471
|
+
auto: "auto";
|
|
472
|
+
deny: "deny";
|
|
473
|
+
full: "full";
|
|
474
|
+
manual: "manual";
|
|
475
|
+
}>;
|
|
476
|
+
overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
477
|
+
tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
478
|
+
type: z.ZodLiteral<"builtin">;
|
|
479
|
+
name: z.ZodEnum<{
|
|
480
|
+
activate_skill: "activate_skill";
|
|
481
|
+
bash: "bash";
|
|
482
|
+
delete_memory: "delete_memory";
|
|
483
|
+
edit: "edit";
|
|
484
|
+
get_memory: "get_memory";
|
|
485
|
+
glob: "glob";
|
|
486
|
+
grep: "grep";
|
|
487
|
+
publish_artifacts: "publish_artifacts";
|
|
488
|
+
read: "read";
|
|
489
|
+
save_memory: "save_memory";
|
|
490
|
+
search_memories: "search_memories";
|
|
491
|
+
update_memory: "update_memory";
|
|
492
|
+
write: "write";
|
|
493
|
+
write_todos: "write_todos";
|
|
494
|
+
}>;
|
|
495
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
496
|
+
type: z.ZodLiteral<"mcp">;
|
|
497
|
+
connectionId: z.ZodString;
|
|
498
|
+
name: z.ZodString;
|
|
499
|
+
}, z.core.$strict>], "type">;
|
|
500
|
+
decision: z.ZodEnum<{
|
|
501
|
+
auto: "auto";
|
|
502
|
+
deny: "deny";
|
|
503
|
+
full: "full";
|
|
504
|
+
manual: "manual";
|
|
505
|
+
}>;
|
|
506
|
+
}, z.core.$strict>>>;
|
|
507
|
+
}, z.core.$strict>>;
|
|
508
|
+
name: z.ZodString;
|
|
509
|
+
model: z.ZodNullable<z.ZodString>;
|
|
510
|
+
thinkingLevel: z.ZodNullable<z.ZodString>;
|
|
511
|
+
providerId: z.ZodNullable<z.ZodString>;
|
|
512
|
+
autoCompaction: z.ZodBoolean;
|
|
513
|
+
compactionReserveTokens: z.ZodNumber;
|
|
514
|
+
memoryInjectionEnabled: z.ZodBoolean;
|
|
515
|
+
tools: z.ZodArray<z.ZodEnum<{
|
|
516
|
+
memory: "memory";
|
|
517
|
+
workspace: "workspace";
|
|
518
|
+
write_todos: "write_todos";
|
|
519
|
+
}>>;
|
|
520
|
+
instructions: z.ZodString;
|
|
521
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
522
|
+
mcpConnectionIds: z.ZodArray<z.ZodString>;
|
|
523
|
+
}, z.core.$strip>;
|
|
342
524
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
343
525
|
turnId: z.ZodNullable<z.ZodString>;
|
|
344
526
|
status: z.ZodEnum<{
|
|
@@ -365,7 +547,101 @@ export declare const taskRunsListResponseSchema: z.ZodObject<{
|
|
|
365
547
|
taskId: z.ZodString;
|
|
366
548
|
tenantId: z.ZodString;
|
|
367
549
|
agentId: z.ZodString;
|
|
368
|
-
|
|
550
|
+
agentConfig: z.ZodObject<{
|
|
551
|
+
approvalInChat: z.ZodDefault<z.ZodObject<{
|
|
552
|
+
default: z.ZodEnum<{
|
|
553
|
+
auto: "auto";
|
|
554
|
+
deny: "deny";
|
|
555
|
+
full: "full";
|
|
556
|
+
manual: "manual";
|
|
557
|
+
}>;
|
|
558
|
+
overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
559
|
+
tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
560
|
+
type: z.ZodLiteral<"builtin">;
|
|
561
|
+
name: z.ZodEnum<{
|
|
562
|
+
activate_skill: "activate_skill";
|
|
563
|
+
bash: "bash";
|
|
564
|
+
delete_memory: "delete_memory";
|
|
565
|
+
edit: "edit";
|
|
566
|
+
get_memory: "get_memory";
|
|
567
|
+
glob: "glob";
|
|
568
|
+
grep: "grep";
|
|
569
|
+
publish_artifacts: "publish_artifacts";
|
|
570
|
+
read: "read";
|
|
571
|
+
save_memory: "save_memory";
|
|
572
|
+
search_memories: "search_memories";
|
|
573
|
+
update_memory: "update_memory";
|
|
574
|
+
write: "write";
|
|
575
|
+
write_todos: "write_todos";
|
|
576
|
+
}>;
|
|
577
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
578
|
+
type: z.ZodLiteral<"mcp">;
|
|
579
|
+
connectionId: z.ZodString;
|
|
580
|
+
name: z.ZodString;
|
|
581
|
+
}, z.core.$strict>], "type">;
|
|
582
|
+
decision: z.ZodEnum<{
|
|
583
|
+
auto: "auto";
|
|
584
|
+
deny: "deny";
|
|
585
|
+
full: "full";
|
|
586
|
+
manual: "manual";
|
|
587
|
+
}>;
|
|
588
|
+
}, z.core.$strict>>>;
|
|
589
|
+
}, z.core.$strict>>;
|
|
590
|
+
approvalInTasks: z.ZodDefault<z.ZodObject<{
|
|
591
|
+
default: z.ZodEnum<{
|
|
592
|
+
auto: "auto";
|
|
593
|
+
deny: "deny";
|
|
594
|
+
full: "full";
|
|
595
|
+
manual: "manual";
|
|
596
|
+
}>;
|
|
597
|
+
overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
598
|
+
tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
599
|
+
type: z.ZodLiteral<"builtin">;
|
|
600
|
+
name: z.ZodEnum<{
|
|
601
|
+
activate_skill: "activate_skill";
|
|
602
|
+
bash: "bash";
|
|
603
|
+
delete_memory: "delete_memory";
|
|
604
|
+
edit: "edit";
|
|
605
|
+
get_memory: "get_memory";
|
|
606
|
+
glob: "glob";
|
|
607
|
+
grep: "grep";
|
|
608
|
+
publish_artifacts: "publish_artifacts";
|
|
609
|
+
read: "read";
|
|
610
|
+
save_memory: "save_memory";
|
|
611
|
+
search_memories: "search_memories";
|
|
612
|
+
update_memory: "update_memory";
|
|
613
|
+
write: "write";
|
|
614
|
+
write_todos: "write_todos";
|
|
615
|
+
}>;
|
|
616
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
617
|
+
type: z.ZodLiteral<"mcp">;
|
|
618
|
+
connectionId: z.ZodString;
|
|
619
|
+
name: z.ZodString;
|
|
620
|
+
}, z.core.$strict>], "type">;
|
|
621
|
+
decision: z.ZodEnum<{
|
|
622
|
+
auto: "auto";
|
|
623
|
+
deny: "deny";
|
|
624
|
+
full: "full";
|
|
625
|
+
manual: "manual";
|
|
626
|
+
}>;
|
|
627
|
+
}, z.core.$strict>>>;
|
|
628
|
+
}, z.core.$strict>>;
|
|
629
|
+
name: z.ZodString;
|
|
630
|
+
model: z.ZodNullable<z.ZodString>;
|
|
631
|
+
thinkingLevel: z.ZodNullable<z.ZodString>;
|
|
632
|
+
providerId: z.ZodNullable<z.ZodString>;
|
|
633
|
+
autoCompaction: z.ZodBoolean;
|
|
634
|
+
compactionReserveTokens: z.ZodNumber;
|
|
635
|
+
memoryInjectionEnabled: z.ZodBoolean;
|
|
636
|
+
tools: z.ZodArray<z.ZodEnum<{
|
|
637
|
+
memory: "memory";
|
|
638
|
+
workspace: "workspace";
|
|
639
|
+
write_todos: "write_todos";
|
|
640
|
+
}>>;
|
|
641
|
+
instructions: z.ZodString;
|
|
642
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
643
|
+
mcpConnectionIds: z.ZodArray<z.ZodString>;
|
|
644
|
+
}, z.core.$strip>;
|
|
369
645
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
370
646
|
turnId: z.ZodNullable<z.ZodString>;
|
|
371
647
|
status: z.ZodEnum<{
|
|
@@ -393,7 +669,6 @@ export declare const createTaskResponseSchema: z.ZodObject<{
|
|
|
393
669
|
id: z.ZodString;
|
|
394
670
|
tenantId: z.ZodString;
|
|
395
671
|
agentId: z.ZodString;
|
|
396
|
-
agentVersion: z.ZodNullable<z.ZodNumber>;
|
|
397
672
|
name: z.ZodString;
|
|
398
673
|
prompt: z.ZodString;
|
|
399
674
|
schedule: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -4,7 +4,7 @@ import { paginatedResponseSchema } from "../api.js";
|
|
|
4
4
|
import { agentIdSchema, sessionIdSchema, taskIdSchema, taskRunIdSchema, tenantIdSchema, turnIdSchema, } from "../ids.js";
|
|
5
5
|
import { MAX_TASK_NAME_LENGTH, MAX_TASK_PROMPT_LENGTH, MIN_TASK_INTERVAL_MS, } from "../limitations.js";
|
|
6
6
|
import { atLeastOneFieldMessage, hasObjectKeys } from "../utils.js";
|
|
7
|
-
import {
|
|
7
|
+
import { agentConfigSchema } from "./agents.js";
|
|
8
8
|
import { metadataSchema, userIdSchema } from "./attribution.js";
|
|
9
9
|
import { sessionMessagesResponseSchema } from "./sessions.js";
|
|
10
10
|
/**
|
|
@@ -113,7 +113,6 @@ const taskPromptSchema = z.string().trim().min(1).max(MAX_TASK_PROMPT_LENGTH);
|
|
|
113
113
|
export const createTaskBodySchema = z
|
|
114
114
|
.object({
|
|
115
115
|
agentId: agentIdSchema,
|
|
116
|
-
agentVersion: agentVersionNumberSchema.nullable().default(null),
|
|
117
116
|
name: taskNameSchema,
|
|
118
117
|
prompt: taskPromptSchema,
|
|
119
118
|
schedule: taskScheduleInputSchema.nullable().default(null),
|
|
@@ -127,7 +126,6 @@ export const createTaskBodySchema = z
|
|
|
127
126
|
// `PATCH /v1/tasks/{taskId}` — `agentId` and `userId` are immutable.
|
|
128
127
|
export const updateTaskBodySchema = z
|
|
129
128
|
.object({
|
|
130
|
-
agentVersion: agentVersionNumberSchema.nullable().optional(),
|
|
131
129
|
name: taskNameSchema.optional(),
|
|
132
130
|
prompt: taskPromptSchema.optional(),
|
|
133
131
|
schedule: taskScheduleInputSchema.nullable().optional(),
|
|
@@ -173,7 +171,6 @@ export const taskSchema = z
|
|
|
173
171
|
id: taskIdSchema,
|
|
174
172
|
tenantId: tenantIdSchema,
|
|
175
173
|
agentId: agentIdSchema,
|
|
176
|
-
agentVersion: agentVersionNumberSchema.nullable(),
|
|
177
174
|
name: taskNameSchema,
|
|
178
175
|
prompt: taskPromptSchema,
|
|
179
176
|
schedule: taskScheduleResponseSchema.nullable(),
|
|
@@ -218,7 +215,7 @@ export const taskRunSchema = z
|
|
|
218
215
|
taskId: taskIdSchema,
|
|
219
216
|
tenantId: tenantIdSchema,
|
|
220
217
|
agentId: agentIdSchema,
|
|
221
|
-
|
|
218
|
+
agentConfig: agentConfigSchema,
|
|
222
219
|
sessionId: sessionIdSchema.nullable(),
|
|
223
220
|
turnId: turnIdSchema.nullable(),
|
|
224
221
|
status: taskRunStatusSchema,
|
|
@@ -3,7 +3,7 @@ export { receivedApiErrorResponseSchema } from "./api.ts";
|
|
|
3
3
|
export type { ApprovalDecision, ApprovalPolicy, ToolExecutionReference, ToolReference, } from "./entities/agent-approval.ts";
|
|
4
4
|
export { approvalDecisionSchema, approvalPolicySchema, toolExecutionReferenceSchema, toolReferenceSchema, } from "./entities/agent-approval.ts";
|
|
5
5
|
export { chatFunctionNameSchema } from "./entities/agent-tools.ts";
|
|
6
|
-
export { agentResponseSchema, agentSchema, agentStatusSchema, agentsListQuerySchema, agentsResponseSchema,
|
|
6
|
+
export { agentConfigSchema, agentResponseSchema, agentSchema, agentStatusSchema, agentsListQuerySchema, agentsResponseSchema, createAgentBodySchema, updateAgentBodySchema, } from "./entities/agents.ts";
|
|
7
7
|
export { artifactDownloadUrlResponseSchema, artifactListItemSchema, artifactsListResponseSchema, } from "./entities/artifacts.ts";
|
|
8
8
|
export { attributionCreateInputSchema, metadataSchema, } from "./entities/attribution.ts";
|
|
9
9
|
export type { ChatFunctionCallEvent, ChatFunctionDefinition, ChatFunctionDefinitions, ChatFunctionOutcome, ClaimChatFunctionBody, PromptVariables, ResolveChatFunctionBody, UsageSummary, } from "./entities/chat.ts";
|
|
@@ -14,8 +14,10 @@ export { createMemoryBodySchema, memoriesListResponseSchema, memoryResponseSchem
|
|
|
14
14
|
export { createMerchantConnectionBodySchema, merchantBindingResponseSchema, merchantBindingsResponseSchema, merchantConnectionResponseSchema, merchantConnectionSchema, merchantConnectionStatusSchema, merchantCustomerBindingSchema, merchantEnvironmentSchema, merchantGuardSchema, merchantProviderSchema, merchantUsageEventNextAction, merchantUsageEventNextActionSchema, merchantUsageEventSchema, merchantUsageEventStatusSchema, merchantUsageEventsResponseSchema, merchantUsageSummaryQuerySchema, merchantUsageSummaryResponseSchema, merchantUsageSummarySchema, merchantWorkflowIssueSchema, updateMerchantConnectionBodySchema, upsertMerchantBindingBodySchema, } from "./entities/merchant.ts";
|
|
15
15
|
export { createPromptBodySchema, parsePromptVariables, promptResponseSchema, promptSchema, promptsListQuerySchema, promptsResponseSchema, promptTemplateSchema, renderPromptTemplate, updatePromptBodySchema, } from "./entities/prompts.ts";
|
|
16
16
|
export { createProviderBodySchema, providerListItemSchema, providerModelsResponseSchema, providerResponseSchema, providersResponseSchema, providerTypeSchema, thinkingLevelsResponseSchema, updateProviderBodySchema, } from "./entities/providers.ts";
|
|
17
|
+
export type { ResumeSessionInputsResponse, RunSessionInputsBody, SessionActivity, SessionInput, SessionInputMode, SessionInputResponse, SessionInputState, SessionInputsQuery, SessionInputsResponse, StopSessionBody, StopSessionResponse, SubmitSessionInputBody, } from "./entities/session-inputs.ts";
|
|
18
|
+
export { resumeSessionInputsResponseSchema, runSessionInputsBodySchema, sessionActivitySchema, sessionInputModeSchema, sessionInputRequestIdSchema, sessionInputResponseSchema, sessionInputSchema, sessionInputStateSchema, sessionInputsQuerySchema, sessionInputsResponseSchema, stopSessionBodySchema, stopSessionResponseSchema, submitSessionInputBodySchema, } from "./entities/session-inputs.ts";
|
|
17
19
|
export type { ToolApprovalDecisionResponse, ToolApprovalsResponse, } from "./entities/sessions.ts";
|
|
18
|
-
export { decideToolApprovalBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionResponseSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, } from "./entities/sessions.ts";
|
|
20
|
+
export { decideToolApprovalBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionResponseSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, } from "./entities/sessions.ts";
|
|
19
21
|
export { copySkillBodySchema, createSkillBodySchema, skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "./entities/skills.ts";
|
|
20
22
|
export { createTaskBodySchema, createTaskResponseSchema, createTaskRunBodySchema, createTaskRunResponseSchema, taskCronConfigSchema, taskIntervalConfigSchema, taskListItemSchema, taskOnceConfigSchema, taskResponseSchema, taskRunMessagesResponseSchema, taskRunResponseSchema, taskRunSchema, taskRunStatusSchema, taskRunsListResponseSchema, taskScheduleInputSchema, taskScheduleKindSchema, taskSchema, tasksListResponseSchema, updateTaskBodySchema, } from "./entities/tasks.ts";
|
|
21
23
|
export { quotaSchema, subscriptionStatusSchema, tenantDeletionSchema, tenantResponseSchema, tenantSchema, tenantSettingsResponseSchema, updateTenantSettingsBodySchema, } from "./entities/tenants.ts";
|
package/dist/contracts/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export { receivedApiErrorResponseSchema } from "./api.js";
|
|
4
4
|
export { approvalDecisionSchema, approvalPolicySchema, toolExecutionReferenceSchema, toolReferenceSchema, } from "./entities/agent-approval.js";
|
|
5
5
|
export { chatFunctionNameSchema } from "./entities/agent-tools.js";
|
|
6
|
-
export { agentResponseSchema, agentSchema, agentStatusSchema, agentsListQuerySchema, agentsResponseSchema,
|
|
6
|
+
export { agentConfigSchema, agentResponseSchema, agentSchema, agentStatusSchema, agentsListQuerySchema, agentsResponseSchema, createAgentBodySchema, updateAgentBodySchema, } from "./entities/agents.js";
|
|
7
7
|
export { artifactDownloadUrlResponseSchema, artifactListItemSchema, artifactsListResponseSchema, } from "./entities/artifacts.js";
|
|
8
8
|
export { attributionCreateInputSchema, metadataSchema, } from "./entities/attribution.js";
|
|
9
9
|
export { blazingAgentsChatMessageMetadataSchema, chatFunctionCallEventSchema, chatFunctionDefinitionSchema, chatFunctionDefinitionsSchema, chatFunctionOutcomeSchema, chatModeSchema, chatRequestBodySchema, chatTriggerSchema, claimChatFunctionBodySchema, claimChatFunctionResponseSchema, generationRequestBodySchema, jsonSchemaShapeSchema, MAX_CHAT_FUNCTION_DEFINITIONS_BYTES, MAX_CHAT_FUNCTION_PAYLOAD_BYTES, MAX_CHAT_FUNCTIONS, promptVariablesSchema, resolveChatFunctionBodySchema, resolveChatFunctionResponseSchema, resumeToolApprovalContinuationBodySchema, usageSummarySchema, } from "./entities/chat.js";
|
|
@@ -13,7 +13,8 @@ export { createMemoryBodySchema, memoriesListResponseSchema, memoryResponseSchem
|
|
|
13
13
|
export { createMerchantConnectionBodySchema, merchantBindingResponseSchema, merchantBindingsResponseSchema, merchantConnectionResponseSchema, merchantConnectionSchema, merchantConnectionStatusSchema, merchantCustomerBindingSchema, merchantEnvironmentSchema, merchantGuardSchema, merchantProviderSchema, merchantUsageEventNextAction, merchantUsageEventNextActionSchema, merchantUsageEventSchema, merchantUsageEventStatusSchema, merchantUsageEventsResponseSchema, merchantUsageSummaryQuerySchema, merchantUsageSummaryResponseSchema, merchantUsageSummarySchema, merchantWorkflowIssueSchema, updateMerchantConnectionBodySchema, upsertMerchantBindingBodySchema, } from "./entities/merchant.js";
|
|
14
14
|
export { createPromptBodySchema, parsePromptVariables, promptResponseSchema, promptSchema, promptsListQuerySchema, promptsResponseSchema, promptTemplateSchema, renderPromptTemplate, updatePromptBodySchema, } from "./entities/prompts.js";
|
|
15
15
|
export { createProviderBodySchema, providerListItemSchema, providerModelsResponseSchema, providerResponseSchema, providersResponseSchema, providerTypeSchema, thinkingLevelsResponseSchema, updateProviderBodySchema, } from "./entities/providers.js";
|
|
16
|
-
export {
|
|
16
|
+
export { resumeSessionInputsResponseSchema, runSessionInputsBodySchema, sessionActivitySchema, sessionInputModeSchema, sessionInputRequestIdSchema, sessionInputResponseSchema, sessionInputSchema, sessionInputStateSchema, sessionInputsQuerySchema, sessionInputsResponseSchema, stopSessionBodySchema, stopSessionResponseSchema, submitSessionInputBodySchema, } from "./entities/session-inputs.js";
|
|
17
|
+
export { decideToolApprovalBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionResponseSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, } from "./entities/sessions.js";
|
|
17
18
|
export { copySkillBodySchema, createSkillBodySchema, skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "./entities/skills.js";
|
|
18
19
|
export { createTaskBodySchema, createTaskResponseSchema, createTaskRunBodySchema, createTaskRunResponseSchema, taskCronConfigSchema, taskIntervalConfigSchema, taskListItemSchema, taskOnceConfigSchema, taskResponseSchema, taskRunMessagesResponseSchema, taskRunResponseSchema, taskRunSchema, taskRunStatusSchema, taskRunsListResponseSchema, taskScheduleInputSchema, taskScheduleKindSchema, taskSchema, tasksListResponseSchema, updateTaskBodySchema, } from "./entities/tasks.js";
|
|
19
20
|
export { quotaSchema, subscriptionStatusSchema, tenantDeletionSchema, tenantResponseSchema, tenantSchema, tenantSettingsResponseSchema, updateTenantSettingsBodySchema, } from "./entities/tenants.js";
|
|
@@ -74,8 +74,6 @@ export declare const MAX_AGENT_NAME_LENGTH = 80;
|
|
|
74
74
|
export declare const DEFAULT_AGENTS_LIST_LIMIT = 50;
|
|
75
75
|
export declare const MAX_AGENTS_LIST_LIMIT = 100;
|
|
76
76
|
export declare const MAX_AGENT_INSTRUCTIONS_LENGTH = 3000;
|
|
77
|
-
export declare const DEFAULT_AGENT_VERSIONS_LIST_LIMIT = 50;
|
|
78
|
-
export declare const MAX_AGENT_VERSIONS_LIST_LIMIT = 200;
|
|
79
77
|
/**
|
|
80
78
|
* Artifacts — 10 MiB per file, 10 publications per Tool call, and 100
|
|
81
79
|
* Artifacts per Session.
|
|
@@ -75,8 +75,6 @@ export const MAX_AGENT_NAME_LENGTH = 80;
|
|
|
75
75
|
export const DEFAULT_AGENTS_LIST_LIMIT = 50;
|
|
76
76
|
export const MAX_AGENTS_LIST_LIMIT = 100;
|
|
77
77
|
export const MAX_AGENT_INSTRUCTIONS_LENGTH = 3000;
|
|
78
|
-
export const DEFAULT_AGENT_VERSIONS_LIST_LIMIT = 50;
|
|
79
|
-
export const MAX_AGENT_VERSIONS_LIST_LIMIT = 200;
|
|
80
78
|
/**
|
|
81
79
|
* Artifacts — 10 MiB per file, 10 publications per Tool call, and 100
|
|
82
80
|
* Artifacts per Session.
|
|
@@ -11,7 +11,6 @@ export type BlazingAgentsDirectChatTransportOptions = {
|
|
|
11
11
|
onSessionId?: (sessionId: string) => Promise<void> | void;
|
|
12
12
|
sessionId?: string;
|
|
13
13
|
userId?: string;
|
|
14
|
-
version?: number;
|
|
15
14
|
} & ({
|
|
16
15
|
promptId: string;
|
|
17
16
|
variables?: Record<string, string>;
|
|
@@ -23,6 +22,13 @@ export type BlazingAgentsDirectChatTransportOptions = {
|
|
|
23
22
|
export declare class BlazingAgentsDirectChatTransport<UI_MESSAGE extends UIMessage = UIMessage> extends DefaultChatTransport<UI_MESSAGE> {
|
|
24
23
|
#private;
|
|
25
24
|
constructor(options: BlazingAgentsDirectChatTransportOptions);
|
|
25
|
+
joinInputTurn(input: {
|
|
26
|
+
turnId: string;
|
|
27
|
+
abortSignal?: AbortSignal;
|
|
28
|
+
}): Promise<ReadableStream<import("ai").UIMessageChunk<unknown, import("ai").UIDataTypes>>>;
|
|
29
|
+
runInputs(input?: {
|
|
30
|
+
abortSignal?: AbortSignal;
|
|
31
|
+
}): Promise<ReadableStream<import("ai").UIMessageChunk<unknown, import("ai").UIDataTypes>>>;
|
|
26
32
|
sendMessages(input: Parameters<ChatTransport<UI_MESSAGE>["sendMessages"]>[0]): Promise<ReadableStream<import("ai").UIMessageChunk<unknown, import("ai").UIDataTypes>>>;
|
|
27
33
|
reconnectToStream(_input: Parameters<ChatTransport<UI_MESSAGE>["reconnectToStream"]>[0]): Promise<ReadableStream<import("ai").UIMessageChunk<unknown, import("ai").UIDataTypes>> | null>;
|
|
28
34
|
}
|
|
@@ -13,6 +13,32 @@ export class BlazingAgentsDirectChatTransport extends DefaultChatTransport {
|
|
|
13
13
|
? undefined
|
|
14
14
|
: sessionIdSchema.parse(options.sessionId);
|
|
15
15
|
}
|
|
16
|
+
async joinInputTurn(input) {
|
|
17
|
+
if (this.#sessionId === undefined) {
|
|
18
|
+
throw new Error("Input Turn attachment requires an existing Session.");
|
|
19
|
+
}
|
|
20
|
+
const client = await this.#options.getClient();
|
|
21
|
+
const result = await client.sessions.joinInputTurn({
|
|
22
|
+
...input,
|
|
23
|
+
agentId: this.#options.agentId,
|
|
24
|
+
sessionId: this.#sessionId,
|
|
25
|
+
functions: this.#options.functions,
|
|
26
|
+
});
|
|
27
|
+
return this.processResponseStream(result.toStream());
|
|
28
|
+
}
|
|
29
|
+
async runInputs(input = {}) {
|
|
30
|
+
if (this.#sessionId === undefined) {
|
|
31
|
+
throw new Error("Input batch admission requires an existing Session.");
|
|
32
|
+
}
|
|
33
|
+
const client = await this.#options.getClient();
|
|
34
|
+
const result = await client.sessions.runInputs({
|
|
35
|
+
...input,
|
|
36
|
+
agentId: this.#options.agentId,
|
|
37
|
+
sessionId: this.#sessionId,
|
|
38
|
+
functions: this.#options.functions,
|
|
39
|
+
});
|
|
40
|
+
return this.processResponseStream(result.toStream());
|
|
41
|
+
}
|
|
16
42
|
async sendMessages(input) {
|
|
17
43
|
if (input.trigger === "regenerate-message" && !this.#sessionId) {
|
|
18
44
|
throw new Error("Regeneration requires an existing Session.");
|
|
@@ -36,7 +62,6 @@ export class BlazingAgentsDirectChatTransport extends DefaultChatTransport {
|
|
|
36
62
|
const create = {
|
|
37
63
|
...common,
|
|
38
64
|
trigger: "submit-message",
|
|
39
|
-
version: this.#options.version,
|
|
40
65
|
userId: this.#options.userId,
|
|
41
66
|
metadata: this.#options.metadata,
|
|
42
67
|
};
|
package/dist/generation.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export declare function resumeChat(config: HttpConfig, input: ResumeChatInput):
|
|
|
6
6
|
* bodies pass through so the stream result reports them as `stream_error`.
|
|
7
7
|
*/
|
|
8
8
|
export declare function withFilteredBody(response: Response, filter: (body: ReadableStream<Uint8Array>) => ReadableStream<Uint8Array>): Response;
|
|
9
|
-
export declare function buildTerminalStreamResult(response: Response, resourceName: string): TerminalStreamResult;
|
|
9
|
+
export declare function buildTerminalStreamResult(response: Response, resourceName: string, filter?: (body: ReadableStream<Uint8Array>) => ReadableStream<Uint8Array>): TerminalStreamResult;
|
|
10
10
|
export declare function completion(config: HttpConfig, input: CompletionInput): Promise<CompletionResult>;
|
|
11
11
|
export declare function objectGeneration(config: HttpConfig, input: ObjectInput): Promise<ObjectResult>;
|
package/dist/generation.js
CHANGED
|
@@ -79,10 +79,6 @@ function buildChatBody(input) {
|
|
|
79
79
|
if (input.messageId !== undefined) {
|
|
80
80
|
base.messageId = input.messageId;
|
|
81
81
|
}
|
|
82
|
-
// Stryker disable next-line ConditionalExpression: JSON serialization omits an undefined Version Pin.
|
|
83
|
-
if (input.version !== undefined) {
|
|
84
|
-
base.version = input.version;
|
|
85
|
-
}
|
|
86
82
|
if ("message" in input) {
|
|
87
83
|
base.message = input.message;
|
|
88
84
|
}
|
|
@@ -163,7 +159,7 @@ function buildChatResult(config, response, resumeSessionId, dispatch) {
|
|
|
163
159
|
...buildTerminalStreamResult(streamResponse, "chat"),
|
|
164
160
|
};
|
|
165
161
|
}
|
|
166
|
-
export function buildTerminalStreamResult(response, resourceName) {
|
|
162
|
+
export function buildTerminalStreamResult(response, resourceName, filter) {
|
|
167
163
|
const requestId = response.headers.get("x-request-id") ?? undefined;
|
|
168
164
|
const location = response.headers.get("location");
|
|
169
165
|
let bodyClaimed = false;
|
|
@@ -178,7 +174,8 @@ export function buildTerminalStreamResult(response, resourceName) {
|
|
|
178
174
|
}, { cause });
|
|
179
175
|
}
|
|
180
176
|
bodyClaimed = true;
|
|
181
|
-
|
|
177
|
+
const body = responseBodyStream(response, requestId, resourceName);
|
|
178
|
+
return normalizeStreamErrors(filter ? filter(body) : body, requestId, `The ${resourceName} response stream failed.`);
|
|
182
179
|
};
|
|
183
180
|
return {
|
|
184
181
|
requestId,
|
|
@@ -286,10 +283,6 @@ function replacementResponseHeaders(requestId, location) {
|
|
|
286
283
|
}
|
|
287
284
|
function buildStatelessGenerationBody(input, output) {
|
|
288
285
|
const body = { output };
|
|
289
|
-
// Stryker disable next-line ConditionalExpression: JSON serialization omits an undefined Version Pin.
|
|
290
|
-
if (input.version !== undefined) {
|
|
291
|
-
body.version = input.version;
|
|
292
|
-
}
|
|
293
286
|
if ("prompt" in input) {
|
|
294
287
|
body.prompt = input.prompt;
|
|
295
288
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,14 +7,17 @@ export type { UIMessage } from "ai";
|
|
|
7
7
|
export { BlazingAgentsChatTransport, type BlazingAgentsChatTransportOptions, } from "./chat-transport.ts";
|
|
8
8
|
export { BlazingAgents } from "./client.ts";
|
|
9
9
|
export type { ApprovalDecision, ApprovalPolicy, ToolExecutionReference, ToolReference, } from "./contracts/entities/agent-approval.ts";
|
|
10
|
-
export type { Agent, AgentResponse, AgentsListQuery, AgentsResponse,
|
|
10
|
+
export type { Agent, AgentConfig, AgentResponse, AgentsListQuery, AgentsResponse, CreateAgentBody, UpdateAgentBody, } from "./contracts/entities/agents.ts";
|
|
11
|
+
export { agentConfigSchema } from "./contracts/entities/agents.ts";
|
|
11
12
|
export type { ArtifactDownloadUrlResponse, ArtifactListItem, ArtifactsListResponse, } from "./contracts/entities/artifacts.ts";
|
|
12
13
|
export type { ChatConfiguration, ChatConnection, ChatConnectionsResponse, ChatCredentials, ChatDeliveriesResponse, ChatDelivery, ChatDeliveryListStatus, ChatDeliveryStatus, ChatHealth, ChatIdentity, CreateChatConnectionBody, RotateChatConnectionBody, TenantChatDelivery, UpdateChatConnectionBody, } from "./contracts/entities/chat-connections.ts";
|
|
13
14
|
export type { CreateMcpConnectionBody, McpAttachmentResponse, McpAttachmentsResponse, McpConnectionAuthType, McpConnectionOauthConnectResponse, McpConnectionReconnectResult, McpConnectionResponse, McpConnectionStatus, McpConnectionTestResponse, ReconnectMcpConnectionBody, UpdateMcpAttachmentBody, UpdateMcpConnectionBody, } from "./contracts/entities/mcp-connections.ts";
|
|
14
15
|
export type { CreateMerchantConnectionBody, MerchantBindingResponse, MerchantBindingsResponse, MerchantConnection, MerchantConnectionResponse, MerchantCustomerBinding, MerchantGuard, MerchantProviderKind, MerchantUsageEvent, MerchantUsageEventResponse, MerchantUsageEventStatus, MerchantUsageEventsResponse, MerchantUsageSummary, MerchantUsageSummaryResponse, UpdateMerchantConnectionBody, UpsertMerchantBindingBody, } from "./contracts/entities/merchant.ts";
|
|
15
16
|
export type { CreatePromptBody, PromptResponse, PromptsListQuery, PromptsResponse, UpdatePromptBody, } from "./contracts/entities/prompts.ts";
|
|
16
17
|
export type { CreateProviderBody, ProviderListItem, ProviderModel, ProviderModelsResponse, ProviderResponse, ProvidersResponse, ProviderType, ThinkingLevelsResponse, UpdateProviderBody, } from "./contracts/entities/providers.ts";
|
|
17
|
-
export type {
|
|
18
|
+
export type { ResumeSessionInputsResponse, RunSessionInputsBody, SessionActivity, SessionInput, SessionInputMode, SessionInputResponse, SessionInputState, SessionInputsQuery, SessionInputsResponse, StopSessionBody, StopSessionResponse, SubmitSessionInputBody, } from "./contracts/entities/session-inputs.ts";
|
|
19
|
+
export type { SessionResponse, ToolApprovalDecisionResponse, ToolApprovalState, ToolApprovalsResponse, } from "./contracts/entities/sessions.ts";
|
|
20
|
+
export { sessionResponseSchema } from "./contracts/entities/sessions.ts";
|
|
18
21
|
export type { CreateSkillBody, Skill, SkillArchiveType, SkillCopyResult, SkillCopyResults, SkillDetail, SkillFile, SkillsListResponse, } from "./contracts/entities/skills.ts";
|
|
19
22
|
export type { SessionUsageQuery, SessionUsageResponse, UsageBucket, UsageOverviewQuery, UsageOverviewResponse, UsageTotals, } from "./contracts/entities/usage.ts";
|
|
20
23
|
export type { CreateWorkspaceBody, UpdateWorkspaceBody, Workspace, WorkspaceNetworkPolicy, WorkspacesListResponse, } from "./contracts/entities/workspaces.ts";
|
|
@@ -22,4 +25,4 @@ export { BlazingAgentsDirectChatTransport, type BlazingAgentsDirectChatTransport
|
|
|
22
25
|
export { BlazingAgentsError } from "./errors.ts";
|
|
23
26
|
export { type ChatFunction, type ChatFunctionContext, type ChatFunctions, defineFunction, } from "./functions.ts";
|
|
24
27
|
export { createChatRelay, createCompletionRelay, type RelayContext, type SessionOwnershipStore, } from "./relay.ts";
|
|
25
|
-
export type { AgentClient, AgentSkillsResource, AgentsListOptions, AgentsResource,
|
|
28
|
+
export type { AgentClient, AgentSkillsResource, AgentsListOptions, AgentsResource, ArtifactsResource, AttributionInput, BlazingAgentsErrorCode, BlazingAgentsOptions, BlazingAgentsRequestOptions, BlazingAgentsUIMessage, BlazingAgentsUIMessageChunk, ChatConnectionsResource, ChatDeliveriesListOptions, ChatDeliveriesResource, ChatInput, ChatMessageInput, ChatPromptInput, ChatResult, ChatTrigger, CompletionInput, CompletionPromptIdInput, CompletionPromptInput, CompletionResult, KnownBlazingAgentsErrorCode, LatestSessionsListOptions, McpConnectionsResource, MemoriesListOptions, MemoriesResource, MerchantBindingsListOptions, MerchantBindingsResource, MerchantConnectionResource, MerchantUsageEventsListOptions, MerchantUsageEventsResource, ObjectInput, ObjectPromptIdInput, ObjectPromptInput, ObjectResult, PromptsResource, ProvidersResource, ResourceRequestOptions, ResponseObservation, ResumeChatInput, SessionsResource, SkillsListOptions, TasksResource, TenantResource, TerminalStreamResult, UsageResource, UserClient, WorkspacesListOptions, WorkspacesResource, } from "./types.ts";
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
// biome-ignore lint/performance/noBarrelFile: package entry point
|
|
7
7
|
export { BlazingAgentsChatTransport, } from "./chat-transport.js";
|
|
8
8
|
export { BlazingAgents } from "./client.js";
|
|
9
|
+
export { agentConfigSchema } from "./contracts/entities/agents.js";
|
|
10
|
+
export { sessionResponseSchema } from "./contracts/entities/sessions.js";
|
|
9
11
|
export { BlazingAgentsDirectChatTransport, } from "./direct-chat-transport.js";
|
|
10
12
|
export { BlazingAgentsError } from "./errors.js";
|
|
11
13
|
export { defineFunction, } from "./functions.js";
|
package/dist/relay.d.ts
CHANGED