@blazingagents/sdk 0.45.0 → 0.46.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.
@@ -183,7 +183,7 @@ export declare const chatRequestBodySchema: z.ZodObject<{
183
183
  }>>;
184
184
  messageId: z.ZodOptional<z.ZodString>;
185
185
  userId: z.ZodDefault<z.ZodString>;
186
- metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
186
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187
187
  functions: z.ZodOptional<z.ZodCustom<Record<string, {
188
188
  description: string;
189
189
  inputSchema: z.core.JSONSchema.JSONSchema;
@@ -198,7 +198,7 @@ export declare const chatRequestBodySchema: z.ZodObject<{
198
198
  trigger: "regenerate-message" | "submit-message";
199
199
  messageId?: string | undefined;
200
200
  userId: string;
201
- metadata: Record<string, unknown>;
201
+ metadata?: Record<string, unknown> | undefined;
202
202
  functions?: Record<string, {
203
203
  description: string;
204
204
  inputSchema: z.core.JSONSchema.JSONSchema;
@@ -224,7 +224,7 @@ export declare const chatRequestBodySchema: z.ZodObject<{
224
224
  trigger: "regenerate-message" | "submit-message";
225
225
  messageId?: string | undefined;
226
226
  userId: string;
227
- metadata: Record<string, unknown>;
227
+ metadata?: Record<string, unknown> | undefined;
228
228
  functions?: Record<string, {
229
229
  description: string;
230
230
  inputSchema: z.core.JSONSchema.JSONSchema;
@@ -247,8 +247,8 @@ export const chatRequestBodySchema = z
247
247
  .default("")
248
248
  .describe("Your end user's ID. Starting a session records it on the session, and every turn in that session keeps the session's end user."),
249
249
  metadata: metadataSchema
250
- .default({})
251
- .describe("Your own key-value data. Recorded on a new session and on the turn's usage."),
250
+ .optional()
251
+ .describe("Your own key-value data. Recorded on a new session and on the turn's usage. An omitted value records the session's metadata on the turn's usage."),
252
252
  /**
253
253
  * `chatFunctionDefinitionsSchema` validates the value; `z.custom` is opaque
254
254
  * to the OpenAPI generator, so `meta` declares the wire shape.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazingagents/sdk",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "TypeScript SDK for the Blazing Agents API",
5
5
  "homepage": "https://docs.blazingagents.com",
6
6
  "bugs": {