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

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,351 +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 RequestBody2 = {
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 RequestBody1 = {
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 PostV2HumanEvalSetsRequestBody = RequestBody1 | RequestBody2;
60
-
61
- export type PostV2HumanEvalSetsResponseBody2 = {
62
- /**
63
- * The id of the resource
64
- */
65
- id: string;
66
- /**
67
- * Display name of the human review set
68
- */
69
- displayName: string;
70
- /**
71
- * Detailed description of the human review set
72
- */
73
- description?: string | undefined;
74
- /**
75
- * Array of human review IDs to be applied to matching spans
76
- */
77
- humanEvalIds: Array<string>;
78
- workspaceId: string;
79
- /**
80
- * Optional project ID to scope this human review set to a specific project
81
- */
82
- projectId?: string | undefined;
83
- createdById?: string | undefined;
84
- updatedById?: string | undefined;
85
- /**
86
- * The date and time the resource was created
87
- */
88
- created?: Date | undefined;
89
- /**
90
- * The date and time the resource was last updated
91
- */
92
- updated: Date;
93
- filterType: "name";
94
- /**
95
- * Name pattern to match
96
- */
97
- filterValue: string;
98
- };
99
-
100
- export type PostV2HumanEvalSetsResponseBody1 = {
101
- /**
102
- * The id of the resource
103
- */
104
- id: string;
105
- /**
106
- * Display name of the human review set
107
- */
108
- displayName: string;
109
- /**
110
- * Detailed description of the human review set
111
- */
112
- description?: string | undefined;
113
- /**
114
- * Array of human review IDs to be applied to matching spans
115
- */
116
- humanEvalIds: Array<string>;
117
- workspaceId: string;
118
- /**
119
- * Optional project ID to scope this human review set to a specific project
120
- */
121
- projectId?: string | undefined;
122
- createdById?: string | undefined;
123
- updatedById?: string | undefined;
124
- /**
125
- * The date and time the resource was created
126
- */
127
- created?: Date | undefined;
128
- /**
129
- * The date and time the resource was last updated
130
- */
131
- updated: Date;
132
- filterType: "span_type";
133
- /**
134
- * Array of span types to match
135
- */
136
- filterValues: Array<string>;
137
- };
138
-
139
- /**
140
- * Successfully created a human review set
141
- */
142
- export type PostV2HumanEvalSetsResponseBody =
143
- | PostV2HumanEvalSetsResponseBody1
144
- | PostV2HumanEvalSetsResponseBody2;
145
-
146
- /** @internal */
147
- export type RequestBody2$Outbound = {
148
- display_name: string;
149
- description?: string | undefined;
150
- human_eval_ids: Array<string>;
151
- project_id?: string | undefined;
152
- filter_type: "name";
153
- filter_value: string;
154
- };
155
-
156
- /** @internal */
157
- export const RequestBody2$outboundSchema: z.ZodType<
158
- RequestBody2$Outbound,
159
- z.ZodTypeDef,
160
- RequestBody2
161
- > = z.object({
162
- displayName: z.string(),
163
- description: z.string().optional(),
164
- humanEvalIds: z.array(z.string()),
165
- projectId: z.string().optional(),
166
- filterType: z.literal("name"),
167
- filterValue: z.string(),
168
- }).transform((v) => {
169
- return remap$(v, {
170
- displayName: "display_name",
171
- humanEvalIds: "human_eval_ids",
172
- projectId: "project_id",
173
- filterType: "filter_type",
174
- filterValue: "filter_value",
175
- });
176
- });
177
-
178
- export function requestBody2ToJSON(requestBody2: RequestBody2): string {
179
- return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
180
- }
181
-
182
- /** @internal */
183
- export type RequestBody1$Outbound = {
184
- display_name: string;
185
- description?: string | undefined;
186
- human_eval_ids: Array<string>;
187
- project_id?: string | undefined;
188
- filter_type: "span_type";
189
- filter_values: Array<string>;
190
- };
191
-
192
- /** @internal */
193
- export const RequestBody1$outboundSchema: z.ZodType<
194
- RequestBody1$Outbound,
195
- z.ZodTypeDef,
196
- RequestBody1
197
- > = z.object({
198
- displayName: z.string(),
199
- description: z.string().optional(),
200
- humanEvalIds: z.array(z.string()),
201
- projectId: z.string().optional(),
202
- filterType: z.literal("span_type"),
203
- filterValues: z.array(z.string()),
204
- }).transform((v) => {
205
- return remap$(v, {
206
- displayName: "display_name",
207
- humanEvalIds: "human_eval_ids",
208
- projectId: "project_id",
209
- filterType: "filter_type",
210
- filterValues: "filter_values",
211
- });
212
- });
213
-
214
- export function requestBody1ToJSON(requestBody1: RequestBody1): string {
215
- return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
216
- }
217
-
218
- /** @internal */
219
- export type PostV2HumanEvalSetsRequestBody$Outbound =
220
- | RequestBody1$Outbound
221
- | RequestBody2$Outbound;
222
-
223
- /** @internal */
224
- export const PostV2HumanEvalSetsRequestBody$outboundSchema: z.ZodType<
225
- PostV2HumanEvalSetsRequestBody$Outbound,
226
- z.ZodTypeDef,
227
- PostV2HumanEvalSetsRequestBody
228
- > = z.union([
229
- z.lazy(() => RequestBody1$outboundSchema),
230
- z.lazy(() => RequestBody2$outboundSchema),
231
- ]);
232
-
233
- export function postV2HumanEvalSetsRequestBodyToJSON(
234
- postV2HumanEvalSetsRequestBody: PostV2HumanEvalSetsRequestBody,
235
- ): string {
236
- return JSON.stringify(
237
- PostV2HumanEvalSetsRequestBody$outboundSchema.parse(
238
- postV2HumanEvalSetsRequestBody,
239
- ),
240
- );
241
- }
242
-
243
- /** @internal */
244
- export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
245
- PostV2HumanEvalSetsResponseBody2,
246
- z.ZodTypeDef,
247
- unknown
248
- > = z.object({
249
- _id: z.string(),
250
- display_name: z.string(),
251
- description: z.string().optional(),
252
- human_eval_ids: z.array(z.string()),
253
- workspace_id: z.string(),
254
- project_id: z.string().optional(),
255
- created_by_id: z.string().optional(),
256
- updated_by_id: z.string().optional(),
257
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
258
- .optional(),
259
- updated: z.string().datetime({ offset: true }).default(
260
- "2026-10-28T11:12:42.542Z",
261
- ).transform(v => new Date(v)),
262
- filter_type: z.literal("name"),
263
- filter_value: z.string(),
264
- }).transform((v) => {
265
- return remap$(v, {
266
- "_id": "id",
267
- "display_name": "displayName",
268
- "human_eval_ids": "humanEvalIds",
269
- "workspace_id": "workspaceId",
270
- "project_id": "projectId",
271
- "created_by_id": "createdById",
272
- "updated_by_id": "updatedById",
273
- "filter_type": "filterType",
274
- "filter_value": "filterValue",
275
- });
276
- });
277
-
278
- export function postV2HumanEvalSetsResponseBody2FromJSON(
279
- jsonString: string,
280
- ): SafeParseResult<PostV2HumanEvalSetsResponseBody2, SDKValidationError> {
281
- return safeParse(
282
- jsonString,
283
- (x) => PostV2HumanEvalSetsResponseBody2$inboundSchema.parse(JSON.parse(x)),
284
- `Failed to parse 'PostV2HumanEvalSetsResponseBody2' from JSON`,
285
- );
286
- }
287
-
288
- /** @internal */
289
- export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
290
- PostV2HumanEvalSetsResponseBody1,
291
- z.ZodTypeDef,
292
- unknown
293
- > = z.object({
294
- _id: z.string(),
295
- display_name: z.string(),
296
- description: z.string().optional(),
297
- human_eval_ids: z.array(z.string()),
298
- workspace_id: z.string(),
299
- project_id: z.string().optional(),
300
- created_by_id: z.string().optional(),
301
- updated_by_id: z.string().optional(),
302
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
303
- .optional(),
304
- updated: z.string().datetime({ offset: true }).default(
305
- "2026-10-28T11:12:42.542Z",
306
- ).transform(v => new Date(v)),
307
- filter_type: z.literal("span_type"),
308
- filter_values: z.array(z.string()),
309
- }).transform((v) => {
310
- return remap$(v, {
311
- "_id": "id",
312
- "display_name": "displayName",
313
- "human_eval_ids": "humanEvalIds",
314
- "workspace_id": "workspaceId",
315
- "project_id": "projectId",
316
- "created_by_id": "createdById",
317
- "updated_by_id": "updatedById",
318
- "filter_type": "filterType",
319
- "filter_values": "filterValues",
320
- });
321
- });
322
-
323
- export function postV2HumanEvalSetsResponseBody1FromJSON(
324
- jsonString: string,
325
- ): SafeParseResult<PostV2HumanEvalSetsResponseBody1, SDKValidationError> {
326
- return safeParse(
327
- jsonString,
328
- (x) => PostV2HumanEvalSetsResponseBody1$inboundSchema.parse(JSON.parse(x)),
329
- `Failed to parse 'PostV2HumanEvalSetsResponseBody1' from JSON`,
330
- );
331
- }
332
-
333
- /** @internal */
334
- export const PostV2HumanEvalSetsResponseBody$inboundSchema: z.ZodType<
335
- PostV2HumanEvalSetsResponseBody,
336
- z.ZodTypeDef,
337
- unknown
338
- > = z.union([
339
- z.lazy(() => PostV2HumanEvalSetsResponseBody1$inboundSchema),
340
- z.lazy(() => PostV2HumanEvalSetsResponseBody2$inboundSchema),
341
- ]);
342
-
343
- export function postV2HumanEvalSetsResponseBodyFromJSON(
344
- jsonString: string,
345
- ): SafeParseResult<PostV2HumanEvalSetsResponseBody, SDKValidationError> {
346
- return safeParse(
347
- jsonString,
348
- (x) => PostV2HumanEvalSetsResponseBody$inboundSchema.parse(JSON.parse(x)),
349
- `Failed to parse 'PostV2HumanEvalSetsResponseBody' from JSON`,
350
- );
351
- }
@@ -1,109 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { humanReviewSetsCreate } from "../funcs/humanReviewSetsCreate.js";
6
- import { humanReviewSetsDelete } from "../funcs/humanReviewSetsDelete.js";
7
- import { humanReviewSetsGet } from "../funcs/humanReviewSetsGet.js";
8
- import { humanReviewSetsList } from "../funcs/humanReviewSetsList.js";
9
- import { humanReviewSetsUpdate } from "../funcs/humanReviewSetsUpdate.js";
10
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
- import * as operations from "../models/operations/index.js";
12
- import { unwrapAsync } from "../types/fp.js";
13
-
14
- export class HumanReviewSets extends ClientSDK {
15
- /**
16
- * Get all human review sets
17
- *
18
- * @remarks
19
- * Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
20
- *
21
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
22
- */
23
- async list(
24
- request?: operations.GetV2HumanEvalSetsRequest | undefined,
25
- options?: RequestOptions,
26
- ): Promise<Array<operations.ResponseBody>> {
27
- return unwrapAsync(humanReviewSetsList(
28
- this,
29
- request,
30
- options,
31
- ));
32
- }
33
-
34
- /**
35
- * Create a human review set
36
- *
37
- * @remarks
38
- * Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
39
- *
40
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
41
- */
42
- async create(
43
- request?: operations.PostV2HumanEvalSetsRequestBody | undefined,
44
- options?: RequestOptions,
45
- ): Promise<operations.PostV2HumanEvalSetsResponseBody> {
46
- return unwrapAsync(humanReviewSetsCreate(
47
- this,
48
- request,
49
- options,
50
- ));
51
- }
52
-
53
- /**
54
- * Get a human review set by ID
55
- *
56
- * @remarks
57
- * Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
58
- *
59
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
60
- */
61
- async get(
62
- request: operations.GetV2HumanEvalSetsIdRequest,
63
- options?: RequestOptions,
64
- ): Promise<operations.GetV2HumanEvalSetsIdResponseBody> {
65
- return unwrapAsync(humanReviewSetsGet(
66
- this,
67
- request,
68
- options,
69
- ));
70
- }
71
-
72
- /**
73
- * Update a human review set
74
- *
75
- * @remarks
76
- * Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
77
- *
78
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
79
- */
80
- async update(
81
- request: operations.PatchV2HumanEvalSetsIdRequest,
82
- options?: RequestOptions,
83
- ): Promise<operations.PatchV2HumanEvalSetsIdResponseBody> {
84
- return unwrapAsync(humanReviewSetsUpdate(
85
- this,
86
- request,
87
- options,
88
- ));
89
- }
90
-
91
- /**
92
- * Delete a human review set
93
- *
94
- * @remarks
95
- * Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
96
- *
97
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
98
- */
99
- async delete(
100
- request: operations.DeleteV2HumanEvalSetsIdRequest,
101
- options?: RequestOptions,
102
- ): Promise<void> {
103
- return unwrapAsync(humanReviewSetsDelete(
104
- this,
105
- request,
106
- options,
107
- ));
108
- }
109
- }