@runtypelabs/sdk 10.12.0 → 10.12.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
@@ -14445,7 +14445,7 @@ function transformQueryParams(params) {
14445
14445
  }
14446
14446
  //#endregion
14447
14447
  //#region src/version.ts
14448
- const SDK_VERSION = "10.12.0";
14448
+ const SDK_VERSION = "10.12.1";
14449
14449
  /**
14450
14450
  * Canonical client identity the API uses for attribution
14451
14451
  * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
package/dist/index.d.cts CHANGED
@@ -1884,7 +1884,7 @@ interface paths {
1884
1884
  put?: never;
1885
1885
  /**
1886
1886
  * Fetch external agent card
1887
- * @description Proxy-fetch an external agent card from a URL, avoiding CORS issues. The URL is validated against SSRF attacks.
1887
+ * @description Proxy-fetch an external agent card from a URL, avoiding CORS issues. The URL is validated against SSRF attacks. With `transport: "device"`, the card is fetched through the paired local listener `deviceId`, so the URL must be a loopback address on that machine. Pass `bearerToken` when the card itself requires one.
1888
1888
  */
1889
1889
  post: {
1890
1890
  parameters: {
@@ -1896,6 +1896,15 @@ interface paths {
1896
1896
  requestBody?: {
1897
1897
  content: {
1898
1898
  "application/json": {
1899
+ /** @description Sent as `Authorization: Bearer` on the card request. Never stored or echoed. */
1900
+ bearerToken?: string;
1901
+ /** @description The paired listener to fetch through. Required when transport is "device". */
1902
+ deviceId?: string;
1903
+ /**
1904
+ * @description How to reach the card: directly (default) or through a paired local listener
1905
+ * @enum {string}
1906
+ */
1907
+ transport?: "http" | "device";
1899
1908
  /** Format: uri */
1900
1909
  url: string;
1901
1910
  };
@@ -4481,6 +4490,15 @@ interface paths {
4481
4490
  "application/json": components["schemas"]["Error"];
4482
4491
  };
4483
4492
  };
4493
+ /** @description An external agent call failed upstream: rejected credentials, rate limited, an HTTP error, a network failure, or an invalid response */
4494
+ 502: {
4495
+ headers: {
4496
+ [name: string]: unknown;
4497
+ };
4498
+ content: {
4499
+ "application/json": components["schemas"]["Error"];
4500
+ };
4501
+ };
4484
4502
  /** @description Asynchronous execution unavailable */
4485
4503
  503: {
4486
4504
  headers: {
@@ -4490,6 +4508,15 @@ interface paths {
4490
4508
  "application/json": components["schemas"]["Error"];
4491
4509
  };
4492
4510
  };
4511
+ /** @description An external agent call timed out */
4512
+ 504: {
4513
+ headers: {
4514
+ [name: string]: unknown;
4515
+ };
4516
+ content: {
4517
+ "application/json": components["schemas"]["Error"];
4518
+ };
4519
+ };
4493
4520
  };
4494
4521
  };
4495
4522
  delete?: never;
package/dist/index.d.ts CHANGED
@@ -1884,7 +1884,7 @@ interface paths {
1884
1884
  put?: never;
1885
1885
  /**
1886
1886
  * Fetch external agent card
1887
- * @description Proxy-fetch an external agent card from a URL, avoiding CORS issues. The URL is validated against SSRF attacks.
1887
+ * @description Proxy-fetch an external agent card from a URL, avoiding CORS issues. The URL is validated against SSRF attacks. With `transport: "device"`, the card is fetched through the paired local listener `deviceId`, so the URL must be a loopback address on that machine. Pass `bearerToken` when the card itself requires one.
1888
1888
  */
1889
1889
  post: {
1890
1890
  parameters: {
@@ -1896,6 +1896,15 @@ interface paths {
1896
1896
  requestBody?: {
1897
1897
  content: {
1898
1898
  "application/json": {
1899
+ /** @description Sent as `Authorization: Bearer` on the card request. Never stored or echoed. */
1900
+ bearerToken?: string;
1901
+ /** @description The paired listener to fetch through. Required when transport is "device". */
1902
+ deviceId?: string;
1903
+ /**
1904
+ * @description How to reach the card: directly (default) or through a paired local listener
1905
+ * @enum {string}
1906
+ */
1907
+ transport?: "http" | "device";
1899
1908
  /** Format: uri */
1900
1909
  url: string;
1901
1910
  };
@@ -4481,6 +4490,15 @@ interface paths {
4481
4490
  "application/json": components["schemas"]["Error"];
4482
4491
  };
4483
4492
  };
4493
+ /** @description An external agent call failed upstream: rejected credentials, rate limited, an HTTP error, a network failure, or an invalid response */
4494
+ 502: {
4495
+ headers: {
4496
+ [name: string]: unknown;
4497
+ };
4498
+ content: {
4499
+ "application/json": components["schemas"]["Error"];
4500
+ };
4501
+ };
4484
4502
  /** @description Asynchronous execution unavailable */
4485
4503
  503: {
4486
4504
  headers: {
@@ -4490,6 +4508,15 @@ interface paths {
4490
4508
  "application/json": components["schemas"]["Error"];
4491
4509
  };
4492
4510
  };
4511
+ /** @description An external agent call timed out */
4512
+ 504: {
4513
+ headers: {
4514
+ [name: string]: unknown;
4515
+ };
4516
+ content: {
4517
+ "application/json": components["schemas"]["Error"];
4518
+ };
4519
+ };
4493
4520
  };
4494
4521
  };
4495
4522
  delete?: never;
package/dist/index.mjs CHANGED
@@ -14444,7 +14444,7 @@ function transformQueryParams(params) {
14444
14444
  }
14445
14445
  //#endregion
14446
14446
  //#region src/version.ts
14447
- const SDK_VERSION = "10.12.0";
14447
+ const SDK_VERSION = "10.12.1";
14448
14448
  /**
14449
14449
  * Canonical client identity the API uses for attribution
14450
14450
  * (`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": "10.12.0",
3
+ "version": "10.12.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.72.0",
27
+ "@runtypelabs/shared": "3.73.0",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsdown": "^0.23.0",
30
30
  "typescript": "^6.0.3",