@veruna/api-contracts 1.1.29 → 1.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/build/tsconfig.tsbuildinfo +1 -1
  2. package/build/v1/chat/commands/create-reg-chat.command.d.ts +47 -0
  3. package/build/v1/chat/commands/create-unreg-chat.command.d.ts +47 -0
  4. package/build/v1/chat/commands/update-chat-title.command.d.ts +47 -0
  5. package/build/v1/chat/commands/update-chat.command.d.ts +47 -0
  6. package/build/v1/chat/queries/get-last-active-chat.query.d.ts +47 -0
  7. package/build/v1/chat/queries/get-reg-chat.query.d.ts +47 -0
  8. package/build/v1/chat/queries/get-unreg-chat.query.d.ts +47 -0
  9. package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +47 -0
  10. package/build/v1/message/commands/create-message.command.d.ts +106 -2
  11. package/build/v1/message/queries/get-message-stream-reg.query.d.ts +53 -1
  12. package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +53 -1
  13. package/build/v1/message/schemas/index.d.ts +3 -1
  14. package/build/v1/message/schemas/index.js +14 -2
  15. package/build/v1/message/schemas/index.js.map +1 -1
  16. package/build/v1/message/schemas/message-response.schema.d.ts +47 -0
  17. package/build/v1/message/schemas/message-step-response.schema.d.ts +188 -0
  18. package/build/v1/message/schemas/message-step-response.schema.js +3 -0
  19. package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
  20. package/build/v1/message/schemas/step-chunk-metadata.schema.d.ts +134 -0
  21. package/build/v1/message/schemas/step-chunk-metadata.schema.js +65 -0
  22. package/build/v1/message/schemas/step-chunk-metadata.schema.js.map +1 -0
  23. package/build/v1/message/schemas/step-metadata.schema.d.ts +2 -0
  24. package/build/v1/message/schemas/step-metadata.schema.js +1 -2
  25. package/build/v1/message/schemas/step-metadata.schema.js.map +1 -1
  26. package/build/v1/message/schemas/stream-events.schema.d.ts +106 -2
  27. package/build/v1/message/schemas/stream-events.schema.js +2 -1
  28. package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
  29. package/build/v1/tool/sandbox/index.d.ts +2 -1
  30. package/build/v1/tool/sandbox/index.js +2 -1
  31. package/build/v1/tool/sandbox/index.js.map +1 -1
  32. package/build/v1/tool/sandbox/primitive-completion.schema.d.ts +135 -0
  33. package/build/v1/tool/sandbox/primitive-completion.schema.js +74 -0
  34. package/build/v1/tool/sandbox/primitive-completion.schema.js.map +1 -0
  35. package/build/v1/tool/sandbox/sandbox-view-kind.enum.d.ts +6 -0
  36. package/build/v1/tool/sandbox/sandbox-view-kind.enum.js +11 -0
  37. package/build/v1/tool/sandbox/sandbox-view-kind.enum.js.map +1 -0
  38. package/package.json +1 -1
  39. package/build/v1/tool/sandbox/code-execution-chunk-type.enum.d.ts +0 -7
  40. package/build/v1/tool/sandbox/code-execution-chunk-type.enum.js +0 -12
  41. package/build/v1/tool/sandbox/code-execution-chunk-type.enum.js.map +0 -1
@@ -53,6 +53,53 @@ export declare namespace CreateRegChatCommand {
53
53
  }, z.core.$strip>>;
54
54
  sessionReused: z.ZodBoolean;
55
55
  timedOut: z.ZodBoolean;
56
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
57
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
60
+ path: z.ZodString;
61
+ totalLines: z.ZodNumber;
62
+ bytesWritten: z.ZodNumber;
63
+ overwrite: z.ZodBoolean;
64
+ preview: z.ZodObject<{
65
+ lines: z.ZodArray<z.ZodString>;
66
+ truncated: z.ZodBoolean;
67
+ }, z.core.$strip>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
70
+ path: z.ZodString;
71
+ linesAdded: z.ZodNumber;
72
+ linesRemoved: z.ZodNumber;
73
+ linesBefore: z.ZodNumber;
74
+ linesAfter: z.ZodNumber;
75
+ hunk: z.ZodObject<{
76
+ startLine: z.ZodNumber;
77
+ contextBefore: z.ZodArray<z.ZodString>;
78
+ oldLines: z.ZodArray<z.ZodString>;
79
+ newLines: z.ZodArray<z.ZodString>;
80
+ contextAfter: z.ZodArray<z.ZodString>;
81
+ truncated: z.ZodBoolean;
82
+ }, z.core.$strip>;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
85
+ path: z.ZodString;
86
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
88
+ entryCount: z.ZodNumber;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
91
+ startLine: z.ZodNumber;
92
+ endLine: z.ZodNumber;
93
+ totalLines: z.ZodNumber;
94
+ truncated: z.ZodBoolean;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
99
+ pagesShown: z.ZodNumber;
100
+ }, z.core.$strip>], "type">;
101
+ }, z.core.$strip>], "type">>;
102
+ description: z.ZodOptional<z.ZodString>;
56
103
  }, z.core.$strip>]>>;
