@orq-ai/node 4.18.0-rc.10 → 4.18.0-rc.11

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.
Files changed (92) hide show
  1. package/README.md +66 -79
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createeval.d.ts +4 -4
  7. package/models/operations/createeval.d.ts.map +1 -1
  8. package/models/operations/createeval.js +5 -5
  9. package/models/operations/createeval.js.map +1 -1
  10. package/models/operations/createtool.js +4 -4
  11. package/models/operations/getalltools.js +4 -4
  12. package/models/operations/index.d.ts +0 -5
  13. package/models/operations/index.d.ts.map +1 -1
  14. package/models/operations/index.js +0 -5
  15. package/models/operations/index.js.map +1 -1
  16. package/models/operations/listdeploymentversions.js +1 -1
  17. package/models/operations/retrievetool.js +4 -4
  18. package/models/operations/runagent.js +1 -1
  19. package/models/operations/streamrunagent.js +1 -1
  20. package/models/operations/updatetool.js +4 -4
  21. package/package.json +7 -7
  22. package/sdk/sdk.d.ts +0 -3
  23. package/sdk/sdk.d.ts.map +1 -1
  24. package/sdk/sdk.js +0 -4
  25. package/sdk/sdk.js.map +1 -1
  26. package/src/lib/config.ts +3 -3
  27. package/src/models/components/reasoningpart.ts +1 -1
  28. package/src/models/operations/createeval.ts +7 -11
  29. package/src/models/operations/createtool.ts +4 -4
  30. package/src/models/operations/getalltools.ts +4 -4
  31. package/src/models/operations/index.ts +0 -5
  32. package/src/models/operations/listdeploymentversions.ts +1 -1
  33. package/src/models/operations/retrievetool.ts +4 -4
  34. package/src/models/operations/runagent.ts +1 -1
  35. package/src/models/operations/streamrunagent.ts +1 -1
  36. package/src/models/operations/updatetool.ts +4 -4
  37. package/src/sdk/sdk.ts +0 -6
  38. package/funcs/humanReviewSetsCreate.d.ts +0 -20
  39. package/funcs/humanReviewSetsCreate.d.ts.map +0 -1
  40. package/funcs/humanReviewSetsCreate.js +0 -123
  41. package/funcs/humanReviewSetsCreate.js.map +0 -1
  42. package/funcs/humanReviewSetsDelete.d.ts +0 -20
  43. package/funcs/humanReviewSetsDelete.d.ts.map +0 -1
  44. package/funcs/humanReviewSetsDelete.js +0 -127
  45. package/funcs/humanReviewSetsDelete.js.map +0 -1
  46. package/funcs/humanReviewSetsGet.d.ts +0 -20
  47. package/funcs/humanReviewSetsGet.d.ts.map +0 -1
  48. package/funcs/humanReviewSetsGet.js +0 -126
  49. package/funcs/humanReviewSetsGet.js.map +0 -1
  50. package/funcs/humanReviewSetsList.d.ts +0 -20
  51. package/funcs/humanReviewSetsList.d.ts.map +0 -1
  52. package/funcs/humanReviewSetsList.js +0 -125
  53. package/funcs/humanReviewSetsList.js.map +0 -1
  54. package/funcs/humanReviewSetsUpdate.d.ts +0 -20
  55. package/funcs/humanReviewSetsUpdate.d.ts.map +0 -1
  56. package/funcs/humanReviewSetsUpdate.js +0 -127
  57. package/funcs/humanReviewSetsUpdate.js.map +0 -1
  58. package/models/operations/deletev2humanevalsetsid.d.ts +0 -15
  59. package/models/operations/deletev2humanevalsetsid.d.ts.map +0 -1
  60. package/models/operations/deletev2humanevalsetsid.js +0 -49
  61. package/models/operations/deletev2humanevalsetsid.js.map +0 -1
  62. package/models/operations/getv2humanevalsets.d.ts +0 -103
  63. package/models/operations/getv2humanevalsets.d.ts.map +0 -1
  64. package/models/operations/getv2humanevalsets.js +0 -128
  65. package/models/operations/getv2humanevalsets.js.map +0 -1
  66. package/models/operations/getv2humanevalsetsid.d.ts +0 -106
  67. package/models/operations/getv2humanevalsetsid.d.ts.map +0 -1
  68. package/models/operations/getv2humanevalsetsid.js +0 -124
  69. package/models/operations/getv2humanevalsetsid.js.map +0 -1
  70. package/models/operations/patchv2humanevalsetsid.d.ts +0 -184
  71. package/models/operations/patchv2humanevalsetsid.d.ts.map +0 -1
  72. package/models/operations/patchv2humanevalsetsid.js +0 -183
  73. package/models/operations/patchv2humanevalsetsid.js.map +0 -1
  74. package/models/operations/postv2humanevalsets.d.ts +0 -169
  75. package/models/operations/postv2humanevalsets.d.ts.map +0 -1
  76. package/models/operations/postv2humanevalsets.js +0 -167
  77. package/models/operations/postv2humanevalsets.js.map +0 -1
  78. package/sdk/humanreviewsets.d.ts +0 -50
  79. package/sdk/humanreviewsets.d.ts.map +0 -1
  80. package/sdk/humanreviewsets.js +0 -72
  81. package/sdk/humanreviewsets.js.map +0 -1
  82. package/src/funcs/humanReviewSetsCreate.ts +0 -178
  83. package/src/funcs/humanReviewSetsDelete.ts +0 -180
  84. package/src/funcs/humanReviewSetsGet.ts +0 -179
  85. package/src/funcs/humanReviewSetsList.ts +0 -181
  86. package/src/funcs/humanReviewSetsUpdate.ts +0 -180
  87. package/src/models/operations/deletev2humanevalsetsid.ts +0 -36
  88. package/src/models/operations/getv2humanevalsets.ts +0 -234
  89. package/src/models/operations/getv2humanevalsetsid.ts +0 -235
  90. package/src/models/operations/patchv2humanevalsetsid.ts +0 -415
  91. package/src/models/operations/postv2humanevalsets.ts +0 -351
  92. package/src/sdk/humanreviewsets.ts +0 -109
