@mastra/server 1.20.0 → 1.21.0-alpha.1
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 +96 -0
- package/dist/_types/@internal_core/dist/index.d.ts +12 -2
- package/dist/{chunk-NCCK5NVX.cjs → chunk-22YG2467.cjs} +3 -3
- package/dist/{chunk-NCCK5NVX.cjs.map → chunk-22YG2467.cjs.map} +1 -1
- package/dist/{chunk-3W54ZNYP.cjs → chunk-5IKQNFW5.cjs} +3 -3
- package/dist/{chunk-3W54ZNYP.cjs.map → chunk-5IKQNFW5.cjs.map} +1 -1
- package/dist/chunk-6MFKRF4K.cjs +176 -0
- package/dist/chunk-6MFKRF4K.cjs.map +1 -0
- package/dist/{chunk-G726SOOJ.cjs → chunk-7G44ZSFS.cjs} +3 -3
- package/dist/{chunk-G726SOOJ.cjs.map → chunk-7G44ZSFS.cjs.map} +1 -1
- package/dist/{chunk-TYYGY4H4.cjs → chunk-7HOYCW7S.cjs} +3 -3
- package/dist/{chunk-TYYGY4H4.cjs.map → chunk-7HOYCW7S.cjs.map} +1 -1
- package/dist/{chunk-MH2WUZWZ.js → chunk-7KJ4NUEH.js} +3 -3
- package/dist/{chunk-MH2WUZWZ.js.map → chunk-7KJ4NUEH.js.map} +1 -1
- package/dist/chunk-AJYJ4H7P.js +438 -0
- package/dist/chunk-AJYJ4H7P.js.map +1 -0
- package/dist/{chunk-ULLR3RN3.cjs → chunk-AYD7DM5U.cjs} +3 -3
- package/dist/{chunk-ULLR3RN3.cjs.map → chunk-AYD7DM5U.cjs.map} +1 -1
- package/dist/chunk-B6HNPO67.cjs +195 -0
- package/dist/chunk-B6HNPO67.cjs.map +1 -0
- package/dist/chunk-BQXQZPYZ.js +189 -0
- package/dist/chunk-BQXQZPYZ.js.map +1 -0
- package/dist/{chunk-DAEHQAZC.cjs → chunk-DNYJSPA5.cjs} +27 -6
- package/dist/chunk-DNYJSPA5.cjs.map +1 -0
- package/dist/{chunk-UE4FGLA3.cjs → chunk-DWXE75AZ.cjs} +38 -38
- package/dist/{chunk-UE4FGLA3.cjs.map → chunk-DWXE75AZ.cjs.map} +1 -1
- package/dist/chunk-FCCXLAOT.js +153 -0
- package/dist/chunk-FCCXLAOT.js.map +1 -0
- package/dist/{chunk-5CDCKTHB.js → chunk-FCLPA23B.js} +27 -6
- package/dist/chunk-FCLPA23B.js.map +1 -0
- package/dist/{chunk-XINNAPVH.cjs → chunk-FGXFUFWK.cjs} +29 -29
- package/dist/{chunk-XINNAPVH.cjs.map → chunk-FGXFUFWK.cjs.map} +1 -1
- package/dist/chunk-FURWD3DL.cjs +180 -0
- package/dist/chunk-FURWD3DL.cjs.map +1 -0
- package/dist/{chunk-23U24RPR.cjs → chunk-G5IQN5ZG.cjs} +3 -3
- package/dist/{chunk-23U24RPR.cjs.map → chunk-G5IQN5ZG.cjs.map} +1 -1
- package/dist/{chunk-UFK5THVP.cjs → chunk-GANMD6GP.cjs} +3 -3
- package/dist/{chunk-UFK5THVP.cjs.map → chunk-GANMD6GP.cjs.map} +1 -1
- package/dist/{chunk-OSMI5XLT.cjs → chunk-GLB2TK6A.cjs} +12 -7
- package/dist/chunk-GLB2TK6A.cjs.map +1 -0
- package/dist/chunk-GWPNQNXF.cjs +45 -0
- package/dist/chunk-GWPNQNXF.cjs.map +1 -0
- package/dist/chunk-IRRJW5EA.cjs +695 -0
- package/dist/chunk-IRRJW5EA.cjs.map +1 -0
- package/dist/{chunk-G2ZZKKQI.js → chunk-L7PDVJZD.js} +3 -3
- package/dist/{chunk-G2ZZKKQI.js.map → chunk-L7PDVJZD.js.map} +1 -1
- package/dist/{chunk-K6RNBFGH.js → chunk-M4BZ2B7D.js} +3 -3
- package/dist/{chunk-K6RNBFGH.js.map → chunk-M4BZ2B7D.js.map} +1 -1
- package/dist/{chunk-4D7KSU4X.js → chunk-MWRVCCZE.js} +3 -3
- package/dist/{chunk-4D7KSU4X.js.map → chunk-MWRVCCZE.js.map} +1 -1
- package/dist/chunk-NCW7IFFR.js +690 -0
- package/dist/chunk-NCW7IFFR.js.map +1 -0
- package/dist/{chunk-MKW43AJ3.js → chunk-NL7Y763D.js} +3 -3
- package/dist/{chunk-MKW43AJ3.js.map → chunk-NL7Y763D.js.map} +1 -1
- package/dist/{chunk-MYFV2L3T.js → chunk-OBR4SMSZ.js} +3 -3
- package/dist/{chunk-MYFV2L3T.js.map → chunk-OBR4SMSZ.js.map} +1 -1
- package/dist/chunk-OJ72T77G.cjs +452 -0
- package/dist/chunk-OJ72T77G.cjs.map +1 -0
- package/dist/{chunk-5YMAXL54.js → chunk-QSA443WV.js} +3 -3
- package/dist/{chunk-5YMAXL54.js.map → chunk-QSA443WV.js.map} +1 -1
- package/dist/{chunk-4NRXB7VI.js → chunk-SNGR4M5I.js} +3 -3
- package/dist/{chunk-4NRXB7VI.js.map → chunk-SNGR4M5I.js.map} +1 -1
- package/dist/{chunk-XDFOXO76.js → chunk-SW6IJZFQ.js} +9 -9
- package/dist/{chunk-XDFOXO76.js.map → chunk-SW6IJZFQ.js.map} +1 -1
- package/dist/{chunk-WPBRQTMO.js → chunk-VCA6BSYU.js} +3 -3
- package/dist/{chunk-WPBRQTMO.js.map → chunk-VCA6BSYU.js.map} +1 -1
- package/dist/{chunk-HHF4VF75.js → chunk-VHUB2TYN.js} +3 -3
- package/dist/{chunk-HHF4VF75.js.map → chunk-VHUB2TYN.js.map} +1 -1
- package/dist/chunk-VKIIGA2F.js +35 -0
- package/dist/chunk-VKIIGA2F.js.map +1 -0
- package/dist/{chunk-2QCTUEHS.cjs → chunk-VVWHCAF2.cjs} +3 -3
- package/dist/{chunk-2QCTUEHS.cjs.map → chunk-VVWHCAF2.cjs.map} +1 -1
- package/dist/{chunk-YFQ5JIUD.js → chunk-WO7BJJIB.js} +12 -7
- package/dist/chunk-WO7BJJIB.js.map +1 -0
- package/dist/{chunk-A5J2TY2W.cjs → chunk-XKKTZVZX.cjs} +3 -3
- package/dist/{chunk-A5J2TY2W.cjs.map → chunk-XKKTZVZX.cjs.map} +1 -1
- package/dist/chunk-ZA3NGM3L.js +174 -0
- package/dist/chunk-ZA3NGM3L.js.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-server-routes.md +22 -1
- package/dist/{observational-memory-B25SASRW-T76NSRNU.cjs → observational-memory-WOEVNCG4-5THJIIQE.cjs} +26 -26
- package/dist/{observational-memory-B25SASRW-T76NSRNU.cjs.map → observational-memory-WOEVNCG4-5THJIIQE.cjs.map} +1 -1
- package/dist/{observational-memory-B25SASRW-L4GYD2ZN.js → observational-memory-WOEVNCG4-DT36JHO2.js} +3 -3
- package/dist/{observational-memory-B25SASRW-L4GYD2ZN.js.map → observational-memory-WOEVNCG4-DT36JHO2.js.map} +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -16
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/conversations.cjs +24 -0
- package/dist/server/handlers/conversations.cjs.map +1 -0
- package/dist/server/handlers/conversations.d.ts +153 -0
- package/dist/server/handlers/conversations.d.ts.map +1 -0
- package/dist/server/handlers/conversations.js +3 -0
- package/dist/server/handlers/conversations.js.map +1 -0
- package/dist/server/handlers/datasets.cjs +26 -26
- package/dist/server/handlers/datasets.js +1 -1
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/observability-new-endpoints.cjs +27 -27
- package/dist/server/handlers/observability-new-endpoints.d.ts +8 -0
- package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
- package/dist/server/handlers/observability-new-endpoints.js +1 -1
- package/dist/server/handlers/observability.cjs +32 -32
- package/dist/server/handlers/observability.js +2 -2
- package/dist/server/handlers/responses.adapter.cjs +60 -0
- package/dist/server/handlers/responses.adapter.cjs.map +1 -0
- package/dist/server/handlers/responses.adapter.d.ts +98 -0
- package/dist/server/handlers/responses.adapter.d.ts.map +1 -0
- package/dist/server/handlers/responses.adapter.js +3 -0
- package/dist/server/handlers/responses.adapter.js.map +1 -0
- package/dist/server/handlers/responses.cjs +20 -0
- package/dist/server/handlers/responses.cjs.map +1 -0
- package/dist/server/handlers/responses.d.ts +387 -0
- package/dist/server/handlers/responses.d.ts.map +1 -0
- package/dist/server/handlers/responses.js +3 -0
- package/dist/server/handlers/responses.js.map +1 -0
- package/dist/server/handlers/responses.storage.cjs +28 -0
- package/dist/server/handlers/responses.storage.cjs.map +1 -0
- package/dist/server/handlers/responses.storage.d.ts +97 -0
- package/dist/server/handlers/responses.storage.d.ts.map +1 -0
- package/dist/server/handlers/responses.storage.js +3 -0
- package/dist/server/handlers/responses.storage.js.map +1 -0
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agents.cjs +7 -7
- package/dist/server/handlers/stored-agents.js +1 -1
- package/dist/server/handlers/stored-mcp-clients.cjs +6 -6
- package/dist/server/handlers/stored-mcp-clients.js +1 -1
- package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
- package/dist/server/handlers/stored-prompt-blocks.js +1 -1
- package/dist/server/handlers/stored-scorers.cjs +6 -6
- package/dist/server/handlers/stored-scorers.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/workflows.cjs +24 -24
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +28 -18
- package/dist/server/handlers.d.ts +2 -0
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +9 -7
- package/dist/server/schemas/conversations.d.ts +74 -0
- package/dist/server/schemas/conversations.d.ts.map +1 -0
- package/dist/server/schemas/index.cjs +185 -91
- package/dist/server/schemas/index.d.ts +2 -0
- package/dist/server/schemas/index.d.ts.map +1 -1
- package/dist/server/schemas/index.js +5 -3
- package/dist/server/schemas/responses.d.ts +341 -0
- package/dist/server/schemas/responses.d.ts.map +1 -0
- package/dist/server/server-adapter/index.cjs +153 -138
- package/dist/server/server-adapter/index.cjs.map +1 -1
- package/dist/server/server-adapter/index.js +30 -15
- package/dist/server/server-adapter/index.js.map +1 -1
- package/dist/server/server-adapter/routes/conversations.d.ts +150 -0
- package/dist/server/server-adapter/routes/conversations.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/index.d.ts +4 -0
- package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/observability.d.ts +4 -0
- package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/responses.d.ts +385 -0
- package/dist/server/server-adapter/routes/responses.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/chunk-5CDCKTHB.js.map +0 -1
- package/dist/chunk-DAEHQAZC.cjs.map +0 -1
- package/dist/chunk-OSMI5XLT.cjs.map +0 -1
- package/dist/chunk-YFQ5JIUD.js.map +0 -1
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const responseIdPathParams: z.ZodObject<{
|
|
3
|
+
responseId: z.ZodString;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const responseInputTextPartSchema: z.ZodObject<{
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
text: "text";
|
|
8
|
+
input_text: "input_text";
|
|
9
|
+
output_text: "output_text";
|
|
10
|
+
}>;
|
|
11
|
+
text: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const responseInputMessageSchema: z.ZodObject<{
|
|
14
|
+
role: z.ZodEnum<{
|
|
15
|
+
system: "system";
|
|
16
|
+
user: "user";
|
|
17
|
+
assistant: "assistant";
|
|
18
|
+
developer: "developer";
|
|
19
|
+
}>;
|
|
20
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
|
|
21
|
+
type: z.ZodEnum<{
|
|
22
|
+
text: "text";
|
|
23
|
+
input_text: "input_text";
|
|
24
|
+
output_text: "output_text";
|
|
25
|
+
}>;
|
|
26
|
+
text: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>]>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type ResponseInputMessage = z.infer<typeof responseInputMessageSchema>;
|
|
30
|
+
export declare const responseTextFormatSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"json_object">;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"json_schema">;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36
|
+
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
37
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
}, z.core.$strip>]>;
|
|
39
|
+
export type ResponseTextFormat = z.infer<typeof responseTextFormatSchema>;
|
|
40
|
+
declare const responseTextSchema: z.ZodObject<{
|
|
41
|
+
format: z.ZodUnion<readonly [z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"json_object">;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
type: z.ZodLiteral<"json_schema">;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
description: z.ZodOptional<z.ZodString>;
|
|
47
|
+
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
48
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strip>]>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type ResponseTextConfig = z.infer<typeof responseTextSchema>;
|
|
52
|
+
export declare const createResponseBodySchema: z.ZodObject<{
|
|
53
|
+
model: z.ZodString;
|
|
54
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
55
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
|
|
56
|
+
role: z.ZodEnum<{
|
|
57
|
+
system: "system";
|
|
58
|
+
user: "user";
|
|
59
|
+
assistant: "assistant";
|
|
60
|
+
developer: "developer";
|
|
61
|
+
}>;
|
|
62
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
|
|
63
|
+
type: z.ZodEnum<{
|
|
64
|
+
text: "text";
|
|
65
|
+
input_text: "input_text";
|
|
66
|
+
output_text: "output_text";
|
|
67
|
+
}>;
|
|
68
|
+
text: z.ZodString;
|
|
69
|
+
}, z.core.$strip>>]>;
|
|
70
|
+
}, z.core.$strip>>]>;
|
|
71
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
72
|
+
text: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
format: z.ZodUnion<readonly [z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"json_object">;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"json_schema">;
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
description: z.ZodOptional<z.ZodString>;
|
|
79
|
+
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
80
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
}, z.core.$strip>]>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
84
|
+
providerOptions: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
86
|
+
}, z.core.$loose>>;
|
|
87
|
+
stream: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
88
|
+
store: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
89
|
+
previous_response_id: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$loose>;
|
|
91
|
+
export type CreateResponseBody = z.infer<typeof createResponseBodySchema>;
|
|
92
|
+
export declare const responseOutputTextSchema: z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<"output_text">;
|
|
94
|
+
text: z.ZodString;
|
|
95
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
96
|
+
logprobs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export declare const responseInputTextContentSchema: z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"input_text">;
|
|
100
|
+
text: z.ZodString;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export declare const conversationMessageContentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
103
|
+
type: z.ZodLiteral<"input_text">;
|
|
104
|
+
text: z.ZodString;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
type: z.ZodLiteral<"output_text">;
|
|
107
|
+
text: z.ZodString;
|
|
108
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
109
|
+
logprobs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
110
|
+
}, z.core.$strip>]>;
|
|
111
|
+
export declare const responseOutputMessageSchema: z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
type: z.ZodLiteral<"message">;
|
|
114
|
+
role: z.ZodLiteral<"assistant">;
|
|
115
|
+
status: z.ZodEnum<{
|
|
116
|
+
completed: "completed";
|
|
117
|
+
in_progress: "in_progress";
|
|
118
|
+
incomplete: "incomplete";
|
|
119
|
+
}>;
|
|
120
|
+
content: z.ZodArray<z.ZodObject<{
|
|
121
|
+
type: z.ZodLiteral<"output_text">;
|
|
122
|
+
text: z.ZodString;
|
|
123
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
124
|
+
logprobs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export declare const responseOutputFunctionCallSchema: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
type: z.ZodLiteral<"function_call">;
|
|
130
|
+
call_id: z.ZodString;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
arguments: z.ZodString;
|
|
133
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
completed: "completed";
|
|
135
|
+
in_progress: "in_progress";
|
|
136
|
+
incomplete: "incomplete";
|
|
137
|
+
}>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export declare const responseOutputFunctionCallOutputSchema: z.ZodObject<{
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
type: z.ZodLiteral<"function_call_output">;
|
|
142
|
+
call_id: z.ZodString;
|
|
143
|
+
output: z.ZodString;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export declare const responseUsageSchema: z.ZodObject<{
|
|
146
|
+
input_tokens: z.ZodNumber;
|
|
147
|
+
output_tokens: z.ZodNumber;
|
|
148
|
+
total_tokens: z.ZodNumber;
|
|
149
|
+
input_tokens_details: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
cached_tokens: z.ZodNumber;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
output_tokens_details: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
reasoning_tokens: z.ZodNumber;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
export type ResponseUsage = z.infer<typeof responseUsageSchema>;
|
|
157
|
+
export declare const responseToolSchema: z.ZodObject<{
|
|
158
|
+
type: z.ZodLiteral<"function">;
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
description: z.ZodOptional<z.ZodString>;
|
|
161
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
export type ResponseTool = z.infer<typeof responseToolSchema>;
|
|
164
|
+
export declare const responseOutputItemSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
type: z.ZodLiteral<"message">;
|
|
167
|
+
role: z.ZodLiteral<"assistant">;
|
|
168
|
+
status: z.ZodEnum<{
|
|
169
|
+
completed: "completed";
|
|
170
|
+
in_progress: "in_progress";
|
|
171
|
+
incomplete: "incomplete";
|
|
172
|
+
}>;
|
|
173
|
+
content: z.ZodArray<z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"output_text">;
|
|
175
|
+
text: z.ZodString;
|
|
176
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
177
|
+
logprobs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
type: z.ZodLiteral<"function_call">;
|
|
182
|
+
call_id: z.ZodString;
|
|
183
|
+
name: z.ZodString;
|
|
184
|
+
arguments: z.ZodString;
|
|
185
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
186
|
+
completed: "completed";
|
|
187
|
+
in_progress: "in_progress";
|
|
188
|
+
incomplete: "incomplete";
|
|
189
|
+
}>>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
type: z.ZodLiteral<"function_call_output">;
|
|
193
|
+
call_id: z.ZodString;
|
|
194
|
+
output: z.ZodString;
|
|
195
|
+
}, z.core.$strip>]>;
|
|
196
|
+
export type ResponseOutputItem = z.infer<typeof responseOutputItemSchema>;
|
|
197
|
+
export declare const conversationItemMessageSchema: z.ZodObject<{
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
type: z.ZodLiteral<"message">;
|
|
200
|
+
role: z.ZodEnum<{
|
|
201
|
+
system: "system";
|
|
202
|
+
user: "user";
|
|
203
|
+
assistant: "assistant";
|
|
204
|
+
}>;
|
|
205
|
+
status: z.ZodLiteral<"completed">;
|
|
206
|
+
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
207
|
+
type: z.ZodLiteral<"input_text">;
|
|
208
|
+
text: z.ZodString;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
type: z.ZodLiteral<"output_text">;
|
|
211
|
+
text: z.ZodString;
|
|
212
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
213
|
+
logprobs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
214
|
+
}, z.core.$strip>]>>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export declare const conversationItemSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
type: z.ZodLiteral<"message">;
|
|
219
|
+
role: z.ZodEnum<{
|
|
220
|
+
system: "system";
|
|
221
|
+
user: "user";
|
|
222
|
+
assistant: "assistant";
|
|
223
|
+
}>;
|
|
224
|
+
status: z.ZodLiteral<"completed">;
|
|
225
|
+
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"input_text">;
|
|
227
|
+
text: z.ZodString;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
type: z.ZodLiteral<"output_text">;
|
|
230
|
+
text: z.ZodString;
|
|
231
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
232
|
+
logprobs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
233
|
+
}, z.core.$strip>]>>;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
id: z.ZodString;
|
|
236
|
+
type: z.ZodLiteral<"function_call">;
|
|
237
|
+
call_id: z.ZodString;
|
|
238
|
+
name: z.ZodString;
|
|
239
|
+
arguments: z.ZodString;
|
|
240
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
completed: "completed";
|
|
242
|
+
in_progress: "in_progress";
|
|
243
|
+
incomplete: "incomplete";
|
|
244
|
+
}>>;
|
|
245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
type: z.ZodLiteral<"function_call_output">;
|
|
248
|
+
call_id: z.ZodString;
|
|
249
|
+
output: z.ZodString;
|
|
250
|
+
}, z.core.$strip>]>;
|
|
251
|
+
export type ConversationItem = z.infer<typeof conversationItemSchema>;
|
|
252
|
+
export declare const responseObjectSchema: z.ZodObject<{
|
|
253
|
+
id: z.ZodString;
|
|
254
|
+
object: z.ZodLiteral<"response">;
|
|
255
|
+
created_at: z.ZodNumber;
|
|
256
|
+
completed_at: z.ZodNullable<z.ZodNumber>;
|
|
257
|
+
model: z.ZodString;
|
|
258
|
+
status: z.ZodEnum<{
|
|
259
|
+
completed: "completed";
|
|
260
|
+
in_progress: "in_progress";
|
|
261
|
+
incomplete: "incomplete";
|
|
262
|
+
}>;
|
|
263
|
+
output: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
264
|
+
id: z.ZodString;
|
|
265
|
+
type: z.ZodLiteral<"message">;
|
|
266
|
+
role: z.ZodLiteral<"assistant">;
|
|
267
|
+
status: z.ZodEnum<{
|
|
268
|
+
completed: "completed";
|
|
269
|
+
in_progress: "in_progress";
|
|
270
|
+
incomplete: "incomplete";
|
|
271
|
+
}>;
|
|
272
|
+
content: z.ZodArray<z.ZodObject<{
|
|
273
|
+
type: z.ZodLiteral<"output_text">;
|
|
274
|
+
text: z.ZodString;
|
|
275
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
276
|
+
logprobs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
279
|
+
id: z.ZodString;
|
|
280
|
+
type: z.ZodLiteral<"function_call">;
|
|
281
|
+
call_id: z.ZodString;
|
|
282
|
+
name: z.ZodString;
|
|
283
|
+
arguments: z.ZodString;
|
|
284
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
285
|
+
completed: "completed";
|
|
286
|
+
in_progress: "in_progress";
|
|
287
|
+
incomplete: "incomplete";
|
|
288
|
+
}>>;
|
|
289
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
290
|
+
id: z.ZodString;
|
|
291
|
+
type: z.ZodLiteral<"function_call_output">;
|
|
292
|
+
call_id: z.ZodString;
|
|
293
|
+
output: z.ZodString;
|
|
294
|
+
}, z.core.$strip>]>>;
|
|
295
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
296
|
+
input_tokens: z.ZodNumber;
|
|
297
|
+
output_tokens: z.ZodNumber;
|
|
298
|
+
total_tokens: z.ZodNumber;
|
|
299
|
+
input_tokens_details: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
cached_tokens: z.ZodNumber;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
output_tokens_details: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
reasoning_tokens: z.ZodNumber;
|
|
304
|
+
}, z.core.$strip>>;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
error: z.ZodOptional<z.ZodNull>;
|
|
307
|
+
incomplete_details: z.ZodOptional<z.ZodNull>;
|
|
308
|
+
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
310
|
+
format: z.ZodUnion<readonly [z.ZodObject<{
|
|
311
|
+
type: z.ZodLiteral<"json_object">;
|
|
312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
313
|
+
type: z.ZodLiteral<"json_schema">;
|
|
314
|
+
name: z.ZodString;
|
|
315
|
+
description: z.ZodOptional<z.ZodString>;
|
|
316
|
+
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
317
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
}, z.core.$strip>]>;
|
|
319
|
+
}, z.core.$strip>>>;
|
|
320
|
+
previous_response_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
conversation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
providerOptions: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
324
|
+
}, z.core.$loose>>;
|
|
325
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
326
|
+
type: z.ZodLiteral<"function">;
|
|
327
|
+
name: z.ZodString;
|
|
328
|
+
description: z.ZodOptional<z.ZodString>;
|
|
329
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
330
|
+
}, z.core.$strip>>>;
|
|
331
|
+
store: z.ZodOptional<z.ZodBoolean>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
export type ResponseObject = z.infer<typeof responseObjectSchema>;
|
|
334
|
+
export declare const deleteResponseSchema: z.ZodObject<{
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
object: z.ZodLiteral<"response">;
|
|
337
|
+
deleted: z.ZodLiteral<true>;
|
|
338
|
+
}, z.core.$strip>;
|
|
339
|
+
export type DeleteResponse = z.infer<typeof deleteResponseSchema>;
|
|
340
|
+
export {};
|
|
341
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/responses.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;iBAGtC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAwB9E,eAAO,MAAM,wBAAwB;;;;;;;;mBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,QAAA,MAAM,kBAAkB;;;;;;;;;;iBAEtB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCjC,CAAC;AAEL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;mBAAsE,CAAC;AAEpH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;iBAO3C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;iBAKjD,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAc9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAInC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;iBAMxC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|