57
104
  showInUi: z.ZodBoolean;
58
105
  startedAt: z.ZodNullable<z.ZodString>;
@@ -53,6 +53,53 @@ export declare namespace CreateUnregChatCommand {
53
53
  }, z.core.$strip>>;
54
54
  sessionReused: z.ZodBoolean;
55
55
  timedOut: z.ZodBoolean;
56
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
57
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
60
+ path: z.ZodString;
61
+ totalLines: z.ZodNumber;
62
+ bytesWritten: z.ZodNumber;
63
+ overwrite: z.ZodBoolean;
64
+ preview: z.ZodObject<{
65
+ lines: z.ZodArray<z.ZodString>;
66
+ truncated: z.ZodBoolean;
67
+ }, z.core.$strip>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
70
+ path: z.ZodString;
71
+ linesAdded: z.ZodNumber;
72
+ linesRemoved: z.ZodNumber;
73
+ linesBefore: z.ZodNumber;
74
+ linesAfter: z.ZodNumber;
75
+ hunk: z.ZodObject<{
76
+ startLine: z.ZodNumber;
77
+ contextBefore: z.ZodArray<z.ZodString>;
78
+ oldLines: z.ZodArray<z.ZodString>;
79
+ newLines: z.ZodArray<z.ZodString>;
80
+ contextAfter: z.ZodArray<z.ZodString>;
81
+ truncated: z.ZodBoolean;
82
+ }, z.core.$strip>;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
85
+ path: z.ZodString;
86
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
88
+ entryCount: z.ZodNumber;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
91
+ startLine: z.ZodNumber;
92
+ endLine: z.ZodNumber;
93
+ totalLines: z.ZodNumber;
94
+ truncated: z.ZodBoolean;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
99
+ pagesShown: z.ZodNumber;
100
+ }, z.core.$strip>], "type">;
101
+ }, z.core.$strip>], "type">>;
102
+ description: z.ZodOptional<z.ZodString>;
56
103
  }, z.core.$strip>]>>;
57
104
  showInUi: z.ZodBoolean;
58
105
  startedAt: z.ZodNullable<z.ZodString>;
@@ -52,6 +52,53 @@ export declare namespace UpdateChatTitleCommand {
52
52
  }, z.core.$strip>>;
53
53
  sessionReused: z.ZodBoolean;
54
54
  timedOut: z.ZodBoolean;
55
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
56
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
59
+ path: z.ZodString;
60
+ totalLines: z.ZodNumber;
61
+ bytesWritten: z.ZodNumber;
62
+ overwrite: z.ZodBoolean;
63
+ preview: z.ZodObject<{
64
+ lines: z.ZodArray<z.ZodString>;
65
+ truncated: z.ZodBoolean;
66
+ }, z.core.$strip>;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
69
+ path: z.ZodString;
70
+ linesAdded: z.ZodNumber;
71
+ linesRemoved: z.ZodNumber;
72
+ linesBefore: z.ZodNumber;
73
+ linesAfter: z.ZodNumber;
74
+ hunk: z.ZodObject<{
75
+ startLine: z.ZodNumber;
76
+ contextBefore: z.ZodArray<z.ZodString>;
77
+ oldLines: z.ZodArray<z.ZodString>;
78
+ newLines: z.ZodArray<z.ZodString>;
79
+ contextAfter: z.ZodArray<z.ZodString>;
80
+ truncated: z.ZodBoolean;
81
+ }, z.core.$strip>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
84
+ path: z.ZodString;
85
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
86
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
87
+ entryCount: z.ZodNumber;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
90
+ startLine: z.ZodNumber;
91
+ endLine: z.ZodNumber;
92
+ totalLines: z.ZodNumber;
93
+ truncated: z.ZodBoolean;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
98
+ pagesShown: z.ZodNumber;
99
+ }, z.core.$strip>], "type">;
100
+ }, z.core.$strip>], "type">>;
101
+ description: z.ZodOptional<z.ZodString>;
55
102
  }, z.core.$strip>]>>;
