@runtypelabs/sdk 11.13.0 → 11.13.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 +6 -4
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -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.1";
|
|
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
|
@@ -67770,6 +67770,8 @@ export interface ClientConfig {
|
|
|
67770
67770
|
apiVersion?: string;
|
|
67771
67771
|
timeout?: number | null;
|
|
67772
67772
|
headers?: Record<string, string>;
|
|
67773
|
+
/** Optional HTTP transport, for hosts that enforce routing or credential boundaries. */
|
|
67774
|
+
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
67773
67775
|
}
|
|
67774
67776
|
export interface PaginationResponse<T> {
|
|
67775
67777
|
data: T[];
|
|
@@ -77883,6 +77885,8 @@ interface RuntypeConfig {
|
|
|
77883
77885
|
timeout?: number;
|
|
77884
77886
|
/** Additional headers to include in requests */
|
|
77885
77887
|
headers?: Record<string, string>;
|
|
77888
|
+
/** Optional HTTP transport for host-controlled routing and credential boundaries. */
|
|
77889
|
+
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
77886
77890
|
}
|
|
77887
77891
|
/**
|
|
77888
77892
|
* Internal client implementation that handles HTTP requests
|
|
@@ -77892,6 +77896,7 @@ declare class RuntypeClient$1 {
|
|
|
77892
77896
|
private apiVersion;
|
|
77893
77897
|
private timeout;
|
|
77894
77898
|
private headers;
|
|
77899
|
+
private fetchRequest;
|
|
77895
77900
|
constructor(config?: RuntypeConfig);
|
|
77896
77901
|
/**
|
|
77897
77902
|
* Set the API key for authentication
|
|
@@ -79150,6 +79155,7 @@ export declare class RuntypeClient implements ApiClient {
|
|
|
79150
79155
|
private apiVersion;
|
|
79151
79156
|
private timeout;
|
|
79152
79157
|
private headers;
|
|
79158
|
+
private fetchRequest;
|
|
79153
79159
|
sandboxDeployments: SandboxDeploymentsNamespace;
|
|
79154
79160
|
signals: SignalsNamespace;
|
|
79155
79161
|
flows: FlowsEndpoint;
|
package/dist/index.d.ts
CHANGED
|
@@ -67770,6 +67770,8 @@ export interface ClientConfig {
|
|
|
67770
67770
|
apiVersion?: string;
|
|
67771
67771
|
timeout?: number | null;
|
|
67772
67772
|
headers?: Record<string, string>;
|
|
67773
|
+
/** Optional HTTP transport, for hosts that enforce routing or credential boundaries. */
|
|
67774
|
+
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
67773
67775
|
}
|
|
67774
67776
|
export interface PaginationResponse<T> {
|
|
67775
67777
|
data: T[];
|
|
@@ -77883,6 +77885,8 @@ interface RuntypeConfig {
|
|
|
77883
77885
|
timeout?: number;
|
|
77884
77886
|
/** Additional headers to include in requests */
|
|
77885
77887
|
headers?: Record<string, string>;
|
|
77888
|
+
/** Optional HTTP transport for host-controlled routing and credential boundaries. */
|
|
77889
|
+
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
77886
77890
|
}
|
|
77887
77891
|
/**
|
|
77888
77892
|
* Internal client implementation that handles HTTP requests
|
|
@@ -77892,6 +77896,7 @@ declare class RuntypeClient$1 {
|
|
|
77892
77896
|
private apiVersion;
|
|
77893
77897
|
private timeout;
|
|
77894
77898
|
private headers;
|
|
77899
|
+
private fetchRequest;
|
|
77895
77900
|
constructor(config?: RuntypeConfig);
|
|
77896
77901
|
/**
|
|
77897
77902
|
* Set the API key for authentication
|
|
@@ -79150,6 +79155,7 @@ export declare class RuntypeClient implements ApiClient {
|
|
|
79150
79155
|
private apiVersion;
|
|
79151
79156
|
private timeout;
|
|
79152
79157
|
private headers;
|
|
79158
|
+
private fetchRequest;
|
|
79153
79159
|
sandboxDeployments: SandboxDeploymentsNamespace;
|
|
79154
79160
|
signals: SignalsNamespace;
|
|
79155
79161
|
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.1";
|
|
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.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.104.
|
|
27
|
+
"@runtypelabs/shared": "3.104.3",
|
|
28
28
|
"openapi-typescript": "^7.13.0",
|
|
29
29
|
"tsdown": "^0.23.2",
|
|
30
30
|
"typescript": "^6.0.3",
|