@orq-ai/node 4.16.1 → 4.16.3

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 (242) hide show
  1. package/README.md +5 -3
  2. package/funcs/routerClassifyCreate.d.ts +10 -2
  3. package/funcs/routerClassifyCreate.d.ts.map +1 -1
  4. package/funcs/routerClassifyCreate.js +10 -2
  5. package/funcs/routerClassifyCreate.js.map +1 -1
  6. package/funcs/routerDecisionsCreate.d.ts +10 -2
  7. package/funcs/routerDecisionsCreate.d.ts.map +1 -1
  8. package/funcs/routerDecisionsCreate.js +11 -2
  9. package/funcs/routerDecisionsCreate.js.map +1 -1
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +3 -3
  12. package/lib/config.js +3 -3
  13. package/models/components/classifycacheconfig.d.ts +33 -0
  14. package/models/components/classifycacheconfig.d.ts.map +1 -0
  15. package/models/components/classifycacheconfig.js +58 -0
  16. package/models/components/classifycacheconfig.js.map +1 -0
  17. package/models/components/classifytimeoutconfig.d.ts +15 -0
  18. package/models/components/classifytimeoutconfig.d.ts.map +1 -0
  19. package/models/components/classifytimeoutconfig.js +54 -0
  20. package/models/components/classifytimeoutconfig.js.map +1 -0
  21. package/models/components/environment.d.ts +1 -1
  22. package/models/components/index.d.ts +7 -0
  23. package/models/components/index.d.ts.map +1 -1
  24. package/models/components/index.js +7 -0
  25. package/models/components/index.js.map +1 -1
  26. package/models/components/reasoningpart.js +1 -1
  27. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -0
  28. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
  29. package/models/components/responsefunctioncallargumentsdonestreamevent.js +1 -0
  30. package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
  31. package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +16 -0
  32. package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -1
  33. package/models/components/responseimagegenerationcallpartialimagestreamevent.js +5 -0
  34. package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -1
  35. package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +4 -0
  36. package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -1
  37. package/models/components/responsereasoningsummarypartaddedstreamevent.js +1 -0
  38. package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -1
  39. package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +4 -0
  40. package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -1
  41. package/models/components/responsereasoningsummarypartdonestreamevent.js +1 -0
  42. package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -1
  43. package/models/components/responseshellcallcommandaddedstreamevent.d.ts +35 -0
  44. package/models/components/responseshellcallcommandaddedstreamevent.d.ts.map +1 -0
  45. package/models/components/responseshellcallcommandaddedstreamevent.js +61 -0
  46. package/models/components/responseshellcallcommandaddedstreamevent.js.map +1 -0
  47. package/models/components/responseshellcallcommanddeltastreamevent.d.ts +39 -0
  48. package/models/components/responseshellcallcommanddeltastreamevent.d.ts.map +1 -0
  49. package/models/components/responseshellcallcommanddeltastreamevent.js +62 -0
  50. package/models/components/responseshellcallcommanddeltastreamevent.js.map +1 -0
  51. package/models/components/responseshellcallcommanddonestreamevent.d.ts +35 -0
  52. package/models/components/responseshellcallcommanddonestreamevent.d.ts.map +1 -0
  53. package/models/components/responseshellcallcommanddonestreamevent.js +61 -0
  54. package/models/components/responseshellcallcommanddonestreamevent.js.map +1 -0
  55. package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts +41 -0
  56. package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts.map +1 -0
  57. package/models/components/responseshellcalloutputcontentdeltastreamevent.js +63 -0
  58. package/models/components/responseshellcalloutputcontentdeltastreamevent.js.map +1 -0
  59. package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts +38 -0
  60. package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts.map +1 -0
  61. package/models/components/responseshellcalloutputcontentdonestreamevent.js +63 -0
  62. package/models/components/responseshellcalloutputcontentdonestreamevent.js.map +1 -0
  63. package/models/components/responsestreamevent.d.ts +6 -1
  64. package/models/components/responsestreamevent.d.ts.map +1 -1
  65. package/models/components/responsestreamevent.js +10 -0
  66. package/models/components/responsestreamevent.js.map +1 -1
  67. package/models/errors/createclassify.d.ts +23 -2
  68. package/models/errors/createclassify.d.ts.map +1 -1
  69. package/models/errors/createclassify.js +30 -2
  70. package/models/errors/createclassify.js.map +1 -1
  71. package/models/errors/createdecisions.d.ts +23 -2
  72. package/models/errors/createdecisions.d.ts.map +1 -1
  73. package/models/errors/createdecisions.js +30 -2
  74. package/models/errors/createdecisions.js.map +1 -1
  75. package/models/operations/createclassify.d.ts +4 -0
  76. package/models/operations/createclassify.d.ts.map +1 -1
  77. package/models/operations/createclassify.js +2 -0
  78. package/models/operations/createclassify.js.map +1 -1
  79. package/models/operations/createdecisions.d.ts +4 -0
  80. package/models/operations/createdecisions.d.ts.map +1 -1
  81. package/models/operations/createdecisions.js +2 -0
  82. package/models/operations/createdecisions.js.map +1 -1
  83. package/models/operations/createprompt.d.ts +2 -0
  84. package/models/operations/createprompt.d.ts.map +1 -1
  85. package/models/operations/createprompt.js +2 -0
  86. package/models/operations/createprompt.js.map +1 -1
  87. package/models/operations/createtool.js +4 -4
  88. package/models/operations/deploymentinvoke.d.ts +2 -0
  89. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  90. package/models/operations/deploymentinvoke.js +2 -0
  91. package/models/operations/deploymentinvoke.js.map +1 -1
  92. package/models/operations/deployments.d.ts +2 -0
  93. package/models/operations/deployments.d.ts.map +1 -1
  94. package/models/operations/deployments.js +2 -0
  95. package/models/operations/deployments.js.map +1 -1
  96. package/models/operations/deploymentstream.d.ts +2 -0
  97. package/models/operations/deploymentstream.d.ts.map +1 -1
  98. package/models/operations/deploymentstream.js +2 -0
  99. package/models/operations/deploymentstream.js.map +1 -1
  100. package/models/operations/getallprompts.d.ts +2 -0
  101. package/models/operations/getallprompts.d.ts.map +1 -1
  102. package/models/operations/getallprompts.js +2 -0
  103. package/models/operations/getallprompts.js.map +1 -1
  104. package/models/operations/getalltools.js +4 -4
  105. package/models/operations/getoneprompt.d.ts +2 -0
  106. package/models/operations/getoneprompt.d.ts.map +1 -1
  107. package/models/operations/getoneprompt.js +2 -0
  108. package/models/operations/getoneprompt.js.map +1 -1
  109. package/models/operations/getpromptversion.d.ts +2 -0
  110. package/models/operations/getpromptversion.d.ts.map +1 -1
  111. package/models/operations/getpromptversion.js +2 -0
  112. package/models/operations/getpromptversion.js.map +1 -1
  113. package/models/operations/getv2humanevalsets.js +2 -2
  114. package/models/operations/getv2humanevalsetsid.js +2 -2
  115. package/models/operations/listpromptversions.d.ts +2 -0
  116. package/models/operations/listpromptversions.d.ts.map +1 -1
  117. package/models/operations/listpromptversions.js +2 -0
  118. package/models/operations/listpromptversions.js.map +1 -1
  119. package/models/operations/patchv2humanevalsetsid.js +2 -2
  120. package/models/operations/postv2feedbackevaluation.js +4 -4
  121. package/models/operations/postv2humanevalsets.js +2 -2
  122. package/models/operations/retrievetool.js +4 -4
  123. package/models/operations/runagent.js +1 -1
  124. package/models/operations/streamrunagent.js +1 -1
  125. package/models/operations/updateprompt.d.ts +2 -0
  126. package/models/operations/updateprompt.d.ts.map +1 -1
  127. package/models/operations/updateprompt.js +2 -0
  128. package/models/operations/updateprompt.js.map +1 -1
  129. package/models/operations/updatetool.js +4 -4
  130. package/package.json +3 -3
  131. package/packages/orq-rc/src/funcs/responsesCompact.ts +1 -1
  132. package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +20 -1
  133. package/packages/orq-rc/src/funcs/routerDecisionsCreate.ts +17 -1
  134. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +1 -1
  135. package/packages/orq-rc/src/lib/config.ts +3 -3
  136. package/packages/orq-rc/src/models/components/classifycacheconfig.ts +59 -0
  137. package/packages/orq-rc/src/models/components/classifytimeoutconfig.ts +39 -0
  138. package/packages/orq-rc/src/models/components/environment.ts +1 -1
  139. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +12 -3
  140. package/packages/orq-rc/src/models/components/index.ts +8 -1
  141. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +2 -2
  142. package/packages/orq-rc/src/models/components/mcpgatewayplugin.ts +16 -0
  143. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  144. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
  145. package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
  146. package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
  147. package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
  148. package/packages/orq-rc/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
  149. package/packages/orq-rc/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
  150. package/packages/orq-rc/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
  151. package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
  152. package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
  153. package/packages/orq-rc/src/models/components/responsestreamevent.ts +30 -0
  154. package/packages/orq-rc/src/models/components/routingruleplugin.ts +22 -0
  155. package/packages/orq-rc/src/models/components/signalscheck.ts +51 -0
  156. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
  157. package/packages/orq-rc/src/models/errors/createclassify.ts +54 -2
  158. package/packages/orq-rc/src/models/errors/createdecisions.ts +54 -2
  159. package/packages/orq-rc/src/models/errors/createmoderation.ts +2 -2
  160. package/packages/orq-rc/src/models/operations/compactresponse.ts +4 -4
  161. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +1 -1
  162. package/packages/orq-rc/src/models/operations/createclassify.ts +6 -0
  163. package/packages/orq-rc/src/models/operations/createdecisions.ts +6 -0
  164. package/packages/orq-rc/src/models/operations/createmoderation.ts +3 -3
  165. package/packages/orq-rc/src/models/operations/createprompt.ts +4 -2
  166. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  167. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +2 -2
  168. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2 -0
  169. package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
  170. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4 -2
  171. package/packages/orq-rc/src/models/operations/getallprompts.ts +3 -1
  172. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  173. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3 -1
  174. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3 -1
  175. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  176. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  177. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3 -1
  178. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  179. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  180. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  181. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  182. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  183. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  184. package/packages/orq-rc/src/models/operations/tracesgetspan.ts +3 -0
  185. package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -2
  186. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  187. package/packages/orq-rc/src/sdk/classify.ts +13 -1
  188. package/packages/orq-rc/src/sdk/decisions.ts +9 -1
  189. package/packages/orq-rc/src/sdk/responses.ts +1 -1
  190. package/sdk/classify.d.ts +9 -1
  191. package/sdk/classify.d.ts.map +1 -1
  192. package/sdk/classify.js +9 -1
  193. package/sdk/classify.js.map +1 -1
  194. package/sdk/decisions.d.ts +9 -1
  195. package/sdk/decisions.d.ts.map +1 -1
  196. package/sdk/decisions.js +9 -1
  197. package/sdk/decisions.js.map +1 -1
  198. package/src/funcs/routerClassifyCreate.ts +16 -1
  199. package/src/funcs/routerDecisionsCreate.ts +17 -1
  200. package/src/lib/config.ts +3 -3
  201. package/src/models/components/classifycacheconfig.ts +59 -0
  202. package/src/models/components/classifytimeoutconfig.ts +39 -0
  203. package/src/models/components/environment.ts +1 -1
  204. package/src/models/components/index.ts +7 -0
  205. package/src/models/components/reasoningpart.ts +1 -1
  206. package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
  207. package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
  208. package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
  209. package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
  210. package/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
  211. package/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
  212. package/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
  213. package/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
  214. package/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
  215. package/src/models/components/responsestreamevent.ts +30 -0
  216. package/src/models/errors/createclassify.ts +54 -2
  217. package/src/models/errors/createdecisions.ts +54 -2
  218. package/src/models/operations/createclassify.ts +6 -0
  219. package/src/models/operations/createdecisions.ts +6 -0
  220. package/src/models/operations/createprompt.ts +2 -0
  221. package/src/models/operations/createtool.ts +4 -4
  222. package/src/models/operations/deploymentinvoke.ts +2 -0
  223. package/src/models/operations/deployments.ts +2 -0
  224. package/src/models/operations/deploymentstream.ts +2 -0
  225. package/src/models/operations/getallprompts.ts +2 -0
  226. package/src/models/operations/getalltools.ts +4 -4
  227. package/src/models/operations/getoneprompt.ts +2 -0
  228. package/src/models/operations/getpromptversion.ts +2 -0
  229. package/src/models/operations/getv2humanevalsets.ts +2 -2
  230. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  231. package/src/models/operations/listpromptversions.ts +2 -0
  232. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  233. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  234. package/src/models/operations/postv2humanevalsets.ts +2 -2
  235. package/src/models/operations/retrievetool.ts +4 -4
  236. package/src/models/operations/runagent.ts +1 -1
  237. package/src/models/operations/streamrunagent.ts +1 -1
  238. package/src/models/operations/updateprompt.ts +2 -0
  239. package/src/models/operations/updatetool.ts +4 -4
  240. package/src/sdk/classify.ts +9 -1
  241. package/src/sdk/decisions.ts +9 -1
  242. package/packages/orq-rc/src/models/components/publiccompactionitem.ts +0 -79
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * File data for the content part. Must contain either file_data or uri, but not both.
12
+ * File data for the content part. Must contain exactly one of file_data, file_id or uri.
13
13
  */