@@ -1,415 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type PatchV2HumanEvalSetsIdRequestBody2 = {
12
- /**
13
- * Display name of the human review set
14
- */
15
- displayName: string;
16
- /**
17
- * Detailed description of the human review set
18
- */
19
- description?: string | undefined;
20
- /**
21
- * Array of human review IDs to be applied to matching spans
22
- */
23
- humanEvalIds: Array<string>;
24
- /**
25
- * Optional project ID to scope this human review set to a specific project
26
- */
27
- projectId?: string | undefined;
28
- filterType: "name";
29
- /**
30
- * Name pattern to match
31
- */
32
- filterValue: string;
33
- };
34
-
35
- export type PatchV2HumanEvalSetsIdRequestBody1 = {
36
- /**
37
- * Display name of the human review set
38
- */
39
- displayName: string;
40
- /**
41
- * Detailed description of the human review set
42
- */
43
- description?: string | undefined;
44
- /**
45
- * Array of human review IDs to be applied to matching spans
46
- */
47
- humanEvalIds: Array<string>;
48
- /**
49
- * Optional project ID to scope this human review set to a specific project
50
- */
51
- projectId?: string | undefined;
52
- filterType: "span_type";
53
- /**
54
- * Array of span types to match
55
- */
56
- filterValues: Array<string>;
57
- };
58
-
59
- export type PatchV2HumanEvalSetsIdRequestBody =
60
- | PatchV2HumanEvalSetsIdRequestBody1
61
- | PatchV2HumanEvalSetsIdRequestBody2;
62
-
63
- export type PatchV2HumanEvalSetsIdRequest = {
64
- /**
65
- * The ID of the human review set to retrieve
66
- */
67
- id: string;
68
- requestBody?:
69
- | PatchV2HumanEvalSetsIdRequestBody1
70
- | PatchV2HumanEvalSetsIdRequestBody2
71
- | undefined;
72
- };
73
-
74
- export type PatchV2HumanEvalSetsIdResponseBody2 = {
75
- /**
76
- * The id of the resource
77
- */
78
- id: string;
79
- /**
80
- * Display name of the human review set
81
- */
82
- displayName: string;
83
- /**
84
- * Detailed description of the human review set
85
- */
86
- description?: string | undefined;
87
- /**
88
- * Array of human review IDs to be applied to matching spans
89
- */
90
- humanEvalIds: Array<string>;
91
- workspaceId: string;
92
- /**
93
- * Optional project ID to scope this human review set to a specific project
94
- */
95
- projectId?: string | undefined;
96
- createdById?: string | undefined;
97
- updatedById?: string | undefined;
98
- /**
99
- * The date and time the resource was created
100
- */
101
- created?: Date | undefined;
102
- /**
103
- * The date and time the resource was last updated
104
- */
105
- updated: Date;
106
- filterType: "name";
107
- /**
108
- * Name pattern to match
109
- */
110
- filterValue: string;
111
- };
112
-
113
- export type PatchV2HumanEvalSetsIdResponseBody1 = {
114
- /**
115
- * The id of the resource
116
- */
117
- id: string;
118
- /**
119
- * Display name of the human review set
120
- */
121
- displayName: string;
122
- /**
123
- * Detailed description of the human review set
124
- */
125
- description?: string | undefined;
126
- /**
127
- * Array of human review IDs to be applied to matching spans
128
- */
129
- humanEvalIds: Array<string>;
130
- workspaceId: string;
131
- /**
132
- * Optional project ID to scope this human review set to a specific project
133
- */
134
- projectId?: string | undefined;
135
- createdById?: string | undefined;
136
- updatedById?: string | undefined;
137
- /**
138
- * The date and time the resource was created
139
- */
140
- created?: Date | undefined;
141
- /**
142
- * The date and time the resource was last updated
143
- */
144
- updated: Date;
145
- filterType: "span_type";
146
- /**
147
- * Array of span types to match
148
- */
149
- filterValues: Array<string>;
150
- };
151
-
152
- /**
153
- * Successfully updated the human review set
154
- */
155
- export type PatchV2HumanEvalSetsIdResponseBody =
156
- | PatchV2HumanEvalSetsIdResponseBody1
157
- | PatchV2HumanEvalSetsIdResponseBody2;
158
-
159
- /** @internal */
160
- export type PatchV2HumanEvalSetsIdRequestBody2$Outbound = {
161
- display_name: string;
162
- description?: string | undefined;
163
- human_eval_ids: Array<string>;
164
- project_id?: string | undefined;
165
- filter_type: "name";
166
- filter_value: string;
167
- };
168
-
169
- /** @internal */
170
- export const PatchV2HumanEvalSetsIdRequestBody2$outboundSchema: z.ZodType<
171
- PatchV2HumanEvalSetsIdRequestBody2$Outbound,
172
- z.ZodTypeDef,
173
- PatchV2HumanEvalSetsIdRequestBody2
174
- > = z.object({
175
- displayName: z.string(),
176
- description: z.string().optional(),
177
- humanEvalIds: z.array(z.string()),
178
- projectId: z.string().optional(),
179
- filterType: z.literal("name"),
180
- filterValue: z.string(),
181
- }).transform((v) => {
182
- return remap$(v, {
183
- displayName: "display_name",
184
- humanEvalIds: "human_eval_ids",
185
- projectId: "project_id",
186
- filterType: "filter_type",
187
- filterValue: "filter_value",
188
- });
189
- });
190
-
191
- export function patchV2HumanEvalSetsIdRequestBody2ToJSON(
192
- patchV2HumanEvalSetsIdRequestBody2: PatchV2HumanEvalSetsIdRequestBody2,
193
- ): string {
194
- return JSON.stringify(
195
- PatchV2HumanEvalSetsIdRequestBody2$outboundSchema.parse(
196
- patchV2HumanEvalSetsIdRequestBody2,
197
- ),
198
- );
199
- }
200
-
201
- /** @internal */
202
- export type PatchV2HumanEvalSetsIdRequestBody1$Outbound = {
203
- display_name: string;
204
- description?: string | undefined;
205
- human_eval_ids: Array<string>;
206
- project_id?: string | undefined;
207
- filter_type: "span_type";
208
- filter_values: Array<string>;
209
- };
210
-
211
- /** @internal */
212
- export const PatchV2HumanEvalSetsIdRequestBody1$outboundSchema: z.ZodType<
213
- PatchV2HumanEvalSetsIdRequestBody1$Outbound,
214
- z.ZodTypeDef,
215
- PatchV2HumanEvalSetsIdRequestBody1
216
- > = z.object({
217
- displayName: z.string(),
218
- description: z.string().optional(),
219
- humanEvalIds: z.array(z.string()),
220
- projectId: z.string().optional(),
221
- filterType: z.literal("span_type"),
222
- filterValues: z.array(z.string()),
223
- }).transform((v) => {
224
- return remap$(v, {
225
- displayName: "display_name",
226
- humanEvalIds: "human_eval_ids",
227
- projectId: "project_id",
228
- filterType: "filter_type",
229
- filterValues: "filter_values",
230
- });
231
- });
232
-
233
- export function patchV2HumanEvalSetsIdRequestBody1ToJSON(
234
- patchV2HumanEvalSetsIdRequestBody1: PatchV2HumanEvalSetsIdRequestBody1,
235
- ): string {
236
- return JSON.stringify(
237
- PatchV2HumanEvalSetsIdRequestBody1$outboundSchema.parse(
238
- patchV2HumanEvalSetsIdRequestBody1,
239
- ),
240
- );
241
- }
242
-
243
- /** @internal */
244
- export type PatchV2HumanEvalSetsIdRequestBody$Outbound =
245
- | PatchV2HumanEvalSetsIdRequestBody1$Outbound
246
- | PatchV2HumanEvalSetsIdRequestBody2$Outbound;
247
-
248
- /** @internal */
249
- export const PatchV2HumanEvalSetsIdRequestBody$outboundSchema: z.ZodType<
250
- PatchV2HumanEvalSetsIdRequestBody$Outbound,
251
- z.ZodTypeDef,
252
- PatchV2HumanEvalSetsIdRequestBody
253
- > = z.union([
254
- z.lazy(() => PatchV2HumanEvalSetsIdRequestBody1$outboundSchema),
255
- z.lazy(() => PatchV2HumanEvalSetsIdRequestBody2$outboundSchema),
256
- ]);
257
-
258
- export function patchV2HumanEvalSetsIdRequestBodyToJSON(
259
- patchV2HumanEvalSetsIdRequestBody: PatchV2HumanEvalSetsIdRequestBody,
260
- ): string {
261
- return JSON.stringify(
262
- PatchV2HumanEvalSetsIdRequestBody$outboundSchema.parse(
263
- patchV2HumanEvalSetsIdRequestBody,
264
- ),
265
- );
266
- }
267
-
268
- /** @internal */
269
- export type PatchV2HumanEvalSetsIdRequest$Outbound = {
270
- id: string;
271
- RequestBody?:
272
- | PatchV2HumanEvalSetsIdRequestBody1$Outbound
273
- | PatchV2HumanEvalSetsIdRequestBody2$Outbound
274
- | undefined;
275
- };
276
-
277
- /** @internal */
278
- export const PatchV2HumanEvalSetsIdRequest$outboundSchema: z.ZodType<
279
- PatchV2HumanEvalSetsIdRequest$Outbound,
280
- z.ZodTypeDef,
281
- PatchV2HumanEvalSetsIdRequest
282
- > = z.object({
283
- id: z.string(),
284
- requestBody: z.union([
285
- z.lazy(() => PatchV2HumanEvalSetsIdRequestBody1$outboundSchema),
286
- z.lazy(() => PatchV2HumanEvalSetsIdRequestBody2$outboundSchema),
287
- ]).optional(),
288
- }).transform((v) => {
289
- return remap$(v, {
290
- requestBody: "RequestBody",
291
- });
292
- });
293
-
294
- export function patchV2HumanEvalSetsIdRequestToJSON(
295
- patchV2HumanEvalSetsIdRequest: PatchV2HumanEvalSetsIdRequest,
296
- ): string {
297
- return JSON.stringify(
298
- PatchV2HumanEvalSetsIdRequest$outboundSchema.parse(
299
- patchV2HumanEvalSetsIdRequest,
300
- ),
301
- );
302
- }
303
-
304
- /** @internal */
305
- export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
306
- PatchV2HumanEvalSetsIdResponseBody2,
307
- z.ZodTypeDef,
308
- unknown
309
- > = z.object({
310
- _id: z.string(),
311
- display_name: z.string(),
312
- description: z.string().optional(),
313
- human_eval_ids: z.array(z.string()),
314
- workspace_id: z.string(),
315
- project_id: z.string().optional(),
316
- created_by_id: z.string().optional(),
317
- updated_by_id: z.string().optional(),
318
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
- .optional(),
320
- updated: z.string().datetime({ offset: true }).default(
321
- "2026-10-28T11:12:42.542Z",
322
- ).transform(v => new Date(v)),
323
- filter_type: z.literal("name"),
324
- filter_value: z.string(),
325
- }).transform((v) => {
326
- return remap$(v, {
327
- "_id": "id",
328
- "display_name": "displayName",
329
- "human_eval_ids": "humanEvalIds",
330
- "workspace_id": "workspaceId",
331
- "project_id": "projectId",
332
- "created_by_id": "createdById",
333
- "updated_by_id": "updatedById",
334
- "filter_type": "filterType",
335
- "filter_value": "filterValue",
336
- });
337
- });
338
-
339
- export function patchV2HumanEvalSetsIdResponseBody2FromJSON(
340
- jsonString: string,
341
- ): SafeParseResult<PatchV2HumanEvalSetsIdResponseBody2, SDKValidationError> {
342
- return safeParse(
343
- jsonString,
344
- (x) =>
345
- PatchV2HumanEvalSetsIdResponseBody2$inboundSchema.parse(JSON.parse(x)),
346
- `Failed to parse 'PatchV2HumanEvalSetsIdResponseBody2' from JSON`,
347
- );
348
- }
349
-
350
- /** @internal */
351
- export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
352
- PatchV2HumanEvalSetsIdResponseBody1,
353
- z.ZodTypeDef,
354
- unknown
355
- > = z.object({
356
- _id: z.string(),
357
- display_name: z.string(),
358
- description: z.string().optional(),
359
- human_eval_ids: z.array(z.string()),
360
- workspace_id: z.string(),
361
- project_id: z.string().optional(),
362
- created_by_id: z.string().optional(),
363
- updated_by_id: z.string().optional(),
364
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
- .optional(),
366
- updated: z.string().datetime({ offset: true }).default(
367
- "2026-10-28T11:12:42.542Z",
368
- ).transform(v => new Date(v)),
369
- filter_type: z.literal("span_type"),
370
- filter_values: z.array(z.string()),
371
- }).transform((v) => {
372
- return remap$(v, {
373
- "_id": "id",
374
- "display_name": "displayName",
375
- "human_eval_ids": "humanEvalIds",
376
- "workspace_id": "workspaceId",
377
- "project_id": "projectId",
378
- "created_by_id": "createdById",
379
- "updated_by_id": "updatedById",
380
- "filter_type": "filterType",
381
- "filter_values": "filterValues",
382
- });
383
- });
384
-
385
- export function patchV2HumanEvalSetsIdResponseBody1FromJSON(
386
- jsonString: string,
387
- ): SafeParseResult<PatchV2HumanEvalSetsIdResponseBody1, SDKValidationError> {
388
- return safeParse(
389
- jsonString,
390
- (x) =>
391
- PatchV2HumanEvalSetsIdResponseBody1$inboundSchema.parse(JSON.parse(x)),
392
- `Failed to parse 'PatchV2HumanEvalSetsIdResponseBody1' from JSON`,
393
- );
394
- }
395
-
396
- /** @internal */
397
- export const PatchV2HumanEvalSetsIdResponseBody$inboundSchema: z.ZodType<
398
- PatchV2HumanEvalSetsIdResponseBody,
399
- z.ZodTypeDef,
400
- unknown
401
- > = z.union([
402
- z.lazy(() => PatchV2HumanEvalSetsIdResponseBody1$inboundSchema),
403
- z.lazy(() => PatchV2HumanEvalSetsIdResponseBody2$inboundSchema),
404
- ]);
405
-
406
- export function patchV2HumanEvalSetsIdResponseBodyFromJSON(
407
- jsonString: string,
408
- ): SafeParseResult<PatchV2HumanEvalSetsIdResponseBody, SDKValidationError> {
409
- return safeParse(
410
- jsonString,
411
- (x) =>
412
- PatchV2HumanEvalSetsIdResponseBody$inboundSchema.parse(JSON.parse(x)),
413
- `Failed to parse 'PatchV2HumanEvalSetsIdResponseBody' from JSON`,
414
- );
415
- }