@orq-ai/node 4.9.24 → 4.9.29

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 (244) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  6. package/models/operations/createagentresponserequest.js +3 -1
  7. package/models/operations/createagentresponserequest.js.map +1 -1
  8. package/models/operations/createchatcompletion.d.ts.map +1 -1
  9. package/models/operations/createchatcompletion.js +3 -1
  10. package/models/operations/createchatcompletion.js.map +1 -1
  11. package/models/operations/createcompletion.d.ts.map +1 -1
  12. package/models/operations/createcompletion.js +3 -1
  13. package/models/operations/createcompletion.js.map +1 -1
  14. package/models/operations/createcontact.js +1 -1
  15. package/models/operations/createdataset.js +1 -1
  16. package/models/operations/createdatasetitem.js +4 -4
  17. package/models/operations/createdatasource.js +1 -1
  18. package/models/operations/createeval.js +16 -16
  19. package/models/operations/createidentity.js +1 -1
  20. package/models/operations/createrouterresponse.d.ts.map +1 -1
  21. package/models/operations/createrouterresponse.js +3 -1
  22. package/models/operations/createrouterresponse.js.map +1 -1
  23. package/models/operations/createtool.js +6 -6
  24. package/models/operations/deploymentstream.d.ts.map +1 -1
  25. package/models/operations/deploymentstream.js +3 -1
  26. package/models/operations/deploymentstream.js.map +1 -1
  27. package/models/operations/getalltools.js +6 -6
  28. package/models/operations/getevals.js +16 -16
  29. package/models/operations/getv2humanevalsets.js +2 -2
  30. package/models/operations/getv2humanevalsetsid.js +2 -2
  31. package/models/operations/listdatasetdatapoints.js +4 -4
  32. package/models/operations/listdatasets.js +1 -1
  33. package/models/operations/listdatasources.js +1 -1
  34. package/models/operations/listidentities.js +1 -1
  35. package/models/operations/patchv2humanevalsetsid.js +2 -2
  36. package/models/operations/postv2feedbackevaluation.js +3 -3
  37. package/models/operations/postv2humanevalsets.js +2 -2
  38. package/models/operations/retrievedatapoint.js +4 -4
  39. package/models/operations/retrievedataset.js +1 -1
  40. package/models/operations/retrievedatasource.js +1 -1
  41. package/models/operations/retrieveidentity.js +1 -1
  42. package/models/operations/retrievetool.js +6 -6
  43. package/models/operations/runagent.js +1 -1
  44. package/models/operations/streamagent.d.ts.map +1 -1
  45. package/models/operations/streamagent.js +3 -1
  46. package/models/operations/streamagent.js.map +1 -1
  47. package/models/operations/streamrunagent.d.ts.map +1 -1
  48. package/models/operations/streamrunagent.js +4 -2
  49. package/models/operations/streamrunagent.js.map +1 -1
  50. package/models/operations/updatedatapoint.js +4 -4
  51. package/models/operations/updatedataset.js +1 -1
  52. package/models/operations/updatedatasource.js +1 -1
  53. package/models/operations/updateeval.js +16 -16
  54. package/models/operations/updateidentity.js +1 -1
  55. package/models/operations/updatetool.js +7 -7
  56. package/package.json +3 -3
  57. package/packages/orq-rc/src/funcs/annotationsCreate.ts +3 -0
  58. package/packages/orq-rc/src/funcs/annotationsDelete.ts +3 -0
  59. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +5 -13
  60. package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -9
  61. package/packages/orq-rc/src/funcs/identitiesCreate.ts +1 -1
  62. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +3 -0
  63. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
  64. package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
  65. package/packages/orq-rc/src/funcs/modelsCreateAutorouter.ts +163 -0
  66. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
  67. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
  68. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
  69. package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
  70. package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
  71. package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
  72. package/packages/orq-rc/src/funcs/{agentsPostV2AgentsA2a.ts → modelsImportLitellm.ts} +16 -30
  73. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
  74. package/packages/orq-rc/src/funcs/{deploymentsMetricsCreate.ts → modelsUpdate.ts} +14 -17
  75. package/packages/orq-rc/src/funcs/modelsUpdateAutorouter.ts +169 -0
  76. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
  77. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
  78. package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
  79. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
  80. package/packages/orq-rc/src/funcs/piiDetect.ts +162 -0
  81. package/packages/orq-rc/src/funcs/piiRedact.ts +162 -0
  82. package/packages/orq-rc/src/funcs/piiRestore.ts +162 -0
  83. package/packages/orq-rc/src/lib/config.ts +3 -13
  84. package/packages/orq-rc/src/lib/env.ts +0 -32
  85. package/packages/orq-rc/src/lib/sdks.ts +2 -2
  86. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +43 -55
  87. package/packages/orq-rc/src/models/components/apikey.ts +3 -12
  88. package/packages/orq-rc/src/models/components/autorouterconfig.ts +78 -0
  89. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +44 -0
  90. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
  91. package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
  92. package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
  93. package/packages/orq-rc/src/models/components/detectrequest.ts +56 -0
  94. package/packages/orq-rc/src/models/components/detectresponse.ts +41 -0
  95. package/packages/orq-rc/src/models/components/domain.ts +14 -21
  96. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +59 -0
  97. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +48 -0
  98. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +66 -0
  99. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +42 -0
  100. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +101 -0
  101. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +45 -0
  102. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +39 -0
  103. package/packages/orq-rc/src/models/components/evaluatorref.ts +4 -0
  104. package/packages/orq-rc/src/models/components/guardrailref.ts +4 -0
  105. package/packages/orq-rc/src/models/components/index.ts +36 -3
  106. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +1 -2
  107. package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
  108. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
  109. package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
  110. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
  111. package/packages/orq-rc/src/models/components/modeldocument.ts +112 -0
  112. package/packages/orq-rc/src/models/components/modelmetadata.ts +720 -0
  113. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
  114. package/packages/orq-rc/src/models/components/price.ts +56 -0
  115. package/packages/orq-rc/src/models/components/pricing.ts +93 -0
  116. package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
  117. package/packages/orq-rc/src/models/components/project.ts +5 -0
  118. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +60 -0
  119. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +45 -0
  120. package/packages/orq-rc/src/models/components/publicmodelentry.ts +7 -6
  121. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  122. package/packages/orq-rc/src/models/components/redactrequest.ts +33 -0
  123. package/packages/orq-rc/src/models/components/redactresponse.ts +41 -0
  124. package/packages/orq-rc/src/models/components/restorerequest.ts +38 -0
  125. package/packages/orq-rc/src/models/components/restoreresponse.ts +36 -0
  126. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
  127. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +6 -0
  128. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
  129. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
  130. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
  131. package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
  132. package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
  133. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
  134. package/packages/orq-rc/src/models/errors/index.ts +0 -1
  135. package/packages/orq-rc/src/models/operations/createagentrequest.ts +14 -101
  136. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +2 -1
  137. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +2 -1
  138. package/packages/orq-rc/src/models/operations/createcompletion.ts +2 -1
  139. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  140. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  141. package/packages/orq-rc/src/models/operations/createdatasource.ts +7 -1
  142. package/packages/orq-rc/src/models/operations/createembedding.ts +82 -810
  143. package/packages/orq-rc/src/models/operations/createeval.ts +630 -1333
  144. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +33 -15
  145. package/packages/orq-rc/src/models/operations/createtool.ts +24 -28
  146. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1606 -1156
  147. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +3761 -320
  148. package/packages/orq-rc/src/models/operations/deploymentstream.ts +287 -250
  149. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  150. package/packages/orq-rc/src/models/operations/getevals.ts +16 -64
  151. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  152. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  153. package/packages/orq-rc/src/models/operations/index.ts +15 -2
  154. package/packages/orq-rc/src/models/operations/listagents.ts +3 -87
  155. package/packages/orq-rc/src/models/operations/listchunks.ts +35 -6
  156. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  157. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  158. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  159. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
  160. package/packages/orq-rc/src/models/operations/modelcreate.ts +184 -0
  161. package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +151 -0
  162. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +218 -0
  163. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +202 -0
  164. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +144 -0
  165. package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
  166. package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
  167. package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
  168. package/packages/orq-rc/src/models/operations/modelupdate.ts +198 -0
  169. package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +189 -0
  170. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +248 -0
  171. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +236 -0
  172. package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
  173. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +57 -0
  174. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  175. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  176. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  177. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -91
  178. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  179. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  180. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  181. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  182. package/packages/orq-rc/src/models/operations/runagent.ts +20 -29
  183. package/packages/orq-rc/src/models/operations/streamagent.ts +2 -1
  184. package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -2
  185. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -171
  186. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  187. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  188. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  189. package/packages/orq-rc/src/models/operations/updateeval.ts +41 -100
  190. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  191. package/packages/orq-rc/src/sdk/agents.ts +17 -35
  192. package/packages/orq-rc/src/sdk/annotations.ts +6 -0
  193. package/packages/orq-rc/src/sdk/deployments.ts +1 -8
  194. package/packages/orq-rc/src/sdk/knowledge.ts +3 -0
  195. package/packages/orq-rc/src/sdk/models.ts +305 -0
  196. package/packages/orq-rc/src/sdk/pii.ts +63 -0
  197. package/packages/orq-rc/src/sdk/router.ts +5 -5
  198. package/packages/orq-rc/src/sdk/sdk.ts +11 -5
  199. package/src/lib/config.ts +3 -3
  200. package/src/models/components/reasoningpart.ts +1 -1
  201. package/src/models/operations/createagentresponserequest.ts +2 -1
  202. package/src/models/operations/createchatcompletion.ts +2 -1
  203. package/src/models/operations/createcompletion.ts +2 -1
  204. package/src/models/operations/createcontact.ts +1 -1
  205. package/src/models/operations/createdataset.ts +1 -1
  206. package/src/models/operations/createdatasetitem.ts +4 -4
  207. package/src/models/operations/createdatasource.ts +1 -1
  208. package/src/models/operations/createeval.ts +16 -16
  209. package/src/models/operations/createidentity.ts +1 -1
  210. package/src/models/operations/createrouterresponse.ts +2 -1
  211. package/src/models/operations/createtool.ts +6 -6
  212. package/src/models/operations/deploymentstream.ts +2 -1
  213. package/src/models/operations/getalltools.ts +6 -6
  214. package/src/models/operations/getevals.ts +16 -16
  215. package/src/models/operations/getv2humanevalsets.ts +2 -2
  216. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  217. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  218. package/src/models/operations/listdatasets.ts +1 -1
  219. package/src/models/operations/listdatasources.ts +1 -1
  220. package/src/models/operations/listidentities.ts +1 -1
  221. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  222. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  223. package/src/models/operations/postv2humanevalsets.ts +2 -2
  224. package/src/models/operations/retrievedatapoint.ts +4 -4
  225. package/src/models/operations/retrievedataset.ts +1 -1
  226. package/src/models/operations/retrievedatasource.ts +1 -1
  227. package/src/models/operations/retrieveidentity.ts +1 -1
  228. package/src/models/operations/retrievetool.ts +6 -6
  229. package/src/models/operations/runagent.ts +1 -1
  230. package/src/models/operations/streamagent.ts +2 -1
  231. package/src/models/operations/streamrunagent.ts +3 -2
  232. package/src/models/operations/updatedatapoint.ts +4 -4
  233. package/src/models/operations/updatedataset.ts +1 -1
  234. package/src/models/operations/updatedatasource.ts +1 -1
  235. package/src/models/operations/updateeval.ts +16 -16
  236. package/src/models/operations/updateidentity.ts +1 -1
  237. package/src/models/operations/updatetool.ts +7 -7
  238. package/packages/orq-rc/src/models/components/domaingroup.ts +0 -18
  239. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3457
  240. package/packages/orq-rc/src/models/components/scopemode.ts +0 -17
  241. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
  242. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  243. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -249
  244. package/packages/orq-rc/src/sdk/metrics.ts +0 -29
