@orq-ai/node 4.15.9 → 4.15.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) 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/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +5 -5
  8. package/models/operations/createtool.js +4 -4
  9. package/models/operations/getalltools.js +4 -4
  10. package/models/operations/getv2humanevalsets.js +2 -2
  11. package/models/operations/getv2humanevalsetsid.js +2 -2
  12. package/models/operations/listdatasetdatapoints.js +5 -5
  13. package/models/operations/listdatasets.js +1 -1
  14. package/models/operations/patchv2humanevalsetsid.js +2 -2
  15. package/models/operations/postv2feedbackevaluation.js +4 -4
  16. package/models/operations/postv2humanevalsets.js +2 -2
  17. package/models/operations/retrievedatapoint.js +5 -5
  18. package/models/operations/retrievedataset.js +1 -1
  19. package/models/operations/retrievetool.js +4 -4
  20. package/models/operations/runagent.js +1 -1
  21. package/models/operations/streamrunagent.js +1 -1
  22. package/models/operations/updatedatapoint.js +5 -5
  23. package/models/operations/updatedataset.js +1 -1
  24. package/models/operations/updatetool.js +4 -4
  25. package/package.json +6 -6
  26. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +6 -5
  27. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +1 -1
  28. package/packages/orq-rc/src/funcs/apiKeysGet.ts +3 -8
  29. package/packages/orq-rc/src/funcs/apiKeysList.ts +4 -11
  30. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +6 -6
  31. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +3 -5
  32. package/packages/orq-rc/src/funcs/datasetsClear.ts +3 -12
  33. package/packages/orq-rc/src/funcs/datasetsCreate.ts +10 -15
  34. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +8 -16
  35. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +175 -0
  36. package/packages/orq-rc/src/funcs/datasetsDelete.ts +2 -2
  37. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +2 -11
  38. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoints.ts +174 -0
  39. package/packages/orq-rc/src/funcs/datasetsList.ts +6 -5
  40. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +6 -14
  41. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +7 -15
  42. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +7 -15
  43. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +10 -16
  44. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +10 -16
  45. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +4 -7
  46. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  47. package/packages/orq-rc/src/funcs/projectsDelete.ts +1 -1
  48. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  49. package/packages/orq-rc/src/funcs/projectsUpdate.ts +1 -1
  50. package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +1 -1
  51. package/packages/orq-rc/src/lib/config.ts +2 -2
  52. package/packages/orq-rc/src/models/components/apikeyrestresponse.ts +1 -1
  53. package/packages/orq-rc/src/models/components/bulkcreatedatapointsrequest.ts +38 -0
  54. package/packages/orq-rc/src/models/components/classifyanswer.ts +2 -2
  55. package/packages/orq-rc/src/models/components/constraints.ts +32 -0
  56. package/packages/orq-rc/src/models/components/createdatasetrequest.ts +39 -0
  57. package/packages/orq-rc/src/models/components/datapoint1.ts +122 -0
  58. package/packages/orq-rc/src/models/components/datapointinput.ts +73 -0
  59. package/packages/orq-rc/src/models/components/dataset.ts +88 -0
  60. package/packages/orq-rc/src/models/components/datasetmetadata.ts +48 -0
  61. package/packages/orq-rc/src/models/components/datasource.ts +2 -2
  62. package/packages/orq-rc/src/models/components/datasourcesservicecreaterequest.ts +2 -2
  63. package/packages/orq-rc/src/models/components/deletedatapointsrequest.ts +36 -0
  64. package/packages/orq-rc/src/models/components/domain.ts +42 -39
  65. package/packages/orq-rc/src/models/components/extendedmessage.ts +1 -1
  66. package/packages/orq-rc/src/models/components/filesystem.ts +6 -5
  67. package/packages/orq-rc/src/models/components/hubitem.ts +2 -2
  68. package/packages/orq-rc/src/models/components/hubitemsummary.ts +1 -1
  69. package/packages/orq-rc/src/models/components/index.ts +13 -14
  70. package/packages/orq-rc/src/models/components/knowledge.ts +2 -2
  71. package/packages/orq-rc/src/models/components/knowledgechunk.ts +1 -1
  72. package/packages/orq-rc/src/models/components/listdatapointsresponse.ts +41 -0
  73. package/packages/orq-rc/src/models/components/listdatasetsresponse.ts +41 -0
  74. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +1 -1
  75. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +1 -1
  76. package/packages/orq-rc/src/models/components/memory.ts +2 -5
  77. package/packages/orq-rc/src/models/components/owner.ts +35 -0
  78. package/packages/orq-rc/src/models/components/projectscope.ts +11 -23
  79. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  80. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +3 -3
  81. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +3 -3
  82. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +3 -3
  83. package/packages/orq-rc/src/models/components/updatedatapointrequest.ts +67 -0
  84. package/packages/orq-rc/src/models/components/updatedatasetrequest.ts +40 -0
  85. package/packages/orq-rc/src/models/components/wiki.ts +3 -3
  86. package/packages/orq-rc/src/models/operations/apikeycreate.ts +116 -0
  87. package/packages/orq-rc/src/models/operations/apikeydelete.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/apikeyget.ts +1 -11
  89. package/packages/orq-rc/src/models/operations/apikeylist.ts +23 -78
  90. package/packages/orq-rc/src/models/operations/apikeylistcapabilities.ts +39 -0
  91. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +107 -5
  92. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +44 -0
  93. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -3
  94. package/packages/orq-rc/src/models/operations/createagentrequest.ts +7 -7
  95. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +9 -15
  96. package/packages/orq-rc/src/models/operations/createclassify.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/createcompletion.ts +3 -3
  98. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +13 -3238
  99. package/packages/orq-rc/src/models/operations/createimage.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/createimageedit.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/createimagevariation.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/creatererank.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +6 -6
  104. package/packages/orq-rc/src/models/operations/createspeech.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  106. package/packages/orq-rc/src/models/operations/createtranscription.ts +2 -2
  107. package/packages/orq-rc/src/models/operations/createtranslation.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -6
  109. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -3
  110. package/packages/orq-rc/src/models/operations/deletedatasetdatapoints.ts +43 -0
  111. package/packages/orq-rc/src/models/operations/deployments.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/filelist.ts +3 -3
  113. package/packages/orq-rc/src/models/operations/getallmemories.ts +3 -3
  114. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +3 -3
  115. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +3 -3
  116. package/packages/orq-rc/src/models/operations/getallprompts.ts +2 -2
  117. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  118. package/packages/orq-rc/src/models/operations/getevals.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +9 -9
  120. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/index.ts +4 -1
  123. package/packages/orq-rc/src/models/operations/listagents.ts +7 -7
  124. package/packages/orq-rc/src/models/operations/listchunks.ts +3 -3
  125. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2117
  126. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -173
  127. package/packages/orq-rc/src/models/operations/listdatasources.ts +3 -3
  128. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  129. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/modelcataloglist.ts +2 -2
  132. package/packages/orq-rc/src/models/operations/modelcataloglistofferings.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  134. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  135. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  136. package/packages/orq-rc/src/models/operations/projectlist.ts +2 -2
  137. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +5 -5
  138. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2003
  139. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -114
  140. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  141. package/packages/orq-rc/src/models/operations/runagent.ts +3 -3
  142. package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -3
  143. package/packages/orq-rc/src/models/operations/updateagent.ts +7 -7
  144. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +17 -3275
  145. package/packages/orq-rc/src/models/operations/updatedataset.ts +5 -170
  146. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  147. package/packages/orq-rc/src/sdk/apikeys.ts +18 -18
  148. package/packages/orq-rc/src/sdk/classify.ts +1 -1
  149. package/packages/orq-rc/src/sdk/datasets.ts +73 -36
  150. package/packages/orq-rc/src/sdk/humanreviewsets.ts +1 -1
  151. package/packages/orq-rc/src/sdk/projects.ts +4 -4
  152. package/packages/orq-rc/src/sdk/sdk.ts +10 -10
  153. package/src/lib/config.ts +2 -2
  154. package/src/models/components/reasoningpart.ts +1 -1
  155. package/src/models/operations/createdataset.ts +1 -1
  156. package/src/models/operations/createdatasetitem.ts +5 -5
  157. package/src/models/operations/createtool.ts +4 -4
  158. package/src/models/operations/getalltools.ts +4 -4
  159. package/src/models/operations/getv2humanevalsets.ts +2 -2
  160. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  161. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  162. package/src/models/operations/listdatasets.ts +1 -1
  163. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  164. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  165. package/src/models/operations/postv2humanevalsets.ts +2 -2
  166. package/src/models/operations/retrievedatapoint.ts +5 -5
  167. package/src/models/operations/retrievedataset.ts +1 -1
  168. package/src/models/operations/retrievetool.ts +4 -4
  169. package/src/models/operations/runagent.ts +1 -1
  170. package/src/models/operations/streamrunagent.ts +1 -1
  171. package/src/models/operations/updatedatapoint.ts +5 -5
  172. package/src/models/operations/updatedataset.ts +1 -1
  173. package/src/models/operations/updatetool.ts +4 -4
  174. package/packages/orq-rc/src/models/components/allprojects.ts +0 -21
  175. package/packages/orq-rc/src/models/components/apikeyowner.ts +0 -55
  176. package/packages/orq-rc/src/models/components/apikeystatus.ts +0 -18
  177. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +0 -116
  178. package/packages/orq-rc/src/models/components/domaingroup.ts +0 -17
  179. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +0 -38
  180. package/packages/orq-rc/src/models/components/mcpaccess.ts +0 -93
  181. package/packages/orq-rc/src/models/components/ownertype.ts +0 -17
  182. package/packages/orq-rc/src/models/components/permissionmode.ts +0 -19
  183. package/packages/orq-rc/src/models/components/scopemode.ts +0 -16
  184. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +0 -25
  185. package/packages/orq-rc/src/models/components/singleproject.ts +0 -35
  186. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +0 -110
  187. package/packages/orq-rc/src/models/components/userowner.ts +0 -35
  188. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
