@runtypelabs/sdk 11.19.2 → 11.20.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/index.cjs CHANGED
@@ -1151,7 +1151,8 @@ var FlowBuilder = class {
1151
1151
  url: config.url,
1152
1152
  method: config.method || "GET",
1153
1153
  headers: config.headers,
1154
- body: config.body
1154
+ body: config.body,
1155
+ ...config.multipart !== void 0 && { multipart: config.multipart }
1155
1156
  },
1156
1157
  auth: config.auth,
1157
1158
  responseType: config.responseType,
@@ -10455,7 +10456,8 @@ var RuntypeFlowBuilder = class {
10455
10456
  url: config.url,
10456
10457
  method: config.method || "GET",
10457
10458
  headers: config.headers,
10458
- body: config.body
10459
+ body: config.body,
10460
+ ...config.multipart !== void 0 && { multipart: config.multipart }
10459
10461
  },
10460
10462
  auth: config.auth,
10461
10463
  responseType: config.responseType,
@@ -14830,7 +14832,7 @@ function transformQueryParams(params) {
14830
14832
  return result;
14831
14833
  }
14832
14834
  // src/version.ts
14833
- const SDK_VERSION = "11.19.2";
14835
+ const SDK_VERSION = "11.20.0";
14834
14836
  /**
14835
14837
  * Canonical client identity the API uses for attribution
14836
14838
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
@@ -15863,6 +15865,11 @@ const STEP_FIELD_REGISTRY = {
15863
15865
  format: "template",
15864
15866
  source: "http.body"
15865
15867
  },
15868
+ {
15869
+ key: "multipart",
15870
+ format: "value",
15871
+ source: "http.multipart"
15872
+ },
15866
15873
  {
15867
15874
  key: "auth",
15868
15875
  format: "value"
package/dist/index.d.cts CHANGED
@@ -13120,6 +13120,7 @@ interface paths {
13120
13120
  conversations: {
13121
13121
  createdAt: string;
13122
13122
  id: string;
13123
+ /** @description Stored messages. For `source: client_token` this counts chat messages before tool results are split into their own `tool` messages, so it can be lower than the detail `messages` length. */
13123
13124
  messageCount: number;
13124
13125
  modelId: string | null;
13125
13126
  ownerId: string | null;