14
14
  export type FileContentPartSchema = {
15
15
  /**
@@ -17,13 +17,17 @@ export type FileContentPartSchema = {
17
17
  */
18
18
  fileData?: string | undefined;
19
19
  /**
20
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
20
+ * URL of the file. Supported for PDFs on Anthropic Claude models and for `https://` and Google Cloud Storage `gs://` URIs on Vertex AI Gemini models.
21
21
  */
22
22
  uri?: string | undefined;
23
23
  /**
24
- * MIME type of the file (e.g., application/pdf, image/png)
24
+ * MIME type of the file (e.g., application/pdf, image/png). Inferred from `filename` or the URI extension when omitted.
25
25
  */
26
26
  mimeType?: string | undefined;
27
+ /**
28
+ * A provider file reference: a Google Cloud Storage `gs://` URI for Vertex AI Gemini models, or an OpenAI file ID (`file-...`) for OpenAI models.
29
+ */
30
+ fileId?: string | undefined;
27
31
  /**
28
32
  * The name of the file, used when passing the file to the model as a string.
29
33
  */
@@ -39,10 +43,12 @@ export const FileContentPartSchema$inboundSchema: z.ZodType<
39
43
  file_data: z.string().optional(),
40
44
  uri: z.string().optional(),
41
45
  mimeType: z.string().optional(),
46
+ file_id: z.string().optional(),
42
47
  filename: z.string().optional(),
43
48
  }).transform((v) => {
44
49
  return remap$(v, {
45
50
  "file_data": "fileData",
51
+ "file_id": "fileId",
46
52
  });
47
53
  });
