@orq-ai/node 4.7.6 → 4.7.7

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 (160) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createcontact.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createidentity.js +1 -1
  11. package/models/operations/createtool.js +6 -6
  12. package/models/operations/getalltools.js +6 -6
  13. package/models/operations/getevals.js +16 -16
  14. package/models/operations/getv2humanevals.js +6 -6
  15. package/models/operations/getv2humanevalsets.js +2 -2
  16. package/models/operations/getv2humanevalsetsid.js +2 -2
  17. package/models/operations/getv2humanevalsid.js +6 -6
  18. package/models/operations/listdatasetdatapoints.js +4 -4
  19. package/models/operations/listdatasets.js +1 -1
  20. package/models/operations/listdatasources.js +1 -1
  21. package/models/operations/listidentities.js +1 -1
  22. package/models/operations/patchv2humanevalsetsid.js +2 -2
  23. package/models/operations/patchv2humanevalsid.js +12 -12
  24. package/models/operations/postv2feedbackevaluation.js +3 -3
  25. package/models/operations/postv2humanevals.js +12 -12
  26. package/models/operations/postv2humanevalsets.js +2 -2
  27. package/models/operations/retrievedatapoint.js +4 -4
  28. package/models/operations/retrievedataset.js +1 -1
  29. package/models/operations/retrievedatasource.js +1 -1
  30. package/models/operations/retrieveidentity.js +1 -1
  31. package/models/operations/retrievetool.js +6 -6
  32. package/models/operations/runagent.js +1 -1
  33. package/models/operations/streamrunagent.js +1 -1
  34. package/models/operations/updatedatapoint.js +4 -4
  35. package/models/operations/updatedataset.js +1 -1
  36. package/models/operations/updatedatasource.js +1 -1
  37. package/models/operations/updateeval.js +16 -16
  38. package/models/operations/updateidentity.js +1 -1
  39. package/models/operations/updatetool.js +7 -7
  40. package/package.json +1 -1
  41. package/packages/orq-rc/examples/{postV2Feedback.example.ts → postV2FeedbackEvaluationRemove.example.ts} +2 -4
  42. package/packages/orq-rc/src/funcs/{evaluatorsGetV2EvaluatorsIdVersions.ts → evalsGetV2EvaluatorsIdVersions.ts} +1 -1
  43. package/packages/orq-rc/src/funcs/{postV2Feedback.ts → feedbackPostV2Feedback.ts} +5 -5
  44. package/packages/orq-rc/src/funcs/{postV2FeedbackRemove.ts → feedbackPostV2FeedbackRemove.ts} +1 -1
  45. package/packages/orq-rc/src/funcs/{guardrailRulesGet.ts → guardrailRulesRetrieve.ts} +1 -1
  46. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
  47. package/packages/orq-rc/src/funcs/{policiesGet.ts → policiesRetrieve.ts} +1 -1
  48. package/packages/orq-rc/src/funcs/{routingRulesGet.ts → routingRulesRetrieve.ts} +1 -1
  49. package/packages/orq-rc/src/lib/config.ts +2 -2
  50. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  51. package/packages/orq-rc/src/models/errors/index.ts +0 -5
  52. package/packages/orq-rc/src/models/errors/postv2feedback.ts +8 -8
  53. package/packages/orq-rc/src/models/operations/createchunk.ts +7 -7
  54. package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
  55. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  56. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  57. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  58. package/packages/orq-rc/src/models/operations/createeval.ts +36 -42
  59. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  60. package/packages/orq-rc/src/models/operations/createknowledge.ts +17 -19
  61. package/packages/orq-rc/src/models/operations/createprompt.ts +1 -0
  62. package/packages/orq-rc/src/models/operations/createresponse.ts +11 -11
  63. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  64. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
  65. package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
  66. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
  67. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  68. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  69. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  70. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  71. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  72. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/index.ts +0 -6
  75. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  76. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  77. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  78. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  79. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  80. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  82. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +8 -8
  83. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  85. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  86. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  87. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  89. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  90. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  91. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  92. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  93. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  94. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  95. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  96. package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
  97. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  98. package/packages/orq-rc/src/sdk/evals.ts +18 -0
  99. package/packages/orq-rc/src/sdk/feedback.ts +33 -0
  100. package/packages/orq-rc/src/sdk/guardrailrules.ts +3 -3
  101. package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
  102. package/packages/orq-rc/src/sdk/policies.ts +3 -3
  103. package/packages/orq-rc/src/sdk/routingrules.ts +3 -3
  104. package/packages/orq-rc/src/sdk/sdk.ts +6 -96
  105. package/src/lib/config.ts +2 -2
  106. package/src/models/components/reasoningpart.ts +1 -1
  107. package/src/models/operations/createcontact.ts +1 -1
  108. package/src/models/operations/createdataset.ts +1 -1
  109. package/src/models/operations/createdatasetitem.ts +4 -4
  110. package/src/models/operations/createdatasource.ts +1 -1
  111. package/src/models/operations/createeval.ts +16 -16
  112. package/src/models/operations/createidentity.ts +1 -1
  113. package/src/models/operations/createtool.ts +6 -6
  114. package/src/models/operations/getalltools.ts +6 -6
  115. package/src/models/operations/getevals.ts +16 -16
  116. package/src/models/operations/getv2humanevals.ts +6 -6
  117. package/src/models/operations/getv2humanevalsets.ts +2 -2
  118. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  119. package/src/models/operations/getv2humanevalsid.ts +6 -6
  120. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  121. package/src/models/operations/listdatasets.ts +1 -1
  122. package/src/models/operations/listdatasources.ts +1 -1
  123. package/src/models/operations/listidentities.ts +1 -1
  124. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  125. package/src/models/operations/patchv2humanevalsid.ts +12 -12
  126. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  127. package/src/models/operations/postv2humanevals.ts +12 -12
  128. package/src/models/operations/postv2humanevalsets.ts +2 -2
  129. package/src/models/operations/retrievedatapoint.ts +4 -4
  130. package/src/models/operations/retrievedataset.ts +1 -1
  131. package/src/models/operations/retrievedatasource.ts +1 -1
  132. package/src/models/operations/retrieveidentity.ts +1 -1
  133. package/src/models/operations/retrievetool.ts +6 -6
  134. package/src/models/operations/runagent.ts +1 -1
  135. package/src/models/operations/streamrunagent.ts +1 -1
  136. package/src/models/operations/updatedatapoint.ts +4 -4
  137. package/src/models/operations/updatedataset.ts +1 -1
  138. package/src/models/operations/updatedatasource.ts +1 -1
  139. package/src/models/operations/updateeval.ts +16 -16
  140. package/src/models/operations/updateidentity.ts +1 -1
  141. package/src/models/operations/updatetool.ts +7 -7
  142. package/packages/orq-rc/src/funcs/deleteV2HumanEvalsId.ts +0 -169
  143. package/packages/orq-rc/src/funcs/getV2HumanEvals.ts +0 -169
  144. package/packages/orq-rc/src/funcs/getV2HumanEvalsId.ts +0 -168
  145. package/packages/orq-rc/src/funcs/modelsList.ts +0 -165
  146. package/packages/orq-rc/src/funcs/patchV2HumanEvalsId.ts +0 -170
  147. package/packages/orq-rc/src/funcs/postV2HumanEvals.ts +0 -168
  148. package/packages/orq-rc/src/models/errors/deletev2humanevalsid.ts +0 -51
  149. package/packages/orq-rc/src/models/errors/getv2humanevals.ts +0 -51
  150. package/packages/orq-rc/src/models/errors/getv2humanevalsid.ts +0 -51
  151. package/packages/orq-rc/src/models/errors/patchv2humanevalsid.ts +0 -51
  152. package/packages/orq-rc/src/models/errors/postv2humanevals.ts +0 -51
  153. package/packages/orq-rc/src/models/operations/deletev2humanevalsid.ts +0 -67
  154. package/packages/orq-rc/src/models/operations/getv2humanevals.ts +0 -696
  155. package/packages/orq-rc/src/models/operations/getv2humanevalsid.ts +0 -707
  156. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -169
  157. package/packages/orq-rc/src/models/operations/patchv2humanevalsid.ts +0 -1362
  158. package/packages/orq-rc/src/models/operations/postv2humanevals.ts +0 -1193
  159. package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
  160. package/packages/orq-rc/src/sdk/models.ts +0 -27
