@orq-ai/node 4.17.0-rc.6 → 4.17.0-rc.7
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.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +16 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -1
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js +5 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +4 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.js +1 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +4 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarypartdonestreamevent.js +1 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -1
- package/models/components/responseshellcallcommandaddedstreamevent.d.ts +35 -0
- package/models/components/responseshellcallcommandaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommandaddedstreamevent.js +61 -0
- package/models/components/responseshellcallcommandaddedstreamevent.js.map +1 -0
- package/models/components/responseshellcallcommanddeltastreamevent.d.ts +39 -0
- package/models/components/responseshellcallcommanddeltastreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommanddeltastreamevent.js +62 -0
- package/models/components/responseshellcallcommanddeltastreamevent.js.map +1 -0
- package/models/components/responseshellcallcommanddonestreamevent.d.ts +35 -0
- package/models/components/responseshellcallcommanddonestreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommanddonestreamevent.js +61 -0
- package/models/components/responseshellcallcommanddonestreamevent.js.map +1 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts +41 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts.map +1 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.js +63 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.js.map +1 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts +38 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts.map +1 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.js +63 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.js.map +1 -0
- package/models/components/responsestreamevent.d.ts +6 -1
- package/models/components/responsestreamevent.d.ts.map +1 -1
- package/models/components/responsestreamevent.js +10 -0
- package/models/components/responsestreamevent.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +5 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
- package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
- package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
- package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
- package/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
- package/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
- package/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
- package/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
- package/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
- package/src/models/components/responsestreamevent.ts +30 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -164,7 +164,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
164
164
|
}
|
|
165
165
|
/** @internal */
|
|
166
166
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
167
|
-
_id: z.string().default("
|
|
167
|
+
_id: z.string().default("tool_01M4GNQFY9ZZFNAMF22NX22S55"),
|
|
168
168
|
path: z.string(),
|
|
169
169
|
key: z.string(),
|
|
170
170
|
display_name: z.string().optional(),
|
|
@@ -253,7 +253,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
253
253
|
}
|
|
254
254
|
/** @internal */
|
|
255
255
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
256
|
-
_id: z.string().default("
|
|
256
|
+
_id: z.string().default("tool_01M4GNQFY8RZJ3SX9554SZ1WXP"),
|
|
257
257
|
path: z.string(),
|
|
258
258
|
key: z.string(),
|
|
259
259
|
display_name: z.string().optional(),
|
|
@@ -303,7 +303,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
303
303
|
}
|
|
304
304
|
/** @internal */
|
|
305
305
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
306
|
-
_id: z.string().default("
|
|
306
|
+
_id: z.string().default("tool_01M4GNQFY8YV3BHVQSMVD91QSR"),
|
|
307
307
|
path: z.string(),
|
|
308
308
|
key: z.string(),
|
|
309
309
|
display_name: z.string().optional(),
|
|
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
357
357
|
}
|
|
358
358
|
/** @internal */
|
|
359
359
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
360
|
-
_id: z.string().default("
|
|
360
|
+
_id: z.string().default("tool_01M4GNQFY7DY1PT8SZ7M1XYFQ7"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -1098,7 +1098,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
/** @internal */
|
|
1100
1100
|
exports.Tools$outboundSchema = z.object({
|
|
1101
|
-
id: z.string().default("
|
|
1101
|
+
id: z.string().default("01M4GNQFWR6T7KK2KXPN0S8J5E"),
|
|
1102
1102
|
name: z.string(),
|
|
1103
1103
|
description: z.string().optional(),
|
|
1104
1104
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -1064,7 +1064,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
1064
1064
|
}
|
|
1065
1065
|
/** @internal */
|
|
1066
1066
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
1067
|
-
id: z.string().default("
|
|
1067
|
+
id: z.string().default("01M4GNQFX36K42K8K8WBT1P3SW"),
|
|
1068
1068
|
name: z.string(),
|
|
1069
1069
|
description: z.string().optional(),
|
|
1070
1070
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
536
536
|
}
|
|
537
537
|
/** @internal */
|
|
538
538
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
539
|
-
_id: z.string().default("
|
|
539
|
+
_id: z.string().default("tool_01M4GNQFY3SMRPBPENRA17TWFA"),
|
|
540
540
|
path: z.string(),
|
|
541
541
|
key: z.string(),
|
|
542
542
|
display_name: z.string().optional(),
|
|
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
625
625
|
}
|
|
626
626
|
/** @internal */
|
|
627
627
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
628
|
-
_id: z.string().default("
|
|
628
|
+
_id: z.string().default("tool_01M4GNQFY3G48ZPEQ7ZWQXY637"),
|
|
629
629
|
path: z.string(),
|
|
630
630
|
key: z.string(),
|
|
631
631
|
display_name: z.string().optional(),
|
|
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
675
675
|
}
|
|
676
676
|
/** @internal */
|
|
677
677
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
678
|
-
_id: z.string().default("
|
|
678
|
+
_id: z.string().default("tool_01M4GNQFY3F7G93BRFYAH3HNZZ"),
|
|
679
679
|
path: z.string(),
|
|
680
680
|
key: z.string(),
|
|
681
681
|
display_name: z.string().optional(),
|
|
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
729
729
|
}
|
|
730
730
|
/** @internal */
|
|
731
731
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
732
|
-
_id: z.string().default("
|
|
732
|
+
_id: z.string().default("tool_01M4GNQFY2SPM9QFJT9J5V01BV"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
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.
|
|
61
|
+
sdkVersion: "4.17.0-rc.7",
|
|
62
62
|
genVersion: "2.946.0",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.17.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.17.0-rc.7 2.946.0 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -545,6 +545,11 @@ export * from "./responsereasoningtextdonestreamevent.js";
|
|
|
545
545
|
export * from "./responserefusaldeltastreamevent.js";
|
|
546
546
|
export * from "./responserefusaldonestreamevent.js";
|
|
547
547
|
export * from "./responseretryconfig.js";
|
|
548
|
+
export * from "./responseshellcallcommandaddedstreamevent.js";
|
|
549
|
+
export * from "./responseshellcallcommanddeltastreamevent.js";
|
|
550
|
+
export * from "./responseshellcallcommanddonestreamevent.js";
|
|
551
|
+
export * from "./responseshellcalloutputcontentdeltastreamevent.js";
|
|
552
|
+
export * from "./responseshellcalloutputcontentdonestreamevent.js";
|
|
548
553
|
export * from "./responsestartedevent.js";
|
|
549
554
|
export * from "./responsestreamevent.js";
|
|
550
555
|
export * from "./responsestreamingevent.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("
|
|
43
|
+
_id: z.string().default("reasoning_01m4gnqfvp3k2665xp9gsx2bcp"),
|
|
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
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.done` server-sent event.
|
|
16
|
+
*/
|
|
17
|
+
export type ResponseShellCallOutputContentDoneStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* Index of the shell command.
|
|
20
|
+
*/
|
|
21
|
+
commandIndex: number;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the output item this event refers to.
|
|
24
|
+
*/
|
|
25
|
+
itemId: string;
|
|
26
|
+
output: Array<{ [k: string]: any }>;
|
|
27
|
+
/**
|
|
28
|
+
* Index of the output item in the response output array.
|
|
29
|
+
*/
|
|
30
|
+
outputIndex: number;
|
|
31
|
+
/**
|
|
32
|
+
* Monotonically increasing sequence number for ordering events.
|
|
33
|
+
*/
|
|
34
|
+
sequenceNumber: number;
|
|
35
|
+
/**
|
|
36
|
+
* The event type. Discriminates the payload.
|
|
37
|
+
*/
|
|
38
|
+
type: "response.shell_call_output_content.done";
|
|
39
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ResponseShellCallOutputContentDoneStreamEvent$inboundSchema:
|
|
44
|
+
z.ZodType<
|
|
45
|
+
ResponseShellCallOutputContentDoneStreamEvent,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = collectExtraKeys$(
|
|
49
|
+
z.object({
|
|
50
|
+
command_index: z.number().int(),
|
|
51
|
+
item_id: z.string(),
|
|
52
|
+
output: z.array(z.record(z.any())),
|
|
53
|
+
output_index: z.number().int(),
|
|
54
|
+
sequence_number: z.number().int(),
|
|
55
|
+
type: z.literal("response.shell_call_output_content.done"),
|
|
56
|
+
}).catchall(z.any()),
|
|
57
|
+
"additionalProperties",
|
|
58
|
+
true,
|
|
59
|
+
).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
"command_index": "commandIndex",
|
|
62
|
+
"item_id": "itemId",
|
|
63
|
+
"output_index": "outputIndex",
|
|
64
|
+
"sequence_number": "sequenceNumber",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export function responseShellCallOutputContentDoneStreamEventFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<
|
|
71
|
+
ResponseShellCallOutputContentDoneStreamEvent,
|
|
72
|
+
SDKValidationError
|
|
73
|
+
> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) =>
|
|
77
|
+
ResponseShellCallOutputContentDoneStreamEvent$inboundSchema.parse(
|
|
78
|
+
JSON.parse(x),
|
|
79
|
+
),
|
|
80
|
+
`Failed to parse 'ResponseShellCallOutputContentDoneStreamEvent' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|