@@ -13219,6 +13220,7 @@ interface paths {
13219
13220
  id: string;
13220
13221
  /** @description Set by POST /v1/conversations only. True when this call created the conversation (201); false when a conversation with the same source.system and source.externalId already existed and is returned unchanged (200). */
13221
13222
  imported?: boolean;
13223
+ /** @description The full ordered transcript, never paginated or capped. For `source: client_token` (Persona web chat) it is read from the chat transcript the widget wrote (also kept in `metadata.messages`): `timestamp` is returned as `createdAt`, `displayContent` as `metadata.displayContent`, and an assistant message that called tools carries `toolCalls` followed by a `tool` message (id `<assistant id>_tool_results`) holding each settled result; a call still awaiting approval or a client answer has no result. */
13222
13224
  messages: components["schemas"]["ConversationTranscriptMessage"][];
13223
13225
  metadata: {
13224
13226
  [key: string]: unknown;
@@ -13249,6 +13251,7 @@ interface paths {
13249
13251
  id: string;
13250
13252
  /** @description Set by POST /v1/conversations only. True when this call created the conversation (201); false when a conversation with the same source.system and source.externalId already existed and is returned unchanged (200). */
13251
13253
  imported?: boolean;
13254
+ /** @description The full ordered transcript, never paginated or capped. For `source: client_token` (Persona web chat) it is read from the chat transcript the widget wrote (also kept in `metadata.messages`): `timestamp` is returned as `createdAt`, `displayContent` as `metadata.displayContent`, and an assistant message that called tools carries `toolCalls` followed by a `tool` message (id `<assistant id>_tool_results`) holding each settled result; a call still awaiting approval or a client answer has no result. */
13252
13255
  messages: components["schemas"]["ConversationTranscriptMessage"][];
13253
13256
  metadata: {
13254
13257
  [key: string]: unknown;
@@ -13373,6 +13376,7 @@ interface paths {
13373
13376
  id: string;
13374
13377
  /** @description Set by POST /v1/conversations only. True when this call created the conversation (201); false when a conversation with the same source.system and source.externalId already existed and is returned unchanged (200). */
13375
13378
  imported?: boolean;
13379
+ /** @description The full ordered transcript, never paginated or capped. For `source: client_token` (Persona web chat) it is read from the chat transcript the widget wrote (also kept in `metadata.messages`): `timestamp` is returned as `createdAt`, `displayContent` as `metadata.displayContent`, and an assistant message that called tools carries `toolCalls` followed by a `tool` message (id `<assistant id>_tool_results`) holding each settled result; a call still awaiting approval or a client answer has no result. */
13376
13380
  messages: components["schemas"]["ConversationTranscriptMessage"][];
13377
13381
  metadata: {
13378
13382
  [key: string]: unknown;
@@ -13486,6 +13490,7 @@ interface paths {
13486
13490
  id: string;
13487
13491
  /** @description Set by POST /v1/conversations only. True when this call created the conversation (201); false when a conversation with the same source.system and source.externalId already existed and is returned unchanged (200). */
13488
13492
  imported?: boolean;
13493
+ /** @description The full ordered transcript, never paginated or capped. For `source: client_token` (Persona web chat) it is read from the chat transcript the widget wrote (also kept in `metadata.messages`): `timestamp` is returned as `createdAt`, `displayContent` as `metadata.displayContent`, and an assistant message that called tools carries `toolCalls` followed by a `tool` message (id `<assistant id>_tool_results`) holding each settled result; a call still awaiting approval or a client answer has no result. */
13489
13494
  messages: components["schemas"]["ConversationTranscriptMessage"][];
13490
13495
  metadata: {
13491
13496
  [key: string]: unknown;
@@ -55055,7 +55060,7 @@ interface paths {
55055
55060
  put?: never;
55056
55061
  /**
55057
55062
  * Bind a signal set to an agent
55058
- * @description Evaluate a set version on every matching turn of an agent from now on. Refused for an agent with loggingPolicy "off" and under zero data retention; an organization handling PHI must pass acknowledgeExternalProcessing.
55063
+ * @description Evaluate a set version on every matching turn of an agent from now on. Its model calls bill to the organization’s usage like any other model call. Refused for an agent with loggingPolicy "off" and under zero data retention; an organization handling PHI must pass acknowledgeExternalProcessing.
55059
55064
  */
55060
55065
  post: {
55061
55066
  parameters: {
@@ -55069,10 +55074,11 @@ interface paths {
55069
55074
  "application/json": {
55070
55075
  /** @description Required for a PHI organization whose set uses a decision model outside Cloudflare Workers AI. Written to the audit log. */
55071
55076
  acknowledgeExternalProcessing?: boolean;
55072
- /** @description Default $25 a month. */
55073
- budget?: {
55074
- monthlyUsd: number;
55075
- };
55077
+ /**
55078
+ * @deprecated
55079
+ * @description Ignored. Bindings have no budget; their model calls bill to the organization’s usage.
55080
+ */
55081
+ budget?: unknown;
55076
55082
  coverage?: {
55077
55083
  /** @enum {string} */
55078
55084
  mode: "all";
@@ -65500,10 +65506,6 @@ interface components {
65500
65506
  value?: unknown;
65501
65507
  };
65502
65508
  SignalBinding: {
65503
- /** @description Monthly cap. 0 on an implicit binding, which has no cap and is billed to usage. */
65504
- budget: {
65505
- monthlyUsd: number;
65506
- };
65507
65509
  coverage: {
65508
65510
  [key: string]: unknown;
65509
65511
  };
@@ -65515,7 +65517,7 @@ interface components {
65515
65517
  [key: string]: unknown;
65516
65518
  };
65517
65519
  id: string;
65518
- /** @description Created by the platform: the failure detector on a uniform 5% sample, billed to usage. Unbinding it records an opt-out (enabled false) and it is not recreated; an explicit failure_detector binding replaces it. */
65520
+ /** @description Created by the platform: the failure detector on a uniform 5% sample. Unbinding it records an opt-out (enabled false) and it is not recreated; an explicit failure_detector binding replaces it. */
65519
65521
  implicit: boolean;
65520
65522
  signalSetId: string;
65521
65523
  signalSetName?: string;
@@ -67642,6 +67644,16 @@ interface FetchUrlStepConfig {
67642
67644
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
67643
67645
  headers?: Record<string, string>;
67644
67646
  body?: string;
67647
+ /** `multipart/form-data` body; needs POST, PUT or PATCH and cannot be combined with `body`. */
67648
+ multipart?: {
67649
+ fields?: Record<string, string>;
67650
+ files?: Array<{
67651
+ name: string;
67652
+ url: string;
67653
+ filename?: string;
67654
+ contentType?: string;
67655
+ }>;
67656
+ };
67645
67657
  auth?: Record<string, unknown>;
67646
67658
  responseType?: 'json' | 'text';
67647
67659
  markdownIfAvailable?: boolean;
@@ -78138,11 +78150,8 @@ interface SignalBinding {
78138
78150
  filter: Record<string, unknown>;
78139
78151
  coverage: Record<string, unknown>;
78140
78152
  uniformShare: number;
78141
- budget: {
78142
- monthlyUsd: number;
78143
- };
78144
78153
  enabled: boolean;
78145
- /** Platform-created failure-detector binding (5% uniform sample, billed to usage); unbinding it is a lasting opt-out. */
78154
+ /** Platform-created failure-detector binding (5% uniform sample); unbinding it is a lasting opt-out. */
78146
78155
  implicit: boolean;
78147
78156
  disabledAt: string | null;
78148
78157
  externalProcessingAcknowledgedAt: string | null;
@@ -78219,9 +78228,6 @@ interface BindSignalSetInput {
78219
78228
  rate: number;
78220
78229
  };
78221
78230
  uniformShare?: number;
78222
- budget?: {
78223
- monthlyUsd: number;
78224
- };
78225
78231
  /** Only after a human confirms; a PHI organization on a model outside Workers AI is refused until this is true. */
78226
78232
  acknowledgeExternalProcessing?: boolean;
78227
78233
  }
@@ -80860,6 +80866,10 @@ export declare const STEP_FIELD_REGISTRY: {
80860
80866
  readonly key: 'body';
80861
80867
  readonly format: 'template';
80862
80868
  readonly source: 'http.body';
80869
+ }, {
80870
+ readonly key: 'multipart';
80871
+ readonly format: 'value';
80872
+ readonly source: 'http.multipart';
80863
80873
  }, {
80864
80874
  readonly key: 'auth';
80865
80875
  readonly format: 'value';
package/dist/index.d.ts CHANGED
@@ -13120,6 +13120,7 @@ interface paths {
13120
13120
  conversations: {
13121
13121
  createdAt: string;
13122
13122
  id: string;
13123
+ /** @description Stored messages. For `source: client_token` this counts chat messages before tool results are split into their own `tool` messages, so it can be lower than the detail `messages` length. */
13123
13124
  messageCount: number;
13124
13125
  modelId: string | null;
13125
13126
  ownerId: string | null;
@@ -13219,6 +13220,7 @@ interface paths {
13219
13220
  id: string;
13220
13221
  /** @description Set by POST /v1/conversations only. True when this call created the conversation (201); false when a conversation with the same source.system and source.externalId already existed and is returned unchanged (200). */
13221
13222
  imported?: boolean;
13223
+ /** @description The full ordered transcript, never paginated or capped. For `source: client_token` (Persona web chat) it is read from the chat transcript the widget wrote (also kept in `metadata.messages`): `timestamp` is returned as `createdAt`, `displayContent` as `metadata.displayContent`, and an assistant message that called tools carries `toolCalls` followed by a `tool` message (id `<assistant id>_tool_results`) holding each settled result; a call still awaiting approval or a client answer has no result. */
13222
13224
  messages: components["schemas"]["ConversationTranscriptMessage"][];
13223
13225
  metadata: {
13224
13226
  [key: string]: unknown;
@@ -13249,6 +13251,7 @@ interface paths {
13249
13251
  id: string;
13250
13252
  /** @description Set by POST /v1/conversations only. True when this call created the conversation (201); false when a conversation with the same source.system and source.externalId already existed and is returned unchanged (200). */
13251
13253
  imported?: boolean;
13254
+ /** @description The full ordered transcript, never paginated or capped. For `source: client_token` (Persona web chat) it is read from the chat transcript the widget wrote (also kept in `metadata.messages`): `timestamp` is returned as `createdAt`, `displayContent` as `metadata.displayContent`, and an assistant message that called tools carries `toolCalls` followed by a `tool` message (id `<assistant id>_tool_results`) holding each settled result; a call still awaiting approval or a client answer has no result. */
13252
13255
  messages: components["schemas"]["ConversationTranscriptMessage"][];
13253
13256
  metadata: {
13254
13257
  [key: string]: unknown;
@@ -13373,6 +13376,7 @@ interface paths {
13373
13376
  id: string;
13374
13377
  /** @description Set by POST /v1/conversations only. True when this call created the conversation (201); false when a conversation with the same source.system and source.externalId already existed and is returned unchanged (200). */
13375
13378
  imported?: boolean;
13379
+ /** @description The full ordered transcript, never paginated or capped. For `source: client_token` (Persona web chat) it is read from the chat transcript the widget wrote (also kept in `metadata.messages`): `timestamp` is returned as `createdAt`, `displayContent` as `metadata.displayContent`, and an assistant message that called tools carries `toolCalls` followed by a `tool` message (id `<assistant id>_tool_results`) holding each settled result; a call still awaiting approval or a client answer has no result. */
13376
13380
  messages: components["schemas"]["ConversationTranscriptMessage"][];
13377
13381
  metadata: {
13378
13382
  [key: string]: unknown;
@@ -13486,6 +13490,7 @@ interface paths {
13486
13490
  id: string;
13487
13491
  /** @description Set by POST /v1/conversations only. True when this call created the conversation (201); false when a conversation with the same source.system and source.externalId already existed and is returned unchanged (200). */
13488
13492
  imported?: boolean;
13493
+ /** @description The full ordered transcript, never paginated or capped. For `source: client_token` (Persona web chat) it is read from the chat transcript the widget wrote (also kept in `metadata.messages`): `timestamp` is returned as `createdAt`, `displayContent` as `metadata.displayContent`, and an assistant message that called tools carries `toolCalls` followed by a `tool` message (id `<assistant id>_tool_results`) holding each settled result; a call still awaiting approval or a client answer has no result. */
13489
13494
  messages: components["schemas"]["ConversationTranscriptMessage"][];
13490
13495
  metadata: {
13491
13496
  [key: string]: unknown;
@@ -55055,7 +55060,7 @@ interface paths {
55055
55060
  put?: never;
55056
55061
  /**
55057
55062
  * Bind a signal set to an agent
55058
- * @description Evaluate a set version on every matching turn of an agent from now on. Refused for an agent with loggingPolicy "off" and under zero data retention; an organization handling PHI must pass acknowledgeExternalProcessing.
55063
+ * @description Evaluate a set version on every matching turn of an agent from now on. Its model calls bill to the organization’s usage like any other model call. Refused for an agent with loggingPolicy "off" and under zero data retention; an organization handling PHI must pass acknowledgeExternalProcessing.
55059
55064
  */
55060
55065
  post: {
55061
55066
  parameters: {
@@ -55069,10 +55074,11 @@ interface paths {
55069
55074
  "application/json": {
55070
55075
  /** @description Required for a PHI organization whose set uses a decision model outside Cloudflare Workers AI. Written to the audit log. */
55071
55076
  acknowledgeExternalProcessing?: boolean;
55072
- /** @description Default $25 a month. */
55073
- budget?: {
55074
- monthlyUsd: number;
55075
- };
55077
+ /**
55078
+ * @deprecated
55079
+ * @description Ignored. Bindings have no budget; their model calls bill to the organization’s usage.
55080
+ */
55081
+ budget?: unknown;
55076
55082
  coverage?: {
55077
55083
  /** @enum {string} */
55078
55084
  mode: "all";
@@ -65500,10 +65506,6 @@ interface components {
65500
65506
  value?: unknown;
65501
65507
  };
65502
65508
  SignalBinding: {
65503
- /** @description Monthly cap. 0 on an implicit binding, which has no cap and is billed to usage. */
65504
- budget: {
65505
- monthlyUsd: number;
65506
- };
65507
65509
  coverage: {
65508
65510
  [key: string]: unknown;
65509
65511
  };
@@ -65515,7 +65517,7 @@ interface components {
65515
65517
  [key: string]: unknown;
65516
65518
  };
65517
65519
  id: string;
65518
- /** @description Created by the platform: the failure detector on a uniform 5% sample, billed to usage. Unbinding it records an opt-out (enabled false) and it is not recreated; an explicit failure_detector binding replaces it. */
65520
+ /** @description Created by the platform: the failure detector on a uniform 5% sample. Unbinding it records an opt-out (enabled false) and it is not recreated; an explicit failure_detector binding replaces it. */
65519
65521
  implicit: boolean;
65520
65522
  signalSetId: string;
65521
65523
  signalSetName?: string;
@@ -67642,6 +67644,16 @@ interface FetchUrlStepConfig {
67642
67644
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
67643
67645
  headers?: Record<string, string>;
67644
67646
  body?: string;
67647
+ /** `multipart/form-data` body; needs POST, PUT or PATCH and cannot be combined with `body`. */
67648
+ multipart?: {
67649
+ fields?: Record<string, string>;
67650
+ files?: Array<{
67651
+ name: string;
67652
+ url: string;
67653
+ filename?: string;
67654
+ contentType?: string;
67655
+ }>;
67656
+ };
67645
67657
  auth?: Record<string, unknown>;
67646
67658
  responseType?: 'json' | 'text';
67647
67659
  markdownIfAvailable?: boolean;
@@ -78138,11 +78150,8 @@ interface SignalBinding {
78138
78150
  filter: Record<string, unknown>;
78139
78151
  coverage: Record<string, unknown>;
78140
78152
  uniformShare: number;
78141
- budget: {
78142
- monthlyUsd: number;
78143
- };
78144
78153
  enabled: boolean;
78145
- /** Platform-created failure-detector binding (5% uniform sample, billed to usage); unbinding it is a lasting opt-out. */
78154
+ /** Platform-created failure-detector binding (5% uniform sample); unbinding it is a lasting opt-out. */
78146
78155
  implicit: boolean;
78147
78156
  disabledAt: string | null;
78148
78157
  externalProcessingAcknowledgedAt: string | null;
@@ -78219,9 +78228,6 @@ interface BindSignalSetInput {
78219
78228
  rate: number;
78220
78229
  };
78221
78230
  uniformShare?: number;
78222
- budget?: {
78223
- monthlyUsd: number;
78224
- };
78225
78231
  /** Only after a human confirms; a PHI organization on a model outside Workers AI is refused until this is true. */
78226
78232
  acknowledgeExternalProcessing?: boolean;
78227
78233
  }
@@ -80860,6 +80866,10 @@ export declare const STEP_FIELD_REGISTRY: {
80860
80866
  readonly key: 'body';
80861
80867
  readonly format: 'template';
80862
80868
  readonly source: 'http.body';
80869
+ }, {
80870
+ readonly key: 'multipart';
80871
+ readonly format: 'value';
80872
+ readonly source: 'http.multipart';
80863
80873
  }, {
80864
80874
  readonly key: 'auth';
80865
80875
  readonly format: 'value';
package/dist/index.mjs CHANGED
@@ -1150,7 +1150,8 @@ var FlowBuilder = class {
1150
1150
  url: config.url,
1151
1151
  method: config.method || "GET",
1152
1152
  headers: config.headers,
1153
- body: config.body
1153
+ body: config.body,
1154
+ ...config.multipart !== void 0 && { multipart: config.multipart }
1154
1155
  },
1155
1156
  auth: config.auth,
1156
1157
  responseType: config.responseType,
@@ -10454,7 +10455,8 @@ var RuntypeFlowBuilder = class {
10454
10455
  url: config.url,
10455
10456
  method: config.method || "GET",
10456
10457
  headers: config.headers,
10457
- body: config.body
10458
+ body: config.body,
10459
+ ...config.multipart !== void 0 && { multipart: config.multipart }
10458
10460
  },
10459
10461
  auth: config.auth,
10460
10462
  responseType: config.responseType,
@@ -14829,7 +14831,7 @@ function transformQueryParams(params) {
14829
14831
  return result;
14830
14832
  }
14831
14833
  // src/version.ts
14832
- const SDK_VERSION = "11.19.2";
14834
+ const SDK_VERSION = "11.20.0";
14833
14835
  /**
14834
14836
  * Canonical client identity the API uses for attribution
14835
14837
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
@@ -15862,6 +15864,11 @@ const STEP_FIELD_REGISTRY = {
15862
15864
  format: "template",
15863
15865
  source: "http.body"
15864
15866
  },
15867
+ {
15868
+ key: "multipart",
15869
+ format: "value",
15870
+ source: "http.multipart"
15871
+ },
15865
15872
  {
15866
15873
  key: "auth",
15867
15874
  format: "value"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "11.19.2",
3
+ "version": "11.20.0",
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",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {},
26
26
  "devDependencies": {
27
- "@runtypelabs/shared": "3.115.0",
27
+ "@runtypelabs/shared": "3.116.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.2",
30
30
  "typescript": "^6.0.3",