@orq-ai/node 4.4.11 → 4.4.14
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/funcs/agentsStream.js +4 -2
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +4 -2
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/deploymentsStream.js +4 -2
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/filesCreate.js +7 -0
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +7 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +7 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +5 -0
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +2 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -1
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +2 -1
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsList.ts +5 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
- package/packages/orq-rc/src/funcs/agentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +10 -1
- package/packages/orq-rc/src/lib/matchers.ts +3 -2
- package/packages/orq-rc/src/lib/security.ts +1 -2
- package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
- package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
- package/packages/orq-rc/src/models/components/index.ts +3 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
- package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +37 -2
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +14 -3
- package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -3
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
- package/packages/orq-rc/src/models/operations/createresponse.ts +2 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
- package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
- package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +3 -62
- package/packages/orq-rc/src/models/operations/updatetool.ts +96 -7
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/funcs/agentsStream.ts +4 -1
- package/src/funcs/agentsStreamRun.ts +4 -1
- package/src/funcs/deploymentsStream.ts +4 -1
- package/src/funcs/filesCreate.ts +11 -0
- package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +10 -1
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createchatcompletion.ts +2 -1
- package/src/models/operations/createcompletion.ts +2 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createresponse.ts +2 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -6,7 +6,9 @@ import {
|
|
|
6
6
|
agentsResponsesCreate,
|
|
7
7
|
CreateAcceptEnum,
|
|
8
8
|
} from "../funcs/agentsResponsesCreate.js";
|
|
9
|
+
import { agentsResponsesGet } from "../funcs/agentsResponsesGet.js";
|
|
9
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as components from "../models/components/index.js";
|
|
10
12
|
import * as operations from "../models/operations/index.js";
|
|
11
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
14
|
|
|
@@ -31,4 +33,21 @@ export class Responses extends ClientSDK {
|
|
|
31
33
|
options,
|
|
32
34
|
));
|
|
33
35
|
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Get response
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Retrieves the current state of an agent response by task ID. Returns the response output, model information, token usage, and execution status. When the agent is still processing, the output array will be empty and status will be `in_progress`. Once completed, the response includes the full output, usage statistics, and finish reason.
|
|
42
|
+
*/
|
|
43
|
+
async get(
|
|
44
|
+
request: operations.GetAgentResponseRequest,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): Promise<components.GetAgentResponse> {
|
|
47
|
+
return unwrapAsync(agentsResponsesGet(
|
|
48
|
+
this,
|
|
49
|
+
request,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
34
53
|
}
|
|
@@ -180,8 +180,11 @@ async function $do(
|
|
|
180
180
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
181
181
|
.transform(stream => {
|
|
182
182
|
return new EventStream(stream, rawEvent => {
|
|
183
|
-
if (rawEvent.data === "[DONE]")
|
|
183
|
+
if (rawEvent.data === "[DONE]") {
|
|
184
|
+
return { done: true, value: undefined };
|
|
185
|
+
}
|
|
184
186
|
return {
|
|
187
|
+
done: false,
|
|
185
188
|
value: operations.StreamAgentResponseBody$inboundSchema.parse(
|
|
186
189
|
rawEvent,
|
|
187
190
|
),
|
|
@@ -165,8 +165,11 @@ async function $do(
|
|
|
165
165
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
166
166
|
.transform(stream => {
|
|
167
167
|
return new EventStream(stream, rawEvent => {
|
|
168
|
-
if (rawEvent.data === "[DONE]")
|
|
168
|
+
if (rawEvent.data === "[DONE]") {
|
|
169
|
+
return { done: true, value: undefined };
|
|
170
|
+
}
|
|
169
171
|
return {
|
|
172
|
+
done: false,
|
|
170
173
|
value: operations.StreamRunAgentResponseBody$inboundSchema.parse(
|
|
171
174
|
rawEvent,
|
|
172
175
|
),
|
|
@@ -164,8 +164,11 @@ async function $do(
|
|
|
164
164
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
165
165
|
.transform(stream => {
|
|
166
166
|
return new EventStream(stream, rawEvent => {
|
|
167
|
-
if (rawEvent.data === "[DONE]")
|
|
167
|
+
if (rawEvent.data === "[DONE]") {
|
|
168
|
+
return { done: true, value: undefined };
|
|
169
|
+
}
|
|
168
170
|
return {
|
|
171
|
+
done: false,
|
|
169
172
|
value: operations.DeploymentStreamResponseBody$inboundSchema
|
|
170
173
|
.parse(rawEvent),
|
|
171
174
|
};
|
package/src/funcs/filesCreate.ts
CHANGED
|
@@ -99,6 +99,17 @@ async function $do(
|
|
|
99
99
|
|| "application/octet-stream";
|
|
100
100
|
const blob = new Blob([buffer], { type: contentType });
|
|
101
101
|
appendForm(body, "file", blob, payload.file.fileName);
|
|
102
|
+
} else if (payload.file.content instanceof Uint8Array) {
|
|
103
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
104
|
+
|| "application/octet-stream";
|
|
105
|
+
appendForm(
|
|
106
|
+
body,
|
|
107
|
+
"file",
|
|
108
|
+
new Blob([new Uint8Array(payload.file.content).buffer], {
|
|
109
|
+
type: contentType,
|
|
110
|
+
}),
|
|
111
|
+
payload.file.fileName,
|
|
112
|
+
);
|
|
102
113
|
} else {
|
|
103
114
|
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
104
115
|
|| "application/octet-stream";
|
|
@@ -115,6 +115,17 @@ async function $do(
|
|
|
115
115
|
|| "application/octet-stream";
|
|
116
116
|
const blob = new Blob([buffer], { type: contentType });
|
|
117
117
|
appendForm(body, "file", blob, payload.file.fileName);
|
|
118
|
+
} else if (payload.file.content instanceof Uint8Array) {
|
|
119
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
120
|
+
|| "application/octet-stream";
|
|
121
|
+
appendForm(
|
|
122
|
+
body,
|
|
123
|
+
"file",
|
|
124
|
+
new Blob([new Uint8Array(payload.file.content).buffer], {
|
|
125
|
+
type: contentType,
|
|
126
|
+
}),
|
|
127
|
+
payload.file.fileName,
|
|
128
|
+
);
|
|
118
129
|
} else {
|
|
119
130
|
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
120
131
|
|| "application/octet-stream";
|
|
@@ -115,6 +115,17 @@ async function $do(
|
|
|
115
115
|
|| "application/octet-stream";
|
|
116
116
|
const blob = new Blob([buffer], { type: contentType });
|
|
117
117
|
appendForm(body, "file", blob, payload.file.fileName);
|
|
118
|
+
} else if (payload.file.content instanceof Uint8Array) {
|
|
119
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
120
|
+
|| "application/octet-stream";
|
|
121
|
+
appendForm(
|
|
122
|
+
body,
|
|
123
|
+
"file",
|
|
124
|
+
new Blob([new Uint8Array(payload.file.content).buffer], {
|
|
125
|
+
type: contentType,
|
|
126
|
+
}),
|
|
127
|
+
payload.file.fileName,
|
|
128
|
+
);
|
|
118
129
|
} else {
|
|
119
130
|
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
120
131
|
|| "application/octet-stream";
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.4.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.4.
|
|
71
|
+
sdkVersion: "4.4.14",
|
|
72
|
+
genVersion: "2.850.0",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.4.14 2.850.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/lib/event-streams.ts
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
// Ensure ReadableStream always declares [Symbol.asyncIterator] so the
|
|
6
|
+
// override keyword works consistently regardless of installed type
|
|
7
|
+
// definitions (e.g. bun-types omits it from its ReadableStream).
|
|
8
|
+
declare global {
|
|
9
|
+
interface ReadableStream<R = any> {
|
|
10
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
export type SseMessage<T> = {
|
|
6
15
|
data?: T | undefined;
|
|
7
16
|
event?: string | null | undefined;
|
|
@@ -48,7 +57,7 @@ export class EventStream<T extends SseMessage<unknown>>
|
|
|
48
57
|
}
|
|
49
58
|
|
|
50
59
|
// Polyfill for older browsers
|
|
51
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<T> {
|
|
60
|
+
override [Symbol.asyncIterator](): AsyncIterableIterator<T> {
|
|
52
61
|
const fn = (ReadableStream.prototype as any)[Symbol.asyncIterator];
|
|
53
62
|
if (typeof fn === "function") return fn.call(this);
|
|
54
63
|
const reader = this.getReader();
|
package/src/lib/matchers.ts
CHANGED
|
@@ -248,8 +248,9 @@ export function match<T, E>(
|
|
|
248
248
|
raw = body;
|
|
249
249
|
break;
|
|
250
250
|
default:
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
throw new Error(
|
|
252
|
+
`Unsupported response type: ${encoding satisfies never}`,
|
|
253
|
+
);
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
if (matcher.enc === "fail") {
|
package/src/lib/security.ts
CHANGED
|
@@ -198,8 +198,7 @@ export function resolveSecurity(
|
|
|
198
198
|
applyBearer(state, spec);
|
|
199
199
|
break;
|
|
200
200
|
default:
|
|
201
|
-
spec satisfies never;
|
|
202
|
-
throw SecurityError.unrecognizedType(type);
|
|
201
|
+
throw SecurityError.unrecognizedType((spec satisfies never, type));
|
|
203
202
|
}
|
|
204
203
|
});
|
|
205
204
|
|
|
@@ -76,7 +76,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
|
76
76
|
z.ZodTypeDef,
|
|
77
77
|
unknown
|
|
78
78
|
> = z.object({
|
|
79
|
-
_id: z.string().default("
|
|
79
|
+
_id: z.string().default("reasoning_01kjzzd9c5gpevvj0fkq2abtva"),
|
|
80
80
|
metadata: z.record(z.any()).optional(),
|
|
81
81
|
kind: PartKind$inboundSchema,
|
|
82
82
|
reasoning: z.string(),
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kjzzd9bz7wx4ghmggs49nh48"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -587,8 +587,9 @@ export const CreateAgentResponseRequestResponse$inboundSchema: z.ZodType<
|
|
|
587
587
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
588
588
|
.transform(stream => {
|
|
589
589
|
return new EventStream(stream, rawEvent => {
|
|
590
|
-
if (rawEvent.data === "[DONE]") return { done: true };
|
|
590
|
+
if (rawEvent.data === "[DONE]") return { done: true, value: undefined };
|
|
591
591
|
return {
|
|
592
|
+
done: false,
|
|
592
593
|
value: z.lazy(() =>
|
|
593
594
|
CreateAgentResponseRequestResponseBody$inboundSchema
|
|
594
595
|
).parse(rawEvent),
|
|
@@ -6360,8 +6360,9 @@ export const CreateChatCompletionResponse$inboundSchema: z.ZodType<
|
|
|
6360
6360
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
6361
6361
|
.transform(stream => {
|
|
6362
6362
|
return new EventStream(stream, rawEvent => {
|
|
6363
|
-
if (rawEvent.data === "[DONE]") return { done: true };
|
|
6363
|
+
if (rawEvent.data === "[DONE]") return { done: true, value: undefined };
|
|
6364
6364
|
return {
|
|
6365
|
+
done: false,
|
|
6365
6366
|
value: z.lazy(() =>
|
|
6366
6367
|
CreateChatCompletionRouterChatCompletionsResponseBody$inboundSchema
|
|
6367
6368
|
).parse(rawEvent),
|
|
@@ -3392,8 +3392,9 @@ export const CreateCompletionResponse$inboundSchema: z.ZodType<
|
|
|
3392
3392
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
3393
3393
|
.transform(stream => {
|
|
3394
3394
|
return new EventStream(stream, rawEvent => {
|
|
3395
|
-
if (rawEvent.data === "[DONE]") return { done: true };
|
|
3395
|
+
if (rawEvent.data === "[DONE]") return { done: true, value: undefined };
|
|
3396
3396
|
return {
|
|
3397
|
+
done: false,
|
|
3397
3398
|
value: z.lazy(() =>
|
|
3398
3399
|
CreateCompletionRouterCompletionsResponseBody$inboundSchema
|
|
3399
3400
|
).parse(rawEvent),
|
|
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
134
134
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
135
135
|
.optional(),
|
|
136
136
|
updated: z.string().datetime({ offset: true }).default(
|
|
137
|
-
"2026-03-
|
|
137
|
+
"2026-03-05T21:45:23.645Z",
|
|
138
138
|
).transform(v => new Date(v)),
|
|
139
139
|
}).transform((v) => {
|
|
140
140
|
return remap$(v, {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-03-
|
|
141
|
+
"2026-03-05T21:45:23.645Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2353,7 +2353,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2353
2353
|
),
|
|
2354
2354
|
reviewed_by_id: z.string(),
|
|
2355
2355
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2356
|
-
"2026-03-
|
|
2356
|
+
"2026-03-05T21:45:39.391Z",
|
|
2357
2357
|
).transform(v => new Date(v)),
|
|
2358
2358
|
type: z.literal("string_array"),
|
|
2359
2359
|
values: z.array(z.string()),
|
|
@@ -2398,7 +2398,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2398
2398
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2399
2399
|
reviewed_by_id: z.string(),
|
|
2400
2400
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2401
|
-
"2026-03-
|
|
2401
|
+
"2026-03-05T21:45:39.390Z",
|
|
2402
2402
|
).transform(v => new Date(v)),
|
|
2403
2403
|
type: z.literal("number"),
|
|
2404
2404
|
value: z.number(),
|
|
@@ -2443,7 +2443,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2443
2443
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2444
2444
|
reviewed_by_id: z.string(),
|
|
2445
2445
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2446
|
-
"2026-03-
|
|
2446
|
+
"2026-03-05T21:45:39.390Z",
|
|
2447
2447
|
).transform(v => new Date(v)),
|
|
2448
2448
|
type: z.literal("string"),
|
|
2449
2449
|
value: z.string(),
|
|
@@ -2526,7 +2526,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2526
2526
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2527
2527
|
.optional(),
|
|
2528
2528
|
updated: z.string().datetime({ offset: true }).default(
|
|
2529
|
-
"2026-03-
|
|
2529
|
+
"2026-03-05T21:45:23.645Z",
|
|
2530
2530
|
).transform(v => new Date(v)),
|
|
2531
2531
|
}).transform((v) => {
|
|
2532
2532
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KJZZDA669FS0SMC7R5GKJDMX"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -2245,8 +2245,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2245
2245
|
> = z.object({
|
|
2246
2246
|
_id: z.string(),
|
|
2247
2247
|
description: z.string(),
|
|
2248
|
-
created: z.string().default("2026-03-
|
|
2249
|
-
updated: z.string().default("2026-03-
|
|
2248
|
+
created: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
2249
|
+
updated: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
2250
2250
|
guardrail_config: z.union([
|
|
2251
2251
|
z.lazy(() =>
|
|
2252
2252
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
@@ -2394,8 +2394,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2394
2394
|
.object({
|
|
2395
2395
|
_id: z.string(),
|
|
2396
2396
|
description: z.string(),
|
|
2397
|
-
created: z.string().default("2026-03-
|
|
2398
|
-
updated: z.string().default("2026-03-
|
|
2397
|
+
created: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
2398
|
+
updated: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
2399
2399
|
guardrail_config: z.union([
|
|
2400
2400
|
z.lazy(() =>
|
|
2401
2401
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
@@ -3178,8 +3178,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3178
3178
|
> = z.object({
|
|
3179
3179
|
_id: z.string(),
|
|
3180
3180
|
description: z.string(),
|
|
3181
|
-
created: z.string().default("2026-03-
|
|
3182
|
-
updated: z.string().default("2026-03-
|
|
3181
|
+
created: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3182
|
+
updated: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3183
3183
|
guardrail_config: z.union([
|
|
3184
3184
|
z.lazy(() =>
|
|
3185
3185
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -3357,8 +3357,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3357
3357
|
> = z.object({
|
|
3358
3358
|
_id: z.string(),
|
|
3359
3359
|
description: z.string(),
|
|
3360
|
-
created: z.string().default("2026-03-
|
|
3361
|
-
updated: z.string().default("2026-03-
|
|
3360
|
+
created: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3361
|
+
updated: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3362
3362
|
guardrail_config: z.union([
|
|
3363
3363
|
z.lazy(() =>
|
|
3364
3364
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -3498,8 +3498,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3498
3498
|
> = z.object({
|
|
3499
3499
|
_id: z.string(),
|
|
3500
3500
|
description: z.string(),
|
|
3501
|
-
created: z.string().default("2026-03-
|
|
3502
|
-
updated: z.string().default("2026-03-
|
|
3501
|
+
created: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3502
|
+
updated: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3503
3503
|
guardrail_config: z.union([
|
|
3504
3504
|
z.lazy(() =>
|
|
3505
3505
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3634,8 +3634,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3634
3634
|
> = z.object({
|
|
3635
3635
|
_id: z.string(),
|
|
3636
3636
|
description: z.string(),
|
|
3637
|
-
created: z.string().default("2026-03-
|
|
3638
|
-
updated: z.string().default("2026-03-
|
|
3637
|
+
created: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3638
|
+
updated: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3639
3639
|
guardrail_config: z.union([
|
|
3640
3640
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3641
3641
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -3944,8 +3944,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3944
3944
|
> = z.object({
|
|
3945
3945
|
_id: z.string(),
|
|
3946
3946
|
description: z.string(),
|
|
3947
|
-
created: z.string().default("2026-03-
|
|
3948
|
-
updated: z.string().default("2026-03-
|
|
3947
|
+
created: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3948
|
+
updated: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
3949
3949
|
guardrail_config: z.union([
|
|
3950
3950
|
z.lazy(() =>
|
|
3951
3951
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
@@ -4088,8 +4088,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4088
4088
|
> = z.object({
|
|
4089
4089
|
_id: z.string(),
|
|
4090
4090
|
description: z.string(),
|
|
4091
|
-
created: z.string().default("2026-03-
|
|
4092
|
-
updated: z.string().default("2026-03-
|
|
4091
|
+
created: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
4092
|
+
updated: z.string().default("2026-03-05T21:45:24.968Z"),
|
|
4093
4093
|
guardrail_config: z.union([
|
|
4094
4094
|
z.lazy(() =>
|
|
4095
4095
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
139
139
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
140
140
|
.optional(),
|
|
141
141
|
updated: z.string().datetime({ offset: true }).default(
|
|
142
|
-
"2026-03-
|
|
142
|
+
"2026-03-05T21:45:23.645Z",
|
|
143
143
|
).transform(v => new Date(v)),
|
|
144
144
|
}).transform((v) => {
|
|
145
145
|
return remap$(v, {
|
|
@@ -3303,8 +3303,9 @@ export const CreateResponseResponse$inboundSchema: z.ZodType<
|
|
|
3303
3303
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
3304
3304
|
.transform(stream => {
|
|
3305
3305
|
return new EventStream(stream, rawEvent => {
|
|
3306
|
-
if (rawEvent.data === "[DONE]") return { done: true };
|
|
3306
|
+
if (rawEvent.data === "[DONE]") return { done: true, value: undefined };
|
|
3307
3307
|
return {
|
|
3308
|
+
done: false,
|
|
3308
3309
|
value: z.lazy(() =>
|
|
3309
3310
|
CreateResponseRouterResponsesResponseBody$inboundSchema
|
|
3310
3311
|
).parse(rawEvent),
|
|
@@ -1899,7 +1899,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1899
1899
|
z.ZodTypeDef,
|
|
1900
1900
|
unknown
|
|
1901
1901
|
> = z.object({
|
|
1902
|
-
_id: z.string().default("
|
|
1902
|
+
_id: z.string().default("tool_01KJZZDA15G3VB6QT8KBCBDSD2"),
|
|
1903
1903
|
path: z.string(),
|
|
1904
1904
|
key: z.string(),
|
|
1905
1905
|
display_name: z.string().optional(),
|
|
@@ -1998,7 +1998,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1998
1998
|
z.ZodTypeDef,
|
|
1999
1999
|
unknown
|
|
2000
2000
|
> = z.object({
|
|
2001
|
-
id: z.string().default("
|
|
2001
|
+
id: z.string().default("01KJZZDA13H1NTJQ8R0ACF4GBY"),
|
|
2002
2002
|
name: z.string(),
|
|
2003
2003
|
description: z.string().optional(),
|
|
2004
2004
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2052,7 +2052,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2052
2052
|
z.ZodTypeDef,
|
|
2053
2053
|
unknown
|
|
2054
2054
|
> = z.object({
|
|
2055
|
-
_id: z.string().default("
|
|
2055
|
+
_id: z.string().default("tool_01KJZZDA11ABKA86SNMRSH89R6"),
|
|
2056
2056
|
path: z.string(),
|
|
2057
2057
|
key: z.string(),
|
|
2058
2058
|
display_name: z.string().optional(),
|
|
@@ -2240,7 +2240,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2240
2240
|
z.ZodTypeDef,
|
|
2241
2241
|
unknown
|
|
2242
2242
|
> = z.object({
|
|
2243
|
-
_id: z.string().default("
|
|
2243
|
+
_id: z.string().default("tool_01KJZZDA0Y15DG0KGSRSPXM5V3"),
|
|
2244
2244
|
path: z.string(),
|
|
2245
2245
|
key: z.string(),
|
|
2246
2246
|
display_name: z.string().optional(),
|
|
@@ -2335,7 +2335,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2335
2335
|
z.ZodTypeDef,
|
|
2336
2336
|
unknown
|
|
2337
2337
|
> = z.object({
|
|
2338
|
-
_id: z.string().default("
|
|
2338
|
+
_id: z.string().default("tool_01KJZZDA0X59FYJFA1W5T9ECFM"),
|
|
2339
2339
|
path: z.string(),
|
|
2340
2340
|
key: z.string(),
|
|
2341
2341
|
display_name: z.string().optional(),
|
|
@@ -2438,7 +2438,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2438
2438
|
z.ZodTypeDef,
|
|
2439
2439
|
unknown
|
|
2440
2440
|
> = z.object({
|
|
2441
|
-
_id: z.string().default("
|
|
2441
|
+
_id: z.string().default("tool_01KJZZDA0WGGQ61WDRMBDNQ4MA"),
|
|
2442
2442
|
path: z.string(),
|
|
2443
2443
|
key: z.string(),
|
|
2444
2444
|
display_name: z.string().optional(),
|
|
@@ -94,7 +94,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
94
94
|
file_name: z.string(),
|
|
95
95
|
workspace_id: z.string(),
|
|
96
96
|
created: z.string().datetime({ offset: true }).default(
|
|
97
|
-
"2026-03-
|
|
97
|
+
"2026-03-05T21:45:27.068Z",
|
|
98
98
|
).transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return remap$(v, {
|
|
@@ -125,7 +125,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
125
125
|
file_name: z.string(),
|
|
126
126
|
workspace_id: z.string(),
|
|
127
127
|
created: z.string().datetime({ offset: true }).default(
|
|
128
|
-
"2026-03-
|
|
128
|
+
"2026-03-05T21:45:27.068Z",
|
|
129
129
|
).transform(v => new Date(v)),
|
|
130
130
|
}).transform((v) => {
|
|
131
131
|
return remap$(v, {
|
|
@@ -148,7 +148,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
148
148
|
file_name: z.string(),
|
|
149
149
|
workspace_id: z.string(),
|
|
150
150
|
created: z.string().datetime({ offset: true }).default(
|
|
151
|
-
"2026-03-
|
|
151
|
+
"2026-03-05T21:45:27.068Z",
|
|
152
152
|
).transform(v => new Date(v)),
|
|
153
153
|
}).transform((v) => {
|
|
154
154
|
return remap$(v, {
|
|
@@ -768,7 +768,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
768
768
|
z.ZodTypeDef,
|
|
769
769
|
unknown
|
|
770
770
|
> = z.object({
|
|
771
|
-
_id: z.string().default("
|
|
771
|
+
_id: z.string().default("tool_01KJZZDA055SXQ6SX0EJDG8MC2"),
|
|
772
772
|
path: z.string(),
|
|
773
773
|
key: z.string(),
|
|
774
774
|
display_name: z.string().optional(),
|
|
@@ -867,7 +867,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
867
867
|
z.ZodTypeDef,
|
|
868
868
|
unknown
|
|
869
869
|
> = z.object({
|
|
870
|
-
id: z.string().default("
|
|
870
|
+
id: z.string().default("01KJZZDA03A776BQSE7V6CZ49A"),
|
|
871
871
|
name: z.string(),
|
|
872
872
|
description: z.string().optional(),
|
|
873
873
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -918,7 +918,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
918
918
|
z.ZodTypeDef,
|
|
919
919
|
unknown
|
|
920
920
|
> = z.object({
|
|
921
|
-
_id: z.string().default("
|
|
921
|
+
_id: z.string().default("tool_01KJZZDA015RFF1X42GYY4HKJC"),
|
|
922
922
|
path: z.string(),
|
|
923
923
|
key: z.string(),
|
|
924
924
|
display_name: z.string().optional(),
|
|
@@ -1105,7 +1105,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1105
1105
|
z.ZodTypeDef,
|
|
1106
1106
|
unknown
|
|
1107
1107
|
> = z.object({
|
|
1108
|
-
_id: z.string().default("
|
|
1108
|
+
_id: z.string().default("tool_01KJZZD9ZZ5ENTHB7KZHYFRFFA"),
|
|
1109
1109
|
path: z.string(),
|
|
1110
1110
|
key: z.string(),
|
|
1111
1111
|
display_name: z.string().optional(),
|
|
@@ -1200,7 +1200,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1200
1200
|
z.ZodTypeDef,
|
|
1201
1201
|
unknown
|
|
1202
1202
|
> = z.object({
|
|
1203
|
-
_id: z.string().default("
|
|
1203
|
+
_id: z.string().default("tool_01KJZZD9ZWBZP6V68Y655XJQ90"),
|
|
1204
1204
|
path: z.string(),
|
|
1205
1205
|
key: z.string(),
|
|
1206
1206
|
display_name: z.string().optional(),
|
|
@@ -1304,7 +1304,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1304
1304
|
z.ZodTypeDef,
|
|
1305
1305
|
unknown
|
|
1306
1306
|
> = z.object({
|
|
1307
|
-
_id: z.string().default("
|
|
1307
|
+
_id: z.string().default("tool_01KJZZD9ZTT63TNJNQ1D8EMWN0"),
|
|
1308
1308
|
path: z.string(),
|
|
1309
1309
|
key: z.string(),
|
|
1310
1310
|
display_name: z.string().optional(),
|