48
54
  /** @internal */
@@ -50,6 +56,7 @@ export type FileContentPartSchema$Outbound = {
50
56
  file_data?: string | undefined;
51
57
  uri?: string | undefined;
52
58
  mimeType?: string | undefined;
59
+ file_id?: string | undefined;
53
60
  filename?: string | undefined;
54
61
  };
55
62
 
@@ -62,10 +69,12 @@ export const FileContentPartSchema$outboundSchema: z.ZodType<
62
69
  fileData: z.string().optional(),
63
70
  uri: z.string().optional(),
64
71
  mimeType: z.string().optional(),
72
+ fileId: z.string().optional(),
65
73
  filename: z.string().optional(),
66
74
  }).transform((v) => {
67
75
  return remap$(v, {
68
76
  fileData: "file_data",
77
+ fileId: "file_id",
69
78
  });
70
79
  });
71
80
 
@@ -85,12 +85,14 @@ export * from "./chunksservicelistresponse.js";
85
85
  export * from "./chunksservicesetenabledrequest.js";
86
86
  export * from "./chunksserviceupdaterequest.js";
87
87
  export * from "./classifyanswer.js";
88
+ export * from "./classifycacheconfig.js";
88
89
  export * from "./classifychoiceanswer.js";
89
90
  export * from "./classifyinputtokensdetails.js";
