@orq-ai/node 4.14.0-rc.42 → 4.14.0-rc.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -35
- package/funcs/modelCatalogGet.d.ts +18 -0
- package/funcs/modelCatalogGet.d.ts.map +1 -0
- package/funcs/modelCatalogGet.js +121 -0
- package/funcs/modelCatalogGet.js.map +1 -0
- package/funcs/modelCatalogList.d.ts +18 -0
- package/funcs/modelCatalogList.d.ts.map +1 -0
- package/funcs/modelCatalogList.js +135 -0
- package/funcs/modelCatalogList.js.map +1 -0
- package/funcs/modelCatalogListOfferings.d.ts +18 -0
- package/funcs/modelCatalogListOfferings.d.ts.map +1 -0
- package/funcs/modelCatalogListOfferings.js +137 -0
- package/funcs/modelCatalogListOfferings.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- 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/getmodelcatalogmodelresponse.d.ts +14 -0
- package/models/components/getmodelcatalogmodelresponse.d.ts.map +1 -0
- package/models/components/getmodelcatalogmodelresponse.js +51 -0
- package/models/components/getmodelcatalogmodelresponse.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listmodelcatalogofferingsresponse.d.ts +25 -0
- package/models/components/listmodelcatalogofferingsresponse.d.ts.map +1 -0
- package/models/components/listmodelcatalogofferingsresponse.js +58 -0
- package/models/components/listmodelcatalogofferingsresponse.js.map +1 -0
- package/models/components/listmodelcatalogresponse.d.ts +25 -0
- package/models/components/listmodelcatalogresponse.d.ts.map +1 -0
- package/models/components/listmodelcatalogresponse.js +58 -0
- package/models/components/listmodelcatalogresponse.js.map +1 -0
- package/models/components/model.d.ts +130 -0
- package/models/components/model.d.ts.map +1 -0
- package/models/components/model.js +92 -0
- package/models/components/model.js.map +1 -0
- package/models/components/modelartificialanalysis.d.ts +46 -0
- package/models/components/modelartificialanalysis.d.ts.map +1 -0
- package/models/components/modelartificialanalysis.js +69 -0
- package/models/components/modelartificialanalysis.js.map +1 -0
- package/models/components/modelmodalities.d.ts +17 -0
- package/models/components/modelmodalities.d.ts.map +1 -0
- package/models/components/modelmodalities.js +51 -0
- package/models/components/modelmodalities.js.map +1 -0
- package/models/components/modelparameter.d.ts +25 -0
- package/models/components/modelparameter.d.ts.map +1 -0
- package/models/components/modelparameter.js +53 -0
- package/models/components/modelparameter.js.map +1 -0
- package/models/components/modelprovider.d.ts +29 -0
- package/models/components/modelprovider.d.ts.map +1 -0
- package/models/components/modelprovider.js +60 -0
- package/models/components/modelprovider.js.map +1 -0
- 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/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/modelcatalogget.d.ts +15 -0
- package/models/operations/modelcatalogget.d.ts.map +1 -0
- package/models/operations/modelcatalogget.js +49 -0
- package/models/operations/modelcatalogget.js.map +1 -0
- package/models/operations/modelcataloglist.d.ts +117 -0
- package/models/operations/modelcataloglist.d.ts.map +1 -0
- package/models/operations/modelcataloglist.js +76 -0
- package/models/operations/modelcataloglist.js.map +1 -0
- package/models/operations/modelcataloglistofferings.d.ts +126 -0
- package/models/operations/modelcataloglistofferings.d.ts.map +1 -0
- package/models/operations/modelcataloglistofferings.js +77 -0
- package/models/operations/modelcataloglistofferings.js.map +1 -0
- 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 +3 -3
- package/sdk/modelcatalog.d.ts +27 -0
- package/sdk/modelcatalog.d.ts.map +1 -0
- package/sdk/modelcatalog.js +42 -0
- package/sdk/modelcatalog.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/modelCatalogGet.ts +168 -0
- package/src/funcs/modelCatalogList.ts +184 -0
- package/src/funcs/modelCatalogListOfferings.ts +186 -0
- package/src/lib/config.ts +2 -2
- 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/getmodelcatalogmodelresponse.ts +35 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/listmodelcatalogofferingsresponse.ts +53 -0
- package/src/models/components/listmodelcatalogresponse.ts +53 -0
- package/src/models/components/model.ts +203 -0
- package/src/models/components/modelartificialanalysis.ts +95 -0
- package/src/models/components/modelmodalities.ts +39 -0
- package/src/models/components/modelparameter.ts +49 -0
- package/src/models/components/modelprovider.ts +60 -0
- 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/index.ts +3 -0
- 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/modelcatalogget.ts +34 -0
- package/src/models/operations/modelcataloglist.ts +163 -0
- package/src/models/operations/modelcataloglistofferings.ts +175 -0
- 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 +64 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -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-20T18:41:42.748Z"),
|
|
864
|
+
updated: z.string().default("2026-08-20T18:41:42.749Z"),
|
|
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-20T18:41:42.748Z"),
|
|
50
|
+
updated: z.string().default("2026-08-20T18:41:42.749Z"),
|
|
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-20T18:41:42.748Z"),
|
|
36
|
+
updated: z.string().default("2026-08-20T18:41:42.749Z"),
|
|
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-20T18:41:42.748Z"),
|
|
275
|
+
updated: z.string().default("2026-08-20T18:41:42.749Z"),
|
|
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-20T18:41:42.748Z"),
|
|
36
|
+
updated: z.string().default("2026-08-20T18:41:42.749Z"),
|
|
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-20T18:41:42.748Z"),
|
|
58
|
+
updated: z.string().default("2026-08-20T18:41:42.749Z"),
|
|
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-20T18:41:42.748Z"),
|
|
36
|
+
updated: z.string().default("2026-08-20T18:41:42.749Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Model, Model$inboundSchema } from "./model.js";
|
|
10
|
+
|
|
11
|
+
export type GetModelCatalogModelResponse = {
|
|
12
|
+
/**
|
|
13
|
+
* Requested catalog entry.
|
|
14
|
+
*/
|
|
15
|
+
model: Model;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const GetModelCatalogModelResponse$inboundSchema: z.ZodType<
|
|
20
|
+
GetModelCatalogModelResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
model: Model$inboundSchema,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function getModelCatalogModelResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<GetModelCatalogModelResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => GetModelCatalogModelResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'GetModelCatalogModelResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -190,6 +190,7 @@ export * from "./getlogcontextrequest.js";
|
|
|
190
190
|
export * from "./getlogcontextresponse.js";
|
|
191
191
|
export * from "./getlogresponse.js";
|
|
192
192
|
export * from "./getmanagementkeyresponse.js";
|
|
193
|
+
export * from "./getmodelcatalogmodelresponse.js";
|
|
193
194
|
export * from "./getnotifierresponse.js";
|
|
194
195
|
export * from "./getprojectresponse.js";
|
|
195
196
|
export * from "./getskillresponse.js";
|
|
@@ -246,6 +247,8 @@ export * from "./listmanagementkeysresponse.js";
|
|
|
246
247
|
export * from "./listmemoriesresponse.js";
|
|
247
248
|
export * from "./listmemorydocumentsresponse.js";
|
|
248
249
|
export * from "./listmemorystoresresponse.js";
|
|
250
|
+
export * from "./listmodelcatalogofferingsresponse.js";
|
|
251
|
+
export * from "./listmodelcatalogresponse.js";
|
|
249
252
|
export * from "./listnotifiersresponse.js";
|
|
250
253
|
export * from "./listprojectsresponse.js";
|
|
251
254
|
export * from "./listroutingrulesresponse.js";
|
|
@@ -277,12 +280,17 @@ export * from "./memorydocument.js";
|
|
|
277
280
|
export * from "./memoryparam.js";
|
|
278
281
|
export * from "./memorystore.js";
|
|
279
282
|
export * from "./memorystoreembeddingconfig.js";
|
|
283
|
+
export * from "./model.js";
|
|
284
|
+
export * from "./modelartificialanalysis.js";
|
|
280
285
|
export * from "./modelbudgetscope.js";
|
|
281
286
|
export * from "./modelbudgetscoperestresponse.js";
|
|
282
287
|
export * from "./modelconfigurationresponse.js";
|
|
283
288
|
export * from "./modeldocument.js";
|
|
284
289
|
export * from "./modelmetadata.js";
|
|
290
|
+
export * from "./modelmodalities.js";
|
|
291
|
+
export * from "./modelparameter.js";
|
|
285
292
|
export * from "./modelparameterdocument.js";
|
|
293
|
+
export * from "./modelprovider.js";
|
|
286
294
|
export * from "./modelref.js";
|
|
287
295
|
export * from "./modelsconfig.js";
|
|
288
296
|
export * from "./modelsharingconfig.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { Model, Model$inboundSchema } from "./model.js";
|
|
11
|
+
|
|
12
|
+
export type ListModelCatalogOfferingsResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Object discriminator for list responses; always `list`.
|
|
15
|
+
*/
|
|
16
|
+
object: string;
|
|
17
|
+
/**
|
|
18
|
+
* Page of catalog offerings, ordered by `offering_of` then `id`.
|
|
19
|
+
*/
|
|
20
|
+
data: Array<Model>;
|
|
21
|
+
/**
|
|
22
|
+
* Whether more offerings are available in the selected pagination
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* direction.
|
|
26
|
+
*/
|
|
27
|
+
hasMore: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ListModelCatalogOfferingsResponse$inboundSchema: z.ZodType<
|
|
32
|
+
ListModelCatalogOfferingsResponse,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
object: z.string(),
|
|
37
|
+
data: z.array(Model$inboundSchema),
|
|
38
|
+
has_more: z.boolean(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
"has_more": "hasMore",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function listModelCatalogOfferingsResponseFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<ListModelCatalogOfferingsResponse, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => ListModelCatalogOfferingsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'ListModelCatalogOfferingsResponse' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { Model, Model$inboundSchema } from "./model.js";
|
|
11
|
+
|
|
12
|
+
export type ListModelCatalogResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Object discriminator for list responses; always `list`.
|
|
15
|
+
*/
|
|
16
|
+
object: string;
|
|
17
|
+
/**
|
|
18
|
+
* Page of catalog entries.
|
|
19
|
+
*/
|
|
20
|
+
data: Array<Model>;
|
|
21
|
+
/**
|
|
22
|
+
* Whether more entries are available in the selected pagination
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* direction.
|
|
26
|
+
*/
|
|
27
|
+
hasMore: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ListModelCatalogResponse$inboundSchema: z.ZodType<
|
|
32
|
+
ListModelCatalogResponse,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
object: z.string(),
|
|
37
|
+
data: z.array(Model$inboundSchema),
|
|
38
|
+
has_more: z.boolean(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
"has_more": "hasMore",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function listModelCatalogResponseFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<ListModelCatalogResponse, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => ListModelCatalogResponse$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'ListModelCatalogResponse' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ModelArtificialAnalysis,
|
|
12
|
+
ModelArtificialAnalysis$inboundSchema,
|
|
13
|
+
} from "./modelartificialanalysis.js";
|
|
14
|
+
import {
|
|
15
|
+
ModelModalities,
|
|
16
|
+
ModelModalities$inboundSchema,
|
|
17
|
+
} from "./modelmodalities.js";
|
|
18
|
+
import {
|
|
19
|
+
ModelParameter,
|
|
20
|
+
ModelParameter$inboundSchema,
|
|
21
|
+
} from "./modelparameter.js";
|
|
22
|
+
import { ModelProvider, ModelProvider$inboundSchema } from "./modelprovider.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Resolved commercial pricing, including service-tier variants. Each
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* variant carries a `when` CEL condition string evaluated against
|
|
29
|
+
* `input_tokens`, `output_tokens`, `total_tokens` and `tier`; all
|
|
30
|
+
* variants whose condition is true are merged onto the base pricing in
|
|
31
|
+
* order, later variants winning per field. Absent when this offering has
|
|
32
|
+
* no representable token-based pricing.
|
|
33
|
+
*/
|
|
34
|
+
export type ModelPricing = {};
|
|
35
|
+
|
|
36
|
+
export type Model = {
|
|
37
|
+
/**
|
|
38
|
+
* Catalog identifier, `<provider>/<model>` (for example `openai/gpt-4o`).
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* When orq listed this offering, Unix seconds (string-encoded int64 in
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* JSON).
|
|
46
|
+
*/
|
|
47
|
+
created: string;
|
|
48
|
+
/**
|
|
49
|
+
* When this offering stops being served, Unix seconds (string-encoded
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* int64 in JSON): orq's own sunset date if one is set, otherwise the
|
|
53
|
+
* developer's announced deprecation date. Absent when neither is set.
|
|
54
|
+
*/
|
|
55
|
+
deprecation?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Display name shown in the orq model garden.
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Short model description.
|
|
62
|
+
*/
|
|
63
|
+
description: string;
|
|
64
|
+
/**
|
|
65
|
+
* Provider that serves this offering.
|
|
66
|
+
*/
|
|
67
|
+
provider: ModelProvider;
|
|
68
|
+
/**
|
|
69
|
+
* API endpoints this offering exposes (chat, batch, ...).
|
|
70
|
+
*/
|
|
71
|
+
endpoints: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Content modalities this offering consumes and produces.
|
|
74
|
+
*/
|
|
75
|
+
modalities: ModelModalities;
|
|
76
|
+
/**
|
|
77
|
+
* Provider-independent model reference this offering serves, `<developer>/<stem>`.
|
|
78
|
+
*/
|
|
79
|
+
offeringOf: string;
|
|
80
|
+
/**
|
|
81
|
+
* Resolved commercial pricing, including service-tier variants. Each
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
* variant carries a `when` CEL condition string evaluated against
|
|
85
|
+
* `input_tokens`, `output_tokens`, `total_tokens` and `tier`; all
|
|
86
|
+
* variants whose condition is true are merged onto the base pricing in
|
|
87
|
+
* order, later variants winning per field. Absent when this offering has
|
|
88
|
+
* no representable token-based pricing.
|
|
89
|
+
*/
|
|
90
|
+
pricing?: ModelPricing | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Playground and API parameters this offering exposes.
|
|
93
|
+
*/
|
|
94
|
+
supportedParameters: Array<ModelParameter>;
|
|
95
|
+
/**
|
|
96
|
+
* Paid service tier names available to this offering.
|
|
97
|
+
*/
|
|
98
|
+
supportedTiers: Array<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Maximum input context size in tokens (string-encoded int64 in JSON).
|
|
101
|
+
*
|
|
102
|
+
* @remarks
|
|
103
|
+
* Absent when not applicable.
|
|
104
|
+
*/
|
|
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
|
+
/**
|
|
114
|
+
* Regions this offering routes to, lowercased.
|
|
115
|
+
*/
|
|
116
|
+
location: Array<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Artificial Analysis benchmark data. Absent when unavailable for this
|
|
119
|
+
*
|
|
120
|
+
* @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, ...
|
|
130
|
+
*/
|
|
131
|
+
type: string;
|
|
132
|
+
/**
|
|
133
|
+
* Training-data cutoff (YYYY-MM). Empty when unset.
|
|
134
|
+
*/
|
|
135
|
+
knowledgeCutoff: string;
|
|
136
|
+
/**
|
|
137
|
+
* Public release date (YYYY-MM-DD). Empty when unset.
|
|
138
|
+
*/
|
|
139
|
+
releaseDate: string;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const ModelPricing$inboundSchema: z.ZodType<
|
|
144
|
+
ModelPricing,
|
|
145
|
+
z.ZodTypeDef,
|
|
146
|
+
unknown
|
|
147
|
+
> = z.object({});
|
|
148
|
+
|
|
149
|
+
export function modelPricingFromJSON(
|
|
150
|
+
jsonString: string,
|
|
151
|
+
): SafeParseResult<ModelPricing, SDKValidationError> {
|
|
152
|
+
return safeParse(
|
|
153
|
+
jsonString,
|
|
154
|
+
(x) => ModelPricing$inboundSchema.parse(JSON.parse(x)),
|
|
155
|
+
`Failed to parse 'ModelPricing' from JSON`,
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
|
|
161
|
+
.object({
|
|
162
|
+
id: z.string(),
|
|
163
|
+
created: z.string(),
|
|
164
|
+
deprecation: z.string().optional(),
|
|
165
|
+
name: z.string(),
|
|
166
|
+
description: z.string(),
|
|
167
|
+
provider: ModelProvider$inboundSchema,
|
|
168
|
+
endpoints: z.array(z.string()),
|
|
169
|
+
modalities: ModelModalities$inboundSchema,
|
|
170
|
+
offering_of: z.string(),
|
|
171
|
+
pricing: z.lazy(() => ModelPricing$inboundSchema).optional(),
|
|
172
|
+
supported_parameters: z.array(ModelParameter$inboundSchema),
|
|
173
|
+
supported_tiers: z.array(z.string()),
|
|
174
|
+
context_window: z.string().optional(),
|
|
175
|
+
max_output_tokens: z.string().optional(),
|
|
176
|
+
location: z.array(z.string()),
|
|
177
|
+
artificial_intelligence: ModelArtificialAnalysis$inboundSchema.optional(),
|
|
178
|
+
status: z.string(),
|
|
179
|
+
type: z.string(),
|
|
180
|
+
knowledge_cutoff: z.string(),
|
|
181
|
+
release_date: z.string(),
|
|
182
|
+
}).transform((v) => {
|
|
183
|
+
return remap$(v, {
|
|
184
|
+
"offering_of": "offeringOf",
|
|
185
|
+
"supported_parameters": "supportedParameters",
|
|
186
|
+
"supported_tiers": "supportedTiers",
|
|
187
|
+
"context_window": "contextWindow",
|
|
188
|
+
"max_output_tokens": "maxOutputTokens",
|
|
189
|
+
"artificial_intelligence": "artificialIntelligence",
|
|
190
|
+
"knowledge_cutoff": "knowledgeCutoff",
|
|
191
|
+
"release_date": "releaseDate",
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
export function modelFromJSON(
|
|
196
|
+
jsonString: string,
|
|
197
|
+
): SafeParseResult<Model, SDKValidationError> {
|
|
198
|
+
return safeParse(
|
|
199
|
+
jsonString,
|
|
200
|
+
(x) => Model$inboundSchema.parse(JSON.parse(x)),
|
|
201
|
+
`Failed to parse 'Model' from JSON`,
|
|
202
|
+
);
|
|
203
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Benchmark scores by evaluation key. A `null` value means the
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* evaluation exists but is unmeasured for this model.
|
|
16
|
+
*/
|
|
17
|
+
export type Evaluations = {};
|
|
18
|
+
|
|
19
|
+
export type ModelArtificialAnalysis = {
|
|
20
|
+
/**
|
|
21
|
+
* Artificial Analysis model slug.
|
|
22
|
+
*/
|
|
23
|
+
slug: string;
|
|
24
|
+
/**
|
|
25
|
+
* Artificial Analysis intelligence index. Absent when unmeasured.
|
|
26
|
+
*/
|
|
27
|
+
intelligenceIndex?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Benchmark scores by evaluation key. A `null` value means the
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* evaluation exists but is unmeasured for this model.
|
|
33
|
+
*/
|
|
34
|
+
evaluations?: Evaluations | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Artificial Analysis recorded release date. Empty when unknown.
|
|
37
|
+
*/
|
|
38
|
+
releaseDate?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Measured output throughput, tokens per second. Absent when unmeasured.
|
|
41
|
+
*/
|
|
42
|
+
medianOutputTokensPerSecond?: number | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Measured time to first token, seconds. Absent when unmeasured.
|
|
45
|
+
*/
|
|
46
|
+
medianTimeToFirstTokenSeconds?: number | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const Evaluations$inboundSchema: z.ZodType<
|
|
51
|
+
Evaluations,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
unknown
|
|
54
|
+
> = z.object({});
|
|
55
|
+
|
|
56
|
+
export function evaluationsFromJSON(
|
|
57
|
+
jsonString: string,
|
|
58
|
+
): SafeParseResult<Evaluations, SDKValidationError> {
|
|
59
|
+
return safeParse(
|
|
60
|
+
jsonString,
|
|
61
|
+
(x) => Evaluations$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'Evaluations' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const ModelArtificialAnalysis$inboundSchema: z.ZodType<
|
|
68
|
+
ModelArtificialAnalysis,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
unknown
|
|
71
|
+
> = z.object({
|
|
72
|
+
slug: z.string(),
|
|
73
|
+
intelligence_index: z.number().optional(),
|
|
74
|
+
evaluations: z.lazy(() => Evaluations$inboundSchema).optional(),
|
|
75
|
+
release_date: z.string().optional(),
|
|
76
|
+
median_output_tokens_per_second: z.number().optional(),
|
|
77
|
+
median_time_to_first_token_seconds: z.number().optional(),
|
|
78
|
+
}).transform((v) => {
|
|
79
|
+
return remap$(v, {
|
|
80
|
+
"intelligence_index": "intelligenceIndex",
|
|
81
|
+
"release_date": "releaseDate",
|
|
82
|
+
"median_output_tokens_per_second": "medianOutputTokensPerSecond",
|
|
83
|
+
"median_time_to_first_token_seconds": "medianTimeToFirstTokenSeconds",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export function modelArtificialAnalysisFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<ModelArtificialAnalysis, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => ModelArtificialAnalysis$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'ModelArtificialAnalysis' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ModelModalities = {
|
|
11
|
+
/**
|
|
12
|
+
* Modalities this offering accepts as input.
|
|
13
|
+
*/
|
|
14
|
+
input: Array<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Modalities this offering produces as output.
|
|
17
|
+
*/
|
|
18
|
+
output: Array<string>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ModelModalities$inboundSchema: z.ZodType<
|
|
23
|
+
ModelModalities,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
input: z.array(z.string()),
|
|
28
|
+
output: z.array(z.string()),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function modelModalitiesFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<ModelModalities, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => ModelModalities$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'ModelModalities' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ModelParameter = {
|
|
11
|
+
/**
|
|
12
|
+
* Display name shown in the playground.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* API parameter key (e.g. `temperature`, `maxTokens`).
|
|
17
|
+
*/
|
|
18
|
+
parameter: string;
|
|
19
|
+
/**
|
|
20
|
+
* Widget type: slider, select, toggle or text.
|
|
21
|
+
*/
|
|
22
|
+
type: string;
|
|
23
|
+
/**
|
|
24
|
+
* Help text shown to playground users.
|
|
25
|
+
*/
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ModelParameter$inboundSchema: z.ZodType<
|
|
31
|
+
ModelParameter,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
name: z.string(),
|
|
36
|
+
parameter: z.string(),
|
|
37
|
+
type: z.string(),
|
|
38
|
+
description: z.string(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function modelParameterFromJSON(
|
|
42
|
+
jsonString: string,
|
|
43
|
+
): SafeParseResult<ModelParameter, SDKValidationError> {
|
|
44
|
+
return safeParse(
|
|
45
|
+
jsonString,
|
|
46
|
+
(x) => ModelParameter$inboundSchema.parse(JSON.parse(x)),
|
|
47
|
+
`Failed to parse 'ModelParameter' from JSON`,
|
|
48
|
+
);
|
|
49
|
+
}
|