terse-types 0.0.2 → 0.0.4

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.
@@ -3,10 +3,8 @@ export declare enum IntegrationType {
3
3
  GITHUB = "github",
4
4
  GMAIL = "gmail",
5
5
  LINEAR = "linear",
6
- ATLASSIAN = "atlassian",
7
6
  SLACK = "slack",
8
7
  NOTION = "notion",
9
- FIGMA = "figma",
10
8
  TERSE = "terse",
11
9
  POSTHOG = "posthog",
12
10
  DATADOG = "datadog",
@@ -14,7 +12,8 @@ export declare enum IntegrationType {
14
12
  LAUNCHDARKLY = "launchdarkly",
15
13
  WORKOS = "workos",
16
14
  ATTIO = "attio",
17
- SNOWFLAKE = "snowflake"
15
+ SNOWFLAKE = "snowflake",
16
+ WEBHOOK = "webhook"
18
17
  }
19
18
  export declare const integrationTypeEnum: z.ZodEnum<typeof IntegrationType>;
20
19
  export interface IntegrationDetails {
@@ -52,20 +51,6 @@ export declare const SlackIntegrationMetadata: {
52
51
  readonly isInput: true;
53
52
  readonly isOutput: true;
54
53
  };
55
- export declare const FigmaIntegrationMetadata: {
56
- readonly type: IntegrationType.FIGMA;
57
- readonly name: "Figma";
58
- readonly description: "Trigger on Figma file comments (does not support file edits or design changes)";
59
- readonly isInput: true;
60
- readonly isOutput: false;
61
- };
62
- export declare const AtlassianIntegrationMetadata: {
63
- readonly type: IntegrationType.ATLASSIAN;
64
- readonly name: "Atlassian";
65
- readonly description: "Update documents in Atlassian";
66
- readonly isInput: true;
67
- readonly isOutput: false;
68
- };
69
54
  export declare const GithubIntegrationMetadata: {
70
55
  readonly type: IntegrationType.GITHUB;
71
56
  readonly name: "Github";
@@ -129,6 +114,13 @@ export declare const SnowflakeIntegrationMetadata: {
129
114
  readonly isInput: false;
130
115
  readonly isOutput: true;
131
116
  };
117
+ export declare const WebhookIntegrationMetadata: {
118
+ readonly type: IntegrationType.WEBHOOK;
119
+ readonly name: "Webhook";
120
+ readonly description: "Trigger via an external HTTP request to a generated URL";
121
+ readonly isInput: true;
122
+ readonly isOutput: false;
123
+ };
132
124
  export type IntegrationMetadataMap = Record<IntegrationType, IntegrationDetails>;
133
125
  export declare const INTEGRATION_METADATA: IntegrationMetadataMap;
134
126
  export declare const IntegrationInstanceSchema: z.ZodObject<{
@@ -146,9 +138,7 @@ export type IntegrationInstallationOptions = EnsureExhaustiveInstallationOptions
146
138
  [IntegrationType.GMAIL]: NoInstallationOptions;
147
139
  [IntegrationType.NOTION]: NoInstallationOptions;
148
140
  [IntegrationType.LINEAR]: NoInstallationOptions;
149
- [IntegrationType.ATLASSIAN]: NoInstallationOptions;
150
141
  [IntegrationType.GITHUB]: NoInstallationOptions;
151
- [IntegrationType.FIGMA]: NoInstallationOptions;
152
142
  [IntegrationType.TERSE]: NoInstallationOptions;
153
143
  [IntegrationType.POSTHOG]: NoInstallationOptions;
154
144
  [IntegrationType.DATADOG]: NoInstallationOptions;
@@ -157,6 +147,7 @@ export type IntegrationInstallationOptions = EnsureExhaustiveInstallationOptions
157
147
  [IntegrationType.WORKOS]: NoInstallationOptions;
158
148
  [IntegrationType.ATTIO]: NoInstallationOptions;
159
149
  [IntegrationType.SNOWFLAKE]: NoInstallationOptions;
150
+ [IntegrationType.WEBHOOK]: NoInstallationOptions;
160
151
  }>;
161
152
  export type InstallationOptionsFor<T extends IntegrationType> = IntegrationInstallationOptions[T];
162
153
  export declare const SlackIntegrationSchema: z.ZodObject<{
@@ -173,28 +164,12 @@ export declare const GmailIntegrationSchema: z.ZodObject<{
173
164
  watchExpiration: z.ZodOptional<z.ZodDate>;
174
165
  }, z.core.$strip>;
175
166
  export type GmailIntegration = z.infer<typeof GmailIntegrationSchema>;
176
- export declare const FigmaIntegrationSchema: z.ZodObject<{
177
- id: z.ZodString;
178
- handle: z.ZodString;
179
- figma_user_id: z.ZodString;
180
- token_expiry: z.ZodDate;
181
- }, z.core.$strip>;
182
- export type FigmaIntegration = z.infer<typeof FigmaIntegrationSchema>;
183
167
  export declare const NotionIntegrationSchema: z.ZodObject<{
184
168
  id: z.ZodString;
185
169
  workspaceId: z.ZodOptional<z.ZodString>;
186
170
  workspaceName: z.ZodOptional<z.ZodString>;
187
171
  }, z.core.$strip>;
188
172
  export type NotionIntegration = z.infer<typeof NotionIntegrationSchema>;
189
- export declare const AtlassianIntegrationSchema: z.ZodObject<{
190
- id: z.ZodString;
191
- baseUrl: z.ZodURL;
192
- email: z.ZodEmail;
193
- siteName: z.ZodOptional<z.ZodString>;
194
- projectKey: z.ZodOptional<z.ZodString>;
195
- projectName: z.ZodOptional<z.ZodString>;
196
- }, z.core.$strip>;
197
- export type AtlassianIntegration = z.infer<typeof AtlassianIntegrationSchema>;
198
173
  export declare const GithubIntegrationSchema: z.ZodObject<{
199
174
  id: z.ZodString;
200
175
  installation_id: z.ZodNumber;
@@ -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";
@@ -17,6 +15,7 @@ export var IntegrationType;
17
15
  IntegrationType["WORKOS"] = "workos";
18
16
  IntegrationType["ATTIO"] = "attio";
19
17
  IntegrationType["SNOWFLAKE"] = "snowflake";
18
+ IntegrationType["WEBHOOK"] = "webhook";
20
19
  })(IntegrationType || (IntegrationType = {}));
21
20
  export const integrationTypeEnum = z.enum(IntegrationType);
22
21
  // Metadata objects - using const objects instead of classes
@@ -48,20 +47,6 @@ export const SlackIntegrationMetadata = {
48
47
  isInput: true,
49
48
  isOutput: true
50
49
  };
51
- export const FigmaIntegrationMetadata = {
52
- type: IntegrationType.FIGMA,
53
- name: "Figma",
54
- description: "Trigger on Figma file comments (does not support file edits or design changes)",
55
- isInput: true,
56
- isOutput: false
57
- };
58
- export const AtlassianIntegrationMetadata = {
59
- type: IntegrationType.ATLASSIAN,
60
- name: "Atlassian",
61
- description: "Update documents in Atlassian",
62
- isInput: true,
63
- isOutput: false
64
- };
65
50
  export const GithubIntegrationMetadata = {
66
51
  type: IntegrationType.GITHUB,
67
52
  name: "Github",
@@ -125,14 +110,19 @@ export const SnowflakeIntegrationMetadata = {
125
110
  isInput: false,
126
111
  isOutput: true
127
112
  };
113
+ export const WebhookIntegrationMetadata = {
114
+ type: IntegrationType.WEBHOOK,
115
+ name: "Webhook",
116
+ description: "Trigger via an external HTTP request to a generated URL",
117
+ isInput: true,
118
+ isOutput: false
119
+ };
128
120
  export const INTEGRATION_METADATA = {
129
121
  [IntegrationType.GMAIL]: GmailIntegrationMetadata,
130
122
  [IntegrationType.NOTION]: NotionIntegrationMetadata,
131
123
  [IntegrationType.LINEAR]: LinearIntegrationMetadata,
132
- [IntegrationType.ATLASSIAN]: AtlassianIntegrationMetadata,
133
124
  [IntegrationType.SLACK]: SlackIntegrationMetadata,
134
125
  [IntegrationType.GITHUB]: GithubIntegrationMetadata,
135
- [IntegrationType.FIGMA]: FigmaIntegrationMetadata,
136
126
  [IntegrationType.TERSE]: TerseIntegrationMetadata,
137
127
  [IntegrationType.POSTHOG]: PosthogIntegrationMetadata,
138
128
  [IntegrationType.DATADOG]: DatadogIntegrationMetadata,
@@ -140,7 +130,8 @@ export const INTEGRATION_METADATA = {
140
130
  [IntegrationType.LAUNCHDARKLY]: LaunchDarklyIntegrationMetadata,
141
131
  [IntegrationType.WORKOS]: WorkOSIntegrationMetadata,
142
132
  [IntegrationType.ATTIO]: AttioIntegrationMetadata,
143
- [IntegrationType.SNOWFLAKE]: SnowflakeIntegrationMetadata
133
+ [IntegrationType.SNOWFLAKE]: SnowflakeIntegrationMetadata,
134
+ [IntegrationType.WEBHOOK]: WebhookIntegrationMetadata
144
135
  };
145
136
  // MARK: Integration Details
146
137
  export const IntegrationInstanceSchema = z.object({
@@ -156,22 +147,10 @@ export const GmailIntegrationSchema = IntegrationInstanceSchema.extend({
156
147
  historyId: z.string().optional(),
157
148
  watchExpiration: z.date().optional()
158
149
  });
159
- export const FigmaIntegrationSchema = IntegrationInstanceSchema.extend({
160
- handle: z.string(),
161
- figma_user_id: z.string(),
162
- token_expiry: z.date()
163
- });
164
150
  export const NotionIntegrationSchema = IntegrationInstanceSchema.extend({
165
151
  workspaceId: z.string().optional(),
166
152
  workspaceName: z.string().optional()
167
153
  });
168
- export const AtlassianIntegrationSchema = IntegrationInstanceSchema.extend({
169
- baseUrl: z.url(),
170
- email: z.email(),
171
- siteName: z.string().optional(),
172
- projectKey: z.string().optional(),
173
- projectName: z.string().optional()
174
- });
175
154
  export const GithubIntegrationSchema = IntegrationInstanceSchema.extend({
176
155
  installation_id: z.number().int(),
177
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>;