@@ -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
+
11
+ export type ModelParameterDocument = {
12
+ config: { [k: string]: any };
13
+ description: string | null;
14
+ hints?: string | undefined;
15
+ id: string;
16
+ isActive: boolean;
17
+ name: string;
18
+ parameter: string;
19
+ parameterType: string;
20
+ position?: number | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const ModelParameterDocument$inboundSchema: z.ZodType<
25
+ ModelParameterDocument,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ config: z.record(z.any()),
30
+ description: z.nullable(z.string()),
31
+ hints: z.string().optional(),
32
+ id: z.string(),
33
+ is_active: z.boolean(),
34
+ name: z.string(),
35
+ parameter: z.string(),
36
+ parameter_type: z.string(),
37
+ position: z.number().int().optional(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "is_active": "isActive",
41
+ "parameter_type": "parameterType",
42
+ });
43
+ });
44
+
45
+ export function modelParameterDocumentFromJSON(
46
+ jsonString: string,
47
+ ): SafeParseResult<ModelParameterDocument, SDKValidationError> {
48
+ return safeParse(
49
+ jsonString,
50
+ (x) => ModelParameterDocument$inboundSchema.parse(JSON.parse(x)),
51
+ `Failed to parse 'ModelParameterDocument' from JSON`,
52
+ );
53
+ }
@@ -0,0 +1,56 @@
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 Price = {
11
+ cost: number;
12
+ currency: string;
13
+ per: number;
14
+ unit: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const Price$inboundSchema: z.ZodType<Price, z.ZodTypeDef, unknown> = z
19
+ .object({
20
+ cost: z.number(),
21
+ currency: z.string(),
22
+ per: z.number().int(),
23
+ unit: z.string(),
24
+ });
25
+ /** @internal */
26
+ export type Price$Outbound = {
27
+ cost: number;
28
+ currency: string;
29
+ per: number;
30
+ unit: string;
31
+ };
32
+
33
+ /** @internal */
34
+ export const Price$outboundSchema: z.ZodType<
35
+ Price$Outbound,
36
+ z.ZodTypeDef,
37
+ Price
38
+ > = z.object({
39
+ cost: z.number(),
40
+ currency: z.string(),
41
+ per: z.number().int(),
42
+ unit: z.string(),
43
+ });
44
+
45
+ export function priceToJSON(price: Price): string {
46
+ return JSON.stringify(Price$outboundSchema.parse(price));
47
+ }
48
+ export function priceFromJSON(
49
+ jsonString: string,
50
+ ): SafeParseResult<Price, SDKValidationError> {
51
+ return safeParse(
52
+ jsonString,
53
+ (x) => Price$inboundSchema.parse(JSON.parse(x)),
54
+ `Failed to parse 'Price' from JSON`,
55
+ );
56
+ }
@@ -0,0 +1,93 @@
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
+ Price,
12
+ Price$inboundSchema,
13
+ Price$Outbound,
14
+ Price$outboundSchema,
15
+ } from "./price.js";
16
+ import {
17
+ PricingVariant,
18
+ PricingVariant$inboundSchema,
19
+ PricingVariant$Outbound,
20
+ PricingVariant$outboundSchema,
21
+ } from "./pricingvariant.js";
22
+
23
+ export type Pricing = {
24
+ cacheRead?: Price | undefined;
25
+ cacheWrite1h?: Price | undefined;
26
+ cacheWrite5m?: Price | undefined;
27
+ input?: Price | undefined;
28
+ output?: Price | undefined;
29
+ reasoning?: Price | undefined;
30
+ variants?: Array<PricingVariant> | null | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const Pricing$inboundSchema: z.ZodType<Pricing, z.ZodTypeDef, unknown> =
35
+ z.object({
36
+ cache_read: Price$inboundSchema.optional(),
37
+ cache_write_1h: Price$inboundSchema.optional(),
38
+ cache_write_5m: Price$inboundSchema.optional(),
39
+ input: Price$inboundSchema.optional(),
40
+ output: Price$inboundSchema.optional(),
41
+ reasoning: Price$inboundSchema.optional(),
42
+ variants: z.nullable(z.array(PricingVariant$inboundSchema)).optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ "cache_read": "cacheRead",
46
+ "cache_write_1h": "cacheWrite1h",
47
+ "cache_write_5m": "cacheWrite5m",
48
+ });
49
+ });
50
+ /** @internal */
51
+ export type Pricing$Outbound = {
52
+ cache_read?: Price$Outbound | undefined;
53
+ cache_write_1h?: Price$Outbound | undefined;
54
+ cache_write_5m?: Price$Outbound | undefined;
55
+ input?: Price$Outbound | undefined;
56
+ output?: Price$Outbound | undefined;
57
+ reasoning?: Price$Outbound | undefined;
58
+ variants?: Array<PricingVariant$Outbound> | null | undefined;
59
+ };
60
+
61
+ /** @internal */
62
+ export const Pricing$outboundSchema: z.ZodType<
63
+ Pricing$Outbound,
64
+ z.ZodTypeDef,
65
+ Pricing
66
+ > = z.object({
67
+ cacheRead: Price$outboundSchema.optional(),
68
+ cacheWrite1h: Price$outboundSchema.optional(),
69
+ cacheWrite5m: Price$outboundSchema.optional(),
70
+ input: Price$outboundSchema.optional(),
71
+ output: Price$outboundSchema.optional(),
72
+ reasoning: Price$outboundSchema.optional(),
73
+ variants: z.nullable(z.array(PricingVariant$outboundSchema)).optional(),
74
+ }).transform((v) => {
75
+ return remap$(v, {
76
+ cacheRead: "cache_read",
77
+ cacheWrite1h: "cache_write_1h",
78
+ cacheWrite5m: "cache_write_5m",
79
+ });
80
+ });
81
+
82
+ export function pricingToJSON(pricing: Pricing): string {
83
+ return JSON.stringify(Pricing$outboundSchema.parse(pricing));
84
+ }
85
+ export function pricingFromJSON(
86
+ jsonString: string,
87
+ ): SafeParseResult<Pricing, SDKValidationError> {
88
+ return safeParse(
89
+ jsonString,
90
+ (x) => Pricing$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'Pricing' from JSON`,
92
+ );
93
+ }
@@ -0,0 +1,90 @@
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
+ Price,
12
+ Price$inboundSchema,
13
+ Price$Outbound,
14
+ Price$outboundSchema,
15
+ } from "./price.js";
16
+
17
+ export type PricingVariant = {
18
+ cacheRead?: Price | undefined;
19
+ cacheWrite1h?: Price | undefined;
20
+ cacheWrite5m?: Price | undefined;
21
+ input?: Price | undefined;
22
+ output?: Price | undefined;
23
+ reasoning?: Price | undefined;
24
+ when: string;
25
+ };
26
+
27
+ /** @internal */
28
+ export const PricingVariant$inboundSchema: z.ZodType<
29
+ PricingVariant,
30
+ z.ZodTypeDef,
31
+ unknown
32
+ > = z.object({
33
+ cache_read: Price$inboundSchema.optional(),
34
+ cache_write_1h: Price$inboundSchema.optional(),
35
+ cache_write_5m: Price$inboundSchema.optional(),
36
+ input: Price$inboundSchema.optional(),
37
+ output: Price$inboundSchema.optional(),
38
+ reasoning: Price$inboundSchema.optional(),
39
+ when: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ "cache_read": "cacheRead",
43
+ "cache_write_1h": "cacheWrite1h",
44
+ "cache_write_5m": "cacheWrite5m",
45
+ });
46
+ });
47
+ /** @internal */
48
+ export type PricingVariant$Outbound = {
49
+ cache_read?: Price$Outbound | undefined;
50
+ cache_write_1h?: Price$Outbound | undefined;
51
+ cache_write_5m?: Price$Outbound | undefined;
52
+ input?: Price$Outbound | undefined;
53
+ output?: Price$Outbound | undefined;
54
+ reasoning?: Price$Outbound | undefined;
55
+ when: string;
56
+ };
57
+
58
+ /** @internal */
59
+ export const PricingVariant$outboundSchema: z.ZodType<
60
+ PricingVariant$Outbound,
61
+ z.ZodTypeDef,
62
+ PricingVariant
63
+ > = z.object({
64
+ cacheRead: Price$outboundSchema.optional(),
65
+ cacheWrite1h: Price$outboundSchema.optional(),
66
+ cacheWrite5m: Price$outboundSchema.optional(),
67
+ input: Price$outboundSchema.optional(),
68
+ output: Price$outboundSchema.optional(),
69
+ reasoning: Price$outboundSchema.optional(),
70
+ when: z.string(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ cacheRead: "cache_read",
74
+ cacheWrite1h: "cache_write_1h",
75
+ cacheWrite5m: "cache_write_5m",
76
+ });
77
+ });
78
+
79
+ export function pricingVariantToJSON(pricingVariant: PricingVariant): string {
80
+ return JSON.stringify(PricingVariant$outboundSchema.parse(pricingVariant));
81
+ }
82
+ export function pricingVariantFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<PricingVariant, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => PricingVariant$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'PricingVariant' from JSON`,
89
+ );
90
+ }
@@ -61,6 +61,10 @@ export type Project = {
61
61
  * User ID that last updated the project.
62
62
  */
63
63
  updatedById?: string | undefined;
64
+ /**
65
+ * Optional human-readable description of the project.
66
+ */
67
+ description?: string | undefined;
64
68
  };
