@compose-market/sdk 0.8.21 → 0.8.23
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/CHANGELOG.md +15 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/generated/channels/esm/lib/config.d.ts +3 -3
- package/generated/channels/esm/lib/config.js +3 -3
- package/generated/channels/package.json +1 -1
- package/generated/channels/src/lib/config.ts +3 -3
- package/generated/inference/esm/lib/config.d.ts +4 -4
- package/generated/inference/esm/lib/config.js +4 -4
- package/generated/inference/esm/models/index.d.ts +9 -0
- package/generated/inference/esm/models/index.d.ts.map +1 -1
- package/generated/inference/esm/models/index.js +9 -0
- package/generated/inference/esm/models/index.js.map +1 -1
- package/generated/inference/esm/models/response-object.d.ts +3 -3
- package/generated/inference/esm/models/response-object.d.ts.map +1 -1
- package/generated/inference/esm/models/response-object.js +3 -1
- package/generated/inference/esm/models/response-object.js.map +1 -1
- package/generated/inference/esm/models/response-output-item.d.ts +39 -0
- package/generated/inference/esm/models/response-output-item.d.ts.map +1 -0
- package/generated/inference/esm/models/response-output-item.js +47 -0
- package/generated/inference/esm/models/response-output-item.js.map +1 -0
- package/generated/inference/esm/models/responses-create-request.d.ts +15 -10
- package/generated/inference/esm/models/responses-create-request.d.ts.map +1 -1
- package/generated/inference/esm/models/responses-create-request.js +15 -3
- package/generated/inference/esm/models/responses-create-request.js.map +1 -1
- package/generated/inference/esm/models/responses-function-call-input-item.d.ts +24 -0
- package/generated/inference/esm/models/responses-function-call-input-item.d.ts.map +1 -0
- package/generated/inference/esm/models/responses-function-call-input-item.js +24 -0
- package/generated/inference/esm/models/responses-function-call-input-item.js.map +1 -0
- package/generated/inference/esm/models/responses-function-call-output-input-item.d.ts +18 -0
- package/generated/inference/esm/models/responses-function-call-output-input-item.d.ts.map +1 -0
- package/generated/inference/esm/models/responses-function-call-output-input-item.js +21 -0
- package/generated/inference/esm/models/responses-function-call-output-input-item.js.map +1 -0
- package/generated/inference/esm/models/responses-function-tool.d.ts +24 -0
- package/generated/inference/esm/models/responses-function-tool.d.ts.map +1 -0
- package/generated/inference/esm/models/responses-function-tool.js +16 -0
- package/generated/inference/esm/models/responses-function-tool.js.map +1 -0
- package/generated/inference/esm/models/responses-input-item.d.ts +12 -0
- package/generated/inference/esm/models/responses-input-item.d.ts.map +1 -0
- package/generated/inference/esm/models/responses-input-item.js +19 -0
- package/generated/inference/esm/models/responses-input-item.js.map +1 -0
- package/generated/inference/esm/models/responses-message-input-item.d.ts +42 -0
- package/generated/inference/esm/models/responses-message-input-item.d.ts.map +1 -0
- package/generated/inference/esm/models/responses-message-input-item.js +28 -0
- package/generated/inference/esm/models/responses-message-input-item.js.map +1 -0
- package/generated/inference/esm/models/responses-named-tool-choice.d.ts +14 -0
- package/generated/inference/esm/models/responses-named-tool-choice.d.ts.map +1 -0
- package/generated/inference/esm/models/responses-named-tool-choice.js +13 -0
- package/generated/inference/esm/models/responses-named-tool-choice.js.map +1 -0
- package/generated/inference/esm/models/responses-reasoning-input-item.d.ts +26 -0
- package/generated/inference/esm/models/responses-reasoning-input-item.d.ts.map +1 -0
- package/generated/inference/esm/models/responses-reasoning-input-item.js +23 -0
- package/generated/inference/esm/models/responses-reasoning-input-item.js.map +1 -0
- package/generated/inference/esm/models/responses-tool-choice.d.ts +18 -0
- package/generated/inference/esm/models/responses-tool-choice.d.ts.map +1 -0
- package/generated/inference/esm/models/responses-tool-choice.js +22 -0
- package/generated/inference/esm/models/responses-tool-choice.js.map +1 -0
- package/generated/inference/package.json +1 -1
- package/generated/inference/src/lib/config.ts +4 -4
- package/generated/inference/src/models/index.ts +9 -0
- package/generated/inference/src/models/response-object.ts +7 -2
- package/generated/inference/src/models/response-output-item.ts +94 -0
- package/generated/inference/src/models/responses-create-request.ts +41 -9
- package/generated/inference/src/models/responses-function-call-input-item.ts +62 -0
- package/generated/inference/src/models/responses-function-call-output-input-item.ts +53 -0
- package/generated/inference/src/models/responses-function-tool.ts +42 -0
- package/generated/inference/src/models/responses-input-item.ts +58 -0
- package/generated/inference/src/models/responses-message-input-item.ts +71 -0
- package/generated/inference/src/models/responses-named-tool-choice.ts +33 -0
- package/generated/inference/src/models/responses-reasoning-input-item.ts +59 -0
- package/generated/inference/src/models/responses-tool-choice.ts +52 -0
- package/generated/manowar/esm/lib/config.d.ts +3 -3
- package/generated/manowar/esm/lib/config.js +3 -3
- package/generated/manowar/package.json +1 -1
- package/generated/manowar/src/lib/config.ts +3 -3
- package/generated/memory/esm/lib/config.d.ts +3 -3
- package/generated/memory/esm/lib/config.js +3 -3
- package/generated/memory/package.json +1 -1
- package/generated/memory/src/lib/config.ts +3 -3
- package/generated/x402/esm/lib/config.d.ts +3 -3
- package/generated/x402/esm/lib/config.js +3 -3
- package/generated/x402/package.json +1 -1
- package/generated/x402/src/lib/config.ts +3 -3
- package/package.json +3 -3
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import * as types from "../types/primitives.js";
|
|
11
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
12
|
+
|
|
13
|
+
export const ResponseOutputItemRole = {
|
|
14
|
+
Assistant: "assistant",
|
|
15
|
+
} as const;
|
|
16
|
+
export type ResponseOutputItemRole = ClosedEnum<typeof ResponseOutputItemRole>;
|
|
17
|
+
|
|
18
|
+
export type ResponseOutputItem = {
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
type: string;
|
|
21
|
+
status?: string | undefined;
|
|
22
|
+
role?: ResponseOutputItemRole | undefined;
|
|
23
|
+
content?: Array<{ [k: string]: any }> | undefined;
|
|
24
|
+
text?: string | undefined;
|
|
25
|
+
callId?: string | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
arguments?: string | undefined;
|
|
28
|
+
summary?: Array<{ [k: string]: any }> | undefined;
|
|
29
|
+
encryptedContent?: string | undefined;
|
|
30
|
+
imageUrl?: string | undefined;
|
|
31
|
+
audioUrl?: string | undefined;
|
|
32
|
+
videoUrl?: string | undefined;
|
|
33
|
+
embedding?: Array<number> | undefined;
|
|
34
|
+
jobId?: string | undefined;
|
|
35
|
+
progress?: number | undefined;
|
|
36
|
+
mimeType?: string | undefined;
|
|
37
|
+
[additionalProperties: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ResponseOutputItemRole$inboundSchema: z.ZodMiniEnum<
|
|
42
|
+
typeof ResponseOutputItemRole
|
|
43
|
+
> = z.enum(ResponseOutputItemRole);
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const ResponseOutputItem$inboundSchema: z.ZodMiniType<
|
|
47
|
+
ResponseOutputItem,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.pipe(
|
|
50
|
+
z.catchall(
|
|
51
|
+
z.object({
|
|
52
|
+
id: types.optional(types.string()),
|
|
53
|
+
type: types.string(),
|
|
54
|
+
status: types.optional(types.string()),
|
|
55
|
+
role: types.optional(ResponseOutputItemRole$inboundSchema),
|
|
56
|
+
content: types.optional(z.array(z.record(z.string(), z.any()))),
|
|
57
|
+
text: types.optional(types.string()),
|
|
58
|
+
call_id: types.optional(types.string()),
|
|
59
|
+
name: types.optional(types.string()),
|
|
60
|
+
arguments: types.optional(types.string()),
|
|
61
|
+
summary: types.optional(z.array(z.record(z.string(), z.any()))),
|
|
62
|
+
encrypted_content: types.optional(types.string()),
|
|
63
|
+
image_url: types.optional(types.string()),
|
|
64
|
+
audio_url: types.optional(types.string()),
|
|
65
|
+
video_url: types.optional(types.string()),
|
|
66
|
+
embedding: types.optional(z.array(types.number())),
|
|
67
|
+
job_id: types.optional(types.string()),
|
|
68
|
+
progress: types.optional(types.number()),
|
|
69
|
+
mime_type: types.optional(types.string()),
|
|
70
|
+
}),
|
|
71
|
+
z.any(),
|
|
72
|
+
),
|
|
73
|
+
z.transform((v) => {
|
|
74
|
+
return remap$(v, {
|
|
75
|
+
"call_id": "callId",
|
|
76
|
+
"encrypted_content": "encryptedContent",
|
|
77
|
+
"image_url": "imageUrl",
|
|
78
|
+
"audio_url": "audioUrl",
|
|
79
|
+
"video_url": "videoUrl",
|
|
80
|
+
"job_id": "jobId",
|
|
81
|
+
"mime_type": "mimeType",
|
|
82
|
+
});
|
|
83
|
+
}),
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
export function responseOutputItemFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<ResponseOutputItem, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => ResponseOutputItem$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'ResponseOutputItem' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { smartUnion } from "../types/smart-union.js";
|
|
8
9
|
import {
|
|
9
10
|
AttachmentInput,
|
|
10
11
|
AttachmentInput$Outbound,
|
|
@@ -20,12 +21,29 @@ import {
|
|
|
20
21
|
ResponseFormat$Outbound,
|
|
21
22
|
ResponseFormat$outboundSchema,
|
|
22
23
|
} from "./response-format.js";
|
|
24
|
+
import {
|
|
25
|
+
ResponsesFunctionTool,
|
|
26
|
+
ResponsesFunctionTool$Outbound,
|
|
27
|
+
ResponsesFunctionTool$outboundSchema,
|
|
28
|
+
} from "./responses-function-tool.js";
|
|
29
|
+
import {
|
|
30
|
+
ResponsesInputItem,
|
|
31
|
+
ResponsesInputItem$Outbound,
|
|
32
|
+
ResponsesInputItem$outboundSchema,
|
|
33
|
+
} from "./responses-input-item.js";
|
|
34
|
+
import {
|
|
35
|
+
ResponsesToolChoice,
|
|
36
|
+
ResponsesToolChoice$Outbound,
|
|
37
|
+
ResponsesToolChoice$outboundSchema,
|
|
38
|
+
} from "./responses-tool-choice.js";
|
|
23
39
|
import {
|
|
24
40
|
StreamOptions,
|
|
25
41
|
StreamOptions$Outbound,
|
|
26
42
|
StreamOptions$outboundSchema,
|
|
27
43
|
} from "./stream-options.js";
|
|
28
44
|
|
|
45
|
+
export type Input = string | Array<ResponsesInputItem>;
|
|
46
|
+
|
|
29
47
|
export const Modality = {
|
|
30
48
|
Text: "text",
|
|
31
49
|
Image: "image",
|
|
@@ -37,7 +55,7 @@ export type Modality = ClosedEnum<typeof Modality>;
|
|
|
37
55
|
|
|
38
56
|
export type ResponsesCreateRequest = {
|
|
39
57
|
model: string;
|
|
40
|
-
input:
|
|
58
|
+
input: string | Array<ResponsesInputItem>;
|
|
41
59
|
attachments?: Array<AttachmentInput> | undefined;
|
|
42
60
|
attachment?: AttachmentInput | undefined;
|
|
43
61
|
stream?: boolean | undefined;
|
|
@@ -46,8 +64,8 @@ export type ResponsesCreateRequest = {
|
|
|
46
64
|
previousResponseId?: string | undefined;
|
|
47
65
|
maxOutputTokens?: number | undefined;
|
|
48
66
|
temperature?: number | undefined;
|
|
49
|
-
tools?: Array<
|
|
50
|
-
toolChoice?:
|
|
67
|
+
tools?: Array<ResponsesFunctionTool> | undefined;
|
|
68
|
+
toolChoice?: ResponsesToolChoice | undefined;
|
|
51
69
|
responseFormat?: ResponseFormat | undefined;
|
|
52
70
|
streamOptions?: StreamOptions | undefined;
|
|
53
71
|
parallelToolCalls?: boolean | undefined;
|
|
@@ -73,6 +91,17 @@ export type ResponsesCreateRequest = {
|
|
|
73
91
|
[additionalProperties: string]: unknown;
|
|
74
92
|
};
|
|
75
93
|
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type Input$Outbound = string | Array<ResponsesInputItem$Outbound>;
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const Input$outboundSchema: z.ZodMiniType<Input$Outbound, Input> =
|
|
99
|
+
smartUnion([z.string(), z.array(ResponsesInputItem$outboundSchema)]);
|
|
100
|
+
|
|
101
|
+
export function inputToJSON(input: Input): string {
|
|
102
|
+
return JSON.stringify(Input$outboundSchema.parse(input));
|
|
103
|
+
}
|
|
104
|
+
|
|
76
105
|
/** @internal */
|
|
77
106
|
export const Modality$outboundSchema: z.ZodMiniEnum<typeof Modality> = z.enum(
|
|
78
107
|
Modality,
|
|
@@ -81,7 +110,7 @@ export const Modality$outboundSchema: z.ZodMiniEnum<typeof Modality> = z.enum(
|
|
|
81
110
|
/** @internal */
|
|
82
111
|
export type ResponsesCreateRequest$Outbound = {
|
|
83
112
|
model: string;
|
|
84
|
-
input:
|
|
113
|
+
input: string | Array<ResponsesInputItem$Outbound>;
|
|
85
114
|
attachments?: Array<AttachmentInput$Outbound> | undefined;
|
|
86
115
|
attachment?: AttachmentInput$Outbound | undefined;
|
|
87
116
|
stream?: boolean | undefined;
|
|
@@ -90,8 +119,8 @@ export type ResponsesCreateRequest$Outbound = {
|
|
|
90
119
|
previous_response_id?: string | undefined;
|
|
91
120
|
max_output_tokens?: number | undefined;
|
|
92
121
|
temperature?: number | undefined;
|
|
93
|
-
tools?: Array<
|
|
94
|
-
tool_choice?:
|
|
122
|
+
tools?: Array<ResponsesFunctionTool$Outbound> | undefined;
|
|
123
|
+
tool_choice?: ResponsesToolChoice$Outbound | undefined;
|
|
95
124
|
response_format?: ResponseFormat$Outbound | undefined;
|
|
96
125
|
stream_options?: StreamOptions$Outbound | undefined;
|
|
97
126
|
parallel_tool_calls?: boolean | undefined;
|
|
@@ -125,7 +154,10 @@ export const ResponsesCreateRequest$outboundSchema: z.ZodMiniType<
|
|
|
125
154
|
z.catchall(
|
|
126
155
|
z.object({
|
|
127
156
|
model: z.string(),
|
|
128
|
-
input:
|
|
157
|
+
input: smartUnion([
|
|
158
|
+
z.string(),
|
|
159
|
+
z.array(ResponsesInputItem$outboundSchema),
|
|
160
|
+
]),
|
|
129
161
|
attachments: z.optional(z.array(AttachmentInput$outboundSchema)),
|
|
130
162
|
attachment: z.optional(AttachmentInput$outboundSchema),
|
|
131
163
|
stream: z.optional(z.boolean()),
|
|
@@ -134,8 +166,8 @@ export const ResponsesCreateRequest$outboundSchema: z.ZodMiniType<
|
|
|
134
166
|
previousResponseId: z.optional(z.string()),
|
|
135
167
|
maxOutputTokens: z.optional(z.int()),
|
|
136
168
|
temperature: z.optional(z.number()),
|
|
137
|
-
tools: z.optional(z.array(
|
|
138
|
-
toolChoice: z.optional(
|
|
169
|
+
tools: z.optional(z.array(ResponsesFunctionTool$outboundSchema)),
|
|
170
|
+
toolChoice: z.optional(ResponsesToolChoice$outboundSchema),
|
|
139
171
|
responseFormat: z.optional(ResponseFormat$outboundSchema),
|
|
140
172
|
streamOptions: z.optional(StreamOptions$outboundSchema),
|
|
141
173
|
parallelToolCalls: z.optional(z.boolean()),
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ResponsesFunctionCallInputItem = {
|
|
9
|
+
id: string;
|
|
10
|
+
type: "function_call";
|
|
11
|
+
callId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
arguments: string;
|
|
14
|
+
status?: string | undefined;
|
|
15
|
+
[additionalProperties: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type ResponsesFunctionCallInputItem$Outbound = {
|
|
20
|
+
id: string;
|
|
21
|
+
type: "function_call";
|
|
22
|
+
call_id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
arguments: string;
|
|
25
|
+
status?: string | undefined;
|
|
26
|
+
[additionalProperties: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ResponsesFunctionCallInputItem$outboundSchema: z.ZodMiniType<
|
|
31
|
+
ResponsesFunctionCallInputItem$Outbound,
|
|
32
|
+
ResponsesFunctionCallInputItem
|
|
33
|
+
> = z.pipe(
|
|
34
|
+
z.catchall(
|
|
35
|
+
z.object({
|
|
36
|
+
id: z.string(),
|
|
37
|
+
type: z.literal("function_call"),
|
|
38
|
+
callId: z.string(),
|
|
39
|
+
name: z.string(),
|
|
40
|
+
arguments: z.string(),
|
|
41
|
+
status: z.optional(z.string()),
|
|
42
|
+
}),
|
|
43
|
+
z.any(),
|
|
44
|
+
),
|
|
45
|
+
z.transform((v) => {
|
|
46
|
+
return {
|
|
47
|
+
...remap$(v, {
|
|
48
|
+
callId: "call_id",
|
|
49
|
+
}),
|
|
50
|
+
};
|
|
51
|
+
}),
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
export function responsesFunctionCallInputItemToJSON(
|
|
55
|
+
responsesFunctionCallInputItem: ResponsesFunctionCallInputItem,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
ResponsesFunctionCallInputItem$outboundSchema.parse(
|
|
59
|
+
responsesFunctionCallInputItem,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ResponsesFunctionCallOutputInputItem = {
|
|
9
|
+
type: "function_call_output";
|
|
10
|
+
callId: string;
|
|
11
|
+
output: any;
|
|
12
|
+
[additionalProperties: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ResponsesFunctionCallOutputInputItem$Outbound = {
|
|
17
|
+
type: "function_call_output";
|
|
18
|
+
call_id: string;
|
|
19
|
+
output: any;
|
|
20
|
+
[additionalProperties: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const ResponsesFunctionCallOutputInputItem$outboundSchema: z.ZodMiniType<
|
|
25
|
+
ResponsesFunctionCallOutputInputItem$Outbound,
|
|
26
|
+
ResponsesFunctionCallOutputInputItem
|
|
27
|
+
> = z.pipe(
|
|
28
|
+
z.catchall(
|
|
29
|
+
z.object({
|
|
30
|
+
type: z.literal("function_call_output"),
|
|
31
|
+
callId: z.string(),
|
|
32
|
+
output: z.any(),
|
|
33
|
+
}),
|
|
34
|
+
z.any(),
|
|
35
|
+
),
|
|
36
|
+
z.transform((v) => {
|
|
37
|
+
return {
|
|
38
|
+
...remap$(v, {
|
|
39
|
+
callId: "call_id",
|
|
40
|
+
}),
|
|
41
|
+
};
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
export function responsesFunctionCallOutputInputItemToJSON(
|
|
46
|
+
responsesFunctionCallOutputInputItem: ResponsesFunctionCallOutputInputItem,
|
|
47
|
+
): string {
|
|
48
|
+
return JSON.stringify(
|
|
49
|
+
ResponsesFunctionCallOutputInputItem$outboundSchema.parse(
|
|
50
|
+
responsesFunctionCallOutputInputItem,
|
|
51
|
+
),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type ResponsesFunctionTool = {
|
|
8
|
+
type: "function";
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
parameters?: { [k: string]: any } | undefined;
|
|
12
|
+
strict?: boolean | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ResponsesFunctionTool$Outbound = {
|
|
17
|
+
type: "function";
|
|
18
|
+
name: string;
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
parameters?: { [k: string]: any } | undefined;
|
|
21
|
+
strict?: boolean | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ResponsesFunctionTool$outboundSchema: z.ZodMiniType<
|
|
26
|
+
ResponsesFunctionTool$Outbound,
|
|
27
|
+
ResponsesFunctionTool
|
|
28
|
+
> = z.object({
|
|
29
|
+
type: z.literal("function"),
|
|
30
|
+
name: z.string(),
|
|
31
|
+
description: z.optional(z.string()),
|
|
32
|
+
parameters: z.optional(z.record(z.string(), z.any())),
|
|
33
|
+
strict: z.optional(z.boolean()),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function responsesFunctionToolToJSON(
|
|
37
|
+
responsesFunctionTool: ResponsesFunctionTool,
|
|
38
|
+
): string {
|
|
39
|
+
return JSON.stringify(
|
|
40
|
+
ResponsesFunctionTool$outboundSchema.parse(responsesFunctionTool),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { smartUnion } from "../types/smart-union.js";
|
|
7
|
+
import {
|
|
8
|
+
ResponsesFunctionCallInputItem,
|
|
9
|
+
ResponsesFunctionCallInputItem$Outbound,
|
|
10
|
+
ResponsesFunctionCallInputItem$outboundSchema,
|
|
11
|
+
} from "./responses-function-call-input-item.js";
|
|
12
|
+
import {
|
|
13
|
+
ResponsesFunctionCallOutputInputItem,
|
|
14
|
+
ResponsesFunctionCallOutputInputItem$Outbound,
|
|
15
|
+
ResponsesFunctionCallOutputInputItem$outboundSchema,
|
|
16
|
+
} from "./responses-function-call-output-input-item.js";
|
|
17
|
+
import {
|
|
18
|
+
ResponsesMessageInputItem,
|
|
19
|
+
ResponsesMessageInputItem$Outbound,
|
|
20
|
+
ResponsesMessageInputItem$outboundSchema,
|
|
21
|
+
} from "./responses-message-input-item.js";
|
|
22
|
+
import {
|
|
23
|
+
ResponsesReasoningInputItem,
|
|
24
|
+
ResponsesReasoningInputItem$Outbound,
|
|
25
|
+
ResponsesReasoningInputItem$outboundSchema,
|
|
26
|
+
} from "./responses-reasoning-input-item.js";
|
|
27
|
+
|
|
28
|
+
export type ResponsesInputItem =
|
|
29
|
+
| ResponsesFunctionCallInputItem
|
|
30
|
+
| ResponsesFunctionCallOutputInputItem
|
|
31
|
+
| ResponsesMessageInputItem
|
|
32
|
+
| ResponsesReasoningInputItem;
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type ResponsesInputItem$Outbound =
|
|
36
|
+
| ResponsesFunctionCallInputItem$Outbound
|
|
37
|
+
| ResponsesFunctionCallOutputInputItem$Outbound
|
|
38
|
+
| ResponsesMessageInputItem$Outbound
|
|
39
|
+
| ResponsesReasoningInputItem$Outbound;
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const ResponsesInputItem$outboundSchema: z.ZodMiniType<
|
|
43
|
+
ResponsesInputItem$Outbound,
|
|
44
|
+
ResponsesInputItem
|
|
45
|
+
> = smartUnion([
|
|
46
|
+
ResponsesFunctionCallInputItem$outboundSchema,
|
|
47
|
+
ResponsesFunctionCallOutputInputItem$outboundSchema,
|
|
48
|
+
ResponsesMessageInputItem$outboundSchema,
|
|
49
|
+
ResponsesReasoningInputItem$outboundSchema,
|
|
50
|
+
]);
|
|
51
|
+
|
|
52
|
+
export function responsesInputItemToJSON(
|
|
53
|
+
responsesInputItem: ResponsesInputItem,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
ResponsesInputItem$outboundSchema.parse(responsesInputItem),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
import { smartUnion } from "../types/smart-union.js";
|
|
8
|
+
|
|
9
|
+
export const ResponsesMessageInputItemRole = {
|
|
10
|
+
System: "system",
|
|
11
|
+
Developer: "developer",
|
|
12
|
+
User: "user",
|
|
13
|
+
Assistant: "assistant",
|
|
14
|
+
} as const;
|
|
15
|
+
export type ResponsesMessageInputItemRole = ClosedEnum<
|
|
16
|
+
typeof ResponsesMessageInputItemRole
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
export type Content = string | Array<{ [k: string]: any }>;
|
|
20
|
+
|
|
21
|
+
export type ResponsesMessageInputItem = {
|
|
22
|
+
type?: "message" | undefined;
|
|
23
|
+
role: ResponsesMessageInputItemRole;
|
|
24
|
+
content: string | Array<{ [k: string]: any }>;
|
|
25
|
+
[additionalProperties: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const ResponsesMessageInputItemRole$outboundSchema: z.ZodMiniEnum<
|
|
30
|
+
typeof ResponsesMessageInputItemRole
|
|
31
|
+
> = z.enum(ResponsesMessageInputItemRole);
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type Content$Outbound = string | Array<{ [k: string]: any }>;
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const Content$outboundSchema: z.ZodMiniType<Content$Outbound, Content> =
|
|
38
|
+
smartUnion([z.string(), z.array(z.record(z.string(), z.any()))]);
|
|
39
|
+
|
|
40
|
+
export function contentToJSON(content: Content): string {
|
|
41
|
+
return JSON.stringify(Content$outboundSchema.parse(content));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type ResponsesMessageInputItem$Outbound = {
|
|
46
|
+
type?: "message" | undefined;
|
|
47
|
+
role: string;
|
|
48
|
+
content: string | Array<{ [k: string]: any }>;
|
|
49
|
+
[additionalProperties: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const ResponsesMessageInputItem$outboundSchema: z.ZodMiniType<
|
|
54
|
+
ResponsesMessageInputItem$Outbound,
|
|
55
|
+
ResponsesMessageInputItem
|
|
56
|
+
> = z.catchall(
|
|
57
|
+
z.object({
|
|
58
|
+
type: z.optional(z.literal("message")),
|
|
59
|
+
role: ResponsesMessageInputItemRole$outboundSchema,
|
|
60
|
+
content: smartUnion([z.string(), z.array(z.record(z.string(), z.any()))]),
|
|
61
|
+
}),
|
|
62
|
+
z.any(),
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
export function responsesMessageInputItemToJSON(
|
|
66
|
+
responsesMessageInputItem: ResponsesMessageInputItem,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
ResponsesMessageInputItem$outboundSchema.parse(responsesMessageInputItem),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type ResponsesNamedToolChoice = {
|
|
8
|
+
type: "function";
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type ResponsesNamedToolChoice$Outbound = {
|
|
14
|
+
type: "function";
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ResponsesNamedToolChoice$outboundSchema: z.ZodMiniType<
|
|
20
|
+
ResponsesNamedToolChoice$Outbound,
|
|
21
|
+
ResponsesNamedToolChoice
|
|
22
|
+
> = z.object({
|
|
23
|
+
type: z.literal("function"),
|
|
24
|
+
name: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function responsesNamedToolChoiceToJSON(
|
|
28
|
+
responsesNamedToolChoice: ResponsesNamedToolChoice,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
ResponsesNamedToolChoice$outboundSchema.parse(responsesNamedToolChoice),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ResponsesReasoningInputItem = {
|
|
9
|
+
id: string;
|
|
10
|
+
type: "reasoning";
|
|
11
|
+
summary?: Array<{ [k: string]: any }> | undefined;
|
|
12
|
+
encryptedContent?: string | undefined;
|
|
13
|
+
status?: string | undefined;
|
|
14
|
+
[additionalProperties: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type ResponsesReasoningInputItem$Outbound = {
|
|
19
|
+
id: string;
|
|
20
|
+
type: "reasoning";
|
|
21
|
+
summary?: Array<{ [k: string]: any }> | undefined;
|
|
22
|
+
encrypted_content?: string | undefined;
|
|
23
|
+
status?: string | undefined;
|
|
24
|
+
[additionalProperties: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const ResponsesReasoningInputItem$outboundSchema: z.ZodMiniType<
|
|
29
|
+
ResponsesReasoningInputItem$Outbound,
|
|
30
|
+
ResponsesReasoningInputItem
|
|
31
|
+
> = z.pipe(
|
|
32
|
+
z.catchall(
|
|
33
|
+
z.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
type: z.literal("reasoning"),
|
|
36
|
+
summary: z.optional(z.array(z.record(z.string(), z.any()))),
|
|
37
|
+
encryptedContent: z.optional(z.string()),
|
|
38
|
+
status: z.optional(z.string()),
|
|
39
|
+
}),
|
|
40
|
+
z.any(),
|
|
41
|
+
),
|
|
42
|
+
z.transform((v) => {
|
|
43
|
+
return {
|
|
44
|
+
...remap$(v, {
|
|
45
|
+
encryptedContent: "encrypted_content",
|
|
46
|
+
}),
|
|
47
|
+
};
|
|
48
|
+
}),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export function responsesReasoningInputItemToJSON(
|
|
52
|
+
responsesReasoningInputItem: ResponsesReasoningInputItem,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
ResponsesReasoningInputItem$outboundSchema.parse(
|
|
56
|
+
responsesReasoningInputItem,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
import { smartUnion } from "../types/smart-union.js";
|
|
8
|
+
import {
|
|
9
|
+
ResponsesNamedToolChoice,
|
|
10
|
+
ResponsesNamedToolChoice$Outbound,
|
|
11
|
+
ResponsesNamedToolChoice$outboundSchema,
|
|
12
|
+
} from "./responses-named-tool-choice.js";
|
|
13
|
+
|
|
14
|
+
export const ResponsesToolChoiceEnum = {
|
|
15
|
+
None: "none",
|
|
16
|
+
Auto: "auto",
|
|
17
|
+
Required: "required",
|
|
18
|
+
} as const;
|
|
19
|
+
export type ResponsesToolChoiceEnum = ClosedEnum<
|
|
20
|
+
typeof ResponsesToolChoiceEnum
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
export type ResponsesToolChoice =
|
|
24
|
+
| ResponsesNamedToolChoice
|
|
25
|
+
| ResponsesToolChoiceEnum;
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const ResponsesToolChoiceEnum$outboundSchema: z.ZodMiniEnum<
|
|
29
|
+
typeof ResponsesToolChoiceEnum
|
|
30
|
+
> = z.enum(ResponsesToolChoiceEnum);
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type ResponsesToolChoice$Outbound =
|
|
34
|
+
| ResponsesNamedToolChoice$Outbound
|
|
35
|
+
| string;
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ResponsesToolChoice$outboundSchema: z.ZodMiniType<
|
|
39
|
+
ResponsesToolChoice$Outbound,
|
|
40
|
+
ResponsesToolChoice
|
|
41
|
+
> = smartUnion([
|
|
42
|
+
ResponsesNamedToolChoice$outboundSchema,
|
|
43
|
+
ResponsesToolChoiceEnum$outboundSchema,
|
|
44
|
+
]);
|
|
45
|
+
|
|
46
|
+
export function responsesToolChoiceToJSON(
|
|
47
|
+
responsesToolChoice: ResponsesToolChoice,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
ResponsesToolChoice$outboundSchema.parse(responsesToolChoice),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
@@ -45,9 +45,9 @@ export type SDKOptions = {
|
|
|
45
45
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
46
46
|
export declare const SDK_METADATA: {
|
|
47
47
|
readonly language: "typescript";
|
|
48
|
-
readonly openapiDocVersion: "0.8.
|
|
49
|
-
readonly sdkVersion: "0.8.
|
|
48
|
+
readonly openapiDocVersion: "0.8.23";
|
|
49
|
+
readonly sdkVersion: "0.8.23";
|
|
50
50
|
readonly genVersion: "2.918.3";
|
|
51
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.
|
|
51
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.23 2.918.3 0.8.19 openapi";
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -34,9 +34,9 @@ export function serverURLFromOptions(options) {
|
|
|
34
34
|
}
|
|
35
35
|
export const SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
|
-
openapiDocVersion: "0.8.
|
|
38
|
-
sdkVersion: "0.8.
|
|
37
|
+
openapiDocVersion: "0.8.23",
|
|
38
|
+
sdkVersion: "0.8.23",
|
|
39
39
|
genVersion: "2.918.3",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.8.23 2.918.3 0.8.19 openapi",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|