@runtypelabs/sdk 11.14.0 → 11.15.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
@@ -14745,7 +14745,7 @@ function transformQueryParams(params) {
14745
14745
  return result;
14746
14746
  }
14747
14747
  // src/version.ts
14748
- const SDK_VERSION = "11.14.0";
14748
+ const SDK_VERSION = "11.15.0";
14749
14749
  /**
14750
14750
  * Canonical client identity the API uses for attribution
14751
14751
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/dist/index.d.cts CHANGED
@@ -11159,7 +11159,10 @@ interface paths {
11159
11159
  */
11160
11160
  post: {
11161
11161
  parameters: {
11162
- query?: never;
11162
+ query?: {
11163
+ /** @description Optional Persona SDK version for telemetry. Does not affect authorization or behavior. */
11164
+ personaVersion?: string;
11165
+ };
11163
11166
  header?: never;
11164
11167
  path?: never;
11165
11168
  cookie?: never;
@@ -11214,6 +11217,7 @@ interface paths {
11214
11217
  visitorHistory?: boolean;
11215
11218
  visitorToken?: string;
11216
11219
  };
11220
+ "text/plain": string;
11217
11221
  };
11218
11222
  };
11219
11223
  responses: {
@@ -30817,6 +30821,15 @@ interface paths {
30817
30821
  "application/json": components["schemas"]["Error"];
30818
30822
  };
30819
30823
  };
30824
+ /** @description Another open conversation already exists for this thread */
30825
+ 409: {
30826
+ headers: {
30827
+ [name: string]: unknown;
30828
+ };
30829
+ content: {
30830
+ "application/json": components["schemas"]["Error"];
30831
+ };
30832
+ };
30820
30833
  /** @description Internal server error */