90
91
  export * from "./classifynoulanswer.js";
91
92
  export * from "./classifyrefusalanswer.js";
92
93
  export * from "./classifyretryconfig.js";
93
94
  export * from "./classifyscoreanswer.js";
95
+ export * from "./classifytimeoutconfig.js";
94
96
  export * from "./classifyusage.js";
95
97
  export * from "./codeinterpretertoolinput.js";
96
98
  export * from "./codetoolinput.js";
@@ -444,7 +446,6 @@ export * from "./projectbudgetscope.js";
444
446
  export * from "./projectbudgetscoperestresponse.js";
445
447
  export * from "./providerbudgetscope.js";
446
448
  export * from "./providertoolinput.js";
447
- export * from "./publiccompactionitem.js";
448
449
  export * from "./publiccontact.js";
449
450
  export * from "./publicembeddingdata.js";
450
451
  export * from "./publicembeddingusage.js";
@@ -546,6 +547,11 @@ export * from "./responsereasoningtextdonestreamevent.js";
546
547
  export * from "./responserefusaldeltastreamevent.js";
547
548
  export * from "./responserefusaldonestreamevent.js";
548
549
  export * from "./responseretryconfig.js";
550
+ export * from "./responseshellcallcommandaddedstreamevent.js";
551
+ export * from "./responseshellcallcommanddeltastreamevent.js";
552
+ export * from "./responseshellcallcommanddonestreamevent.js";
553
+ export * from "./responseshellcalloutputcontentdeltastreamevent.js";
554
+ export * from "./responseshellcalloutputcontentdonestreamevent.js";
549
555
  export * from "./responsestartedevent.js";
550
556
  export * from "./responsestreamevent.js";
