@orq-ai/node 4.10.26 → 4.10.30

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/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/event-streams.d.ts +7 -2
  5. package/lib/event-streams.d.ts.map +1 -1
  6. package/lib/event-streams.js +2 -1
  7. package/lib/event-streams.js.map +1 -1
  8. package/models/components/azurefoundrydeployment.d.ts +3 -0
  9. package/models/components/azurefoundrydeployment.d.ts.map +1 -1
  10. package/models/components/azurefoundrydeployment.js +4 -0
  11. package/models/components/azurefoundrydeployment.js.map +1 -1
  12. package/models/components/reasoningpart.js +1 -1
  13. package/models/operations/createdataset.js +1 -1
  14. package/models/operations/createdatasetitem.js +4 -4
  15. package/models/operations/createdatasource.js +1 -1
  16. package/models/operations/createeval.js +16 -16
  17. package/models/operations/createtool.js +6 -6
  18. package/models/operations/getalltools.js +6 -6
  19. package/models/operations/getevals.js +16 -16
  20. package/models/operations/getv2humanevalsets.js +2 -2
  21. package/models/operations/getv2humanevalsetsid.js +2 -2
  22. package/models/operations/listdatasetdatapoints.js +4 -4
  23. package/models/operations/listdatasets.js +1 -1
  24. package/models/operations/listdatasources.js +1 -1
  25. package/models/operations/modelcreateawsbedrock.d.ts +4 -0
  26. package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
  27. package/models/operations/modelcreateawsbedrock.js +4 -0
  28. package/models/operations/modelcreateawsbedrock.js.map +1 -1
  29. package/models/operations/modelupdateawsbedrock.d.ts +4 -2
  30. package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
  31. package/models/operations/modelupdateawsbedrock.js +4 -2
  32. package/models/operations/modelupdateawsbedrock.js.map +1 -1
  33. package/models/operations/modelvalidateawsbedrock.d.ts +2 -0
  34. package/models/operations/modelvalidateawsbedrock.d.ts.map +1 -1
  35. package/models/operations/modelvalidateawsbedrock.js +2 -0
  36. package/models/operations/modelvalidateawsbedrock.js.map +1 -1
  37. package/models/operations/patchv2humanevalsetsid.js +2 -2
  38. package/models/operations/postv2feedbackevaluation.js +3 -3
  39. package/models/operations/postv2humanevalsets.js +2 -2
  40. package/models/operations/retrievedatapoint.js +4 -4
  41. package/models/operations/retrievedataset.js +1 -1
  42. package/models/operations/retrievedatasource.js +1 -1
  43. package/models/operations/retrievetool.js +6 -6
  44. package/models/operations/runagent.js +1 -1
  45. package/models/operations/streamrunagent.js +1 -1
  46. package/models/operations/updatedatapoint.js +4 -4
  47. package/models/operations/updatedataset.js +1 -1
  48. package/models/operations/updatedatasource.js +1 -1
  49. package/models/operations/updateeval.js +16 -16
  50. package/models/operations/updatetool.js +7 -7
  51. package/package.json +3 -3
  52. package/packages/orq-rc/src/funcs/agentsInvoke.ts +2 -2
  53. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +8 -5
  54. package/packages/orq-rc/src/funcs/agentsStream.ts +2 -2
  55. package/packages/orq-rc/src/funcs/annotationsCreate.ts +1 -1
  56. package/packages/orq-rc/src/funcs/annotationsDelete.ts +1 -1
  57. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +4 -4
  58. package/packages/orq-rc/src/funcs/promptsCreate.ts +4 -3
  59. package/packages/orq-rc/src/lib/config.ts +3 -3
  60. package/packages/orq-rc/src/lib/event-streams.ts +15 -7
  61. package/packages/orq-rc/src/models/components/agentresponserequest.ts +565 -0
  62. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +55 -43
  63. package/packages/orq-rc/src/models/components/budget.ts +12 -0
  64. package/packages/orq-rc/src/models/components/budgetlimits.ts +12 -4
  65. package/packages/orq-rc/src/models/components/budgetusage.ts +54 -0
  66. package/packages/orq-rc/src/models/components/getbudgetconsumptionresponse.ts +7 -3
  67. package/packages/orq-rc/src/models/components/index.ts +3 -4
  68. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3457 -0
  69. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  70. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
  71. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +4 -550
  72. package/packages/orq-rc/src/models/operations/createannotation.ts +110 -16
  73. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  74. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +335 -19
  75. package/packages/orq-rc/src/models/operations/createdatasource.ts +4 -1
  76. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  77. package/packages/orq-rc/src/models/operations/createprompt.ts +13 -9
  78. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  79. package/packages/orq-rc/src/models/operations/deleteannotation.ts +46 -3
  80. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1156 -1606
  81. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +221 -3675
  82. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1
  83. package/packages/orq-rc/src/models/operations/deploymentstream.ts +244 -286
  84. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1
  85. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  86. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  87. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1
  88. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1
  89. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/invokeagent.ts +90 -116
  92. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +378 -19
  93. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  94. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  95. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -1
  96. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +8 -0
  97. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +8 -4
  98. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +4 -0
  99. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +42 -18
  101. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +363 -19
  103. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  104. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  105. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  106. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  107. package/packages/orq-rc/src/models/operations/streamagent.ts +16 -11
  108. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  109. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +366 -19
  110. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  111. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  112. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  113. package/packages/orq-rc/src/models/operations/updateprompt.ts +17 -12
  114. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  115. package/packages/orq-rc/src/sdk/agents.ts +2 -2
  116. package/packages/orq-rc/src/sdk/annotations.ts +2 -2
  117. package/packages/orq-rc/src/sdk/deployments.ts +2 -1
  118. package/packages/orq-rc/src/sdk/feedback.ts +1 -4
  119. package/packages/orq-rc/src/sdk/models.ts +0 -35
  120. package/packages/orq-rc/src/sdk/orqresponses.ts +2 -2
  121. package/packages/orq-rc/src/sdk/prompts.ts +1 -1
  122. package/src/lib/config.ts +3 -3
  123. package/src/lib/event-streams.ts +15 -7
  124. package/src/models/components/azurefoundrydeployment.ts +7 -0
  125. package/src/models/components/reasoningpart.ts +1 -1
  126. package/src/models/operations/createdataset.ts +1 -1
  127. package/src/models/operations/createdatasetitem.ts +4 -4
  128. package/src/models/operations/createdatasource.ts +1 -1
  129. package/src/models/operations/createeval.ts +16 -16
  130. package/src/models/operations/createtool.ts +6 -6
  131. package/src/models/operations/getalltools.ts +6 -6
  132. package/src/models/operations/getevals.ts +16 -16
  133. package/src/models/operations/getv2humanevalsets.ts +2 -2
  134. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  135. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  136. package/src/models/operations/listdatasets.ts +1 -1
  137. package/src/models/operations/listdatasources.ts +1 -1
  138. package/src/models/operations/modelcreateawsbedrock.ts +8 -0
  139. package/src/models/operations/modelupdateawsbedrock.ts +8 -4
  140. package/src/models/operations/modelvalidateawsbedrock.ts +4 -0
  141. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  142. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  143. package/src/models/operations/postv2humanevalsets.ts +2 -2
  144. package/src/models/operations/retrievedatapoint.ts +4 -4
  145. package/src/models/operations/retrievedataset.ts +1 -1
  146. package/src/models/operations/retrievedatasource.ts +1 -1
  147. package/src/models/operations/retrievetool.ts +6 -6
  148. package/src/models/operations/runagent.ts +1 -1
  149. package/src/models/operations/streamrunagent.ts +1 -1
  150. package/src/models/operations/updatedatapoint.ts +4 -4
  151. package/src/models/operations/updatedataset.ts +1 -1
  152. package/src/models/operations/updatedatasource.ts +1 -1
  153. package/src/models/operations/updateeval.ts +16 -16
  154. package/src/models/operations/updatetool.ts +7 -7
  155. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +0 -166
  156. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +0 -144
  157. package/packages/orq-rc/src/models/components/litellmmodel.ts +0 -50
  158. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +0 -97
  159. package/packages/orq-rc/src/models/components/litellmparams.ts +0 -43
  160. package/packages/orq-rc/src/models/components/modeldocument.ts +0 -112
