@runtypelabs/sdk 7.1.0 → 7.2.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
@@ -6452,7 +6452,7 @@ var Runtype = class {
6452
6452
 
6453
6453
  // src/version.ts
6454
6454
  var FALLBACK_VERSION = "0.0.0";
6455
- var SDK_VERSION = "7.1.0".length > 0 ? "7.1.0" : FALLBACK_VERSION;
6455
+ var SDK_VERSION = "7.2.1".length > 0 ? "7.2.1" : FALLBACK_VERSION;
6456
6456
  var RUNTYPE_CLIENT_KIND = "sdk";
6457
6457
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6458
6458
 
package/dist/index.d.cts CHANGED
@@ -894,7 +894,9 @@ interface paths {
894
894
  /** Format: uri */
895
895
  endpoint: string;
896
896
  /** @enum {string} */
897
- framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "custom";
897
+ framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom";
898
+ /** @enum {string} */
899
+ protocol?: "a2a" | "runtype-stream";
898
900
  retryCount?: number;
899
901
  skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none");
900
902
  skillOrchestrator?: {
@@ -2000,7 +2002,9 @@ interface paths {
2000
2002
  /** Format: uri */
2001
2003
  endpoint: string;
2002
2004
  /** @enum {string} */
2003
- framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "custom";
2005
+ framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom";
2006
+ /** @enum {string} */
2007
+ protocol?: "a2a" | "runtype-stream";
2004
2008
  retryCount?: number;
2005
2009
  skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none");
2006
2010
  skillOrchestrator?: {
@@ -5449,7 +5453,11 @@ interface paths {
5449
5453
  "application/json": {
5450
5454
  batchExecutionId: string;
5451
5455
  recordId: string;
5456
+ /** @description Portion of totalCostUsd asserted by an externally-run agent pushed to /v1/executions/ingest. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
5457
+ selfReportedCostUsd: number;
5452
5458
  totalCostUsd: number;
5459
+ /** @description Count of rows inside totalCostUsd that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
5460
+ unpricedExecutions: number;
5453
5461
  };
5454
5462
  };
5455
5463
  };
@@ -5632,7 +5640,7 @@ interface paths {
5632
5640
  };
5633
5641
  /**
5634
5642
  * Get batch execution total cost
5635
- * @description Returns the total cost across all records, flow steps, agent executions, and nested subagents.
5643
+ * @description Returns the total cost across all records, flow steps, agent executions, and nested subagents, decomposed by how much the figure can be trusted.
5636
5644
  */
5637
5645
  get: {
5638
5646
  parameters: {
@@ -5654,7 +5662,11 @@ interface paths {
5654
5662
  content: {
5655
5663
  "application/json": {
5656
5664
  batchExecutionId: string;
5665
+ /** @description Portion of totalCostUsd asserted by an externally-run agent pushed to /v1/executions/ingest. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
5666
+ selfReportedCostUsd: number;
5657
5667
  totalCostUsd: number;
5668
+ /** @description Count of rows inside totalCostUsd that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
5669
+ unpricedExecutions: number;
5658
5670
  };
5659
5671
  };
5660
5672
  };
@@ -11820,6 +11832,7 @@ interface paths {
11820
11832
  "application/json": {
11821
11833
  /** @description The execution ID to resume */
11822
11834
  executionId: string;
11835
+ /** @description Optional conversation override for the resumed leg. It REPLACES the stored conversation rather than being appended to it, so send the full conversation you want the model to see, not just the new turn. Omit it to keep the stored conversation unchanged. A `system` message must come first, as in any conversation. Note this is the flow client-tool continuation contract; an agent checkpoint resume (`options.resumeFrom` on `/v1/dispatch`) instead APPENDS its `messages` after the snapshot history — send only new input there. */
11823
11836
  messages?: {
11824
11837
  content: string | ({
11825
11838
  text: string;
@@ -16701,6 +16714,7 @@ interface paths {
16701
16714
  data: {
16702
16715
  createdAt: string;
16703
16716
  id: string;
16717
+ lastModifiedSource: string | null;
16704
16718
  lastRunAt: string | null;
16705
16719
  name: string;
16706
16720
  updatedAt: string;
@@ -16818,6 +16832,7 @@ interface paths {
16818
16832
  type: string;
16819
16833
  }[];
16820
16834
  id: string;
16835
+ lastModifiedSource: string | null;
16821
16836
  lastRunAt?: string | null;
16822
16837
  name: string;
16823
16838
  organizationId: string | null;
@@ -17113,6 +17128,7 @@ interface paths {
17113
17128
  type: string;
17114
17129
  }[];
17115
17130
  id: string;
17131
+ lastModifiedSource: string | null;
17116
17132
  lastRunAt?: string | null;
17117
17133
  name: string;
17118
17134
  organizationId: string | null;
@@ -17218,6 +17234,7 @@ interface paths {
17218
17234
  type: string;
17219
17235
  }[];
17220
17236
  id: string;
17237
+ lastModifiedSource: string | null;
17221
17238
  lastRunAt?: string | null;
17222
17239
  name: string;
17223
17240
  organizationId: string | null;
@@ -38897,6 +38914,8 @@ interface paths {
38897
38914
  "application/json": {
38898
38915
  avgCostUsd: number | null;
38899
38916
  avgDurationMs: number | null;
38917
+ /** @description Portion of avgCostUsd asserted by externally-run agents pushed to /v1/executions/ingest, over the same run count. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
38918
+ avgSelfReportedCostUsd: number | null;
38900
38919
  completed: number;
38901
38920
  failed: number;
38902
38921
  last7Days: {
@@ -38906,6 +38925,8 @@ interface paths {
38906
38925
  }[];
38907
38926
  successRate: number | null;
38908
38927
  total: number;
38928
+ /** @description Count of rows behind these costs that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
38929
+ unpricedExecutions: number;
38909
38930
  };
38910
38931
  };
38911
38932
  };
package/dist/index.d.ts CHANGED
@@ -894,7 +894,9 @@ interface paths {
894
894
  /** Format: uri */
895
895
  endpoint: string;
896
896
  /** @enum {string} */
897
- framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "custom";
897
+ framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom";
898
+ /** @enum {string} */
899
+ protocol?: "a2a" | "runtype-stream";
898
900
  retryCount?: number;
899
901
  skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none");
900
902
  skillOrchestrator?: {
@@ -2000,7 +2002,9 @@ interface paths {
2000
2002
  /** Format: uri */
2001
2003
  endpoint: string;
2002
2004
  /** @enum {string} */
2003
- framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "custom";
2005
+ framework?: "langchain" | "vercel_ai" | "crewai" | "cloudflare" | "autogen" | "flue" | "custom";
2006
+ /** @enum {string} */
2007
+ protocol?: "a2a" | "runtype-stream";
2004
2008
  retryCount?: number;
2005
2009
  skillOrchestration?: ("delegate" | "managed") | ("agent_skill" | "runtype" | "none");
2006
2010
  skillOrchestrator?: {
@@ -5449,7 +5453,11 @@ interface paths {
5449
5453
  "application/json": {
5450
5454
  batchExecutionId: string;
5451
5455
  recordId: string;
5456
+ /** @description Portion of totalCostUsd asserted by an externally-run agent pushed to /v1/executions/ingest. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
5457
+ selfReportedCostUsd: number;
5452
5458
  totalCostUsd: number;
5459
+ /** @description Count of rows inside totalCostUsd that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
5460
+ unpricedExecutions: number;
5453
5461
  };
5454
5462
  };
5455
5463
  };
@@ -5632,7 +5640,7 @@ interface paths {
5632
5640
  };
5633
5641
  /**
5634
5642
  * Get batch execution total cost
5635
- * @description Returns the total cost across all records, flow steps, agent executions, and nested subagents.
5643
+ * @description Returns the total cost across all records, flow steps, agent executions, and nested subagents, decomposed by how much the figure can be trusted.
5636
5644
  */
5637
5645
  get: {
5638
5646
  parameters: {
@@ -5654,7 +5662,11 @@ interface paths {
5654
5662
  content: {
5655
5663
  "application/json": {
5656
5664
  batchExecutionId: string;
5665
+ /** @description Portion of totalCostUsd asserted by an externally-run agent pushed to /v1/executions/ingest. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
5666
+ selfReportedCostUsd: number;
5657
5667
  totalCostUsd: number;
5668
+ /** @description Count of rows inside totalCostUsd that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
5669
+ unpricedExecutions: number;
5658
5670
  };
5659
5671
  };
5660
5672
  };
@@ -11820,6 +11832,7 @@ interface paths {
11820
11832
  "application/json": {
11821
11833
  /** @description The execution ID to resume */
11822
11834
  executionId: string;
11835
+ /** @description Optional conversation override for the resumed leg. It REPLACES the stored conversation rather than being appended to it, so send the full conversation you want the model to see, not just the new turn. Omit it to keep the stored conversation unchanged. A `system` message must come first, as in any conversation. Note this is the flow client-tool continuation contract; an agent checkpoint resume (`options.resumeFrom` on `/v1/dispatch`) instead APPENDS its `messages` after the snapshot history — send only new input there. */
11823
11836
  messages?: {
11824
11837
  content: string | ({
11825
11838
  text: string;
@@ -16701,6 +16714,7 @@ interface paths {
16701
16714
  data: {
16702
16715
  createdAt: string;
16703
16716
  id: string;
16717
+ lastModifiedSource: string | null;
16704
16718
  lastRunAt: string | null;
16705
16719
  name: string;
16706
16720
  updatedAt: string;
@@ -16818,6 +16832,7 @@ interface paths {
16818
16832
  type: string;
16819
16833
  }[];
16820
16834
  id: string;
16835
+ lastModifiedSource: string | null;
16821
16836
  lastRunAt?: string | null;
16822
16837
  name: string;
16823
16838
  organizationId: string | null;
@@ -17113,6 +17128,7 @@ interface paths {
17113
17128
  type: string;
17114
17129
  }[];
17115
17130
  id: string;
17131
+ lastModifiedSource: string | null;
17116
17132
  lastRunAt?: string | null;
17117
17133
  name: string;
17118
17134
  organizationId: string | null;
@@ -17218,6 +17234,7 @@ interface paths {
17218
17234
  type: string;
17219
17235
  }[];
17220
17236
  id: string;
17237
+ lastModifiedSource: string | null;
17221
17238
  lastRunAt?: string | null;
17222
17239
  name: string;
17223
17240
  organizationId: string | null;
@@ -38897,6 +38914,8 @@ interface paths {
38897
38914
  "application/json": {
38898
38915
  avgCostUsd: number | null;
38899
38916
  avgDurationMs: number | null;
38917
+ /** @description Portion of avgCostUsd asserted by externally-run agents pushed to /v1/executions/ingest, over the same run count. Unverified: Runtype neither dispatched nor paid for it. 0 unless external runs were ingested. */
38918
+ avgSelfReportedCostUsd: number | null;
38900
38919
  completed: number;
38901
38920
  failed: number;
38902
38921
  last7Days: {
@@ -38906,6 +38925,8 @@ interface paths {
38906
38925
  }[];
38907
38926
  successRate: number | null;
38908
38927
  total: number;
38928
+ /** @description Count of rows behind these costs that recorded no cost figure. Their contribution is 0 because the cost is unknown, not because it was free. */
38929
+ unpricedExecutions: number;
38909
38930
  };
38910
38931
  };
38911
38932
  };
package/dist/index.mjs CHANGED
@@ -6264,7 +6264,7 @@ var Runtype = class {
6264
6264
 
6265
6265
  // src/version.ts
6266
6266
  var FALLBACK_VERSION = "0.0.0";
6267
- var SDK_VERSION = "7.1.0".length > 0 ? "7.1.0" : FALLBACK_VERSION;
6267
+ var SDK_VERSION = "7.2.1".length > 0 ? "7.2.1" : FALLBACK_VERSION;
6268
6268
  var RUNTYPE_CLIENT_KIND = "sdk";
6269
6269
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6270
6270
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "7.1.0",
3
+ "version": "7.2.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",