@veruna/api-contracts 1.1.25 → 1.1.26
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/build/rest-api.d.ts +1 -0
- package/build/rest-api.js +1 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/s2s.routes.d.ts +1 -0
- package/build/routes/s2s.routes.js +1 -0
- package/build/routes/s2s.routes.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool-id.enum.d.ts +2 -1
- package/build/v1/ai/tool-id.enum.js +1 -0
- package/build/v1/ai/tool-id.enum.js.map +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +17 -0
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +17 -0
- package/build/v1/chat/commands/update-chat-title.command.d.ts +17 -0
- package/build/v1/chat/commands/update-chat.command.d.ts +17 -0
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +17 -0
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +17 -0
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +17 -0
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +17 -0
- package/build/v1/message/commands/create-message.command.d.ts +4 -0
- package/build/v1/message/queries/get-message-stream-reg.query.d.ts +2 -0
- package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +2 -0
- package/build/v1/message/schemas/generation-step.schema.d.ts +2 -1
- package/build/v1/message/schemas/generation-step.schema.js +1 -0
- package/build/v1/message/schemas/generation-step.schema.js.map +1 -1
- package/build/v1/message/schemas/index.d.ts +2 -2
- package/build/v1/message/schemas/index.js +3 -2
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-response.schema.d.ts +17 -0
- package/build/v1/message/schemas/message-step-response.schema.d.ts +70 -0
- package/build/v1/message/schemas/message-step-response.schema.js +22 -1
- package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
- package/build/v1/message/schemas/stream-events.schema.d.ts +4 -0
- package/build/v1/message/schemas/stream-events.schema.js +2 -0
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build/v1/s2s/commands/index.d.ts +1 -0
- package/build/v1/s2s/commands/index.js +1 -0
- package/build/v1/s2s/commands/index.js.map +1 -1
- package/build/v1/s2s/commands/upload-ai-file.command.d.ts +24 -0
- package/build/v1/s2s/commands/upload-ai-file.command.js +14 -0
- package/build/v1/s2s/commands/upload-ai-file.command.js.map +1 -0
- package/build/v1/s2s/schemas/index.d.ts +2 -0
- package/build/v1/s2s/schemas/index.js +2 -0
- package/build/v1/s2s/schemas/index.js.map +1 -1
- package/build/v1/s2s/schemas/s2s-upload-ai-file-request.schema.d.ts +17 -0
- package/build/v1/s2s/schemas/s2s-upload-ai-file-request.schema.js +22 -0
- package/build/v1/s2s/schemas/s2s-upload-ai-file-request.schema.js.map +1 -0
- package/build/v1/s2s/schemas/s2s-upload-ai-file-response.schema.d.ts +8 -0
- package/build/v1/s2s/schemas/s2s-upload-ai-file-response.schema.js +11 -0
- package/build/v1/s2s/schemas/s2s-upload-ai-file-response.schema.js.map +1 -0
- package/build/v1/tool/code-execution/code-execution-chunk-type.enum.d.ts +7 -0
- package/build/v1/tool/code-execution/code-execution-chunk-type.enum.js +12 -0
- package/build/v1/tool/code-execution/code-execution-chunk-type.enum.js.map +1 -0
- package/build/v1/tool/code-execution/code-execution-language.enum.d.ts +4 -0
- package/build/v1/tool/code-execution/code-execution-language.enum.js +9 -0
- package/build/v1/tool/code-execution/code-execution-language.enum.js.map +1 -0
- package/build/v1/tool/code-execution/code-execution-outcome-kind.enum.d.ts +5 -0
- package/build/v1/tool/code-execution/code-execution-outcome-kind.enum.js +10 -0
- package/build/v1/tool/code-execution/code-execution-outcome-kind.enum.js.map +1 -0
- package/build/v1/tool/code-execution/code-execution.errors.d.ts +9 -0
- package/build/v1/tool/code-execution/code-execution.errors.js +34 -0
- package/build/v1/tool/code-execution/code-execution.errors.js.map +1 -0
- package/build/v1/tool/code-execution/index.d.ts +4 -0
- package/build/v1/tool/code-execution/index.js +21 -0
- package/build/v1/tool/code-execution/index.js.map +1 -0
- package/build/v1/tool/index.d.ts +1 -0
- package/build/v1/tool/index.js +1 -0
- package/build/v1/tool/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,5 +8,6 @@ var ToolId;
|
|
|
8
8
|
ToolId["WEB_SEARCH"] = "webSearch";
|
|
9
9
|
ToolId["YOUTUBE_VIDEO_ANALYSIS"] = "youtubeVideoAnalysis";
|
|
10
10
|
ToolId["HTML_VISUALIZATION"] = "htmlVisualization";
|
|
11
|
+
ToolId["CODE_EXECUTION"] = "codeExecution";
|
|
11
12
|
})(ToolId || (exports.ToolId = ToolId = {}));
|
|
12
13
|
//# sourceMappingURL=tool-id.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,
|
|
1
|
+
{"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,MAOX;AAPD,WAAY,MAAM;IACd,gCAAsB,CAAA;IACtB,kCAAwB,CAAA;IACxB,kCAAwB,CAAA;IACxB,yDAA+C,CAAA;IAC/C,kDAAwC,CAAA;IACxC,0CAAgC,CAAA;AACpC,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB"}
|
|
@@ -36,6 +36,23 @@ export declare namespace CreateRegChatCommand {
|
|
|
36
36
|
}, z.core.$strip>>;
|
|
37
37
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
38
38
|
urls: z.ZodArray<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
code: z.ZodString;
|
|
41
|
+
language: z.ZodString;
|
|
42
|
+
stdout: z.ZodString;
|
|
43
|
+
stderr: z.ZodString;
|
|
44
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
45
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
value: z.ZodString;
|
|
48
|
+
traceback: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
51
|
+
filename: z.ZodString;
|
|
52
|
+
path: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
sessionReused: z.ZodBoolean;
|
|
55
|
+
timedOut: z.ZodBoolean;
|
|
39
56
|
}, z.core.$strip>]>>;
|
|
40
57
|
showInUi: z.ZodBoolean;
|
|
41
58
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -36,6 +36,23 @@ export declare namespace CreateUnregChatCommand {
|
|
|
36
36
|
}, z.core.$strip>>;
|
|
37
37
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
38
38
|
urls: z.ZodArray<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
code: z.ZodString;
|
|
41
|
+
language: z.ZodString;
|
|
42
|
+
stdout: z.ZodString;
|
|
43
|
+
stderr: z.ZodString;
|
|
44
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
45
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
value: z.ZodString;
|
|
48
|
+
traceback: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
51
|
+
filename: z.ZodString;
|
|
52
|
+
path: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
sessionReused: z.ZodBoolean;
|
|
55
|
+
timedOut: z.ZodBoolean;
|
|
39
56
|
}, z.core.$strip>]>>;
|
|
40
57
|
showInUi: z.ZodBoolean;
|
|
41
58
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -35,6 +35,23 @@ export declare namespace UpdateChatTitleCommand {
|
|
|
35
35
|
}, z.core.$strip>>;
|
|
36
36
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
37
37
|
urls: z.ZodArray<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
code: z.ZodString;
|
|
40
|
+
language: z.ZodString;
|
|
41
|
+
stdout: z.ZodString;
|
|
42
|
+
stderr: z.ZodString;
|
|
43
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
44
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
value: z.ZodString;
|
|
47
|
+
traceback: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
50
|
+
filename: z.ZodString;
|
|
51
|
+
path: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
sessionReused: z.ZodBoolean;
|
|
54
|
+
timedOut: z.ZodBoolean;
|
|
38
55
|
}, z.core.$strip>]>>;
|
|
39
56
|
showInUi: z.ZodBoolean;
|
|
40
57
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -37,6 +37,23 @@ export declare namespace UpdateChatCommand {
|
|
|
37
37
|
}, z.core.$strip>>;
|
|
38
38
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
39
39
|
urls: z.ZodArray<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
code: z.ZodString;
|
|
42
|
+
language: z.ZodString;
|
|
43
|
+
stdout: z.ZodString;
|
|
44
|
+
stderr: z.ZodString;
|
|
45
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
46
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
value: z.ZodString;
|
|
49
|
+
traceback: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
52
|
+
filename: z.ZodString;
|
|
53
|
+
path: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
sessionReused: z.ZodBoolean;
|
|
56
|
+
timedOut: z.ZodBoolean;
|
|
40
57
|
}, z.core.$strip>]>>;
|
|
41
58
|
showInUi: z.ZodBoolean;
|
|
42
59
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -33,6 +33,23 @@ export declare namespace GetLastActiveChatQuery {
|
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
34
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
35
35
|
urls: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
code: z.ZodString;
|
|
38
|
+
language: z.ZodString;
|
|
39
|
+
stdout: z.ZodString;
|
|
40
|
+
stderr: z.ZodString;
|
|
41
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
42
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
value: z.ZodString;
|
|
45
|
+
traceback: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
48
|
+
filename: z.ZodString;
|
|
49
|
+
path: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
sessionReused: z.ZodBoolean;
|
|
52
|
+
timedOut: z.ZodBoolean;
|
|
36
53
|
}, z.core.$strip>]>>;
|
|
37
54
|
showInUi: z.ZodBoolean;
|
|
38
55
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -33,6 +33,23 @@ export declare namespace GetRegChatQuery {
|
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
34
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
35
35
|
urls: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
code: z.ZodString;
|
|
38
|
+
language: z.ZodString;
|
|
39
|
+
stdout: z.ZodString;
|
|
40
|
+
stderr: z.ZodString;
|
|
41
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
42
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
value: z.ZodString;
|
|
45
|
+
traceback: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
48
|
+
filename: z.ZodString;
|
|
49
|
+
path: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
sessionReused: z.ZodBoolean;
|
|
52
|
+
timedOut: z.ZodBoolean;
|
|
36
53
|
}, z.core.$strip>]>>;
|
|
37
54
|
showInUi: z.ZodBoolean;
|
|
38
55
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -33,6 +33,23 @@ export declare namespace GetUnregChatQuery {
|
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
34
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
35
35
|
urls: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
code: z.ZodString;
|
|
38
|
+
language: z.ZodString;
|
|
39
|
+
stdout: z.ZodString;
|
|
40
|
+
stderr: z.ZodString;
|
|
41
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
42
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
value: z.ZodString;
|
|
45
|
+
traceback: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
48
|
+
filename: z.ZodString;
|
|
49
|
+
path: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
sessionReused: z.ZodBoolean;
|
|
52
|
+
timedOut: z.ZodBoolean;
|
|
36
53
|
}, z.core.$strip>]>>;
|
|
37
54
|
showInUi: z.ZodBoolean;
|
|
38
55
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -31,6 +31,23 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
|
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
32
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
33
33
|
urls: z.ZodArray<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
code: z.ZodString;
|
|
36
|
+
language: z.ZodString;
|
|
37
|
+
stdout: z.ZodString;
|
|
38
|
+
stderr: z.ZodString;
|
|
39
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
40
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
value: z.ZodString;
|
|
43
|
+
traceback: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
46
|
+
filename: z.ZodString;
|
|
47
|
+
path: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
sessionReused: z.ZodBoolean;
|
|
50
|
+
timedOut: z.ZodBoolean;
|
|
34
51
|
}, z.core.$strip>]>>;
|
|
35
52
|
showInUi: z.ZodBoolean;
|
|
36
53
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -49,6 +49,7 @@ export declare namespace CreateMessageCommand {
|
|
|
49
49
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
50
50
|
stepId: z.ZodString;
|
|
51
51
|
chunk: z.ZodString;
|
|
52
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52
53
|
}, z.core.$strip>, z.ZodObject<{
|
|
53
54
|
id: z.ZodNumber;
|
|
54
55
|
chatId: z.ZodString;
|
|
@@ -68,6 +69,7 @@ export declare namespace CreateMessageCommand {
|
|
|
68
69
|
stepId: z.ZodString;
|
|
69
70
|
stepIndex: z.ZodNumber;
|
|
70
71
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
72
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
71
73
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
72
74
|
imageUrl: z.ZodString;
|
|
73
75
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -142,6 +144,7 @@ export declare namespace CreateMessageCommand {
|
|
|
142
144
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
143
145
|
stepId: z.ZodString;
|
|
144
146
|
chunk: z.ZodString;
|
|
147
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
145
148
|
}, z.core.$strip>;
|
|
146
149
|
const StepErrorEvent: z.ZodObject<{
|
|
147
150
|
id: z.ZodNumber;
|
|
@@ -163,6 +166,7 @@ export declare namespace CreateMessageCommand {
|
|
|
163
166
|
stepId: z.ZodString;
|
|
164
167
|
stepIndex: z.ZodNumber;
|
|
165
168
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
169
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
166
170
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
167
171
|
imageUrl: z.ZodString;
|
|
168
172
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -26,6 +26,7 @@ export declare namespace GetMessageStreamRegQuery {
|
|
|
26
26
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
27
27
|
stepId: z.ZodString;
|
|
28
28
|
chunk: z.ZodString;
|
|
29
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
30
|
}, z.core.$strip>, z.ZodObject<{
|
|
30
31
|
id: z.ZodNumber;
|
|
31
32
|
chatId: z.ZodString;
|
|
@@ -45,6 +46,7 @@ export declare namespace GetMessageStreamRegQuery {
|
|
|
45
46
|
stepId: z.ZodString;
|
|
46
47
|
stepIndex: z.ZodNumber;
|
|
47
48
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
49
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
48
50
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
49
51
|
imageUrl: z.ZodString;
|
|
50
52
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -26,6 +26,7 @@ export declare namespace GetMessageStreamUnregQuery {
|
|
|
26
26
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
27
27
|
stepId: z.ZodString;
|
|
28
28
|
chunk: z.ZodString;
|
|
29
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
30
|
}, z.core.$strip>, z.ZodObject<{
|
|
30
31
|
id: z.ZodNumber;
|
|
31
32
|
chatId: z.ZodString;
|
|
@@ -45,6 +46,7 @@ export declare namespace GetMessageStreamUnregQuery {
|
|
|
45
46
|
stepId: z.ZodString;
|
|
46
47
|
stepIndex: z.ZodNumber;
|
|
47
48
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
49
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
48
50
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
49
51
|
imageUrl: z.ZodString;
|
|
50
52
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -17,7 +17,8 @@ export declare enum GenerationStepType {
|
|
|
17
17
|
UPLOAD = "upload",
|
|
18
18
|
WEB_SEARCH = "web_search",
|
|
19
19
|
VIDEO_ANALYSIS = "video_analysis",
|
|
20
|
-
HTML_VISUALIZATION = "html_visualization"
|
|
20
|
+
HTML_VISUALIZATION = "html_visualization",
|
|
21
|
+
CODE_EXECUTION = "code_execution"
|
|
21
22
|
}
|
|
22
23
|
export declare const GenerationStepSchema: z.ZodObject<{
|
|
23
24
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
@@ -23,6 +23,7 @@ var GenerationStepType;
|
|
|
23
23
|
GenerationStepType["WEB_SEARCH"] = "web_search";
|
|
24
24
|
GenerationStepType["VIDEO_ANALYSIS"] = "video_analysis";
|
|
25
25
|
GenerationStepType["HTML_VISUALIZATION"] = "html_visualization";
|
|
26
|
+
GenerationStepType["CODE_EXECUTION"] = "code_execution";
|
|
26
27
|
})(GenerationStepType || (exports.GenerationStepType = GenerationStepType = {}));
|
|
27
28
|
exports.GenerationStepSchema = zod_1.z.object({
|
|
28
29
|
type: zod_1.z.nativeEnum(GenerationStepType),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation-step.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/generation-step.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKxB,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;AAC3B,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAKD,IAAY,
|
|
1
|
+
{"version":3,"file":"generation-step.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/generation-step.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKxB,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;AAC3B,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAKD,IAAY,kBAuBX;AAvBD,WAAY,kBAAkB;IAE1B,6CAAuB,CAAA;IAEvB,6DAAuC,CAAA;IAEvC,uEAAiD,CAAA;IAEjD,yDAAmC,CAAA;IAEnC,2DAAqC,CAAA;IAErC,+CAAyB,CAAA;IAEzB,uCAAiB,CAAA;IAEjB,+CAAyB,CAAA;IAEzB,uDAAiC,CAAA;IAEjC,+DAAyC,CAAA;IAEzC,uDAAiC,CAAA;AACrC,CAAC,EAvBW,kBAAkB,kCAAlB,kBAAkB,QAuB7B;AAKY,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAEzC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAEtC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IAEnB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAErC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEjC,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAE5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
|
|
@@ -4,8 +4,8 @@ export { UserRating } from './user-rating.enum';
|
|
|
4
4
|
export { CreateMessageRequestSchema } from './create-message-request.schema';
|
|
5
5
|
export { CreateMessageResponseSchema } from './create-message-response.schema';
|
|
6
6
|
export { MessageResponseSchema } from './message-response.schema';
|
|
7
|
-
export { MessageStepResponseSchema, MessageStepsResponseSchema, StepContentResponseSchema, TextStepContentSchema, WebSearchCitationSchema, WebSearchStepContentSchema, ImageGenStepContentSchema, UploadStepContentSchema, } from './message-step-response.schema';
|
|
8
|
-
export type { MessageStepResponse, MessageStepsResponse, StepContentResponse, TextStepContent, WebSearchCitation, WebSearchStepContent, ImageGenStepContent, UploadStepContent, } from './message-step-response.schema';
|
|
7
|
+
export { MessageStepResponseSchema, MessageStepsResponseSchema, StepContentResponseSchema, TextStepContentSchema, WebSearchCitationSchema, WebSearchStepContentSchema, ImageGenStepContentSchema, UploadStepContentSchema, CodeExecutionStepContentResponseSchema, } from './message-step-response.schema';
|
|
8
|
+
export type { MessageStepResponse, MessageStepsResponse, StepContentResponse, TextStepContent, WebSearchCitation, WebSearchStepContent, ImageGenStepContent, UploadStepContent, CodeExecutionStepContentResponse, } from './message-step-response.schema';
|
|
9
9
|
export { MessageAttachmentResponseSchema, MessageAttachmentsResponseSchema, AttachmentMetaResponseSchema, } from './message-attachment-response.schema';
|
|
10
10
|
export type { MessageAttachmentResponse, MessageAttachmentsResponse, AttachmentMetaResponse, } from './message-attachment-response.schema';
|
|
11
11
|
export { MessageCitationResponseSchema, MessageCitationsResponseSchema, } from './message-citation-response.schema';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = void 0;
|
|
3
|
+
exports.GenerationStepType = exports.GenerationStepSchema = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.StepDoneMetadataByType = exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.StepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.CitationStatus = exports.CitationSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.CodeExecutionStepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = exports.StepContentResponseSchema = exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
|
|
4
|
+
exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.MessageStepStatus = void 0;
|
|
5
5
|
var message_role_enum_1 = require("./message-role.enum");
|
|
6
6
|
Object.defineProperty(exports, "MessageRole", { enumerable: true, get: function () { return message_role_enum_1.MessageRole; } });
|
|
7
7
|
var message_status_enum_1 = require("./message-status.enum");
|
|
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "WebSearchCitationSchema", { enumerable: true, ge
|
|
|
23
23
|
Object.defineProperty(exports, "WebSearchStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.WebSearchStepContentSchema; } });
|
|
24
24
|
Object.defineProperty(exports, "ImageGenStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.ImageGenStepContentSchema; } });
|
|
25
25
|
Object.defineProperty(exports, "UploadStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.UploadStepContentSchema; } });
|
|
26
|
+
Object.defineProperty(exports, "CodeExecutionStepContentResponseSchema", { enumerable: true, get: function () { return message_step_response_schema_1.CodeExecutionStepContentResponseSchema; } });
|
|
26
27
|
var message_attachment_response_schema_1 = require("./message-attachment-response.schema");
|
|
27
28
|
Object.defineProperty(exports, "MessageAttachmentResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentResponseSchema; } });
|
|
28
29
|
Object.defineProperty(exports, "MessageAttachmentsResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentsResponseSchema; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;;AAAA,yDAAkD;AAAzC,gHAAA,WAAW,OAAA;AACpB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;;AAAA,yDAAkD;AAAzC,gHAAA,WAAW,OAAA;AACpB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,+EAUwC;AATpC,yIAAA,yBAAyB,OAAA;AACzB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA,yBAAyB,OAAA;AACzB,qIAAA,qBAAqB,OAAA;AACrB,uIAAA,uBAAuB,OAAA;AACvB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA,yBAAyB,OAAA;AACzB,uIAAA,uBAAuB,OAAA;AACvB,sJAAA,sCAAsC,OAAA;AAa1C,2FAI8C;AAH1C,qJAAA,+BAA+B,OAAA;AAC/B,sJAAA,gCAAgC,OAAA;AAChC,kJAAA,4BAA4B,OAAA;AAOhC,uFAG4C;AAFxC,iJAAA,6BAA6B,O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ZodObject<{
|
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
27
27
|
urls: z.ZodArray<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
code: z.ZodString;
|
|
30
|
+
language: z.ZodString;
|
|
31
|
+
stdout: z.ZodString;
|
|
32
|
+
stderr: z.ZodString;
|
|
33
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
34
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
value: z.ZodString;
|
|
37
|
+
traceback: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
40
|
+
filename: z.ZodString;
|
|
41
|
+
path: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
sessionReused: z.ZodBoolean;
|
|
44
|
+
timedOut: z.ZodBoolean;
|
|
28
45
|
}, z.core.$strip>]>>;
|
|
29
46
|
showInUi: z.ZodBoolean;
|
|
30
47
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -20,6 +20,24 @@ export declare const ImageGenStepContentSchema: z.ZodNull;
|
|
|
20
20
|
export declare const UploadStepContentSchema: z.ZodObject<{
|
|
21
21
|
urls: z.ZodArray<z.ZodString>;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
|
+
export declare const CodeExecutionStepContentResponseSchema: z.ZodObject<{
|
|
24
|
+
code: z.ZodString;
|
|
25
|
+
language: z.ZodString;
|
|
26
|
+
stdout: z.ZodString;
|
|
27
|
+
stderr: z.ZodString;
|
|
28
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
29
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
value: z.ZodString;
|
|
32
|
+
traceback: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
35
|
+
filename: z.ZodString;
|
|
36
|
+
path: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
sessionReused: z.ZodBoolean;
|
|
39
|
+
timedOut: z.ZodBoolean;
|
|
40
|
+
}, z.core.$strip>;
|
|
23
41
|
export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
24
42
|
content: z.ZodString;
|
|
25
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -31,6 +49,23 @@ export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
31
49
|
}, z.core.$strip>>;
|
|
32
50
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
33
51
|
urls: z.ZodArray<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
code: z.ZodString;
|
|
54
|
+
language: z.ZodString;
|
|
55
|
+
stdout: z.ZodString;
|
|
56
|
+
stderr: z.ZodString;
|
|
57
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
58
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
value: z.ZodString;
|
|
61
|
+
traceback: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
64
|
+
filename: z.ZodString;
|
|
65
|
+
path: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
sessionReused: z.ZodBoolean;
|
|
68
|
+
timedOut: z.ZodBoolean;
|
|
34
69
|
}, z.core.$strip>]>;
|
|
35
70
|
export declare const MessageStepResponseSchema: z.ZodObject<{
|
|
36
71
|
uuid: z.ZodString;
|
|
@@ -47,6 +82,23 @@ export declare const MessageStepResponseSchema: z.ZodObject<{
|
|
|
47
82
|
}, z.core.$strip>>;
|
|
48
83
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
49
84
|
urls: z.ZodArray<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
code: z.ZodString;
|
|
87
|
+
language: z.ZodString;
|
|
88
|
+
stdout: z.ZodString;
|
|
89
|
+
stderr: z.ZodString;
|
|
90
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
91
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
value: z.ZodString;
|
|
94
|
+
traceback: z.ZodString;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
97
|
+
filename: z.ZodString;
|
|
98
|
+
path: z.ZodString;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
sessionReused: z.ZodBoolean;
|
|
101
|
+
timedOut: z.ZodBoolean;
|
|
50
102
|
}, z.core.$strip>]>>;
|
|
51
103
|
showInUi: z.ZodBoolean;
|
|
52
104
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -59,6 +111,7 @@ export type WebSearchCitation = z.infer<typeof WebSearchCitationSchema>;
|
|
|
59
111
|
export type WebSearchStepContent = z.infer<typeof WebSearchStepContentSchema>;
|
|
60
112
|
export type ImageGenStepContent = z.infer<typeof ImageGenStepContentSchema>;
|
|
61
113
|
export type UploadStepContent = z.infer<typeof UploadStepContentSchema>;
|
|
114
|
+
export type CodeExecutionStepContentResponse = z.infer<typeof CodeExecutionStepContentResponseSchema>;
|
|
62
115
|
export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
63
116
|
uuid: z.ZodString;
|
|
64
117
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
@@ -74,6 +127,23 @@ export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
74
127
|
}, z.core.$strip>>;
|
|
75
128
|
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
76
129
|
urls: z.ZodArray<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
code: z.ZodString;
|
|
132
|
+
language: z.ZodString;
|
|
133
|
+
stdout: z.ZodString;
|
|
134
|
+
stderr: z.ZodString;
|
|
135
|
+
textResult: z.ZodNullable<z.ZodString>;
|
|
136
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
value: z.ZodString;
|
|
139
|
+
traceback: z.ZodString;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
mountedFiles: z.ZodArray<z.ZodObject<{
|
|
142
|
+
filename: z.ZodString;
|
|
143
|
+
path: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
sessionReused: z.ZodBoolean;
|
|
146
|
+
timedOut: z.ZodBoolean;
|
|
77
147
|
}, z.core.$strip>]>>;
|
|
78
148
|
showInUi: z.ZodBoolean;
|
|
79
149
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = void 0;
|
|
3
|
+
exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = exports.CodeExecutionStepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const generation_step_schema_1 = require("./generation-step.schema");
|
|
6
6
|
exports.TextStepContentSchema = zod_1.z.object({
|
|
@@ -19,11 +19,32 @@ exports.ImageGenStepContentSchema = zod_1.z.null();
|
|
|
19
19
|
exports.UploadStepContentSchema = zod_1.z.object({
|
|
20
20
|
urls: zod_1.z.array(zod_1.z.string()),
|
|
21
21
|
});
|
|
22
|
+
exports.CodeExecutionStepContentResponseSchema = zod_1.z.object({
|
|
23
|
+
code: zod_1.z.string(),
|
|
24
|
+
language: zod_1.z.string(),
|
|
25
|
+
stdout: zod_1.z.string(),
|
|
26
|
+
stderr: zod_1.z.string(),
|
|
27
|
+
textResult: zod_1.z.string().nullable(),
|
|
28
|
+
error: zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
name: zod_1.z.string(),
|
|
31
|
+
value: zod_1.z.string(),
|
|
32
|
+
traceback: zod_1.z.string(),
|
|
33
|
+
})
|
|
34
|
+
.nullable(),
|
|
35
|
+
mountedFiles: zod_1.z.array(zod_1.z.object({
|
|
36
|
+
filename: zod_1.z.string(),
|
|
37
|
+
path: zod_1.z.string(),
|
|
38
|
+
})),
|
|
39
|
+
sessionReused: zod_1.z.boolean(),
|
|
40
|
+
timedOut: zod_1.z.boolean(),
|
|
41
|
+
});
|
|
22
42
|
exports.StepContentResponseSchema = zod_1.z.union([
|
|
23
43
|
exports.TextStepContentSchema,
|
|
24
44
|
exports.WebSearchStepContentSchema,
|
|
25
45
|
exports.ImageGenStepContentSchema,
|
|
26
46
|
exports.UploadStepContentSchema,
|
|
47
|
+
exports.CodeExecutionStepContentResponseSchema,
|
|
27
48
|
]);
|
|
28
49
|
exports.MessageStepResponseSchema = zod_1.z.object({
|
|
29
50
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAAiF;AAKpE,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;CAC9C,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;AAKrC,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC5B,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC7C,6BAAqB;IACrB,kCAA0B;IAC1B,iCAAyB;IACzB,+BAAuB;
|
|
1
|
+
{"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAAiF;AAKpE,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,OAAC,CAA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AE,CAAC,IAAI,EAAE;IAEvB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC;IAEtC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,0CAAiB,CAAC;IAEvC,OAAO,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IAE7C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IAErB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAcU,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC"}
|
|
@@ -38,6 +38,7 @@ export declare const StreamStepChunkEventSchema: z.ZodObject<{
|
|
|
38
38
|
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
39
39
|
stepId: z.ZodString;
|
|
40
40
|
chunk: z.ZodString;
|
|
41
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
41
42
|
}, z.core.$strip>;
|
|
42
43
|
export declare const StreamStepErrorEventSchema: z.ZodObject<{
|
|
43
44
|
id: z.ZodNumber;
|
|
@@ -59,6 +60,7 @@ export declare const StreamStepDoneEventSchema: z.ZodObject<{
|
|
|
59
60
|
stepId: z.ZodString;
|
|
60
61
|
stepIndex: z.ZodNumber;
|
|
61
62
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
63
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
62
64
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
63
65
|
imageUrl: z.ZodString;
|
|
64
66
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -139,6 +141,7 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
139
141
|
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
140
142
|
stepId: z.ZodString;
|
|
141
143
|
chunk: z.ZodString;
|
|
144
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
142
145
|
}, z.core.$strip>, z.ZodObject<{
|
|
143
146
|
id: z.ZodNumber;
|
|
144
147
|
chatId: z.ZodString;
|
|
@@ -158,6 +161,7 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
158
161
|
stepId: z.ZodString;
|
|
159
162
|
stepIndex: z.ZodNumber;
|
|
160
163
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
164
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
161
165
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
162
166
|
imageUrl: z.ZodString;
|
|
163
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -36,6 +36,7 @@ exports.StreamStepChunkEventSchema = BaseStreamEventSchema.extend({
|
|
|
36
36
|
stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
37
37
|
stepId: zod_1.z.string().uuid(),
|
|
38
38
|
chunk: zod_1.z.string(),
|
|
39
|
+
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
39
40
|
});
|
|
40
41
|
exports.StreamStepErrorEventSchema = BaseStreamEventSchema.extend({
|
|
41
42
|
type: zod_1.z.literal(StreamEventType.STEP_ERROR),
|
|
@@ -51,6 +52,7 @@ exports.StreamStepDoneEventSchema = BaseStreamEventSchema.extend({
|
|
|
51
52
|
stepId: zod_1.z.string().uuid(),
|
|
52
53
|
stepIndex: zod_1.z.number().int().nonnegative(),
|
|
53
54
|
fullContent: zod_1.z.string().optional(),
|
|
55
|
+
structuredContent: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
54
56
|
metadata: step_metadata_schema_1.StepDoneMetadataSchema,
|
|
55
57
|
});
|
|
56
58
|
exports.StreamDoneEventSchema = BaseStreamEventSchema.extend({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA8D;AAC9D,uDAAmD;AACnD,iEAAyF;AAKzF,IAAY,eAuBX;AAvBD,WAAY,eAAe;IAEvB,4CAAyB,CAAA;IAEzB,4CAAyB,CAAA;IAEzB,4CAAyB,CAAA;IAEzB,0CAAuB,CAAA;IAEvB,kCAAe,CAAA;IAEf,oEAAiD,CAAA;IAEjD,0CAAuB,CAAA;IAEvB,0CAAuB,CAAA;IAEvB,gCAAa,CAAA;IAEb,0CAAuB,CAAA;IAEvB,kCAAe,CAAA;AACnB,CAAC,EAvBW,eAAe,+BAAf,eAAe,QAuB1B;AAMD,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAEnC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAE/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAEzB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAC/B,CAAC,CAAC;AASU,QAAA,0BAA0B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC;IAE3C,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC;IAE1C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAEzB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAEzC,QAAQ,EAAE,8CAAuB;CACpC,CAAC,CAAC;AAKU,QAAA,0BAA0B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,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C;AAKU,QAAA,0BAA0B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,CAAC;IAE1C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAc,CAAC;CACrC,CAAC,CAAC;AAMU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,CAAC;IAE1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAUU,QAAA,iBAAiB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC1D,kCAA0B;IAC1B,kCAA0B;IAC1B,kCAA0B;IAC1B,iCAAyB;IACzB,8BAAsB;IACtB,6CAAqC;IACrC,kCAA0B;IAC1B,kCAA0B;IAC1B,6BAAqB;IACrB,kCAA0B;IAC1B,8BAAsB;CACzB,CAAC,CAAC"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./upload-ai-image.command"), exports);
|
|
18
|
+
__exportStar(require("./upload-ai-file.command"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/s2s/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/s2s/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC"}
|