@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,123 +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.humanReviewSetsCreate = humanReviewSetsCreate;
|
|
40
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
-
const http_js_1 = require("../lib/http.js");
|
|
42
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
-
const security_js_1 = require("../lib/security.js");
|
|
46
|
-
const url_js_1 = require("../lib/url.js");
|
|
47
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
-
const async_js_1 = require("../types/async.js");
|
|
50
|
-
/**
|
|
51
|
-
* Create a human review set
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
55
|
-
*
|
|
56
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
57
|
-
*/
|
|
58
|
-
function humanReviewSetsCreate(client, request, options) {
|
|
59
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
60
|
-
}
|
|
61
|
-
async function $do(client, request, options) {
|
|
62
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.PostV2HumanEvalSetsRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
63
|
-
if (!parsed.ok) {
|
|
64
|
-
return [parsed, { status: "invalid" }];
|
|
65
|
-
}
|
|
66
|
-
const payload = parsed.value;
|
|
67
|
-
const body = payload === undefined
|
|
68
|
-
? null
|
|
69
|
-
: (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
70
|
-
const path = (0, url_js_1.pathToFunc)("/v2/human-eval-sets")();
|
|
71
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
72
|
-
"Content-Type": "application/json",
|
|
73
|
-
Accept: "application/json",
|
|
74
|
-
}));
|
|
75
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
76
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
77
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
78
|
-
const context = {
|
|
79
|
-
options: client._options,
|
|
80
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81
|
-
operationID: "post_/v2/human-eval-sets",
|
|
82
|
-
oAuth2Scopes: null,
|
|
83
|
-
resolvedSecurity: requestSecurity,
|
|
84
|
-
securitySource: client._options.apiKey,
|
|
85
|
-
retryConfig: options?.retries
|
|
86
|
-
|| client._options.retryConfig
|
|
87
|
-
|| { strategy: "none" },
|
|
88
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
89
|
-
};
|
|
90
|
-
const requestRes = client._createRequest(context, {
|
|
91
|
-
security: requestSecurity,
|
|
92
|
-
method: "POST",
|
|
93
|
-
baseURL: options?.serverURL,
|
|
94
|
-
path: path,
|
|
95
|
-
headers: headers,
|
|
96
|
-
body: body,
|
|
97
|
-
userAgent: client._options.userAgent,
|
|
98
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
99
|
-
}, options);
|
|
100
|
-
if (!requestRes.ok) {
|
|
101
|
-
return [requestRes, { status: "invalid" }];
|
|
102
|
-
}
|
|
103
|
-
const req = requestRes.value;
|
|
104
|
-
const doResult = await client._do(req, {
|
|
105
|
-
context,
|
|
106
|
-
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
107
|
-
retryConfig: context.retryConfig,
|
|
108
|
-
retryCodes: context.retryCodes,
|
|
109
|
-
});
|
|
110
|
-
if (!doResult.ok) {
|
|
111
|
-
return [doResult, { status: "request-error", request: req }];
|
|
112
|
-
}
|
|
113
|
-
const response = doResult.value;
|
|
114
|
-
const responseFields = {
|
|
115
|
-
HttpMeta: { Response: response, Request: req },
|
|
116
|
-
};
|
|
117
|
-
const [result] = await M.match(M.json(200, operations.PostV2HumanEvalSetsResponseBody$inboundSchema), M.jsonErr(401, errors.ErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
118
|
-
if (!result.ok) {
|
|
119
|
-
return [result, { status: "complete", request: req, response }];
|
|
120
|
-
}
|
|
121
|
-
return [result, { status: "complete", request: req, response }];
|
|
122
|
-
}
|
|
123
|
-
//# sourceMappingURL=humanReviewSetsCreate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanReviewSetsCreate.js","sourceRoot":"","sources":["../src/funcs/humanReviewSetsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCH,sDAuBC;AAtDD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CACnC,MAAe,EACf,OAA+D,EAC/D,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,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;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,6CAA6C,CAAC,EACrE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2BAA2B,CAAC,EAClD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OrqCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Delete a human review set
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
|
-
*/
|
|
19
|
-
export declare function humanReviewSetsDelete(client: OrqCore, request: operations.DeleteV2HumanEvalSetsIdRequest, options?: RequestOptions): APIPromise<Result<void, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
-
//# sourceMappingURL=humanReviewSetsDelete.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanReviewSetsDelete.d.ts","sourceRoot":"","sources":["../src/funcs/humanReviewSetsDelete.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,IAAI,EACF,MAAM,CAAC,aAAa,GACpB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,127 +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.humanReviewSetsDelete = humanReviewSetsDelete;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
-
const http_js_1 = require("../lib/http.js");
|
|
43
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
-
const security_js_1 = require("../lib/security.js");
|
|
47
|
-
const url_js_1 = require("../lib/url.js");
|
|
48
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
50
|
-
const async_js_1 = require("../types/async.js");
|
|
51
|
-
/**
|
|
52
|
-
* Delete a human review set
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
56
|
-
*
|
|
57
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
58
|
-
*/
|
|
59
|
-
function humanReviewSetsDelete(client, request, options) {
|
|
60
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
61
|
-
}
|
|
62
|
-
async function $do(client, request, options) {
|
|
63
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.DeleteV2HumanEvalSetsIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64
|
-
if (!parsed.ok) {
|
|
65
|
-
return [parsed, { status: "invalid" }];
|
|
66
|
-
}
|
|
67
|
-
const payload = parsed.value;
|
|
68
|
-
const body = null;
|
|
69
|
-
const pathParams = {
|
|
70
|
-
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
71
|
-
explode: false,
|
|
72
|
-
charEncoding: "percent",
|
|
73
|
-
}),
|
|
74
|
-
};
|
|
75
|
-
const path = (0, url_js_1.pathToFunc)("/v2/human-eval-sets/{id}")(pathParams);
|
|
76
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
77
|
-
Accept: "application/json",
|
|
78
|
-
}));
|
|
79
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
80
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
81
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
82
|
-
const context = {
|
|
83
|
-
options: client._options,
|
|
84
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
|
-
operationID: "delete_/v2/human-eval-sets/{id}",
|
|
86
|
-
oAuth2Scopes: null,
|
|
87
|
-
resolvedSecurity: requestSecurity,
|
|
88
|
-
securitySource: client._options.apiKey,
|
|
89
|
-
retryConfig: options?.retries
|
|
90
|
-
|| client._options.retryConfig
|
|
91
|
-
|| { strategy: "none" },
|
|
92
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
93
|
-
};
|
|
94
|
-
const requestRes = client._createRequest(context, {
|
|
95
|
-
security: requestSecurity,
|
|
96
|
-
method: "DELETE",
|
|
97
|
-
baseURL: options?.serverURL,
|
|
98
|
-
path: path,
|
|
99
|
-
headers: headers,
|
|
100
|
-
body: body,
|
|
101
|
-
userAgent: client._options.userAgent,
|
|
102
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
103
|
-
}, options);
|
|
104
|
-
if (!requestRes.ok) {
|
|
105
|
-
return [requestRes, { status: "invalid" }];
|
|
106
|
-
}
|
|
107
|
-
const req = requestRes.value;
|
|
108
|
-
const doResult = await client._do(req, {
|
|
109
|
-
context,
|
|
110
|
-
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
111
|
-
retryConfig: context.retryConfig,
|
|
112
|
-
retryCodes: context.retryCodes,
|
|
113
|
-
});
|
|
114
|
-
if (!doResult.ok) {
|
|
115
|
-
return [doResult, { status: "request-error", request: req }];
|
|
116
|
-
}
|
|
117
|
-
const response = doResult.value;
|
|
118
|
-
const responseFields = {
|
|
119
|
-
HttpMeta: { Response: response, Request: req },
|
|
120
|
-
};
|
|
121
|
-
const [result] = await M.match(M.nil(200, z.void()), M.jsonErr(401, errors.ErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
122
|
-
if (!result.ok) {
|
|
123
|
-
return [result, { status: "complete", request: req, response }];
|
|
124
|
-
}
|
|
125
|
-
return [result, { status: "complete", request: req, response }];
|
|
126
|
-
}
|
|
127
|
-
//# sourceMappingURL=humanReviewSetsDelete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanReviewSetsDelete.js","sourceRoot":"","sources":["../src/funcs/humanReviewSetsDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,sDAuBC;AAxDD,0CAA4B;AAE5B,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,qBAA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RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Get a human review set by ID
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
|
-
*/
|
|
19
|
-
export declare function humanReviewSetsGet(client: OrqCore, request: operations.GetV2HumanEvalSetsIdRequest, options?: RequestOptions): APIPromise<Result<operations.GetV2HumanEvalSetsIdResponseBody, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
-
//# sourceMappingURL=humanReviewSetsGet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanReviewSetsGet.d.ts","sourceRoot":"","sources":["../src/funcs/humanReviewSetsGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,gCAAgC,EACzC,MAAM,CAAC,aAAa,GACpB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,126 +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.humanReviewSetsGet = humanReviewSetsGet;
|
|
40
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
-
const http_js_1 = require("../lib/http.js");
|
|
42
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
-
const security_js_1 = require("../lib/security.js");
|
|
46
|
-
const url_js_1 = require("../lib/url.js");
|
|
47
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
-
const async_js_1 = require("../types/async.js");
|
|
50
|
-
/**
|
|
51
|
-
* Get a human review set by ID
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
55
|
-
*
|
|
56
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
57
|
-
*/
|
|
58
|
-
function humanReviewSetsGet(client, request, options) {
|
|
59
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
60
|
-
}
|
|
61
|
-
async function $do(client, request, options) {
|
|
62
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetV2HumanEvalSetsIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63
|
-
if (!parsed.ok) {
|
|
64
|
-
return [parsed, { status: "invalid" }];
|
|
65
|
-
}
|
|
66
|
-
const payload = parsed.value;
|
|
67
|
-
const body = null;
|
|
68
|
-
const pathParams = {
|
|
69
|
-
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
70
|
-
explode: false,
|
|
71
|
-
charEncoding: "percent",
|
|
72
|
-
}),
|
|
73
|
-
};
|
|
74
|
-
const path = (0, url_js_1.pathToFunc)("/v2/human-eval-sets/{id}")(pathParams);
|
|
75
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
76
|
-
Accept: "application/json",
|
|
77
|
-
}));
|
|
78
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
79
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
80
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
81
|
-
const context = {
|
|
82
|
-
options: client._options,
|
|
83
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
84
|
-
operationID: "get_/v2/human-eval-sets/{id}",
|
|
85
|
-
oAuth2Scopes: null,
|
|
86
|
-
resolvedSecurity: requestSecurity,
|
|
87
|
-
securitySource: client._options.apiKey,
|
|
88
|
-
retryConfig: options?.retries
|
|
89
|
-
|| client._options.retryConfig
|
|
90
|
-
|| { strategy: "none" },
|
|
91
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
92
|
-
};
|
|
93
|
-
const requestRes = client._createRequest(context, {
|
|
94
|
-
security: requestSecurity,
|
|
95
|
-
method: "GET",
|
|
96
|
-
baseURL: options?.serverURL,
|
|
97
|
-
path: path,
|
|
98
|
-
headers: headers,
|
|
99
|
-
body: body,
|
|
100
|
-
userAgent: client._options.userAgent,
|
|
101
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
102
|
-
}, options);
|
|
103
|
-
if (!requestRes.ok) {
|
|
104
|
-
return [requestRes, { status: "invalid" }];
|
|
105
|
-
}
|
|
106
|
-
const req = requestRes.value;
|
|
107
|
-
const doResult = await client._do(req, {
|
|
108
|
-
context,
|
|
109
|
-
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
110
|
-
retryConfig: context.retryConfig,
|
|
111
|
-
retryCodes: context.retryCodes,
|
|
112
|
-
});
|
|
113
|
-
if (!doResult.ok) {
|
|
114
|
-
return [doResult, { status: "request-error", request: req }];
|
|
115
|
-
}
|
|
116
|
-
const response = doResult.value;
|
|
117
|
-
const responseFields = {
|
|
118
|
-
HttpMeta: { Response: response, Request: req },
|
|
119
|
-
};
|
|
120
|
-
const [result] = await M.match(M.json(200, operations.GetV2HumanEvalSetsIdResponseBody$inboundSchema), M.jsonErr([401, 404], errors.ErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
121
|
-
if (!result.ok) {
|
|
122
|
-
return [result, { status: "complete", request: req, response }];
|
|
123
|
-
}
|
|
124
|
-
return [result, { status: "complete", request: req, response }];
|
|
125
|
-
}
|
|
126
|
-
//# sourceMappingURL=humanReviewSetsGet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanReviewSetsGet.js","sourceRoot":"","sources":["../src/funcs/humanReviewSetsGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCH,gDAuBC;AAtDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA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E,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OrqCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Get all human review sets
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
|
-
*/
|
|
19
|
-
export declare function humanReviewSetsList(client: OrqCore, request?: operations.GetV2HumanEvalSetsRequest | undefined, options?: RequestOptions): APIPromise<Result<Array<operations.ResponseBody>, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
-
//# sourceMappingURL=humanReviewSetsList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanReviewSetsList.d.ts","sourceRoot":"","sources":["../src/funcs/humanReviewSetsList.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,yBAAyB,GAAG,SAAS,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,EAC5B,MAAM,CAAC,aAAa,GACpB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,125 +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.humanReviewSetsList = humanReviewSetsList;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
-
const http_js_1 = require("../lib/http.js");
|
|
43
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
-
const security_js_1 = require("../lib/security.js");
|
|
47
|
-
const url_js_1 = require("../lib/url.js");
|
|
48
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
50
|
-
const async_js_1 = require("../types/async.js");
|
|
51
|
-
/**
|
|
52
|
-
* Get all human review sets
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
56
|
-
*
|
|
57
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
58
|
-
*/
|
|
59
|
-
function humanReviewSetsList(client, request, options) {
|
|
60
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
61
|
-
}
|
|
62
|
-
async function $do(client, request, options) {
|
|
63
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetV2HumanEvalSetsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
64
|
-
if (!parsed.ok) {
|
|
65
|
-
return [parsed, { status: "invalid" }];
|
|
66
|
-
}
|
|
67
|
-
const payload = parsed.value;
|
|
68
|
-
const body = null;
|
|
69
|
-
const path = (0, url_js_1.pathToFunc)("/v2/human-eval-sets")();
|
|
70
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
71
|
-
"project_id": payload?.project_id,
|
|
72
|
-
});
|
|
73
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
74
|
-
Accept: "application/json",
|
|
75
|
-
}));
|
|
76
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
77
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
78
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
79
|
-
const context = {
|
|
80
|
-
options: client._options,
|
|
81
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82
|
-
operationID: "get_/v2/human-eval-sets",
|
|
83
|
-
oAuth2Scopes: null,
|
|
84
|
-
resolvedSecurity: requestSecurity,
|
|
85
|
-
securitySource: client._options.apiKey,
|
|
86
|
-
retryConfig: options?.retries
|
|
87
|
-
|| client._options.retryConfig
|
|
88
|
-
|| { strategy: "none" },
|
|
89
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
|
-
};
|
|
91
|
-
const requestRes = client._createRequest(context, {
|
|
92
|
-
security: requestSecurity,
|
|
93
|
-
method: "GET",
|
|
94
|
-
baseURL: options?.serverURL,
|
|
95
|
-
path: path,
|
|
96
|
-
headers: headers,
|
|
97
|
-
query: query,
|
|
98
|
-
body: body,
|
|
99
|
-
userAgent: client._options.userAgent,
|
|
100
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
101
|
-
}, options);
|
|
102
|
-
if (!requestRes.ok) {
|
|
103
|
-
return [requestRes, { status: "invalid" }];
|
|
104
|
-
}
|
|
105
|
-
const req = requestRes.value;
|
|
106
|
-
const doResult = await client._do(req, {
|
|
107
|
-
context,
|
|
108
|
-
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
109
|
-
retryConfig: context.retryConfig,
|
|
110
|
-
retryCodes: context.retryCodes,
|
|
111
|
-
});
|
|
112
|
-
if (!doResult.ok) {
|
|
113
|
-
return [doResult, { status: "request-error", request: req }];
|
|
114
|
-
}
|
|
115
|
-
const response = doResult.value;
|
|
116
|
-
const responseFields = {
|
|
117
|
-
HttpMeta: { Response: response, Request: req },
|
|
118
|
-
};
|
|
119
|
-
const [result] = await M.match(M.json(200, z.array(operations.ResponseBody$inboundSchema)), M.jsonErr(401, errors.ErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
120
|
-
if (!result.ok) {
|
|
121
|
-
return [result, { status: "complete", request: req, response }];
|
|
122
|
-
}
|
|
123
|
-
return [result, { status: "complete", request: req, response }];
|
|
124
|
-
}
|
|
125
|
-
//# sourceMappingURL=humanReviewSetsList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanReviewSetsList.js","sourceRoot":"","sources":["../src/funcs/humanReviewSetsList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;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C,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OrqCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Update a human review set
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
|
-
*/
|
|
19
|
-
export declare function humanReviewSetsUpdate(client: OrqCore, request: operations.PatchV2HumanEvalSetsIdRequest, options?: RequestOptions): APIPromise<Result<operations.PatchV2HumanEvalSetsIdResponseBody, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
-
//# sourceMappingURL=humanReviewSetsUpdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"humanReviewSetsUpdate.d.ts","sourceRoot":"","sources":["../src/funcs/humanReviewSetsUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kCAAkC,EAC3C,MAAM,CAAC,aAAa,GACpB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|