30821
30834
  500: {
30822
30835
  headers: {
@@ -35557,6 +35570,18 @@ interface paths {
35557
35570
  executionId: string;
35558
35571
  /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
35559
35572
  expiresAt?: string | null;
35573
+ /** @description Set when an external agent (A2A or runtype-stream) answered the turn: the protocol, declared framework and endpoint host stamped on the run header when it was invoked. Null on any other run, and on an external-agent run whose header predates the stamp. A repointed agent keeps one agentId, so this is what tells two of its runs apart. */
35574
+ externalAgent?: {
35575
+ /** @description Hostname of the endpoint that answered, never its path or query. */
35576
+ endpointHost: string | null;
35577
+ /** @description The framework the agent's config declares, a builder-chosen label; null when unset. */
35578
+ framework: string | null;
35579
+ /**
35580
+ * @description The wire protocol the external agent answered over.
35581
+ * @enum {string}
35582
+ */
35583
+ protocol: "a2a" | "runtype-stream";
35584
+ } | null;
35560
35585
  /** @description Fidelity of the projection behind this row. */
35561
35586
  fidelityTier: string | null;
35562
35587
  /** @description Flow that ran. */
@@ -36596,7 +36621,7 @@ interface paths {
36596
36621
  content: {
36597
36622
  "application/json": {
36598
36623
  /** @enum {string} */
36599
- configurationStatus: "configured" | "needs_configuration" | "invalid";
36624
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
36600
36625
  configurationUrl: string;
36601
36626
  handoff?: {
36602
36627
  expiresAt?: string;
@@ -36619,7 +36644,7 @@ interface paths {
36619
36644
  secretId?: string;
36620
36645
  secretKey: string;
36621
36646
  /** @enum {string} */
36622
- status: "configured" | "needs_configuration" | "invalid";
36647
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
36623
36648
  version?: number;
36624
36649
  }[];
36625
36650
  };
@@ -53052,7 +53077,7 @@ interface paths {
53052
53077
  };
53053
53078
  };
53054
53079
  };
53055
- /** @description Invalid ID format, RUNTIME_LANE_INELIGIBLE for a flow target the batch host cannot run, or SCHEDULE_AGENT_CONFIG_UNSUPPORTED for an agent a schedule cannot run */
53080
+ /** @description Invalid ID format, RUNTIME_LANE_INELIGIBLE for a flow target the batch host cannot run, SCHEDULE_AGENT_CONFIG_UNSUPPORTED for an agent a schedule cannot run, or SCHEDULE_ONE_TIME_ELAPSED for a one-time schedule whose runAt has passed */
53056
53081
  400: {
53057
53082
  headers: {
53058
53083
  [name: string]: unknown;
@@ -53704,7 +53729,7 @@ interface paths {
53704
53729
  content: {
53705
53730
  "application/json": {
53706
53731
  /** @enum {string} */
53707
- configurationStatus: "configured" | "needs_configuration" | "invalid";
53732
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
53708
53733
  description?: string;
53709
53734
  handoff?: {
53710
53735
  expiresAt?: string;
@@ -53724,7 +53749,7 @@ interface paths {
53724
53749
  secretId?: string;
53725
53750
  secretKey: string;
53726
53751
  /** @enum {string} */
53727
- status: "configured" | "needs_configuration" | "invalid";
53752
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
53728
53753
  version?: number;
53729
53754
  }[];
53730
53755
  pendingConfigurationCount: number;
@@ -53849,7 +53874,7 @@ interface paths {
53849
53874
  "application/json": {
53850
53875
  manifest: {
53851
53876
  /** @enum {string} */
53852
- configurationStatus: "configured" | "needs_configuration" | "invalid";
53877
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
53853
53878
  description?: string;
53854
53879
  handoff?: {
53855
53880
  expiresAt?: string;
@@ -53869,7 +53894,7 @@ interface paths {
53869
53894
  secretId?: string;
53870
53895
  secretKey: string;
53871
53896
  /** @enum {string} */
53872
- status: "configured" | "needs_configuration" | "invalid";
53897
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
53873
53898
  version?: number;
53874
53899
  }[];
53875
53900
  pendingConfigurationCount: number;
@@ -64038,6 +64063,18 @@ interface components {
64038
64063
  executionId: string;
64039
64064
  /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
64040
64065
  expiresAt?: string | null;
64066
+ /** @description Set when an external agent (A2A or runtype-stream) answered the turn: the protocol, declared framework and endpoint host stamped on the run header when it was invoked. Null on any other run, and on an external-agent run whose header predates the stamp. A repointed agent keeps one agentId, so this is what tells two of its runs apart. */
64067
+ externalAgent?: {
64068
+ /** @description Hostname of the endpoint that answered, never its path or query. */
64069
+ endpointHost: string | null;
64070
+ /** @description The framework the agent's config declares, a builder-chosen label; null when unset. */
64071
+ framework: string | null;
64072
+ /**
64073
+ * @description The wire protocol the external agent answered over.
64074
+ * @enum {string}
64075
+ */
64076
+ protocol: "a2a" | "runtype-stream";
64077
+ } | null;
64041
64078
  /** @description Fidelity of the projection behind this row. */
64042
64079
  fidelityTier: string | null;
64043
64080
  /** @description Flow that ran. */
@@ -64689,7 +64726,7 @@ interface components {
64689
64726
  kind: "run" | "records" | "none";
64690
64727
  };
64691
64728
  ScheduleValidationError: components["schemas"]["Error"] & {
64692
- /** @description Stable error code. SCHEDULE_AGENT_CONFIG_UNSUPPORTED: the target agent uses config a schedule cannot supply; `details[].path` names it. RUNTIME_LANE_INELIGIBLE: the target flow uses capabilities the batch host cannot run; `reasons` names them. */
64729
+ /** @description Stable error code. SCHEDULE_AGENT_CONFIG_UNSUPPORTED: the target agent uses config a schedule cannot supply; `details[].path` names it. RUNTIME_LANE_INELIGIBLE: the target flow uses capabilities the batch host cannot run; `reasons` names them. SCHEDULE_ONE_TIME_ELAPSED: a resumed one-time schedule has no future `runAt` to fire at. */
64693
64730
  code?: string;
64694
64731
  /** @description Human-readable error message. */
64695
64732
  message?: string;
@@ -76894,6 +76931,16 @@ interface RunListRow {
76894
76931
  /** Its display name when the API could resolve one; null otherwise. */
76895
76932
  label: string | null;
76896
76933
  } | null;
76934
+ /**
76935
+ * The external agent that answered the turn: wire protocol, the framework its
76936
+ * config declares, and the endpoint hostname. NULL on any other run, and on an
76937
+ * external-agent run whose header predates the stamp.
76938
+ */
76939
+ externalAgent?: {
76940
+ protocol: 'a2a' | 'runtype-stream';
76941
+ framework: string | null;
76942
+ endpointHost: string | null;
76943
+ } | null;
76897
76944
  stopReason?: string | null;
76898
76945
  iterations?: number | null;
76899
76946
  /**
package/dist/index.d.ts CHANGED
@@ -11159,7 +11159,10 @@ interface paths {
11159
11159
  */
11160
11160
  post: {
11161
11161
  parameters: {
11162
- query?: never;
11162
+ query?: {
11163
+ /** @description Optional Persona SDK version for telemetry. Does not affect authorization or behavior. */
11164
+ personaVersion?: string;
11165
+ };
11163
11166
  header?: never;
11164
11167
  path?: never;
11165
11168
  cookie?: never;
@@ -11214,6 +11217,7 @@ interface paths {
11214
11217
  visitorHistory?: boolean;
11215
11218
  visitorToken?: string;
11216
11219
  };
11220
+ "text/plain": string;
11217
11221
  };
11218
11222
  };
11219
11223
  responses: {
@@ -30817,6 +30821,15 @@ interface paths {
30817
30821
  "application/json": components["schemas"]["Error"];
30818
30822
  };
30819
30823
  };
30824
+ /** @description Another open conversation already exists for this thread */
30825
+ 409: {
30826
+ headers: {
30827
+ [name: string]: unknown;
30828
+ };
30829
+ content: {
30830
+ "application/json": components["schemas"]["Error"];
30831
+ };
30832
+ };
30820
30833
  /** @description Internal server error */
30821
30834
  500: {
30822
30835
  headers: {
@@ -35557,6 +35570,18 @@ interface paths {
35557
35570
  executionId: string;
35558
35571
  /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
35559
35572
  expiresAt?: string | null;
35573
+ /** @description Set when an external agent (A2A or runtype-stream) answered the turn: the protocol, declared framework and endpoint host stamped on the run header when it was invoked. Null on any other run, and on an external-agent run whose header predates the stamp. A repointed agent keeps one agentId, so this is what tells two of its runs apart. */
35574
+ externalAgent?: {
35575
+ /** @description Hostname of the endpoint that answered, never its path or query. */
35576
+ endpointHost: string | null;
35577
+ /** @description The framework the agent's config declares, a builder-chosen label; null when unset. */
35578
+ framework: string | null;
35579
+ /**
35580
+ * @description The wire protocol the external agent answered over.
35581
+ * @enum {string}
35582
+ */
35583
+ protocol: "a2a" | "runtype-stream";
35584
+ } | null;
35560
35585
  /** @description Fidelity of the projection behind this row. */
35561
35586
  fidelityTier: string | null;
35562
35587
  /** @description Flow that ran. */
@@ -36596,7 +36621,7 @@ interface paths {
36596
36621
  content: {
36597
36622
  "application/json": {
36598
36623
  /** @enum {string} */
36599
- configurationStatus: "configured" | "needs_configuration" | "invalid";
36624
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
36600
36625
  configurationUrl: string;
36601
36626
  handoff?: {
36602
36627
  expiresAt?: string;
@@ -36619,7 +36644,7 @@ interface paths {
36619
36644
  secretId?: string;
36620
36645
  secretKey: string;
36621
36646
  /** @enum {string} */
36622
- status: "configured" | "needs_configuration" | "invalid";
36647
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
36623
36648
  version?: number;
36624
36649
  }[];
36625
36650
  };
@@ -53052,7 +53077,7 @@ interface paths {
53052
53077
  };
53053
53078
  };
53054
53079
  };
53055
- /** @description Invalid ID format, RUNTIME_LANE_INELIGIBLE for a flow target the batch host cannot run, or SCHEDULE_AGENT_CONFIG_UNSUPPORTED for an agent a schedule cannot run */
53080
+ /** @description Invalid ID format, RUNTIME_LANE_INELIGIBLE for a flow target the batch host cannot run, SCHEDULE_AGENT_CONFIG_UNSUPPORTED for an agent a schedule cannot run, or SCHEDULE_ONE_TIME_ELAPSED for a one-time schedule whose runAt has passed */
53056
53081
  400: {
53057
53082
  headers: {
53058
53083
  [name: string]: unknown;
@@ -53704,7 +53729,7 @@ interface paths {
53704
53729
  content: {
53705
53730
  "application/json": {
53706
53731
  /** @enum {string} */
53707
- configurationStatus: "configured" | "needs_configuration" | "invalid";
53732
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
53708
53733
  description?: string;
53709
53734
  handoff?: {
53710
53735
  expiresAt?: string;
@@ -53724,7 +53749,7 @@ interface paths {
53724
53749
  secretId?: string;
53725
53750
  secretKey: string;
53726
53751
  /** @enum {string} */
53727
- status: "configured" | "needs_configuration" | "invalid";
53752
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
53728
53753
  version?: number;
53729
53754
  }[];
53730
53755
  pendingConfigurationCount: number;
@@ -53849,7 +53874,7 @@ interface paths {
53849
53874
  "application/json": {
53850
53875
  manifest: {
53851
53876
  /** @enum {string} */
53852
- configurationStatus: "configured" | "needs_configuration" | "invalid";
53877
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
53853
53878
  description?: string;
53854
53879
  handoff?: {
53855
53880
  expiresAt?: string;
@@ -53869,7 +53894,7 @@ interface paths {
53869
53894
  secretId?: string;
53870
53895
  secretKey: string;
53871
53896
  /** @enum {string} */
53872
- status: "configured" | "needs_configuration" | "invalid";
53897
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
53873
53898
  version?: number;
53874
53899
  }[];
53875
53900
  pendingConfigurationCount: number;
@@ -64038,6 +64063,18 @@ interface components {
64038
64063
  executionId: string;
64039
64064
  /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
64040
64065
  expiresAt?: string | null;
64066
+ /** @description Set when an external agent (A2A or runtype-stream) answered the turn: the protocol, declared framework and endpoint host stamped on the run header when it was invoked. Null on any other run, and on an external-agent run whose header predates the stamp. A repointed agent keeps one agentId, so this is what tells two of its runs apart. */
64067
+ externalAgent?: {
64068
+ /** @description Hostname of the endpoint that answered, never its path or query. */
64069
+ endpointHost: string | null;
64070
+ /** @description The framework the agent's config declares, a builder-chosen label; null when unset. */
64071
+ framework: string | null;
64072
+ /**
64073
+ * @description The wire protocol the external agent answered over.
64074
+ * @enum {string}
64075
+ */
64076
+ protocol: "a2a" | "runtype-stream";
64077
+ } | null;
64041
64078
  /** @description Fidelity of the projection behind this row. */
64042
64079
  fidelityTier: string | null;
64043
64080
  /** @description Flow that ran. */
@@ -64689,7 +64726,7 @@ interface components {
64689
64726
  kind: "run" | "records" | "none";
64690
64727
  };
64691
64728
  ScheduleValidationError: components["schemas"]["Error"] & {
64692
- /** @description Stable error code. SCHEDULE_AGENT_CONFIG_UNSUPPORTED: the target agent uses config a schedule cannot supply; `details[].path` names it. RUNTIME_LANE_INELIGIBLE: the target flow uses capabilities the batch host cannot run; `reasons` names them. */
64729
+ /** @description Stable error code. SCHEDULE_AGENT_CONFIG_UNSUPPORTED: the target agent uses config a schedule cannot supply; `details[].path` names it. RUNTIME_LANE_INELIGIBLE: the target flow uses capabilities the batch host cannot run; `reasons` names them. SCHEDULE_ONE_TIME_ELAPSED: a resumed one-time schedule has no future `runAt` to fire at. */
64693
64730
  code?: string;
64694
64731
  /** @description Human-readable error message. */
64695
64732
  message?: string;
@@ -76894,6 +76931,16 @@ interface RunListRow {
76894
76931
  /** Its display name when the API could resolve one; null otherwise. */
76895
76932
  label: string | null;
76896
76933
  } | null;
76934
+ /**
76935
+ * The external agent that answered the turn: wire protocol, the framework its
76936
+ * config declares, and the endpoint hostname. NULL on any other run, and on an
76937
+ * external-agent run whose header predates the stamp.
76938
+ */
76939
+ externalAgent?: {
76940
+ protocol: 'a2a' | 'runtype-stream';
76941
+ framework: string | null;
76942
+ endpointHost: string | null;
76943
+ } | null;
76897
76944
  stopReason?: string | null;
76898
76945
  iterations?: number | null;
76899
76946
  /**
package/dist/index.mjs CHANGED
@@ -14744,7 +14744,7 @@ function transformQueryParams(params) {
14744
14744
  return result;
14745
14745
  }
14746
14746
  // src/version.ts
14747
- const SDK_VERSION = "11.14.0";
14747
+ const SDK_VERSION = "11.15.0";
14748
14748
  /**
14749
14749
  * Canonical client identity the API uses for attribution
14750
14750
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "11.14.0",
3
+ "version": "11.15.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.105.1",
27
+ "@runtypelabs/shared": "3.106.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.2",
30
30
  "typescript": "^6.0.3",