@@ -1,170 +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, encodeSimple } from "../lib/encodings.js";
7
- import * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { RequestOptions } from "../lib/sdks.js";
11
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
- import { pathToFunc } from "../lib/url.js";
13
- import {
14
- ConnectionError,
15
- InvalidRequestError,
16
- RequestAbortedError,
17
- RequestTimeoutError,
18
- UnexpectedClientError,
19
- } from "../models/errors/httpclienterrors.js";
20
- import * as errors from "../models/errors/index.js";
21
- import { OrqError } from "../models/errors/orqerror.js";
22
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
- import * as operations from "../models/operations/index.js";
25
- import { APICall, APIPromise } from "../types/async.js";
26
- import { Result } from "../types/fp.js";
27
-
28
- export function patchV2HumanEvalsId(
29
- client: OrqCore,
30
- request: operations.PatchV2HumanEvalsIdRequest,
31
- options?: RequestOptions,
32
- ): APIPromise<
33
- Result<
34
- operations.PatchV2HumanEvalsIdResponseBody,
35
- | errors.PatchV2HumanEvalsIdResponseBody
36
- | OrqError
37
- | ResponseValidationError
38
- | ConnectionError
39
- | RequestAbortedError
40
- | RequestTimeoutError
41
- | InvalidRequestError
42
- | UnexpectedClientError
43
- | SDKValidationError
44
- >
45
- > {
46
- return new APIPromise($do(
47
- client,
48
- request,
49
- options,
50
- ));
51
- }
52
-
53
- async function $do(
54
- client: OrqCore,
55
- request: operations.PatchV2HumanEvalsIdRequest,
56
- options?: RequestOptions,
57
- ): Promise<
58
- [
59
- Result<
60
- operations.PatchV2HumanEvalsIdResponseBody,
61
- | errors.PatchV2HumanEvalsIdResponseBody
62
- | OrqError
63
- | ResponseValidationError
64
- | ConnectionError
65
- | RequestAbortedError
66
- | RequestTimeoutError
67
- | InvalidRequestError
68
- | UnexpectedClientError
69
- | SDKValidationError
70
- >,
71
- APICall,
72
- ]
73
- > {
74
- const parsed = safeParse(
75
- request,
76
- (value) =>
77
- operations.PatchV2HumanEvalsIdRequest$outboundSchema.parse(value),
78
- "Input validation failed",
79
- );
80
- if (!parsed.ok) {
81
- return [parsed, { status: "invalid" }];
82
- }
83
- const payload = parsed.value;
84
- const body = encodeJSON("body", payload.RequestBody, { explode: true });
85
-
86
- const pathParams = {
87
- id: encodeSimple("id", payload.id, {
88
- explode: false,
89
- charEncoding: "percent",
90
- }),
91
- };
92
- const path = pathToFunc("/v2/human-evals/{id}")(pathParams);
93
-
94
- const headers = new Headers(compactMap({
95
- "Content-Type": "application/json",
96
- Accept: "application/json",
97
- }));
98
-
99
- const secConfig = await extractSecurity(client._options.apiKey);
100
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
101
- const requestSecurity = resolveGlobalSecurity(securityInput);
102
-
103
- const context = {
104
- options: client._options,
105
- baseURL: options?.serverURL ?? client._baseURL ?? "",
106
- operationID: "patch_/v2/human-evals/{id}",
107
- oAuth2Scopes: null,
108
-
109
- resolvedSecurity: requestSecurity,
110
-
111
- securitySource: client._options.apiKey,
112
- retryConfig: options?.retries
113
- || client._options.retryConfig
114
- || { strategy: "none" },
115
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
116
- };
117
-
118
- const requestRes = client._createRequest(context, {
119
- security: requestSecurity,
120
- method: "PATCH",
121
- baseURL: options?.serverURL,
122
- path: path,
123
- headers: headers,
124
- body: body,
125
- userAgent: client._options.userAgent,
126
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
127
- }, options);
128
- if (!requestRes.ok) {
129
- return [requestRes, { status: "invalid" }];
130
- }
131
- const req = requestRes.value;
132
-
133
- const doResult = await client._do(req, {
134
- context,
135
- errorCodes: ["404", "4XX", "5XX"],
136
- retryConfig: context.retryConfig,
137
- retryCodes: context.retryCodes,
138
- });
139
- if (!doResult.ok) {
140
- return [doResult, { status: "request-error", request: req }];
141
- }
142
- const response = doResult.value;
143
-
144
- const responseFields = {
145
- HttpMeta: { Response: response, Request: req },
146
- };
147
-
148
- const [result] = await M.match<
149
- operations.PatchV2HumanEvalsIdResponseBody,
150
- | errors.PatchV2HumanEvalsIdResponseBody
151
- | OrqError
152
- | ResponseValidationError
153
- | ConnectionError
154
- | RequestAbortedError
155
- | RequestTimeoutError
156
- | InvalidRequestError
157
- | UnexpectedClientError
158
- | SDKValidationError
159
- >(
160
- M.json(200, operations.PatchV2HumanEvalsIdResponseBody$inboundSchema),
161
- M.jsonErr(404, errors.PatchV2HumanEvalsIdResponseBody$inboundSchema),
162
- M.fail("4XX"),
163
- M.fail("5XX"),
164
- )(response, req, { extraFields: responseFields });
165
- if (!result.ok) {
166
- return [result, { status: "complete", request: req, response }];
167
- }
168
-
169
- return [result, { status: "complete", request: req, response }];
170
- }
@@ -1,168 +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 * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { RequestOptions } from "../lib/sdks.js";
11
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
- import { pathToFunc } from "../lib/url.js";
13
- import {
14
- ConnectionError,
15
- InvalidRequestError,
16
- RequestAbortedError,
17
- RequestTimeoutError,
18
- UnexpectedClientError,
19
- } from "../models/errors/httpclienterrors.js";
20
- import * as errors from "../models/errors/index.js";
21
- import { OrqError } from "../models/errors/orqerror.js";
22
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
- import * as operations from "../models/operations/index.js";
25
- import { APICall, APIPromise } from "../types/async.js";
26
- import { Result } from "../types/fp.js";
27
-
28
- export function postV2HumanEvals(
29
- client: OrqCore,
30
- request?: operations.PostV2HumanEvalsRequestBody | undefined,
31
- options?: RequestOptions,
32
- ): APIPromise<
33
- Result<
34
- operations.PostV2HumanEvalsResponseBody,
35
- | errors.PostV2HumanEvalsResponseBody
36
- | OrqError
37
- | ResponseValidationError
38
- | ConnectionError
39
- | RequestAbortedError
40
- | RequestTimeoutError
41
- | InvalidRequestError
42
- | UnexpectedClientError
43
- | SDKValidationError
44
- >
45
- > {
46
- return new APIPromise($do(
47
- client,
48
- request,
49
- options,
50
- ));
51
- }
52
-
53
- async function $do(
54
- client: OrqCore,
55
- request?: operations.PostV2HumanEvalsRequestBody | undefined,
56
- options?: RequestOptions,
57
- ): Promise<
58
- [
59
- Result<
60
- operations.PostV2HumanEvalsResponseBody,
61
- | errors.PostV2HumanEvalsResponseBody
62
- | OrqError
63
- | ResponseValidationError
64
- | ConnectionError
65
- | RequestAbortedError
66
- | RequestTimeoutError
67
- | InvalidRequestError
68
- | UnexpectedClientError
69
- | SDKValidationError
70
- >,
71
- APICall,
72
- ]
73
- > {
74
- const parsed = safeParse(
75
- request,
76
- (value) =>
77
- operations.PostV2HumanEvalsRequestBody$outboundSchema.optional().parse(
78
- value,
79
- ),
80
- "Input validation failed",
81
- );
82
- if (!parsed.ok) {
83
- return [parsed, { status: "invalid" }];
84
- }
85
- const payload = parsed.value;
86
- const body = payload === undefined
87
- ? null
88
- : encodeJSON("body", payload, { explode: true });
89
-
90
- const path = pathToFunc("/v2/human-evals")();
91
-
92
- const headers = new Headers(compactMap({
93
- "Content-Type": "application/json",
94
- Accept: "application/json",
95
- }));
96
-
97
- const secConfig = await extractSecurity(client._options.apiKey);
98
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
99
- const requestSecurity = resolveGlobalSecurity(securityInput);
100
-
101
- const context = {
102
- options: client._options,
103
- baseURL: options?.serverURL ?? client._baseURL ?? "",
104
- operationID: "post_/v2/human-evals",
105
- oAuth2Scopes: null,
106
-
107
- resolvedSecurity: requestSecurity,
108
-
109
- securitySource: client._options.apiKey,
110
- retryConfig: options?.retries
111
- || client._options.retryConfig
112
- || { strategy: "none" },
113
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
114
- };
115
-
116
- const requestRes = client._createRequest(context, {
117
- security: requestSecurity,
118
- method: "POST",
119
- baseURL: options?.serverURL,
120
- path: path,
121
- headers: headers,
122
- body: body,
123
- userAgent: client._options.userAgent,
124
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
125
- }, options);
126
- if (!requestRes.ok) {
127
- return [requestRes, { status: "invalid" }];
128
- }
129
- const req = requestRes.value;
130
-
131
- const doResult = await client._do(req, {
132
- context,
133
- errorCodes: ["404", "4XX", "5XX"],
134
- retryConfig: context.retryConfig,
135
- retryCodes: context.retryCodes,
136
- });
137
- if (!doResult.ok) {
138
- return [doResult, { status: "request-error", request: req }];
139
- }
140
- const response = doResult.value;
141
-
142
- const responseFields = {
143
- HttpMeta: { Response: response, Request: req },
144
- };
145
-
146
- const [result] = await M.match<
147
- operations.PostV2HumanEvalsResponseBody,
148
- | errors.PostV2HumanEvalsResponseBody
149
- | OrqError
150
- | ResponseValidationError
151
- | ConnectionError
152
- | RequestAbortedError
153
- | RequestTimeoutError
154
- | InvalidRequestError
155
- | UnexpectedClientError
156
- | SDKValidationError
157
- >(
158
- M.json(200, operations.PostV2HumanEvalsResponseBody$inboundSchema),
159
- M.jsonErr(404, errors.PostV2HumanEvalsResponseBody$inboundSchema),
160
- M.fail("4XX"),
161
- M.fail("5XX"),
162
- )(response, req, { extraFields: responseFields });
163
- if (!result.ok) {
164
- return [result, { status: "complete", request: req, response }];
165
- }
166
-
167
- return [result, { status: "complete", request: req, response }];
168
- }
@@ -1,51 +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 { OrqError } from "./orqerror.js";
7
-
8
- /**
9
- * Workspace ID is not found on the request
10
- */
11
- export type DeleteV2HumanEvalsIdResponseBodyData = {
12
- message: string;
13
- };
14
-
15
- /**
16
- * Workspace ID is not found on the request
17
- */
18
- export class DeleteV2HumanEvalsIdResponseBody extends OrqError {
19
- /** The original data that was passed to this error instance. */
20
- data$: DeleteV2HumanEvalsIdResponseBodyData;
21
-
22
- constructor(
23
- err: DeleteV2HumanEvalsIdResponseBodyData,
24
- httpMeta: { response: Response; request: Request; body: string },
25
- ) {
26
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
27
- super(message, httpMeta);
28
- this.data$ = err;
29
-
30
- this.name = "DeleteV2HumanEvalsIdResponseBody";
31
- }
32
- }
33
-
34
- /** @internal */
35
- export const DeleteV2HumanEvalsIdResponseBody$inboundSchema: z.ZodType<
36
- DeleteV2HumanEvalsIdResponseBody,
37
- z.ZodTypeDef,
38
- unknown
39
- > = z.object({
40
- message: z.string(),
41
- request$: z.instanceof(Request),
42
- response$: z.instanceof(Response),
43
- body$: z.string(),
44
- })
45
- .transform((v) => {
46
- return new DeleteV2HumanEvalsIdResponseBody(v, {
47
- request: v.request$,
48
- response: v.response$,
49
- body: v.body$,
50
- });
51
- });
@@ -1,51 +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 { OrqError } from "./orqerror.js";
7
-
8
- /**
9
- * Workspace ID is not found on the request
10
- */
11
- export type GetV2HumanEvalsResponseBodyData = {
12
- message: string;
13
- };
14
-
15
- /**
16
- * Workspace ID is not found on the request
17
- */
18
- export class GetV2HumanEvalsResponseBody extends OrqError {
19
- /** The original data that was passed to this error instance. */
20
- data$: GetV2HumanEvalsResponseBodyData;
21
-
22
- constructor(
23
- err: GetV2HumanEvalsResponseBodyData,
24
- httpMeta: { response: Response; request: Request; body: string },
25
- ) {
26
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
27
- super(message, httpMeta);
28
- this.data$ = err;
29
-
30
- this.name = "GetV2HumanEvalsResponseBody";
31
- }
32
- }
33
-
34
- /** @internal */
35
- export const GetV2HumanEvalsResponseBody$inboundSchema: z.ZodType<
36
- GetV2HumanEvalsResponseBody,
37
- z.ZodTypeDef,
38
- unknown
39
- > = z.object({
40
- message: z.string(),
41
- request$: z.instanceof(Request),
42
- response$: z.instanceof(Response),
43
- body$: z.string(),
44
- })
45
- .transform((v) => {
46
- return new GetV2HumanEvalsResponseBody(v, {
47
- request: v.request$,
48
- response: v.response$,
49
- body: v.body$,
50
- });
51
- });
@@ -1,51 +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 { OrqError } from "./orqerror.js";
7
-
8
- /**
9
- * Workspace ID is not found on the request
10
- */
11
- export type GetV2HumanEvalsIdResponseBodyData = {
12
- message: string;
13
- };
14
-
15
- /**
16
- * Workspace ID is not found on the request
17
- */
18
- export class GetV2HumanEvalsIdResponseBody extends OrqError {
19
- /** The original data that was passed to this error instance. */
20
- data$: GetV2HumanEvalsIdResponseBodyData;
21
-
22
- constructor(
23
- err: GetV2HumanEvalsIdResponseBodyData,
24
- httpMeta: { response: Response; request: Request; body: string },
25
- ) {
26
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
27
- super(message, httpMeta);
28
- this.data$ = err;
29
-
30
- this.name = "GetV2HumanEvalsIdResponseBody";
31
- }
32
- }
33
-
34
- /** @internal */
35
- export const GetV2HumanEvalsIdResponseBody$inboundSchema: z.ZodType<
36
- GetV2HumanEvalsIdResponseBody,
37
- z.ZodTypeDef,
38
- unknown
39
- > = z.object({
40
- message: z.string(),
41
- request$: z.instanceof(Request),
42
- response$: z.instanceof(Response),
43
- body$: z.string(),
44
- })
45
- .transform((v) => {
46
- return new GetV2HumanEvalsIdResponseBody(v, {
47
- request: v.request$,
48
- response: v.response$,
49
- body: v.body$,
50
- });
51
- });
@@ -1,51 +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 { OrqError } from "./orqerror.js";
7
-
8
- /**
9
- * Workspace ID is not found on the request
10
- */
11
- export type PatchV2HumanEvalsIdResponseBodyData = {
12
- message: string;
13
- };
14
-
15
- /**
16
- * Workspace ID is not found on the request
17
- */
18
- export class PatchV2HumanEvalsIdResponseBody extends OrqError {
19
- /** The original data that was passed to this error instance. */
20
- data$: PatchV2HumanEvalsIdResponseBodyData;
21
-
22
- constructor(
23
- err: PatchV2HumanEvalsIdResponseBodyData,
24
- httpMeta: { response: Response; request: Request; body: string },
25
- ) {
26
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
27
- super(message, httpMeta);
28
- this.data$ = err;
29
-
30
- this.name = "PatchV2HumanEvalsIdResponseBody";
31
- }
32
- }
33
-
34
- /** @internal */
35
- export const PatchV2HumanEvalsIdResponseBody$inboundSchema: z.ZodType<
36
- PatchV2HumanEvalsIdResponseBody,
37
- z.ZodTypeDef,
38
- unknown
39
- > = z.object({
40
- message: z.string(),
41
- request$: z.instanceof(Request),
42
- response$: z.instanceof(Response),
43
- body$: z.string(),
44
- })
45
- .transform((v) => {
46
- return new PatchV2HumanEvalsIdResponseBody(v, {
47
- request: v.request$,
48
- response: v.response$,
49
- body: v.body$,
50
- });
51
- });
@@ -1,51 +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 { OrqError } from "./orqerror.js";
7
-
8
- /**
9
- * Workspace ID is not found on the request
10
- */
11
- export type PostV2HumanEvalsResponseBodyData = {
12
- message: string;
13
- };
14
-
15
- /**
16
- * Workspace ID is not found on the request
17
- */
18
- export class PostV2HumanEvalsResponseBody extends OrqError {
19
- /** The original data that was passed to this error instance. */
20
- data$: PostV2HumanEvalsResponseBodyData;
21
-
22
- constructor(
23
- err: PostV2HumanEvalsResponseBodyData,
24
- httpMeta: { response: Response; request: Request; body: string },
25
- ) {
26
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
27
- super(message, httpMeta);
28
- this.data$ = err;
29
-
30
- this.name = "PostV2HumanEvalsResponseBody";
31
- }
32
- }
33
-
34
- /** @internal */
35
- export const PostV2HumanEvalsResponseBody$inboundSchema: z.ZodType<
36
- PostV2HumanEvalsResponseBody,
37
- z.ZodTypeDef,
38
- unknown
39
- > = z.object({
40
- message: z.string(),
41
- request$: z.instanceof(Request),
42
- response$: z.instanceof(Response),
43
- body$: z.string(),
44
- })
45
- .transform((v) => {
46
- return new PostV2HumanEvalsResponseBody(v, {
47
- request: v.request$,
48
- response: v.response$,
49
- body: v.body$,
50
- });
51
- });
@@ -1,67 +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 { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type DeleteV2HumanEvalsIdRequest = {
11
- /**
12
- * The id of the resource
13
- */
14
- id: string;
15
- };
16
-
17
- /**
18
- * Returns a single human review
19
- */
20
- export type DeleteV2HumanEvalsIdResponseBody = {
21
- acknowledged: boolean;
22
- deletedCount: number;
23
- };
24
-
25
- /** @internal */
26
- export type DeleteV2HumanEvalsIdRequest$Outbound = {
27
- id: string;
28
- };
29
-
30
- /** @internal */
31
- export const DeleteV2HumanEvalsIdRequest$outboundSchema: z.ZodType<
32
- DeleteV2HumanEvalsIdRequest$Outbound,
33
- z.ZodTypeDef,
34
- DeleteV2HumanEvalsIdRequest
35
- > = z.object({
36
- id: z.string(),
37
- });
38
-
39
- export function deleteV2HumanEvalsIdRequestToJSON(
40
- deleteV2HumanEvalsIdRequest: DeleteV2HumanEvalsIdRequest,
41
- ): string {
42
- return JSON.stringify(
43
- DeleteV2HumanEvalsIdRequest$outboundSchema.parse(
44
- deleteV2HumanEvalsIdRequest,
45
- ),
46
- );
47
- }
48
-
49
- /** @internal */
50
- export const DeleteV2HumanEvalsIdResponseBody$inboundSchema: z.ZodType<
51
- DeleteV2HumanEvalsIdResponseBody,
52
- z.ZodTypeDef,
53
- unknown
54
- > = z.object({
55
- acknowledged: z.boolean(),
56
- deletedCount: z.number(),
57
- });
58
-
59
- export function deleteV2HumanEvalsIdResponseBodyFromJSON(
60
- jsonString: string,
61
- ): SafeParseResult<DeleteV2HumanEvalsIdResponseBody, SDKValidationError> {
62
- return safeParse(
63
- jsonString,
64
- (x) => DeleteV2HumanEvalsIdResponseBody$inboundSchema.parse(JSON.parse(x)),
65
- `Failed to parse 'DeleteV2HumanEvalsIdResponseBody' from JSON`,
66
- );
67
- }