551
557
  export * from "./responsestreamingevent.js";
@@ -592,6 +598,7 @@ export * from "./sharing.js";
592
598
  export * from "./sharingallprojects.js";
593
599
  export * from "./sharingselectedprojects.js";
594
600
  export * from "./sidekicktoolinput.js";
601
+ export * from "./signalscheck.js";
595
602
  export * from "./singleprojectscope.js";
596
603
  export * from "./skill.js";
597
604
  export * from "./smartrouter.js";
@@ -316,7 +316,7 @@ export type InvokeDeploymentRequest24 = {
316
316
  type: "file";
317
317
  cacheControl?: TwoCacheControl | undefined;
318
318
  /**
319
- * File data for the content part. Must contain either file_data or uri, but not both.
319
+ * File data for the content part. Must contain exactly one of file_data, file_id or uri.
320
320
  */
321
321
  file: FileContentPartSchema;
322
322
  };
@@ -683,7 +683,7 @@ export type Two4 = {
683
683
  type: "file";
684
684
  cacheControl?: InvokeDeploymentRequest2CacheControl | undefined;
685
685
  /**
686
- * File data for the content part. Must contain either file_data or uri, but not both.
686
+ * File data for the content part. Must contain exactly one of file_data, file_id or uri.
687
687
  */
688
688
  file: FileContentPartSchema;
689
689
  };
@@ -18,6 +18,14 @@ export type McpGatewayPlugin = {
18
18
  onFailure?: string | undefined;
19
19
  threshold?: number | undefined;
20
20
  mask?: Array<string> | undefined;
21
+ /**
22
+ * Regions of coverage by ISO 3166-1 alpha-2 code, or ["all"]. Combines with entities: the two selections are unioned.
23
+ */
24
+ regions?: Array<string> | undefined;
25
+ /**
26
+ * Per-entity-type confidence cutoff. Every key must also appear in entities.
27
+ */
28
+ entityThresholds?: { [k: string]: number } | undefined;
21
29
  };
22
30
 
23
31
  /** @internal */
@@ -32,9 +40,12 @@ export const McpGatewayPlugin$inboundSchema: z.ZodType<
32
40
  on_failure: z.string().optional(),
33
41
  threshold: z.number().optional(),
34
42
  mask: z.array(z.string()).optional(),
43
+ regions: z.array(z.string()).optional(),
44
+ entity_thresholds: z.record(z.number()).optional(),
35
45
  }).transform((v) => {
36
46
  return remap$(v, {
37
47
  "on_failure": "onFailure",
48
+ "entity_thresholds": "entityThresholds",
38
49
  });
39
50
  });
40
51
  /** @internal */
@@ -45,6 +56,8 @@ export type McpGatewayPlugin$Outbound = {
45
56
  on_failure?: string | undefined;
46
57
  threshold?: number | undefined;
47
58
  mask?: Array<string> | undefined;
59
+ regions?: Array<string> | undefined;
60
+ entity_thresholds?: { [k: string]: number } | undefined;
48
61
  };
49
62
 
50
63
  /** @internal */
@@ -59,9 +72,12 @@ export const McpGatewayPlugin$outboundSchema: z.ZodType<
59
72
  onFailure: z.string().optional(),
60
73
  threshold: z.number().optional(),
61
74
  mask: z.array(z.string()).optional(),
75
+ regions: z.array(z.string()).optional(),
76
+ entityThresholds: z.record(z.number()).optional(),
62
77
  }).transform((v) => {
63
78
  return remap$(v, {
64
79
  onFailure: "on_failure",
80
+ entityThresholds: "entity_thresholds",
65
81
  });
66
82
  });
67
83
 