@@ -0,0 +1,174 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { OrqCore } from "../core.js";
7
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.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
+ * Delete specific datapoints
31
+ *
32
+ * @remarks
33
+ * Deletes multiple datapoints from a dataset by ID.
34
+ */
35
+ export function datasetsDeleteDatapoints(
36
+ client: OrqCore,
37
+ request: operations.DeleteDatasetDatapointsRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ void,
42
+ | OrqError
43
+ | ResponseValidationError
44
+ | ConnectionError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | InvalidRequestError
48
+ | UnexpectedClientError
49
+ | SDKValidationError
50
+ >
51
+ > {
52
+ return new APIPromise($do(
53
+ client,
54
+ request,
55
+ options,
56
+ ));
57
+ }
58
+
59
+ async function $do(
60
+ client: OrqCore,
61
+ request: operations.DeleteDatasetDatapointsRequest,
62
+ options?: RequestOptions,
63
+ ): Promise<
64
+ [
65
+ Result<
66
+ void,
67
+ | OrqError
68
+ | ResponseValidationError
69
+ | ConnectionError
70
+ | RequestAbortedError
71
+ | RequestTimeoutError
72
+ | InvalidRequestError
73
+ | UnexpectedClientError
74
+ | SDKValidationError
75
+ >,
76
+ APICall,
77
+ ]
78
+ > {
79
+ const parsed = safeParse(
80
+ request,
81
+ (value) =>
82
+ operations.DeleteDatasetDatapointsRequest$outboundSchema.parse(value),
83
+ "Input validation failed",
84
+ );
85
+ if (!parsed.ok) {
86
+ return [parsed, { status: "invalid" }];
87
+ }
88
+ const payload = parsed.value;
89
+ const body = encodeJSON("body", payload.DeleteDatapointsRequest, {
90
+ explode: true,
91
+ });
92
+
93
+ const pathParams = {
94
+ dataset_id: encodeSimple("dataset_id", payload.dataset_id, {
95
+ explode: false,
96
+ charEncoding: "percent",
97
+ }),
98
+ };
99
+ const path = pathToFunc("/v2/datasets/{dataset_id}/datapoints-bulk-delete")(
100
+ pathParams,
101
+ );
102
+
103
+ const headers = new Headers(compactMap({
104
+ "Content-Type": "application/json",
105
+ Accept: "*/*",
106
+ }));
107
+
108
+ const secConfig = await extractSecurity(client._options.apiKey);
109
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
110
+ const requestSecurity = resolveGlobalSecurity(securityInput);
111
+
112
+ const context = {
113
+ options: client._options,
114
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
115
+ operationID: "DeleteDatasetDatapoints",
116
+ oAuth2Scopes: null,
117
+
118
+ resolvedSecurity: requestSecurity,
119
+
120
+ securitySource: client._options.apiKey,
121
+ retryConfig: options?.retries
122
+ || client._options.retryConfig
123
+ || { strategy: "none" },
124
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
125
+ };
126
+
127
+ const requestRes = client._createRequest(context, {
128
+ security: requestSecurity,
129
+ method: "POST",
130
+ baseURL: options?.serverURL,
131
+ path: path,
132
+ headers: headers,
133
+ body: body,
134
+ userAgent: client._options.userAgent,
135
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
136
+ }, options);
137
+ if (!requestRes.ok) {
138
+ return [requestRes, { status: "invalid" }];
139
+ }
140
+ const req = requestRes.value;
141
+
142
+ const doResult = await client._do(req, {
143
+ context,
144
+ isErrorStatusCode: (statusCode: number) =>
145
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
146
+ retryConfig: context.retryConfig,
147
+ retryCodes: context.retryCodes,
148
+ });
149
+ if (!doResult.ok) {
150
+ return [doResult, { status: "request-error", request: req }];
151
+ }
152
+ const response = doResult.value;
153
+
154
+ const [result] = await M.match<
155
+ void,
156
+ | OrqError
157
+ | ResponseValidationError
158
+ | ConnectionError
159
+ | RequestAbortedError
160
+ | RequestTimeoutError
161
+ | InvalidRequestError
162
+ | UnexpectedClientError
163
+ | SDKValidationError
164
+ >(
165
+ M.nil(204, z.void()),
166
+ M.fail("4XX"),
167
+ M.fail("5XX"),
168
+ )(response, req);
169
+ if (!result.ok) {
170
+ return [result, { status: "complete", request: req, response }];
171
+ }
172
+
173
+ return [result, { status: "complete", request: req, response }];
174
+ }
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
14
15
  import {
15
16
  ConnectionError,
16
17
  InvalidRequestError,
@@ -29,7 +30,7 @@ import { Result } from "../types/fp.js";
29
30
  * List datasets
30
31
  *
31
32
  * @remarks
32
- * Retrieves a paginated list of datasets for the current workspace. Results can be paginated using cursor-based pagination.
33
+ * Retrieves a paginated list of datasets for the current workspace.
33
34
  */
34
35
  export function datasetsList(
35
36
  client: OrqCore,
@@ -37,7 +38,7 @@ export function datasetsList(
37
38
  options?: RequestOptions,
38
39
  ): APIPromise<
39
40
  Result<
40
- operations.ListDatasetsResponseBody,
41
+ components.ListDatasetsResponse,
41
42
  | OrqError
42
43
  | ResponseValidationError
43
44
  | ConnectionError
@@ -62,7 +63,7 @@ async function $do(
62
63
  ): Promise<
63
64
  [
64
65
  Result<
65
- operations.ListDatasetsResponseBody,
66
+ components.ListDatasetsResponse,
66
67
  | OrqError
67
68
  | ResponseValidationError
68
69
  | ConnectionError
@@ -150,7 +151,7 @@ async function $do(
150
151
  const response = doResult.value;
151
152
 
152
153
  const [result] = await M.match<
153
- operations.ListDatasetsResponseBody,
154
+ components.ListDatasetsResponse,
154
155
  | OrqError
155
156
  | ResponseValidationError
156
157
  | ConnectionError
@@ -160,7 +161,7 @@ async function $do(
160
161
  | UnexpectedClientError
161
162
  | SDKValidationError
162
163
  >(
163
- M.json(200, operations.ListDatasetsResponseBody$inboundSchema),
164
+ M.json(200, components.ListDatasetsResponse$inboundSchema),
164
165
  M.fail("4XX"),
165
166
  M.fail("5XX"),
166
167
  )(response, req);
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
14
15
  import {
15
16
  ConnectionError,
16
17
  InvalidRequestError,
@@ -18,7 +19,6 @@ import {
18
19
  RequestTimeoutError,
19
20
  UnexpectedClientError,
20
21
  } from "../models/errors/httpclienterrors.js";
21
- import * as errors from "../models/errors/index.js";
22
22
  import { OrqError } from "../models/errors/orqerror.js";
23
23
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
24
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
@@ -38,8 +38,7 @@ export function datasetsListDatapoints(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- operations.ListDatasetDatapointsResponseBody,
42
- | errors.HonoApiError
41
+ components.ListDatapointsResponse,
43
42
  | OrqError
44
43
  | ResponseValidationError
45
44
  | ConnectionError
@@ -64,8 +63,7 @@ async function $do(
64
63
  ): Promise<
65
64
  [
66
65
  Result<
67
- operations.ListDatasetDatapointsResponseBody,
68
- | errors.HonoApiError
66
+ components.ListDatapointsResponse,
69
67
  | OrqError
70
68
  | ResponseValidationError
71
69
  | ConnectionError
@@ -155,13 +153,8 @@ async function $do(
155
153
  }
156
154
  const response = doResult.value;
157
155
 
158
- const responseFields = {
159
- HttpMeta: { Response: response, Request: req },
160
- };
161
-
162
156
  const [result] = await M.match<
163
- operations.ListDatasetDatapointsResponseBody,
164
- | errors.HonoApiError
157
+ components.ListDatapointsResponse,
165
158
  | OrqError
166
159
  | ResponseValidationError
167
160
  | ConnectionError
@@ -171,11 +164,10 @@ async function $do(
171
164
  | UnexpectedClientError
172
165
  | SDKValidationError
173
166
  >(
174
- M.json(200, operations.ListDatasetDatapointsResponseBody$inboundSchema),
175
- M.jsonErr(404, errors.HonoApiError$inboundSchema),
167
+ M.json(200, components.ListDatapointsResponse$inboundSchema),
176
168
  M.fail("4XX"),
177
169
  M.fail("5XX"),
178
- )(response, req, { extraFields: responseFields });
170
+ )(response, req);
179
171
  if (!result.ok) {
180
172
  return [result, { status: "complete", request: req, response }];
181
173
  }
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
14
15
  import {
15
16
  ConnectionError,
16
17
  InvalidRequestError,
@@ -18,7 +19,6 @@ import {
18
19
  RequestTimeoutError,
19
20
  UnexpectedClientError,
20
21
  } from "../models/errors/httpclienterrors.js";
21
- import * as errors from "../models/errors/index.js";
22
22
  import { OrqError } from "../models/errors/orqerror.js";
23
23
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
24
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Retrieve a dataset
31
31
  *
32
32
  * @remarks
33
- * Retrieves a specific dataset by its unique identifier
33
+ * Retrieves a specific dataset by its unique identifier.
34
34
  */
35
35
  export function datasetsRetrieve(
36
36
  client: OrqCore,
@@ -38,8 +38,7 @@ export function datasetsRetrieve(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- operations.RetrieveDatasetResponseBody,
42
- | errors.HonoApiError
41
+ components.Dataset,
43
42
  | OrqError
44
43
  | ResponseValidationError
45
44
  | ConnectionError
@@ -64,8 +63,7 @@ async function $do(
64
63
  ): Promise<
65
64
  [
66
65
  Result<
67
- operations.RetrieveDatasetResponseBody,
68
- | errors.HonoApiError
66
+ components.Dataset,
69
67
  | OrqError
70
68
  | ResponseValidationError
71
69
  | ConnectionError
@@ -147,13 +145,8 @@ async function $do(
147
145
  }
148
146
  const response = doResult.value;
149
147
 
150
- const responseFields = {
151
- HttpMeta: { Response: response, Request: req },
152
- };
153
-
154
148
  const [result] = await M.match<
155
- operations.RetrieveDatasetResponseBody,
156
- | errors.HonoApiError
149
+ components.Dataset,
157
150
  | OrqError
158
151
  | ResponseValidationError
159
152
  | ConnectionError
@@ -163,11 +156,10 @@ async function $do(
163
156
  | UnexpectedClientError
164
157
  | SDKValidationError
165
158
  >(
166
- M.json(200, operations.RetrieveDatasetResponseBody$inboundSchema),
167
- M.jsonErr(404, errors.HonoApiError$inboundSchema),
159
+ M.json(200, components.Dataset$inboundSchema),
168
160
  M.fail("4XX"),
169
161
  M.fail("5XX"),
170
- )(response, req, { extraFields: responseFields });
162
+ )(response, req);
171
163
  if (!result.ok) {
172
164
  return [result, { status: "complete", request: req, response }];
173
165
  }
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
14
15
  import {
15
16
  ConnectionError,
16
17
  InvalidRequestError,
@@ -18,7 +19,6 @@ import {
18
19
  RequestTimeoutError,
19
20
  UnexpectedClientError,
20
21
  } from "../models/errors/httpclienterrors.js";
21
- import * as errors from "../models/errors/index.js";
22
22
  import { OrqError } from "../models/errors/orqerror.js";
23
23
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
24
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Retrieve a datapoint
31
31
  *
32
32
  * @remarks
33
- * Retrieves a datapoint object
33
+ * Retrieves a datapoint object.
34
34
  */
35
35
  export function datasetsRetrieveDatapoint(
36
36
  client: OrqCore,
@@ -38,8 +38,7 @@ export function datasetsRetrieveDatapoint(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- operations.RetrieveDatapointResponseBody,
42
- | errors.HonoApiError
41
+ components.Datapoint1,
43
42
  | OrqError
44
43
  | ResponseValidationError
45
44
  | ConnectionError
@@ -64,8 +63,7 @@ async function $do(
64
63
  ): Promise<
65
64
  [
66
65
  Result<
67
- operations.RetrieveDatapointResponseBody,
68
- | errors.HonoApiError
66
+ components.Datapoint1,
69
67
  | OrqError
70
68
  | ResponseValidationError
71
69
  | ConnectionError
@@ -153,13 +151,8 @@ async function $do(
153
151
  }
154
152
  const response = doResult.value;
155
153
 
156
- const responseFields = {
157
- HttpMeta: { Response: response, Request: req },
158
- };
159
-
160
154
  const [result] = await M.match<
161
- operations.RetrieveDatapointResponseBody,
162
- | errors.HonoApiError
155
+ components.Datapoint1,
163
156
  | OrqError
164
157
  | ResponseValidationError
165
158
  | ConnectionError
@@ -169,11 +162,10 @@ async function $do(
169
162
  | UnexpectedClientError
170
163
  | SDKValidationError
171
164
  >(
172
- M.json(200, operations.RetrieveDatapointResponseBody$inboundSchema),
173
- M.jsonErr(404, errors.HonoApiError$inboundSchema),
165
+ M.json(200, components.Datapoint1$inboundSchema),
174
166
  M.fail("4XX"),
175
167
  M.fail("5XX"),
176
- )(response, req, { extraFields: responseFields });
168
+ )(response, req);
177
169
  if (!result.ok) {
178
170
  return [result, { status: "complete", request: req, response }];
179
171
  }
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
14
15
  import {
15
16
  ConnectionError,
16
17
  InvalidRequestError,
@@ -18,7 +19,6 @@ import {
18
19
  RequestTimeoutError,
19
20
  UnexpectedClientError,
20
21
  } from "../models/errors/httpclienterrors.js";
21
- import * as errors from "../models/errors/index.js";
22
22
  import { OrqError } from "../models/errors/orqerror.js";
23
23
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
24
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update a dataset
31
31
  *
32
32
  * @remarks
33
- * Update a dataset
33
+ * Updates the specified dataset.
34
34
  */
35
35
  export function datasetsUpdate(
36
36
  client: OrqCore,
@@ -38,8 +38,7 @@ export function datasetsUpdate(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- operations.UpdateDatasetResponseBody,
42
- | errors.HonoApiError
41
+ components.Dataset,
43
42
  | OrqError
44
43
  | ResponseValidationError
45
44
  | ConnectionError
@@ -64,8 +63,7 @@ async function $do(
64
63
  ): Promise<
65
64
  [
66
65
  Result<
67
- operations.UpdateDatasetResponseBody,
68
- | errors.HonoApiError
66
+ components.Dataset,
69
67
  | OrqError
70
68
  | ResponseValidationError
71
69
  | ConnectionError
@@ -87,7 +85,9 @@ async function $do(
87
85
  return [parsed, { status: "invalid" }];
88
86
  }
89
87
  const payload = parsed.value;
90
- const body = encodeJSON("body", payload.RequestBody, { explode: true });
88
+ const body = encodeJSON("body", payload.UpdateDatasetRequest, {
89
+ explode: true,
90
+ });
91
91
 
92
92
  const pathParams = {
93
93
  dataset_id: encodeSimple("dataset_id", payload.dataset_id, {
@@ -148,13 +148,8 @@ async function $do(
148
148
  }
149
149
  const response = doResult.value;
150
150
 
151
- const responseFields = {
152
- HttpMeta: { Response: response, Request: req },
153
- };
154
-
155
151
  const [result] = await M.match<
156
- operations.UpdateDatasetResponseBody,
157
- | errors.HonoApiError
152
+ components.Dataset,
158
153
  | OrqError
159
154
  | ResponseValidationError
160
155
  | ConnectionError
@@ -164,11 +159,10 @@ async function $do(
164
159
  | UnexpectedClientError
165
160
  | SDKValidationError
166
161
  >(
167
- M.json(200, operations.UpdateDatasetResponseBody$inboundSchema),
168
- M.jsonErr(404, errors.HonoApiError$inboundSchema),
162
+ M.json(200, components.Dataset$inboundSchema),
169
163
  M.fail("4XX"),
170
164
  M.fail("5XX"),
171
- )(response, req, { extraFields: responseFields });
165
+ )(response, req);
172
166
  if (!result.ok) {
173
167
  return [result, { status: "complete", request: req, response }];
174
168
  }
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
14
15
  import {
15
16
  ConnectionError,
16
17
  InvalidRequestError,
@@ -18,7 +19,6 @@ import {
18
19
  RequestTimeoutError,
19
20
  UnexpectedClientError,
20
21
  } from "../models/errors/httpclienterrors.js";
21
- import * as errors from "../models/errors/index.js";
22
22
  import { OrqError } from "../models/errors/orqerror.js";
23
23
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
24
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update a datapoint
31
31
  *
32
32
  * @remarks
33
- * Update a datapoint in the specified dataset.
33
+ * Updates the inputs, messages, or expected output for a datapoint.
34
34
  */
35
35
  export function datasetsUpdateDatapoint(
36
36
  client: OrqCore,
@@ -38,8 +38,7 @@ export function datasetsUpdateDatapoint(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- operations.UpdateDatapointResponseBody,
42
- | errors.HonoApiError
41
+ components.Datapoint1,
43
42
  | OrqError
44
43
  | ResponseValidationError
45
44
  | ConnectionError
@@ -64,8 +63,7 @@ async function $do(
64
63
  ): Promise<
65
64
  [
66
65
  Result<
67
- operations.UpdateDatapointResponseBody,
68
- | errors.HonoApiError
66
+ components.Datapoint1,
69
67
  | OrqError
70
68
  | ResponseValidationError
71
69
  | ConnectionError
@@ -87,7 +85,9 @@ async function $do(
87
85
  return [parsed, { status: "invalid" }];
88
86
  }
89
87
  const payload = parsed.value;
90
- const body = encodeJSON("body", payload.RequestBody, { explode: true });
88
+ const body = encodeJSON("body", payload.UpdateDatapointRequest, {
89
+ explode: true,
90
+ });
91
91
 
92
92
  const pathParams = {
93
93
  datapoint_id: encodeSimple("datapoint_id", payload.datapoint_id, {
@@ -154,13 +154,8 @@ async function $do(
154
154
  }
155
155
  const response = doResult.value;
156
156
 
157
- const responseFields = {
158
- HttpMeta: { Response: response, Request: req },
159
- };
160
-
161
157
  const [result] = await M.match<
162
- operations.UpdateDatapointResponseBody,
163
- | errors.HonoApiError
158
+ components.Datapoint1,
164
159
  | OrqError
165
160
  | ResponseValidationError
166
161
  | ConnectionError
@@ -170,11 +165,10 @@ async function $do(
170
165
  | UnexpectedClientError
171
166
  | SDKValidationError
172
167
  >(
173
- M.json(200, operations.UpdateDatapointResponseBody$inboundSchema),
174
- M.jsonErr(404, errors.HonoApiError$inboundSchema),
168
+ M.json(200, components.Datapoint1$inboundSchema),
175
169
  M.fail("4XX"),
176
170
  M.fail("5XX"),
177
- )(response, req, { extraFields: responseFields });
171
+ )(response, req);
178
172
  if (!result.ok) {
179
173
  return [result, { status: "complete", request: req, response }];
180
174
  }
@@ -35,7 +35,7 @@ export function humanReviewSetsList(
35
35
  options?: RequestOptions,
36
36
  ): APIPromise<
37
37
  Result<
38
- Array<operations.GetV2HumanEvalSetsResponseBody>,
38
+ Array<operations.ResponseBody>,
39
39
  | OrqError
40
40
  | ResponseValidationError
41
41
  | ConnectionError
@@ -60,7 +60,7 @@ async function $do(
60
60
  ): Promise<
61
61
  [
62
62
  Result<
63
- Array<operations.GetV2HumanEvalSetsResponseBody>,
63
+ Array<operations.ResponseBody>,
64
64
  | OrqError
65
65
  | ResponseValidationError
66
66
  | ConnectionError
@@ -145,7 +145,7 @@ async function $do(
145
145
  const response = doResult.value;
146
146
 
147
147
  const [result] = await M.match<
148
- Array<operations.GetV2HumanEvalSetsResponseBody>,
148
+ Array<operations.ResponseBody>,
149
149
  | OrqError
150
150
  | ResponseValidationError
151
151
  | ConnectionError
@@ -155,10 +155,7 @@ async function $do(
155
155
  | UnexpectedClientError
156
156
  | SDKValidationError
157
157
  >(
158
- M.json(
159
- 200,
160
- z.array(operations.GetV2HumanEvalSetsResponseBody$inboundSchema),
161
- ),
158
+ M.json(200, z.array(operations.ResponseBody$inboundSchema)),
162
159
  M.fail("4XX"),
163
160
  M.fail("5XX"),
164
161
  )(response, req);
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * Create a new project
30
30
  *
31
31
  * @remarks
32
- * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
32
+ * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access. Requires a workspace-scoped management key or API key with Projects write access, or an admin session. Project-scoped API keys cannot be granted Projects access.
33
33
  */
34
34
  export function projectsCreate(
35
35
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Delete a project
31
31
  *
32
32
  * @remarks
33
- * Deletes a project from the workspace. The response body is empty when the delete succeeds. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
33
+ * Deletes a project from the workspace. The response body is empty when the delete succeeds. Requires a workspace-scoped management key or API key with Projects write access, or an admin session. Project-scoped API keys cannot be granted Projects access.
34
34
  */
35
35
  export function projectsDelete(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * List all projects
31
31
  *
32
32
  * @remarks
33
- * Returns projects visible to the current workspace, ordered by creation time with the newest project first. Use `starting_after` or `ending_before` to page through large collections.
33
+ * Returns projects visible to the current workspace, ordered by creation time with the newest project first. Use `starting_after` or `ending_before` to page through large collections; the two cursors are mutually exclusive.
34
34
  */
35
35
  export function projectsList(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update a project
31
31
  *
32
32
  * @remarks
33
- * Updates the specified project by setting the values of the parameters passed. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
33
+ * Updates the specified project by setting the values of the parameters passed. Requires a workspace-scoped management key or API key with Projects write access, or an admin session. Project-scoped API keys cannot be granted Projects access.
34
34
  */
35
35
  export function projectsUpdate(
36
36
  client: OrqCore,