@orq-ai/node 4.17.0-rc.0 → 4.17.0-rc.10

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 (217) hide show
  1. package/README.md +5 -3
  2. package/funcs/responsesCompact.d.ts +1 -1
  3. package/funcs/responsesCompact.js +1 -1
  4. package/funcs/routerClassifyCreate.d.ts +10 -2
  5. package/funcs/routerClassifyCreate.d.ts.map +1 -1
  6. package/funcs/routerClassifyCreate.js +10 -2
  7. package/funcs/routerClassifyCreate.js.map +1 -1
  8. package/funcs/routerDecisionsCreate.d.ts +10 -2
  9. package/funcs/routerDecisionsCreate.d.ts.map +1 -1
  10. package/funcs/routerDecisionsCreate.js +11 -2
  11. package/funcs/routerDecisionsCreate.js.map +1 -1
  12. package/jsr.json +1 -1
  13. package/lib/config.d.ts +2 -2
  14. package/lib/config.js +2 -2
  15. package/lib/config.js.map +1 -1
  16. package/models/components/classifycacheconfig.d.ts +33 -0
  17. package/models/components/classifycacheconfig.d.ts.map +1 -0
  18. package/models/components/classifycacheconfig.js +58 -0
  19. package/models/components/classifycacheconfig.js.map +1 -0
  20. package/models/components/classifytimeoutconfig.d.ts +15 -0
  21. package/models/components/classifytimeoutconfig.d.ts.map +1 -0
  22. package/models/components/classifytimeoutconfig.js +54 -0
  23. package/models/components/classifytimeoutconfig.js.map +1 -0
  24. package/models/components/environment.d.ts +1 -1
  25. package/models/components/index.d.ts +8 -1
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +8 -1
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/reasoningpart.js +1 -1
  30. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -0
  31. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
  32. package/models/components/responsefunctioncallargumentsdonestreamevent.js +1 -0
  33. package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
  34. package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +16 -0
  35. package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -1
  36. package/models/components/responseimagegenerationcallpartialimagestreamevent.js +5 -0
  37. package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -1
  38. package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +4 -0
  39. package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -1
  40. package/models/components/responsereasoningsummarypartaddedstreamevent.js +1 -0
  41. package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -1
  42. package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +4 -0
  43. package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -1
  44. package/models/components/responsereasoningsummarypartdonestreamevent.js +1 -0
  45. package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -1
  46. package/models/components/responseshellcallcommandaddedstreamevent.d.ts +35 -0
  47. package/models/components/responseshellcallcommandaddedstreamevent.d.ts.map +1 -0
  48. package/models/components/{publiccompactionitem.js → responseshellcallcommandaddedstreamevent.js} +15 -22
  49. package/models/components/responseshellcallcommandaddedstreamevent.js.map +1 -0
  50. package/models/components/responseshellcallcommanddeltastreamevent.d.ts +39 -0
  51. package/models/components/responseshellcallcommanddeltastreamevent.d.ts.map +1 -0
  52. package/models/components/responseshellcallcommanddeltastreamevent.js +62 -0
  53. package/models/components/responseshellcallcommanddeltastreamevent.js.map +1 -0
  54. package/models/components/responseshellcallcommanddonestreamevent.d.ts +35 -0
  55. package/models/components/responseshellcallcommanddonestreamevent.d.ts.map +1 -0
  56. package/models/components/responseshellcallcommanddonestreamevent.js +61 -0
  57. package/models/components/responseshellcallcommanddonestreamevent.js.map +1 -0
  58. package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts +41 -0
  59. package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts.map +1 -0
  60. package/models/components/responseshellcalloutputcontentdeltastreamevent.js +63 -0
  61. package/models/components/responseshellcalloutputcontentdeltastreamevent.js.map +1 -0
  62. package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts +38 -0
  63. package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts.map +1 -0
  64. package/models/components/responseshellcalloutputcontentdonestreamevent.js +63 -0
  65. package/models/components/responseshellcalloutputcontentdonestreamevent.js.map +1 -0
  66. package/models/components/responsestreamevent.d.ts +6 -1
  67. package/models/components/responsestreamevent.d.ts.map +1 -1
  68. package/models/components/responsestreamevent.js +10 -0
  69. package/models/components/responsestreamevent.js.map +1 -1
  70. package/models/components/routingruleplugin.d.ts +10 -0
  71. package/models/components/routingruleplugin.d.ts.map +1 -1
  72. package/models/components/routingruleplugin.js +8 -0
  73. package/models/components/routingruleplugin.js.map +1 -1
  74. package/models/components/signalscheck.d.ts +19 -0
  75. package/models/components/signalscheck.d.ts.map +1 -0
  76. package/models/components/signalscheck.js +60 -0
  77. package/models/components/signalscheck.js.map +1 -0
  78. package/models/components/updateworkspacerequest.d.ts +2 -0
  79. package/models/components/updateworkspacerequest.d.ts.map +1 -1
  80. package/models/components/updateworkspacerequest.js +2 -0
  81. package/models/components/updateworkspacerequest.js.map +1 -1
  82. package/models/errors/createclassify.d.ts +23 -2
  83. package/models/errors/createclassify.d.ts.map +1 -1
  84. package/models/errors/createclassify.js +30 -2
  85. package/models/errors/createclassify.js.map +1 -1
  86. package/models/errors/createdecisions.d.ts +23 -2
  87. package/models/errors/createdecisions.d.ts.map +1 -1
  88. package/models/errors/createdecisions.js +30 -2
  89. package/models/errors/createdecisions.js.map +1 -1
  90. package/models/operations/compactresponse.d.ts +3 -3
  91. package/models/operations/compactresponse.d.ts.map +1 -1
  92. package/models/operations/compactresponse.js +1 -1
  93. package/models/operations/compactresponse.js.map +1 -1
  94. package/models/operations/createclassify.d.ts +4 -0
  95. package/models/operations/createclassify.d.ts.map +1 -1
  96. package/models/operations/createclassify.js +2 -0
  97. package/models/operations/createclassify.js.map +1 -1
  98. package/models/operations/createdecisions.d.ts +4 -0
  99. package/models/operations/createdecisions.d.ts.map +1 -1
  100. package/models/operations/createdecisions.js +2 -0
  101. package/models/operations/createdecisions.js.map +1 -1
  102. package/models/operations/createprompt.d.ts +2 -0
  103. package/models/operations/createprompt.d.ts.map +1 -1
  104. package/models/operations/createprompt.js +2 -0
  105. package/models/operations/createprompt.js.map +1 -1
  106. package/models/operations/createtool.js +4 -4
  107. package/models/operations/deploymentinvoke.d.ts +2 -0
  108. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  109. package/models/operations/deploymentinvoke.js +2 -0
  110. package/models/operations/deploymentinvoke.js.map +1 -1
  111. package/models/operations/deployments.d.ts +2 -0
  112. package/models/operations/deployments.d.ts.map +1 -1
  113. package/models/operations/deployments.js +2 -0
  114. package/models/operations/deployments.js.map +1 -1
  115. package/models/operations/deploymentstream.d.ts +2 -0
  116. package/models/operations/deploymentstream.d.ts.map +1 -1
  117. package/models/operations/deploymentstream.js +2 -0
  118. package/models/operations/deploymentstream.js.map +1 -1
  119. package/models/operations/getallprompts.d.ts +2 -0
  120. package/models/operations/getallprompts.d.ts.map +1 -1
  121. package/models/operations/getallprompts.js +2 -0
  122. package/models/operations/getallprompts.js.map +1 -1
  123. package/models/operations/getalltools.js +4 -4
  124. package/models/operations/getoneprompt.d.ts +2 -0
  125. package/models/operations/getoneprompt.d.ts.map +1 -1
  126. package/models/operations/getoneprompt.js +2 -0
  127. package/models/operations/getoneprompt.js.map +1 -1
  128. package/models/operations/getpromptversion.d.ts +2 -0
  129. package/models/operations/getpromptversion.d.ts.map +1 -1
  130. package/models/operations/getpromptversion.js +2 -0
  131. package/models/operations/getpromptversion.js.map +1 -1
  132. package/models/operations/getv2humanevalsets.js +2 -2
  133. package/models/operations/getv2humanevalsetsid.js +2 -2
  134. package/models/operations/listpromptversions.d.ts +2 -0
  135. package/models/operations/listpromptversions.d.ts.map +1 -1
  136. package/models/operations/listpromptversions.js +2 -0
  137. package/models/operations/listpromptversions.js.map +1 -1
  138. package/models/operations/patchv2humanevalsetsid.js +2 -2
  139. package/models/operations/postv2feedbackevaluation.js +4 -4
  140. package/models/operations/postv2humanevalsets.js +2 -2
  141. package/models/operations/retrievetool.js +4 -4
  142. package/models/operations/runagent.js +1 -1
  143. package/models/operations/streamrunagent.js +1 -1
  144. package/models/operations/tracesgetspan.d.ts +3 -0
  145. package/models/operations/tracesgetspan.d.ts.map +1 -1
  146. package/models/operations/tracesgetspan.js.map +1 -1
  147. package/models/operations/updateprompt.d.ts +2 -0
  148. package/models/operations/updateprompt.d.ts.map +1 -1
  149. package/models/operations/updateprompt.js +2 -0
  150. package/models/operations/updateprompt.js.map +1 -1
  151. package/models/operations/updatetool.js +4 -4
  152. package/package.json +7 -7
  153. package/sdk/classify.d.ts +9 -1
  154. package/sdk/classify.d.ts.map +1 -1
  155. package/sdk/classify.js +9 -1
  156. package/sdk/classify.js.map +1 -1
  157. package/sdk/decisions.d.ts +9 -1
  158. package/sdk/decisions.d.ts.map +1 -1
  159. package/sdk/decisions.js +9 -1
  160. package/sdk/decisions.js.map +1 -1
  161. package/sdk/responses.d.ts +1 -1
  162. package/sdk/responses.js +1 -1
  163. package/src/funcs/responsesCompact.ts +1 -1
  164. package/src/funcs/routerClassifyCreate.ts +16 -1
  165. package/src/funcs/routerDecisionsCreate.ts +17 -1
  166. package/src/lib/config.ts +2 -2
  167. package/src/models/components/classifycacheconfig.ts +59 -0
  168. package/src/models/components/classifytimeoutconfig.ts +39 -0
  169. package/src/models/components/environment.ts +1 -1
  170. package/src/models/components/index.ts +8 -1
  171. package/src/models/components/reasoningpart.ts +1 -1
  172. package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
  173. package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
  174. package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
  175. package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
  176. package/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
  177. package/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
  178. package/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
  179. package/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
  180. package/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
  181. package/src/models/components/responsestreamevent.ts +30 -0
  182. package/src/models/components/routingruleplugin.ts +22 -0
  183. package/src/models/components/signalscheck.ts +51 -0
  184. package/src/models/components/updateworkspacerequest.ts +4 -0
  185. package/src/models/errors/createclassify.ts +54 -2
  186. package/src/models/errors/createdecisions.ts +54 -2
  187. package/src/models/operations/compactresponse.ts +4 -4
  188. package/src/models/operations/createclassify.ts +6 -0
  189. package/src/models/operations/createdecisions.ts +6 -0
  190. package/src/models/operations/createprompt.ts +2 -0
  191. package/src/models/operations/createtool.ts +4 -4
  192. package/src/models/operations/deploymentinvoke.ts +2 -0
  193. package/src/models/operations/deployments.ts +2 -0
  194. package/src/models/operations/deploymentstream.ts +2 -0
  195. package/src/models/operations/getallprompts.ts +2 -0
  196. package/src/models/operations/getalltools.ts +4 -4
  197. package/src/models/operations/getoneprompt.ts +2 -0
  198. package/src/models/operations/getpromptversion.ts +2 -0
  199. package/src/models/operations/getv2humanevalsets.ts +2 -2
  200. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  201. package/src/models/operations/listpromptversions.ts +2 -0
  202. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  203. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  204. package/src/models/operations/postv2humanevalsets.ts +2 -2
  205. package/src/models/operations/retrievetool.ts +4 -4
  206. package/src/models/operations/runagent.ts +1 -1
  207. package/src/models/operations/streamrunagent.ts +1 -1
  208. package/src/models/operations/tracesgetspan.ts +3 -0
  209. package/src/models/operations/updateprompt.ts +2 -0
  210. package/src/models/operations/updatetool.ts +4 -4
  211. package/src/sdk/classify.ts +9 -1
  212. package/src/sdk/decisions.ts +9 -1
  213. package/src/sdk/responses.ts +1 -1
  214. package/models/components/publiccompactionitem.d.ts +0 -42
  215. package/models/components/publiccompactionitem.d.ts.map +0 -1
  216. package/models/components/publiccompactionitem.js.map +0 -1
  217. package/src/models/components/publiccompactionitem.ts +0 -79
