terse-types 0.0.3 → 0.0.5

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.
@@ -5,10 +5,8 @@ export var IntegrationType;
5
5
  IntegrationType["GITHUB"] = "github";
6
6
  IntegrationType["GMAIL"] = "gmail";
7
7
  IntegrationType["LINEAR"] = "linear";
8
- IntegrationType["ATLASSIAN"] = "atlassian";
9
8
  IntegrationType["SLACK"] = "slack";
10
9
  IntegrationType["NOTION"] = "notion";
11
- IntegrationType["FIGMA"] = "figma";
12
10
  IntegrationType["TERSE"] = "terse";
13
11
  IntegrationType["POSTHOG"] = "posthog";
14
12
  IntegrationType["DATADOG"] = "datadog";
@@ -49,20 +47,6 @@ export const SlackIntegrationMetadata = {
49
47
  isInput: true,
50
48
  isOutput: true
51
49
  };
52
- export const FigmaIntegrationMetadata = {
53
- type: IntegrationType.FIGMA,
54
- name: "Figma",
55
- description: "Trigger on Figma file comments (does not support file edits or design changes)",
56
- isInput: true,
57
- isOutput: false
58
- };
59
- export const AtlassianIntegrationMetadata = {
60
- type: IntegrationType.ATLASSIAN,
61
- name: "Atlassian",
62
- description: "Update documents in Atlassian",
63
- isInput: true,
64
- isOutput: false
65
- };
66
50
  export const GithubIntegrationMetadata = {
67
51
  type: IntegrationType.GITHUB,
68
52
  name: "Github",
@@ -137,10 +121,8 @@ export const INTEGRATION_METADATA = {
137
121
  [IntegrationType.GMAIL]: GmailIntegrationMetadata,
138
122
  [IntegrationType.NOTION]: NotionIntegrationMetadata,
139
123
  [IntegrationType.LINEAR]: LinearIntegrationMetadata,
140
- [IntegrationType.ATLASSIAN]: AtlassianIntegrationMetadata,
141
124
  [IntegrationType.SLACK]: SlackIntegrationMetadata,
142
125
  [IntegrationType.GITHUB]: GithubIntegrationMetadata,
143
- [IntegrationType.FIGMA]: FigmaIntegrationMetadata,
144
126
  [IntegrationType.TERSE]: TerseIntegrationMetadata,
145
127
  [IntegrationType.POSTHOG]: PosthogIntegrationMetadata,
146
128
  [IntegrationType.DATADOG]: DatadogIntegrationMetadata,
@@ -165,22 +147,10 @@ export const GmailIntegrationSchema = IntegrationInstanceSchema.extend({
165
147
  historyId: z.string().optional(),
166
148
  watchExpiration: z.date().optional()
167
149
  });
168
- export const FigmaIntegrationSchema = IntegrationInstanceSchema.extend({
169
- handle: z.string(),
170
- figma_user_id: z.string(),
171
- token_expiry: z.date()
172
- });
173
150
  export const NotionIntegrationSchema = IntegrationInstanceSchema.extend({
174
151
  workspaceId: z.string().optional(),
175
152
  workspaceName: z.string().optional()
176
153
  });
177
- export const AtlassianIntegrationSchema = IntegrationInstanceSchema.extend({
178
- baseUrl: z.url(),
179
- email: z.email(),
180
- siteName: z.string().optional(),
181
- projectKey: z.string().optional(),
182
- projectName: z.string().optional()
183
- });
184
154
  export const GithubIntegrationSchema = IntegrationInstanceSchema.extend({
185
155
  installation_id: z.number().int(),
186
156
  account_name: z.string().optional()
@@ -16,12 +16,8 @@ export declare const posthogIntegrationsKey: () => readonly [string];
16
16
  export declare const launchdarklyIntegrationsKey: () => readonly [string];
17
17
  export declare const datadogIntegrationsKey: () => readonly [string];
18
18
  export declare const githubRepositoriesKey: (installationId: number | null | undefined) => readonly [string, number] | null;
19
- export declare const confluenceResourcesKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
20
- export declare const jiraResourcesKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
21
19
  export declare const linearTeamsKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
22
20
  export declare const gmailIntegrationsKey: () => readonly [string];
23
- export declare const atlassianIntegrationsKey: () => readonly [string];
24
- export declare const figmaIntegrationsKey: () => readonly [string];
25
21
  export declare const githubIntegrationsKey: () => readonly [string];
26
22
  export declare const linearIntegrationsKey: () => readonly [string];
27
23
  export declare const notionIntegrationsKey: () => readonly [string];
@@ -50,3 +46,5 @@ export declare const agentImprovementsKey: (agentId: string | null) => readonly
50
46
  export declare const builderChatHistoryKey: (sessionId: string | null | undefined) => readonly [string, string] | null;
51
47
  export declare const orgLogoKey: (organizationId: string | null | undefined) => readonly [string, string] | null;
52
48
  export declare const userByIdKey: (userId: string | null | undefined) => readonly [string, string] | null;
49
+ export declare const agentFilesKey: (agentId: string) => readonly [string, string];
50
+ export declare const agentFileContentKey: (agentId: string, fileId: string) => readonly [string, string, string];
@@ -40,18 +40,6 @@ export const githubRepositoriesKey = (installationId) => {
40
40
  }
41
41
  return ["githubRepositories", installationId];
42
42
  };
43
- export const confluenceResourcesKey = (integrationId) => {
44
- if (!integrationId) {
45
- return null;
46
- }
47
- return ["confluenceResources", integrationId];
48
- };
49
- export const jiraResourcesKey = (integrationId) => {
50
- if (!integrationId) {
51
- return null;
52
- }
53
- return ["jiraResources", integrationId];
54
- };
55
43
  export const linearTeamsKey = (integrationId) => {
56
44
  if (!integrationId) {
57
45
  return null;
@@ -61,12 +49,6 @@ export const linearTeamsKey = (integrationId) => {
61
49
  export const gmailIntegrationsKey = () => {
62
50
  return ["gmailIntegrations"];
63
51
  };
64
- export const atlassianIntegrationsKey = () => {
65
- return ["atlassianIntegrations"];
66
- };
67
- export const figmaIntegrationsKey = () => {
68
- return ["figmaIntegrations"];
69
- };
70
52
  export const githubIntegrationsKey = () => {
71
53
  return ["githubIntegrations"];
72
54
  };
@@ -163,3 +145,5 @@ export const userByIdKey = (userId) => {
163
145
  return null;
164
146
  return ["userById", userId];
165
147
  };
148
+ export const agentFilesKey = (agentId) => ["agentFiles", agentId];
149
+ export const agentFileContentKey = (agentId, fileId) => ["agentFileContent", agentId, fileId];
@@ -18,12 +18,14 @@ export declare const changedItemSchema: z.ZodObject<{
18
18
  }, z.core.$strip>;
19
19
  export type ChangedItem = z.infer<typeof changedItemSchema>;
20
20
  export declare const runErrorSchema: z.ZodObject<{
21
+ type: z.ZodLiteral<"RunError">;
21
22
  error: z.ZodString;
22
23
  code: z.ZodOptional<z.ZodString>;
23
24
  timestamp: z.ZodNumber;
24
25
  }, z.core.$strip>;
25
26
  export type RunError = z.infer<typeof runErrorSchema>;
26
27
  export declare const cancelledSchema: z.ZodObject<{
28
+ type: z.ZodLiteral<"Cancelled">;
27
29
  reason: z.ZodOptional<z.ZodString>;
28
30
  timestamp: z.ZodNumber;
29
31
  }, z.core.$strip>;
@@ -36,10 +38,12 @@ export declare const functionCallSchema: z.ZodObject<{
36
38
  export type FunctionCall = z.infer<typeof functionCallSchema>;
37
39
  export declare const naturalStopSchema: z.ZodObject<{
38
40
  step_id: z.ZodString;
41
+ type: z.ZodLiteral<"NaturalStop">;
39
42
  timestamp: z.ZodNumber;
40
43
  }, z.core.$strip>;
41
44
  export type NaturalStop = z.infer<typeof naturalStopSchema>;
42
45
  export declare const sendModelRequestSchema: z.ZodObject<{
46
+ type: z.ZodLiteral<"SendModelRequest">;
43
47
  user_message: z.ZodString;
44
48
  timezone: z.ZodString;
45
49
  ui_state: z.ZodOptional<z.ZodString>;
@@ -49,6 +53,7 @@ export declare const sendModelRequestSchema: z.ZodObject<{
49
53
  export type SendModelRequest = z.infer<typeof sendModelRequestSchema>;
50
54
  export declare const toolApprovalResponseSchema: z.ZodObject<{
51
55
  step_id: z.ZodString;
56
+ type: z.ZodLiteral<"ToolApprovalResponse">;
52
57
  approved: z.ZodBoolean;
53
58
  rejection_reason: z.ZodOptional<z.ZodString>;
54
59
  timestamp: z.ZodNumber;
@@ -56,6 +61,7 @@ export declare const toolApprovalResponseSchema: z.ZodObject<{
56
61
  export type ToolApprovalResponse = z.infer<typeof toolApprovalResponseSchema>;
57
62
  export declare const toolApprovalRequestSchema: z.ZodObject<{
58
63
  step_id: z.ZodString;
64
+ type: z.ZodLiteral<"ToolApprovalRequest">;
59
65
  name: z.ZodString;
60
66
  arguments: z.ZodString;
61
67
  timestamp: z.ZodNumber;
@@ -64,18 +70,21 @@ export type ToolApprovalRequest = z.infer<typeof toolApprovalRequestSchema>;
64
70
  export declare const textDeltaSchema: z.ZodObject<{
65
71
  delta: z.ZodString;
66
72
  step_id: z.ZodString;
73
+ type: z.ZodLiteral<"TextDelta">;
67
74
  timestamp: z.ZodNumber;
68
75
  }, z.core.$strip>;
69
76
  export type TextDelta = z.infer<typeof textDeltaSchema>;
70
77
  export declare const toolCallGeneratingSchema: z.ZodObject<{
71
78
  tool_name: z.ZodString;
72
79
  step_id: z.ZodString;
80
+ type: z.ZodLiteral<"ToolCallGenerating">;
73
81
  timestamp: z.ZodNumber;
74
82
  }, z.core.$strip>;
75
83
  export type ToolCallGenerating = z.infer<typeof toolCallGeneratingSchema>;
76
84
  export declare const toolCallSchema: z.ZodObject<{
77
85
  summary: z.ZodString;
78
86
  step_id: z.ZodString;
87
+ type: z.ZodLiteral<"ToolCall">;
79
88
  parameters: z.ZodString;
80
89
  integration: z.ZodString;
81
90
  timestamp: z.ZodNumber;
@@ -83,6 +92,7 @@ export declare const toolCallSchema: z.ZodObject<{
83
92
  export type ToolCall = z.infer<typeof toolCallSchema>;
84
93
  export declare const thinkingSchema: z.ZodObject<{
85
94
  step_id: z.ZodString;
95
+ type: z.ZodLiteral<"Thinking">;
86
96
  timestamp: z.ZodNumber;
87
97
  }, z.core.$strip>;
88
98
  export type Thinking = z.infer<typeof thinkingSchema>;
@@ -98,6 +108,7 @@ export declare const toolCallCompleteSchema: z.ZodObject<{
98
108
  timestamp: z.ZodNumber;
99
109
  status: z.ZodEnum<typeof ToolCallExecutionStatus>;
100
110
  step_id: z.ZodString;
111
+ type: z.ZodLiteral<"ToolCallComplete">;
101
112
  changed_items: z.ZodArray<z.ZodObject<{
102
113
  type_name: z.ZodEnum<typeof EntityType>;
103
114
  id: z.ZodString;
@@ -116,6 +127,7 @@ export declare const filterResultSchema: z.ZodObject<{
116
127
  reason: z.ZodString;
117
128
  confidence: z.ZodNumber;
118
129
  step_id: z.ZodString;
130
+ type: z.ZodLiteral<"FilterResult">;
119
131
  timestamp: z.ZodNumber;
120
132
  }, z.core.$strip>;
121
133
  export type FilterResult = z.infer<typeof filterResultSchema>;
@@ -129,6 +141,7 @@ export declare enum SandboxStage {
129
141
  export declare const sandboxStageSchema: z.ZodEnum<typeof SandboxStage>;
130
142
  export declare const SANDBOX_STAGE_LABELS: Record<SandboxStage, string>;
131
143
  export declare const userMessageSchema: z.ZodObject<{
144
+ type: z.ZodLiteral<"UserMessage">;
132
145
  message: z.ZodString;
133
146
  step_id: z.ZodString;
134
147
  client_turn_id: z.ZodString;
@@ -139,6 +152,35 @@ export declare const multipleChoiceOptionSchema: z.ZodObject<{
139
152
  label: z.ZodString;
140
153
  value: z.ZodString;
141
154
  }, z.core.$strip>;
155
+ export declare const buttonSchema: z.ZodObject<{
156
+ type: z.ZodLiteral<"button">;
157
+ label: z.ZodString;
158
+ url: z.ZodString;
159
+ }, z.core.$strip>;
160
+ export declare const integrationPromptSchema: z.ZodObject<{
161
+ type: z.ZodLiteral<"integration_prompt">;
162
+ integration: z.ZodString;
163
+ message: z.ZodString;
164
+ stateToken: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$strip>;
166
+ export declare const navigateSchema: z.ZodObject<{
167
+ type: z.ZodLiteral<"navigate">;
168
+ path: z.ZodString;
169
+ }, z.core.$strip>;
170
+ export declare const multipleChoiceSchema: z.ZodObject<{
171
+ type: z.ZodLiteral<"multiple_choice">;
172
+ questionId: z.ZodString;
173
+ question: z.ZodString;
174
+ options: z.ZodArray<z.ZodObject<{
175
+ label: z.ZodString;
176
+ value: z.ZodString;
177
+ }, z.core.$strip>>;
178
+ allowMultiple: z.ZodOptional<z.ZodBoolean>;
179
+ }, z.core.$strip>;
180
+ export declare const imageSchema: z.ZodObject<{
181
+ type: z.ZodLiteral<"image">;
182
+ url: z.ZodString;
183
+ }, z.core.$strip>;
142
184
  export declare const snippetVariantSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
143
185
  type: z.ZodLiteral<"button">;
144
186
  label: z.ZodString;
@@ -165,22 +207,27 @@ export declare const snippetVariantSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
165
207
  url: z.ZodString;
166
208
  }, z.core.$strip>], "type">;
167
209
  export type SnippetVariant = z.infer<typeof snippetVariantSchema>;
168
- export declare const chatSnippetSchema: z.ZodIntersection<z.ZodObject<{
169
- id: z.ZodOptional<z.ZodString>;
170
- step_id: z.ZodOptional<z.ZodString>;
171
- selectedValue: z.ZodOptional<z.ZodString>;
172
- }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
210
+ export declare const chatSnippetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
173
211
  type: z.ZodLiteral<"button">;
174
212
  label: z.ZodString;
175
213
  url: z.ZodString;
214
+ id: z.ZodOptional<z.ZodString>;
215
+ step_id: z.ZodOptional<z.ZodString>;
216
+ selectedValue: z.ZodOptional<z.ZodString>;
176
217
  }, z.core.$strip>, z.ZodObject<{
177
218
  type: z.ZodLiteral<"integration_prompt">;
178
219
  integration: z.ZodString;
179
220
  message: z.ZodString;
180
221
  stateToken: z.ZodOptional<z.ZodString>;
222
+ id: z.ZodOptional<z.ZodString>;
223
+ step_id: z.ZodOptional<z.ZodString>;
224
+ selectedValue: z.ZodOptional<z.ZodString>;
181
225
  }, z.core.$strip>, z.ZodObject<{
182
226
  type: z.ZodLiteral<"navigate">;
183
227
  path: z.ZodString;
228
+ id: z.ZodOptional<z.ZodString>;
229
+ step_id: z.ZodOptional<z.ZodString>;
230
+ selectedValue: z.ZodOptional<z.ZodString>;
184
231
  }, z.core.$strip>, z.ZodObject<{
185
232
  type: z.ZodLiteral<"multiple_choice">;
186
233
  questionId: z.ZodString;
@@ -190,40 +237,91 @@ export declare const chatSnippetSchema: z.ZodIntersection<z.ZodObject<{
190
237
  value: z.ZodString;
191
238
  }, z.core.$strip>>;
192
239
  allowMultiple: z.ZodOptional<z.ZodBoolean>;
240
+ id: z.ZodOptional<z.ZodString>;
241
+ step_id: z.ZodOptional<z.ZodString>;
242
+ selectedValue: z.ZodOptional<z.ZodString>;
193
243
  }, z.core.$strip>, z.ZodObject<{
194
244
  type: z.ZodLiteral<"image">;
195
245
  url: z.ZodString;
196
- }, z.core.$strip>], "type">>;
246
+ id: z.ZodOptional<z.ZodString>;
247
+ step_id: z.ZodOptional<z.ZodString>;
248
+ selectedValue: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strip>], "type">;
197
250
  export type ChatSnippet = z.infer<typeof chatSnippetSchema>;
251
+ export declare const modelEventChatSnippetSchema: z.ZodObject<{
252
+ type: z.ZodLiteral<"Snippet">;
253
+ timestamp: z.ZodNumber;
254
+ snippet: z.ZodDiscriminatedUnion<[z.ZodObject<{
255
+ type: z.ZodLiteral<"button">;
256
+ label: z.ZodString;
257
+ url: z.ZodString;
258
+ id: z.ZodOptional<z.ZodString>;
259
+ step_id: z.ZodOptional<z.ZodString>;
260
+ selectedValue: z.ZodOptional<z.ZodString>;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ type: z.ZodLiteral<"integration_prompt">;
263
+ integration: z.ZodString;
264
+ message: z.ZodString;
265
+ stateToken: z.ZodOptional<z.ZodString>;
266
+ id: z.ZodOptional<z.ZodString>;
267
+ step_id: z.ZodOptional<z.ZodString>;
268
+ selectedValue: z.ZodOptional<z.ZodString>;
269
+ }, z.core.$strip>, z.ZodObject<{
270
+ type: z.ZodLiteral<"navigate">;
271
+ path: z.ZodString;
272
+ id: z.ZodOptional<z.ZodString>;
273
+ step_id: z.ZodOptional<z.ZodString>;
274
+ selectedValue: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ type: z.ZodLiteral<"multiple_choice">;
277
+ questionId: z.ZodString;
278
+ question: z.ZodString;
279
+ options: z.ZodArray<z.ZodObject<{
280
+ label: z.ZodString;
281
+ value: z.ZodString;
282
+ }, z.core.$strip>>;
283
+ allowMultiple: z.ZodOptional<z.ZodBoolean>;
284
+ id: z.ZodOptional<z.ZodString>;
285
+ step_id: z.ZodOptional<z.ZodString>;
286
+ selectedValue: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$strip>, z.ZodObject<{
288
+ type: z.ZodLiteral<"image">;
289
+ url: z.ZodString;
290
+ id: z.ZodOptional<z.ZodString>;
291
+ step_id: z.ZodOptional<z.ZodString>;
292
+ selectedValue: z.ZodOptional<z.ZodString>;
293
+ }, z.core.$strip>], "type">;
294
+ }, z.core.$strip>;
198
295
  export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
199
296
  step_id: z.ZodString;
297
+ type: z.ZodLiteral<"ToolApprovalResponse">;
200
298
  approved: z.ZodBoolean;
201
299
  rejection_reason: z.ZodOptional<z.ZodString>;
202
300
  timestamp: z.ZodNumber;
203
- type: z.ZodLiteral<"ToolApprovalResponse">;
204
301
  }, z.core.$strip>, z.ZodObject<{
205
302
  step_id: z.ZodString;
303
+ type: z.ZodLiteral<"ToolApprovalRequest">;
206
304
  name: z.ZodString;
207
305
  arguments: z.ZodString;
208
306
  timestamp: z.ZodNumber;
209
- type: z.ZodLiteral<"ToolApprovalRequest">;
210
307
  }, z.core.$strip>, z.ZodObject<{
211
308
  tool_name: z.ZodString;
212
309
  step_id: z.ZodString;
213
- timestamp: z.ZodNumber;
214
310
  type: z.ZodLiteral<"ToolCallGenerating">;
311
+ timestamp: z.ZodNumber;
215
312
  }, z.core.$strip>, z.ZodObject<{
216
313
  summary: z.ZodString;
217
314
  step_id: z.ZodString;
315
+ type: z.ZodLiteral<"ToolCall">;
218
316
  parameters: z.ZodString;
219
317
  integration: z.ZodString;
220
318
  timestamp: z.ZodNumber;
221
- type: z.ZodLiteral<"ToolCall">;
222
319
  }, z.core.$strip>, z.ZodObject<{
223
320
  tool_name: z.ZodString;
224
321
  timestamp: z.ZodNumber;
225
322
  status: z.ZodEnum<typeof ToolCallExecutionStatus>;
226
323
  step_id: z.ZodString;
324
+ type: z.ZodLiteral<"ToolCallComplete">;
227
325
  changed_items: z.ZodArray<z.ZodObject<{
228
326
  type_name: z.ZodEnum<typeof EntityType>;
229
327
  id: z.ZodString;
@@ -235,61 +333,65 @@ export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
235
333
  errorContext: z.ZodOptional<z.ZodObject<{
236
334
  error: z.ZodUnknown;
237
335
  }, z.core.$strip>>;
238
- type: z.ZodLiteral<"ToolCallComplete">;
239
336
  }, z.core.$strip>, z.ZodObject<{
240
337
  delta: z.ZodString;
241
338
  step_id: z.ZodString;
242
- timestamp: z.ZodNumber;
243
339
  type: z.ZodLiteral<"TextDelta">;
340
+ timestamp: z.ZodNumber;
244
341
  }, z.core.$strip>, z.ZodObject<{
342
+ type: z.ZodLiteral<"RunError">;
245
343
  error: z.ZodString;
246
344
  code: z.ZodOptional<z.ZodString>;
247
345
  timestamp: z.ZodNumber;
248
- type: z.ZodLiteral<"RunError">;
249
346
  }, z.core.$strip>, z.ZodObject<{
347
+ type: z.ZodLiteral<"Cancelled">;
250
348
  reason: z.ZodOptional<z.ZodString>;
251
349
  timestamp: z.ZodNumber;
252
- type: z.ZodLiteral<"Cancelled">;
253
350
  }, z.core.$strip>, z.ZodObject<{
254
351
  step_id: z.ZodString;
255
- timestamp: z.ZodNumber;
256
352
  type: z.ZodLiteral<"NaturalStop">;
353
+ timestamp: z.ZodNumber;
257
354
  }, z.core.$strip>, z.ZodObject<{
258
355
  isRelevant: z.ZodBoolean;
259
356
  reason: z.ZodString;
260
357
  confidence: z.ZodNumber;
261
358
  step_id: z.ZodString;
262
- timestamp: z.ZodNumber;
263
359
  type: z.ZodLiteral<"FilterResult">;
360
+ timestamp: z.ZodNumber;
264
361
  }, z.core.$strip>, z.ZodObject<{
362
+ type: z.ZodLiteral<"UserMessage">;
265
363
  message: z.ZodString;
266
364
  step_id: z.ZodString;
267
365
  client_turn_id: z.ZodString;
268
366
  timestamp: z.ZodNumber;
269
- type: z.ZodLiteral<"UserMessage">;
270
367
  }, z.core.$strip>, z.ZodObject<{
271
368
  step_id: z.ZodString;
272
- timestamp: z.ZodNumber;
273
369
  type: z.ZodLiteral<"Thinking">;
370
+ timestamp: z.ZodNumber;
274
371
  }, z.core.$strip>, z.ZodObject<{
275
372
  type: z.ZodLiteral<"Snippet">;
276
373
  timestamp: z.ZodNumber;
277
- snippet: z.ZodIntersection<z.ZodObject<{
278
- id: z.ZodOptional<z.ZodString>;
279
- step_id: z.ZodOptional<z.ZodString>;
280
- selectedValue: z.ZodOptional<z.ZodString>;
281
- }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
374
+ snippet: z.ZodDiscriminatedUnion<[z.ZodObject<{
282
375
  type: z.ZodLiteral<"button">;
283
376
  label: z.ZodString;
284
377
  url: z.ZodString;
378
+ id: z.ZodOptional<z.ZodString>;
379
+ step_id: z.ZodOptional<z.ZodString>;
380
+ selectedValue: z.ZodOptional<z.ZodString>;
285
381
  }, z.core.$strip>, z.ZodObject<{
286
382
  type: z.ZodLiteral<"integration_prompt">;
287
383
  integration: z.ZodString;
288
384
  message: z.ZodString;
289
385
  stateToken: z.ZodOptional<z.ZodString>;
386
+ id: z.ZodOptional<z.ZodString>;
387
+ step_id: z.ZodOptional<z.ZodString>;
388
+ selectedValue: z.ZodOptional<z.ZodString>;
290
389
  }, z.core.$strip>, z.ZodObject<{
291
390
  type: z.ZodLiteral<"navigate">;
292
391
  path: z.ZodString;
392
+ id: z.ZodOptional<z.ZodString>;
393
+ step_id: z.ZodOptional<z.ZodString>;
394
+ selectedValue: z.ZodOptional<z.ZodString>;
293
395
  }, z.core.$strip>, z.ZodObject<{
294
396
  type: z.ZodLiteral<"multiple_choice">;
295
397
  questionId: z.ZodString;
@@ -299,24 +401,30 @@ export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
299
401
  value: z.ZodString;
300
402
  }, z.core.$strip>>;
301
403
  allowMultiple: z.ZodOptional<z.ZodBoolean>;
404
+ id: z.ZodOptional<z.ZodString>;
405
+ step_id: z.ZodOptional<z.ZodString>;
406
+ selectedValue: z.ZodOptional<z.ZodString>;
302
407
  }, z.core.$strip>, z.ZodObject<{
303
408
  type: z.ZodLiteral<"image">;
304
409
  url: z.ZodString;
305
- }, z.core.$strip>], "type">>;
410
+ id: z.ZodOptional<z.ZodString>;
411
+ step_id: z.ZodOptional<z.ZodString>;
412
+ selectedValue: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strip>], "type">;
306
414
  }, z.core.$strip>], "type">;
307
415
  export type ModelEvent = z.infer<typeof modelEventSchema>;
308
416
  export declare const modelRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
417
+ type: z.ZodLiteral<"SendModelRequest">;
309
418
  user_message: z.ZodString;
310
419
  timezone: z.ZodString;
311
420
  ui_state: z.ZodOptional<z.ZodString>;
312
421
  client_turn_id: z.ZodString;
313
422
  template_id: z.ZodOptional<z.ZodString>;
314
- type: z.ZodLiteral<"SendModelRequest">;
315
423
  }, z.core.$strip>, z.ZodObject<{
316
424
  step_id: z.ZodString;
425
+ type: z.ZodLiteral<"ToolApprovalResponse">;
317
426
  approved: z.ZodBoolean;
318
427
  rejection_reason: z.ZodOptional<z.ZodString>;
319
428
  timestamp: z.ZodNumber;
320
- type: z.ZodLiteral<"ToolApprovalResponse">;
321
429
  }, z.core.$strip>], "type">;
322
430
  export type ModelRequest = z.infer<typeof modelRequestSchema>;