@@ -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_01m4at2ckzmnw0rac1fqcsec9c"),
43
+ _id: z.string().default("reasoning_01m4rt71vbx4rjmxr1m9pwhe3w"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -23,6 +23,10 @@ export type ResponseFunctionCallArgumentsDoneStreamEvent = {
23
23
  * ID of the output item this event refers to.
24
24
  */
25
25
  itemId: string;
26
+ /**
27
+ * The function name.
28
+ */
29
+ name?: string | undefined;
26
30
  /**
27
31
  * Index of the output item in the response output array.
28
32
  */
@@ -48,6 +52,7 @@ export const ResponseFunctionCallArgumentsDoneStreamEvent$inboundSchema:
48
52
  z.object({
49
53
  arguments: z.string(),
50
54
  item_id: z.string(),
55
+ name: z.string().optional(),
51
56
  output_index: z.number().int(),
52
57
  sequence_number: z.number().int(),
53
58
  type: z.literal("response.function_call_arguments.done"),
@@ -15,10 +15,18 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
15
15
  * A `response.image_generation_call.partial_image` server-sent event.
16
16
  */
17
17
  export type ResponseImageGenerationCallPartialImageStreamEvent = {
18
+ /**
19
+ * Image background.
20
+ */
21
+ background?: string | undefined;
18
22
  /**
19
23
  * ID of the output item this event refers to.
20
24
  */
21
25
  itemId: string;
26
+ /**
27
+ * Image encoding format.
28
+ */
29
+ outputFormat?: string | undefined;
22
30
  /**
23
31
  * Index of the output item in the response output array.
24
32
  */
@@ -31,10 +39,18 @@ export type ResponseImageGenerationCallPartialImageStreamEvent = {
31
39
  * Index of the partial image.
32
40
  */
33
41
  partialImageIndex: number;
42
+ /**
43
+ * Image quality.
44
+ */
45
+ quality?: string | undefined;
34
46
  /**
35
47
  * Monotonically increasing sequence number for ordering events.
36
48
  */
37
49
  sequenceNumber: number;
50
+ /**
51
+ * Image dimensions.
52
+ */
53
+ size?: string | undefined;
38
54
  /**
39
55
  * The event type. Discriminates the payload.
40
56
  */
@@ -50,11 +66,15 @@ export const ResponseImageGenerationCallPartialImageStreamEvent$inboundSchema:
50
66
  unknown
51
67
  > = collectExtraKeys$(
52
68
  z.object({
69
+ background: z.string().optional(),
53
70
  item_id: z.string(),
71
+ output_format: z.string().optional(),
54
72
  output_index: z.number().int(),
55
73
  partial_image_b64: z.string(),
56
74
  partial_image_index: z.number().int(),
75
+ quality: z.string().optional(),
57
76
  sequence_number: z.number().int(),
77
+ size: z.string().optional(),
58
78
  type: z.literal("response.image_generation_call.partial_image"),
59
79
  }).catchall(z.any()),
60
80
  "additionalProperties",
@@ -62,6 +82,7 @@ export const ResponseImageGenerationCallPartialImageStreamEvent$inboundSchema:
62
82
  ).transform((v) => {
63
83
  return remap$(v, {
64
84
  "item_id": "itemId",
85
+ "output_format": "outputFormat",
65
86
  "output_index": "outputIndex",
66
87
  "partial_image_b64": "partialImageB64",
67
88
  "partial_image_index": "partialImageIndex",
@@ -31,6 +31,10 @@ export type ResponseReasoningSummaryPartAddedStreamEvent = {
31
31
  * Monotonically increasing sequence number for ordering events.
32
32
  */
33
33
  sequenceNumber: number;
34
+ /**
35
+ * The completed summary part status, when supplied.
36
+ */
37
+ status?: string | undefined;
34
38
  /**
35
39
  * Index of the reasoning summary part.
36
40
  */
@@ -54,6 +58,7 @@ export const ResponseReasoningSummaryPartAddedStreamEvent$inboundSchema:
54
58
  output_index: z.number().int(),
55
59
  part: z.record(z.any()),
56
60
  sequence_number: z.number().int(),
61
+ status: z.string().optional(),
57
62
  summary_index: z.number().int(),
58
63
  type: z.literal("response.reasoning_summary_part.added"),
59
64
  }).catchall(z.any()),
@@ -31,6 +31,10 @@ export type ResponseReasoningSummaryPartDoneStreamEvent = {
31
31
  * Monotonically increasing sequence number for ordering events.
32
32
  */
33
33
  sequenceNumber: number;
34
+ /**
35
+ * The completed summary part status, when supplied.
36
+ */
37
+ status?: string | undefined;
34
38
  /**
35
39
  * Index of the reasoning summary part.
36
40
  */
@@ -54,6 +58,7 @@ export const ResponseReasoningSummaryPartDoneStreamEvent$inboundSchema:
54
58
  output_index: z.number().int(),
55
59
  part: z.record(z.any()),
56
60
  sequence_number: z.number().int(),
61
+ status: z.string().optional(),
57
62
  summary_index: z.number().int(),
58
63
  type: z.literal("response.reasoning_summary_part.done"),
59
64
  }).catchall(z.any()),
@@ -0,0 +1,78 @@
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 {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { Result as SafeParseResult } from "../../types/fp.js";
12
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+
14
+ /**
15
+ * A `response.shell_call_command.added` server-sent event.
16
+ */
17
+ export type ResponseShellCallCommandAddedStreamEvent = {
18
+ /**
19
+ * The shell command.
20
+ */
21
+ command: string;
22
+ /**
23
+ * Index of the shell command.
24
+ */
25
+ commandIndex: number;
26
+ /**
27
+ * Index of the output item in the response output array.
28
+ */
29
+ outputIndex: number;
30
+ /**
31
+ * Monotonically increasing sequence number for ordering events.
32
+ */
33
+ sequenceNumber: number;
34
+ /**
35
+ * The event type. Discriminates the payload.
36
+ */
37
+ type: "response.shell_call_command.added";
38
+ additionalProperties?: { [k: string]: any } | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const ResponseShellCallCommandAddedStreamEvent$inboundSchema: z.ZodType<
43
+ ResponseShellCallCommandAddedStreamEvent,
44
+ z.ZodTypeDef,
45
+ unknown
46
+ > = collectExtraKeys$(
47
+ z.object({
48
+ command: z.string(),
49
+ command_index: z.number().int(),
50
+ output_index: z.number().int(),
51
+ sequence_number: z.number().int(),
52
+ type: z.literal("response.shell_call_command.added"),
53
+ }).catchall(z.any()),
54
+ "additionalProperties",
55
+ true,
56
+ ).transform((v) => {
57
+ return remap$(v, {
58
+ "command_index": "commandIndex",
59
+ "output_index": "outputIndex",
60
+ "sequence_number": "sequenceNumber",
61
+ });
62
+ });
63
+
64
+ export function responseShellCallCommandAddedStreamEventFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<
67
+ ResponseShellCallCommandAddedStreamEvent,
68
+ SDKValidationError
69
+ > {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) =>
73
+ ResponseShellCallCommandAddedStreamEvent$inboundSchema.parse(
74
+ JSON.parse(x),
75
+ ),
76
+ `Failed to parse 'ResponseShellCallCommandAddedStreamEvent' from JSON`,
77
+ );
78
+ }
@@ -0,0 +1,83 @@
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 {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { Result as SafeParseResult } from "../../types/fp.js";
12
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+
14
+ /**
15
+ * A `response.shell_call_command.delta` server-sent event.
16
+ */
17
+ export type ResponseShellCallCommandDeltaStreamEvent = {
18
+ /**
19
+ * Index of the shell command.
20
+ */
21
+ commandIndex: number;
22
+ /**
23
+ * Incremental text or argument chunk.
24
+ */
25
+ delta: string;
26
+ /**
27
+ * Obfuscation padding accompanying the delta, when present.
28
+ */
29
+ obfuscation?: string | undefined;
30
+ /**
31
+ * Index of the output item in the response output array.
32
+ */
33
+ outputIndex: number;
34
+ /**
35
+ * Monotonically increasing sequence number for ordering events.
36
+ */
37
+ sequenceNumber: number;
38
+ /**
39
+ * The event type. Discriminates the payload.
40
+ */
41
+ type: "response.shell_call_command.delta";
42
+ additionalProperties?: { [k: string]: any } | undefined;
43
+ };
44
+
45
+ /** @internal */
46
+ export const ResponseShellCallCommandDeltaStreamEvent$inboundSchema: z.ZodType<
47
+ ResponseShellCallCommandDeltaStreamEvent,
48
+ z.ZodTypeDef,
49
+ unknown
50
+ > = collectExtraKeys$(
51
+ z.object({
52
+ command_index: z.number().int(),
53
+ delta: z.string(),
54
+ obfuscation: z.string().optional(),
55
+ output_index: z.number().int(),
56
+ sequence_number: z.number().int(),
57
+ type: z.literal("response.shell_call_command.delta"),
58
+ }).catchall(z.any()),
59
+ "additionalProperties",
60
+ true,
61
+ ).transform((v) => {
62
+ return remap$(v, {
63
+ "command_index": "commandIndex",
64
+ "output_index": "outputIndex",
65
+ "sequence_number": "sequenceNumber",
66
+ });
67
+ });
68
+
69
+ export function responseShellCallCommandDeltaStreamEventFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<
72
+ ResponseShellCallCommandDeltaStreamEvent,
73
+ SDKValidationError
74
+ > {
75
+ return safeParse(
76
+ jsonString,
77
+ (x) =>
78
+ ResponseShellCallCommandDeltaStreamEvent$inboundSchema.parse(
79
+ JSON.parse(x),
80
+ ),
81
+ `Failed to parse 'ResponseShellCallCommandDeltaStreamEvent' from JSON`,
82
+ );
83
+ }
@@ -0,0 +1,78 @@
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 {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { Result as SafeParseResult } from "../../types/fp.js";
12
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+
14
+ /**
15
+ * A `response.shell_call_command.done` server-sent event.
16
+ */
17
+ export type ResponseShellCallCommandDoneStreamEvent = {
18
+ /**
19
+ * The shell command.
20
+ */
21
+ command: string;
22
+ /**
23
+ * Index of the shell command.
24
+ */
25
+ commandIndex: number;
26
+ /**
27
+ * Index of the output item in the response output array.
28
+ */
29
+ outputIndex: number;
30
+ /**
31
+ * Monotonically increasing sequence number for ordering events.
32
+ */
33
+ sequenceNumber: number;
34
+ /**
35
+ * The event type. Discriminates the payload.
36
+ */
37
+ type: "response.shell_call_command.done";
38
+ additionalProperties?: { [k: string]: any } | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const ResponseShellCallCommandDoneStreamEvent$inboundSchema: z.ZodType<
43
+ ResponseShellCallCommandDoneStreamEvent,
44
+ z.ZodTypeDef,
45
+ unknown
46
+ > = collectExtraKeys$(
47
+ z.object({
48
+ command: z.string(),
49
+ command_index: z.number().int(),
50
+ output_index: z.number().int(),
51
+ sequence_number: z.number().int(),
52
+ type: z.literal("response.shell_call_command.done"),
53
+ }).catchall(z.any()),
54
+ "additionalProperties",
55
+ true,
56
+ ).transform((v) => {
57
+ return remap$(v, {
58
+ "command_index": "commandIndex",
59
+ "output_index": "outputIndex",
60
+ "sequence_number": "sequenceNumber",
61
+ });
62
+ });
63
+
64
+ export function responseShellCallCommandDoneStreamEventFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<
67
+ ResponseShellCallCommandDoneStreamEvent,
68
+ SDKValidationError
69
+ > {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) =>
73
+ ResponseShellCallCommandDoneStreamEvent$inboundSchema.parse(
74
+ JSON.parse(x),
75
+ ),
76
+ `Failed to parse 'ResponseShellCallCommandDoneStreamEvent' from JSON`,
77
+ );
78
+ }
@@ -0,0 +1,85 @@
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 {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { Result as SafeParseResult } from "../../types/fp.js";
12
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+
14
+ /**
15
+ * A `response.shell_call_output_content.delta` server-sent event.
16
+ */
17
+ export type ResponseShellCallOutputContentDeltaStreamEvent = {
18
+ /**
19
+ * Index of the shell command.
20
+ */
21
+ commandIndex: number;
22
+ /**
23
+ * Shell stdout and stderr deltas.
24
+ */
25
+ delta: { [k: string]: any };
26
+ /**
27
+ * ID of the output item this event refers to.
28
+ */
29
+ itemId: string;
30
+ /**
31
+ * Index of the output item in the response output array.
32
+ */
33
+ outputIndex: number;
34
+ /**
35
+ * Monotonically increasing sequence number for ordering events.
36
+ */
37
+ sequenceNumber: number;
38
+ /**
39
+ * The event type. Discriminates the payload.
40
+ */
41
+ type: "response.shell_call_output_content.delta";
42
+ additionalProperties?: { [k: string]: any } | undefined;
43
+ };
44
+
45
+ /** @internal */
46
+ export const ResponseShellCallOutputContentDeltaStreamEvent$inboundSchema:
47
+ z.ZodType<
48
+ ResponseShellCallOutputContentDeltaStreamEvent,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = collectExtraKeys$(
52
+ z.object({
53
+ command_index: z.number().int(),
54
+ delta: z.record(z.any()),
55
+ item_id: z.string(),
56
+ output_index: z.number().int(),
57
+ sequence_number: z.number().int(),
58
+ type: z.literal("response.shell_call_output_content.delta"),
59
+ }).catchall(z.any()),
60
+ "additionalProperties",
61
+ true,
62
+ ).transform((v) => {
63
+ return remap$(v, {
64
+ "command_index": "commandIndex",
65
+ "item_id": "itemId",
66
+ "output_index": "outputIndex",
67
+ "sequence_number": "sequenceNumber",
68
+ });
69
+ });
70
+
71
+ export function responseShellCallOutputContentDeltaStreamEventFromJSON(
72
+ jsonString: string,
73
+ ): SafeParseResult<
74
+ ResponseShellCallOutputContentDeltaStreamEvent,
75
+ SDKValidationError
76
+ > {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) =>
80
+ ResponseShellCallOutputContentDeltaStreamEvent$inboundSchema.parse(
81
+ JSON.parse(x),
82
+ ),
83
+ `Failed to parse 'ResponseShellCallOutputContentDeltaStreamEvent' from JSON`,
84
+ );
85
+ }