65
69
 
66
70
  /** @internal */
@@ -80,6 +84,7 @@ export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
80
84
  ).optional(),
81
85
  created_by_id: z.string().optional(),
82
86
  updated_by_id: z.string().optional(),
87
+ description: z.string().optional(),
83
88
  }).transform((v) => {
84
89
  return remap$(v, {
85
90
  "project_id": "projectId",
@@ -0,0 +1,60 @@
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 { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The object type, which is always "embedding".
13
+ */
14
+ export const ObjectT = {
15
+ Embedding: "embedding",
16
+ } as const;
17
+ /**
18
+ * The object type, which is always "embedding".
19
+ */
20
+ export type ObjectT = ClosedEnum<typeof ObjectT>;
21
+
22
+ export type PublicEmbeddingData = {
23
+ /**
24
+ * The embedding vector, which is a list of floats. The length of vector depends on the model. Can also be a base64-encoded string when encoding_format is base64.
25
+ */
26
+ embedding?: any | undefined;
27
+ /**
28
+ * The index of the embedding in the list of embeddings.
29
+ */
30
+ index: number;
31
+ /**
32
+ * The object type, which is always "embedding".
33
+ */
34
+ object: ObjectT;
35
+ };
36
+
37
+ /** @internal */
38
+ export const ObjectT$inboundSchema: z.ZodNativeEnum<typeof ObjectT> = z
39
+ .nativeEnum(ObjectT);
40
+
41
+ /** @internal */
42
+ export const PublicEmbeddingData$inboundSchema: z.ZodType<
43
+ PublicEmbeddingData,
44
+ z.ZodTypeDef,
45
+ unknown
46
+ > = z.object({
47
+ embedding: z.any().optional(),
48
+ index: z.number().int(),
49
+ object: ObjectT$inboundSchema,
50
+ });
51
+
52
+ export function publicEmbeddingDataFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<PublicEmbeddingData, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => PublicEmbeddingData$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'PublicEmbeddingData' from JSON`,
59
+ );
60
+ }
@@ -0,0 +1,45 @@
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
+ export type PublicEmbeddingUsage = {
12
+ /**
13
+ * The number of tokens used by the prompt.
14
+ */
15
+ promptTokens: number;
16
+ /**
17
+ * The total number of tokens used by the request.
18
+ */
19
+ totalTokens: number;
20
+ };
21
+
22
+ /** @internal */
23
+ export const PublicEmbeddingUsage$inboundSchema: z.ZodType<
24
+ PublicEmbeddingUsage,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ prompt_tokens: z.number().int(),
29
+ total_tokens: z.number().int(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "prompt_tokens": "promptTokens",
33
+ "total_tokens": "totalTokens",
34
+ });
35
+ });
36
+
37
+ export function publicEmbeddingUsageFromJSON(
38
+ jsonString: string,
39
+ ): SafeParseResult<PublicEmbeddingUsage, SDKValidationError> {
40
+ return safeParse(
41
+ jsonString,
42
+ (x) => PublicEmbeddingUsage$inboundSchema.parse(JSON.parse(x)),
43
+ `Failed to parse 'PublicEmbeddingUsage' from JSON`,
44
+ );
45
+ }
@@ -12,13 +12,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * Always "model".
14
14
  */
15
- export const ObjectT = {
15
+ export const PublicModelEntryObject = {
16
16
  Model: "model",
17
17
  } as const;
18
18
  /**
19
19
  * Always "model".
20
20
  */
21
- export type ObjectT = ClosedEnum<typeof ObjectT>;
21
+ export type PublicModelEntryObject = ClosedEnum<typeof PublicModelEntryObject>;
22
22
 
23
23
  export type PublicModelEntry = {
24
24
  /**
@@ -32,7 +32,7 @@ export type PublicModelEntry = {
32
32
  /**
33
33
  * Always "model".
34
34
  */
35
- object: ObjectT;
35
+ object: PublicModelEntryObject;
36
36
  /**
37
37
  * The provider that owns the model (e.g. openai, anthropic).
38
38
  */
@@ -40,8 +40,9 @@ export type PublicModelEntry = {
40
40
  };
41
41
 
42
42
  /** @internal */
43
- export const ObjectT$inboundSchema: z.ZodNativeEnum<typeof ObjectT> = z
44
- .nativeEnum(ObjectT);
43
+ export const PublicModelEntryObject$inboundSchema: z.ZodNativeEnum<
44
+ typeof PublicModelEntryObject
45
+ > = z.nativeEnum(PublicModelEntryObject);
45
46
 
46
47
  /** @internal */
47
48
  export const PublicModelEntry$inboundSchema: z.ZodType<
@@ -51,7 +52,7 @@ export const PublicModelEntry$inboundSchema: z.ZodType<
51
52
  > = z.object({
52
53
  created: z.number().int(),
53
54
  id: z.string(),
54
- object: ObjectT$inboundSchema,
55
+ object: PublicModelEntryObject$inboundSchema,
55
56
  owned_by: z.string(),
56
57
  }).transform((v) => {
57
58
  return remap$(v, {
@@ -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("reasoning_01ksfyhcesynycmnqq79fqhzq2"),
43
+ _id: z.string().default("reasoning_01kt376kw9c0svfp2cjbe33s2n"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type RedactRequest = {
8
+ text?: string | undefined;
9
+ language?: string | undefined;
10
+ threshold?: number | undefined;
11
+ };
12
+
13
+ /** @internal */
14
+ export type RedactRequest$Outbound = {
15
+ text?: string | undefined;
16
+ language?: string | undefined;
17
+ threshold?: number | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const RedactRequest$outboundSchema: z.ZodType<
22
+ RedactRequest$Outbound,
23
+ z.ZodTypeDef,
24
+ RedactRequest
25
+ > = z.object({
26
+ text: z.string().optional(),
27
+ language: z.string().optional(),
28
+ threshold: z.number().optional(),
29
+ });
30
+
31
+ export function redactRequestToJSON(redactRequest: RedactRequest): string {
32
+ return JSON.stringify(RedactRequest$outboundSchema.parse(redactRequest));
33
+ }
@@ -0,0 +1,41 @@
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
+ export type RedactResponse = {
12
+ redactedText?: string | undefined;
13
+ /**
14
+ * Maps each placeholder (e.g. "<PERSON_1>") to the original value it replaced.
15
+ */
16
+ mappings?: { [k: string]: string } | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const RedactResponse$inboundSchema: z.ZodType<
21
+ RedactResponse,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ redacted_text: z.string().optional(),
26
+ mappings: z.record(z.string()).optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "redacted_text": "redactedText",
30
+ });
31
+ });
32
+
33
+ export function redactResponseFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<RedactResponse, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => RedactResponse$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'RedactResponse' from JSON`,
40
+ );
41
+ }
@@ -0,0 +1,38 @@
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
+
8
+ export type RestoreRequest = {
9
+ redactedText?: string | undefined;
10
+ /**
11
+ * Placeholder-to-original mapping produced by Redact.
12
+ */
13
+ mappings?: { [k: string]: string } | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export type RestoreRequest$Outbound = {
18
+ redacted_text?: string | undefined;
19
+ mappings?: { [k: string]: string } | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const RestoreRequest$outboundSchema: z.ZodType<
24
+ RestoreRequest$Outbound,
25
+ z.ZodTypeDef,
26
+ RestoreRequest
27
+ > = z.object({
28
+ redactedText: z.string().optional(),
29
+ mappings: z.record(z.string()).optional(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ redactedText: "redacted_text",
33
+ });
34
+ });
35
+
36
+ export function restoreRequestToJSON(restoreRequest: RestoreRequest): string {
37
+ return JSON.stringify(RestoreRequest$outboundSchema.parse(restoreRequest));
38
+ }
@@ -0,0 +1,36 @@
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
+ export type RestoreResponse = {
12
+ originalText?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const RestoreResponse$inboundSchema: z.ZodType<
17
+ RestoreResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ original_text: z.string().optional(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "original_text": "originalText",
25
+ });
26
+ });
27
+
28
+ export function restoreResponseFromJSON(
29
+ jsonString: string,
30
+ ): SafeParseResult<RestoreResponse, SDKValidationError> {
31
+ return safeParse(
32
+ jsonString,
33
+ (x) => RestoreResponse$inboundSchema.parse(JSON.parse(x)),
34
+ `Failed to parse 'RestoreResponse' from JSON`,
35
+ );
36
+ }
@@ -0,0 +1,61 @@
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
+
8
+ export type UpdateModelParameter = {
9
+ config?: { [k: string]: any } | undefined;
10
+ description?: string | undefined;
11
+ hints?: string | undefined;
12
+ id: string;
13
+ isActive?: boolean | undefined;
14
+ name?: string | undefined;
15
+ parameter?: string | undefined;
16
+ parameterType?: string | undefined;
17
+ position?: number | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export type UpdateModelParameter$Outbound = {
22
+ config?: { [k: string]: any } | undefined;
23
+ description?: string | undefined;
24
+ hints?: string | undefined;
25
+ id: string;
26
+ is_active?: boolean | undefined;
27
+ name?: string | undefined;
28
+ parameter?: string | undefined;
29
+ parameter_type?: string | undefined;
30
+ position?: number | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const UpdateModelParameter$outboundSchema: z.ZodType<
35
+ UpdateModelParameter$Outbound,
36
+ z.ZodTypeDef,
37
+ UpdateModelParameter
38
+ > = z.object({
39
+ config: z.record(z.any()).optional(),
40
+ description: z.string().optional(),
41
+ hints: z.string().optional(),
42
+ id: z.string(),
43
+ isActive: z.boolean().optional(),
44
+ name: z.string().optional(),
45
+ parameter: z.string().optional(),
46
+ parameterType: z.string().optional(),
47
+ position: z.number().int().optional(),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ isActive: "is_active",
51
+ parameterType: "parameter_type",
52
+ });
53
+ });
54
+
55
+ export function updateModelParameterToJSON(
56
+ updateModelParameter: UpdateModelParameter,
57
+ ): string {
58
+ return JSON.stringify(
59
+ UpdateModelParameter$outboundSchema.parse(updateModelParameter),
60
+ );
61
+ }