@orq-ai/node 4.0.18 → 4.0.20
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/bin/mcp-server.js +213 -213
- package/bin/mcp-server.js.map +36 -36
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/README.md +22 -18
- package/packages/orq-rc/docs/sdks/evals/README.md +103 -1
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +177 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +3 -1
- package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +35 -0
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/errors/invokeeval.ts +128 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +877 -685
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +35 -35
- package/packages/orq-rc/src/models/operations/deployments.ts +36 -36
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +55 -38
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/invokeeval.ts +2062 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
- package/packages/orq-rc/src/models/operations/runagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/src/sdk/evals.ts +15 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Invoke a Custom Evaluator
|
|
30
|
+
*/
|
|
31
|
+
export function evalsInvoke(
|
|
32
|
+
client: OrqCore,
|
|
33
|
+
request: operations.InvokeEvalRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
operations.InvokeEvalResponseBody,
|
|
38
|
+
| errors.InvokeEvalResponseBody
|
|
39
|
+
| errors.InvokeEvalEvalsResponseBody
|
|
40
|
+
| OrqError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: OrqCore,
|
|
59
|
+
request: operations.InvokeEvalRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.InvokeEvalResponseBody,
|
|
65
|
+
| errors.InvokeEvalResponseBody
|
|
66
|
+
| errors.InvokeEvalEvalsResponseBody
|
|
67
|
+
| OrqError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) => operations.InvokeEvalRequest$outboundSchema.parse(value),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
89
|
+
|
|
90
|
+
const pathParams = {
|
|
91
|
+
id: encodeSimple("id", payload.id, {
|
|
92
|
+
explode: false,
|
|
93
|
+
charEncoding: "percent",
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const path = pathToFunc("/v2/evaluators/{id}/invoke")(pathParams);
|
|
98
|
+
|
|
99
|
+
const headers = new Headers(compactMap({
|
|
100
|
+
"Content-Type": "application/json",
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
105
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
options: client._options,
|
|
110
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
|
+
operationID: "InvokeEval",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
|
|
116
|
+
securitySource: client._options.apiKey,
|
|
117
|
+
retryConfig: options?.retries
|
|
118
|
+
|| client._options.retryConfig
|
|
119
|
+
|| { strategy: "none" },
|
|
120
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "POST",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path,
|
|
128
|
+
headers: headers,
|
|
129
|
+
body: body,
|
|
130
|
+
userAgent: client._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client._do(req, {
|
|
139
|
+
context,
|
|
140
|
+
errorCodes: ["404", "4XX", "500", "5XX"],
|
|
141
|
+
retryConfig: context.retryConfig,
|
|
142
|
+
retryCodes: context.retryCodes,
|
|
143
|
+
});
|
|
144
|
+
if (!doResult.ok) {
|
|
145
|
+
return [doResult, { status: "request-error", request: req }];
|
|
146
|
+
}
|
|
147
|
+
const response = doResult.value;
|
|
148
|
+
|
|
149
|
+
const responseFields = {
|
|
150
|
+
HttpMeta: { Response: response, Request: req },
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
const [result] = await M.match<
|
|
154
|
+
operations.InvokeEvalResponseBody,
|
|
155
|
+
| errors.InvokeEvalResponseBody
|
|
156
|
+
| errors.InvokeEvalEvalsResponseBody
|
|
157
|
+
| OrqError
|
|
158
|
+
| ResponseValidationError
|
|
159
|
+
| ConnectionError
|
|
160
|
+
| RequestAbortedError
|
|
161
|
+
| RequestTimeoutError
|
|
162
|
+
| InvalidRequestError
|
|
163
|
+
| UnexpectedClientError
|
|
164
|
+
| SDKValidationError
|
|
165
|
+
>(
|
|
166
|
+
M.json(200, operations.InvokeEvalResponseBody$inboundSchema),
|
|
167
|
+
M.jsonErr(404, errors.InvokeEvalResponseBody$inboundSchema),
|
|
168
|
+
M.jsonErr(500, errors.InvokeEvalEvalsResponseBody$inboundSchema),
|
|
169
|
+
M.fail("4XX"),
|
|
170
|
+
M.fail("5XX"),
|
|
171
|
+
)(response, req, { extraFields: responseFields });
|
|
172
|
+
if (!result.ok) {
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
@@ -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.1.0-rc.
|
|
71
|
+
sdkVersion: "4.1.0-rc.13",
|
|
72
72
|
genVersion: "2.762.0",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.1.0-rc.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.1.0-rc.13 2.762.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -53,6 +53,7 @@ import { tool$deploymentsStream } from "./tools/deploymentsStream.js";
|
|
|
53
53
|
import { tool$evalsAll } from "./tools/evalsAll.js";
|
|
54
54
|
import { tool$evalsCreate } from "./tools/evalsCreate.js";
|
|
55
55
|
import { tool$evalsDelete } from "./tools/evalsDelete.js";
|
|
56
|
+
import { tool$evalsInvoke } from "./tools/evalsInvoke.js";
|
|
56
57
|
import { tool$evalsUpdate } from "./tools/evalsUpdate.js";
|
|
57
58
|
import { tool$feedbackCreate } from "./tools/feedbackCreate.js";
|
|
58
59
|
import { tool$filesCreate } from "./tools/filesCreate.js";
|
|
@@ -120,7 +121,7 @@ export function createMCPServer(deps: {
|
|
|
120
121
|
}) {
|
|
121
122
|
const server = new McpServer({
|
|
122
123
|
name: "Orq",
|
|
123
|
-
version: "4.1.0-rc.
|
|
124
|
+
version: "4.1.0-rc.13",
|
|
124
125
|
});
|
|
125
126
|
|
|
126
127
|
const client = new OrqCore({
|
|
@@ -162,6 +163,7 @@ export function createMCPServer(deps: {
|
|
|
162
163
|
tool(tool$evalsCreate);
|
|
163
164
|
tool(tool$evalsUpdate);
|
|
164
165
|
tool(tool$evalsDelete);
|
|
166
|
+
tool(tool$evalsInvoke);
|
|
165
167
|
tool(tool$deploymentsInvoke);
|
|
166
168
|
tool(tool$deploymentsList);
|
|
167
169
|
tool(tool$deploymentsGetConfig);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { evalsInvoke } from "../../funcs/evalsInvoke.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.InvokeEvalRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$evalsInvoke: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "evals-invoke",
|
|
15
|
+
description: `Invoke a Custom Evaluator`,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await evalsInvoke(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -12,6 +12,7 @@ export * from "./getevals.js";
|
|
|
12
12
|
export * from "./getpromptversion.js";
|
|
13
13
|
export * from "./honoapierror.js";
|
|
14
14
|
export * from "./httpclienterrors.js";
|
|
15
|
+
export * from "./invokeeval.js";
|
|
15
16
|
export * from "./orqerror.js";
|
|
16
17
|
export * from "./responsevalidationerror.js";
|
|
17
18
|
export * from "./retrieveagentrequest.js";
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { OrqError } from "./orqerror.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Error running the evaluator
|
|
10
|
+
*/
|
|
11
|
+
export type InvokeEvalEvalsResponseBodyData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Error running the evaluator
|
|
17
|
+
*/
|
|
18
|
+
export class InvokeEvalEvalsResponseBody extends OrqError {
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: InvokeEvalEvalsResponseBodyData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
err: InvokeEvalEvalsResponseBodyData,
|
|
24
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
25
|
+
) {
|
|
26
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
27
|
+
super(message, httpMeta);
|
|
28
|
+
this.data$ = err;
|
|
29
|
+
|
|
30
|
+
this.name = "InvokeEvalEvalsResponseBody";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Workspace ID is not found on the request
|
|
36
|
+
*/
|
|
37
|
+
export type InvokeEvalResponseBodyData = {
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Workspace ID is not found on the request
|
|
43
|
+
*/
|
|
44
|
+
export class InvokeEvalResponseBody extends OrqError {
|
|
45
|
+
/** The original data that was passed to this error instance. */
|
|
46
|
+
data$: InvokeEvalResponseBodyData;
|
|
47
|
+
|
|
48
|
+
constructor(
|
|
49
|
+
err: InvokeEvalResponseBodyData,
|
|
50
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
51
|
+
) {
|
|
52
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
53
|
+
super(message, httpMeta);
|
|
54
|
+
this.data$ = err;
|
|
55
|
+
|
|
56
|
+
this.name = "InvokeEvalResponseBody";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const InvokeEvalEvalsResponseBody$inboundSchema: z.ZodType<
|
|
62
|
+
InvokeEvalEvalsResponseBody,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
message: z.string(),
|
|
67
|
+
request$: z.instanceof(Request),
|
|
68
|
+
response$: z.instanceof(Response),
|
|
69
|
+
body$: z.string(),
|
|
70
|
+
})
|
|
71
|
+
.transform((v) => {
|
|
72
|
+
return new InvokeEvalEvalsResponseBody(v, {
|
|
73
|
+
request: v.request$,
|
|
74
|
+
response: v.response$,
|
|
75
|
+
body: v.body$,
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export type InvokeEvalEvalsResponseBody$Outbound = {
|
|
81
|
+
message: string;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const InvokeEvalEvalsResponseBody$outboundSchema: z.ZodType<
|
|
86
|
+
InvokeEvalEvalsResponseBody$Outbound,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
InvokeEvalEvalsResponseBody
|
|
89
|
+
> = z.instanceof(InvokeEvalEvalsResponseBody)
|
|
90
|
+
.transform(v => v.data$)
|
|
91
|
+
.pipe(z.object({
|
|
92
|
+
message: z.string(),
|
|
93
|
+
}));
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const InvokeEvalResponseBody$inboundSchema: z.ZodType<
|
|
97
|
+
InvokeEvalResponseBody,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
unknown
|
|
100
|
+
> = z.object({
|
|
101
|
+
message: z.string(),
|
|
102
|
+
request$: z.instanceof(Request),
|
|
103
|
+
response$: z.instanceof(Response),
|
|
104
|
+
body$: z.string(),
|
|
105
|
+
})
|
|
106
|
+
.transform((v) => {
|
|
107
|
+
return new InvokeEvalResponseBody(v, {
|
|
108
|
+
request: v.request$,
|
|
109
|
+
response: v.response$,
|
|
110
|
+
body: v.body$,
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type InvokeEvalResponseBody$Outbound = {
|
|
116
|
+
message: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const InvokeEvalResponseBody$outboundSchema: z.ZodType<
|
|
121
|
+
InvokeEvalResponseBody$Outbound,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
InvokeEvalResponseBody
|
|
124
|
+
> = z.instanceof(InvokeEvalResponseBody)
|
|
125
|
+
.transform(v => v.data$)
|
|
126
|
+
.pipe(z.object({
|
|
127
|
+
message: z.string(),
|
|
128
|
+
}));
|
|
@@ -516,7 +516,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
516
516
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
517
517
|
.optional(),
|
|
518
518
|
updated: z.string().datetime({ offset: true }).default(
|
|
519
|
-
"2025-11-
|
|
519
|
+
"2025-11-27T09:45:48.831Z",
|
|
520
520
|
).transform(v => new Date(v)),
|
|
521
521
|
}).transform((v) => {
|
|
522
522
|
return remap$(v, {
|
|
@@ -553,7 +553,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
553
553
|
isActive: z.boolean(),
|
|
554
554
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
555
555
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
556
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
556
|
+
updated: z.date().default(() => new Date("2025-11-27T09:45:48.831Z"))
|
|
557
557
|
.transform(v => v.toISOString()),
|
|
558
558
|
}).transform((v) => {
|
|
559
559
|
return remap$(v, {
|
|
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2025-11-
|
|
170
|
+
"2025-11-27T09:45:48.496Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
207
207
|
tags: z.array(z.string()).optional(),
|
|
208
208
|
metadata: z.record(z.any()).optional(),
|
|
209
209
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
210
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
210
|
+
updated: z.date().default(() => new Date("2025-11-27T09:45:48.496Z"))
|
|
211
211
|
.transform(v => v.toISOString()),
|
|
212
212
|
}).transform((v) => {
|
|
213
213
|
return remap$(v, {
|
|
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
187
187
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
188
188
|
.optional(),
|
|
189
189
|
updated: z.string().datetime({ offset: true }).default(
|
|
190
|
-
"2025-11-
|
|
190
|
+
"2025-11-27T09:45:48.496Z",
|
|
191
191
|
).transform(v => new Date(v)),
|
|
192
192
|
}).transform((v) => {
|
|
193
193
|
return remap$(v, {
|
|
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
226
226
|
createdById: z.string().optional(),
|
|
227
227
|
updatedById: z.string().optional(),
|
|
228
228
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
229
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
229
|
+
updated: z.date().default(() => new Date("2025-11-27T09:45:48.496Z"))
|
|
230
230
|
.transform(v => v.toISOString()),
|
|
231
231
|
}).transform((v) => {
|
|
232
232
|
return remap$(v, {
|
|
@@ -4929,7 +4929,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
4929
4929
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
4930
4930
|
reviewed_by_id: z.string(),
|
|
4931
4931
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
4932
|
-
"2025-11-
|
|
4932
|
+
"2025-11-27T09:46:01.833Z",
|
|
4933
4933
|
).transform(v => new Date(v)),
|
|
4934
4934
|
type: CreateDatasetItemEvaluationsDatasetsType$inboundSchema,
|
|
4935
4935
|
values: z.array(z.string()),
|
|
@@ -4964,7 +4964,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
|
|
|
4964
4964
|
humanReviewId: z.string(),
|
|
4965
4965
|
source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
|
|
4966
4966
|
reviewedById: z.string(),
|
|
4967
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
4967
|
+
reviewedAt: z.date().default(() => new Date("2025-11-27T09:46:01.833Z"))
|
|
4968
4968
|
.transform(v => v.toISOString()),
|
|
4969
4969
|
type: CreateDatasetItemEvaluationsDatasetsType$outboundSchema,
|
|
4970
4970
|
values: z.array(z.string()),
|
|
@@ -5029,7 +5029,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
5029
5029
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
5030
5030
|
reviewed_by_id: z.string(),
|
|
5031
5031
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5032
|
-
"2025-11-
|
|
5032
|
+
"2025-11-27T09:46:01.832Z",
|
|
5033
5033
|
).transform(v => new Date(v)),
|
|
5034
5034
|
type: CreateDatasetItemEvaluationsType$inboundSchema,
|
|
5035
5035
|
value: z.number(),
|
|
@@ -5064,7 +5064,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
|
|
|
5064
5064
|
humanReviewId: z.string(),
|
|
5065
5065
|
source: EvaluationsSource$outboundSchema.default("orq"),
|
|
5066
5066
|
reviewedById: z.string(),
|
|
5067
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5067
|
+
reviewedAt: z.date().default(() => new Date("2025-11-27T09:46:01.832Z"))
|
|
5068
5068
|
.transform(v => v.toISOString()),
|
|
5069
5069
|
type: CreateDatasetItemEvaluationsType$outboundSchema,
|
|
5070
5070
|
value: z.number(),
|
|
@@ -5127,7 +5127,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
5127
5127
|
source: Source$inboundSchema.default("orq"),
|
|
5128
5128
|
reviewed_by_id: z.string(),
|
|
5129
5129
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5130
|
-
"2025-11-
|
|
5130
|
+
"2025-11-27T09:46:01.831Z",
|
|
5131
5131
|
).transform(v => new Date(v)),
|
|
5132
5132
|
type: EvaluationsType$inboundSchema,
|
|
5133
5133
|
value: z.string(),
|
|
@@ -5162,7 +5162,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
|
|
|
5162
5162
|
humanReviewId: z.string(),
|
|
5163
5163
|
source: Source$outboundSchema.default("orq"),
|
|
5164
5164
|
reviewedById: z.string(),
|
|
5165
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5165
|
+
reviewedAt: z.date().default(() => new Date("2025-11-27T09:46:01.831Z"))
|
|
5166
5166
|
.transform(v => v.toISOString()),
|
|
5167
5167
|
type: EvaluationsType$outboundSchema,
|
|
5168
5168
|
value: z.string(),
|
|
@@ -5267,7 +5267,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
5267
5267
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5268
5268
|
.optional(),
|
|
5269
5269
|
updated: z.string().datetime({ offset: true }).default(
|
|
5270
|
-
"2025-11-
|
|
5270
|
+
"2025-11-27T09:45:48.496Z",
|
|
5271
5271
|
).transform(v => new Date(v)),
|
|
5272
5272
|
}).transform((v) => {
|
|
5273
5273
|
return remap$(v, {
|
|
@@ -5345,7 +5345,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
5345
5345
|
createdById: z.string().optional(),
|
|
5346
5346
|
updatedById: z.string().optional(),
|
|
5347
5347
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5348
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
5348
|
+
updated: z.date().default(() => new Date("2025-11-27T09:45:48.496Z"))
|
|
5349
5349
|
.transform(v => v.toISOString()),
|
|
5350
5350
|
}).transform((v) => {
|
|
5351
5351
|
return remap$(v, {
|
|
@@ -608,7 +608,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
608
608
|
z.ZodTypeDef,
|
|
609
609
|
unknown
|
|
610
610
|
> = z.object({
|
|
611
|
-
_id: z.string().default("
|
|
611
|
+
_id: z.string().default("01KB2B96MCJVC4PCX4HTVMA0MC"),
|
|
612
612
|
display_name: z.string(),
|
|
613
613
|
description: z.string().optional(),
|
|
614
614
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -651,7 +651,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
651
651
|
z.ZodTypeDef,
|
|
652
652
|
CreateDatasourceResponseBody
|
|
653
653
|
> = z.object({
|
|
654
|
-
id: z.string().default("
|
|
654
|
+
id: z.string().default("01KB2B96MCJVC4PCX4HTVMA0MC"),
|
|
655
655
|
displayName: z.string(),
|
|
656
656
|
description: z.string().optional(),
|
|
657
657
|
status: CreateDatasourceStatus$outboundSchema,
|