56
103
  showInUi: z.ZodBoolean;
57
104
  startedAt: z.ZodNullable<z.ZodString>;
@@ -54,6 +54,53 @@ export declare namespace UpdateChatCommand {
54
54
  }, z.core.$strip>>;
55
55
  sessionReused: z.ZodBoolean;
56
56
  timedOut: z.ZodBoolean;
57
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
61
+ path: z.ZodString;
62
+ totalLines: z.ZodNumber;
63
+ bytesWritten: z.ZodNumber;
64
+ overwrite: z.ZodBoolean;
65
+ preview: z.ZodObject<{
66
+ lines: z.ZodArray<z.ZodString>;
67
+ truncated: z.ZodBoolean;
68
+ }, z.core.$strip>;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
71
+ path: z.ZodString;
72
+ linesAdded: z.ZodNumber;
73
+ linesRemoved: z.ZodNumber;
74
+ linesBefore: z.ZodNumber;
75
+ linesAfter: z.ZodNumber;
76
+ hunk: z.ZodObject<{
77
+ startLine: z.ZodNumber;
78
+ contextBefore: z.ZodArray<z.ZodString>;
79
+ oldLines: z.ZodArray<z.ZodString>;
80
+ newLines: z.ZodArray<z.ZodString>;
81
+ contextAfter: z.ZodArray<z.ZodString>;
82
+ truncated: z.ZodBoolean;
83
+ }, z.core.$strip>;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
86
+ path: z.ZodString;
87
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
88
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
89
+ entryCount: z.ZodNumber;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
92
+ startLine: z.ZodNumber;
93
+ endLine: z.ZodNumber;
94
+ totalLines: z.ZodNumber;
95
+ truncated: z.ZodBoolean;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
100
+ pagesShown: z.ZodNumber;
101
+ }, z.core.$strip>], "type">;
102
+ }, z.core.$strip>], "type">>;
103
+ description: z.ZodOptional<z.ZodString>;
57
104
  }, z.core.$strip>]>>;
58
105
  showInUi: z.ZodBoolean;
59
106
  startedAt: z.ZodNullable<z.ZodString>;
@@ -50,6 +50,53 @@ export declare namespace GetLastActiveChatQuery {
50
50
  }, z.core.$strip>>;
51
51
  sessionReused: z.ZodBoolean;
52
52
  timedOut: z.ZodBoolean;
53
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
57
+ path: z.ZodString;
58
+ totalLines: z.ZodNumber;
59
+ bytesWritten: z.ZodNumber;
60
+ overwrite: z.ZodBoolean;
61
+ preview: z.ZodObject<{
62
+ lines: z.ZodArray<z.ZodString>;
63
+ truncated: z.ZodBoolean;
64
+ }, z.core.$strip>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
67
+ path: z.ZodString;
68
+ linesAdded: z.ZodNumber;
69
+ linesRemoved: z.ZodNumber;
70
+ linesBefore: z.ZodNumber;
71
+ linesAfter: z.ZodNumber;
72
+ hunk: z.ZodObject<{
73
+ startLine: z.ZodNumber;
74
+ contextBefore: z.ZodArray<z.ZodString>;
75
+ oldLines: z.ZodArray<z.ZodString>;
76
+ newLines: z.ZodArray<z.ZodString>;
77
+ contextAfter: z.ZodArray<z.ZodString>;
78
+ truncated: z.ZodBoolean;
79
+ }, z.core.$strip>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
82
+ path: z.ZodString;
83
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
84
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
85
+ entryCount: z.ZodNumber;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
88
+ startLine: z.ZodNumber;
89
+ endLine: z.ZodNumber;
90
+ totalLines: z.ZodNumber;
91
+ truncated: z.ZodBoolean;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
96
+ pagesShown: z.ZodNumber;
97
+ }, z.core.$strip>], "type">;
98
+ }, z.core.$strip>], "type">>;
99
+ description: z.ZodOptional<z.ZodString>;
53
100
  }, z.core.$strip>]>>;
