@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.
- package/README.md +66 -79
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createeval.d.ts +4 -4
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +5 -5
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/index.d.ts +0 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createeval.ts +7 -11
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/index.ts +0 -5
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/sdk.ts +0 -6
- package/funcs/humanReviewSetsCreate.d.ts +0 -20
- package/funcs/humanReviewSetsCreate.d.ts.map +0 -1
- package/funcs/humanReviewSetsCreate.js +0 -123
- package/funcs/humanReviewSetsCreate.js.map +0 -1
- package/funcs/humanReviewSetsDelete.d.ts +0 -20
- package/funcs/humanReviewSetsDelete.d.ts.map +0 -1
- package/funcs/humanReviewSetsDelete.js +0 -127
- package/funcs/humanReviewSetsDelete.js.map +0 -1
- package/funcs/humanReviewSetsGet.d.ts +0 -20
- package/funcs/humanReviewSetsGet.d.ts.map +0 -1
- package/funcs/humanReviewSetsGet.js +0 -126
- package/funcs/humanReviewSetsGet.js.map +0 -1
- package/funcs/humanReviewSetsList.d.ts +0 -20
- package/funcs/humanReviewSetsList.d.ts.map +0 -1
- package/funcs/humanReviewSetsList.js +0 -125
- package/funcs/humanReviewSetsList.js.map +0 -1
- package/funcs/humanReviewSetsUpdate.d.ts +0 -20
- package/funcs/humanReviewSetsUpdate.d.ts.map +0 -1
- package/funcs/humanReviewSetsUpdate.js +0 -127
- package/funcs/humanReviewSetsUpdate.js.map +0 -1
- package/models/operations/deletev2humanevalsetsid.d.ts +0 -15
- package/models/operations/deletev2humanevalsetsid.d.ts.map +0 -1
- package/models/operations/deletev2humanevalsetsid.js +0 -49
- package/models/operations/deletev2humanevalsetsid.js.map +0 -1
- package/models/operations/getv2humanevalsets.d.ts +0 -103
- package/models/operations/getv2humanevalsets.d.ts.map +0 -1
- package/models/operations/getv2humanevalsets.js +0 -128
- package/models/operations/getv2humanevalsets.js.map +0 -1
- package/models/operations/getv2humanevalsetsid.d.ts +0 -106
- package/models/operations/getv2humanevalsetsid.d.ts.map +0 -1
- package/models/operations/getv2humanevalsetsid.js +0 -124
- package/models/operations/getv2humanevalsetsid.js.map +0 -1
- package/models/operations/patchv2humanevalsetsid.d.ts +0 -184
- package/models/operations/patchv2humanevalsetsid.d.ts.map +0 -1
- package/models/operations/patchv2humanevalsetsid.js +0 -183
- package/models/operations/patchv2humanevalsetsid.js.map +0 -1
- package/models/operations/postv2humanevalsets.d.ts +0 -169
- package/models/operations/postv2humanevalsets.d.ts.map +0 -1
- package/models/operations/postv2humanevalsets.js +0 -167
- package/models/operations/postv2humanevalsets.js.map +0 -1
- package/sdk/humanreviewsets.d.ts +0 -50
- package/sdk/humanreviewsets.d.ts.map +0 -1
- package/sdk/humanreviewsets.js +0 -72
- package/sdk/humanreviewsets.js.map +0 -1
- package/src/funcs/humanReviewSetsCreate.ts +0 -178
- package/src/funcs/humanReviewSetsDelete.ts +0 -180
- package/src/funcs/humanReviewSetsGet.ts +0 -179
- package/src/funcs/humanReviewSetsList.ts +0 -181
- package/src/funcs/humanReviewSetsUpdate.ts +0 -180
- package/src/models/operations/deletev2humanevalsetsid.ts +0 -36
- package/src/models/operations/getv2humanevalsets.ts +0 -234
- package/src/models/operations/getv2humanevalsetsid.ts +0 -235
- package/src/models/operations/patchv2humanevalsetsid.ts +0 -415
- package/src/models/operations/postv2humanevalsets.ts +0 -351
- package/src/sdk/humanreviewsets.ts +0 -109
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type RequestBody2 = {
|
|
5
|
-
/**
|
|
6
|
-
* Display name of the human review set
|
|
7
|
-
*/
|
|
8
|
-
displayName: string;
|
|
9
|
-
/**
|
|
10
|
-
* Detailed description of the human review set
|
|
11
|
-
*/
|
|
12
|
-
description?: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* Array of human review IDs to be applied to matching spans
|
|
15
|
-
*/
|
|
16
|
-
humanEvalIds: Array<string>;
|
|
17
|
-
/**
|
|
18
|
-
* Optional project ID to scope this human review set to a specific project
|
|
19
|
-
*/
|
|
20
|
-
projectId?: string | undefined;
|
|
21
|
-
filterType: "name";
|
|
22
|
-
/**
|
|
23
|
-
* Name pattern to match
|
|
24
|
-
*/
|
|
25
|
-
filterValue: string;
|
|
26
|
-
};
|
|
27
|
-
export type RequestBody1 = {
|
|
28
|
-
/**
|
|
29
|
-
* Display name of the human review set
|
|
30
|
-
*/
|
|
31
|
-
displayName: string;
|
|
32
|
-
/**
|
|
33
|
-
* Detailed description of the human review set
|
|
34
|
-
*/
|
|
35
|
-
description?: string | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Array of human review IDs to be applied to matching spans
|
|
38
|
-
*/
|
|
39
|
-
humanEvalIds: Array<string>;
|
|
40
|
-
/**
|
|
41
|
-
* Optional project ID to scope this human review set to a specific project
|
|
42
|
-
*/
|
|
43
|
-
projectId?: string | undefined;
|
|
44
|
-
filterType: "span_type";
|
|
45
|
-
/**
|
|
46
|
-
* Array of span types to match
|
|
47
|
-
*/
|
|
48
|
-
filterValues: Array<string>;
|
|
49
|
-
};
|
|
50
|
-
export type PostV2HumanEvalSetsRequestBody = RequestBody1 | RequestBody2;
|
|
51
|
-
export type PostV2HumanEvalSetsResponseBody2 = {
|
|
52
|
-
/**
|
|
53
|
-
* The id of the resource
|
|
54
|
-
*/
|
|
55
|
-
id: string;
|
|
56
|
-
/**
|
|
57
|
-
* Display name of the human review set
|
|
58
|
-
*/
|
|
59
|
-
displayName: string;
|
|
60
|
-
/**
|
|
61
|
-
* Detailed description of the human review set
|
|
62
|
-
*/
|
|
63
|
-
description?: string | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Array of human review IDs to be applied to matching spans
|
|
66
|
-
*/
|
|
67
|
-
humanEvalIds: Array<string>;
|
|
68
|
-
workspaceId: string;
|
|
69
|
-
/**
|
|
70
|
-
* Optional project ID to scope this human review set to a specific project
|
|
71
|
-
*/
|
|
72
|
-
projectId?: string | undefined;
|
|
73
|
-
createdById?: string | undefined;
|
|
74
|
-
updatedById?: string | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* The date and time the resource was created
|
|
77
|
-
*/
|
|
78
|
-
created?: Date | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* The date and time the resource was last updated
|
|
81
|
-
*/
|
|
82
|
-
updated: Date;
|
|
83
|
-
filterType: "name";
|
|
84
|
-
/**
|
|
85
|
-
* Name pattern to match
|
|
86
|
-
*/
|
|
87
|
-
filterValue: string;
|
|
88
|
-
};
|
|
89
|
-
export type PostV2HumanEvalSetsResponseBody1 = {
|
|
90
|
-
/**
|
|
91
|
-
* The id of the resource
|
|
92
|
-
*/
|
|
93
|
-
id: string;
|
|
94
|
-
/**
|
|
95
|
-
* Display name of the human review set
|
|
96
|
-
*/
|
|
97
|
-
displayName: string;
|
|
98
|
-
/**
|
|
99
|
-
* Detailed description of the human review set
|
|
100
|
-
*/
|
|
101
|
-
description?: string | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Array of human review IDs to be applied to matching spans
|
|
104
|
-
*/
|
|
105
|
-
humanEvalIds: Array<string>;
|
|
106
|
-
workspaceId: string;
|
|
107
|
-
/**
|
|
108
|
-
* Optional project ID to scope this human review set to a specific project
|
|
109
|
-
*/
|
|
110
|
-
projectId?: string | undefined;
|
|
111
|
-
createdById?: string | undefined;
|
|
112
|
-
updatedById?: string | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* The date and time the resource was created
|
|
115
|
-
*/
|
|
116
|
-
created?: Date | undefined;
|
|
117
|
-
/**
|
|
118
|
-
* The date and time the resource was last updated
|
|
119
|
-
*/
|
|
120
|
-
updated: Date;
|
|
121
|
-
filterType: "span_type";
|
|
122
|
-
/**
|
|
123
|
-
* Array of span types to match
|
|
124
|
-
*/
|
|
125
|
-
filterValues: Array<string>;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Successfully created a human review set
|
|
129
|
-
*/
|
|
130
|
-
export type PostV2HumanEvalSetsResponseBody = PostV2HumanEvalSetsResponseBody1 | PostV2HumanEvalSetsResponseBody2;
|
|
131
|
-
/** @internal */
|
|
132
|
-
export type RequestBody2$Outbound = {
|
|
133
|
-
display_name: string;
|
|
134
|
-
description?: string | undefined;
|
|
135
|
-
human_eval_ids: Array<string>;
|
|
136
|
-
project_id?: string | undefined;
|
|
137
|
-
filter_type: "name";
|
|
138
|
-
filter_value: string;
|
|
139
|
-
};
|
|
140
|
-
/** @internal */
|
|
141
|
-
export declare const RequestBody2$outboundSchema: z.ZodType<RequestBody2$Outbound, z.ZodTypeDef, RequestBody2>;
|
|
142
|
-
export declare function requestBody2ToJSON(requestBody2: RequestBody2): string;
|
|
143
|
-
/** @internal */
|
|
144
|
-
export type RequestBody1$Outbound = {
|
|
145
|
-
display_name: string;
|
|
146
|
-
description?: string | undefined;
|
|
147
|
-
human_eval_ids: Array<string>;
|
|
148
|
-
project_id?: string | undefined;
|
|
149
|
-
filter_type: "span_type";
|
|
150
|
-
filter_values: Array<string>;
|
|
151
|
-
};
|
|
152
|
-
/** @internal */
|
|
153
|
-
export declare const RequestBody1$outboundSchema: z.ZodType<RequestBody1$Outbound, z.ZodTypeDef, RequestBody1>;
|
|
154
|
-
export declare function requestBody1ToJSON(requestBody1: RequestBody1): string;
|
|
155
|
-
/** @internal */
|
|
156
|
-
export type PostV2HumanEvalSetsRequestBody$Outbound = RequestBody1$Outbound | RequestBody2$Outbound;
|
|
157
|
-
/** @internal */
|
|
158
|
-
export declare const PostV2HumanEvalSetsRequestBody$outboundSchema: z.ZodType<PostV2HumanEvalSetsRequestBody$Outbound, z.ZodTypeDef, PostV2HumanEvalSetsRequestBody>;
|
|
159
|
-
export declare function postV2HumanEvalSetsRequestBodyToJSON(postV2HumanEvalSetsRequestBody: PostV2HumanEvalSetsRequestBody): string;
|
|
160
|
-
/** @internal */
|
|
161
|
-
export declare const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<PostV2HumanEvalSetsResponseBody2, z.ZodTypeDef, unknown>;
|
|
162
|
-
export declare function postV2HumanEvalSetsResponseBody2FromJSON(jsonString: string): SafeParseResult<PostV2HumanEvalSetsResponseBody2, SDKValidationError>;
|
|
163
|
-
/** @internal */
|
|
164
|
-
export declare const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<PostV2HumanEvalSetsResponseBody1, z.ZodTypeDef, unknown>;
|
|
165
|
-
export declare function postV2HumanEvalSetsResponseBody1FromJSON(jsonString: string): SafeParseResult<PostV2HumanEvalSetsResponseBody1, SDKValidationError>;
|
|
166
|
-
/** @internal */
|
|
167
|
-
export declare const PostV2HumanEvalSetsResponseBody$inboundSchema: z.ZodType<PostV2HumanEvalSetsResponseBody, z.ZodTypeDef, unknown>;
|
|
168
|
-
export declare function postV2HumanEvalSetsResponseBodyFromJSON(jsonString: string): SafeParseResult<PostV2HumanEvalSetsResponseBody, SDKValidationError>;
|
|
169
|
-
//# sourceMappingURL=postv2humanevalsets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postv2humanevalsets.d.ts","sourceRoot":"","sources":["../../src/models/operations/postv2humanevalsets.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAA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M,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,8BAA8B,CAI9B,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CA6BP,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE;AAED,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CA6BP,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE;AAED,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PostV2HumanEvalSetsResponseBody$inboundSchema = exports.PostV2HumanEvalSetsResponseBody1$inboundSchema = exports.PostV2HumanEvalSetsResponseBody2$inboundSchema = exports.PostV2HumanEvalSetsRequestBody$outboundSchema = exports.RequestBody1$outboundSchema = exports.RequestBody2$outboundSchema = void 0;
|
|
40
|
-
exports.requestBody2ToJSON = requestBody2ToJSON;
|
|
41
|
-
exports.requestBody1ToJSON = requestBody1ToJSON;
|
|
42
|
-
exports.postV2HumanEvalSetsRequestBodyToJSON = postV2HumanEvalSetsRequestBodyToJSON;
|
|
43
|
-
exports.postV2HumanEvalSetsResponseBody2FromJSON = postV2HumanEvalSetsResponseBody2FromJSON;
|
|
44
|
-
exports.postV2HumanEvalSetsResponseBody1FromJSON = postV2HumanEvalSetsResponseBody1FromJSON;
|
|
45
|
-
exports.postV2HumanEvalSetsResponseBodyFromJSON = postV2HumanEvalSetsResponseBodyFromJSON;
|
|
46
|
-
const z = __importStar(require("zod/v3"));
|
|
47
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
48
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
49
|
-
/** @internal */
|
|
50
|
-
exports.RequestBody2$outboundSchema = z.object({
|
|
51
|
-
displayName: z.string(),
|
|
52
|
-
description: z.string().optional(),
|
|
53
|
-
humanEvalIds: z.array(z.string()),
|
|
54
|
-
projectId: z.string().optional(),
|
|
55
|
-
filterType: z.literal("name"),
|
|
56
|
-
filterValue: z.string(),
|
|
57
|
-
}).transform((v) => {
|
|
58
|
-
return (0, primitives_js_1.remap)(v, {
|
|
59
|
-
displayName: "display_name",
|
|
60
|
-
humanEvalIds: "human_eval_ids",
|
|
61
|
-
projectId: "project_id",
|
|
62
|
-
filterType: "filter_type",
|
|
63
|
-
filterValue: "filter_value",
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
function requestBody2ToJSON(requestBody2) {
|
|
67
|
-
return JSON.stringify(exports.RequestBody2$outboundSchema.parse(requestBody2));
|
|
68
|
-
}
|
|
69
|
-
/** @internal */
|
|
70
|
-
exports.RequestBody1$outboundSchema = z.object({
|
|
71
|
-
displayName: z.string(),
|
|
72
|
-
description: z.string().optional(),
|
|
73
|
-
humanEvalIds: z.array(z.string()),
|
|
74
|
-
projectId: z.string().optional(),
|
|
75
|
-
filterType: z.literal("span_type"),
|
|
76
|
-
filterValues: z.array(z.string()),
|
|
77
|
-
}).transform((v) => {
|
|
78
|
-
return (0, primitives_js_1.remap)(v, {
|
|
79
|
-
displayName: "display_name",
|
|
80
|
-
humanEvalIds: "human_eval_ids",
|
|
81
|
-
projectId: "project_id",
|
|
82
|
-
filterType: "filter_type",
|
|
83
|
-
filterValues: "filter_values",
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
function requestBody1ToJSON(requestBody1) {
|
|
87
|
-
return JSON.stringify(exports.RequestBody1$outboundSchema.parse(requestBody1));
|
|
88
|
-
}
|
|
89
|
-
/** @internal */
|
|
90
|
-
exports.PostV2HumanEvalSetsRequestBody$outboundSchema = z.union([
|
|
91
|
-
z.lazy(() => exports.RequestBody1$outboundSchema),
|
|
92
|
-
z.lazy(() => exports.RequestBody2$outboundSchema),
|
|
93
|
-
]);
|
|
94
|
-
function postV2HumanEvalSetsRequestBodyToJSON(postV2HumanEvalSetsRequestBody) {
|
|
95
|
-
return JSON.stringify(exports.PostV2HumanEvalSetsRequestBody$outboundSchema.parse(postV2HumanEvalSetsRequestBody));
|
|
96
|
-
}
|
|
97
|
-
/** @internal */
|
|
98
|
-
exports.PostV2HumanEvalSetsResponseBody2$inboundSchema = z.object({
|
|
99
|
-
_id: z.string(),
|
|
100
|
-
display_name: z.string(),
|
|
101
|
-
description: z.string().optional(),
|
|
102
|
-
human_eval_ids: z.array(z.string()),
|
|
103
|
-
workspace_id: z.string(),
|
|
104
|
-
project_id: z.string().optional(),
|
|
105
|
-
created_by_id: z.string().optional(),
|
|
106
|
-
updated_by_id: z.string().optional(),
|
|
107
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
108
|
-
.optional(),
|
|
109
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-28T11:12:42.542Z").transform(v => new Date(v)),
|
|
110
|
-
filter_type: z.literal("name"),
|
|
111
|
-
filter_value: z.string(),
|
|
112
|
-
}).transform((v) => {
|
|
113
|
-
return (0, primitives_js_1.remap)(v, {
|
|
114
|
-
"_id": "id",
|
|
115
|
-
"display_name": "displayName",
|
|
116
|
-
"human_eval_ids": "humanEvalIds",
|
|
117
|
-
"workspace_id": "workspaceId",
|
|
118
|
-
"project_id": "projectId",
|
|
119
|
-
"created_by_id": "createdById",
|
|
120
|
-
"updated_by_id": "updatedById",
|
|
121
|
-
"filter_type": "filterType",
|
|
122
|
-
"filter_value": "filterValue",
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
function postV2HumanEvalSetsResponseBody2FromJSON(jsonString) {
|
|
126
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalSetsResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalSetsResponseBody2' from JSON`);
|
|
127
|
-
}
|
|
128
|
-
/** @internal */
|
|
129
|
-
exports.PostV2HumanEvalSetsResponseBody1$inboundSchema = z.object({
|
|
130
|
-
_id: z.string(),
|
|
131
|
-
display_name: z.string(),
|
|
132
|
-
description: z.string().optional(),
|
|
133
|
-
human_eval_ids: z.array(z.string()),
|
|
134
|
-
workspace_id: z.string(),
|
|
135
|
-
project_id: z.string().optional(),
|
|
136
|
-
created_by_id: z.string().optional(),
|
|
137
|
-
updated_by_id: z.string().optional(),
|
|
138
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
|
-
.optional(),
|
|
140
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-28T11:12:42.542Z").transform(v => new Date(v)),
|
|
141
|
-
filter_type: z.literal("span_type"),
|
|
142
|
-
filter_values: z.array(z.string()),
|
|
143
|
-
}).transform((v) => {
|
|
144
|
-
return (0, primitives_js_1.remap)(v, {
|
|
145
|
-
"_id": "id",
|
|
146
|
-
"display_name": "displayName",
|
|
147
|
-
"human_eval_ids": "humanEvalIds",
|
|
148
|
-
"workspace_id": "workspaceId",
|
|
149
|
-
"project_id": "projectId",
|
|
150
|
-
"created_by_id": "createdById",
|
|
151
|
-
"updated_by_id": "updatedById",
|
|
152
|
-
"filter_type": "filterType",
|
|
153
|
-
"filter_values": "filterValues",
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
function postV2HumanEvalSetsResponseBody1FromJSON(jsonString) {
|
|
157
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalSetsResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalSetsResponseBody1' from JSON`);
|
|
158
|
-
}
|
|
159
|
-
/** @internal */
|
|
160
|
-
exports.PostV2HumanEvalSetsResponseBody$inboundSchema = z.union([
|
|
161
|
-
z.lazy(() => exports.PostV2HumanEvalSetsResponseBody1$inboundSchema),
|
|
162
|
-
z.lazy(() => exports.PostV2HumanEvalSetsResponseBody2$inboundSchema),
|
|
163
|
-
]);
|
|
164
|
-
function postV2HumanEvalSetsResponseBodyFromJSON(jsonString) {
|
|
165
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalSetsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalSetsResponseBody' from JSON`);
|
|
166
|
-
}
|
|
167
|
-
//# sourceMappingURL=postv2humanevalsets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postv2humanevalsets.js","sourceRoot":"","sources":["../../src/models/operations/postv2humanevalsets.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+KH,gDAEC;AAkCD,gDAEC;AAiBD,oFAQC;AAqCD,4FAQC;AAqCD,4FAQC;AAYD,0FAQC;AA1VD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAqJjD,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,UAAU,EAAE,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I,CAAC,GAAG,EAAE,CAAC,sDAA8C,CAAC;IAC5D,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sDAA8C,CAAC;CAC7D,CAAC,CAAC;AAEH,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
|
package/sdk/humanreviewsets.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class HumanReviewSets extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Get all human review sets
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
9
|
-
*
|
|
10
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
11
|
-
*/
|
|
12
|
-
list(request?: operations.GetV2HumanEvalSetsRequest | undefined, options?: RequestOptions): Promise<Array<operations.ResponseBody>>;
|
|
13
|
-
/**
|
|
14
|
-
* Create a human review set
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
20
|
-
*/
|
|
21
|
-
create(request?: operations.PostV2HumanEvalSetsRequestBody | undefined, options?: RequestOptions): Promise<operations.PostV2HumanEvalSetsResponseBody>;
|
|
22
|
-
/**
|
|
23
|
-
* Get a human review set by ID
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
27
|
-
*
|
|
28
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
29
|
-
*/
|
|
30
|
-
get(request: operations.GetV2HumanEvalSetsIdRequest, options?: RequestOptions): Promise<operations.GetV2HumanEvalSetsIdResponseBody>;
|
|
31
|
-
/**
|
|
32
|
-
* Update a human review set
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
36
|
-
*
|
|
37
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
|
-
*/
|
|
39
|
-
update(request: operations.PatchV2HumanEvalSetsIdRequest, options?: RequestOptions): Promise<operations.PatchV2HumanEvalSetsIdResponseBody>;
|
|
40
|
-
/**
|
|
41
|
-
* Delete a human review set
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
45
|
-
*
|
|
46
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
47
|
-
*/
|
|
48
|
-
delete(request: operations.DeleteV2HumanEvalSetsIdRequest, options?: RequestOptions): Promise<void>;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=humanreviewsets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanreviewsets.d.ts","sourceRoot":"","sources":["../src/sdk/humanreviewsets.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,eAAgB,SAAQ,SAAS;IAC5C;;;;;;;OAOG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,yBAAyB,GAAG,SAAS,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAQ1C;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,CAAC,EAAE,UAAU,CAAC,8BAA8B,GAAG,SAAS,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;;;;;;OAOG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAQvD;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAOjB"}
|
package/sdk/humanreviewsets.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.HumanReviewSets = void 0;
|
|
7
|
-
const humanReviewSetsCreate_js_1 = require("../funcs/humanReviewSetsCreate.js");
|
|
8
|
-
const humanReviewSetsDelete_js_1 = require("../funcs/humanReviewSetsDelete.js");
|
|
9
|
-
const humanReviewSetsGet_js_1 = require("../funcs/humanReviewSetsGet.js");
|
|
10
|
-
const humanReviewSetsList_js_1 = require("../funcs/humanReviewSetsList.js");
|
|
11
|
-
const humanReviewSetsUpdate_js_1 = require("../funcs/humanReviewSetsUpdate.js");
|
|
12
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
13
|
-
const fp_js_1 = require("../types/fp.js");
|
|
14
|
-
class HumanReviewSets extends sdks_js_1.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(request, options) {
|
|
24
|
-
return (0, fp_js_1.unwrapAsync)((0, humanReviewSetsList_js_1.humanReviewSetsList)(this, request, options));
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Create a human review set
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
31
|
-
*
|
|
32
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
33
|
-
*/
|
|
34
|
-
async create(request, options) {
|
|
35
|
-
return (0, fp_js_1.unwrapAsync)((0, humanReviewSetsCreate_js_1.humanReviewSetsCreate)(this, request, options));
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Get a human review set by ID
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
42
|
-
*
|
|
43
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
44
|
-
*/
|
|
45
|
-
async get(request, options) {
|
|
46
|
-
return (0, fp_js_1.unwrapAsync)((0, humanReviewSetsGet_js_1.humanReviewSetsGet)(this, request, options));
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Update a human review set
|
|
50
|
-
*
|
|
51
|
-
* @remarks
|
|
52
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
53
|
-
*
|
|
54
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
55
|
-
*/
|
|
56
|
-
async update(request, options) {
|
|
57
|
-
return (0, fp_js_1.unwrapAsync)((0, humanReviewSetsUpdate_js_1.humanReviewSetsUpdate)(this, request, options));
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Delete a human review set
|
|
61
|
-
*
|
|
62
|
-
* @remarks
|
|
63
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
64
|
-
*
|
|
65
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
66
|
-
*/
|
|
67
|
-
async delete(request, options) {
|
|
68
|
-
return (0, fp_js_1.unwrapAsync)((0, humanReviewSetsDelete_js_1.humanReviewSetsDelete)(this, request, options));
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.HumanReviewSets = HumanReviewSets;
|
|
72
|
-
//# sourceMappingURL=humanreviewsets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanreviewsets.js","sourceRoot":"","sources":["../src/sdk/humanreviewsets.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,gFAA0E;AAC1E,0EAAoE;AACpE,4EAAsE;AACtE,gFAA0E;AAC1E,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,eAAgB,SAAQ,mBAAS;IAC5C;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CACR,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAA+D,EAC/D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,GAAG,CACP,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA/FD,0CA+FC"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { OrqCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import * as errors from "../models/errors/index.js";
|
|
22
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
-
import * as operations from "../models/operations/index.js";
|
|
26
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
-
import { Result } from "../types/fp.js";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Create a human review set
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
34
|
-
*
|
|
35
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
36
|
-
*/
|
|
37
|
-
export function humanReviewSetsCreate(
|
|
38
|
-
client: OrqCore,
|
|
39
|
-
request?: operations.PostV2HumanEvalSetsRequestBody | undefined,
|
|
40
|
-
options?: RequestOptions,
|
|
41
|
-
): APIPromise<
|
|
42
|
-
Result<
|
|
43
|
-
operations.PostV2HumanEvalSetsResponseBody,
|
|
44
|
-
| errors.ErrorResponse
|
|
45
|
-
| OrqError
|
|
46
|
-
| ResponseValidationError
|
|
47
|
-
| ConnectionError
|
|
48
|
-
| RequestAbortedError
|
|
49
|
-
| RequestTimeoutError
|
|
50
|
-
| InvalidRequestError
|
|
51
|
-
| UnexpectedClientError
|
|
52
|
-
| SDKValidationError
|
|
53
|
-
>
|
|
54
|
-
> {
|
|
55
|
-
return new APIPromise($do(
|
|
56
|
-
client,
|
|
57
|
-
request,
|
|
58
|
-
options,
|
|
59
|
-
));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
async function $do(
|
|
63
|
-
client: OrqCore,
|
|
64
|
-
request?: operations.PostV2HumanEvalSetsRequestBody | undefined,
|
|
65
|
-
options?: RequestOptions,
|
|
66
|
-
): Promise<
|
|
67
|
-
[
|
|
68
|
-
Result<
|
|
69
|
-
operations.PostV2HumanEvalSetsResponseBody,
|
|
70
|
-
| errors.ErrorResponse
|
|
71
|
-
| OrqError
|
|
72
|
-
| ResponseValidationError
|
|
73
|
-
| ConnectionError
|
|
74
|
-
| RequestAbortedError
|
|
75
|
-
| RequestTimeoutError
|
|
76
|
-
| InvalidRequestError
|
|
77
|
-
| UnexpectedClientError
|
|
78
|
-
| SDKValidationError
|
|
79
|
-
>,
|
|
80
|
-
APICall,
|
|
81
|
-
]
|
|
82
|
-
> {
|
|
83
|
-
const parsed = safeParse(
|
|
84
|
-
request,
|
|
85
|
-
(value) =>
|
|
86
|
-
operations.PostV2HumanEvalSetsRequestBody$outboundSchema.optional().parse(
|
|
87
|
-
value,
|
|
88
|
-
),
|
|
89
|
-
"Input validation failed",
|
|
90
|
-
);
|
|
91
|
-
if (!parsed.ok) {
|
|
92
|
-
return [parsed, { status: "invalid" }];
|
|
93
|
-
}
|
|
94
|
-
const payload = parsed.value;
|
|
95
|
-
const body = payload === undefined
|
|
96
|
-
? null
|
|
97
|
-
: encodeJSON("body", payload, { explode: true });
|
|
98
|
-
|
|
99
|
-
const path = pathToFunc("/v2/human-eval-sets")();
|
|
100
|
-
|
|
101
|
-
const headers = new Headers(compactMap({
|
|
102
|
-
"Content-Type": "application/json",
|
|
103
|
-
Accept: "application/json",
|
|
104
|
-
}));
|
|
105
|
-
|
|
106
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
107
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
108
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
|
-
|
|
110
|
-
const context = {
|
|
111
|
-
options: client._options,
|
|
112
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
113
|
-
operationID: "post_/v2/human-eval-sets",
|
|
114
|
-
oAuth2Scopes: null,
|
|
115
|
-
|
|
116
|
-
resolvedSecurity: requestSecurity,
|
|
117
|
-
|
|
118
|
-
securitySource: client._options.apiKey,
|
|
119
|
-
retryConfig: options?.retries
|
|
120
|
-
|| client._options.retryConfig
|
|
121
|
-
|| { strategy: "none" },
|
|
122
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
const requestRes = client._createRequest(context, {
|
|
126
|
-
security: requestSecurity,
|
|
127
|
-
method: "POST",
|
|
128
|
-
baseURL: options?.serverURL,
|
|
129
|
-
path: path,
|
|
130
|
-
headers: headers,
|
|
131
|
-
body: body,
|
|
132
|
-
userAgent: client._options.userAgent,
|
|
133
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
134
|
-
}, options);
|
|
135
|
-
if (!requestRes.ok) {
|
|
136
|
-
return [requestRes, { status: "invalid" }];
|
|
137
|
-
}
|
|
138
|
-
const req = requestRes.value;
|
|
139
|
-
|
|
140
|
-
const doResult = await client._do(req, {
|
|
141
|
-
context,
|
|
142
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
143
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
144
|
-
retryConfig: context.retryConfig,
|
|
145
|
-
retryCodes: context.retryCodes,
|
|
146
|
-
});
|
|
147
|
-
if (!doResult.ok) {
|
|
148
|
-
return [doResult, { status: "request-error", request: req }];
|
|
149
|
-
}
|
|
150
|
-
const response = doResult.value;
|
|
151
|
-
|
|
152
|
-
const responseFields = {
|
|
153
|
-
HttpMeta: { Response: response, Request: req },
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const [result] = await M.match<
|
|
157
|
-
operations.PostV2HumanEvalSetsResponseBody,
|
|
158
|
-
| errors.ErrorResponse
|
|
159
|
-
| OrqError
|
|
160
|
-
| ResponseValidationError
|
|
161
|
-
| ConnectionError
|
|
162
|
-
| RequestAbortedError
|
|
163
|
-
| RequestTimeoutError
|
|
164
|
-
| InvalidRequestError
|
|
165
|
-
| UnexpectedClientError
|
|
166
|
-
| SDKValidationError
|
|
167
|
-
>(
|
|
168
|
-
M.json(200, operations.PostV2HumanEvalSetsResponseBody$inboundSchema),
|
|
169
|
-
M.jsonErr(401, errors.ErrorResponse$inboundSchema),
|
|
170
|
-
M.fail("4XX"),
|
|
171
|
-
M.fail("5XX"),
|
|
172
|
-
)(response, req, { extraFields: responseFields });
|
|
173
|
-
if (!result.ok) {
|
|
174
|
-
return [result, { status: "complete", request: req, response }];
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return [result, { status: "complete", request: req, response }];
|
|
178
|
-
}
|