@runtypelabs/sdk 4.0.1 → 4.0.2

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.d.cts CHANGED
@@ -33720,11 +33720,13 @@ interface paths {
33720
33720
  "application/json": {
33721
33721
  data: {
33722
33722
  agentExecutionId: string | null;
33723
+ agentId: string | null;
33723
33724
  batchExecutionId: string | null;
33724
33725
  completedAt: string | null;
33725
33726
  createdAt: string;
33726
33727
  error: string | null;
33727
33728
  failedRecords: number | null;
33729
+ flowId: string | null;
33728
33730
  id: string;
33729
33731
  processedRecords: number | null;
33730
33732
  scheduleId: string;
@@ -41607,12 +41609,13 @@ declare class ClientFlowBuilder extends FlowBuilder {
41607
41609
  * Create an external runtime tool definition.
41608
41610
  *
41609
41611
  * External tools make HTTP requests to external APIs with support for
41610
- * variable substitution in URLs and headers.
41612
+ * variable substitution in URLs and headers. Reference tool parameters and
41613
+ * flow/execution context variables (e.g. `{{_flow}}`, `{{_user}}`,
41614
+ * `{{_execution}}`, `{{_record}}`) directly in the URL, headers, and body.
41611
41615
  *
41612
- * Special internal variables are available for auth:
41613
- * - `{{_internal.auth_token}}` - Bearer token for Runtype API auth
41614
- * - `{{_internal.user_id}}` - Current user ID
41615
- * - `{{_internal.org_id}}` - Current organization ID
41616
+ * Note: `{{_internal.*}}` variables (such as `_internal.auth_token`) are NOT
41617
+ * populated at runtime and are reserved/blocked by the execution engine.
41618
+ * Pass credentials via secret references (`{{secret:NAME}}`) instead.
41616
41619
  *
41617
41620
  * @example
41618
41621
  * ```typescript
@@ -41627,7 +41630,7 @@ declare class ClientFlowBuilder extends FlowBuilder {
41627
41630
  * },
41628
41631
  * url: 'https://api.runtype.com/v1/flows',
41629
41632
  * method: 'GET',
41630
- * headers: { Authorization: '{{_internal.auth_token}}' }
41633
+ * headers: { Authorization: 'Bearer {{secret:RUNTYPE_API_KEY}}' }
41631
41634
  * })
41632
41635
  * ```
41633
41636
  */
package/dist/index.d.ts CHANGED
@@ -33720,11 +33720,13 @@ interface paths {
33720
33720
  "application/json": {
33721
33721
  data: {
33722
33722
  agentExecutionId: string | null;
33723
+ agentId: string | null;
33723
33724
  batchExecutionId: string | null;
33724
33725
  completedAt: string | null;
33725
33726
  createdAt: string;
33726
33727
  error: string | null;
33727
33728
  failedRecords: number | null;
33729
+ flowId: string | null;
33728
33730
  id: string;
33729
33731
  processedRecords: number | null;
33730
33732
  scheduleId: string;
@@ -41607,12 +41609,13 @@ declare class ClientFlowBuilder extends FlowBuilder {
41607
41609
  * Create an external runtime tool definition.
41608
41610
  *
41609
41611
  * External tools make HTTP requests to external APIs with support for
41610
- * variable substitution in URLs and headers.
41612
+ * variable substitution in URLs and headers. Reference tool parameters and
41613
+ * flow/execution context variables (e.g. `{{_flow}}`, `{{_user}}`,
41614
+ * `{{_execution}}`, `{{_record}}`) directly in the URL, headers, and body.
41611
41615
  *
41612
- * Special internal variables are available for auth:
41613
- * - `{{_internal.auth_token}}` - Bearer token for Runtype API auth
41614
- * - `{{_internal.user_id}}` - Current user ID
41615
- * - `{{_internal.org_id}}` - Current organization ID
41616
+ * Note: `{{_internal.*}}` variables (such as `_internal.auth_token`) are NOT
41617
+ * populated at runtime and are reserved/blocked by the execution engine.
41618
+ * Pass credentials via secret references (`{{secret:NAME}}`) instead.
41616
41619
  *
41617
41620
  * @example
41618
41621
  * ```typescript
@@ -41627,7 +41630,7 @@ declare class ClientFlowBuilder extends FlowBuilder {
41627
41630
  * },
41628
41631
  * url: 'https://api.runtype.com/v1/flows',
41629
41632
  * method: 'GET',
41630
- * headers: { Authorization: '{{_internal.auth_token}}' }
41633
+ * headers: { Authorization: 'Bearer {{secret:RUNTYPE_API_KEY}}' }
41631
41634
  * })
41632
41635
  * ```
41633
41636
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",