@@ -926,7 +926,10 @@ export type UpdatePromptMetadata = {
926
926
  language?: UpdatePromptLanguage | null | undefined;
927
927
  };
928
928
 
929
- export type UpdatePromptRequestBody = {
929
+ /**
930
+ * Request body for updating an existing prompt. All fields are optional.
931
+ */
932
+ export type UpdatePromptUpdatePromptRequest = {
930
933
  owner?: string | undefined;
931
934
  domainId?: string | undefined;
932
935
  created?: string | undefined;
@@ -963,7 +966,7 @@ export type UpdatePromptRequest = {
963
966
  * Unique identifier of the prompt
964
967
  */
965
968
  id: string;
966
- requestBody?: UpdatePromptRequestBody | undefined;
969
+ requestBody?: UpdatePromptUpdatePromptRequest | undefined;
967
970
  };
968
971
 
969
972
  export const UpdatePromptPromptsResponseType = {
@@ -1368,7 +1371,6 @@ export const UpdatePromptProvider = {
1368
1371
  Nvidia: "nvidia",
1369
1372
  Jina: "jina",
1370
1373
  Elevenlabs: "elevenlabs",
1371
- Litellm: "litellm",
1372
1374
  Cerebras: "cerebras",
1373
1375
  Openailike: "openailike",
1374
1376
  Bytedance: "bytedance",
@@ -3901,7 +3903,7 @@ export function updatePromptMetadataToJSON(
3901
3903
  }
3902
3904
 
3903
3905
  /** @internal */
3904
- export type UpdatePromptRequestBody$Outbound = {
3906
+ export type UpdatePromptUpdatePromptRequest$Outbound = {
3905
3907
  owner?: string | undefined;
3906
3908
  domain_id?: string | undefined;
3907
3909
  created?: string | undefined;
@@ -3916,10 +3918,10 @@ export type UpdatePromptRequestBody$Outbound = {
3916
3918
  };
3917
3919
 
3918
3920
  /** @internal */
3919
- export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
3920
- UpdatePromptRequestBody$Outbound,
3921
+ export const UpdatePromptUpdatePromptRequest$outboundSchema: z.ZodType<
3922
+ UpdatePromptUpdatePromptRequest$Outbound,
3921
3923
  z.ZodTypeDef,
3922
- UpdatePromptRequestBody
3924
+ UpdatePromptUpdatePromptRequest
3923
3925
  > = z.object({
3924
3926
  owner: z.string().optional(),
3925
3927
  domainId: z.string().optional(),
@@ -3941,18 +3943,20 @@ export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
3941
3943
  });
3942
3944
  });
3943
3945
 
3944
- export function updatePromptRequestBodyToJSON(
3945
- updatePromptRequestBody: UpdatePromptRequestBody,
3946
+ export function updatePromptUpdatePromptRequestToJSON(
3947
+ updatePromptUpdatePromptRequest: UpdatePromptUpdatePromptRequest,
3946
3948
  ): string {
3947
3949
  return JSON.stringify(
3948
- UpdatePromptRequestBody$outboundSchema.parse(updatePromptRequestBody),
3950
+ UpdatePromptUpdatePromptRequest$outboundSchema.parse(
3951
+ updatePromptUpdatePromptRequest,
3952
+ ),
3949
3953
  );
3950
3954
  }
3951
3955
 
3952
3956
  /** @internal */
3953
3957
  export type UpdatePromptRequest$Outbound = {
3954
3958
  id: string;
3955
- RequestBody?: UpdatePromptRequestBody$Outbound | undefined;
3959
+ RequestBody?: UpdatePromptUpdatePromptRequest$Outbound | undefined;
3956
3960
  };
3957
3961
 
3958
3962
  /** @internal */
@@ -3962,7 +3966,8 @@ export const UpdatePromptRequest$outboundSchema: z.ZodType<
3962
3966
  UpdatePromptRequest
3963
3967
  > = z.object({
3964
3968
  id: z.string(),
3965
- requestBody: z.lazy(() => UpdatePromptRequestBody$outboundSchema).optional(),
3969
+ requestBody: z.lazy(() => UpdatePromptUpdatePromptRequest$outboundSchema)
3970
+ .optional(),
3966
3971
  }).transform((v) => {
3967
3972
  return remap$(v, {
3968
3973
  requestBody: "RequestBody",
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
1472
1472
  z.ZodTypeDef,
1473
1473
  RequestBodyTools
1474
1474
  > = z.object({
1475
- id: z.string().default("01KVAG9AG5V2W3CE2X9H39HJHF"),
1475
+ id: z.string().default("01KVMMQ8AJZYG5P4QK8T8KQM6G"),
1476
1476
  name: z.string(),
1477
1477
  description: z.string().optional(),
1478
1478
  schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2193
2193
  z.ZodTypeDef,
2194
2194
  unknown
2195
2195
  > = z.object({
2196
- _id: z.string().default("tool_01KVAG9AFX0GTMXSNZG9YGS91C"),
2196
+ _id: z.string().default("tool_01KVMMQ8AA6BB565THEB8XDZ3Q"),
2197
2197
  path: z.string(),
2198
2198
  key: z.string(),
2199
2199
  display_name: z.string().optional(),
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
2296
2296
  z.ZodTypeDef,
2297
2297
  unknown
2298
2298
  > = z.object({
2299
- id: z.string().default("01KVAG9AFWRPRM0S9WN4T9MSGQ"),
2299
+ id: z.string().default("01KVMMQ8A99HDZ89TE9YC1F4HR"),
2300
2300
  name: z.string(),
2301
2301
  description: z.string().optional(),
2302
2302
  schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
2354
2354
  z.ZodTypeDef,
2355
2355
  unknown
2356
2356
  > = z.object({
2357
- _id: z.string().default("tool_01KVAG9AFTHVDCRKBE6W12MC86"),
2357
+ _id: z.string().default("tool_01KVMMQ8A887GH4WZ7W7HSPMEQ"),
2358
2358
  path: z.string(),
2359
2359
  key: z.string(),
2360
2360
  display_name: z.string().optional(),
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
2543
2543
  z.ZodTypeDef,
2544
2544
  unknown
2545
2545
  > = z.object({
2546
- _id: z.string().default("tool_01KVAG9AFRG2JXTT8XSEFF7V1M"),
2546
+ _id: z.string().default("tool_01KVMMQ8A6ZR0K01DGSG6R3M2E"),
2547
2547
  path: z.string(),
2548
2548
  key: z.string(),
2549
2549
  display_name: z.string().optional(),
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2638
2638
  z.ZodTypeDef,
2639
2639
  unknown
2640
2640
  > = z.object({
2641
- _id: z.string().default("tool_01KVAG9AFPDB9RMP66DNDHRWV6"),
2641
+ _id: z.string().default("tool_01KVMMQ8A4MYW320NVEANG2TPR"),
2642
2642
  path: z.string(),
2643
2643
  key: z.string(),
2644
2644
  display_name: z.string().optional(),
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2741
2741
  z.ZodTypeDef,
2742
2742
  unknown
2743
2743
  > = z.object({
2744
- _id: z.string().default("tool_01KVAG9AFMFHZRMTVRMWGK9MRX"),
2744
+ _id: z.string().default("tool_01KVMMQ8A2XAP8FGYQMAGBAE77"),
2745
2745
  path: z.string(),
2746
2746
  key: z.string(),
2747
2747
  display_name: z.string().optional(),
@@ -127,7 +127,7 @@ export class Agents extends ClientSDK {
127
127
  */
128
128
  async invoke(
129
129
  key: string,
130
- requestBody?: operations.InvokeAgentRequestBody | undefined,
130
+ requestBody?: operations.InvokeAgentA2AInvokeRequest | undefined,
131
131
  options?: RequestOptions,
132
132
  ): Promise<operations.InvokeAgentA2ATaskResponse> {
133
133
  return unwrapAsync(agentsInvoke(
@@ -185,7 +185,7 @@ export class Agents extends ClientSDK {
185
185
  * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
186
186
  */
187
187
  async stream(
188
- requestBody: operations.StreamAgentRequestBody,
188
+ requestBody: operations.StreamAgentA2AInvokeRequest,
189
189
  key: string,
190
190
  options?: RequestOptions,
191
191
  ): Promise<EventStream<operations.StreamAgentResponseBody>> {
@@ -13,7 +13,7 @@ export class Annotations extends ClientSDK {
13
13
  * Annotate a span
14
14
  *
15
15
  * @remarks
16
- * Attach one or more annotations to a specific span. Each annotation references an evaluator by key and supplies a value (string for text/single-select, number for range, array for multi-select).
16
+ * Attach one or more annotations to a specific span. A standard annotation references a human review by key and supplies a value. A correction references an existing evaluator output by parent_annotation_id and supplies the corrected value, validated against that evaluator's output schema.
17
17
  */
18
18
  async create(
19
19
  request: operations.CreateAnnotationRequest,
@@ -30,7 +30,7 @@ export class Annotations extends ClientSDK {
30
30
  * Remove an annotation from a span
31
31
  *
32
32
  * @remarks
33
- * Remove one or more annotations from a specific span by their evaluator keys.
33
+ * Remove one or more annotations from a specific span by their evaluator keys, or remove corrections by the eval ids of their parent annotations.
34
34
  */
35
35
  async delete(
36
36
  request: operations.DeleteAnnotationRequest,
@@ -8,6 +8,7 @@ import { deploymentsList } from "../funcs/deploymentsList.js";
8
8
  import { deploymentsStream } from "../funcs/deploymentsStream.js";
9
9
  import { EventStream } from "../lib/event-streams.js";
10
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
+ import * as components from "../models/components/index.js";
11
12
  import * as operations from "../models/operations/index.js";
12
13
  import { unwrapAsync } from "../types/fp.js";
13
14
 
@@ -19,7 +20,7 @@ export class Deployments extends ClientSDK {
19
20
  * Invoke a deployment with a given payload
20
21
  */
21
22
  async invoke(
22
- request: operations.DeploymentInvokeRequestBody,
23
+ request: components.InvokeDeploymentRequest,
23
24
  options?: RequestOptions,
24
25
  ): Promise<operations.DeploymentInvokeResponseBody | undefined> {
25
26
  return unwrapAsync(deploymentsInvoke(
@@ -45,10 +45,7 @@ export class Feedback extends ClientSDK {
45
45
  }
46
46
 
47
47
  /**
48
- * Upload a file
49
- *
50
- * @remarks
51
- * Files are used to upload documents that can be used with features like Deployments.
48
+ * Create transcription
52
49
  */
53
50
  async create(
54
51
  request?: operations.PostV2FeedbackRequestBody | undefined,
@@ -11,9 +11,7 @@ import { modelsCreateVertex } from "../funcs/modelsCreateVertex.js";
11
11
  import { modelsDelete } from "../funcs/modelsDelete.js";
12
12
  import { modelsDisable } from "../funcs/modelsDisable.js";
13
13
  import { modelsEnable } from "../funcs/modelsEnable.js";
14
- import { modelsImportLitellm } from "../funcs/modelsImportLitellm.js";
15
14
  import { modelsList } from "../funcs/modelsList.js";
16
- import { modelsListLitellm } from "../funcs/modelsListLitellm.js";
17
15
  import { modelsUpdate } from "../funcs/modelsUpdate.js";
18
16
  import { modelsUpdateAutorouter } from "../funcs/modelsUpdateAutorouter.js";
19
17
  import { modelsUpdateAwsBedrock } from "../funcs/modelsUpdateAwsBedrock.js";
@@ -21,7 +19,6 @@ import { modelsUpdateOpenaiLike } from "../funcs/modelsUpdateOpenaiLike.js";
21
19
  import { modelsValidate } from "../funcs/modelsValidate.js";
22
20
  import { modelsValidateAwsBedrock } from "../funcs/modelsValidateAwsBedrock.js";
23
21
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
24
- import * as components from "../models/components/index.js";
25
22
  import * as operations from "../models/operations/index.js";
26
23
  import { unwrapAsync } from "../types/fp.js";
27
24
 
@@ -145,38 +142,6 @@ export class Models extends ClientSDK {
145
142
  ));
146
143
  }
147
144
 
148
- /**
149
- * Import models from LiteLLM
150
- *
151
- * @remarks
152
- * Bulk-imports a list of LiteLLM model definitions into the workspace model garden.
153
- */
154
- async importLitellm(
155
- request: Array<components.LiteLLMModel> | null,
156
- options?: RequestOptions,
157
- ): Promise<Array<components.ModelDocument>> {
158
- return unwrapAsync(modelsImportLitellm(
159
- this,
160
- request,
161
- options,
162
- ));
163
- }
164
-
165
- /**
166
- * List models from configured LiteLLM instance
167
- *
168
- * @remarks
169
- * Fetches the list of models from the LiteLLM instance configured for the workspace. Requires a stored LiteLLM integration.
170
- */
171
- async listLitellm(
172
- options?: RequestOptions,
173
- ): Promise<Array<{ [k: string]: any }>> {
174
- return unwrapAsync(modelsListLitellm(
175
- this,
176
- options,
177
- ));
178
- }
179
-
180
145
  /**
181
146
  * Create OpenAI-compatible custom model
182
147
  *
@@ -22,13 +22,13 @@ export class OrqResponses extends ClientSDK {
22
22
  * Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.
23
23
  */
24
24
  async create(
25
- requestBody: operations.CreateAgentResponseRequestRequestBody,
25
+ agentResponseRequest: components.AgentResponseRequest,
26
26
  agentKey: string,
27
27
  options?: RequestOptions & { acceptHeaderOverride?: CreateAcceptEnum },
28
28
  ): Promise<operations.CreateAgentResponseRequestResponse> {
29
29
  return unwrapAsync(agentsResponsesCreate(
30
30
  this,
31
- requestBody,
31
+ agentResponseRequest,
32
32
  agentKey,
33
33
  options,
34
34
  ));
@@ -35,7 +35,7 @@ export class Prompts extends ClientSDK {
35
35
  * Create a prompt
36
36
  */
37
37
  async create(
38
- request?: operations.CreatePromptRequestBody | undefined,
38
+ request?: operations.CreatePromptCreatePromptRequest | undefined,
39
39
  options?: RequestOptions,
40
40
  ): Promise<operations.CreatePromptPrompt> {
41
41
  return unwrapAsync(promptsCreate(
package/src/lib/config.ts CHANGED
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0",
61
- sdkVersion: "4.10.26",
62
- genVersion: "2.907.0",
63
- userAgent: "speakeasy-sdk/typescript 4.10.26 2.907.0 2.0 @orq-ai/node",
61
+ sdkVersion: "4.10.30",
62
+ genVersion: "2.911.0",
63
+ userAgent: "speakeasy-sdk/typescript 4.10.30 2.911.0 2.0 @orq-ai/node",
64
64
  } as const;
@@ -2,12 +2,17 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- // Ensure ReadableStream always declares [Symbol.asyncIterator] so the
6
- // override keyword works consistently regardless of installed type
7
- // definitions (e.g. bun-types omits it from its ReadableStream).
5
+ // Some environments' type definitions do not include ReadableStream's async
6
+ // iterator, even though the runtime supports it or this class polyfills it.
7
+ // Declare the method here so Stream can override it and preserve T in for-await.
8
8
  declare global {
9
9
  interface ReadableStream<R = any> {
10
- [Symbol.asyncIterator](): AsyncIterableIterator<R>;
10
+ [Symbol.asyncIterator](): {
11
+ next(): Promise<IteratorResult<R, undefined>>;
12
+ throw?(e?: unknown): Promise<IteratorResult<R, undefined>>;
13
+ return?(): Promise<IteratorResult<R, undefined>>;
14
+ [Symbol.asyncIterator](): any;
15
+ };
11
16
  }
12
17
  }
13
18
 
@@ -81,8 +86,11 @@ export class EventStream<T extends SseMessage<unknown>>
81
86
  });
82
87
  }
83
88
 
84
- // Polyfill for older browsers
85
- override [Symbol.asyncIterator](): AsyncIterableIterator<T> {
89
+ // Use ReadableStream's iterator return type instead of `any` so stream events
90
+ // keep their generated type in for-await loops.
91
+ override [Symbol.asyncIterator](): ReturnType<
92
+ ReadableStream<T>[typeof Symbol.asyncIterator]
93
+ > {
86
94
  const fn = (ReadableStream.prototype as any)[Symbol.asyncIterator];
87
95
  if (typeof fn === "function") return fn.call(this);
88
96
  const reader = this.getReader();
@@ -108,7 +116,7 @@ export class EventStream<T extends SseMessage<unknown>>
108
116
  [Symbol.asyncIterator]() {
109
117
  return this;
110
118
  },
111
- };
119
+ } as ReturnType<ReadableStream<T>[typeof Symbol.asyncIterator]>;
112
120
  }
113
121
  }
114
122
 
@@ -13,9 +13,12 @@ import {
13
13
  } from "./azurefoundrydeploymentmasterdata.js";
14
14
 
15
15
  export type AzureFoundryDeployment = {
16
+ baseUrl?: string | undefined;
16
17
  id: string;
17
18
  masterData?: AzureFoundryDeploymentMasterData | undefined;
18
19
  model: string;
20
+ publisher?: string | undefined;
21
+ wire?: string | undefined;
19
22
  };
20
23
 
21
24
  /** @internal */
@@ -24,11 +27,15 @@ export const AzureFoundryDeployment$inboundSchema: z.ZodType<
24
27
  z.ZodTypeDef,
25
28
  unknown
26
29
  > = z.object({
30
+ base_url: z.string().optional(),
27
31
  id: z.string(),
28
32
  master_data: AzureFoundryDeploymentMasterData$inboundSchema.optional(),
29
33
  model: z.string(),
34
+ publisher: z.string().optional(),
35
+ wire: z.string().optional(),
30
36
  }).transform((v) => {
31
37
  return remap$(v, {
38
+ "base_url": "baseUrl",
32
39
  "master_data": "masterData",
33
40
  });
34
41
  });
@@ -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_01kvajvtk94v0ncrtv45kvcpyc"),
43
+ _id: z.string().default("reasoning_01kvp3fxa50180pxntqhvqd0jy"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-06-17T10:43:19.596Z",
141
+ "2026-06-21T22:05:22.015Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2372,7 +2372,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2372
2372
  ),
2373
2373
  reviewed_by_id: z.string(),
2374
2374
  reviewed_at: z.string().datetime({ offset: true }).default(
2375
- "2026-06-17T10:43:37.275Z",
2375
+ "2026-06-21T22:05:51.503Z",
2376
2376
  ).transform(v => new Date(v)),
2377
2377
  type: z.literal("string_array"),
2378
2378
  values: z.array(z.string()),
@@ -2417,7 +2417,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2417
2417
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2418
2418
  reviewed_by_id: z.string(),
2419
2419
  reviewed_at: z.string().datetime({ offset: true }).default(
2420
- "2026-06-17T10:43:37.274Z",
2420
+ "2026-06-21T22:05:51.501Z",
2421
2421
  ).transform(v => new Date(v)),
2422
2422
  type: z.literal("number"),
2423
2423
  value: z.number(),
@@ -2463,7 +2463,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2463
2463
  source: EvaluationsSource$inboundSchema.default("orq"),
2464
2464
  reviewed_by_id: z.string(),
2465
2465
  reviewed_at: z.string().datetime({ offset: true }).default(
2466
- "2026-06-17T10:43:37.274Z",
2466
+ "2026-06-21T22:05:51.500Z",
2467
2467
  ).transform(v => new Date(v)),
2468
2468
  type: z.literal("string"),
2469
2469
  value: z.string(),
@@ -2546,7 +2546,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2546
2546
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2547
2547
  .optional(),
2548
2548
  updated: z.string().datetime({ offset: true }).default(
2549
- "2026-06-17T10:43:19.596Z",
2549
+ "2026-06-21T22:05:22.015Z",
2550
2550
  ).transform(v => new Date(v)),
2551
2551
  }).transform((v) => {
2552
2552
  return remap$(v, {
@@ -409,7 +409,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
409
409
  z.ZodTypeDef,
410
410
  unknown
411
411
  > = z.object({
412
- _id: z.string().default("01KVAJVV35Z3NGTMBTNB4KPR1X"),
412
+ _id: z.string().default("01KVP3FXX37QDRG11G7XDGZPZR"),
413
413
  display_name: z.string(),
414
414
  description: z.nullable(z.string()).optional(),
415
415
  status: CreateDatasourceStatus$inboundSchema,
@@ -2193,8 +2193,8 @@ export const Typescript$inboundSchema: z.ZodType<
2193
2193
  > = z.object({
2194
2194
  _id: z.string(),
2195
2195
  description: z.string(),
2196
- created: z.string().default("2026-06-17T10:43:20.734Z"),
2197
- updated: z.string().default("2026-06-17T10:43:20.734Z"),
2196
+ created: z.string().default("2026-06-21T22:05:24.014Z"),
2197
+ updated: z.string().default("2026-06-21T22:05:24.014Z"),
2198
2198
  updated_by_id: z.nullable(z.string()).optional(),
2199
2199
  guardrail_config: z.nullable(
2200
2200
  z.union([
@@ -2384,8 +2384,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2384
2384
  .object({
2385
2385
  _id: z.string(),
2386
2386
  description: z.string(),
2387
- created: z.string().default("2026-06-17T10:43:20.734Z"),
2388
- updated: z.string().default("2026-06-17T10:43:20.734Z"),
2387
+ created: z.string().default("2026-06-21T22:05:24.014Z"),
2388
+ updated: z.string().default("2026-06-21T22:05:24.014Z"),
2389
2389
  updated_by_id: z.nullable(z.string()).optional(),
2390
2390
  guardrail_config: z.nullable(
2391
2391
  z.union([
@@ -3210,8 +3210,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3210
3210
  > = z.object({
3211
3211
  _id: z.string(),
3212
3212
  description: z.string(),
3213
- created: z.string().default("2026-06-17T10:43:20.734Z"),
3214
- updated: z.string().default("2026-06-17T10:43:20.734Z"),
3213
+ created: z.string().default("2026-06-21T22:05:24.014Z"),
3214
+ updated: z.string().default("2026-06-21T22:05:24.014Z"),
3215
3215
  updated_by_id: z.nullable(z.string()).optional(),
3216
3216
  guardrail_config: z.nullable(
3217
3217
  z.union([
@@ -3430,8 +3430,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3430
3430
  > = z.object({
3431
3431
  _id: z.string(),
3432
3432
  description: z.string(),
3433
- created: z.string().default("2026-06-17T10:43:20.734Z"),
3434
- updated: z.string().default("2026-06-17T10:43:20.734Z"),
3433
+ created: z.string().default("2026-06-21T22:05:24.014Z"),
3434
+ updated: z.string().default("2026-06-21T22:05:24.014Z"),
3435
3435
  updated_by_id: z.nullable(z.string()).optional(),
3436
3436
  guardrail_config: z.nullable(
3437
3437
  z.union([
@@ -3612,8 +3612,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
3612
3612
  > = z.object({
3613
3613
  _id: z.string(),
3614
3614
  description: z.string(),
3615
- created: z.string().default("2026-06-17T10:43:20.734Z"),
3616
- updated: z.string().default("2026-06-17T10:43:20.734Z"),
3615
+ created: z.string().default("2026-06-21T22:05:24.014Z"),
3616
+ updated: z.string().default("2026-06-21T22:05:24.014Z"),
3617
3617
  updated_by_id: z.nullable(z.string()).optional(),
3618
3618
  guardrail_config: z.nullable(
3619
3619
  z.union([
@@ -3772,8 +3772,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
3772
3772
  .object({
3773
3773
  _id: z.string(),
3774
3774
  description: z.string(),
3775
- created: z.string().default("2026-06-17T10:43:20.734Z"),
3776
- updated: z.string().default("2026-06-17T10:43:20.734Z"),
3775
+ created: z.string().default("2026-06-21T22:05:24.014Z"),
3776
+ updated: z.string().default("2026-06-21T22:05:24.014Z"),
3777
3777
  updated_by_id: z.nullable(z.string()).optional(),
3778
3778
  guardrail_config: z.nullable(
3779
3779
  z.union([
@@ -4143,8 +4143,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4143
4143
  > = z.object({
4144
4144
  _id: z.string(),
4145
4145
  description: z.string(),
4146
- created: z.string().default("2026-06-17T10:43:20.734Z"),
4147
- updated: z.string().default("2026-06-17T10:43:20.734Z"),
4146
+ created: z.string().default("2026-06-21T22:05:24.014Z"),
4147
+ updated: z.string().default("2026-06-21T22:05:24.014Z"),
4148
4148
  updated_by_id: z.nullable(z.string()).optional(),
4149
4149
  guardrail_config: z.nullable(
4150
4150
  z.union([
@@ -4363,8 +4363,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4363
4363
  > = z.object({
4364
4364
  _id: z.string(),
4365
4365
  description: z.string(),
4366
- created: z.string().default("2026-06-17T10:43:20.734Z"),
4367
- updated: z.string().default("2026-06-17T10:43:20.734Z"),
4366
+ created: z.string().default("2026-06-21T22:05:24.014Z"),
4367
+ updated: z.string().default("2026-06-21T22:05:24.014Z"),
4368
4368
  updated_by_id: z.nullable(z.string()).optional(),
4369
4369
  guardrail_config: z.nullable(
4370
4370
  z.union([
@@ -1898,7 +1898,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1898
1898
  z.ZodTypeDef,
1899
1899
  unknown
1900
1900
  > = z.object({
1901
- _id: z.string().default("tool_01KVAJVTYDG517WHABGS81RD7V"),
1901
+ _id: z.string().default("tool_01KVP3FXPPD9ND375WF0Y2Q3BT"),
1902
1902
  path: z.string(),
1903
1903
  key: z.string(),
1904
1904
  display_name: z.string().optional(),
@@ -1995,7 +1995,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
1995
1995
  z.ZodTypeDef,
1996
1996
  unknown
1997
1997
  > = z.object({
1998
- id: z.string().default("01KVAJVTYC1YV1ZD7DZVWRHTZB"),
1998
+ id: z.string().default("01KVP3FXPM1MM5TV95EPX9JM1G"),
1999
1999
  name: z.string(),
2000
2000
  description: z.string().optional(),
2001
2001
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2051,7 +2051,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2051
2051
  z.ZodTypeDef,
2052
2052
  unknown
2053
2053
  > = z.object({
2054
- _id: z.string().default("tool_01KVAJVTYASAKDZTDZ1YQKM4NH"),
2054
+ _id: z.string().default("tool_01KVP3FXPKWRE1EHF42R4TTWYM"),
2055
2055
  path: z.string(),
2056
2056
  key: z.string(),
2057
2057
  display_name: z.string().optional(),
@@ -2237,7 +2237,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
2237
2237
  z.ZodTypeDef,
2238
2238
  unknown
2239
2239
  > = z.object({
2240
- _id: z.string().default("tool_01KVAJVTY8N2R87YA9XSQQK84J"),
2240
+ _id: z.string().default("tool_01KVP3FXPG5GKV5962XTJ0AW9K"),
2241
2241
  path: z.string(),
2242
2242
  key: z.string(),
2243
2243
  display_name: z.string().optional(),
@@ -2330,7 +2330,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2330
2330
  z.ZodTypeDef,
2331
2331
  unknown
2332
2332
  > = z.object({
2333
- _id: z.string().default("tool_01KVAJVTY5R8SWE18AN7D62N3H"),
2333
+ _id: z.string().default("tool_01KVP3FXPEM7CTAF0FWSASCFRT"),
2334
2334
  path: z.string(),
2335
2335
  key: z.string(),
2336
2336
  display_name: z.string().optional(),
@@ -2431,7 +2431,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2431
2431
  z.ZodTypeDef,
2432
2432
  unknown
2433
2433
  > = z.object({
2434
- _id: z.string().default("tool_01KVAJVTY2FSW6FNEG1R3VK133"),
2434
+ _id: z.string().default("tool_01KVP3FXPBABM7NN9T3RQ30SD9"),
2435
2435
  path: z.string(),
2436
2436
  key: z.string(),
2437
2437
  display_name: z.string().optional(),
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
767
767
  z.ZodTypeDef,
768
768
  unknown
769
769
  > = z.object({
770
- _id: z.string().default("tool_01KVAJVTXFBKRY0YWPZ554NVZZ"),
770
+ _id: z.string().default("tool_01KVP3FXNQ935MJP1RM3QPZV7M"),
771
771
  path: z.string(),
772
772
  key: z.string(),
773
773
  display_name: z.string().optional(),
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
864
864
  z.ZodTypeDef,
865
865
  unknown
866
866
  > = z.object({
867
- id: z.string().default("01KVAJVTXD6XAKA2GZD084GT30"),
867
+ id: z.string().default("01KVP3FXNPHQWK87STTR5YW8YB"),
868
868
  name: z.string(),
869
869
  description: z.string().optional(),
870
870
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -917,7 +917,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
917
917
  z.ZodTypeDef,
918
918
  unknown
919
919
  > = z.object({
920
- _id: z.string().default("tool_01KVAJVTXAA7CBSHE6H1HVN0JZ"),
920
+ _id: z.string().default("tool_01KVP3FXNNYKT5QJZT6T3WY0AT"),
921
921
  path: z.string(),
922
922
  key: z.string(),
923
923
  display_name: z.string().optional(),
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1102
1102
  z.ZodTypeDef,
1103
1103
  unknown
1104
1104
  > = z.object({
1105
- _id: z.string().default("tool_01KVAJVTWTH47E6QQ39Z5K0XB8"),
1105
+ _id: z.string().default("tool_01KVP3FXNJ0D02SDZ1E03CV4WH"),
1106
1106
  path: z.string(),
1107
1107
  key: z.string(),
1108
1108
  display_name: z.string().optional(),
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1195
1195
  z.ZodTypeDef,
1196
1196
  unknown
1197
1197
  > = z.object({
1198
- _id: z.string().default("tool_01KVAJVTWQ95JAGPS2V3EC28AB"),
1198
+ _id: z.string().default("tool_01KVP3FXNGYAR08VYHDFHDWMR3"),
1199
1199
  path: z.string(),
1200
1200
  key: z.string(),
1201
1201
  display_name: z.string().optional(),
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1297
1297
  z.ZodTypeDef,
1298
1298
  unknown
1299
1299
  > = z.object({
1300
- _id: z.string().default("tool_01KVAJVTWKEJ0B1BEEFVMTXEEK"),
1300
+ _id: z.string().default("tool_01KVP3FXNEZ1W244D318BC6MXP"),
1301
1301
  path: z.string(),
1302
1302
  key: z.string(),
1303
1303
  display_name: z.string().optional(),