@runtypelabs/sdk 9.5.0 → 9.5.1

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/index.cjs CHANGED
@@ -6484,7 +6484,7 @@ var Runtype = class {
6484
6484
 
6485
6485
  // src/version.ts
6486
6486
  var FALLBACK_VERSION = "0.0.0";
6487
- var SDK_VERSION = "9.5.0".length > 0 ? "9.5.0" : FALLBACK_VERSION;
6487
+ var SDK_VERSION = "9.5.1".length > 0 ? "9.5.1" : FALLBACK_VERSION;
6488
6488
  var RUNTYPE_CLIENT_KIND = "sdk";
6489
6489
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6490
6490
 
package/dist/index.d.cts CHANGED
@@ -5245,23 +5245,23 @@ interface paths {
5245
5245
  requestBody?: {
5246
5246
  content: {
5247
5247
  "application/json": {
5248
- /** @description Agent to execute per record instead of a flow. Each record then carries its conversation in metadata.messages. */
5249
- agentId?: string;
5248
+ /** @description Agent to execute per record instead of a flow. Saved records are loaded and their conversation read from metadata.messages; inline records reach the agent only when their type is _agent_eval or _agent_schedule and metadata.messages carries the conversation. Any other inline record type fails per record. */
5249
+ agentId?: string | null;
5250
5250
  flowDefinition?: components["schemas"]["BatchFlowDefinition"];
5251
5251
  /** @description Saved flow to execute per record. One of flowId, flowDefinition, or agentId is required. */
5252
- flowId?: string;
5252
+ flowId?: string | null;
5253
5253
  /** @description Flow input variables applied to every record execution. */
5254
5254
  inputs?: {
5255
5255
  [key: string]: unknown;
5256
- };
5256
+ } | null;
5257
5257
  /** @description Conversation seed passed unchanged to every record execution. Records cannot see each other's history. */
5258
5258
  messages?: ({
5259
5259
  content?: unknown;
5260
5260
  role: string;
5261
5261
  } & {
5262
5262
  [key: string]: unknown;
5263
- })[];
5264
- options?: {
5263
+ })[] | null;
5264
+ options?: ({
5265
5265
  /** @description Records admitted to one processing chunk before progress is flushed and batch gates are re-checked. */
5266
5266
  chunkSize?: number;
5267
5267
  /** @description Flow-wide deadline passed to every per-record flow execution. */
@@ -5282,11 +5282,11 @@ interface paths {
5282
5282
  timeoutMs?: number;
5283
5283
  } & {
5284
5284
  [key: string]: unknown;
5285
- };
5285
+ }) | null;
5286
5286
  /** @description Saved record ids to process. May be combined with records; the batch runs the union. At least one of recordIds or records must be non-empty. Maximum 50000 records per batch across both. */
5287
- recordIds?: string[];
5287
+ recordIds?: string[] | null;
5288
5288
  /** @description Inline records to process without saving them first. May be combined with recordIds. Maximum 50000 records per batch across both. */
5289
- records?: components["schemas"]["BatchInlineRecord"][];
5289
+ records?: components["schemas"]["BatchInlineRecord"][] | null;
5290
5290
  } & {
5291
5291
  [key: string]: unknown;
5292
5292
  };
@@ -45111,8 +45111,8 @@ interface components {
45111
45111
  targetKind: "flow" | "agent";
45112
45112
  };
45113
45113
  /** @description Inline flow definition executed per record without saving the flow. */
45114
- BatchFlowDefinition: {
45115
- description?: string;
45114
+ BatchFlowDefinition: ({
45115
+ description?: string | null;
45116
45116
  /** @description Saved-flow identity retained when the definition is a pinned snapshot. */
45117
45117
  id?: string;
45118
45118
  name: string;
@@ -45122,7 +45122,7 @@ interface components {
45122
45122
  }[];
45123
45123
  } & {
45124
45124
  [key: string]: unknown;
45125
- };
45125
+ }) | null;
45126
45126
  /** @description An ad-hoc record processed in place of a saved record. Inline records never touch the records table; each is minted a synthetic id for the lifetime of the batch. */
45127
45127
  BatchInlineRecord: {
45128
45128
  /** @description Arbitrary JSON payload exposed to the flow as {{_record.metadata.*}}. Any shape is accepted; nothing is written to the records table. */
package/dist/index.d.ts CHANGED
@@ -5245,23 +5245,23 @@ interface paths {
5245
5245
  requestBody?: {
5246
5246
  content: {
5247
5247
  "application/json": {
5248
- /** @description Agent to execute per record instead of a flow. Each record then carries its conversation in metadata.messages. */
5249
- agentId?: string;
5248
+ /** @description Agent to execute per record instead of a flow. Saved records are loaded and their conversation read from metadata.messages; inline records reach the agent only when their type is _agent_eval or _agent_schedule and metadata.messages carries the conversation. Any other inline record type fails per record. */
5249
+ agentId?: string | null;
5250
5250
  flowDefinition?: components["schemas"]["BatchFlowDefinition"];
5251
5251
  /** @description Saved flow to execute per record. One of flowId, flowDefinition, or agentId is required. */
5252
- flowId?: string;
5252
+ flowId?: string | null;
5253
5253
  /** @description Flow input variables applied to every record execution. */
5254
5254
  inputs?: {
5255
5255
  [key: string]: unknown;
5256
- };
5256
+ } | null;
5257
5257
  /** @description Conversation seed passed unchanged to every record execution. Records cannot see each other's history. */
5258
5258
  messages?: ({
5259
5259
  content?: unknown;
5260
5260
  role: string;
5261
5261
  } & {
5262
5262
  [key: string]: unknown;
5263
- })[];
5264
- options?: {
5263
+ })[] | null;
5264
+ options?: ({
5265
5265
  /** @description Records admitted to one processing chunk before progress is flushed and batch gates are re-checked. */
5266
5266
  chunkSize?: number;
5267
5267
  /** @description Flow-wide deadline passed to every per-record flow execution. */
@@ -5282,11 +5282,11 @@ interface paths {
5282
5282
  timeoutMs?: number;
5283
5283
  } & {
5284
5284
  [key: string]: unknown;
5285
- };
5285
+ }) | null;
5286
5286
  /** @description Saved record ids to process. May be combined with records; the batch runs the union. At least one of recordIds or records must be non-empty. Maximum 50000 records per batch across both. */
5287
- recordIds?: string[];
5287
+ recordIds?: string[] | null;
5288
5288
  /** @description Inline records to process without saving them first. May be combined with recordIds. Maximum 50000 records per batch across both. */
5289
- records?: components["schemas"]["BatchInlineRecord"][];
5289
+ records?: components["schemas"]["BatchInlineRecord"][] | null;
5290
5290
  } & {
5291
5291
  [key: string]: unknown;
5292
5292
  };
@@ -45111,8 +45111,8 @@ interface components {
45111
45111
  targetKind: "flow" | "agent";
45112
45112
  };
45113
45113
  /** @description Inline flow definition executed per record without saving the flow. */
45114
- BatchFlowDefinition: {
45115
- description?: string;
45114
+ BatchFlowDefinition: ({
45115
+ description?: string | null;
45116
45116
  /** @description Saved-flow identity retained when the definition is a pinned snapshot. */
45117
45117
  id?: string;
45118
45118
  name: string;
@@ -45122,7 +45122,7 @@ interface components {
45122
45122
  }[];
45123
45123
  } & {
45124
45124
  [key: string]: unknown;
45125
- };
45125
+ }) | null;
45126
45126
  /** @description An ad-hoc record processed in place of a saved record. Inline records never touch the records table; each is minted a synthetic id for the lifetime of the batch. */
45127
45127
  BatchInlineRecord: {
45128
45128
  /** @description Arbitrary JSON payload exposed to the flow as {{_record.metadata.*}}. Any shape is accepted; nothing is written to the records table. */
package/dist/index.mjs CHANGED
@@ -6289,7 +6289,7 @@ var Runtype = class {
6289
6289
 
6290
6290
  // src/version.ts
6291
6291
  var FALLBACK_VERSION = "0.0.0";
6292
- var SDK_VERSION = "9.5.0".length > 0 ? "9.5.0" : FALLBACK_VERSION;
6292
+ var SDK_VERSION = "9.5.1".length > 0 ? "9.5.1" : FALLBACK_VERSION;
6293
6293
  var RUNTYPE_CLIENT_KIND = "sdk";
6294
6294
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6295
6295
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "9.5.0",
3
+ "version": "9.5.1",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",