@orq-ai/node 4.14.0-rc.41 → 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.
Files changed (160) hide show
  1. package/README.md +44 -35
  2. package/funcs/modelCatalogGet.d.ts +18 -0
  3. package/funcs/modelCatalogGet.d.ts.map +1 -0
  4. package/funcs/modelCatalogGet.js +121 -0
  5. package/funcs/modelCatalogGet.js.map +1 -0
  6. package/funcs/modelCatalogList.d.ts +18 -0
  7. package/funcs/modelCatalogList.d.ts.map +1 -0
  8. package/funcs/modelCatalogList.js +135 -0
  9. package/funcs/modelCatalogList.js.map +1 -0
  10. package/funcs/modelCatalogListOfferings.d.ts +18 -0
  11. package/funcs/modelCatalogListOfferings.d.ts.map +1 -0
  12. package/funcs/modelCatalogListOfferings.js +137 -0
  13. package/funcs/modelCatalogListOfferings.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +2 -2
  16. package/lib/config.js +2 -2
  17. package/models/components/evaluatorresponsefunction.js +2 -2
  18. package/models/components/evaluatorresponsehttp.js +2 -2
  19. package/models/components/evaluatorresponsejsonschema.js +2 -2
  20. package/models/components/evaluatorresponsellm.js +2 -2
  21. package/models/components/evaluatorresponsepython.js +2 -2
  22. package/models/components/evaluatorresponseragas.js +2 -2
  23. package/models/components/evaluatorresponsetypescript.js +2 -2
  24. package/models/components/getmodelcatalogmodelresponse.d.ts +14 -0
  25. package/models/components/getmodelcatalogmodelresponse.d.ts.map +1 -0
  26. package/models/components/getmodelcatalogmodelresponse.js +51 -0
  27. package/models/components/getmodelcatalogmodelresponse.js.map +1 -0
  28. package/models/components/index.d.ts +8 -0
  29. package/models/components/index.d.ts.map +1 -1
  30. package/models/components/index.js +8 -0
  31. package/models/components/index.js.map +1 -1
  32. package/models/components/listmodelcatalogofferingsresponse.d.ts +25 -0
  33. package/models/components/listmodelcatalogofferingsresponse.d.ts.map +1 -0
  34. package/models/components/listmodelcatalogofferingsresponse.js +58 -0
  35. package/models/components/listmodelcatalogofferingsresponse.js.map +1 -0
  36. package/models/components/listmodelcatalogresponse.d.ts +25 -0
  37. package/models/components/listmodelcatalogresponse.d.ts.map +1 -0
  38. package/models/components/listmodelcatalogresponse.js +58 -0
  39. package/models/components/listmodelcatalogresponse.js.map +1 -0
  40. package/models/components/model.d.ts +130 -0
  41. package/models/components/model.d.ts.map +1 -0
  42. package/models/components/model.js +92 -0
  43. package/models/components/model.js.map +1 -0
  44. package/models/components/modelartificialanalysis.d.ts +46 -0
  45. package/models/components/modelartificialanalysis.d.ts.map +1 -0
  46. package/models/components/modelartificialanalysis.js +69 -0
  47. package/models/components/modelartificialanalysis.js.map +1 -0
  48. package/models/components/modelmodalities.d.ts +17 -0
  49. package/models/components/modelmodalities.d.ts.map +1 -0
  50. package/models/components/modelmodalities.js +51 -0
  51. package/models/components/modelmodalities.js.map +1 -0
  52. package/models/components/modelparameter.d.ts +25 -0
  53. package/models/components/modelparameter.d.ts.map +1 -0
  54. package/models/components/modelparameter.js +53 -0
  55. package/models/components/modelparameter.js.map +1 -0
  56. package/models/components/modelprovider.d.ts +29 -0
  57. package/models/components/modelprovider.d.ts.map +1 -0
  58. package/models/components/modelprovider.js +60 -0
  59. package/models/components/modelprovider.js.map +1 -0
  60. package/models/components/reasoningpart.js +1 -1
  61. package/models/operations/createannotationqueue.js +1 -1
  62. package/models/operations/createdataset.js +1 -1
  63. package/models/operations/createdatasetitem.js +5 -5
  64. package/models/operations/createtool.js +4 -4
  65. package/models/operations/getalltools.js +4 -4
  66. package/models/operations/geteval.js +16 -16
  67. package/models/operations/getv2humanevalsets.js +2 -2
  68. package/models/operations/getv2humanevalsetsid.js +2 -2
  69. package/models/operations/index.d.ts +3 -0
  70. package/models/operations/index.d.ts.map +1 -1
  71. package/models/operations/index.js +3 -0
  72. package/models/operations/index.js.map +1 -1
  73. package/models/operations/listannotationqueues.js +1 -1
  74. package/models/operations/listdatasetdatapoints.js +5 -5
  75. package/models/operations/listdatasets.js +1 -1
  76. package/models/operations/modelcatalogget.d.ts +15 -0
  77. package/models/operations/modelcatalogget.d.ts.map +1 -0
  78. package/models/operations/modelcatalogget.js +49 -0
  79. package/models/operations/modelcatalogget.js.map +1 -0
  80. package/models/operations/modelcataloglist.d.ts +117 -0
  81. package/models/operations/modelcataloglist.d.ts.map +1 -0
  82. package/models/operations/modelcataloglist.js +76 -0
  83. package/models/operations/modelcataloglist.js.map +1 -0
  84. package/models/operations/modelcataloglistofferings.d.ts +126 -0
  85. package/models/operations/modelcataloglistofferings.d.ts.map +1 -0
  86. package/models/operations/modelcataloglistofferings.js +77 -0
  87. package/models/operations/modelcataloglistofferings.js.map +1 -0
  88. package/models/operations/patchv2humanevalsetsid.js +2 -2
  89. package/models/operations/postv2feedbackevaluation.js +4 -4
  90. package/models/operations/postv2humanevalsets.js +2 -2
  91. package/models/operations/retrieveannotationqueue.js +1 -1
  92. package/models/operations/retrievedatapoint.js +5 -5
  93. package/models/operations/retrievedataset.js +1 -1
  94. package/models/operations/retrievetool.js +4 -4
  95. package/models/operations/runagent.js +1 -1
  96. package/models/operations/streamrunagent.js +1 -1
  97. package/models/operations/updateannotationqueue.js +1 -1
  98. package/models/operations/updatedatapoint.js +5 -5
  99. package/models/operations/updatedataset.js +1 -1
  100. package/models/operations/updatetool.js +4 -4
  101. package/package.json +1 -1
  102. package/sdk/modelcatalog.d.ts +27 -0
  103. package/sdk/modelcatalog.d.ts.map +1 -0
  104. package/sdk/modelcatalog.js +42 -0
  105. package/sdk/modelcatalog.js.map +1 -0
  106. package/sdk/sdk.d.ts +3 -0
  107. package/sdk/sdk.d.ts.map +1 -1
  108. package/sdk/sdk.js +4 -0
  109. package/sdk/sdk.js.map +1 -1
  110. package/src/funcs/modelCatalogGet.ts +168 -0
  111. package/src/funcs/modelCatalogList.ts +184 -0
  112. package/src/funcs/modelCatalogListOfferings.ts +186 -0
  113. package/src/lib/config.ts +2 -2
  114. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  115. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  116. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  117. package/src/models/components/evaluatorresponsellm.ts +2 -2
  118. package/src/models/components/evaluatorresponsepython.ts +2 -2
  119. package/src/models/components/evaluatorresponseragas.ts +2 -2
  120. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  121. package/src/models/components/getmodelcatalogmodelresponse.ts +35 -0
  122. package/src/models/components/index.ts +8 -0
  123. package/src/models/components/listmodelcatalogofferingsresponse.ts +53 -0
  124. package/src/models/components/listmodelcatalogresponse.ts +53 -0
  125. package/src/models/components/model.ts +203 -0
  126. package/src/models/components/modelartificialanalysis.ts +95 -0
  127. package/src/models/components/modelmodalities.ts +39 -0
  128. package/src/models/components/modelparameter.ts +49 -0
  129. package/src/models/components/modelprovider.ts +60 -0
  130. package/src/models/components/reasoningpart.ts +1 -1
  131. package/src/models/operations/createannotationqueue.ts +1 -1
  132. package/src/models/operations/createdataset.ts +1 -1
  133. package/src/models/operations/createdatasetitem.ts +5 -5
  134. package/src/models/operations/createtool.ts +4 -4
  135. package/src/models/operations/getalltools.ts +4 -4
  136. package/src/models/operations/geteval.ts +16 -16
  137. package/src/models/operations/getv2humanevalsets.ts +2 -2
  138. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  139. package/src/models/operations/index.ts +3 -0
  140. package/src/models/operations/listannotationqueues.ts +1 -1
  141. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  142. package/src/models/operations/listdatasets.ts +1 -1
  143. package/src/models/operations/modelcatalogget.ts +34 -0
  144. package/src/models/operations/modelcataloglist.ts +163 -0
  145. package/src/models/operations/modelcataloglistofferings.ts +175 -0
  146. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  147. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  148. package/src/models/operations/postv2humanevalsets.ts +2 -2
  149. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  150. package/src/models/operations/retrievedatapoint.ts +5 -5
  151. package/src/models/operations/retrievedataset.ts +1 -1
  152. package/src/models/operations/retrievetool.ts +4 -4
  153. package/src/models/operations/runagent.ts +1 -1
  154. package/src/models/operations/streamrunagent.ts +1 -1
  155. package/src/models/operations/updateannotationqueue.ts +1 -1
  156. package/src/models/operations/updatedatapoint.ts +5 -5
  157. package/src/models/operations/updatedataset.ts +1 -1
  158. package/src/models/operations/updatetool.ts +4 -4
  159. package/src/sdk/modelcatalog.ts +64 -0
  160. 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-20T13:19:51.038Z"),
864
- updated: z.string().default("2026-08-20T13:19:51.038Z"),
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-20T13:19:51.038Z"),
50
- updated: z.string().default("2026-08-20T13:19:51.038Z"),
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-20T13:19:51.038Z"),
36
- updated: z.string().default("2026-08-20T13:19:51.038Z"),
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-20T13:19:51.038Z"),
275
- updated: z.string().default("2026-08-20T13:19:51.038Z"),
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-20T13:19:51.038Z"),
36
- updated: z.string().default("2026-08-20T13:19:51.038Z"),
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-20T13:19:51.038Z"),
58
- updated: z.string().default("2026-08-20T13:19:51.038Z"),
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-20T13:19:51.038Z"),
36
- updated: z.string().default("2026-08-20T13:19:51.038Z"),
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
+ }