@veruna/api-contracts 1.1.30 → 1.1.32

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 (26) hide show
  1. package/build/tsconfig.tsbuildinfo +1 -1
  2. package/build/v1/ai-model/schemas/api-provider.enum.d.ts +2 -1
  3. package/build/v1/ai-model/schemas/api-provider.enum.js +1 -0
  4. package/build/v1/ai-model/schemas/api-provider.enum.js.map +1 -1
  5. package/build/v1/chat/commands/create-reg-chat.command.d.ts +47 -0
  6. package/build/v1/chat/commands/create-unreg-chat.command.d.ts +47 -0
  7. package/build/v1/chat/commands/update-chat-title.command.d.ts +47 -0
  8. package/build/v1/chat/commands/update-chat.command.d.ts +47 -0
  9. package/build/v1/chat/queries/get-last-active-chat.query.d.ts +47 -0
  10. package/build/v1/chat/queries/get-reg-chat.query.d.ts +47 -0
  11. package/build/v1/chat/queries/get-unreg-chat.query.d.ts +47 -0
  12. package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +47 -0
  13. package/build/v1/message/schemas/message-response.schema.d.ts +47 -0
  14. package/build/v1/message/schemas/message-step-response.schema.d.ts +188 -0
  15. package/build/v1/message/schemas/message-step-response.schema.js +3 -0
  16. package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
  17. package/build/v1/message/schemas/step-chunk-metadata.schema.d.ts +8 -9
  18. package/build/v1/message/schemas/step-chunk-metadata.schema.js +6 -37
  19. package/build/v1/message/schemas/step-chunk-metadata.schema.js.map +1 -1
  20. package/build/v1/tool/sandbox/index.d.ts +1 -0
  21. package/build/v1/tool/sandbox/index.js +1 -0
  22. package/build/v1/tool/sandbox/index.js.map +1 -1
  23. package/build/v1/tool/sandbox/primitive-completion.schema.d.ts +135 -0
  24. package/build/v1/tool/sandbox/primitive-completion.schema.js +74 -0
  25. package/build/v1/tool/sandbox/primitive-completion.schema.js.map +1 -0
  26. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  export declare enum ApiProvider {
2
2
  OPENROUTER = "openrouter",
3
- PERPLEXITY = "perplexity"
3
+ PERPLEXITY = "perplexity",
4
+ YANDEX = "yandex"
4
5
  }
@@ -5,5 +5,6 @@ var ApiProvider;
5
5
  (function (ApiProvider) {
6
6
  ApiProvider["OPENROUTER"] = "openrouter";
7
7
  ApiProvider["PERPLEXITY"] = "perplexity";
8
+ ApiProvider["YANDEX"] = "yandex";
8
9
  })(ApiProvider || (exports.ApiProvider = ApiProvider = {}));
9
10
  //# sourceMappingURL=api-provider.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-provider.enum.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/api-provider.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,wCAAyB,CAAA;IACzB,wCAAyB,CAAA;AAC7B,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
1
+ {"version":3,"file":"api-provider.enum.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/api-provider.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,wCAAyB,CAAA;IACzB,wCAAyB,CAAA;IACzB,gCAAiB,CAAA;AACrB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
@@ -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>;
@@ -42,6 +42,53 @@ export declare const MessageResponseSchema: z.ZodObject<{
42
42
  }, z.core.$strip>>;
43
43
  sessionReused: z.ZodBoolean;
44
44
  timedOut: z.ZodBoolean;
45
+ primitive: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
46
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.BASH>;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.CREATE_FILE>;
49
+ path: z.ZodString;
50
+ totalLines: z.ZodNumber;
51
+ bytesWritten: z.ZodNumber;
52
+ overwrite: z.ZodBoolean;
53
+ preview: z.ZodObject<{
54
+ lines: z.ZodArray<z.ZodString>;
55
+ truncated: z.ZodBoolean;
56
+ }, z.core.$strip>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.STR_REPLACE>;
59
+ path: z.ZodString;
60
+ linesAdded: z.ZodNumber;
61
+ linesRemoved: z.ZodNumber;
62
+ linesBefore: z.ZodNumber;
63
+ linesAfter: z.ZodNumber;
64
+ hunk: z.ZodObject<{
65
+ startLine: z.ZodNumber;
66
+ contextBefore: z.ZodArray<z.ZodString>;
67
+ oldLines: z.ZodArray<z.ZodString>;
68
+ newLines: z.ZodArray<z.ZodString>;
69
+ contextAfter: z.ZodArray<z.ZodString>;
70
+ truncated: z.ZodBoolean;
71
+ }, z.core.$strip>;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ type: z.ZodLiteral<import("../..").SandboxPrimitiveType.VIEW>;
74
+ path: z.ZodString;
75
+ view: z.ZodDiscriminatedUnion<[z.ZodObject<{
76
+ type: z.ZodLiteral<import("../..").SandboxViewKind.DIRECTORY>;
77
+ entryCount: z.ZodNumber;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ type: z.ZodLiteral<import("../..").SandboxViewKind.TEXT>;
80
+ startLine: z.ZodNumber;
81
+ endLine: z.ZodNumber;
82
+ totalLines: z.ZodNumber;
83
+ truncated: z.ZodBoolean;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ type: z.ZodLiteral<import("../..").SandboxViewKind.IMAGE>;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<import("../..").SandboxViewKind.PDF>;
88
+ pagesShown: z.ZodNumber;
89
+ }, z.core.$strip>], "type">;
90
+ }, z.core.$strip>], "type">>;
91
+ description: z.ZodOptional<z.ZodString>;
45
92
  }, z.core.$strip>]>>;
46
93
  showInUi: z.ZodBoolean;
47
94
  startedAt: z.ZodNullable<z.ZodString>;