@orq-ai/node 4.14.0-rc.43 → 4.14.0-rc.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/funcs/modelCatalogGet.d.ts +1 -1
- package/funcs/modelCatalogGet.js +1 -1
- package/funcs/modelCatalogList.d.ts +1 -1
- package/funcs/modelCatalogList.js +2 -4
- package/funcs/modelCatalogList.js.map +1 -1
- package/funcs/modelCatalogListOfferings.d.ts +2 -2
- package/funcs/modelCatalogListOfferings.d.ts.map +1 -1
- package/funcs/modelCatalogListOfferings.js +23 -22
- package/funcs/modelCatalogListOfferings.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/index.d.ts +0 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -2
- package/models/components/index.js.map +1 -1
- package/models/components/model.d.ts +25 -26
- package/models/components/model.d.ts.map +1 -1
- package/models/components/model.js +12 -13
- package/models/components/model.js.map +1 -1
- package/models/components/modelprovider.d.ts +0 -12
- package/models/components/modelprovider.d.ts.map +1 -1
- package/models/components/modelprovider.js +0 -9
- package/models/components/modelprovider.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/modelcataloglist.d.ts +5 -19
- package/models/operations/modelcataloglist.d.ts.map +1 -1
- package/models/operations/modelcataloglist.js +1 -3
- package/models/operations/modelcataloglist.js.map +1 -1
- package/models/operations/modelcataloglistofferings.d.ts +13 -33
- package/models/operations/modelcataloglistofferings.d.ts.map +1 -1
- package/models/operations/modelcataloglistofferings.js +2 -6
- package/models/operations/modelcataloglistofferings.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/modelcatalog.d.ts +4 -4
- package/sdk/modelcatalog.d.ts.map +1 -1
- package/sdk/modelcatalog.js +3 -3
- package/sdk/modelcatalog.js.map +1 -1
- package/src/funcs/modelCatalogGet.ts +1 -1
- package/src/funcs/modelCatalogList.ts +2 -4
- package/src/funcs/modelCatalogListOfferings.ts +26 -25
- package/src/lib/config.ts +3 -3
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/index.ts +0 -2
- package/src/models/components/model.ts +45 -42
- package/src/models/components/modelprovider.ts +0 -21
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/modelcataloglist.ts +6 -22
- package/src/models/operations/modelcataloglistofferings.ts +15 -39
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/modelcatalog.ts +4 -4
- package/models/components/modelartificialanalysis.d.ts +0 -46
- package/models/components/modelartificialanalysis.d.ts.map +0 -1
- package/models/components/modelartificialanalysis.js +0 -69
- package/models/components/modelartificialanalysis.js.map +0 -1
- package/models/components/modelparameter.d.ts +0 -25
- package/models/components/modelparameter.d.ts.map +0 -1
- package/models/components/modelparameter.js +0 -53
- package/models/components/modelparameter.js.map +0 -1
- package/src/models/components/modelartificialanalysis.ts +0 -95
- package/src/models/components/modelparameter.ts +0 -49
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { OrqCore } from "../core.js";
|
|
6
|
-
import { encodeFormQuery } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -30,11 +30,11 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* List model catalog offerings
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns
|
|
33
|
+
* Returns every provider offering of one base model, identified by `<developer>/<stem>` (for example `anthropic/claude-opus-4-7`). Deprecated models are never listed.
|
|
34
34
|
*/
|
|
35
35
|
export function modelCatalogListOfferings(
|
|
36
36
|
client: OrqCore,
|
|
37
|
-
request
|
|
37
|
+
request: operations.ModelCatalogListOfferingsRequest,
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
@@ -58,7 +58,7 @@ export function modelCatalogListOfferings(
|
|
|
58
58
|
|
|
59
59
|
async function $do(
|
|
60
60
|
client: OrqCore,
|
|
61
|
-
request
|
|
61
|
+
request: operations.ModelCatalogListOfferingsRequest,
|
|
62
62
|
options?: RequestOptions,
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
@@ -79,8 +79,7 @@ async function $do(
|
|
|
79
79
|
const parsed = safeParse(
|
|
80
80
|
request,
|
|
81
81
|
(value) =>
|
|
82
|
-
operations.ModelCatalogListOfferingsRequest$outboundSchema.
|
|
83
|
-
.parse(value),
|
|
82
|
+
operations.ModelCatalogListOfferingsRequest$outboundSchema.parse(value),
|
|
84
83
|
"Input validation failed",
|
|
85
84
|
);
|
|
86
85
|
if (!parsed.ok) {
|
|
@@ -89,27 +88,29 @@ async function $do(
|
|
|
89
88
|
const payload = parsed.value;
|
|
90
89
|
const body = null;
|
|
91
90
|
|
|
92
|
-
const
|
|
91
|
+
const pathParams = {
|
|
92
|
+
model: encodeSimple("model", payload.model, {
|
|
93
|
+
explode: false,
|
|
94
|
+
charEncoding: "percent",
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
const path = pathToFunc("/v2/model-catalog/{model}/offerings")(pathParams);
|
|
93
98
|
|
|
94
99
|
const query = encodeFormQuery({
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"input_modality": payload
|
|
99
|
-
"limit": payload
|
|
100
|
-
"location": payload
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"status": payload?.status,
|
|
110
|
-
"supported_parameter": payload?.supported_parameter,
|
|
111
|
-
"tier": payload?.tier,
|
|
112
|
-
"type": payload?.type,
|
|
100
|
+
"ending_before": payload.ending_before,
|
|
101
|
+
"endpoint": payload.endpoint,
|
|
102
|
+
"feature": payload.feature,
|
|
103
|
+
"input_modality": payload.input_modality,
|
|
104
|
+
"limit": payload.limit,
|
|
105
|
+
"location": payload.location,
|
|
106
|
+
"order": payload.order,
|
|
107
|
+
"output_modality": payload.output_modality,
|
|
108
|
+
"provider": payload.provider,
|
|
109
|
+
"search": payload.search,
|
|
110
|
+
"sort_by": payload.sort_by,
|
|
111
|
+
"starting_after": payload.starting_after,
|
|
112
|
+
"supported_parameter": payload.supported_parameter,
|
|
113
|
+
"tier": payload.tier,
|
|
113
114
|
});
|
|
114
115
|
|
|
115
116
|
const headers = new Headers(compactMap({
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.14.0-rc.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.14.0-rc.
|
|
61
|
+
sdkVersion: "4.14.0-rc.44",
|
|
62
|
+
genVersion: "2.932.9",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.14.0-rc.44 2.932.9 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -860,8 +860,8 @@ export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
|
|
|
860
860
|
> = z.object({
|
|
861
861
|
_id: z.string(),
|
|
862
862
|
description: z.string(),
|
|
863
|
-
created: z.string().default("2026-08-
|
|
864
|
-
updated: z.string().default("2026-08-
|
|
863
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
864
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
865
865
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
866
866
|
project_id: z.string().optional(),
|
|
867
867
|
guardrail_config: z.any().optional(),
|
|
@@ -46,8 +46,8 @@ export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
|
|
|
46
46
|
> = z.object({
|
|
47
47
|
_id: z.string(),
|
|
48
48
|
description: z.string(),
|
|
49
|
-
created: z.string().default("2026-08-
|
|
50
|
-
updated: z.string().default("2026-08-
|
|
49
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
50
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
51
51
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
52
52
|
project_id: z.string().optional(),
|
|
53
53
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-08-
|
|
36
|
-
updated: z.string().default("2026-08-
|
|
35
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
36
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -271,8 +271,8 @@ export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
|
|
|
271
271
|
> = z.object({
|
|
272
272
|
_id: z.string(),
|
|
273
273
|
description: z.string(),
|
|
274
|
-
created: z.string().default("2026-08-
|
|
275
|
-
updated: z.string().default("2026-08-
|
|
274
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
275
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
276
276
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
277
277
|
project_id: z.string().optional(),
|
|
278
278
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponsePython$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-08-
|
|
36
|
-
updated: z.string().default("2026-08-
|
|
35
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
36
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -54,8 +54,8 @@ export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
|
|
|
54
54
|
> = z.object({
|
|
55
55
|
_id: z.string(),
|
|
56
56
|
description: z.string(),
|
|
57
|
-
created: z.string().default("2026-08-
|
|
58
|
-
updated: z.string().default("2026-08-
|
|
57
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
58
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
59
59
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
60
60
|
project_id: z.string().optional(),
|
|
61
61
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-08-
|
|
36
|
-
updated: z.string().default("2026-08-
|
|
35
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
36
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -281,14 +281,12 @@ export * from "./memoryparam.js";
|
|
|
281
281
|
export * from "./memorystore.js";
|
|
282
282
|
export * from "./memorystoreembeddingconfig.js";
|
|
283
283
|
export * from "./model.js";
|
|
284
|
-
export * from "./modelartificialanalysis.js";
|
|
285
284
|
export * from "./modelbudgetscope.js";
|
|
286
285
|
export * from "./modelbudgetscoperestresponse.js";
|
|
287
286
|
export * from "./modelconfigurationresponse.js";
|
|
288
287
|
export * from "./modeldocument.js";
|
|
289
288
|
export * from "./modelmetadata.js";
|
|
290
289
|
export * from "./modelmodalities.js";
|
|
291
|
-
export * from "./modelparameter.js";
|
|
292
290
|
export * from "./modelparameterdocument.js";
|
|
293
291
|
export * from "./modelprovider.js";
|
|
294
292
|
export * from "./modelref.js";
|
|
@@ -7,18 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
ModelArtificialAnalysis,
|
|
12
|
-
ModelArtificialAnalysis$inboundSchema,
|
|
13
|
-
} from "./modelartificialanalysis.js";
|
|
14
10
|
import {
|
|
15
11
|
ModelModalities,
|
|
16
12
|
ModelModalities$inboundSchema,
|
|
17
13
|
} from "./modelmodalities.js";
|
|
18
|
-
import {
|
|
19
|
-
ModelParameter,
|
|
20
|
-
ModelParameter$inboundSchema,
|
|
21
|
-
} from "./modelparameter.js";
|
|
22
14
|
import { ModelProvider, ModelProvider$inboundSchema } from "./modelprovider.js";
|
|
23
15
|
|
|
24
16
|
/**
|
|
@@ -33,6 +25,14 @@ import { ModelProvider, ModelProvider$inboundSchema } from "./modelprovider.js";
|
|
|
33
25
|
*/
|
|
34
26
|
export type ModelPricing = {};
|
|
35
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Artificial Analysis benchmark scores keyed by evaluation name. Absent
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* when unavailable for this offering.
|
|
33
|
+
*/
|
|
34
|
+
export type ArtificialIntelligence = {};
|
|
35
|
+
|
|
36
36
|
export type Model = {
|
|
37
37
|
/**
|
|
38
38
|
* Catalog identifier, `<provider>/<model>` (for example `openai/gpt-4o`).
|
|
@@ -89,9 +89,9 @@ export type Model = {
|
|
|
89
89
|
*/
|
|
90
90
|
pricing?: ModelPricing | undefined;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* API parameter keys this offering accepts, snake_case (e.g. `temperature`, `max_tokens`).
|
|
93
93
|
*/
|
|
94
|
-
supportedParameters: Array<
|
|
94
|
+
supportedParameters: Array<string>;
|
|
95
95
|
/**
|
|
96
96
|
* Paid service tier names available to this offering.
|
|
97
97
|
*/
|
|
@@ -103,40 +103,31 @@ export type Model = {
|
|
|
103
103
|
* Absent when not applicable.
|
|
104
104
|
*/
|
|
105
105
|
contextWindow?: string | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* Maximum output size in tokens (string-encoded int64 in JSON). Absent
|
|
108
|
-
*
|
|
109
|
-
* @remarks
|
|
110
|
-
* when not applicable.
|
|
111
|
-
*/
|
|
112
|
-
maxOutputTokens?: string | undefined;
|
|
113
106
|
/**
|
|
114
107
|
* Regions this offering routes to, lowercased.
|
|
115
108
|
*/
|
|
116
109
|
location: Array<string>;
|
|
117
110
|
/**
|
|
118
|
-
* Artificial Analysis benchmark
|
|
111
|
+
* Artificial Analysis benchmark scores keyed by evaluation name. Absent
|
|
119
112
|
*
|
|
120
113
|
* @remarks
|
|
121
|
-
* offering.
|
|
122
|
-
*/
|
|
123
|
-
artificialIntelligence?: ModelArtificialAnalysis | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* Catalog lifecycle: active, preview or deprecated.
|
|
126
|
-
*/
|
|
127
|
-
status: string;
|
|
128
|
-
/**
|
|
129
|
-
* Task type: chat, completion, embedding, image, ...
|
|
114
|
+
* when unavailable for this offering.
|
|
130
115
|
*/
|
|
131
|
-
|
|
116
|
+
artificialIntelligence?: ArtificialIntelligence | undefined;
|
|
132
117
|
/**
|
|
133
|
-
*
|
|
118
|
+
* Normalized capability names this offering supports, snake_case and
|
|
119
|
+
*
|
|
120
|
+
* @remarks
|
|
121
|
+
* alphabetical (e.g. `json_mode`, `tool_calling`, `vision`, `web_search`).
|
|
134
122
|
*/
|
|
135
|
-
|
|
123
|
+
features: Array<string>;
|
|
136
124
|
/**
|
|
137
|
-
*
|
|
125
|
+
* True when this offering is deprecated, whether or not a deprecation
|
|
126
|
+
*
|
|
127
|
+
* @remarks
|
|
128
|
+
* date is known. `deprecation` carries the date when one is announced.
|
|
138
129
|
*/
|
|
139
|
-
|
|
130
|
+
deprecated: boolean;
|
|
140
131
|
};
|
|
141
132
|
|
|
142
133
|
/** @internal */
|
|
@@ -156,6 +147,23 @@ export function modelPricingFromJSON(
|
|
|
156
147
|
);
|
|
157
148
|
}
|
|
158
149
|
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const ArtificialIntelligence$inboundSchema: z.ZodType<
|
|
152
|
+
ArtificialIntelligence,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
unknown
|
|
155
|
+
> = z.object({});
|
|
156
|
+
|
|
157
|
+
export function artificialIntelligenceFromJSON(
|
|
158
|
+
jsonString: string,
|
|
159
|
+
): SafeParseResult<ArtificialIntelligence, SDKValidationError> {
|
|
160
|
+
return safeParse(
|
|
161
|
+
jsonString,
|
|
162
|
+
(x) => ArtificialIntelligence$inboundSchema.parse(JSON.parse(x)),
|
|
163
|
+
`Failed to parse 'ArtificialIntelligence' from JSON`,
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
159
167
|
/** @internal */
|
|
160
168
|
export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
|
|
161
169
|
.object({
|
|
@@ -169,26 +177,21 @@ export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
|
|
|
169
177
|
modalities: ModelModalities$inboundSchema,
|
|
170
178
|
offering_of: z.string(),
|
|
171
179
|
pricing: z.lazy(() => ModelPricing$inboundSchema).optional(),
|
|
172
|
-
supported_parameters: z.array(
|
|
180
|
+
supported_parameters: z.array(z.string()),
|
|
173
181
|
supported_tiers: z.array(z.string()),
|
|
174
182
|
context_window: z.string().optional(),
|
|
175
|
-
max_output_tokens: z.string().optional(),
|
|
176
183
|
location: z.array(z.string()),
|
|
177
|
-
artificial_intelligence:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
release_date: z.string(),
|
|
184
|
+
artificial_intelligence: z.lazy(() => ArtificialIntelligence$inboundSchema)
|
|
185
|
+
.optional(),
|
|
186
|
+
features: z.array(z.string()),
|
|
187
|
+
deprecated: z.boolean(),
|
|
182
188
|
}).transform((v) => {
|
|
183
189
|
return remap$(v, {
|
|
184
190
|
"offering_of": "offeringOf",
|
|
185
191
|
"supported_parameters": "supportedParameters",
|
|
186
192
|
"supported_tiers": "supportedTiers",
|
|
187
193
|
"context_window": "contextWindow",
|
|
188
|
-
"max_output_tokens": "maxOutputTokens",
|
|
189
194
|
"artificial_intelligence": "artificialIntelligence",
|
|
190
|
-
"knowledge_cutoff": "knowledgeCutoff",
|
|
191
|
-
"release_date": "releaseDate",
|
|
192
195
|
});
|
|
193
196
|
});
|
|
194
197
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -13,22 +12,10 @@ export type ModelProvider = {
|
|
|
13
12
|
* Catalog provider key (openai, anthropic, aws, ...).
|
|
14
13
|
*/
|
|
15
14
|
id: string;
|
|
16
|
-
/**
|
|
17
|
-
* Provider display name.
|
|
18
|
-
*/
|
|
19
|
-
name: string;
|
|
20
15
|
/**
|
|
21
16
|
* Absolute URL of the provider logo. Empty when no logo is known.
|
|
22
17
|
*/
|
|
23
18
|
logo: string;
|
|
24
|
-
/**
|
|
25
|
-
* Provider documentation URL.
|
|
26
|
-
*/
|
|
27
|
-
docsUrl: string;
|
|
28
|
-
/**
|
|
29
|
-
* Provider pricing page URL.
|
|
30
|
-
*/
|
|
31
|
-
pricingUrl: string;
|
|
32
19
|
};
|
|
33
20
|
|
|
34
21
|
/** @internal */
|
|
@@ -38,15 +25,7 @@ export const ModelProvider$inboundSchema: z.ZodType<
|
|
|
38
25
|
unknown
|
|
39
26
|
> = z.object({
|
|
40
27
|
id: z.string(),
|
|
41
|
-
name: z.string(),
|
|
42
28
|
logo: z.string(),
|
|
43
|
-
docs_url: z.string(),
|
|
44
|
-
pricing_url: z.string(),
|
|
45
|
-
}).transform((v) => {
|
|
46
|
-
return remap$(v, {
|
|
47
|
-
"docs_url": "docsUrl",
|
|
48
|
-
"pricing_url": "pricingUrl",
|
|
49
|
-
});
|
|
50
29
|
});
|
|
51
30
|
|
|
52
31
|
export function modelProviderFromJSON(
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m0hnkjsj3g3j7jw07k3chvcw"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -151,7 +151,7 @@ export const CreateAnnotationQueueResponseBody$inboundSchema: z.ZodType<
|
|
|
151
151
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
152
152
|
.optional(),
|
|
153
153
|
updated: z.string().datetime({ offset: true }).default(
|
|
154
|
-
"2026-08-
|
|
154
|
+
"2026-08-21T08:04:33.837Z",
|
|
155
155
|
).transform(v => new Date(v)),
|
|
156
156
|
}).transform((v) => {
|
|
157
157
|
return remap$(v, {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-08-
|
|
141
|
+
"2026-08-21T08:04:33.837Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2726,7 +2726,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
|
|
|
2726
2726
|
explanation: z.string().optional(),
|
|
2727
2727
|
reviewed_by_id: z.string(),
|
|
2728
2728
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2729
|
-
"2026-08-
|
|
2729
|
+
"2026-08-21T08:04:42.641Z",
|
|
2730
2730
|
).transform(v => new Date(v)),
|
|
2731
2731
|
type: z.literal("string_array"),
|
|
2732
2732
|
values: z.array(z.string()),
|
|
@@ -2816,7 +2816,7 @@ export const CreateDatasetItemEvaluations3$inboundSchema: z.ZodType<
|
|
|
2816
2816
|
explanation: z.string().optional(),
|
|
2817
2817
|
reviewed_by_id: z.string(),
|
|
2818
2818
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2819
|
-
"2026-08-
|
|
2819
|
+
"2026-08-21T08:04:42.640Z",
|
|
2820
2820
|
).transform(v => new Date(v)),
|
|
2821
2821
|
type: z.literal("boolean"),
|
|
2822
2822
|
value: z.boolean(),
|
|
@@ -2901,7 +2901,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2901
2901
|
explanation: z.string().optional(),
|
|
2902
2902
|
reviewed_by_id: z.string(),
|
|
2903
2903
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2904
|
-
"2026-08-
|
|
2904
|
+
"2026-08-21T08:04:42.640Z",
|
|
2905
2905
|
).transform(v => new Date(v)),
|
|
2906
2906
|
type: z.literal("number"),
|
|
2907
2907
|
value: z.number(),
|
|
@@ -2987,7 +2987,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2987
2987
|
explanation: z.string().optional(),
|
|
2988
2988
|
reviewed_by_id: z.string(),
|
|
2989
2989
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2990
|
-
"2026-08-
|
|
2990
|
+
"2026-08-21T08:04:42.639Z",
|
|
2991
2991
|
).transform(v => new Date(v)),
|
|
2992
2992
|
type: z.literal("string"),
|
|
2993
2993
|
value: z.string(),
|
|
@@ -3074,7 +3074,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
3074
3074
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3075
3075
|
.optional(),
|
|
3076
3076
|
updated: z.string().datetime({ offset: true }).default(
|
|
3077
|
-
"2026-08-
|
|
3077
|
+
"2026-08-21T08:04:33.837Z",
|
|
3078
3078
|
).transform(v => new Date(v)),
|
|
3079
3079
|
}).transform((v) => {
|
|
3080
3080
|
return remap$(v, {
|
|
@@ -1573,7 +1573,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1573
1573
|
z.ZodTypeDef,
|
|
1574
1574
|
unknown
|
|
1575
1575
|
> = z.object({
|
|
1576
|
-
_id: z.string().default("
|
|
1576
|
+
_id: z.string().default("tool_01M0HNKJZ1NDM09X9QZ4VCQWY2"),
|
|
1577
1577
|
path: z.string(),
|
|
1578
1578
|
key: z.string(),
|
|
1579
1579
|
display_name: z.string().optional(),
|
|
@@ -1760,7 +1760,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1760
1760
|
z.ZodTypeDef,
|
|
1761
1761
|
unknown
|
|
1762
1762
|
> = z.object({
|
|
1763
|
-
_id: z.string().default("
|
|
1763
|
+
_id: z.string().default("tool_01M0HNKJZ0BG5X9VXYW31F4MF6"),
|
|
1764
1764
|
path: z.string(),
|
|
1765
1765
|
key: z.string(),
|
|
1766
1766
|
display_name: z.string().optional(),
|
|
@@ -1853,7 +1853,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1853
1853
|
z.ZodTypeDef,
|
|
1854
1854
|
unknown
|
|
1855
1855
|
> = z.object({
|
|
1856
|
-
_id: z.string().default("
|
|
1856
|
+
_id: z.string().default("tool_01M0HNKJYZCVH62060G3P3EB65"),
|
|
1857
1857
|
path: z.string(),
|
|
1858
1858
|
key: z.string(),
|
|
1859
1859
|
display_name: z.string().optional(),
|
|
@@ -1954,7 +1954,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1954
1954
|
z.ZodTypeDef,
|
|
1955
1955
|
unknown
|
|
1956
1956
|
> = z.object({
|
|
1957
|
-
_id: z.string().default("
|
|
1957
|
+
_id: z.string().default("tool_01M0HNKJYYB1SW8MG532XWAAKJ"),
|
|
1958
1958
|
path: z.string(),
|
|
1959
1959
|
key: z.string(),
|
|
1960
1960
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M0HNKJYT1GFGH5SW7Q1RKZYM"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M0HNKJYRZ6FBVP199MFXHZ6A"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M0HNKJYQQAX6YSCVFPWSA4QW"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M0HNKJYP40KY354AF3S5YCFS"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -846,8 +846,8 @@ export const BedrockGuardrail$inboundSchema: z.ZodType<
|
|
|
846
846
|
display_name: z.string(),
|
|
847
847
|
description: z.string(),
|
|
848
848
|
owner: z.string(),
|
|
849
|
-
created: z.string().default("2026-08-
|
|
850
|
-
updated: z.string().default("2026-08-
|
|
849
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
850
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
851
851
|
created_by_id: z.nullable(z.string()).optional(),
|
|
852
852
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
853
853
|
domain_id: z.string(),
|
|
@@ -949,8 +949,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
949
949
|
display_name: z.string(),
|
|
950
950
|
description: z.string(),
|
|
951
951
|
owner: z.string(),
|
|
952
|
-
created: z.string().default("2026-08-
|
|
953
|
-
updated: z.string().default("2026-08-
|
|
952
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
953
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
954
954
|
created_by_id: z.nullable(z.string()).optional(),
|
|
955
955
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
956
956
|
domain_id: z.string(),
|
|
@@ -1046,8 +1046,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
1046
1046
|
display_name: z.string(),
|
|
1047
1047
|
description: z.string(),
|
|
1048
1048
|
owner: z.string(),
|
|
1049
|
-
created: z.string().default("2026-08-
|
|
1050
|
-
updated: z.string().default("2026-08-
|
|
1049
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
1050
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
1051
1051
|
created_by_id: z.nullable(z.string()).optional(),
|
|
1052
1052
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1053
1053
|
domain_id: z.string(),
|
|
@@ -1144,8 +1144,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
1144
1144
|
display_name: z.string(),
|
|
1145
1145
|
description: z.string(),
|
|
1146
1146
|
owner: z.string(),
|
|
1147
|
-
created: z.string().default("2026-08-
|
|
1148
|
-
updated: z.string().default("2026-08-
|
|
1147
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
1148
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
1149
1149
|
created_by_id: z.nullable(z.string()).optional(),
|
|
1150
1150
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1151
1151
|
domain_id: z.string(),
|
|
@@ -1228,8 +1228,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
|
|
|
1228
1228
|
display_name: z.string(),
|
|
1229
1229
|
description: z.string(),
|
|
1230
1230
|
owner: z.string(),
|
|
1231
|
-
created: z.string().default("2026-08-
|
|
1232
|
-
updated: z.string().default("2026-08-
|
|
1231
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
1232
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
1233
1233
|
created_by_id: z.nullable(z.string()).optional(),
|
|
1234
1234
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1235
1235
|
domain_id: z.string(),
|
|
@@ -1337,8 +1337,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
1337
1337
|
display_name: z.string(),
|
|
1338
1338
|
description: z.string(),
|
|
1339
1339
|
owner: z.string(),
|
|
1340
|
-
created: z.string().default("2026-08-
|
|
1341
|
-
updated: z.string().default("2026-08-
|
|
1340
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
1341
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
1342
1342
|
created_by_id: z.nullable(z.string()).optional(),
|
|
1343
1343
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1344
1344
|
domain_id: z.string(),
|
|
@@ -2056,8 +2056,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2056
2056
|
display_name: z.string(),
|
|
2057
2057
|
description: z.string(),
|
|
2058
2058
|
owner: z.string(),
|
|
2059
|
-
created: z.string().default("2026-08-
|
|
2060
|
-
updated: z.string().default("2026-08-
|
|
2059
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
2060
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
2061
2061
|
created_by_id: z.nullable(z.string()).optional(),
|
|
2062
2062
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2063
2063
|
domain_id: z.string(),
|
|
@@ -2726,8 +2726,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
2726
2726
|
display_name: z.string(),
|
|
2727
2727
|
description: z.string(),
|
|
2728
2728
|
owner: z.string(),
|
|
2729
|
-
created: z.string().default("2026-08-
|
|
2730
|
-
updated: z.string().default("2026-08-
|
|
2729
|
+
created: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
2730
|
+
updated: z.string().default("2026-08-21T08:04:35.257Z"),
|
|
2731
2731
|
created_by_id: z.nullable(z.string()).optional(),
|
|
2732
2732
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2733
2733
|
domain_id: z.string(),
|