54
101
  showInUi: z.ZodBoolean;
55
102
  startedAt: z.ZodNullable<z.ZodString>;
@@ -50,6 +50,53 @@ export declare namespace GetRegChatQuery {
50
50
  }, z.core.$strip>>;
51
51
  sessionReused: z.ZodBoolean;
52
52
  timedOut: z.ZodBoolean;
53
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
57
+ path: z.ZodString;
58
+ totalLines: z.ZodNumber;
59
+ bytesWritten: z.ZodNumber;
60
+ overwrite: z.ZodBoolean;
61
+ preview: z.ZodObject<{
62
+ lines: z.ZodArray<z.ZodString>;
63
+ truncated: z.ZodBoolean;
64
+ }, z.core.$strip>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
67
+ path: z.ZodString;
68
+ linesAdded: z.ZodNumber;
69
+ linesRemoved: z.ZodNumber;
70
+ linesBefore: z.ZodNumber;
71
+ linesAfter: z.ZodNumber;
72
+ hunk: z.ZodObject<{
73
+ startLine: z.ZodNumber;
74
+ contextBefore: z.ZodArray<z.ZodString>;
75
+ oldLines: z.ZodArray<z.ZodString>;
76
+ newLines: z.ZodArray<z.ZodString>;
77
+ contextAfter: z.ZodArray<z.ZodString>;
78
+ truncated: z.ZodBoolean;
79
+ }, z.core.$strip>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
82
+ path: z.ZodString;
83
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
84
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
85
+ entryCount: z.ZodNumber;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
88
+ startLine: z.ZodNumber;
89
+ endLine: z.ZodNumber;
90
+ totalLines: z.ZodNumber;
91
+ truncated: z.ZodBoolean;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
96
+ pagesShown: z.ZodNumber;
97
+ }, z.core.$strip>], "type">;
98
+ }, z.core.$strip>], "type">>;
99
+ description: z.ZodOptional<z.ZodString>;
53
100
  }, z.core.$strip>]>>;
54
101
  showInUi: z.ZodBoolean;
55
102
  startedAt: z.ZodNullable<z.ZodString>;
@@ -50,6 +50,53 @@ export declare namespace GetUnregChatQuery {
50
50
  }, z.core.$strip>>;
51
51
  sessionReused: z.ZodBoolean;
52
52
  timedOut: z.ZodBoolean;
53
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
57
+ path: z.ZodString;
58
+ totalLines: z.ZodNumber;
59
+ bytesWritten: z.ZodNumber;
60
+ overwrite: z.ZodBoolean;
61
+ preview: z.ZodObject<{
62
+ lines: z.ZodArray<z.ZodString>;
63
+ truncated: z.ZodBoolean;
64
+ }, z.core.$strip>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
67
+ path: z.ZodString;
68
+ linesAdded: z.ZodNumber;
69
+ linesRemoved: z.ZodNumber;
70
+ linesBefore: z.ZodNumber;
71
+ linesAfter: z.ZodNumber;
72
+ hunk: z.ZodObject<{
73
+ startLine: z.ZodNumber;
74
+ contextBefore: z.ZodArray<z.ZodString>;
75
+ oldLines: z.ZodArray<z.ZodString>;
76
+ newLines: z.ZodArray<z.ZodString>;
77
+ contextAfter: z.ZodArray<z.ZodString>;
78
+ truncated: z.ZodBoolean;
79
+ }, z.core.$strip>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
82
+ path: z.ZodString;
83
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
84
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
85
+ entryCount: z.ZodNumber;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
88
+ startLine: z.ZodNumber;
89
+ endLine: z.ZodNumber;
90
+ totalLines: z.ZodNumber;
91
+ truncated: z.ZodBoolean;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
96
+ pagesShown: z.ZodNumber;
97
+ }, z.core.$strip>], "type">;
98
+ }, z.core.$strip>], "type">>;
99
+ description: z.ZodOptional<z.ZodString>;
53
100
  }, z.core.$strip>]>>;
54
101
  showInUi: z.ZodBoolean;
55
102
  startedAt: z.ZodNullable<z.ZodString>;
@@ -48,6 +48,53 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
48
48
  }, z.core.$strip>>;
49
49
  sessionReused: z.ZodBoolean;
50
50
  timedOut: z.ZodBoolean;
