@stacklink/sdk 0.3.13 → 0.3.14

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.
@@ -1,5 +1,231 @@
1
+ import type { ContentLocator } from '../services/content-normalization/normalized-content-artifact.js';
1
2
  import { z } from "zod";
2
3
  import { type ApprovalAudience } from "./platform-approval-contract.js";
4
+ export type FileKind = 'documents' | 'spreadsheets' | 'images' | 'audio' | 'code';
5
+ /** What happens to spreadsheets bigger than the preview: worked out in Workbench, or preview only. */
6
+ export type BigSpreadsheets = 'workbench' | 'preview';
7
+ /** Bot config `files` (boards 12, 13, 15). Absent means the server can't store it yet: the UI stays hidden. */
8
+ export type BotFileSettings = {
9
+ enabled: boolean;
10
+ kinds: FileKind[];
11
+ bigSpreadsheets: BigSpreadsheets;
12
+ };
13
+ /** One fixed limit for v1, the same for every plan. */
14
+ export declare const FILE_LIMITS: {
15
+ readonly maxFileBytes: number;
16
+ readonly maxFilesPerMessage: 5;
17
+ readonly maxAudioMinutes: 30;
18
+ };
19
+ export type AttachmentStatus = 'uploading' | 'uploaded' | 'preparing' | 'ready' | 'failed' | 'gone';
20
+ /** What the server read from a file. Every field is optional; the tile shows what it has. */
21
+ export type AttachmentFacts = {
22
+ pages?: number;
23
+ /** Pages with no text layer, read as images when the model has Vision. */
24
+ scannedPages?: number[];
25
+ sheets?: number;
26
+ rows?: number;
27
+ /** Rows the preview could read without Workbench (wide sheets give fewer). */
28
+ previewRows?: number;
29
+ durationSeconds?: number;
30
+ speakers?: number;
31
+ lines?: number;
32
+ width?: number;
33
+ height?: number;
34
+ /** HEIC photos are converted to JPG for reading; the original is kept. */
35
+ convertedFrom?: string;
36
+ };
37
+ export type AttachmentError = {
38
+ code: AttachmentErrorCode;
39
+ message: string;
40
+ };
41
+ /** Typed reasons a file can't be used. Upload-time codes come from finalize; read-time codes from the run. */
42
+ export type AttachmentErrorCode = 'file_too_large' | 'unsupported_type' | 'kind_off' | 'password_protected' | 'conversion_failed' | 'audio_too_long' | 'damaged' | 'upload_expired' | 'file_mismatch' | 'upload_interrupted' | 'too_many_files' | 'processing_failed' | 'file_unavailable';
43
+ export type BotAttachment = {
44
+ id: string;
45
+ name: string;
46
+ mediaType: string;
47
+ sizeBytes: number;
48
+ status: AttachmentStatus;
49
+ facts?: AttachmentFacts;
50
+ error?: AttachmentError | null;
51
+ /** A short-lived link to a small preview image (photos). */
52
+ thumbnailUrl?: string | null;
53
+ /** Fixed identity of the bytes, shown in Runs. */
54
+ warnings?: Array<{
55
+ code: string;
56
+ message: string;
57
+ }>;
58
+ sha256?: string | null;
59
+ };
60
+ /** A file the bot made in Workbench (boards 4, 8, 11, 16). Links expire; ask for a new one. */
61
+ export type BotOutputFile = {
62
+ id: string;
63
+ name: string;
64
+ mediaType: string;
65
+ sizeBytes: number;
66
+ /** "14,212 rows", "chart". */
67
+ detail?: string;
68
+ downloadUrl?: string | null;
69
+ expiresAt?: string | null;
70
+ };
71
+ /** A page or a moment in a file that part of the answer came from (boards 3 and 6). */
72
+ export type FileCitation = {
73
+ id: string;
74
+ fileId: string;
75
+ text: string;
76
+ locator: ContentLocator;
77
+ };
78
+ /** How much of a file the answer used, as the server measured it (boards 4, 9, 10). */
79
+ export type FileCoverage = {
80
+ fileId: string;
81
+ /** `full`: every row; `preview`: only the preview. */
82
+ scope: 'full' | 'preview';
83
+ rows: number;
84
+ totalRows: number;
85
+ sheets?: number;
86
+ /** Formulas use the values saved in the file. */
87
+ savedFormulaValues?: boolean;
88
+ };
89
+ export type BotProgressUpdate = {
90
+ text: string;
91
+ at: string;
92
+ };
93
+ export type FileStepKind = 'file_read' | 'file_vision' | 'file_convert' | 'file_transcribe' | 'file_preview' | 'file_unavailable' | 'file_ready';
94
+ /** Extra facts a step can carry. `code` is the Workbench source, folded under Show code (board 4). */
95
+ export type FileStepExtras = {
96
+ fileId?: string;
97
+ /** Code or SQL was read as text, never run (board 7). */
98
+ notRun?: boolean;
99
+ /** Draw the row as a warning (a skipped scan, a preview-only read, Workbench needing approval). */
100
+ warning?: boolean;
101
+ code?: {
102
+ language: string;
103
+ title: string;
104
+ source: string;
105
+ output?: string;
106
+ };
107
+ };
108
+ export type ModelCapabilities = {
109
+ vision: boolean;
110
+ tools: boolean;
111
+ reasoning: boolean;
112
+ json: boolean;
113
+ stream: boolean;
114
+ };
115
+ /** Fixed allow-list shared by API validation and the file picker. */
116
+ export declare const BOT_FILE_FORMATS: ({
117
+ kind: "documents";
118
+ extensions: string[];
119
+ } | {
120
+ kind: "spreadsheets";
121
+ extensions: string[];
122
+ } | {
123
+ kind: "images";
124
+ extensions: string[];
125
+ } | {
126
+ kind: "audio";
127
+ extensions: string[];
128
+ } | {
129
+ kind: "code";
130
+ extensions: string[];
131
+ })[];
132
+ export declare const botFileSettingsSchema: z.ZodObject<{
133
+ enabled: z.ZodBoolean;
134
+ kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
135
+ bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
136
+ }, "strict", z.ZodTypeAny, {
137
+ enabled: boolean;
138
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
139
+ bigSpreadsheets: "workbench" | "preview";
140
+ }, {
141
+ enabled: boolean;
142
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
143
+ bigSpreadsheets: "workbench" | "preview";
144
+ }>;
145
+ export declare const botFileUploadSchema: z.ZodObject<{
146
+ requestId: z.ZodOptional<z.ZodString>;
147
+ sha256: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
148
+ name: z.ZodEffects<z.ZodString, string, string>;
149
+ mediaType: z.ZodString;
150
+ sizeBytes: z.ZodNumber;
151
+ }, "strict", z.ZodTypeAny, {
152
+ name: string;
153
+ mediaType: string;
154
+ sizeBytes: number;
155
+ requestId?: string | undefined;
156
+ sha256?: string | undefined;
157
+ }, {
158
+ name: string;
159
+ mediaType: string;
160
+ sizeBytes: number;
161
+ requestId?: string | undefined;
162
+ sha256?: string | undefined;
163
+ }>;
164
+ export type BotFileUploadInput = z.infer<typeof botFileUploadSchema>;
165
+ export type BotFileUpload = {
166
+ fileId: string;
167
+ uploadUrl: string;
168
+ requiredHeaders: Record<string, string>;
169
+ expiresAt: string;
170
+ customerSessionId?: string;
171
+ status?: AttachmentStatus;
172
+ nextAction?: 'upload' | 'retry_upload' | 'use_file';
173
+ };
174
+ /** Browser selection is a scoped handoff, not a Bot run or a provider connection. */
175
+ export declare const botUploadRequestSchema: z.ZodObject<{
176
+ requestId: z.ZodString;
177
+ task: z.ZodOptional<z.ZodObject<{
178
+ message: z.ZodString;
179
+ conversationId: z.ZodOptional<z.ZodString>;
180
+ runId: z.ZodString;
181
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
182
+ }, "strict", z.ZodTypeAny, {
183
+ message: string;
184
+ runId: string;
185
+ conversationId?: string | undefined;
186
+ variables?: Record<string, unknown> | undefined;
187
+ }, {
188
+ message: string;
189
+ runId: string;
190
+ conversationId?: string | undefined;
191
+ variables?: Record<string, unknown> | undefined;
192
+ }>>;
193
+ }, "strict", z.ZodTypeAny, {
194
+ requestId: string;
195
+ task?: {
196
+ message: string;
197
+ runId: string;
198
+ conversationId?: string | undefined;
199
+ variables?: Record<string, unknown> | undefined;
200
+ } | undefined;
201
+ }, {
202
+ requestId: string;
203
+ task?: {
204
+ message: string;
205
+ runId: string;
206
+ conversationId?: string | undefined;
207
+ variables?: Record<string, unknown> | undefined;
208
+ } | undefined;
209
+ }>;
210
+ export type BotUploadRequestView = {
211
+ kind: 'bot_upload';
212
+ id: string;
213
+ botId: string;
214
+ botName: string;
215
+ status: 'pending' | 'submitted' | 'cancelled' | 'expired';
216
+ expiresAt: string;
217
+ files: BotAttachment[];
218
+ selectedFileIds: string[];
219
+ limits: typeof FILE_LIMITS;
220
+ settings: BotFileSettings;
221
+ hasTask: boolean;
222
+ taskMessage?: string;
223
+ runId?: string;
224
+ action?: {
225
+ kind: 'open_url';
226
+ url: string;
227
+ };
228
+ };
3
229
  /** Shared, versioned contract for Bots across the dashboard, API and SDK. */
