@runtypelabs/sdk 9.11.0 → 9.12.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 +23 -11
- package/dist/index.d.cts +434 -30
- package/dist/index.d.ts +434 -30
- package/dist/index.mjs +23 -11
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -4863,18 +4863,23 @@ var DispatchEndpoint = class {
|
|
|
4863
4863
|
/**
|
|
4864
4864
|
* Dispatch: create and/or execute flows on records atomically
|
|
4865
4865
|
*/
|
|
4866
|
-
async execute(data) {
|
|
4866
|
+
async execute(data, admission) {
|
|
4867
4867
|
const normalized = normalizeDispatchRequest(data);
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4868
|
+
const headers = buildAgentAdmissionHeaders(admission);
|
|
4869
|
+
return this.client.post(
|
|
4870
|
+
"/dispatch",
|
|
4871
|
+
{
|
|
4872
|
+
...normalized,
|
|
4873
|
+
options: {
|
|
4874
|
+
...normalized.options,
|
|
4875
|
+
streamResponse: false
|
|
4876
|
+
}
|
|
4877
|
+
},
|
|
4878
|
+
...Object.keys(headers).length > 0 ? [headers] : []
|
|
4879
|
+
);
|
|
4875
4880
|
}
|
|
4876
4881
|
/** Start a dispatch and return its durable execution handle immediately. */
|
|
4877
|
-
async executeAsync(data) {
|
|
4882
|
+
async executeAsync(data, admission) {
|
|
4878
4883
|
const normalized = normalizeDispatchRequest(data);
|
|
4879
4884
|
return this.client.post(
|
|
4880
4885
|
"/dispatch",
|
|
@@ -4882,7 +4887,7 @@ var DispatchEndpoint = class {
|
|
|
4882
4887
|
...normalized,
|
|
4883
4888
|
options: { ...normalized.options, streamResponse: false }
|
|
4884
4889
|
},
|
|
4885
|
-
{ Prefer: "respond-async" }
|
|
4890
|
+
{ Prefer: "respond-async", ...buildAgentAdmissionHeaders(admission) }
|
|
4886
4891
|
);
|
|
4887
4892
|
}
|
|
4888
4893
|
/**
|
|
@@ -4895,8 +4900,10 @@ var DispatchEndpoint = class {
|
|
|
4895
4900
|
*/
|
|
4896
4901
|
async executeStream(data, init) {
|
|
4897
4902
|
const normalized = normalizeDispatchRequest(data);
|
|
4903
|
+
const headers = buildAgentAdmissionHeaders(init);
|
|
4898
4904
|
const response = await this.client.requestStream("/dispatch", {
|
|
4899
4905
|
method: "POST",
|
|
4906
|
+
...Object.keys(headers).length > 0 ? { headers } : {},
|
|
4900
4907
|
body: JSON.stringify({
|
|
4901
4908
|
...normalized,
|
|
4902
4909
|
options: {
|
|
@@ -4998,6 +5005,11 @@ var ExecutionsEndpoint = class {
|
|
|
4998
5005
|
`/executions/${encodeURIComponent(executionId)}/status`
|
|
4999
5006
|
);
|
|
5000
5007
|
}
|
|
5008
|
+
async getDelivery(executionId, deliveryId) {
|
|
5009
|
+
return this.client.get(
|
|
5010
|
+
`/executions/${encodeURIComponent(executionId)}/deliveries/${encodeURIComponent(deliveryId)}`
|
|
5011
|
+
);
|
|
5012
|
+
}
|
|
5001
5013
|
};
|
|
5002
5014
|
var ChatEndpoint = class {
|
|
5003
5015
|
constructor(client) {
|
|
@@ -13355,7 +13367,7 @@ function transformQueryParams(params) {
|
|
|
13355
13367
|
|
|
13356
13368
|
// src/version.ts
|
|
13357
13369
|
var FALLBACK_VERSION = "0.0.0";
|
|
13358
|
-
var SDK_VERSION = "9.
|
|
13370
|
+
var SDK_VERSION = "9.12.0".length > 0 ? "9.12.0" : FALLBACK_VERSION;
|
|
13359
13371
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
13360
13372
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
13361
13373
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/sdk",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.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.
|
|
27
|
+
"@runtypelabs/shared": "3.47.1",
|
|
28
28
|
"openapi-typescript": "^7.13.0",
|
|
29
29
|
"tsup": "^8.0.2",
|
|
30
30
|
"typescript": "^6.0.3",
|