51
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
55
+ path: z.ZodString;
56
+ totalLines: z.ZodNumber;
57
+ bytesWritten: z.ZodNumber;
58
+ overwrite: z.ZodBoolean;
59
+ preview: z.ZodObject<{
60
+ lines: z.ZodArray<z.ZodString>;
61
+ truncated: z.ZodBoolean;
62
+ }, z.core.$strip>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
65
+ path: z.ZodString;
66
+ linesAdded: z.ZodNumber;
67
+ linesRemoved: z.ZodNumber;
68
+ linesBefore: z.ZodNumber;
69
+ linesAfter: z.ZodNumber;
70
+ hunk: z.ZodObject<{
71
+ startLine: z.ZodNumber;
72
+ contextBefore: z.ZodArray<z.ZodString>;
73
+ oldLines: z.ZodArray<z.ZodString>;
74
+ newLines: z.ZodArray<z.ZodString>;
75
+ contextAfter: z.ZodArray<z.ZodString>;
76
+ truncated: z.ZodBoolean;
77
+ }, z.core.$strip>;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
80
+ path: z.ZodString;
81
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
82
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
83
+ entryCount: z.ZodNumber;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
86
+ startLine: z.ZodNumber;
87
+ endLine: z.ZodNumber;
88
+ totalLines: z.ZodNumber;
89
+ truncated: z.ZodBoolean;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
94
+ pagesShown: z.ZodNumber;
95
+ }, z.core.$strip>], "type">;
96
+ }, z.core.$strip>], "type">>;
97
+ description: z.ZodOptional<z.ZodString>;
51
98
  }, z.core.$strip>]>>;
52
99
  showInUi: z.ZodBoolean;
53
100
  startedAt: z.ZodNullable<z.ZodString>;
@@ -51,7 +51,59 @@ export declare namespace CreateMessageCommand {
51
51
  stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
52
52
  stepId: z.ZodString;
53
53
  chunk: z.ZodString;
54
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
54
+ metadata: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
55
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.ARGS>;
56
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.DESCRIBE>;
59
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.BASH>;
62
+ stream: z.ZodEnum<typeof import("../schemas").BashChunkStream>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.CREATE_FILE>;
65
+ path: z.ZodString;
66
+ totalLines: z.ZodNumber;
67
+ bytesWritten: z.ZodNumber;
68
+ overwrite: z.ZodBoolean;
69
+ preview: z.ZodObject<{
70
+ lines: z.ZodArray<z.ZodString>;
71
+ truncated: z.ZodBoolean;
72
+ }, z.core.$strip>;
73
+ }, z.core.$strip>, z.ZodObject<{
74
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.STR_REPLACE>;
75
+ path: z.ZodString;
76
+ linesAdded: z.ZodNumber;
77
+ linesRemoved: z.ZodNumber;
78
+ linesBefore: z.ZodNumber;
79
+ linesAfter: z.ZodNumber;
80
+ hunk: z.ZodObject<{
81
+ startLine: z.ZodNumber;
82
+ contextBefore: z.ZodArray<z.ZodString>;
83
+ oldLines: z.ZodArray<z.ZodString>;
84
+ newLines: z.ZodArray<z.ZodString>;
85
+ contextAfter: z.ZodArray<z.ZodString>;
86
+ truncated: z.ZodBoolean;
87
+ }, z.core.$strip>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.VIEW>;
90
+ path: z.ZodString;
91
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
92
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
93
+ entryCount: z.ZodNumber;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
96
+ startLine: z.ZodNumber;
97
+ endLine: z.ZodNumber;
98
+ totalLines: z.ZodNumber;
99
+ truncated: z.ZodBoolean;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
102
+ }, z.core.$strip>, z.ZodObject<{
103
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
104
+ pagesShown: z.ZodNumber;
105
+ }, z.core.$strip>], "type">;
106
+ }, z.core.$strip>], "kind">>;
55
107
  }, z.core.$strip>, z.ZodObject<{
56
108
  id: z.ZodNumber;
57
109
  chatId: z.ZodString;
@@ -148,7 +200,59 @@ export declare namespace CreateMessageCommand {
148
200
  stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
149
201
  stepId: z.ZodString;
150
202
  chunk: z.ZodString;
151
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
203
+ metadata: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
204
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.ARGS>;
205
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.DESCRIBE>;
208
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
209
+ }, z.core.$strip>, z.ZodObject<{
210
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.BASH>;
211
+ stream: z.ZodEnum<typeof import("../schemas").BashChunkStream>;
212
+ }, z.core.$strip>, z.ZodObject<{
213
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.CREATE_FILE>;
214
+ path: z.ZodString;
215
+ totalLines: z.ZodNumber;
216
+ bytesWritten: z.ZodNumber;
217
+ overwrite: z.ZodBoolean;
218
+ preview: z.ZodObject<{
219
+ lines: z.ZodArray<z.ZodString>;
220
+ truncated: z.ZodBoolean;
221
+ }, z.core.$strip>;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.STR_REPLACE>;
224
+ path: z.ZodString;
225
+ linesAdded: z.ZodNumber;
226
+ linesRemoved: z.ZodNumber;
227
+ linesBefore: z.ZodNumber;
228
+ linesAfter: z.ZodNumber;
229
+ hunk: z.ZodObject<{
230
+ startLine: z.ZodNumber;
231
+ contextBefore: z.ZodArray<z.ZodString>;
232
+ oldLines: z.ZodArray<z.ZodString>;
233
+ newLines: z.ZodArray<z.ZodString>;
234
+ contextAfter: z.ZodArray<z.ZodString>;
235
+ truncated: z.ZodBoolean;
236
+ }, z.core.$strip>;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.VIEW>;
239
+ path: z.ZodString;
240
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
241
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
242
+ entryCount: z.ZodNumber;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
245
+ startLine: z.ZodNumber;
246
+ endLine: z.ZodNumber;
247
+ totalLines: z.ZodNumber;
248
+ truncated: z.ZodBoolean;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
253
+ pagesShown: z.ZodNumber;
254
+ }, z.core.$strip>], "type">;
255
+ }, z.core.$strip>], "kind">>;
152
256
  }, z.core.$strip>;
