@blazingagents/sdk 0.16.0 → 0.17.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.
@@ -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
- agentVersion: z.ZodNumber;
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
- agentVersion: z.ZodNumber;
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
- agentVersion: z.ZodNumber;
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 { agentVersionNumberSchema } from "./agents.js";
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
- agentVersion: agentVersionNumberSchema,
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, agentVersionSchema, agentVersionsResponseSchema, createAgentBodySchema, updateAgentBodySchema, } from "./entities/agents.ts";
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";
@@ -15,7 +15,7 @@ export { createMerchantConnectionBodySchema, merchantBindingResponseSchema, merc
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
17
  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";
18
+ export { decideToolApprovalBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionResponseSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, } from "./entities/sessions.ts";
19
19
  export { copySkillBodySchema, createSkillBodySchema, skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "./entities/skills.ts";
20
20
  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
21
  export { quotaSchema, subscriptionStatusSchema, tenantDeletionSchema, tenantResponseSchema, tenantSchema, tenantSettingsResponseSchema, updateTenantSettingsBodySchema, } from "./entities/tenants.ts";
@@ -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, agentVersionSchema, agentVersionsResponseSchema, createAgentBodySchema, updateAgentBodySchema, } from "./entities/agents.js";
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,7 @@ 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 { decideToolApprovalBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionResponseSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, } from "./entities/sessions.js";
16
+ export { decideToolApprovalBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionResponseSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, } from "./entities/sessions.js";
17
17
  export { copySkillBodySchema, createSkillBodySchema, skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "./entities/skills.js";
18
18
  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
19
  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>;
@@ -36,7 +36,6 @@ export class BlazingAgentsDirectChatTransport extends DefaultChatTransport {
36
36
  const create = {
37
37
  ...common,
38
38
  trigger: "submit-message",
39
- version: this.#options.version,
40
39
  userId: this.#options.userId,
41
40
  metadata: this.#options.metadata,
42
41
  };
@@ -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
  }
@@ -286,10 +282,6 @@ function replacementResponseHeaders(requestId, location) {
286
282
  }
287
283
  function buildStatelessGenerationBody(input, output) {
288
284
  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
285
  if ("prompt" in input) {
294
286
  body.prompt = input.prompt;
295
287
  }
package/dist/index.d.ts CHANGED
@@ -7,14 +7,16 @@ 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, AgentVersion, AgentVersionsListQuery, AgentVersionsResponse, CreateAgentBody, UpdateAgentBody, } from "./contracts/entities/agents.ts";
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 { ToolApprovalDecisionResponse, ToolApprovalState, ToolApprovalsResponse, } from "./contracts/entities/sessions.ts";
18
+ export type { SessionResponse, ToolApprovalDecisionResponse, ToolApprovalState, ToolApprovalsResponse, } from "./contracts/entities/sessions.ts";
19
+ export { sessionResponseSchema } from "./contracts/entities/sessions.ts";
18
20
  export type { CreateSkillBody, Skill, SkillArchiveType, SkillCopyResult, SkillCopyResults, SkillDetail, SkillFile, SkillsListResponse, } from "./contracts/entities/skills.ts";
19
21
  export type { SessionUsageQuery, SessionUsageResponse, UsageBucket, UsageOverviewQuery, UsageOverviewResponse, UsageTotals, } from "./contracts/entities/usage.ts";
20
22
  export type { CreateWorkspaceBody, UpdateWorkspaceBody, Workspace, WorkspaceNetworkPolicy, WorkspacesListResponse, } from "./contracts/entities/workspaces.ts";
@@ -22,4 +24,4 @@ export { BlazingAgentsDirectChatTransport, type BlazingAgentsDirectChatTransport
22
24
  export { BlazingAgentsError } from "./errors.ts";
23
25
  export { type ChatFunction, type ChatFunctionContext, type ChatFunctions, defineFunction, } from "./functions.ts";
24
26
  export { createChatRelay, createCompletionRelay, type RelayContext, type SessionOwnershipStore, } from "./relay.ts";
25
- export type { AgentClient, AgentSkillsResource, AgentsListOptions, AgentsResource, AgentVersionsListOptions, 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";
27
+ 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
@@ -6,7 +6,6 @@ export interface RelayContext {
6
6
  functions?: ChatFunctions;
7
7
  metadata?: Record<string, unknown>;
8
8
  userId: string;
9
- version?: number;
10
9
  }
11
10
  export interface SessionOwnershipStore {
12
11
  ownerOf(sessionId: string): Promise<string | undefined>;
package/dist/relay.js CHANGED
@@ -57,7 +57,6 @@ export function createChatRelay(options) {
57
57
  ? {
58
58
  ...chatInput,
59
59
  trigger: "submit-message",
60
- version: context.version,
61
60
  }
62
61
  : {
63
62
  ...chatInput,
@@ -122,7 +121,6 @@ export function createCompletionRelay(options) {
122
121
  prompt: body.prompt,
123
122
  abortSignal: request.signal,
124
123
  userId: context.userId,
125
- version: context.version,
126
124
  });
127
125
  return result.toResponse();
128
126
  }
@@ -1,8 +1,7 @@
1
- import { agentResponseSchema, agentsResponseSchema, agentVersionSchema, agentVersionsResponseSchema, } from "../contracts/entities/agents.js";
1
+ import { agentResponseSchema, agentsResponseSchema, } from "../contracts/entities/agents.js";
2
2
  import { mcpAttachmentResponseSchema, mcpAttachmentsResponseSchema, } from "../contracts/entities/mcp-connections.js";
3
3
  import { requestJson } from "../http.js";
4
4
  export function createAgentsResource(config) {
5
- const getVersion = async ({ agentId, version, abortSignal, }) => requestJson(config, `/v1/agents/${agentId}/versions/${version}`, { signal: abortSignal }, agentVersionSchema);
6
5
  const update = async ({ agentId, abortSignal, ...body }) => requestJson(config, `/v1/agents/${agentId}`, {
7
6
  json: body,
8
7
  signal: abortSignal,
@@ -36,40 +35,9 @@ export function createAgentsResource(config) {
36
35
  async enable({ agentId, abortSignal }) {
37
36
  return await requestJson(config, `/v1/agents/${agentId}/enable`, { method: "POST", signal: abortSignal }, agentResponseSchema);
38
37
  },
39
- getVersion,
40
- async listVersions({ agentId, ...options }) {
41
- return await requestJson(config, `/v1/agents/${agentId}/versions`, {
42
- signal: options.abortSignal,
43
- query: { cursor: options.cursor, limit: options.limit },
44
- }, agentVersionsResponseSchema);
45
- },
46
38
  async listMcpAttachments({ agentId, abortSignal }) {
47
39
  return await requestJson(config, `/v1/agents/${agentId}/mcp-attachments`, { signal: abortSignal }, mcpAttachmentsResponseSchema);
48
40
  },
49
- async restoreVersion({ agentId, version: versionNumber, abortSignal }) {
50
- const version = await getVersion({
51
- agentId,
52
- version: versionNumber,
53
- abortSignal,
54
- });
55
- return update({
56
- agentId,
57
- abortSignal,
58
- approvalInChat: version.approvalInChat,
59
- approvalInTasks: version.approvalInTasks,
60
- name: version.name,
61
- model: version.model,
62
- thinkingLevel: version.thinkingLevel,
63
- autoCompaction: version.autoCompaction,
64
- compactionReserveTokens: version.compactionReserveTokens,
65
- providerId: version.providerId,
66
- memoryInjectionEnabled: version.memoryInjectionEnabled,
67
- tools: version.tools,
68
- instructions: version.instructions,
69
- metadata: version.metadata,
70
- mcpConnectionIds: version.mcpConnectionIds,
71
- });
72
- },
73
41
  update,
74
42
  async updateMcpAttachment({ agentId, mcpConnectionId, abortSignal, ...body }) {
75
43
  return await requestJson(config, `/v1/agents/${agentId}/mcp-attachments/${mcpConnectionId}`, { json: body, method: "PATCH", signal: abortSignal }, mcpAttachmentResponseSchema);
@@ -36,7 +36,7 @@ export function createProvidersResource(config) {
36
36
  method: "DELETE",
37
37
  signal: abortSignal,
38
38
  query: {
39
- confirmVersionInvalidation: options.confirmVersionInvalidation,
39
+ confirmSnapshotInvalidation: options.confirmSnapshotInvalidation,
40
40
  },
41
41
  });
42
42
  },
@@ -1,6 +1,6 @@
1
1
  import type { HttpConfig, SessionsResource } from "../types.ts";
2
2
  /**
3
- * `client.sessions` — list/get-messages/delete over
3
+ * `client.sessions` reads, paginates, and deletes Sessions under
4
4
  * `/v1/agents/:agentId/sessions`. Pagination is manual: the SDK returns
5
5
  * the page as-is (`{ data, nextCursor }` verbatim); the caller passes
6
6
  * `nextCursor` back as `cursor` on the next call.