@runtypelabs/sdk 11.13.0 → 11.13.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.cjs +6 -4
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.mjs +6 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -13643,6 +13643,7 @@ let globalClient = null;
|
|
|
13643
13643
|
*/
|
|
13644
13644
|
var RuntypeClient$1 = class {
|
|
13645
13645
|
constructor(config = {}) {
|
|
13646
|
+
this.fetchRequest = config.fetch ?? ((url, init) => fetch(url, init));
|
|
13646
13647
|
const baseUrl = config.baseUrl || "https://api.runtype.com";
|
|
13647
13648
|
this.apiVersion = config.apiVersion || "v1";
|
|
13648
13649
|
this.baseUrl = this.apiVersion ? `${baseUrl}/${this.apiVersion}` : baseUrl;
|
|
@@ -13858,7 +13859,7 @@ var RuntypeClient$1 = class {
|
|
|
13858
13859
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
13859
13860
|
const signal = combineAbortSignals(callerSignal, controller.signal) ?? controller.signal;
|
|
13860
13861
|
try {
|
|
13861
|
-
const response = await
|
|
13862
|
+
const response = await this.fetchRequest(url, {
|
|
13862
13863
|
...options,
|
|
13863
13864
|
signal
|
|
13864
13865
|
});
|
|
@@ -14718,7 +14719,7 @@ function transformQueryParams(params) {
|
|
|
14718
14719
|
return result;
|
|
14719
14720
|
}
|
|
14720
14721
|
// src/version.ts
|
|
14721
|
-
const SDK_VERSION = "11.13.
|
|
14722
|
+
const SDK_VERSION = "11.13.2";
|
|
14722
14723
|
/**
|
|
14723
14724
|
* Canonical client identity the API uses for attribution
|
|
14724
14725
|
* (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
|
|
@@ -14762,6 +14763,7 @@ var RuntypeClient = class {
|
|
|
14762
14763
|
return this.get("/extraction-models");
|
|
14763
14764
|
}
|
|
14764
14765
|
constructor(config = {}) {
|
|
14766
|
+
this.fetchRequest = config.fetch ?? ((url, init) => fetch(url, init));
|
|
14765
14767
|
const baseUrl = config.baseUrl || "https://api.runtype.com";
|
|
14766
14768
|
this.apiVersion = config.apiVersion || "v1";
|
|
14767
14769
|
this.baseUrl = this.apiVersion ? `${baseUrl}/${this.apiVersion}` : baseUrl;
|
|
@@ -15156,7 +15158,7 @@ var RuntypeClient = class {
|
|
|
15156
15158
|
const controller = timeoutMs === null ? null : new AbortController();
|
|
15157
15159
|
const timeoutId = controller && timeoutMs !== null ? setTimeout(() => controller.abort(), timeoutMs) : null;
|
|
15158
15160
|
try {
|
|
15159
|
-
const response = await
|
|
15161
|
+
const response = await this.fetchRequest(url, {
|
|
15160
15162
|
...options,
|
|
15161
15163
|
...controller ? { signal: controller.signal } : {}
|
|
15162
15164
|
});
|
|
@@ -15187,7 +15189,7 @@ var RuntypeClient = class {
|
|
|
15187
15189
|
else callerSignal.addEventListener("abort", () => controller.abort(callerSignal.reason), { once: true });
|
|
15188
15190
|
}
|
|
15189
15191
|
try {
|
|
15190
|
-
const response = await
|
|
15192
|
+
const response = await this.fetchRequest(url, {
|
|
15191
15193
|
...options,
|
|
15192
15194
|
...controller ? { signal: controller.signal } : {}
|
|
15193
15195
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -11126,6 +11126,11 @@ interface paths {
|
|
|
11126
11126
|
placeholder: string;
|
|
11127
11127
|
/** @description Persona theme tokens stored on the client token, passed through verbatim. Null when unthemed. */
|
|
11128
11128
|
theme?: unknown;
|
|
11129
|
+
/** @description Present only when the bound chat surface enables WebMCP and lists `requireConfirmFor` patterns. */
|
|
11130
|
+
webmcp?: {
|
|
11131
|
+
/** @description The bound chat surface's `behavior.webmcp.requireConfirmFor` patterns. A client must show its confirmation for a matching page tool even when its own auto-approval policy would skip it. This is client-side behavior, not a server-enforced boundary. */
|
|
11132
|
+
requireConfirmFor: string[];
|
|
11133
|
+
};
|
|
11129
11134
|
/** @description Opening message to render before the visitor's first turn. Null when the client token sets none. */
|
|
11130
11135
|
welcomeMessage: string | null;
|
|
11131
11136
|
};
|
|
@@ -67770,6 +67775,8 @@ export interface ClientConfig {
|
|
|
67770
67775
|
apiVersion?: string;
|
|
67771
67776
|
timeout?: number | null;
|
|
67772
67777
|
headers?: Record<string, string>;
|
|
67778
|
+
/** Optional HTTP transport, for hosts that enforce routing or credential boundaries. */
|
|
67779
|
+
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
67773
67780
|
}
|
|
67774
67781
|
export interface PaginationResponse<T> {
|
|
67775
67782
|
data: T[];
|
|
@@ -77883,6 +77890,8 @@ interface RuntypeConfig {
|
|
|
77883
77890
|
timeout?: number;
|
|
77884
77891
|
/** Additional headers to include in requests */
|
|
77885
77892
|
headers?: Record<string, string>;
|
|
77893
|
+
/** Optional HTTP transport for host-controlled routing and credential boundaries. */
|
|
77894
|
+
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
77886
77895
|
}
|
|
77887
77896
|
/**
|
|
77888
77897
|
* Internal client implementation that handles HTTP requests
|
|
@@ -77892,6 +77901,7 @@ declare class RuntypeClient$1 {
|
|
|
77892
77901
|
private apiVersion;
|
|
77893
77902
|
private timeout;
|
|
77894
77903
|
private headers;
|
|
77904
|
+
private fetchRequest;
|
|
77895
77905
|
constructor(config?: RuntypeConfig);
|
|
77896
77906
|
/**
|
|
77897
77907
|
* Set the API key for authentication
|
|
@@ -79150,6 +79160,7 @@ export declare class RuntypeClient implements ApiClient {
|
|
|
79150
79160
|
private apiVersion;
|
|
79151
79161
|
private timeout;
|
|
79152
79162
|
private headers;
|
|
79163
|
+
private fetchRequest;
|
|
79153
79164
|
sandboxDeployments: SandboxDeploymentsNamespace;
|
|
79154
79165
|
signals: SignalsNamespace;
|
|
79155
79166
|
flows: FlowsEndpoint;
|
package/dist/index.d.ts
CHANGED
|
@@ -11126,6 +11126,11 @@ interface paths {
|
|
|
11126
11126
|
placeholder: string;
|
|
11127
11127
|
/** @description Persona theme tokens stored on the client token, passed through verbatim. Null when unthemed. */
|
|
11128
11128
|
theme?: unknown;
|
|
11129
|
+
/** @description Present only when the bound chat surface enables WebMCP and lists `requireConfirmFor` patterns. */
|
|
11130
|
+
webmcp?: {
|
|
11131
|
+
/** @description The bound chat surface's `behavior.webmcp.requireConfirmFor` patterns. A client must show its confirmation for a matching page tool even when its own auto-approval policy would skip it. This is client-side behavior, not a server-enforced boundary. */
|
|
11132
|
+
requireConfirmFor: string[];
|
|
11133
|
+
};
|
|
11129
11134
|
/** @description Opening message to render before the visitor's first turn. Null when the client token sets none. */
|
|
11130
11135
|
welcomeMessage: string | null;
|
|
11131
11136
|
};
|
|
@@ -67770,6 +67775,8 @@ export interface ClientConfig {
|
|
|
67770
67775
|
apiVersion?: string;
|
|
67771
67776
|
timeout?: number | null;
|
|
67772
67777
|
headers?: Record<string, string>;
|
|
67778
|
+
/** Optional HTTP transport, for hosts that enforce routing or credential boundaries. */
|
|
67779
|
+
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
67773
67780
|
}
|
|
67774
67781
|
export interface PaginationResponse<T> {
|
|
67775
67782
|
data: T[];
|
|
@@ -77883,6 +77890,8 @@ interface RuntypeConfig {
|
|
|
77883
77890
|
timeout?: number;
|
|
77884
77891
|
/** Additional headers to include in requests */
|
|
77885
77892
|
headers?: Record<string, string>;
|
|
77893
|
+
/** Optional HTTP transport for host-controlled routing and credential boundaries. */
|
|
77894
|
+
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
77886
77895
|
}
|
|
77887
77896
|
/**
|
|
77888
77897
|
* Internal client implementation that handles HTTP requests
|
|
@@ -77892,6 +77901,7 @@ declare class RuntypeClient$1 {
|
|
|
77892
77901
|
private apiVersion;
|
|
77893
77902
|
private timeout;
|
|
77894
77903
|
private headers;
|
|
77904
|
+
private fetchRequest;
|
|
77895
77905
|
constructor(config?: RuntypeConfig);
|
|
77896
77906
|
/**
|
|
77897
77907
|
* Set the API key for authentication
|
|
@@ -79150,6 +79160,7 @@ export declare class RuntypeClient implements ApiClient {
|
|
|
79150
79160
|
private apiVersion;
|
|
79151
79161
|
private timeout;
|
|
79152
79162
|
private headers;
|
|
79163
|
+
private fetchRequest;
|
|
79153
79164
|
sandboxDeployments: SandboxDeploymentsNamespace;
|
|
79154
79165
|
signals: SignalsNamespace;
|
|
79155
79166
|
flows: FlowsEndpoint;
|
package/dist/index.mjs
CHANGED
|
@@ -13642,6 +13642,7 @@ let globalClient = null;
|
|
|
13642
13642
|
*/
|
|
13643
13643
|
var RuntypeClient$1 = class {
|
|
13644
13644
|
constructor(config = {}) {
|
|
13645
|
+
this.fetchRequest = config.fetch ?? ((url, init) => fetch(url, init));
|
|
13645
13646
|
const baseUrl = config.baseUrl || "https://api.runtype.com";
|
|
13646
13647
|
this.apiVersion = config.apiVersion || "v1";
|
|
13647
13648
|
this.baseUrl = this.apiVersion ? `${baseUrl}/${this.apiVersion}` : baseUrl;
|
|
@@ -13857,7 +13858,7 @@ var RuntypeClient$1 = class {
|
|
|
13857
13858
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
13858
13859
|
const signal = combineAbortSignals(callerSignal, controller.signal) ?? controller.signal;
|
|
13859
13860
|
try {
|
|
13860
|
-
const response = await
|
|
13861
|
+
const response = await this.fetchRequest(url, {
|
|
13861
13862
|
...options,
|
|
13862
13863
|
signal
|
|
13863
13864
|
});
|
|
@@ -14717,7 +14718,7 @@ function transformQueryParams(params) {
|
|
|
14717
14718
|
return result;
|
|
14718
14719
|
}
|
|
14719
14720
|
// src/version.ts
|
|
14720
|
-
const SDK_VERSION = "11.13.
|
|
14721
|
+
const SDK_VERSION = "11.13.2";
|
|
14721
14722
|
/**
|
|
14722
14723
|
* Canonical client identity the API uses for attribution
|
|
14723
14724
|
* (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
|
|
@@ -14761,6 +14762,7 @@ var RuntypeClient = class {
|
|
|
14761
14762
|
return this.get("/extraction-models");
|
|
14762
14763
|
}
|
|
14763
14764
|
constructor(config = {}) {
|
|
14765
|
+
this.fetchRequest = config.fetch ?? ((url, init) => fetch(url, init));
|
|
14764
14766
|
const baseUrl = config.baseUrl || "https://api.runtype.com";
|
|
14765
14767
|
this.apiVersion = config.apiVersion || "v1";
|
|
14766
14768
|
this.baseUrl = this.apiVersion ? `${baseUrl}/${this.apiVersion}` : baseUrl;
|
|
@@ -15155,7 +15157,7 @@ var RuntypeClient = class {
|
|
|
15155
15157
|
const controller = timeoutMs === null ? null : new AbortController();
|
|
15156
15158
|
const timeoutId = controller && timeoutMs !== null ? setTimeout(() => controller.abort(), timeoutMs) : null;
|
|
15157
15159
|
try {
|
|
15158
|
-
const response = await
|
|
15160
|
+
const response = await this.fetchRequest(url, {
|
|
15159
15161
|
...options,
|
|
15160
15162
|
...controller ? { signal: controller.signal } : {}
|
|
15161
15163
|
});
|
|
@@ -15186,7 +15188,7 @@ var RuntypeClient = class {
|
|
|
15186
15188
|
else callerSignal.addEventListener("abort", () => controller.abort(callerSignal.reason), { once: true });
|
|
15187
15189
|
}
|
|
15188
15190
|
try {
|
|
15189
|
-
const response = await
|
|
15191
|
+
const response = await this.fetchRequest(url, {
|
|
15190
15192
|
...options,
|
|
15191
15193
|
...controller ? { signal: controller.signal } : {}
|
|
15192
15194
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/sdk",
|
|
3
|
-
"version": "11.13.
|
|
3
|
+
"version": "11.13.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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@runtypelabs/shared": "3.
|
|
27
|
+
"@runtypelabs/shared": "3.105.0",
|
|
28
28
|
"openapi-typescript": "^7.13.0",
|
|
29
29
|
"tsdown": "^0.23.2",
|
|
30
30
|
"typescript": "^6.0.3",
|