153
257
  const StepErrorEvent: z.ZodObject<{
154
258
  id: z.ZodNumber;
@@ -28,7 +28,59 @@ export declare namespace GetMessageStreamRegQuery {
28
28
  stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
29
29
  stepId: z.ZodString;
30
30
  chunk: z.ZodString;
31
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31
+ metadata: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
32
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.ARGS>;
33
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.DESCRIBE>;
36
+ primitiveType: z.ZodEnum<typeof import("../..").SandboxPrimitiveType>;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.BASH>;
39
+ stream: z.ZodEnum<typeof import("../schemas").BashChunkStream>;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.CREATE_FILE>;
42
+ path: z.ZodString;
43
+ totalLines: z.ZodNumber;
44
+ bytesWritten: z.ZodNumber;
45
+ overwrite: z.ZodBoolean;
46
+ preview: z.ZodObject<{
47
+ lines: z.ZodArray<z.ZodString>;
48
+ truncated: z.ZodBoolean;
49
+ }, z.core.$strip>;
50
+ }, z.core.$strip>, z.ZodObject<{
51
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.STR_REPLACE>;
52
+ path: z.ZodString;
53
+ linesAdded: z.ZodNumber;
54
+ linesRemoved: z.ZodNumber;
55
+ linesBefore: z.ZodNumber;
56
+ linesAfter: z.ZodNumber;
57
+ hunk: z.ZodObject<{
58
+ startLine: z.ZodNumber;
59
+ contextBefore: z.ZodArray<z.ZodString>;
60
+ oldLines: z.ZodArray<z.ZodString>;
61
+ newLines: z.ZodArray<z.ZodString>;
62
+ contextAfter: z.ZodArray<z.ZodString>;
63
+ truncated: z.ZodBoolean;
64
+ }, z.core.$strip>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ kind: z.ZodLiteral<import("../schemas").StepChunkKind.VIEW>;
67
+ path: z.ZodString;
68
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
69
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
70
+ entryCount: z.ZodNumber;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
73
+ startLine: z.ZodNumber;
74
+ endLine: z.ZodNumber;
75
+ totalLines: z.ZodNumber;
76
+ truncated: z.ZodBoolean;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
81
+ pagesShown: z.ZodNumber;
82
+ }, z.core.$strip>], "type">;
83
+ }, z.core.$strip>], "kind">>;
32
84
  }, z.core.$strip>, z.ZodObject<{
33
85
  id: z.ZodNumber;
34
86
  chatId: z.ZodString;