4
230
  /** What the list shows. Working and Needs attention are derived, never set by a person. */
5
231
  export type BotStatus = "working" | "on" | "attention" | "paused" | "draft";
@@ -354,8 +580,9 @@ export type TestCustomer = {
354
580
  customerId: string | null;
355
581
  };
356
582
  export type TestDataMode = "sample" | "live";
357
- export type TestStepKind = "compaction" | "api" | "app" | "skill" | "memory" | "web" | "knowledge" | "mcp" | "workbench";
583
+ export type TestStepKind = FileStepKind | "compaction" | "api" | "app" | "skill" | "memory" | "web" | "knowledge" | "mcp" | "workbench";
358
584
  export type TestStep = {
585
+ files?: FileStepExtras;
359
586
  id?: string;
360
587
  startedAt?: string;
361
588
  completedAt?: string;
@@ -367,6 +594,10 @@ export type TestStep = {
367
594
  app?: AppKey;
368
595
  };
369
596
  export type BotTest = {
597
+ attachments?: BotAttachment[];
598
+ outputs?: BotOutputFile[];
599
+ coverage?: FileCoverage[];
600
+ updates?: BotProgressUpdate[];
370
601
  waitingOperation?: BotWaitingOperation | null;
371
602
  connection?: BotConnectionAction | null;
372
603
  requirements?: BotRequirement[];
@@ -381,6 +612,7 @@ export type BotTest = {
381
612
  error?: unknown;
382
613
  dataMode?: TestDataMode;
383
614
  answer: {
615
+ citations?: FileCitation[];
384
616
  /** e.g. "Matches your 4 fields" or "Answered". */
385
617
  verdict: string;
386
618
  durationMs: number;
@@ -405,6 +637,7 @@ export type BotActivity = {
405
637
  beforeTest: number;
406
638
  };
407
639
  export type Bot = {
640
+ files?: BotFileSettings;
408
641
  /** Named timezone for this Bot; absent means local time is unknown. */
409
642
  timezone?: string | null | undefined;
410
643
  workbenchSuggestion?: {
@@ -467,7 +700,7 @@ export type BotReadinessIssue = {
467
700
  message: string;
468
701
  };
469
702
  /** Partial update. Nested objects replace the stored value for that key. */
470
- export type BotConfiguration = Pick<Bot, "name" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers">;
703
+ export type BotConfiguration = Pick<Bot, "name" | "files" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers">;
471
704
  export type BotPatch = Partial<BotConfiguration>;
472
705
  export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
473
706
  kind: z.ZodLiteral<"app">;
@@ -488,6 +721,7 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
488
721
  id: string;
489
722
  enabled: boolean;
490
723
  name: string;
724
+ variables: Record<string, unknown>;
491
725
  subscriptionId: string;
492
726
  label: string;
493
727
  providerKey: string;
@@ -496,7 +730,6 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
496
730
  customerField: string;
497
731
  instruction: string;
498
732
  answerTo: "webhook" | "none";
499
- variables: Record<string, unknown>;
500
733
  }, {
501
734
  kind: "app";
502
735
  id: string;
@@ -528,11 +761,11 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
528
761
  tenantId: string;
529
762
  enabled: boolean;
530
763
  name: string;
764
+ variables: Record<string, unknown>;
531
765
  runsAs: "none" | "field";
532
766
  customerField: string;
533
767
  instruction: string;
534
768
  answerTo: "webhook" | "none";
535
- variables: Record<string, unknown>;
536
769
  }, {
537
770
  kind: "webhook";
538
771
  id: string;
@@ -569,10 +802,10 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
569
802
  tenantId: string;
570
803
  enabled: boolean;
571
804
  name: string;
805
+ variables: Record<string, unknown>;
572
806
  runsAs: "one" | "none";
573
807
  instruction: string;
574
808
  answerTo: "webhook" | "none";
575
- variables: Record<string, unknown>;
576
809
  repeat: "once" | "repeat";
577
810
  days: number[];
578
811
  time: string;
@@ -605,6 +838,9 @@ export type BotTriggerState = {
605
838
  webhookUrl: string | null;
606
839
  };
607
840
  export type ModelOption = {
841
+ capabilities?: ModelCapabilities;
842
+ contextTokens?: number;
843
+ description?: string;
608
844
  id: string;
609
845
  name: string;
610
846
  provider: string;
@@ -686,6 +922,7 @@ export type BotBinding = {
686
922
  key: string;
687
923
  };
688
924
  export type BotRunInput = {
925
+ attachments?: string[];
689
926
  runId?: string;
690
927
  conversationId?: string;
691
928
  message: string;
@@ -742,6 +979,12 @@ export declare const botRequirementSchema: z.ZodObject<{
742
979
  }>;
743
980
  export type BotRequirement = z.infer<typeof botRequirementSchema>;
744
981
  export type BotRun = {
982
+ resumeCount?: number;
983
+ attachments?: BotAttachment[];
984
+ outputs?: BotOutputFile[];
985
+ coverage?: FileCoverage[];
986
+ citations?: FileCitation[];
987
+ updates?: BotProgressUpdate[];
745
988
  channel: string;
746
989
  dataMode: TestDataMode;
747
990
  callerKey: string;
@@ -849,12 +1092,12 @@ export declare const botBindingSchema: z.ZodObject<{
849
1092
  }, "strict", z.ZodTypeAny, {
850
1093
  path: string[];
851
1094
  source: "variable" | "context" | "model" | "identity";
852
- target: "path" | "query" | "header" | "body";
1095
+ target: "body" | "path" | "query" | "header";
853
1096
  key: string;
854
1097
  }, {
855
1098
  path: string[];
856
1099
  source: "variable" | "context" | "model" | "identity";
857
- target: "path" | "query" | "header" | "body";
1100
+ target: "body" | "path" | "query" | "header";
858
1101
  key: string;
859
1102
  }>;
860
1103
  export declare const botApiCallSchema: z.ZodObject<{
@@ -882,36 +1125,36 @@ export declare const botApiCallSchema: z.ZodObject<{
882
1125
  }, "strict", z.ZodTypeAny, {
883
1126
  path: string[];
884
1127
  source: "variable" | "context" | "model" | "identity";
885
- target: "path" | "query" | "header" | "body";
1128
+ target: "body" | "path" | "query" | "header";
886
1129
  key: string;
887
1130
  }, {
888
1131
  path: string[];
889
1132
  source: "variable" | "context" | "model" | "identity";
890
- target: "path" | "query" | "header" | "body";
1133
+ target: "body" | "path" | "query" | "header";
891
1134
  key: string;
892
1135
  }>, "many">>;
893
1136
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
894
1137
  sample: z.ZodOptional<z.ZodUnknown>;
895
1138
  }, "strict", z.ZodTypeAny, {
1139
+ headers: Record<string, string>;
1140
+ body: string;
896
1141
  path: string;
897
1142
  id: string;
898
1143
  name: string;
899
1144
  query: Record<string, string>;
900
- body: string;
901
1145
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
902
- bodyType: "json" | "form" | "xml" | "gql";
903
- readAs: "text" | "json" | "auto" | "xml";
1146
+ bodyType: "json" | "xml" | "form" | "gql";
1147
+ readAs: "json" | "xml" | "text" | "auto";
904
1148
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
905
1149
  summary: string;
906
1150
  latencyMs: number | null;
907
1151
  visibleFields: string[];
908
1152
  effects: "read" | "write" | "unclassified";
909
1153
  permission: "allow" | "ask" | "block";
910
- headers: Record<string, string>;
911
1154
  bindings: {
912
1155
  path: string[];
913
1156
  source: "variable" | "context" | "model" | "identity";
914
- target: "path" | "query" | "header" | "body";
1157
+ target: "body" | "path" | "query" | "header";
915
1158
  key: string;
916
1159
  }[];
917
1160
  sample?: unknown;
@@ -922,23 +1165,23 @@ export declare const botApiCallSchema: z.ZodObject<{
922
1165
  id: string;
923
1166
  name: string;
924
1167
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
925
- bodyType: "json" | "form" | "xml" | "gql";
926
- readAs: "text" | "json" | "auto" | "xml";
1168
+ bodyType: "json" | "xml" | "form" | "gql";
1169
+ readAs: "json" | "xml" | "text" | "auto";
927
1170
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
928
1171
  summary: string;
929
1172
  latencyMs: number | null;
930
1173
  visibleFields: string[];
931
1174
  effects: "read" | "write" | "unclassified";
1175
+ headers?: Record<string, string> | undefined;
1176
+ body?: string | undefined;
932
1177
  sample?: unknown;
933
1178
  query?: Record<string, string> | undefined;
934
- body?: string | undefined;
935
1179
  permission?: "allow" | "ask" | "block" | undefined;
936
1180
  inputSchema?: Record<string, unknown> | undefined;
937
- headers?: Record<string, string> | undefined;
938
1181
  bindings?: {
939
1182
  path: string[];
940
1183
  source: "variable" | "context" | "model" | "identity";
941
- target: "path" | "query" | "header" | "body";
1184
+ target: "body" | "path" | "query" | "header";
942
1185
  key: string;
943
1186
  }[] | undefined;
944
1187
  responseSchema?: Record<string, unknown> | undefined;
@@ -978,36 +1221,36 @@ export declare const botApiSchema: z.ZodObject<{
978
1221
  }, "strict", z.ZodTypeAny, {
979
1222
  path: string[];
980
1223
  source: "variable" | "context" | "model" | "identity";
981
- target: "path" | "query" | "header" | "body";
1224
+ target: "body" | "path" | "query" | "header";
982
1225
  key: string;
983
1226
  }, {
984
1227
  path: string[];
985
1228
  source: "variable" | "context" | "model" | "identity";
986
- target: "path" | "query" | "header" | "body";
1229
+ target: "body" | "path" | "query" | "header";
987
1230
  key: string;
988
1231
  }>, "many">>;
989
1232
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
990
1233
  sample: z.ZodOptional<z.ZodUnknown>;
991
1234
  }, "strict", z.ZodTypeAny, {
1235
+ headers: Record<string, string>;
1236
+ body: string;
992
1237
  path: string;
993
1238
  id: string;
994
1239
  name: string;
995
1240
  query: Record<string, string>;
996
- body: string;
997
1241
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
998
- bodyType: "json" | "form" | "xml" | "gql";
999
- readAs: "text" | "json" | "auto" | "xml";
1242
+ bodyType: "json" | "xml" | "form" | "gql";
1243
+ readAs: "json" | "xml" | "text" | "auto";
1000
1244
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1001
1245
  summary: string;
1002
1246
  latencyMs: number | null;
1003
1247
  visibleFields: string[];
1004
1248
  effects: "read" | "write" | "unclassified";
1005
1249
  permission: "allow" | "ask" | "block";
1006
- headers: Record<string, string>;
1007
1250
  bindings: {
1008
1251
  path: string[];
1009
1252
  source: "variable" | "context" | "model" | "identity";
1010
- target: "path" | "query" | "header" | "body";
1253
+ target: "body" | "path" | "query" | "header";
1011
1254
  key: string;
1012
1255
  }[];
1013
1256
  sample?: unknown;
@@ -1018,23 +1261,23 @@ export declare const botApiSchema: z.ZodObject<{
1018
1261
  id: string;
1019
1262
  name: string;
1020
1263
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1021
- bodyType: "json" | "form" | "xml" | "gql";
1022
- readAs: "text" | "json" | "auto" | "xml";
1264
+ bodyType: "json" | "xml" | "form" | "gql";
1265
+ readAs: "json" | "xml" | "text" | "auto";
1023
1266
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1024
1267
  summary: string;
1025
1268
  latencyMs: number | null;
1026
1269
  visibleFields: string[];
1027
1270
  effects: "read" | "write" | "unclassified";
1271
+ headers?: Record<string, string> | undefined;
1272
+ body?: string | undefined;
1028
1273
  sample?: unknown;
1029
1274
  query?: Record<string, string> | undefined;
1030
- body?: string | undefined;
1031
1275
  permission?: "allow" | "ask" | "block" | undefined;
1032
1276
  inputSchema?: Record<string, unknown> | undefined;
1033
- headers?: Record<string, string> | undefined;
1034
1277
  bindings?: {
1035
1278
  path: string[];
1036
1279
  source: "variable" | "context" | "model" | "identity";
1037
- target: "path" | "query" | "header" | "body";
1280
+ target: "body" | "path" | "query" | "header";
1038
1281
  key: string;
1039
1282
  }[] | undefined;
1040
1283
  responseSchema?: Record<string, unknown> | undefined;
@@ -1048,25 +1291,25 @@ export declare const botApiSchema: z.ZodObject<{
1048
1291
  auth: "one" | "each" | "oauth" | "none";
1049
1292
  sendCustomerIdentity: boolean;
1050
1293
  calls: {
1294
+ headers: Record<string, string>;
1295
+ body: string;
1051
1296
  path: string;
1052
1297
  id: string;
1053
1298
  name: string;
1054
1299
  query: Record<string, string>;
1055
- body: string;
1056
1300
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1057
- bodyType: "json" | "form" | "xml" | "gql";
1058
- readAs: "text" | "json" | "auto" | "xml";
1301
+ bodyType: "json" | "xml" | "form" | "gql";
1302
+ readAs: "json" | "xml" | "text" | "auto";
1059
1303
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1060
1304
  summary: string;
1061
1305
  latencyMs: number | null;
1062
1306
  visibleFields: string[];
1063
1307
  effects: "read" | "write" | "unclassified";
1064
1308
  permission: "allow" | "ask" | "block";
1065
- headers: Record<string, string>;
1066
1309
  bindings: {
1067
1310
  path: string[];
1068
1311
  source: "variable" | "context" | "model" | "identity";
1069
- target: "path" | "query" | "header" | "body";
1312
+ target: "body" | "path" | "query" | "header";
1070
1313
  key: string;
1071
1314
  }[];
1072
1315
  sample?: unknown;
@@ -1088,23 +1331,23 @@ export declare const botApiSchema: z.ZodObject<{
1088
1331
  id: string;
1089
1332
  name: string;
1090
1333
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1091
- bodyType: "json" | "form" | "xml" | "gql";
1092
- readAs: "text" | "json" | "auto" | "xml";
1334
+ bodyType: "json" | "xml" | "form" | "gql";
1335
+ readAs: "json" | "xml" | "text" | "auto";
1093
1336
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1094
1337
  summary: string;
1095
1338
  latencyMs: number | null;
1096
1339
  visibleFields: string[];
1097
1340
  effects: "read" | "write" | "unclassified";
1341
+ headers?: Record<string, string> | undefined;
1342
+ body?: string | undefined;
1098
1343
  sample?: unknown;
1099
1344
  query?: Record<string, string> | undefined;
1100
- body?: string | undefined;
1101
1345
  permission?: "allow" | "ask" | "block" | undefined;
1102
1346
  inputSchema?: Record<string, unknown> | undefined;
1103
- headers?: Record<string, string> | undefined;
1104
1347
  bindings?: {
1105
1348
  path: string[];
1106
1349
  source: "variable" | "context" | "model" | "identity";
1107
- target: "path" | "query" | "header" | "body";
1350
+ target: "body" | "path" | "query" | "header";
1108
1351
  key: string;
1109
1352
  }[] | undefined;
1110
1353
  responseSchema?: Record<string, unknown> | undefined;
@@ -1114,6 +1357,19 @@ export declare const botApiSchema: z.ZodObject<{
1114
1357
  }>;
1115
1358
  export declare const botConfigurationSchema: z.ZodObject<{
1116
1359
  name: z.ZodString;
1360
+ files: z.ZodDefault<z.ZodObject<{
1361
+ enabled: z.ZodBoolean;
1362
+ kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
1363
+ bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
1364
+ }, "strict", z.ZodTypeAny, {
1365
+ enabled: boolean;
1366
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
1367
+ bigSpreadsheets: "workbench" | "preview";
1368
+ }, {
1369
+ enabled: boolean;
1370
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
1371
+ bigSpreadsheets: "workbench" | "preview";
1372
+ }>>;
1117
1373
  timezone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1118
1374
  triggers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1119
1375
  kind: z.ZodLiteral<"app">;
@@ -1134,6 +1390,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1134
1390
  id: string;
1135
1391
  enabled: boolean;
1136
1392
  name: string;
1393
+ variables: Record<string, unknown>;
1137
1394
  subscriptionId: string;
1138
1395
  label: string;
1139
1396
  providerKey: string;
@@ -1142,7 +1399,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
1142
1399
  customerField: string;
1143
1400
  instruction: string;
1144
1401
  answerTo: "webhook" | "none";
1145
- variables: Record<string, unknown>;
1146
1402
  }, {
1147
1403
  kind: "app";
1148
1404
  id: string;
@@ -1174,11 +1430,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
1174
1430
  tenantId: string;
1175
1431
  enabled: boolean;
1176
1432
  name: string;
1433
+ variables: Record<string, unknown>;
1177
1434
  runsAs: "none" | "field";
1178
1435
  customerField: string;
1179
1436
  instruction: string;
1180
1437
  answerTo: "webhook" | "none";
1181
- variables: Record<string, unknown>;
1182
1438
  }, {
1183
1439
  kind: "webhook";
1184
1440
  id: string;
@@ -1215,10 +1471,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
1215
1471
  tenantId: string;
1216
1472
  enabled: boolean;
1217
1473
  name: string;
1474
+ variables: Record<string, unknown>;
1218
1475
  runsAs: "one" | "none";
1219
1476
  instruction: string;
1220
1477
  answerTo: "webhook" | "none";
1221
- variables: Record<string, unknown>;
1222
1478
  repeat: "once" | "repeat";
1223
1479
  days: number[];
1224
1480
  time: string;
@@ -1475,36 +1731,36 @@ export declare const botConfigurationSchema: z.ZodObject<{
1475
1731
  }, "strict", z.ZodTypeAny, {
1476
1732
  path: string[];
1477
1733
  source: "variable" | "context" | "model" | "identity";
1478
- target: "path" | "query" | "header" | "body";
1734
+ target: "body" | "path" | "query" | "header";
1479
1735
  key: string;
1480
1736
  }, {
1481
1737
  path: string[];
1482
1738
  source: "variable" | "context" | "model" | "identity";
1483
- target: "path" | "query" | "header" | "body";
1739
+ target: "body" | "path" | "query" | "header";
1484
1740
  key: string;
1485
1741
  }>, "many">>;
1486
1742
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1487
1743
  sample: z.ZodOptional<z.ZodUnknown>;
1488
1744
  }, "strict", z.ZodTypeAny, {
1745
+ headers: Record<string, string>;
1746
+ body: string;
1489
1747
  path: string;
1490
1748
  id: string;
1491
1749
  name: string;
1492
1750
  query: Record<string, string>;
1493
- body: string;
1494
1751
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1495
- bodyType: "json" | "form" | "xml" | "gql";
1496
- readAs: "text" | "json" | "auto" | "xml";
1752
+ bodyType: "json" | "xml" | "form" | "gql";
1753
+ readAs: "json" | "xml" | "text" | "auto";
1497
1754
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1498
1755
  summary: string;
1499
1756
  latencyMs: number | null;
1500
1757
  visibleFields: string[];
1501
1758
  effects: "read" | "write" | "unclassified";
1502
1759
  permission: "allow" | "ask" | "block";
1503
- headers: Record<string, string>;
1504
1760
  bindings: {
1505
1761
  path: string[];
1506
1762
  source: "variable" | "context" | "model" | "identity";
1507
- target: "path" | "query" | "header" | "body";
1763
+ target: "body" | "path" | "query" | "header";
1508
1764
  key: string;
1509
1765
  }[];
1510
1766
  sample?: unknown;
@@ -1515,23 +1771,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
1515
1771
  id: string;
1516
1772
  name: string;
1517
1773
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1518
- bodyType: "json" | "form" | "xml" | "gql";
1519
- readAs: "text" | "json" | "auto" | "xml";
1774
+ bodyType: "json" | "xml" | "form" | "gql";
1775
+ readAs: "json" | "xml" | "text" | "auto";
1520
1776
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1521
1777
  summary: string;
1522
1778
  latencyMs: number | null;
1523
1779
  visibleFields: string[];
1524
1780
  effects: "read" | "write" | "unclassified";
1781
+ headers?: Record<string, string> | undefined;
1782
+ body?: string | undefined;
1525
1783
  sample?: unknown;
1526
1784
  query?: Record<string, string> | undefined;
1527
- body?: string | undefined;
1528
1785
  permission?: "allow" | "ask" | "block" | undefined;
1529
1786
  inputSchema?: Record<string, unknown> | undefined;
1530
- headers?: Record<string, string> | undefined;
1531
1787
  bindings?: {
1532
1788
  path: string[];
1533
1789
  source: "variable" | "context" | "model" | "identity";
1534
- target: "path" | "query" | "header" | "body";
1790
+ target: "body" | "path" | "query" | "header";
1535
1791
  key: string;
1536
1792
  }[] | undefined;
1537
1793
  responseSchema?: Record<string, unknown> | undefined;
@@ -1545,25 +1801,25 @@ export declare const botConfigurationSchema: z.ZodObject<{
1545
1801
  auth: "one" | "each" | "oauth" | "none";
1546
1802
  sendCustomerIdentity: boolean;
1547
1803
  calls: {
1804
+ headers: Record<string, string>;
1805
+ body: string;
1548
1806
  path: string;
1549
1807
  id: string;
1550
1808
  name: string;
1551
1809
  query: Record<string, string>;
1552
- body: string;
1553
1810
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1554
- bodyType: "json" | "form" | "xml" | "gql";
1555
- readAs: "text" | "json" | "auto" | "xml";
1811
+ bodyType: "json" | "xml" | "form" | "gql";
1812
+ readAs: "json" | "xml" | "text" | "auto";
1556
1813
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1557
1814
  summary: string;
1558
1815
  latencyMs: number | null;
1559
1816
  visibleFields: string[];
1560
1817
  effects: "read" | "write" | "unclassified";
1561
1818
  permission: "allow" | "ask" | "block";
1562
- headers: Record<string, string>;
1563
1819
  bindings: {
1564
1820
  path: string[];
1565
1821
  source: "variable" | "context" | "model" | "identity";
1566
- target: "path" | "query" | "header" | "body";
1822
+ target: "body" | "path" | "query" | "header";
1567
1823
  key: string;
1568
1824
  }[];
1569
1825
  sample?: unknown;
@@ -1585,23 +1841,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
1585
1841
  id: string;
1586
1842
  name: string;
1587
1843
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1588
- bodyType: "json" | "form" | "xml" | "gql";
1589
- readAs: "text" | "json" | "auto" | "xml";
1844
+ bodyType: "json" | "xml" | "form" | "gql";
1845
+ readAs: "json" | "xml" | "text" | "auto";
1590
1846
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1591
1847
  summary: string;
1592
1848
  latencyMs: number | null;
1593
1849
  visibleFields: string[];
1594
1850
  effects: "read" | "write" | "unclassified";
1851
+ headers?: Record<string, string> | undefined;
1852
+ body?: string | undefined;
1595
1853
  sample?: unknown;
1596
1854
  query?: Record<string, string> | undefined;
1597
- body?: string | undefined;
1598
1855
  permission?: "allow" | "ask" | "block" | undefined;
1599
1856
  inputSchema?: Record<string, unknown> | undefined;
1600
- headers?: Record<string, string> | undefined;
1601
1857
  bindings?: {
1602
1858
  path: string[];
1603
1859
  source: "variable" | "context" | "model" | "identity";
1604
- target: "path" | "query" | "header" | "body";
1860
+ target: "body" | "path" | "query" | "header";
1605
1861
  key: string;
1606
1862
  }[] | undefined;
1607
1863
  responseSchema?: Record<string, unknown> | undefined;
@@ -1878,25 +2134,25 @@ export declare const botConfigurationSchema: z.ZodObject<{
1878
2134
  auth: "one" | "each" | "oauth" | "none";
1879
2135
  sendCustomerIdentity: boolean;
1880
2136
  calls: {
2137
+ headers: Record<string, string>;
2138
+ body: string;
1881
2139
  path: string;
1882
2140
  id: string;
1883
2141
  name: string;
1884
2142
  query: Record<string, string>;
1885
- body: string;
1886
2143
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1887
- bodyType: "json" | "form" | "xml" | "gql";
1888
- readAs: "text" | "json" | "auto" | "xml";
2144
+ bodyType: "json" | "xml" | "form" | "gql";
2145
+ readAs: "json" | "xml" | "text" | "auto";
1889
2146
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1890
2147
  summary: string;
1891
2148
  latencyMs: number | null;
1892
2149
  visibleFields: string[];
1893
2150
  effects: "read" | "write" | "unclassified";
1894
2151
  permission: "allow" | "ask" | "block";
1895
- headers: Record<string, string>;
1896
2152
  bindings: {
1897
2153
  path: string[];
1898
2154
  source: "variable" | "context" | "model" | "identity";
1899
- target: "path" | "query" | "header" | "body";
2155
+ target: "body" | "path" | "query" | "header";
1900
2156
  key: string;
1901
2157
  }[];
1902
2158
  sample?: unknown;
@@ -1983,23 +2239,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
1983
2239
  id: string;
1984
2240
  name: string;
1985
2241
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1986
- bodyType: "json" | "form" | "xml" | "gql";
1987
- readAs: "text" | "json" | "auto" | "xml";
2242
+ bodyType: "json" | "xml" | "form" | "gql";
2243
+ readAs: "json" | "xml" | "text" | "auto";
1988
2244
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1989
2245
  summary: string;
1990
2246
  latencyMs: number | null;
1991
2247
  visibleFields: string[];
1992
2248
  effects: "read" | "write" | "unclassified";
2249
+ headers?: Record<string, string> | undefined;
2250
+ body?: string | undefined;
1993
2251
  sample?: unknown;
1994
2252
  query?: Record<string, string> | undefined;
1995
- body?: string | undefined;
1996
2253
  permission?: "allow" | "ask" | "block" | undefined;
1997
2254
  inputSchema?: Record<string, unknown> | undefined;
1998
- headers?: Record<string, string> | undefined;
1999
2255
  bindings?: {
2000
2256
  path: string[];
2001
2257
  source: "variable" | "context" | "model" | "identity";
2002
- target: "path" | "query" | "header" | "body";
2258
+ target: "body" | "path" | "query" | "header";
2003
2259
  key: string;
2004
2260
  }[] | undefined;
2005
2261
  responseSchema?: Record<string, unknown> | undefined;
@@ -2121,7 +2377,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2121
2377
  values?: string[] | undefined;
2122
2378
  items?: Record<string, unknown> | undefined;
2123
2379
  }[];
2124
- format: "text" | "json";
2380
+ format: "json" | "text";
2125
2381
  delivery: "stream" | "once" | "webhook";
2126
2382
  webhookUrl: string;
2127
2383
  schema?: Record<string, unknown> | undefined;
@@ -2136,7 +2392,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2136
2392
  values?: string[] | undefined;
2137
2393
  items?: Record<string, unknown> | undefined;
2138
2394
  }[];
2139
- format: "text" | "json";
2395
+ format: "json" | "text";
2140
2396
  delivery: "stream" | "once" | "webhook";
2141
2397
  webhookUrl: string;
2142
2398
  schema?: Record<string, unknown> | undefined;
@@ -2242,6 +2498,21 @@ export declare const botConfigurationSchema: z.ZodObject<{
2242
2498
  languages: string[];
2243
2499
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2244
2500
  };
2501
+ variables: {
2502
+ type: "Text" | "Number" | "Yes or no" | "One of…";
2503
+ required: boolean;
2504
+ name: string;
2505
+ description: string;
2506
+ defaultValue: string;
2507
+ usedIn: ("instructions" | "api" | "run_plan")[];
2508
+ chipNote: string;
2509
+ values?: string[] | undefined;
2510
+ }[];
2511
+ files: {
2512
+ enabled: boolean;
2513
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
2514
+ bigSpreadsheets: "workbench" | "preview";
2515
+ };
2245
2516
  instructions: {
2246
2517
  text: string;
2247
2518
  editedAt: string | null;
@@ -2284,25 +2555,25 @@ export declare const botConfigurationSchema: z.ZodObject<{
2284
2555
  auth: "one" | "each" | "oauth" | "none";
2285
2556
  sendCustomerIdentity: boolean;
2286
2557
  calls: {
2558
+ headers: Record<string, string>;
2559
+ body: string;
2287
2560
  path: string;
2288
2561
  id: string;
2289
2562
  name: string;
2290
2563
  query: Record<string, string>;
2291
- body: string;
2292
2564
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2293
- bodyType: "json" | "form" | "xml" | "gql";
2294
- readAs: "text" | "json" | "auto" | "xml";
2565
+ bodyType: "json" | "xml" | "form" | "gql";
2566
+ readAs: "json" | "xml" | "text" | "auto";
2295
2567
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2296
2568
  summary: string;
2297
2569
  latencyMs: number | null;
2298
2570
  visibleFields: string[];
2299
2571
  effects: "read" | "write" | "unclassified";
2300
2572
  permission: "allow" | "ask" | "block";
2301
- headers: Record<string, string>;
2302
2573
  bindings: {
2303
2574
  path: string[];
2304
2575
  source: "variable" | "context" | "model" | "identity";
2305
- target: "path" | "query" | "header" | "body";
2576
+ target: "body" | "path" | "query" | "header";
2306
2577
  key: string;
2307
2578
  }[];
2308
2579
  sample?: unknown;
@@ -2367,16 +2638,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
2367
2638
  id: string;
2368
2639
  effort: "low" | "medium" | "high" | "xhigh";
2369
2640
  };
2370
- variables: {
2371
- type: "Text" | "Number" | "Yes or no" | "One of…";
2372
- required: boolean;
2373
- name: string;
2374
- description: string;
2375
- defaultValue: string;
2376
- usedIn: ("instructions" | "api" | "run_plan")[];
2377
- chipNote: string;
2378
- values?: string[] | undefined;
2379
- }[];
2380
2641
  skills: {
2381
2642
  id: string;
2382
2643
  name: string;
@@ -2415,7 +2676,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2415
2676
  values?: string[] | undefined;
2416
2677
  items?: Record<string, unknown> | undefined;
2417
2678
  }[];
2418
- format: "text" | "json";
2679
+ format: "json" | "text";
2419
2680
  delivery: "stream" | "once" | "webhook";
2420
2681
  webhookUrl: string;
2421
2682
  schema?: Record<string, unknown> | undefined;
@@ -2445,6 +2706,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2445
2706
  id: string;
2446
2707
  enabled: boolean;
2447
2708
  name: string;
2709
+ variables: Record<string, unknown>;
2448
2710
  subscriptionId: string;
2449
2711
  label: string;
2450
2712
  providerKey: string;
@@ -2453,18 +2715,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
2453
2715
  customerField: string;
2454
2716
  instruction: string;
2455
2717
  answerTo: "webhook" | "none";
2456
- variables: Record<string, unknown>;
2457
2718
  } | {
2458
2719
  kind: "webhook";
2459
2720
  id: string;
2460
2721
  tenantId: string;
2461
2722
  enabled: boolean;
2462
2723
  name: string;
2724
+ variables: Record<string, unknown>;
2463
2725
  runsAs: "none" | "field";
2464
2726
  customerField: string;
2465
2727
  instruction: string;
2466
2728
  answerTo: "webhook" | "none";
2467
- variables: Record<string, unknown>;
2468
2729
  } | {
2469
2730
  every: "week" | "day" | "hour";
2470
2731
  kind: "schedule";
@@ -2473,10 +2734,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
2473
2734
  tenantId: string;
2474
2735
  enabled: boolean;
2475
2736
  name: string;
2737
+ variables: Record<string, unknown>;
2476
2738
  runsAs: "one" | "none";
2477
2739
  instruction: string;
2478
2740
  answerTo: "webhook" | "none";
2479
- variables: Record<string, unknown>;
2480
2741
  repeat: "once" | "repeat";
2481
2742
  days: number[];
2482
2743
  time: string;
@@ -2495,6 +2756,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
2495
2756
  languages: string[];
2496
2757
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2497
2758
  };
2759
+ variables: {
2760
+ type: "Text" | "Number" | "Yes or no" | "One of…";
2761
+ required: boolean;
2762
+ name: string;
2763
+ description: string;
2764
+ defaultValue: string;
2765
+ usedIn: ("instructions" | "api" | "run_plan")[];
2766
+ chipNote: string;
2767
+ values?: string[] | undefined;
2768
+ }[];
2498
2769
  instructions: {
2499
2770
  text: string;
2500
2771
  editedAt: string | null;
@@ -2538,23 +2809,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
2538
2809
  id: string;
2539
2810
  name: string;
2540
2811
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2541
- bodyType: "json" | "form" | "xml" | "gql";
2542
- readAs: "text" | "json" | "auto" | "xml";
2812
+ bodyType: "json" | "xml" | "form" | "gql";
2813
+ readAs: "json" | "xml" | "text" | "auto";
2543
2814
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2544
2815
  summary: string;
2545
2816
  latencyMs: number | null;
2546
2817
  visibleFields: string[];
2547
2818
  effects: "read" | "write" | "unclassified";
2819
+ headers?: Record<string, string> | undefined;
2820
+ body?: string | undefined;
2548
2821
  sample?: unknown;
2549
2822
  query?: Record<string, string> | undefined;
2550
- body?: string | undefined;
2551
2823
  permission?: "allow" | "ask" | "block" | undefined;
2552
2824
  inputSchema?: Record<string, unknown> | undefined;
2553
- headers?: Record<string, string> | undefined;
2554
2825
  bindings?: {
2555
2826
  path: string[];
2556
2827
  source: "variable" | "context" | "model" | "identity";
2557
- target: "path" | "query" | "header" | "body";
2828
+ target: "body" | "path" | "query" | "header";
2558
2829
  key: string;
2559
2830
  }[] | undefined;
2560
2831
  responseSchema?: Record<string, unknown> | undefined;
@@ -2620,16 +2891,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
2620
2891
  id: string;
2621
2892
  effort: "low" | "medium" | "high" | "xhigh";
2622
2893
  };
2623
- variables: {
2624
- type: "Text" | "Number" | "Yes or no" | "One of…";
2625
- required: boolean;
2626
- name: string;
2627
- description: string;
2628
- defaultValue: string;
2629
- usedIn: ("instructions" | "api" | "run_plan")[];
2630
- chipNote: string;
2631
- values?: string[] | undefined;
2632
- }[];
2633
2894
  skills: {
2634
2895
  id: string;
2635
2896
  name: string;
@@ -2668,7 +2929,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2668
2929
  values?: string[] | undefined;
2669
2930
  items?: Record<string, unknown> | undefined;
2670
2931
  }[];
2671
- format: "text" | "json";
2932
+ format: "json" | "text";
2672
2933
  delivery: "stream" | "once" | "webhook";
2673
2934
  webhookUrl: string;
2674
2935
  schema?: Record<string, unknown> | undefined;
@@ -2693,6 +2954,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
2693
2954
  input: Record<string, unknown>;
2694
2955
  }[] | undefined;
2695
2956
  };
2957
+ files?: {
2958
+ enabled: boolean;
2959
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
2960
+ bigSpreadsheets: "workbench" | "preview";
2961
+ } | undefined;
2696
2962
  timezone?: string | null | undefined;
2697
2963
  triggers?: ({
2698
2964
  kind: "app";
@@ -2740,6 +3006,19 @@ export declare const botConfigurationSchema: z.ZodObject<{
2740
3006
  }>;
2741
3007
  export declare const botPatchSchema: z.ZodObject<{
2742
3008
  name: z.ZodOptional<z.ZodString>;
3009
+ files: z.ZodOptional<z.ZodDefault<z.ZodObject<{
3010
+ enabled: z.ZodBoolean;
3011
+ kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
3012
+ bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
3013
+ }, "strict", z.ZodTypeAny, {
3014
+ enabled: boolean;
3015
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
3016
+ bigSpreadsheets: "workbench" | "preview";
3017
+ }, {
3018
+ enabled: boolean;
3019
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
3020
+ bigSpreadsheets: "workbench" | "preview";
3021
+ }>>>;
2743
3022
  timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
2744
3023
  triggers: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2745
3024
  kind: z.ZodLiteral<"app">;
@@ -2760,6 +3039,7 @@ export declare const botPatchSchema: z.ZodObject<{
2760
3039
  id: string;
2761
3040
  enabled: boolean;
2762
3041
  name: string;
3042
+ variables: Record<string, unknown>;
2763
3043
  subscriptionId: string;
2764
3044
  label: string;
2765
3045
  providerKey: string;
@@ -2768,7 +3048,6 @@ export declare const botPatchSchema: z.ZodObject<{
2768
3048
  customerField: string;
2769
3049
  instruction: string;
2770
3050
  answerTo: "webhook" | "none";
2771
- variables: Record<string, unknown>;
2772
3051
  }, {
2773
3052
  kind: "app";
2774
3053
  id: string;
@@ -2800,11 +3079,11 @@ export declare const botPatchSchema: z.ZodObject<{
2800
3079
  tenantId: string;
2801
3080
  enabled: boolean;
2802
3081
  name: string;
3082
+ variables: Record<string, unknown>;
2803
3083
  runsAs: "none" | "field";
2804
3084
  customerField: string;
2805
3085
  instruction: string;
2806
3086
  answerTo: "webhook" | "none";
2807
- variables: Record<string, unknown>;
2808
3087
  }, {
2809
3088
  kind: "webhook";
2810
3089
  id: string;
@@ -2841,10 +3120,10 @@ export declare const botPatchSchema: z.ZodObject<{
2841
3120
  tenantId: string;
2842
3121
  enabled: boolean;
2843
3122
  name: string;
3123
+ variables: Record<string, unknown>;
2844
3124
  runsAs: "one" | "none";
2845
3125
  instruction: string;
2846
3126
  answerTo: "webhook" | "none";
2847
- variables: Record<string, unknown>;
2848
3127
  repeat: "once" | "repeat";
2849
3128
  days: number[];
2850
3129
  time: string;
@@ -3101,36 +3380,36 @@ export declare const botPatchSchema: z.ZodObject<{
3101
3380
  }, "strict", z.ZodTypeAny, {
3102
3381
  path: string[];
3103
3382
  source: "variable" | "context" | "model" | "identity";
3104
- target: "path" | "query" | "header" | "body";
3383
+ target: "body" | "path" | "query" | "header";
3105
3384
  key: string;
3106
3385
  }, {
3107
3386
  path: string[];
3108
3387
  source: "variable" | "context" | "model" | "identity";
3109
- target: "path" | "query" | "header" | "body";
3388
+ target: "body" | "path" | "query" | "header";
3110
3389
  key: string;
3111
3390
  }>, "many">>;
3112
3391
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3113
3392
  sample: z.ZodOptional<z.ZodUnknown>;
3114
3393
  }, "strict", z.ZodTypeAny, {
3394
+ headers: Record<string, string>;
3395
+ body: string;
3115
3396
  path: string;
3116
3397
  id: string;
3117
3398
  name: string;
3118
3399
  query: Record<string, string>;
3119
- body: string;
3120
3400
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3121
- bodyType: "json" | "form" | "xml" | "gql";
3122
- readAs: "text" | "json" | "auto" | "xml";
3401
+ bodyType: "json" | "xml" | "form" | "gql";
3402
+ readAs: "json" | "xml" | "text" | "auto";
3123
3403
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3124
3404
  summary: string;
3125
3405
  latencyMs: number | null;
3126
3406
  visibleFields: string[];
3127
3407
  effects: "read" | "write" | "unclassified";
3128
3408
  permission: "allow" | "ask" | "block";
3129
- headers: Record<string, string>;
3130
3409
  bindings: {
3131
3410
  path: string[];
3132
3411
  source: "variable" | "context" | "model" | "identity";
3133
- target: "path" | "query" | "header" | "body";
3412
+ target: "body" | "path" | "query" | "header";
3134
3413
  key: string;
3135
3414
  }[];
3136
3415
  sample?: unknown;
@@ -3141,23 +3420,23 @@ export declare const botPatchSchema: z.ZodObject<{
3141
3420
  id: string;
3142
3421
  name: string;
3143
3422
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3144
- bodyType: "json" | "form" | "xml" | "gql";
3145
- readAs: "text" | "json" | "auto" | "xml";
3423
+ bodyType: "json" | "xml" | "form" | "gql";
3424
+ readAs: "json" | "xml" | "text" | "auto";
3146
3425
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3147
3426
  summary: string;
3148
3427
  latencyMs: number | null;
3149
3428
  visibleFields: string[];
3150
3429
  effects: "read" | "write" | "unclassified";
3430
+ headers?: Record<string, string> | undefined;
3431
+ body?: string | undefined;
3151
3432
  sample?: unknown;
3152
3433
  query?: Record<string, string> | undefined;
3153
- body?: string | undefined;
3154
3434
  permission?: "allow" | "ask" | "block" | undefined;
3155
3435
  inputSchema?: Record<string, unknown> | undefined;
3156
- headers?: Record<string, string> | undefined;
3157
3436
  bindings?: {
3158
3437
  path: string[];
3159
3438
  source: "variable" | "context" | "model" | "identity";
3160
- target: "path" | "query" | "header" | "body";
3439
+ target: "body" | "path" | "query" | "header";
3161
3440
  key: string;
3162
3441
  }[] | undefined;
3163
3442
  responseSchema?: Record<string, unknown> | undefined;
@@ -3171,25 +3450,25 @@ export declare const botPatchSchema: z.ZodObject<{
3171
3450
  auth: "one" | "each" | "oauth" | "none";
3172
3451
  sendCustomerIdentity: boolean;
3173
3452
  calls: {
3453
+ headers: Record<string, string>;
3454
+ body: string;
3174
3455
  path: string;
3175
3456
  id: string;
3176
3457
  name: string;
3177
3458
  query: Record<string, string>;
3178
- body: string;
3179
3459
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3180
- bodyType: "json" | "form" | "xml" | "gql";
3181
- readAs: "text" | "json" | "auto" | "xml";
3460
+ bodyType: "json" | "xml" | "form" | "gql";
3461
+ readAs: "json" | "xml" | "text" | "auto";
3182
3462
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3183
3463
  summary: string;
3184
3464
  latencyMs: number | null;
3185
3465
  visibleFields: string[];
3186
3466
  effects: "read" | "write" | "unclassified";
3187
3467
  permission: "allow" | "ask" | "block";
3188
- headers: Record<string, string>;
3189
3468
  bindings: {
3190
3469
  path: string[];
3191
3470
  source: "variable" | "context" | "model" | "identity";
3192
- target: "path" | "query" | "header" | "body";
3471
+ target: "body" | "path" | "query" | "header";
3193
3472
  key: string;
3194
3473
  }[];
3195
3474
  sample?: unknown;
@@ -3211,23 +3490,23 @@ export declare const botPatchSchema: z.ZodObject<{
3211
3490
  id: string;
3212
3491
  name: string;
3213
3492
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3214
- bodyType: "json" | "form" | "xml" | "gql";
3215
- readAs: "text" | "json" | "auto" | "xml";
3493
+ bodyType: "json" | "xml" | "form" | "gql";
3494
+ readAs: "json" | "xml" | "text" | "auto";
3216
3495
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3217
3496
  summary: string;
3218
3497
  latencyMs: number | null;
3219
3498
  visibleFields: string[];
3220
3499
  effects: "read" | "write" | "unclassified";
3500
+ headers?: Record<string, string> | undefined;
3501
+ body?: string | undefined;
3221
3502
  sample?: unknown;
3222
3503
  query?: Record<string, string> | undefined;
3223
- body?: string | undefined;
3224
3504
  permission?: "allow" | "ask" | "block" | undefined;
3225
3505
  inputSchema?: Record<string, unknown> | undefined;
3226
- headers?: Record<string, string> | undefined;
3227
3506
  bindings?: {
3228
3507
  path: string[];
3229
3508
  source: "variable" | "context" | "model" | "identity";
3230
- target: "path" | "query" | "header" | "body";
3509
+ target: "body" | "path" | "query" | "header";
3231
3510
  key: string;
3232
3511
  }[] | undefined;
3233
3512
  responseSchema?: Record<string, unknown> | undefined;
@@ -3504,25 +3783,25 @@ export declare const botPatchSchema: z.ZodObject<{
3504
3783
  auth: "one" | "each" | "oauth" | "none";
3505
3784
  sendCustomerIdentity: boolean;
3506
3785
  calls: {
3786
+ headers: Record<string, string>;
3787
+ body: string;
3507
3788
  path: string;
3508
3789
  id: string;
3509
3790
  name: string;
3510
3791
  query: Record<string, string>;
3511
- body: string;
3512
3792
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3513
- bodyType: "json" | "form" | "xml" | "gql";
3514
- readAs: "text" | "json" | "auto" | "xml";
3793
+ bodyType: "json" | "xml" | "form" | "gql";
3794
+ readAs: "json" | "xml" | "text" | "auto";
3515
3795
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3516
3796
  summary: string;
3517
3797
  latencyMs: number | null;
3518
3798
  visibleFields: string[];
3519
3799
  effects: "read" | "write" | "unclassified";
3520
3800
  permission: "allow" | "ask" | "block";
3521
- headers: Record<string, string>;
3522
3801
  bindings: {
3523
3802
  path: string[];
3524
3803
  source: "variable" | "context" | "model" | "identity";
3525
- target: "path" | "query" | "header" | "body";
3804
+ target: "body" | "path" | "query" | "header";
3526
3805
  key: string;
3527
3806
  }[];
3528
3807
  sample?: unknown;
@@ -3609,23 +3888,23 @@ export declare const botPatchSchema: z.ZodObject<{
3609
3888
  id: string;
3610
3889
  name: string;
3611
3890
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3612
- bodyType: "json" | "form" | "xml" | "gql";
3613
- readAs: "text" | "json" | "auto" | "xml";
3891
+ bodyType: "json" | "xml" | "form" | "gql";
3892
+ readAs: "json" | "xml" | "text" | "auto";
3614
3893
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3615
3894
  summary: string;
3616
3895
  latencyMs: number | null;
3617
3896
  visibleFields: string[];
3618
3897
  effects: "read" | "write" | "unclassified";
3898
+ headers?: Record<string, string> | undefined;
3899
+ body?: string | undefined;
3619
3900
  sample?: unknown;
3620
3901
  query?: Record<string, string> | undefined;
3621
- body?: string | undefined;
3622
3902
  permission?: "allow" | "ask" | "block" | undefined;
3623
3903
  inputSchema?: Record<string, unknown> | undefined;
3624
- headers?: Record<string, string> | undefined;
3625
3904
  bindings?: {
3626
3905
  path: string[];
3627
3906
  source: "variable" | "context" | "model" | "identity";
3628
- target: "path" | "query" | "header" | "body";
3907
+ target: "body" | "path" | "query" | "header";
3629
3908
  key: string;
3630
3909
  }[] | undefined;
3631
3910
  responseSchema?: Record<string, unknown> | undefined;
@@ -3747,7 +4026,7 @@ export declare const botPatchSchema: z.ZodObject<{
3747
4026
  values?: string[] | undefined;
3748
4027
  items?: Record<string, unknown> | undefined;
3749
4028
  }[];
3750
- format: "text" | "json";
4029
+ format: "json" | "text";
3751
4030
  delivery: "stream" | "once" | "webhook";
3752
4031
  webhookUrl: string;
3753
4032
  schema?: Record<string, unknown> | undefined;
@@ -3762,7 +4041,7 @@ export declare const botPatchSchema: z.ZodObject<{
3762
4041
  values?: string[] | undefined;
3763
4042
  items?: Record<string, unknown> | undefined;
3764
4043
  }[];
3765
- format: "text" | "json";
4044
+ format: "json" | "text";
3766
4045
  delivery: "stream" | "once" | "webhook";
3767
4046
  webhookUrl: string;
3768
4047
  schema?: Record<string, unknown> | undefined;
@@ -3868,6 +4147,21 @@ export declare const botPatchSchema: z.ZodObject<{
3868
4147
  languages: string[];
3869
4148
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
3870
4149
  } | undefined;
4150
+ variables?: {
4151
+ type: "Text" | "Number" | "Yes or no" | "One of…";
4152
+ required: boolean;
4153
+ name: string;
4154
+ description: string;
4155
+ defaultValue: string;
4156
+ usedIn: ("instructions" | "api" | "run_plan")[];
4157
+ chipNote: string;
4158
+ values?: string[] | undefined;
4159
+ }[] | undefined;
4160
+ files?: {
4161
+ enabled: boolean;
4162
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
4163
+ bigSpreadsheets: "workbench" | "preview";
4164
+ } | undefined;
3871
4165
  instructions?: {
3872
4166
  text: string;
3873
4167
  editedAt: string | null;
@@ -3910,25 +4204,25 @@ export declare const botPatchSchema: z.ZodObject<{
3910
4204
  auth: "one" | "each" | "oauth" | "none";
3911
4205
  sendCustomerIdentity: boolean;
3912
4206
  calls: {
4207
+ headers: Record<string, string>;
4208
+ body: string;
3913
4209
  path: string;
3914
4210
  id: string;
3915
4211
  name: string;
3916
4212
  query: Record<string, string>;
3917
- body: string;
3918
4213
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3919
- bodyType: "json" | "form" | "xml" | "gql";
3920
- readAs: "text" | "json" | "auto" | "xml";
4214
+ bodyType: "json" | "xml" | "form" | "gql";
4215
+ readAs: "json" | "xml" | "text" | "auto";
3921
4216
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3922
4217
  summary: string;
3923
4218
  latencyMs: number | null;
3924
4219
  visibleFields: string[];
3925
4220
  effects: "read" | "write" | "unclassified";
3926
4221
  permission: "allow" | "ask" | "block";
3927
- headers: Record<string, string>;
3928
4222
  bindings: {
3929
4223
  path: string[];
3930
4224
  source: "variable" | "context" | "model" | "identity";
3931
- target: "path" | "query" | "header" | "body";
4225
+ target: "body" | "path" | "query" | "header";
3932
4226
  key: string;
3933
4227
  }[];
3934
4228
  sample?: unknown;
@@ -3993,16 +4287,6 @@ export declare const botPatchSchema: z.ZodObject<{
3993
4287
  id: string;
3994
4288
  effort: "low" | "medium" | "high" | "xhigh";
3995
4289
  } | undefined;
3996
- variables?: {
3997
- type: "Text" | "Number" | "Yes or no" | "One of…";
3998
- required: boolean;
3999
- name: string;
4000
- description: string;
4001
- defaultValue: string;
4002
- usedIn: ("instructions" | "api" | "run_plan")[];
4003
- chipNote: string;
4004
- values?: string[] | undefined;
4005
- }[] | undefined;
4006
4290
  timezone?: string | null | undefined;
4007
4291
  skills?: {
4008
4292
  id: string;
@@ -4042,7 +4326,7 @@ export declare const botPatchSchema: z.ZodObject<{
4042
4326
  values?: string[] | undefined;
4043
4327
  items?: Record<string, unknown> | undefined;
4044
4328
  }[];
4045
- format: "text" | "json";
4329
+ format: "json" | "text";
4046
4330
  delivery: "stream" | "once" | "webhook";
4047
4331
  webhookUrl: string;
4048
4332
  schema?: Record<string, unknown> | undefined;
@@ -4072,6 +4356,7 @@ export declare const botPatchSchema: z.ZodObject<{
4072
4356
  id: string;
4073
4357
  enabled: boolean;
4074
4358
  name: string;
4359
+ variables: Record<string, unknown>;
4075
4360
  subscriptionId: string;
4076
4361
  label: string;
4077
4362
  providerKey: string;
@@ -4080,18 +4365,17 @@ export declare const botPatchSchema: z.ZodObject<{
4080
4365
  customerField: string;
4081
4366
  instruction: string;
4082
4367
  answerTo: "webhook" | "none";
4083
- variables: Record<string, unknown>;
4084
4368
  } | {
4085
4369
  kind: "webhook";
4086
4370
  id: string;
4087
4371
  tenantId: string;
4088
4372
  enabled: boolean;
4089
4373
  name: string;
4374
+ variables: Record<string, unknown>;
4090
4375
  runsAs: "none" | "field";
4091
4376
  customerField: string;
4092
4377
  instruction: string;
4093
4378
  answerTo: "webhook" | "none";
4094
- variables: Record<string, unknown>;
4095
4379
  } | {
4096
4380
  every: "week" | "day" | "hour";
4097
4381
  kind: "schedule";
@@ -4100,10 +4384,10 @@ export declare const botPatchSchema: z.ZodObject<{
4100
4384
  tenantId: string;
4101
4385
  enabled: boolean;
4102
4386
  name: string;
4387
+ variables: Record<string, unknown>;
4103
4388
  runsAs: "one" | "none";
4104
4389
  instruction: string;
4105
4390
  answerTo: "webhook" | "none";
4106
- variables: Record<string, unknown>;
4107
4391
  repeat: "once" | "repeat";
4108
4392
  days: number[];
4109
4393
  time: string;
@@ -4121,6 +4405,21 @@ export declare const botPatchSchema: z.ZodObject<{
4121
4405
  languages: string[];
4122
4406
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4123
4407
  } | undefined;
4408
+ variables?: {
4409
+ type: "Text" | "Number" | "Yes or no" | "One of…";
4410
+ required: boolean;
4411
+ name: string;
4412
+ description: string;
4413
+ defaultValue: string;
4414
+ usedIn: ("instructions" | "api" | "run_plan")[];
4415
+ chipNote: string;
4416
+ values?: string[] | undefined;
4417
+ }[] | undefined;
4418
+ files?: {
4419
+ enabled: boolean;
4420
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
4421
+ bigSpreadsheets: "workbench" | "preview";
4422
+ } | undefined;
4124
4423
  instructions?: {
4125
4424
  text: string;
4126
4425
  editedAt: string | null;
@@ -4164,23 +4463,23 @@ export declare const botPatchSchema: z.ZodObject<{
4164
4463
  id: string;
4165
4464
  name: string;
4166
4465
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4167
- bodyType: "json" | "form" | "xml" | "gql";
4168
- readAs: "text" | "json" | "auto" | "xml";
4466
+ bodyType: "json" | "xml" | "form" | "gql";
4467
+ readAs: "json" | "xml" | "text" | "auto";
4169
4468
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4170
4469
  summary: string;
4171
4470
  latencyMs: number | null;
4172
4471
  visibleFields: string[];
4173
4472
  effects: "read" | "write" | "unclassified";
4473
+ headers?: Record<string, string> | undefined;
4474
+ body?: string | undefined;
4174
4475
  sample?: unknown;
4175
4476
  query?: Record<string, string> | undefined;
4176
- body?: string | undefined;
4177
4477
  permission?: "allow" | "ask" | "block" | undefined;
4178
4478
  inputSchema?: Record<string, unknown> | undefined;
4179
- headers?: Record<string, string> | undefined;
4180
4479
  bindings?: {
4181
4480
  path: string[];
4182
4481
  source: "variable" | "context" | "model" | "identity";
4183
- target: "path" | "query" | "header" | "body";
4482
+ target: "body" | "path" | "query" | "header";
4184
4483
  key: string;
4185
4484
  }[] | undefined;
4186
4485
  responseSchema?: Record<string, unknown> | undefined;
@@ -4246,16 +4545,6 @@ export declare const botPatchSchema: z.ZodObject<{
4246
4545
  id: string;
4247
4546
  effort: "low" | "medium" | "high" | "xhigh";
4248
4547
  } | undefined;
4249
- variables?: {
4250
- type: "Text" | "Number" | "Yes or no" | "One of…";
4251
- required: boolean;
4252
- name: string;
4253
- description: string;
4254
- defaultValue: string;
4255
- usedIn: ("instructions" | "api" | "run_plan")[];
4256
- chipNote: string;
4257
- values?: string[] | undefined;
4258
- }[] | undefined;
4259
4548
  timezone?: string | null | undefined;
4260
4549
  skills?: {
4261
4550
  id: string;
@@ -4295,7 +4584,7 @@ export declare const botPatchSchema: z.ZodObject<{
4295
4584
  values?: string[] | undefined;
4296
4585
  items?: Record<string, unknown> | undefined;
4297
4586
  }[];
4298
- format: "text" | "json";
4587
+ format: "json" | "text";
4299
4588
  delivery: "stream" | "once" | "webhook";
4300
4589
  webhookUrl: string;
4301
4590
  schema?: Record<string, unknown> | undefined;
@@ -4365,6 +4654,7 @@ export declare const botPatchSchema: z.ZodObject<{
4365
4654
  })[] | undefined;
4366
4655
  }>;
4367
4656
  export declare const botRunInputSchema: z.ZodObject<{
4657
+ attachments: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4368
4658
  runId: z.ZodOptional<z.ZodString>;
4369
4659
  conversationId: z.ZodOptional<z.ZodString>;
4370
4660
  message: z.ZodString;
@@ -4376,18 +4666,20 @@ export declare const botRunInputSchema: z.ZodObject<{
4376
4666
  }, "strict", z.ZodTypeAny, {
4377
4667
  message: string;
4378
4668
  variables: Record<string, unknown>;
4669
+ attachments: string[];
4379
4670
  dataMode: "sample" | "live";
4380
4671
  revision?: number | undefined;
4381
- runId?: string | undefined;
4382
4672
  conversationId?: string | undefined;
4673
+ runId?: string | undefined;
4383
4674
  customerSessionId?: string | undefined;
4384
4675
  connectionReturnUrl?: string | undefined;
4385
4676
  }, {
4386
4677
  message: string;
4387
4678
  revision?: number | undefined;
4388
- variables?: Record<string, unknown> | undefined;
4389
- runId?: string | undefined;
4390
4679
  conversationId?: string | undefined;
4680
+ runId?: string | undefined;
4681
+ variables?: Record<string, unknown> | undefined;
4682
+ attachments?: string[] | undefined;
4391
4683
  dataMode?: "sample" | "live" | undefined;
4392
4684
  customerSessionId?: string | undefined;
4393
4685
  connectionReturnUrl?: string | undefined;