@@ -30,7 +30,15 @@ import { Result } from "../types/fp.js";
30
30
  * Decisions
31
31
  *
32
32
  * @remarks
33
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
33
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
34
+ *
35
+ * - `noul`: estimate the probability that a statement is true.
36
+ * - `choice`: select an option from a set.
37
+ * - `score`: rate the content on an ordered scale.
38
+ *
39
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
40
+ *
41
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
34
42
  */
35
43
  export function routerDecisionsCreate(
36
44
  client: OrqCore,
@@ -42,6 +50,7 @@ export function routerDecisionsCreate(
42
50
  | errors.CreateDecisionsResponseBody
43
51
  | errors.CreateDecisionsRouterDecisionsResponseBody
44
52
  | errors.CreateDecisionsRouterDecisionsResponseResponseBody
53
+ | errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
45
54
  | errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
46
55
  | errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
47
56
  | errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
@@ -74,6 +83,7 @@ async function $do(
74
83
  | errors.CreateDecisionsResponseBody
75
84
  | errors.CreateDecisionsRouterDecisionsResponseBody
76
85
  | errors.CreateDecisionsRouterDecisionsResponseResponseBody
86
+ | errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
77
87
  | errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
78
88
  | errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
79
89
  | errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
@@ -164,6 +174,7 @@ async function $do(
164
174
  | errors.CreateDecisionsResponseBody
165
175
  | errors.CreateDecisionsRouterDecisionsResponseBody
166
176
  | errors.CreateDecisionsRouterDecisionsResponseResponseBody
177
+ | errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
167
178
  | errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
168
179
  | errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
169
180
  | errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
@@ -187,6 +198,11 @@ async function $do(
187
198
  403,
188
199
  errors.CreateDecisionsRouterDecisionsResponseResponseBody$inboundSchema,
189
200
  ),
201
+ M.jsonErr(
202
+ 408,
203
+ errors
204
+ .CreateDecisionsRouterDecisionsResponse408ResponseBody$inboundSchema,
205
+ ),
190
206
  M.jsonErr(
191
207
  422,
192
208
  errors
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.17.0-rc.0",
61
+ sdkVersion: "4.17.0-rc.10",
62
62
  genVersion: "2.946.0",
63
- userAgent: "speakeasy-sdk/typescript 4.17.0-rc.0 2.946.0 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.17.0-rc.10 2.946.0 2.0 @orq-ai/node",
64
64
  } as const;
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Cache type. Only exact_match is supported.
10
+ */
11
+ export const ClassifyCacheConfigType = {
12
+ ExactMatch: "exact_match",
13
+ } as const;
14
+ /**
15
+ * Cache type. Only exact_match is supported.
16
+ */
17
+ export type ClassifyCacheConfigType = ClosedEnum<
18
+ typeof ClassifyCacheConfigType
19
+ >;
20
+
21
+ export type ClassifyCacheConfig = {
22
+ /**
23
+ * Time to live for the cached response in seconds, up to 259200 (3 days). Defaults to 3600.
24
+ */
25
+ ttl?: number | undefined;
26
+ /**
27
+ * Cache type. Only exact_match is supported.
28
+ */
29
+ type: ClassifyCacheConfigType;
30
+ };
31
+
32
+ /** @internal */
33
+ export const ClassifyCacheConfigType$outboundSchema: z.ZodNativeEnum<
34
+ typeof ClassifyCacheConfigType
35
+ > = z.nativeEnum(ClassifyCacheConfigType);
36
+
37
+ /** @internal */
38
+ export type ClassifyCacheConfig$Outbound = {
39
+ ttl?: number | undefined;
40
+ type: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const ClassifyCacheConfig$outboundSchema: z.ZodType<
45
+ ClassifyCacheConfig$Outbound,
46
+ z.ZodTypeDef,
47
+ ClassifyCacheConfig
48
+ > = z.object({
49
+ ttl: z.number().int().optional(),
50
+ type: ClassifyCacheConfigType$outboundSchema,
51
+ });
52
+
53
+ export function classifyCacheConfigToJSON(
54
+ classifyCacheConfig: ClassifyCacheConfig,
55
+ ): string {
56
+ return JSON.stringify(
57
+ ClassifyCacheConfig$outboundSchema.parse(classifyCacheConfig),
58
+ );
59
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type ClassifyTimeoutConfig = {
9
+ /**
10
+ * Timeout in milliseconds for each model call. Set 2000 for two seconds. When retry is configured, timeout errors (408) are automatically retried.
11
+ */
12
+ callTimeout: number;
13
+ };
14
+
15
+ /** @internal */
16
+ export type ClassifyTimeoutConfig$Outbound = {
17
+ call_timeout: number;
18
+ };
19
+
20
+ /** @internal */
21
+ export const ClassifyTimeoutConfig$outboundSchema: z.ZodType<
22
+ ClassifyTimeoutConfig$Outbound,
23
+ z.ZodTypeDef,
24
+ ClassifyTimeoutConfig
25
+ > = z.object({
26
+ callTimeout: z.number().int(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ callTimeout: "call_timeout",
30
+ });
31
+ });
32
+
33
+ export function classifyTimeoutConfigToJSON(
34
+ classifyTimeoutConfig: ClassifyTimeoutConfig,
35
+ ): string {
36
+ return JSON.stringify(
37
+ ClassifyTimeoutConfig$outboundSchema.parse(classifyTimeoutConfig),
38
+ );
39
+ }
@@ -15,7 +15,7 @@ export type Environment = {
15
15
  */
16
16
  id: string;
17
17
  /**
18
- * Immutable workspace-unique environment slug.
18
+ * Immutable environment slug, unique among the environments a project can see.
19
19
  */
20
20
  slug: string;
21
21
  /**
@@ -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";
@@ -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_01m4dbvkpp9g9a3v1jft09cr5r"),
43
+ _id: z.string().default("reasoning_01m4n9e9jgxm7ar5p9bwmd1t4c"),
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
+ }