@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.
@@ -23,7 +23,6 @@ export declare const apiErrorCodeSchema: z.ZodEnum<{
23
23
  agent_disabled: "agent_disabled";
24
24
  agent_mcp_connection_not_found: "agent_mcp_connection_not_found";
25
25
  agent_mcp_connections_invalid: "agent_mcp_connections_invalid";
26
- agent_version_not_found: "agent_version_not_found";
27
26
  api_key_limit_reached: "api_key_limit_reached";
28
27
  artifact_session_cap_reached: "artifact_session_cap_reached";
29
28
  chat_webhook_conflict: "chat_webhook_conflict";
@@ -32,6 +31,8 @@ export declare const apiErrorCodeSchema: z.ZodEnum<{
32
31
  forbidden: "forbidden";
33
32
  function_call_conflict: "function_call_conflict";
34
33
  idempotency_conflict: "idempotency_conflict";
34
+ input_idempotency_conflict: "input_idempotency_conflict";
35
+ input_not_pending: "input_not_pending";
35
36
  internal: "internal";
36
37
  invalid_cursor: "invalid_cursor";
37
38
  invalid_request: "invalid_request";
@@ -102,7 +103,6 @@ export declare const apiErrorSchema: z.ZodObject<{
102
103
  agent_disabled: "agent_disabled";
103
104
  agent_mcp_connection_not_found: "agent_mcp_connection_not_found";
104
105
  agent_mcp_connections_invalid: "agent_mcp_connections_invalid";
105
- agent_version_not_found: "agent_version_not_found";
106
106
  api_key_limit_reached: "api_key_limit_reached";
107
107
  artifact_session_cap_reached: "artifact_session_cap_reached";
108
108
  chat_webhook_conflict: "chat_webhook_conflict";
@@ -111,6 +111,8 @@ export declare const apiErrorSchema: z.ZodObject<{
111
111
  forbidden: "forbidden";
112
112
  function_call_conflict: "function_call_conflict";
113
113
  idempotency_conflict: "idempotency_conflict";
114
+ input_idempotency_conflict: "input_idempotency_conflict";
115
+ input_not_pending: "input_not_pending";
114
116
  internal: "internal";
115
117
  invalid_cursor: "invalid_cursor";
116
118
  invalid_request: "invalid_request";
@@ -186,7 +188,6 @@ export declare const apiErrorResponseSchema: z.ZodObject<{
186
188
  agent_disabled: "agent_disabled";
187
189
  agent_mcp_connection_not_found: "agent_mcp_connection_not_found";
188
190
  agent_mcp_connections_invalid: "agent_mcp_connections_invalid";
189
- agent_version_not_found: "agent_version_not_found";
190
191
  api_key_limit_reached: "api_key_limit_reached";
191
192
  artifact_session_cap_reached: "artifact_session_cap_reached";
192
193
  chat_webhook_conflict: "chat_webhook_conflict";
@@ -195,6 +196,8 @@ export declare const apiErrorResponseSchema: z.ZodObject<{
195
196
  forbidden: "forbidden";
196
197
  function_call_conflict: "function_call_conflict";
197
198
  idempotency_conflict: "idempotency_conflict";
199
+ input_idempotency_conflict: "input_idempotency_conflict";
200
+ input_not_pending: "input_not_pending";
198
201
  internal: "internal";
199
202
  invalid_cursor: "invalid_cursor";
200
203
  invalid_request: "invalid_request";
@@ -19,6 +19,8 @@ export const apiErrorIssueSchema = z
19
19
  export const apiErrorCodeSchema = z.enum([
20
20
  "invalid_request",
21
21
  "idempotency_conflict",
22
+ "input_idempotency_conflict",
23
+ "input_not_pending",
22
24
  "validation_failed",
23
25
  "unauthorized",
24
26
  "forbidden",
@@ -32,7 +34,6 @@ export const apiErrorCodeSchema = z.enum([
32
34
  "checkout_evidence_mismatch",
33
35
  "agent_disabled",
34
36
  "admin_agent_managed",
35
- "agent_version_not_found",
36
37
  "agent_mcp_connection_not_found",
37
38
  "agent_mcp_connections_invalid",
38
39
  "provider_required",
@@ -8,7 +8,6 @@ export declare const agentToolsSchema: z.ZodArray<z.ZodEnum<{
8
8
  write_todos: "write_todos";
9
9
  }>>;
10
10
  export declare const agentMcpConnectionIdsSchema: z.ZodArray<z.ZodString>;
11
- export declare const agentVersionNumberSchema: z.ZodNumber;
12
11
  export declare const agentStatusSchema: z.ZodEnum<{
13
12
  active: "active";
14
13
  disabled: "disabled";
@@ -114,7 +113,6 @@ export declare const agentSchema: z.ZodObject<{
114
113
  avatarUrl: z.ZodNullable<z.ZodURL>;
115
114
  createdAt: z.ZodISODateTime;
116
115
  updatedAt: z.ZodISODateTime;
117
- version: z.ZodNumber;
118
116
  status: z.ZodEnum<{
119
117
  active: "active";
120
118
  disabled: "disabled";
@@ -222,7 +220,6 @@ export declare const agentsResponseSchema: z.ZodObject<{
222
220
  avatarUrl: z.ZodNullable<z.ZodURL>;
223
221
  createdAt: z.ZodISODateTime;
224
222
  updatedAt: z.ZodISODateTime;
225
- version: z.ZodNumber;
226
223
  status: z.ZodEnum<{
227
224
  active: "active";
228
225
  disabled: "disabled";
@@ -331,7 +328,6 @@ export declare const agentResponseSchema: z.ZodObject<{
331
328
  avatarUrl: z.ZodNullable<z.ZodURL>;
332
329
  createdAt: z.ZodISODateTime;
333
330
  updatedAt: z.ZodISODateTime;
334
- version: z.ZodNumber;
335
331
  status: z.ZodEnum<{
336
332
  active: "active";
337
333
  disabled: "disabled";
@@ -343,7 +339,7 @@ export declare const agentsListQuerySchema: z.ZodObject<{
343
339
  userId: z.ZodOptional<z.ZodString>;
344
340
  workspaceId: z.ZodOptional<z.ZodString>;
345
341
  }, z.core.$strict>;
346
- export declare const agentVersionSchema: z.ZodObject<{
342
+ export declare const agentConfigSchema: z.ZodObject<{
347
343
  approvalInChat: z.ZodDefault<z.ZodObject<{
348
344
  default: z.ZodEnum<{
349
345
  auto: "auto";
@@ -422,9 +418,6 @@ export declare const agentVersionSchema: z.ZodObject<{
422
418
  }>;
423
419
  }, z.core.$strict>>>;
424
420
  }, z.core.$strict>>;
425
- agentId: z.ZodString;
426
- tenantId: z.ZodString;
427
- version: z.ZodNumber;
428
421
  name: z.ZodString;
429
422
  model: z.ZodNullable<z.ZodString>;
430
423
  thinkingLevel: z.ZodNullable<z.ZodString>;
@@ -440,113 +433,6 @@ export declare const agentVersionSchema: z.ZodObject<{
440
433
  instructions: z.ZodString;
441
434
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
442
435
  mcpConnectionIds: z.ZodArray<z.ZodString>;
443
- createdAt: z.ZodISODateTime;
444
- }, z.core.$strip>;
445
- export declare const agentVersionsListQuerySchema: z.ZodObject<{
446
- cursor: z.ZodOptional<z.ZodString>;
447
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
448
- }, z.core.$strict>;
449
- export declare const agentVersionsResponseSchema: z.ZodObject<{
450
- data: z.ZodArray<z.ZodObject<{
451
- approvalInChat: z.ZodDefault<z.ZodObject<{
452
- default: z.ZodEnum<{
453
- auto: "auto";
454
- deny: "deny";
455
- full: "full";
456
- manual: "manual";
457
- }>;
458
- overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
459
- tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
460
- type: z.ZodLiteral<"builtin">;
461
- name: z.ZodEnum<{
462
- activate_skill: "activate_skill";
463
- bash: "bash";
464
- delete_memory: "delete_memory";
465
- edit: "edit";
466
- get_memory: "get_memory";
467
- glob: "glob";
468
- grep: "grep";
469
- publish_artifacts: "publish_artifacts";
470
- read: "read";
471
- save_memory: "save_memory";
472
- search_memories: "search_memories";
473
- update_memory: "update_memory";
474
- write: "write";
475
- write_todos: "write_todos";
476
- }>;
477
- }, z.core.$strict>, z.ZodObject<{
478
- type: z.ZodLiteral<"mcp">;
479
- connectionId: z.ZodString;
480
- name: z.ZodString;
481
- }, z.core.$strict>], "type">;
482
- decision: z.ZodEnum<{
483
- auto: "auto";
484
- deny: "deny";
485
- full: "full";
486
- manual: "manual";
487
- }>;
488
- }, z.core.$strict>>>;
489
- }, z.core.$strict>>;
490
- approvalInTasks: z.ZodDefault<z.ZodObject<{
491
- default: z.ZodEnum<{
492
- auto: "auto";
493
- deny: "deny";
494
- full: "full";
495
- manual: "manual";
496
- }>;
497
- overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
498
- tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
499
- type: z.ZodLiteral<"builtin">;
500
- name: z.ZodEnum<{
501
- activate_skill: "activate_skill";
502
- bash: "bash";
503
- delete_memory: "delete_memory";
504
- edit: "edit";
505
- get_memory: "get_memory";
506
- glob: "glob";
507
- grep: "grep";
508
- publish_artifacts: "publish_artifacts";
509
- read: "read";
510
- save_memory: "save_memory";
511
- search_memories: "search_memories";
512
- update_memory: "update_memory";
513
- write: "write";
514
- write_todos: "write_todos";
515
- }>;
516
- }, z.core.$strict>, z.ZodObject<{
517
- type: z.ZodLiteral<"mcp">;
518
- connectionId: z.ZodString;
519
- name: z.ZodString;
520
- }, z.core.$strict>], "type">;
521
- decision: z.ZodEnum<{
522
- auto: "auto";
523
- deny: "deny";
524
- full: "full";
525
- manual: "manual";
526
- }>;
527
- }, z.core.$strict>>>;
528
- }, z.core.$strict>>;
529
- agentId: z.ZodString;
530
- tenantId: z.ZodString;
531
- version: z.ZodNumber;
532
- name: z.ZodString;
533
- model: z.ZodNullable<z.ZodString>;
534
- thinkingLevel: z.ZodNullable<z.ZodString>;
535
- providerId: z.ZodNullable<z.ZodString>;
536
- autoCompaction: z.ZodBoolean;
537
- compactionReserveTokens: z.ZodNumber;
538
- memoryInjectionEnabled: z.ZodBoolean;
539
- tools: z.ZodArray<z.ZodEnum<{
540
- memory: "memory";
541
- workspace: "workspace";
542
- write_todos: "write_todos";
543
- }>>;
544
- instructions: z.ZodString;
545
- metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
546
- mcpConnectionIds: z.ZodArray<z.ZodString>;
547
- createdAt: z.ZodISODateTime;
548
- }, z.core.$strip>>;
549
- nextCursor: z.ZodNullable<z.ZodString>;
550
436
  }, z.core.$strip>;
551
437
  export declare const createAgentBodySchema: z.ZodObject<{
552
438
  approvalInChat: z.ZodDefault<z.ZodObject<{
@@ -745,9 +631,7 @@ export type Agent = z.infer<typeof agentSchema>;
745
631
  export type AgentsResponse = z.infer<typeof agentsResponseSchema>;
746
632
  export type AgentResponse = z.infer<typeof agentResponseSchema>;
747
633
  export type AgentsListQuery = z.infer<typeof agentsListQuerySchema>;
748
- export type AgentVersion = z.infer<typeof agentVersionSchema>;
634
+ export type AgentConfig = z.infer<typeof agentConfigSchema>;
749
635
  export type AgentStatus = z.infer<typeof agentStatusSchema>;
750
- export type AgentVersionsListQuery = z.infer<typeof agentVersionsListQuerySchema>;
751
- export type AgentVersionsResponse = z.infer<typeof agentVersionsResponseSchema>;
752
636
  export type CreateAgentBody = z.input<typeof createAgentBodySchema>;
753
637
  export type UpdateAgentBody = z.input<typeof updateAgentBodySchema>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { cursorSchema, paginatedResponseSchema } from "../api.js";
3
3
  import { agentIdSchema, mcpConnectionIdSchema, providerIdSchema, tenantIdSchema, workspaceIdSchema, } from "../ids.js";
4
- import { DEFAULT_AGENT_VERSIONS_LIST_LIMIT, DEFAULT_AGENTS_LIST_LIMIT, MAX_AGENT_INSTRUCTIONS_LENGTH, MAX_AGENT_NAME_LENGTH, MAX_AGENT_VERSIONS_LIST_LIMIT, MAX_AGENTS_LIST_LIMIT, MAX_MCP_CONNECTIONS_PER_AGENT, } from "../limitations.js";
4
+ import { DEFAULT_AGENTS_LIST_LIMIT, MAX_AGENT_INSTRUCTIONS_LENGTH, MAX_AGENT_NAME_LENGTH, MAX_AGENTS_LIST_LIMIT, MAX_MCP_CONNECTIONS_PER_AGENT, } from "../limitations.js";
5
5
  import { atLeastOneFieldMessage, hasObjectKeys, hasUniqueValues, } from "../utils.js";
6
6
  import { approvalPolicySchema } from "./agent-approval.js";
7
7
  import { agentToolGroupIds } from "./agent-tools.js";
@@ -33,11 +33,6 @@ export const agentMcpConnectionIdsSchema = z
33
33
  .refine(hasUniqueValues, {
34
34
  message: "MCP connection ids must be unique.",
35
35
  });
36
- export const agentVersionNumberSchema = z
37
- .number()
38
- .int()
39
- .min(1)
40
- .max(2_147_483_647);
41
36
  export const agentStatusSchema = z.enum(["active", "disabled"]);
42
37
  const providerModelPairMessage = "Provider and model must either both be set or both be null.";
43
38
  function hasProviderModelPair(input) {
@@ -69,7 +64,6 @@ export const agentSchema = z
69
64
  avatarUrl: z.url().nullable(),
70
65
  createdAt: z.iso.datetime({ offset: true }),
71
66
  updatedAt: z.iso.datetime({ offset: true }),
72
- version: agentVersionNumberSchema,
73
67
  status: agentStatusSchema,
74
68
  })
75
69
  .strip()
@@ -92,12 +86,9 @@ export const agentsListQuerySchema = z
92
86
  workspaceId: workspaceIdSchema.optional(),
93
87
  })
94
88
  .strict();
95
- export const agentVersionSchema = z
89
+ export const agentConfigSchema = z
96
90
  .object({
97
91
  ...approvalFields,
98
- agentId: agentIdSchema,
99
- tenantId: tenantIdSchema,
100
- version: agentVersionNumberSchema,
101
92
  name: agentSchema.shape.name,
102
93
  model: agentSchema.shape.model,
103
94
  thinkingLevel: agentSchema.shape.thinkingLevel,
@@ -109,25 +100,12 @@ export const agentVersionSchema = z
109
100
  instructions: agentSchema.shape.instructions,
110
101
  metadata: agentSchema.shape.metadata,
111
102
  mcpConnectionIds: agentSchema.shape.mcpConnectionIds,
112
- createdAt: agentSchema.shape.createdAt,
113
103
  })
114
104
  .strip()
115
105
  .refine(hasProviderModelPair, {
116
106
  message: providerModelPairMessage,
117
107
  path: ["providerId"],
118
108
  });
119
- export const agentVersionsListQuerySchema = z
120
- .object({
121
- cursor: cursorSchema.optional(),
122
- limit: z.coerce
123
- .number()
124
- .int()
125
- .min(1)
126
- .max(MAX_AGENT_VERSIONS_LIST_LIMIT)
127
- .default(DEFAULT_AGENT_VERSIONS_LIST_LIMIT),
128
- })
129
- .strict();
130
- export const agentVersionsResponseSchema = paginatedResponseSchema(agentVersionSchema);
131
109
  export const createAgentBodySchema = z
132
110
  .object({
133
111
  ...approvalFields,
@@ -19,7 +19,6 @@ export declare const chatTriggerSchema: z.ZodEnum<{
19
19
  */
20
20
  export declare const usageSummarySchema: z.ZodObject<{
21
21
  agentId: z.ZodString;
22
- agentVersion: z.ZodNumber;
23
22
  commitId: z.ZodString;
24
23
  completedAt: z.ZodISODateTime;
25
24
  durationMs: z.ZodNumber;
@@ -52,7 +51,6 @@ export declare const blazingAgentsChatMessageMetadataSchema: z.ZodObject<{
52
51
  blazingAgents: z.ZodObject<{
53
52
  usage: z.ZodObject<{
54
53
  agentId: z.ZodString;
55
- agentVersion: z.ZodNumber;
56
54
  commitId: z.ZodString;
57
55
  completedAt: z.ZodISODateTime;
58
56
  durationMs: z.ZodNumber;
@@ -183,7 +181,6 @@ export declare const chatRequestBodySchema: z.ZodObject<{
183
181
  "submit-message": "submit-message";
184
182
  }>>;
185
183
  messageId: z.ZodOptional<z.ZodString>;
186
- version: z.ZodOptional<z.ZodNumber>;
187
184
  userId: z.ZodDefault<z.ZodString>;
188
185
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
189
186
  functions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -196,7 +193,6 @@ export declare const chatRequestBodySchema: z.ZodObject<{
196
193
  variables?: Record<string, string> | undefined;
197
194
  trigger: "regenerate-message" | "submit-message";
198
195
  messageId?: string | undefined;
199
- version?: number | undefined;
200
196
  userId: string;
201
197
  metadata: Record<string, unknown>;
202
198
  functions?: Record<string, {
@@ -211,7 +207,6 @@ export declare const chatRequestBodySchema: z.ZodObject<{
211
207
  variables?: Record<string, string> | undefined;
212
208
  trigger?: "regenerate-message" | "submit-message" | undefined;
213
209
  messageId?: string | undefined;
214
- version?: number | undefined;
215
210
  userId?: string | undefined;
216
211
  metadata?: Record<string, unknown> | undefined;
217
212
  functions?: Record<string, {
@@ -224,7 +219,6 @@ export declare const chatRequestBodySchema: z.ZodObject<{
224
219
  variables?: Record<string, string> | undefined;
225
220
  trigger: "regenerate-message" | "submit-message";
226
221
  messageId?: string | undefined;
227
- version?: number | undefined;
228
222
  userId: string;
229
223
  metadata: Record<string, unknown>;
230
224
  functions?: Record<string, {
@@ -239,7 +233,6 @@ export declare const chatRequestBodySchema: z.ZodObject<{
239
233
  variables?: Record<string, string> | undefined;
240
234
  trigger?: "regenerate-message" | "submit-message" | undefined;
241
235
  messageId?: string | undefined;
242
- version?: number | undefined;
243
236
  userId?: string | undefined;
244
237
  metadata?: Record<string, unknown> | undefined;
245
238
  functions?: Record<string, {
@@ -262,7 +255,6 @@ export declare const generationRequestBodySchema: z.ZodObject<{
262
255
  type: z.ZodLiteral<"object">;
263
256
  schema: z.ZodCustom<z.core.JSONSchema.JSONSchema, z.core.JSONSchema.JSONSchema>;
264
257
  }, z.core.$strict>], "type">;
265
- version: z.ZodOptional<z.ZodNumber>;
266
258
  userId: z.ZodDefault<z.ZodString>;
267
259
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
268
260
  }, z.core.$strict> & z.ZodType<{
@@ -275,7 +267,6 @@ export declare const generationRequestBodySchema: z.ZodObject<{
275
267
  type: "object";
276
268
  schema: z.core.JSONSchema.JSONSchema;
277
269
  };
278
- version?: number | undefined;
279
270
  userId: string;
280
271
  metadata: Record<string, unknown>;
281
272
  } & ExclusivePromptInput<{
@@ -290,7 +281,6 @@ export declare const generationRequestBodySchema: z.ZodObject<{
290
281
  type: "object";
291
282
  schema: z.core.JSONSchema.JSONSchema;
292
283
  };
293
- version?: number | undefined;
294
284
  userId?: string | undefined;
295
285
  metadata?: Record<string, unknown> | undefined;
296
286
  }, z.core.$ZodTypeInternals<{
@@ -303,7 +293,6 @@ export declare const generationRequestBodySchema: z.ZodObject<{
303
293
  type: "object";
304
294
  schema: z.core.JSONSchema.JSONSchema;
305
295
  };
306
- version?: number | undefined;
307
296
  userId: string;
308
297
  metadata: Record<string, unknown>;
309
298
  } & ExclusivePromptInput<{
@@ -318,7 +307,6 @@ export declare const generationRequestBodySchema: z.ZodObject<{
318
307
  type: "object";
319
308
  schema: z.core.JSONSchema.JSONSchema;
320
309
  };
321
- version?: number | undefined;
322
310
  userId?: string | undefined;
323
311
  metadata?: Record<string, unknown> | undefined;
324
312
  }>>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { agentIdSchema, functionCallIdSchema, promptIdSchema, sessionIdSchema, tenantIdSchema, turnIdSchema, } from "../ids.js";
3
3
  import { chatFunctionNameSchema } from "./agent-tools.js";
4
- import { agentModelIdSchema, agentVersionNumberSchema } from "./agents.js";
4
+ import { agentModelIdSchema } from "./agents.js";
5
5
  import { metadataSchema, userIdSchema } from "./attribution.js";
6
6
  export const chatModeSchema = z.enum(["create", "resume"]);
7
7
  export const chatTriggerSchema = z.enum([
@@ -16,7 +16,6 @@ export const chatTriggerSchema = z.enum([
16
16
  export const usageSummarySchema = z
17
17
  .object({
18
18
  agentId: agentIdSchema,
19
- agentVersion: agentVersionNumberSchema,
20
19
  commitId: z.string().trim().min(1),
21
20
  completedAt: z.iso.datetime({ offset: true }),
22
21
  durationMs: z.number().int().min(0),
@@ -204,7 +203,6 @@ export const chatRequestBodySchema = z
204
203
  variables: promptVariablesSchema.optional(),
205
204
  trigger: chatTriggerSchema.default("submit-message"),
206
205
  messageId: z.string().min(1).optional(),
207
- version: agentVersionNumberSchema.optional(),
208
206
  /**
209
207
  * End-user attribution (ADR-0001), stamped on the Session at lazy
210
208
  * materialization and on every usage row this Turn records.
@@ -237,7 +235,6 @@ export const generationRequestBodySchema = z
237
235
  .object({ type: z.literal("object"), schema: jsonSchemaShapeSchema })
238
236
  .strict(),
239
237
  ]),
240
- version: agentVersionNumberSchema.optional(),
241
238
  userId: userIdSchema.default(""),
242
239
  metadata: metadataSchema.default({}),
243
240
  })
@@ -92,12 +92,8 @@ export declare const providerModelsResponseSchema: z.ZodObject<{
92
92
  }, z.core.$strip>>;
93
93
  }, z.core.$strip>;
94
94
  export declare const providerHistoricalUseDetailsSchema: z.ZodObject<{
95
- agentVersions: z.ZodArray<z.ZodObject<{
96
- agentId: z.ZodString;
97
- version: z.ZodNumber;
98
- }, z.core.$strip>>;
99
95
  sessionIds: z.ZodArray<z.ZodString>;
100
- taskIds: z.ZodArray<z.ZodString>;
96
+ taskRunIds: z.ZodArray<z.ZodString>;
101
97
  }, z.core.$strip>;
102
98
  /**
103
99
  * `POST /v1/providers` — name, type, optional base URL, and the API key
@@ -128,7 +124,7 @@ export type ProviderModelsResponse = z.infer<typeof providerModelsResponseSchema
128
124
  export type ProviderModel = ProviderModelsResponse["models"][number];
129
125
  export type ProviderHistoricalUseDetails = z.infer<typeof providerHistoricalUseDetailsSchema>;
130
126
  export interface DeleteProviderOptions {
131
- confirmVersionInvalidation?: boolean;
127
+ confirmSnapshotInvalidation?: boolean;
132
128
  }
133
129
  export type ProviderResponse = z.infer<typeof providerResponseSchema>;
134
130
  export type CreateProviderBody = z.infer<typeof createProviderBodySchema>;
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
- import { agentIdSchema, providerIdSchema, providerKeyFragmentSchema, sessionIdSchema, taskIdSchema, tenantIdSchema, } from "../ids.js";
2
+ import { providerIdSchema, providerKeyFragmentSchema, sessionIdSchema, taskRunIdSchema, tenantIdSchema, } from "../ids.js";
3
3
  import { MAX_PROVIDER_NAME_LENGTH } from "../limitations.js";
4
- import { agentVersionNumberSchema } from "./agents.js";
5
4
  /**
6
5
  * Provider type — the enum of model providers we support. Selects catalog
7
6
  * discovery and AI SDK model behavior.
@@ -73,14 +72,8 @@ export const providerModelsResponseSchema = z
73
72
  .strip();
74
73
  export const providerHistoricalUseDetailsSchema = z
75
74
  .object({
76
- agentVersions: z.array(z
77
- .object({
78
- agentId: agentIdSchema,
79
- version: agentVersionNumberSchema,
80
- })
81
- .strip()),
82
75
  sessionIds: z.array(sessionIdSchema),
83
- taskIds: z.array(taskIdSchema),
76
+ taskRunIds: z.array(taskRunIdSchema),
84
77
  })
85
78
  .strip();
86
79
  /**