@runtypelabs/sdk 11.14.0 → 11.15.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
@@ -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.1";
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: {
@@ -35135,6 +35148,10 @@ interface paths {
35135
35148
  publishedVersionNumbers?: {
35136
35149
  [key: string]: number | null;
35137
35150
  };
35151
+ /** @description Record types each capability flow writes or reads, from the literal recordType of its record steps */
35152
+ recordTypesByFlow?: {
35153
+ [key: string]: string[];
35154
+ };
35138
35155
  /** @description Display name per capability flow or agent id */
35139
35156
  resourceNames?: {
35140
35157
  [key: string]: string;
@@ -35557,6 +35574,18 @@ interface paths {
35557
35574
  executionId: string;
35558
35575
  /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
35559
35576
  expiresAt?: string | null;
35577
+ /** @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. */
35578
+ externalAgent?: {
35579
+ /** @description Hostname of the endpoint that answered, never its path or query. */
35580
+ endpointHost: string | null;
35581
+ /** @description The framework the agent's config declares, a builder-chosen label; null when unset. */
35582
+ framework: string | null;
35583
+ /**
35584
+ * @description The wire protocol the external agent answered over.
35585
+ * @enum {string}
35586
+ */
35587
+ protocol: "a2a" | "runtype-stream";
35588
+ } | null;
35560
35589
  /** @description Fidelity of the projection behind this row. */
35561
35590
  fidelityTier: string | null;
35562
35591
  /** @description Flow that ran. */
@@ -36596,7 +36625,7 @@ interface paths {
36596
36625
  content: {
36597
36626
  "application/json": {
36598
36627
  /** @enum {string} */
36599
- configurationStatus: "configured" | "needs_configuration" | "invalid";
36628
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
36600
36629
  configurationUrl: string;
36601
36630
  handoff?: {
36602
36631
  expiresAt?: string;
@@ -36619,7 +36648,7 @@ interface paths {
36619
36648
  secretId?: string;
36620
36649
  secretKey: string;
36621
36650
  /** @enum {string} */
36622
- status: "configured" | "needs_configuration" | "invalid";
36651
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
36623
36652
  version?: number;
36624
36653
  }[];
36625
36654
  };
@@ -53052,7 +53081,7 @@ interface paths {
53052
53081
  };
53053
53082
  };
53054
53083
  };
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 */
53084
+ /** @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
53085
  400: {
53057
53086
  headers: {
53058
53087
  [name: string]: unknown;
@@ -53704,7 +53733,7 @@ interface paths {
53704
53733
  content: {
53705
53734
  "application/json": {
53706
53735
  /** @enum {string} */
53707
- configurationStatus: "configured" | "needs_configuration" | "invalid";
53736
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
53708
53737
  description?: string;
53709
53738
  handoff?: {
53710
53739
  expiresAt?: string;
@@ -53724,7 +53753,7 @@ interface paths {
53724
53753
  secretId?: string;
53725
53754
  secretKey: string;
53726
53755
  /** @enum {string} */
53727
- status: "configured" | "needs_configuration" | "invalid";
53756
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
53728
53757
  version?: number;
53729
53758
  }[];
53730
53759
  pendingConfigurationCount: number;
@@ -53849,7 +53878,7 @@ interface paths {
53849
53878
  "application/json": {
53850
53879
  manifest: {
53851
53880
  /** @enum {string} */
53852
- configurationStatus: "configured" | "needs_configuration" | "invalid";
53881
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
53853
53882
  description?: string;
53854
53883
  handoff?: {
53855
53884
  expiresAt?: string;
@@ -53869,7 +53898,7 @@ interface paths {
53869
53898
  secretId?: string;
53870
53899
  secretKey: string;
53871
53900
  /** @enum {string} */
53872
- status: "configured" | "needs_configuration" | "invalid";
53901
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
53873
53902
  version?: number;
53874
53903
  }[];
53875
53904
  pendingConfigurationCount: number;
@@ -64038,6 +64067,18 @@ interface components {
64038
64067
  executionId: string;
64039
64068
  /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
64040
64069
  expiresAt?: string | null;
64070
+ /** @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. */
64071
+ externalAgent?: {
64072
+ /** @description Hostname of the endpoint that answered, never its path or query. */
64073
+ endpointHost: string | null;
64074
+ /** @description The framework the agent's config declares, a builder-chosen label; null when unset. */
64075
+ framework: string | null;
64076
+ /**
64077
+ * @description The wire protocol the external agent answered over.
64078
+ * @enum {string}
64079
+ */
64080
+ protocol: "a2a" | "runtype-stream";
64081
+ } | null;
64041
64082
  /** @description Fidelity of the projection behind this row. */
64042
64083
  fidelityTier: string | null;
64043
64084
  /** @description Flow that ran. */
@@ -64689,7 +64730,7 @@ interface components {
64689
64730
  kind: "run" | "records" | "none";
64690
64731
  };
64691
64732
  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. */
64733
+ /** @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
64734
  code?: string;
64694
64735
  /** @description Human-readable error message. */
64695
64736
  message?: string;
@@ -76894,6 +76935,16 @@ interface RunListRow {
76894
76935
  /** Its display name when the API could resolve one; null otherwise. */
76895
76936
  label: string | null;
76896
76937
  } | null;
76938
+ /**
76939
+ * The external agent that answered the turn: wire protocol, the framework its
76940
+ * config declares, and the endpoint hostname. NULL on any other run, and on an
76941
+ * external-agent run whose header predates the stamp.
76942
+ */
76943
+ externalAgent?: {
76944
+ protocol: 'a2a' | 'runtype-stream';
76945
+ framework: string | null;
76946
+ endpointHost: string | null;
76947
+ } | null;
76897
76948
  stopReason?: string | null;
76898
76949
  iterations?: number | null;
76899
76950
  /**
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: {
@@ -35135,6 +35148,10 @@ interface paths {
35135
35148
  publishedVersionNumbers?: {
35136
35149
  [key: string]: number | null;
35137
35150
  };
35151
+ /** @description Record types each capability flow writes or reads, from the literal recordType of its record steps */
35152
+ recordTypesByFlow?: {
35153
+ [key: string]: string[];
35154
+ };
35138
35155
  /** @description Display name per capability flow or agent id */
35139
35156
  resourceNames?: {
35140
35157
  [key: string]: string;
@@ -35557,6 +35574,18 @@ interface paths {
35557
35574
  executionId: string;
35558
35575
  /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
35559
35576
  expiresAt?: string | null;
35577
+ /** @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. */
35578
+ externalAgent?: {
35579
+ /** @description Hostname of the endpoint that answered, never its path or query. */
35580
+ endpointHost: string | null;
35581
+ /** @description The framework the agent's config declares, a builder-chosen label; null when unset. */
35582
+ framework: string | null;
35583
+ /**
35584
+ * @description The wire protocol the external agent answered over.
35585
+ * @enum {string}
35586
+ */
35587
+ protocol: "a2a" | "runtype-stream";
35588
+ } | null;
35560
35589
  /** @description Fidelity of the projection behind this row. */
35561
35590
  fidelityTier: string | null;
35562
35591
  /** @description Flow that ran. */
@@ -36596,7 +36625,7 @@ interface paths {
36596
36625
  content: {
36597
36626
  "application/json": {
36598
36627
  /** @enum {string} */
36599
- configurationStatus: "configured" | "needs_configuration" | "invalid";
36628
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
36600
36629
  configurationUrl: string;
36601
36630
  handoff?: {
36602
36631
  expiresAt?: string;
@@ -36619,7 +36648,7 @@ interface paths {
36619
36648
  secretId?: string;
36620
36649
  secretKey: string;
36621
36650
  /** @enum {string} */
36622
- status: "configured" | "needs_configuration" | "invalid";
36651
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
36623
36652
  version?: number;
36624
36653
  }[];
36625
36654
  };
@@ -53052,7 +53081,7 @@ interface paths {
53052
53081
  };
53053
53082
  };
53054
53083
  };
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 */
53084
+ /** @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
53085
  400: {
53057
53086
  headers: {
53058
53087
  [name: string]: unknown;
@@ -53704,7 +53733,7 @@ interface paths {
53704
53733
  content: {
53705
53734
  "application/json": {
53706
53735
  /** @enum {string} */
53707
- configurationStatus: "configured" | "needs_configuration" | "invalid";
53736
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
53708
53737
  description?: string;
53709
53738
  handoff?: {
53710
53739
  expiresAt?: string;
@@ -53724,7 +53753,7 @@ interface paths {
53724
53753
  secretId?: string;
53725
53754
  secretKey: string;
53726
53755
  /** @enum {string} */
53727
- status: "configured" | "needs_configuration" | "invalid";
53756
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
53728
53757
  version?: number;
53729
53758
  }[];
53730
53759
  pendingConfigurationCount: number;
@@ -53849,7 +53878,7 @@ interface paths {
53849
53878
  "application/json": {
53850
53879
  manifest: {
53851
53880
  /** @enum {string} */
53852
- configurationStatus: "configured" | "needs_configuration" | "invalid";
53881
+ configurationStatus: "configured" | "needs_configuration" | "revoked" | "invalid";
53853
53882
  description?: string;
53854
53883
  handoff?: {
53855
53884
  expiresAt?: string;
@@ -53869,7 +53898,7 @@ interface paths {
53869
53898
  secretId?: string;
53870
53899
  secretKey: string;
53871
53900
  /** @enum {string} */
53872
- status: "configured" | "needs_configuration" | "invalid";
53901
+ status: "configured" | "needs_configuration" | "revoked" | "invalid";
53873
53902
  version?: number;
53874
53903
  }[];
53875
53904
  pendingConfigurationCount: number;
@@ -64038,6 +64067,18 @@ interface components {
64038
64067
  executionId: string;
64039
64068
  /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
64040
64069
  expiresAt?: string | null;
64070
+ /** @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. */
64071
+ externalAgent?: {
64072
+ /** @description Hostname of the endpoint that answered, never its path or query. */
64073
+ endpointHost: string | null;
64074
+ /** @description The framework the agent's config declares, a builder-chosen label; null when unset. */
64075
+ framework: string | null;
64076
+ /**
64077
+ * @description The wire protocol the external agent answered over.
64078
+ * @enum {string}
64079
+ */
64080
+ protocol: "a2a" | "runtype-stream";
64081
+ } | null;
64041
64082
  /** @description Fidelity of the projection behind this row. */
64042
64083
  fidelityTier: string | null;
64043
64084
  /** @description Flow that ran. */
@@ -64689,7 +64730,7 @@ interface components {
64689
64730
  kind: "run" | "records" | "none";
64690
64731
  };
64691
64732
  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. */
64733
+ /** @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
64734
  code?: string;
64694
64735
  /** @description Human-readable error message. */
64695
64736
  message?: string;
@@ -76894,6 +76935,16 @@ interface RunListRow {
76894
76935
  /** Its display name when the API could resolve one; null otherwise. */
76895
76936
  label: string | null;
76896
76937
  } | null;
76938
+ /**
76939
+ * The external agent that answered the turn: wire protocol, the framework its
76940
+ * config declares, and the endpoint hostname. NULL on any other run, and on an
76941
+ * external-agent run whose header predates the stamp.
76942
+ */
76943
+ externalAgent?: {
76944
+ protocol: 'a2a' | 'runtype-stream';
76945
+ framework: string | null;
76946
+ endpointHost: string | null;
76947
+ } | null;
76897
76948
  stopReason?: string | null;
76898
76949
  iterations?: number | null;
76899
76950
  /**
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.1";
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.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",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {},
26
26
  "devDependencies": {
27
- "@runtypelabs/shared": "3.105.1",
27
+ "@runtypelabs/shared": "3.107.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.2",
30
30
  "typescript": "^6.0.3",