@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.
Files changed (92) hide show
  1. package/README.md +66 -79
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createeval.d.ts +4 -4
  7. package/models/operations/createeval.d.ts.map +1 -1
  8. package/models/operations/createeval.js +5 -5
  9. package/models/operations/createeval.js.map +1 -1
  10. package/models/operations/createtool.js +4 -4
  11. package/models/operations/getalltools.js +4 -4
  12. package/models/operations/index.d.ts +0 -5
  13. package/models/operations/index.d.ts.map +1 -1
  14. package/models/operations/index.js +0 -5
  15. package/models/operations/index.js.map +1 -1
  16. package/models/operations/listdeploymentversions.js +1 -1
  17. package/models/operations/retrievetool.js +4 -4
  18. package/models/operations/runagent.js +1 -1
  19. package/models/operations/streamrunagent.js +1 -1
  20. package/models/operations/updatetool.js +4 -4
  21. package/package.json +7 -7
  22. package/sdk/sdk.d.ts +0 -3
  23. package/sdk/sdk.d.ts.map +1 -1
  24. package/sdk/sdk.js +0 -4
  25. package/sdk/sdk.js.map +1 -1
  26. package/src/lib/config.ts +3 -3
  27. package/src/models/components/reasoningpart.ts +1 -1
  28. package/src/models/operations/createeval.ts +7 -11
  29. package/src/models/operations/createtool.ts +4 -4
  30. package/src/models/operations/getalltools.ts +4 -4
  31. package/src/models/operations/index.ts +0 -5
  32. package/src/models/operations/listdeploymentversions.ts +1 -1
  33. package/src/models/operations/retrievetool.ts +4 -4
  34. package/src/models/operations/runagent.ts +1 -1
  35. package/src/models/operations/streamrunagent.ts +1 -1
  36. package/src/models/operations/updatetool.ts +4 -4
  37. package/src/sdk/sdk.ts +0 -6
  38. package/funcs/humanReviewSetsCreate.d.ts +0 -20
  39. package/funcs/humanReviewSetsCreate.d.ts.map +0 -1
  40. package/funcs/humanReviewSetsCreate.js +0 -123
  41. package/funcs/humanReviewSetsCreate.js.map +0 -1
  42. package/funcs/humanReviewSetsDelete.d.ts +0 -20
  43. package/funcs/humanReviewSetsDelete.d.ts.map +0 -1
  44. package/funcs/humanReviewSetsDelete.js +0 -127
  45. package/funcs/humanReviewSetsDelete.js.map +0 -1
  46. package/funcs/humanReviewSetsGet.d.ts +0 -20
  47. package/funcs/humanReviewSetsGet.d.ts.map +0 -1
  48. package/funcs/humanReviewSetsGet.js +0 -126
  49. package/funcs/humanReviewSetsGet.js.map +0 -1
  50. package/funcs/humanReviewSetsList.d.ts +0 -20
  51. package/funcs/humanReviewSetsList.d.ts.map +0 -1
  52. package/funcs/humanReviewSetsList.js +0 -125
  53. package/funcs/humanReviewSetsList.js.map +0 -1
  54. package/funcs/humanReviewSetsUpdate.d.ts +0 -20
  55. package/funcs/humanReviewSetsUpdate.d.ts.map +0 -1
  56. package/funcs/humanReviewSetsUpdate.js +0 -127
  57. package/funcs/humanReviewSetsUpdate.js.map +0 -1
  58. package/models/operations/deletev2humanevalsetsid.d.ts +0 -15
  59. package/models/operations/deletev2humanevalsetsid.d.ts.map +0 -1
  60. package/models/operations/deletev2humanevalsetsid.js +0 -49
  61. package/models/operations/deletev2humanevalsetsid.js.map +0 -1
  62. package/models/operations/getv2humanevalsets.d.ts +0 -103
  63. package/models/operations/getv2humanevalsets.d.ts.map +0 -1
  64. package/models/operations/getv2humanevalsets.js +0 -128
  65. package/models/operations/getv2humanevalsets.js.map +0 -1
  66. package/models/operations/getv2humanevalsetsid.d.ts +0 -106
  67. package/models/operations/getv2humanevalsetsid.d.ts.map +0 -1
  68. package/models/operations/getv2humanevalsetsid.js +0 -124
  69. package/models/operations/getv2humanevalsetsid.js.map +0 -1
  70. package/models/operations/patchv2humanevalsetsid.d.ts +0 -184
  71. package/models/operations/patchv2humanevalsetsid.d.ts.map +0 -1
  72. package/models/operations/patchv2humanevalsetsid.js +0 -183
  73. package/models/operations/patchv2humanevalsetsid.js.map +0 -1
  74. package/models/operations/postv2humanevalsets.d.ts +0 -169
  75. package/models/operations/postv2humanevalsets.d.ts.map +0 -1
  76. package/models/operations/postv2humanevalsets.js +0 -167
  77. package/models/operations/postv2humanevalsets.js.map +0 -1
  78. package/sdk/humanreviewsets.d.ts +0 -50
  79. package/sdk/humanreviewsets.d.ts.map +0 -1
  80. package/sdk/humanreviewsets.js +0 -72
  81. package/sdk/humanreviewsets.js.map +0 -1
  82. package/src/funcs/humanReviewSetsCreate.ts +0 -178
  83. package/src/funcs/humanReviewSetsDelete.ts +0 -180
  84. package/src/funcs/humanReviewSetsGet.ts +0 -179
  85. package/src/funcs/humanReviewSetsList.ts +0 -181
  86. package/src/funcs/humanReviewSetsUpdate.ts +0 -180
  87. package/src/models/operations/deletev2humanevalsetsid.ts +0 -36
  88. package/src/models/operations/getv2humanevalsets.ts +0 -234
  89. package/src/models/operations/getv2humanevalsetsid.ts +0 -235
  90. package/src/models/operations/patchv2humanevalsetsid.ts +0 -415
  91. package/src/models/operations/postv2humanevalsets.ts +0 -351
  92. package/src/sdk/humanreviewsets.ts +0 -109
