@orq-ai/node 4.16.0-rc.50 → 4.16.0-rc.51
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/README.md +57 -41
- package/funcs/websearchSearch.d.ts +38 -0
- package/funcs/websearchSearch.d.ts.map +1 -0
- package/funcs/websearchSearch.js +142 -0
- package/funcs/websearchSearch.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/model.d.ts +6 -9
- package/models/components/model.d.ts.map +1 -1
- package/models/components/model.js +2 -2
- package/models/components/model.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/searchweb.d.ts +235 -0
- package/models/errors/searchweb.d.ts.map +1 -0
- package/models/errors/searchweb.js +351 -0
- package/models/errors/searchweb.js.map +1 -0
- package/models/operations/createtool.js +4 -4
- package/models/operations/deploymentinvoke.d.ts +4 -4
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +4 -5
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/searchweb.d.ts +217 -0
- package/models/operations/searchweb.d.ts.map +1 -0
- package/models/operations/searchweb.js +161 -0
- package/models/operations/searchweb.js.map +1 -0
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/websearch.d.ts +32 -0
- package/sdk/websearch.d.ts.map +1 -0
- package/sdk/websearch.js +42 -0
- package/sdk/websearch.js.map +1 -0
- package/src/funcs/websearchSearch.ts +258 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/model.ts +10 -11
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/searchweb.ts +546 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deploymentinvoke.ts +9 -6
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/searchweb.ts +366 -0
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/websearch.ts +47 -0
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import { OrqError } from "./orqerror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The provider request timed out or was cancelled.
|
|
11
|
+
*/
|
|
12
|
+
export type SearchWebWebsearchResponse504ResponseBodyData = {
|
|
13
|
+
error: components.APIError;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The provider request timed out or was cancelled.
|
|
18
|
+
*/
|
|
19
|
+
export class SearchWebWebsearchResponse504ResponseBody extends OrqError {
|
|
20
|
+
error: components.APIError;
|
|
21
|
+
|
|
22
|
+
/** The original data that was passed to this error instance. */
|
|
23
|
+
data$: SearchWebWebsearchResponse504ResponseBodyData;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
err: SearchWebWebsearchResponse504ResponseBodyData,
|
|
27
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
+
) {
|
|
29
|
+
const message = err.error?.message
|
|
30
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
31
|
+
super(message, httpMeta);
|
|
32
|
+
this.data$ = err;
|
|
33
|
+
this.error = err.error;
|
|
34
|
+
|
|
35
|
+
this.name = "SearchWebWebsearchResponse504ResponseBody";
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The gateway could not load workspace integrations. Retry when the credential store is available.
|
|
41
|
+
*/
|
|
42
|
+
export type SearchWebWebsearchResponse503ResponseBodyData = {
|
|
43
|
+
error: components.APIError;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The gateway could not load workspace integrations. Retry when the credential store is available.
|
|
48
|
+
*/
|
|
49
|
+
export class SearchWebWebsearchResponse503ResponseBody extends OrqError {
|
|
50
|
+
error: components.APIError;
|
|
51
|
+
|
|
52
|
+
/** The original data that was passed to this error instance. */
|
|
53
|
+
data$: SearchWebWebsearchResponse503ResponseBodyData;
|
|
54
|
+
|
|
55
|
+
constructor(
|
|
56
|
+
err: SearchWebWebsearchResponse503ResponseBodyData,
|
|
57
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
58
|
+
) {
|
|
59
|
+
const message = err.error?.message
|
|
60
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
61
|
+
super(message, httpMeta);
|
|
62
|
+
this.data$ = err;
|
|
63
|
+
this.error = err.error;
|
|
64
|
+
|
|
65
|
+
this.name = "SearchWebWebsearchResponse503ResponseBody";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The search provider, PII detector, or guardrail service failed. Invalid upstream credentials can also produce this response.
|
|
71
|
+
*/
|
|
72
|
+
export type SearchWebWebsearchResponse502ResponseBodyData = {
|
|
73
|
+
error: components.APIError;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The search provider, PII detector, or guardrail service failed. Invalid upstream credentials can also produce this response.
|
|
78
|
+
*/
|
|
79
|
+
export class SearchWebWebsearchResponse502ResponseBody extends OrqError {
|
|
80
|
+
error: components.APIError;
|
|
81
|
+
|
|
82
|
+
/** The original data that was passed to this error instance. */
|
|
83
|
+
data$: SearchWebWebsearchResponse502ResponseBodyData;
|
|
84
|
+
|
|
85
|
+
constructor(
|
|
86
|
+
err: SearchWebWebsearchResponse502ResponseBodyData,
|
|
87
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
88
|
+
) {
|
|
89
|
+
const message = err.error?.message
|
|
90
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
91
|
+
super(message, httpMeta);
|
|
92
|
+
this.data$ = err;
|
|
93
|
+
this.error = err.error;
|
|
94
|
+
|
|
95
|
+
this.name = "SearchWebWebsearchResponse502ResponseBody";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Unexpected gateway error. Include the trace ID, if available, when reporting the failure.
|
|
101
|
+
*/
|
|
102
|
+
export type SearchWebWebsearchResponse500ResponseBodyData = {
|
|
103
|
+
error: components.APIError;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Unexpected gateway error. Include the trace ID, if available, when reporting the failure.
|
|
108
|
+
*/
|
|
109
|
+
export class SearchWebWebsearchResponse500ResponseBody extends OrqError {
|
|
110
|
+
error: components.APIError;
|
|
111
|
+
|
|
112
|
+
/** The original data that was passed to this error instance. */
|
|
113
|
+
data$: SearchWebWebsearchResponse500ResponseBodyData;
|
|
114
|
+
|
|
115
|
+
constructor(
|
|
116
|
+
err: SearchWebWebsearchResponse500ResponseBodyData,
|
|
117
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
118
|
+
) {
|
|
119
|
+
const message = err.error?.message
|
|
120
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
121
|
+
super(message, httpMeta);
|
|
122
|
+
this.data$ = err;
|
|
123
|
+
this.error = err.error;
|
|
124
|
+
|
|
125
|
+
this.name = "SearchWebWebsearchResponse500ResponseBody";
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* A workspace or provider rate limit, or a matching budget, was reached. Wait before retrying or raise the budget.
|
|
131
|
+
*/
|
|
132
|
+
export type SearchWebWebsearchResponse429ResponseBodyData = {
|
|
133
|
+
error: components.APIError;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* A workspace or provider rate limit, or a matching budget, was reached. Wait before retrying or raise the budget.
|
|
138
|
+
*/
|
|
139
|
+
export class SearchWebWebsearchResponse429ResponseBody extends OrqError {
|
|
140
|
+
error: components.APIError;
|
|
141
|
+
|
|
142
|
+
/** The original data that was passed to this error instance. */
|
|
143
|
+
data$: SearchWebWebsearchResponse429ResponseBodyData;
|
|
144
|
+
|
|
145
|
+
constructor(
|
|
146
|
+
err: SearchWebWebsearchResponse429ResponseBodyData,
|
|
147
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
148
|
+
) {
|
|
149
|
+
const message = err.error?.message
|
|
150
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
151
|
+
super(message, httpMeta);
|
|
152
|
+
this.data$ = err;
|
|
153
|
+
this.error = err.error;
|
|
154
|
+
|
|
155
|
+
this.name = "SearchWebWebsearchResponse429ResponseBody";
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* A configured guardrail evaluator could not complete its evaluation.
|
|
161
|
+
*/
|
|
162
|
+
export type SearchWebWebsearchResponse422ResponseBodyData = {
|
|
163
|
+
error: components.APIError;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* A configured guardrail evaluator could not complete its evaluation.
|
|
168
|
+
*/
|
|
169
|
+
export class SearchWebWebsearchResponse422ResponseBody extends OrqError {
|
|
170
|
+
error: components.APIError;
|
|
171
|
+
|
|
172
|
+
/** The original data that was passed to this error instance. */
|
|
173
|
+
data$: SearchWebWebsearchResponse422ResponseBodyData;
|
|
174
|
+
|
|
175
|
+
constructor(
|
|
176
|
+
err: SearchWebWebsearchResponse422ResponseBodyData,
|
|
177
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
178
|
+
) {
|
|
179
|
+
const message = err.error?.message
|
|
180
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
181
|
+
super(message, httpMeta);
|
|
182
|
+
this.data$ = err;
|
|
183
|
+
this.error = err.error;
|
|
184
|
+
|
|
185
|
+
this.name = "SearchWebWebsearchResponse422ResponseBody";
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Unsupported or missing Content-Type. Send application/json; an optional charset parameter is accepted.
|
|
191
|
+
*/
|
|
192
|
+
export type SearchWebWebsearchResponse415ResponseBodyData = {
|
|
193
|
+
error: components.APIError;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Unsupported or missing Content-Type. Send application/json; an optional charset parameter is accepted.
|
|
198
|
+
*/
|
|
199
|
+
export class SearchWebWebsearchResponse415ResponseBody extends OrqError {
|
|
200
|
+
error: components.APIError;
|
|
201
|
+
|
|
202
|
+
/** The original data that was passed to this error instance. */
|
|
203
|
+
data$: SearchWebWebsearchResponse415ResponseBodyData;
|
|
204
|
+
|
|
205
|
+
constructor(
|
|
206
|
+
err: SearchWebWebsearchResponse415ResponseBodyData,
|
|
207
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
208
|
+
) {
|
|
209
|
+
const message = err.error?.message
|
|
210
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
211
|
+
super(message, httpMeta);
|
|
212
|
+
this.data$ = err;
|
|
213
|
+
this.error = err.error;
|
|
214
|
+
|
|
215
|
+
this.name = "SearchWebWebsearchResponse415ResponseBody";
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* The API key lacks websearch.execute permission.
|
|
221
|
+
*/
|
|
222
|
+
export type SearchWebWebsearchResponse403ResponseBodyData = {
|
|
223
|
+
error: components.APIError;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The API key lacks websearch.execute permission.
|
|
228
|
+
*/
|
|
229
|
+
export class SearchWebWebsearchResponse403ResponseBody extends OrqError {
|
|
230
|
+
error: components.APIError;
|
|
231
|
+
|
|
232
|
+
/** The original data that was passed to this error instance. */
|
|
233
|
+
data$: SearchWebWebsearchResponse403ResponseBodyData;
|
|
234
|
+
|
|
235
|
+
constructor(
|
|
236
|
+
err: SearchWebWebsearchResponse403ResponseBodyData,
|
|
237
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
238
|
+
) {
|
|
239
|
+
const message = err.error?.message
|
|
240
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
241
|
+
super(message, httpMeta);
|
|
242
|
+
this.data$ = err;
|
|
243
|
+
this.error = err.error;
|
|
244
|
+
|
|
245
|
+
this.name = "SearchWebWebsearchResponse403ResponseBody";
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Managed search requires a positive ORQ credit balance. Add credits before retrying. BYOK does not require ORQ credits.
|
|
251
|
+
*/
|
|
252
|
+
export type SearchWebWebsearchResponseResponseBodyData = {
|
|
253
|
+
error: components.APIError;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Managed search requires a positive ORQ credit balance. Add credits before retrying. BYOK does not require ORQ credits.
|
|
258
|
+
*/
|
|
259
|
+
export class SearchWebWebsearchResponseResponseBody extends OrqError {
|
|
260
|
+
error: components.APIError;
|
|
261
|
+
|
|
262
|
+
/** The original data that was passed to this error instance. */
|
|
263
|
+
data$: SearchWebWebsearchResponseResponseBodyData;
|
|
264
|
+
|
|
265
|
+
constructor(
|
|
266
|
+
err: SearchWebWebsearchResponseResponseBodyData,
|
|
267
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
268
|
+
) {
|
|
269
|
+
const message = err.error?.message
|
|
270
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
271
|
+
super(message, httpMeta);
|
|
272
|
+
this.data$ = err;
|
|
273
|
+
this.error = err.error;
|
|
274
|
+
|
|
275
|
+
this.name = "SearchWebWebsearchResponseResponseBody";
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Missing or invalid API key. Send a valid API key in the Authorization header.
|
|
281
|
+
*/
|
|
282
|
+
export type SearchWebWebsearchResponseBodyData = {
|
|
283
|
+
error: components.APIError;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Missing or invalid API key. Send a valid API key in the Authorization header.
|
|
288
|
+
*/
|
|
289
|
+
export class SearchWebWebsearchResponseBody extends OrqError {
|
|
290
|
+
error: components.APIError;
|
|
291
|
+
|
|
292
|
+
/** The original data that was passed to this error instance. */
|
|
293
|
+
data$: SearchWebWebsearchResponseBodyData;
|
|
294
|
+
|
|
295
|
+
constructor(
|
|
296
|
+
err: SearchWebWebsearchResponseBodyData,
|
|
297
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
298
|
+
) {
|
|
299
|
+
const message = err.error?.message
|
|
300
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
301
|
+
super(message, httpMeta);
|
|
302
|
+
this.data$ = err;
|
|
303
|
+
this.error = err.error;
|
|
304
|
+
|
|
305
|
+
this.name = "SearchWebWebsearchResponseBody";
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Invalid request, unusable workspace integration, or a blocking guardrail. Check the request fields and workspace integration settings.
|
|
311
|
+
*/
|
|
312
|
+
export type SearchWebResponseBodyData = {
|
|
313
|
+
error: components.APIError;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Invalid request, unusable workspace integration, or a blocking guardrail. Check the request fields and workspace integration settings.
|
|
318
|
+
*/
|
|
319
|
+
export class SearchWebResponseBody extends OrqError {
|
|
320
|
+
error: components.APIError;
|
|
321
|
+
|
|
322
|
+
/** The original data that was passed to this error instance. */
|
|
323
|
+
data$: SearchWebResponseBodyData;
|
|
324
|
+
|
|
325
|
+
constructor(
|
|
326
|
+
err: SearchWebResponseBodyData,
|
|
327
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
328
|
+
) {
|
|
329
|
+
const message = err.error?.message
|
|
330
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
331
|
+
super(message, httpMeta);
|
|
332
|
+
this.data$ = err;
|
|
333
|
+
this.error = err.error;
|
|
334
|
+
|
|
335
|
+
this.name = "SearchWebResponseBody";
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/** @internal */
|
|
340
|
+
export const SearchWebWebsearchResponse504ResponseBody$inboundSchema: z.ZodType<
|
|
341
|
+
SearchWebWebsearchResponse504ResponseBody,
|
|
342
|
+
z.ZodTypeDef,
|
|
343
|
+
unknown
|
|
344
|
+
> = z.object({
|
|
345
|
+
error: components.APIError$inboundSchema,
|
|
346
|
+
request$: z.instanceof(Request),
|
|
347
|
+
response$: z.instanceof(Response),
|
|
348
|
+
body$: z.string(),
|
|
349
|
+
})
|
|
350
|
+
.transform((v) => {
|
|
351
|
+
return new SearchWebWebsearchResponse504ResponseBody(v, {
|
|
352
|
+
request: v.request$,
|
|
353
|
+
response: v.response$,
|
|
354
|
+
body: v.body$,
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
/** @internal */
|
|
359
|
+
export const SearchWebWebsearchResponse503ResponseBody$inboundSchema: z.ZodType<
|
|
360
|
+
SearchWebWebsearchResponse503ResponseBody,
|
|
361
|
+
z.ZodTypeDef,
|
|
362
|
+
unknown
|
|
363
|
+
> = z.object({
|
|
364
|
+
error: components.APIError$inboundSchema,
|
|
365
|
+
request$: z.instanceof(Request),
|
|
366
|
+
response$: z.instanceof(Response),
|
|
367
|
+
body$: z.string(),
|
|
368
|
+
})
|
|
369
|
+
.transform((v) => {
|
|
370
|
+
return new SearchWebWebsearchResponse503ResponseBody(v, {
|
|
371
|
+
request: v.request$,
|
|
372
|
+
response: v.response$,
|
|
373
|
+
body: v.body$,
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
/** @internal */
|
|
378
|
+
export const SearchWebWebsearchResponse502ResponseBody$inboundSchema: z.ZodType<
|
|
379
|
+
SearchWebWebsearchResponse502ResponseBody,
|
|
380
|
+
z.ZodTypeDef,
|
|
381
|
+
unknown
|
|
382
|
+
> = z.object({
|
|
383
|
+
error: components.APIError$inboundSchema,
|
|
384
|
+
request$: z.instanceof(Request),
|
|
385
|
+
response$: z.instanceof(Response),
|
|
386
|
+
body$: z.string(),
|
|
387
|
+
})
|
|
388
|
+
.transform((v) => {
|
|
389
|
+
return new SearchWebWebsearchResponse502ResponseBody(v, {
|
|
390
|
+
request: v.request$,
|
|
391
|
+
response: v.response$,
|
|
392
|
+
body: v.body$,
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
/** @internal */
|
|
397
|
+
export const SearchWebWebsearchResponse500ResponseBody$inboundSchema: z.ZodType<
|
|
398
|
+
SearchWebWebsearchResponse500ResponseBody,
|
|
399
|
+
z.ZodTypeDef,
|
|
400
|
+
unknown
|
|
401
|
+
> = z.object({
|
|
402
|
+
error: components.APIError$inboundSchema,
|
|
403
|
+
request$: z.instanceof(Request),
|
|
404
|
+
response$: z.instanceof(Response),
|
|
405
|
+
body$: z.string(),
|
|
406
|
+
})
|
|
407
|
+
.transform((v) => {
|
|
408
|
+
return new SearchWebWebsearchResponse500ResponseBody(v, {
|
|
409
|
+
request: v.request$,
|
|
410
|
+
response: v.response$,
|
|
411
|
+
body: v.body$,
|
|
412
|
+
});
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
/** @internal */
|
|
416
|
+
export const SearchWebWebsearchResponse429ResponseBody$inboundSchema: z.ZodType<
|
|
417
|
+
SearchWebWebsearchResponse429ResponseBody,
|
|
418
|
+
z.ZodTypeDef,
|
|
419
|
+
unknown
|
|
420
|
+
> = z.object({
|
|
421
|
+
error: components.APIError$inboundSchema,
|
|
422
|
+
request$: z.instanceof(Request),
|
|
423
|
+
response$: z.instanceof(Response),
|
|
424
|
+
body$: z.string(),
|
|
425
|
+
})
|
|
426
|
+
.transform((v) => {
|
|
427
|
+
return new SearchWebWebsearchResponse429ResponseBody(v, {
|
|
428
|
+
request: v.request$,
|
|
429
|
+
response: v.response$,
|
|
430
|
+
body: v.body$,
|
|
431
|
+
});
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
/** @internal */
|
|
435
|
+
export const SearchWebWebsearchResponse422ResponseBody$inboundSchema: z.ZodType<
|
|
436
|
+
SearchWebWebsearchResponse422ResponseBody,
|
|
437
|
+
z.ZodTypeDef,
|
|
438
|
+
unknown
|
|
439
|
+
> = z.object({
|
|
440
|
+
error: components.APIError$inboundSchema,
|
|
441
|
+
request$: z.instanceof(Request),
|
|
442
|
+
response$: z.instanceof(Response),
|
|
443
|
+
body$: z.string(),
|
|
444
|
+
})
|
|
445
|
+
.transform((v) => {
|
|
446
|
+
return new SearchWebWebsearchResponse422ResponseBody(v, {
|
|
447
|
+
request: v.request$,
|
|
448
|
+
response: v.response$,
|
|
449
|
+
body: v.body$,
|
|
450
|
+
});
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export const SearchWebWebsearchResponse415ResponseBody$inboundSchema: z.ZodType<
|
|
455
|
+
SearchWebWebsearchResponse415ResponseBody,
|
|
456
|
+
z.ZodTypeDef,
|
|
457
|
+
unknown
|
|
458
|
+
> = z.object({
|
|
459
|
+
error: components.APIError$inboundSchema,
|
|
460
|
+
request$: z.instanceof(Request),
|
|
461
|
+
response$: z.instanceof(Response),
|
|
462
|
+
body$: z.string(),
|
|
463
|
+
})
|
|
464
|
+
.transform((v) => {
|
|
465
|
+
return new SearchWebWebsearchResponse415ResponseBody(v, {
|
|
466
|
+
request: v.request$,
|
|
467
|
+
response: v.response$,
|
|
468
|
+
body: v.body$,
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
/** @internal */
|
|
473
|
+
export const SearchWebWebsearchResponse403ResponseBody$inboundSchema: z.ZodType<
|
|
474
|
+
SearchWebWebsearchResponse403ResponseBody,
|
|
475
|
+
z.ZodTypeDef,
|
|
476
|
+
unknown
|
|
477
|
+
> = z.object({
|
|
478
|
+
error: components.APIError$inboundSchema,
|
|
479
|
+
request$: z.instanceof(Request),
|
|
480
|
+
response$: z.instanceof(Response),
|
|
481
|
+
body$: z.string(),
|
|
482
|
+
})
|
|
483
|
+
.transform((v) => {
|
|
484
|
+
return new SearchWebWebsearchResponse403ResponseBody(v, {
|
|
485
|
+
request: v.request$,
|
|
486
|
+
response: v.response$,
|
|
487
|
+
body: v.body$,
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
/** @internal */
|
|
492
|
+
export const SearchWebWebsearchResponseResponseBody$inboundSchema: z.ZodType<
|
|
493
|
+
SearchWebWebsearchResponseResponseBody,
|
|
494
|
+
z.ZodTypeDef,
|
|
495
|
+
unknown
|
|
496
|
+
> = z.object({
|
|
497
|
+
error: components.APIError$inboundSchema,
|
|
498
|
+
request$: z.instanceof(Request),
|
|
499
|
+
response$: z.instanceof(Response),
|
|
500
|
+
body$: z.string(),
|
|
501
|
+
})
|
|
502
|
+
.transform((v) => {
|
|
503
|
+
return new SearchWebWebsearchResponseResponseBody(v, {
|
|
504
|
+
request: v.request$,
|
|
505
|
+
response: v.response$,
|
|
506
|
+
body: v.body$,
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
/** @internal */
|
|
511
|
+
export const SearchWebWebsearchResponseBody$inboundSchema: z.ZodType<
|
|
512
|
+
SearchWebWebsearchResponseBody,
|
|
513
|
+
z.ZodTypeDef,
|
|
514
|
+
unknown
|
|
515
|
+
> = z.object({
|
|
516
|
+
error: components.APIError$inboundSchema,
|
|
517
|
+
request$: z.instanceof(Request),
|
|
518
|
+
response$: z.instanceof(Response),
|
|
519
|
+
body$: z.string(),
|
|
520
|
+
})
|
|
521
|
+
.transform((v) => {
|
|
522
|
+
return new SearchWebWebsearchResponseBody(v, {
|
|
523
|
+
request: v.request$,
|
|
524
|
+
response: v.response$,
|
|
525
|
+
body: v.body$,
|
|
526
|
+
});
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
/** @internal */
|
|
530
|
+
export const SearchWebResponseBody$inboundSchema: z.ZodType<
|
|
531
|
+
SearchWebResponseBody,
|
|
532
|
+
z.ZodTypeDef,
|
|
533
|
+
unknown
|
|
534
|
+
> = z.object({
|
|
535
|
+
error: components.APIError$inboundSchema,
|
|
536
|
+
request$: z.instanceof(Request),
|
|
537
|
+
response$: z.instanceof(Response),
|
|
538
|
+
body$: z.string(),
|
|
539
|
+
})
|
|
540
|
+
.transform((v) => {
|
|
541
|
+
return new SearchWebResponseBody(v, {
|
|
542
|
+
request: v.request$,
|
|
543
|
+
response: v.response$,
|
|
544
|
+
body: v.body$,
|
|
545
|
+
});
|
|
546
|
+
});
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M4766ZGMF77AMFH37JQJ476J"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M4766ZGKR47NTW3440SKBHXP"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M4766ZGKHQJ9BBEHZHPM6J36"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M4766ZGJD5JZT5ZHAZQVJD20"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -25,7 +25,7 @@ export type ObjectT = ClosedEnum<typeof ObjectT>;
|
|
|
25
25
|
/**
|
|
26
26
|
* The provider used to generate the response
|
|
27
27
|
*/
|
|
28
|
-
export const
|
|
28
|
+
export const DeploymentInvokeProvider = {
|
|
29
29
|
Openai: "openai",
|
|
30
30
|
Groq: "groq",
|
|
31
31
|
Cohere: "cohere",
|
|
@@ -73,7 +73,9 @@ export const Provider = {
|
|
|
73
73
|
/**
|
|
74
74
|
* The provider used to generate the response
|
|
75
75
|
*/
|
|
76
|
-
export type
|
|
76
|
+
export type DeploymentInvokeProvider = ClosedEnum<
|
|
77
|
+
typeof DeploymentInvokeProvider
|
|
78
|
+
>;
|
|
77
79
|
|
|
78
80
|
export type Telemetry = {
|
|
79
81
|
/**
|
|
@@ -308,7 +310,7 @@ export type DeploymentInvokeResponseBody = {
|
|
|
308
310
|
/**
|
|
309
311
|
* The provider used to generate the response
|
|
310
312
|
*/
|
|
311
|
-
provider:
|
|
313
|
+
provider: DeploymentInvokeProvider;
|
|
312
314
|
/**
|
|
313
315
|
* Indicates if the response is the final response
|
|
314
316
|
*/
|
|
@@ -349,8 +351,9 @@ export const ObjectT$inboundSchema: z.ZodNativeEnum<typeof ObjectT> = z
|
|
|
349
351
|
.nativeEnum(ObjectT);
|
|
350
352
|
|
|
351
353
|
/** @internal */
|
|
352
|
-
export const
|
|
353
|
-
|
|
354
|
+
export const DeploymentInvokeProvider$inboundSchema: z.ZodNativeEnum<
|
|
355
|
+
typeof DeploymentInvokeProvider
|
|
356
|
+
> = z.nativeEnum(DeploymentInvokeProvider);
|
|
354
357
|
|
|
355
358
|
/** @internal */
|
|
356
359
|
export const Telemetry$inboundSchema: z.ZodType<
|
|
@@ -702,7 +705,7 @@ export const DeploymentInvokeResponseBody$inboundSchema: z.ZodType<
|
|
|
702
705
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
703
706
|
object: ObjectT$inboundSchema,
|
|
704
707
|
model: z.string(),
|
|
705
|
-
provider:
|
|
708
|
+
provider: DeploymentInvokeProvider$inboundSchema,
|
|
706
709
|
is_final: z.boolean(),
|
|
707
710
|
integration_id: z.string().optional(),
|
|
708
711
|
telemetry: z.lazy(() => Telemetry$inboundSchema),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M4766ZGGQ8G797JZ6XMEPR3G"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M4766ZGF5ZMFZ8D9F9PGK967"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M4766ZGFQV14YF94KXQWMFH4"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M4766ZGFRBJJW4H8AMS9DAWS"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-10-
|
|
143
|
+
"2026-10-05T23:25:58.554Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-10-
|
|
188
|
+
"2026-10-05T23:25:58.554Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-10-
|
|
144
|
+
"2026-10-05T23:25:58.554Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-10-
|
|
189
|
+
"2026-10-05T23:25:58.554Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|