@@ -1,180 +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 { OrqCore } from "../core.js";
7
- import { 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 * as errors from "../models/errors/index.js";
23
- import { OrqError } from "../models/errors/orqerror.js";
24
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
- import * as operations from "../models/operations/index.js";
27
- import { APICall, APIPromise } from "../types/async.js";
28
- import { Result } from "../types/fp.js";
29
-
30
- /**
31
- * Delete a human review set
32
- *
33
- * @remarks
34
- * Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
35
- *
36
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
37
- */
38
- export function humanReviewSetsDelete(
39
- client: OrqCore,
40
- request: operations.DeleteV2HumanEvalSetsIdRequest,
41
- options?: RequestOptions,
42
- ): APIPromise<
43
- Result<
44
- void,
45
- | errors.ErrorResponse
46
- | OrqError
47
- | ResponseValidationError
48
- | ConnectionError
49
- | RequestAbortedError
50
- | RequestTimeoutError
51
- | InvalidRequestError
52
- | UnexpectedClientError
53
- | SDKValidationError
54
- >
55
- > {
56
- return new APIPromise($do(
57
- client,
58
- request,
59
- options,
60
- ));
61
- }
62
-
63
- async function $do(
64
- client: OrqCore,
65
- request: operations.DeleteV2HumanEvalSetsIdRequest,
66
- options?: RequestOptions,
67
- ): Promise<
68
- [
69
- Result<
70
- void,
71
- | errors.ErrorResponse
72
- | OrqError
73
- | ResponseValidationError
74
- | ConnectionError
75
- | RequestAbortedError
76
- | RequestTimeoutError
77
- | InvalidRequestError
78
- | UnexpectedClientError
79
- | SDKValidationError
80
- >,
81
- APICall,
82
- ]
83
- > {
84
- const parsed = safeParse(
85
- request,
86
- (value) =>
87
- operations.DeleteV2HumanEvalSetsIdRequest$outboundSchema.parse(value),
88
- "Input validation failed",
89
- );
90
- if (!parsed.ok) {
91
- return [parsed, { status: "invalid" }];
92
- }
93
- const payload = parsed.value;
94
- const body = null;
95
-
96
- const pathParams = {
97
- id: encodeSimple("id", payload.id, {
98
- explode: false,
99
- charEncoding: "percent",
100
- }),
101
- };
102
- const path = pathToFunc("/v2/human-eval-sets/{id}")(pathParams);
103
-
104
- const headers = new Headers(compactMap({
105
- Accept: "application/json",
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: "delete_/v2/human-eval-sets/{id}",
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: "DELETE",
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 responseFields = {
155
- HttpMeta: { Response: response, Request: req },
156
- };
157
-
158
- const [result] = await M.match<
159
- void,
160
- | errors.ErrorResponse
161
- | OrqError
162
- | ResponseValidationError
163
- | ConnectionError
164
- | RequestAbortedError
165
- | RequestTimeoutError
166
- | InvalidRequestError
167
- | UnexpectedClientError
168
- | SDKValidationError
169
- >(
170
- M.nil(200, z.void()),
171
- M.jsonErr(401, errors.ErrorResponse$inboundSchema),
172
- M.fail("4XX"),
173
- M.fail("5XX"),
174
- )(response, req, { extraFields: responseFields });
175
- if (!result.ok) {
176
- return [result, { status: "complete", request: req, response }];
177
- }
178
-
179
- return [result, { status: "complete", request: req, response }];
180
- }
@@ -1,179 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { OrqCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
7
- import { matchStatusCode } from "../lib/http.js";
8
- import * as M from "../lib/matchers.js";
9
- import { compactMap } from "../lib/primitives.js";
10
- import { safeParse } from "../lib/schemas.js";
11
- import { RequestOptions } from "../lib/sdks.js";
12
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
- import { pathToFunc } from "../lib/url.js";
14
- import {
15
- ConnectionError,
16
- InvalidRequestError,
17
- RequestAbortedError,
18
- RequestTimeoutError,
19
- UnexpectedClientError,
20
- } from "../models/errors/httpclienterrors.js";
21
- import * as errors from "../models/errors/index.js";
22
- import { OrqError } from "../models/errors/orqerror.js";
23
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
- import * as operations from "../models/operations/index.js";
26
- import { APICall, APIPromise } from "../types/async.js";
27
- import { Result } from "../types/fp.js";
28
-
29
- /**
30
- * Get a human review set by ID
31
- *
32
- * @remarks
33
- * Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
34
- *
35
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
36
- */
37
- export function humanReviewSetsGet(
38
- client: OrqCore,
39
- request: operations.GetV2HumanEvalSetsIdRequest,
40
- options?: RequestOptions,
41
- ): APIPromise<
42
- Result<
43
- operations.GetV2HumanEvalSetsIdResponseBody,
44
- | errors.ErrorResponse
45
- | OrqError
46
- | ResponseValidationError
47
- | ConnectionError
48
- | RequestAbortedError
49
- | RequestTimeoutError
50
- | InvalidRequestError
51
- | UnexpectedClientError
52
- | SDKValidationError
53
- >
54
- > {
55
- return new APIPromise($do(
56
- client,
57
- request,
58
- options,
59
- ));
60
- }
61
-
62
- async function $do(
63
- client: OrqCore,
64
- request: operations.GetV2HumanEvalSetsIdRequest,
65
- options?: RequestOptions,
66
- ): Promise<
67
- [
68
- Result<
69
- operations.GetV2HumanEvalSetsIdResponseBody,
70
- | errors.ErrorResponse
71
- | OrqError
72
- | ResponseValidationError
73
- | ConnectionError
74
- | RequestAbortedError
75
- | RequestTimeoutError
76
- | InvalidRequestError
77
- | UnexpectedClientError
78
- | SDKValidationError
79
- >,
80
- APICall,
81
- ]
82
- > {
83
- const parsed = safeParse(
84
- request,
85
- (value) =>
86
- operations.GetV2HumanEvalSetsIdRequest$outboundSchema.parse(value),
87
- "Input validation failed",
88
- );
89
- if (!parsed.ok) {
90
- return [parsed, { status: "invalid" }];
91
- }
92
- const payload = parsed.value;
93
- const body = null;
94
-
95
- const pathParams = {
96
- id: encodeSimple("id", payload.id, {
97
- explode: false,
98
- charEncoding: "percent",
99
- }),
100
- };
101
- const path = pathToFunc("/v2/human-eval-sets/{id}")(pathParams);
102
-
103
- const headers = new Headers(compactMap({
104
- Accept: "application/json",
105
- }));
106
-
107
- const secConfig = await extractSecurity(client._options.apiKey);
108
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
109
- const requestSecurity = resolveGlobalSecurity(securityInput);
110
-
111
- const context = {
112
- options: client._options,
113
- baseURL: options?.serverURL ?? client._baseURL ?? "",
114
- operationID: "get_/v2/human-eval-sets/{id}",
115
- oAuth2Scopes: null,
116
-
117
- resolvedSecurity: requestSecurity,
118
-
119
- securitySource: client._options.apiKey,
120
- retryConfig: options?.retries
121
- || client._options.retryConfig
122
- || { strategy: "none" },
123
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
124
- };
125
-
126
- const requestRes = client._createRequest(context, {
127
- security: requestSecurity,
128
- method: "GET",
129
- baseURL: options?.serverURL,
130
- path: path,
131
- headers: headers,
132
- body: body,
133
- userAgent: client._options.userAgent,
134
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
135
- }, options);
136
- if (!requestRes.ok) {
137
- return [requestRes, { status: "invalid" }];
138
- }
139
- const req = requestRes.value;
140
-
141
- const doResult = await client._do(req, {
142
- context,
143
- isErrorStatusCode: (statusCode: number) =>
144
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
145
- retryConfig: context.retryConfig,
146
- retryCodes: context.retryCodes,
147
- });
148
- if (!doResult.ok) {
149
- return [doResult, { status: "request-error", request: req }];
150
- }
151
- const response = doResult.value;
152
-
153
- const responseFields = {
154
- HttpMeta: { Response: response, Request: req },
155
- };
156
-
157
- const [result] = await M.match<
158
- operations.GetV2HumanEvalSetsIdResponseBody,
159
- | errors.ErrorResponse
160
- | OrqError
161
- | ResponseValidationError
162
- | ConnectionError
163
- | RequestAbortedError
164
- | RequestTimeoutError
165
- | InvalidRequestError
166
- | UnexpectedClientError
167
- | SDKValidationError
168
- >(
169
- M.json(200, operations.GetV2HumanEvalSetsIdResponseBody$inboundSchema),
170
- M.jsonErr([401, 404], errors.ErrorResponse$inboundSchema),
171
- M.fail("4XX"),
172
- M.fail("5XX"),
173
- )(response, req, { extraFields: responseFields });
174
- if (!result.ok) {
175
- return [result, { status: "complete", request: req, response }];
176
- }
177
-
178
- return [result, { status: "complete", request: req, response }];
179
- }
@@ -1,181 +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 { OrqCore } from "../core.js";
7
- import { encodeFormQuery } 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 * as errors from "../models/errors/index.js";
23
- import { OrqError } from "../models/errors/orqerror.js";
24
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
- import * as operations from "../models/operations/index.js";
27
- import { APICall, APIPromise } from "../types/async.js";
28
- import { Result } from "../types/fp.js";
29
-
30
- /**
31
- * Get all human review sets
32
- *
33
- * @remarks
34
- * Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
35
- *
36
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
37
- */
38
- export function humanReviewSetsList(
39
- client: OrqCore,
40
- request?: operations.GetV2HumanEvalSetsRequest | undefined,
41
- options?: RequestOptions,
42
- ): APIPromise<
43
- Result<
44
- Array<operations.ResponseBody>,
45
- | errors.ErrorResponse
46
- | OrqError
47
- | ResponseValidationError
48
- | ConnectionError
49
- | RequestAbortedError
50
- | RequestTimeoutError
51
- | InvalidRequestError
52
- | UnexpectedClientError
53
- | SDKValidationError
54
- >
55
- > {
56
- return new APIPromise($do(
57
- client,
58
- request,
59
- options,
60
- ));
61
- }
62
-
63
- async function $do(
64
- client: OrqCore,
65
- request?: operations.GetV2HumanEvalSetsRequest | undefined,
66
- options?: RequestOptions,
67
- ): Promise<
68
- [
69
- Result<
70
- Array<operations.ResponseBody>,
71
- | errors.ErrorResponse
72
- | OrqError
73
- | ResponseValidationError
74
- | ConnectionError
75
- | RequestAbortedError
76
- | RequestTimeoutError
77
- | InvalidRequestError
78
- | UnexpectedClientError
79
- | SDKValidationError
80
- >,
81
- APICall,
82
- ]
83
- > {
84
- const parsed = safeParse(
85
- request,
86
- (value) =>
87
- operations.GetV2HumanEvalSetsRequest$outboundSchema.optional().parse(
88
- value,
89
- ),
90
- "Input validation failed",
91
- );
92
- if (!parsed.ok) {
93
- return [parsed, { status: "invalid" }];
94
- }
95
- const payload = parsed.value;
96
- const body = null;
97
-
98
- const path = pathToFunc("/v2/human-eval-sets")();
99
-
100
- const query = encodeFormQuery({
101
- "project_id": payload?.project_id,
102
- });
103
-
104
- const headers = new Headers(compactMap({
105
- Accept: "application/json",
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: "get_/v2/human-eval-sets",
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: "GET",
130
- baseURL: options?.serverURL,
131
- path: path,
132
- headers: headers,
133
- query: query,
134
- body: body,
135
- userAgent: client._options.userAgent,
136
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
137
- }, options);
138
- if (!requestRes.ok) {
139
- return [requestRes, { status: "invalid" }];
140
- }
141
- const req = requestRes.value;
142
-
143
- const doResult = await client._do(req, {
144
- context,
145
- isErrorStatusCode: (statusCode: number) =>
146
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
147
- retryConfig: context.retryConfig,
148
- retryCodes: context.retryCodes,
149
- });
150
- if (!doResult.ok) {
151
- return [doResult, { status: "request-error", request: req }];
152
- }
153
- const response = doResult.value;
154
-
155
- const responseFields = {
156
- HttpMeta: { Response: response, Request: req },
157
- };
158
-
159
- const [result] = await M.match<
160
- Array<operations.ResponseBody>,
161
- | errors.ErrorResponse
162
- | OrqError
163
- | ResponseValidationError
164
- | ConnectionError
165
- | RequestAbortedError
166
- | RequestTimeoutError
167
- | InvalidRequestError
168
- | UnexpectedClientError
169
- | SDKValidationError
170
- >(
171
- M.json(200, z.array(operations.ResponseBody$inboundSchema)),
172
- M.jsonErr(401, errors.ErrorResponse$inboundSchema),
173
- M.fail("4XX"),
174
- M.fail("5XX"),
175
- )(response, req, { extraFields: responseFields });
176
- if (!result.ok) {
177
- return [result, { status: "complete", request: req, response }];
178
- }
179
-
180
- return [result, { status: "complete", request: req, response }];
181
- }