@stacklink/sdk 0.3.10 → 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.
Files changed (34) hide show
  1. package/compatibility.json +1 -1
  2. package/dist/src/domain/bot-contract.d.ts +671 -312
  3. package/dist/src/domain/bot-contract.d.ts.map +1 -1
  4. package/dist/src/domain/bot-contract.js +69 -1
  5. package/dist/src/domain/bot-contract.js.map +1 -1
  6. package/dist/src/domain/memory-contract.d.ts +117 -117
  7. package/dist/src/domain/platform-approval-contract.d.ts +119 -1
  8. package/dist/src/domain/platform-approval-contract.d.ts.map +1 -1
  9. package/dist/src/domain/platform-approval-contract.js +8 -0
  10. package/dist/src/domain/platform-approval-contract.js.map +1 -1
  11. package/dist/src/domain/provider-branding.d.ts.map +1 -1
  12. package/dist/src/domain/provider-branding.js +7 -0
  13. package/dist/src/domain/provider-branding.js.map +1 -1
  14. package/dist/src/domain/stacklink-meta-tools.d.ts +1 -1
  15. package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -1
  16. package/dist/src/domain/stacklink-meta-tools.js +2 -2
  17. package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
  18. package/dist/src/sdk/index.d.ts +25 -2
  19. package/dist/src/sdk/index.d.ts.map +1 -1
  20. package/dist/src/sdk/index.js +9 -1
  21. package/dist/src/sdk/index.js.map +1 -1
  22. package/dist/src/sdk/vercel-ai.d.ts +2 -0
  23. package/dist/src/sdk/vercel-ai.d.ts.map +1 -1
  24. package/dist/src/sdk/vercel-ai.js +16 -2
  25. package/dist/src/sdk/vercel-ai.js.map +1 -1
  26. package/dist/src/services/content-normalization/content-type-capabilities.d.ts +15 -0
  27. package/dist/src/services/content-normalization/content-type-capabilities.d.ts.map +1 -0
  28. package/dist/src/services/content-normalization/content-type-capabilities.js +164 -0
  29. package/dist/src/services/content-normalization/content-type-capabilities.js.map +1 -0
  30. package/dist/src/services/content-normalization/normalized-content-artifact.d.ts +230 -0
  31. package/dist/src/services/content-normalization/normalized-content-artifact.d.ts.map +1 -0
  32. package/dist/src/services/content-normalization/normalized-content-artifact.js +147 -0
  33. package/dist/src/services/content-normalization/normalized-content-artifact.js.map +1 -0
  34. package/package.json +1 -1
@@ -1,13 +1,241 @@
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";
6
232
  /** The only two states an owner can set. */
233
+ export declare const botWorkingStatuses: Set<string>;
234
+ export declare const botAttentionStatuses: Set<string>;
7
235
  export type BotRunState = "on" | "paused";
8
236
  export declare const botTerminalStatuses: Set<string>;
9
237
  export type PauseFor = "1h" | "tomorrow" | "manual";
10
- export type ModelEffort = "low" | "medium" | "high";
238
+ export type ModelEffort = "low" | "medium" | "high" | "xhigh";
11
239
  export type AnswerFormat = "text" | "json";
12
240
  export type AnswerDelivery = "stream" | "once" | "webhook";
13
241
  export type SkillLoad = "auto" | "always";
@@ -352,8 +580,9 @@ export type TestCustomer = {
352
580
  customerId: string | null;
353
581
  };
354
582
  export type TestDataMode = "sample" | "live";
355
- export type TestStepKind = "api" | "app" | "skill" | "memory" | "web" | "knowledge" | "mcp" | "workbench";
583
+ export type TestStepKind = FileStepKind | "compaction" | "api" | "app" | "skill" | "memory" | "web" | "knowledge" | "mcp" | "workbench";
356
584
  export type TestStep = {
585
+ files?: FileStepExtras;
357
586
  id?: string;
358
587
  startedAt?: string;
359
588
  completedAt?: string;
@@ -365,6 +594,13 @@ export type TestStep = {
365
594
  app?: AppKey;
366
595
  };
367
596
  export type BotTest = {
597
+ attachments?: BotAttachment[];
598
+ outputs?: BotOutputFile[];
599
+ coverage?: FileCoverage[];
600
+ updates?: BotProgressUpdate[];
601
+ waitingOperation?: BotWaitingOperation | null;
602
+ connection?: BotConnectionAction | null;
603
+ requirements?: BotRequirement[];
368
604
  id: string;
369
605
  platformSessionId?: string | null;
370
606
  revision?: number;
@@ -376,6 +612,7 @@ export type BotTest = {
376
612
  error?: unknown;
377
613
  dataMode?: TestDataMode;
378
614
  answer: {
615
+ citations?: FileCitation[];
379
616
  /** e.g. "Matches your 4 fields" or "Answered". */
380
617
  verdict: string;
381
618
  durationMs: number;
@@ -400,6 +637,9 @@ export type BotActivity = {
400
637
  beforeTest: number;
401
638
  };
402
639
  export type Bot = {
640
+ files?: BotFileSettings;
641
+ /** Named timezone for this Bot; absent means local time is unknown. */
642
+ timezone?: string | null | undefined;
403
643
  workbenchSuggestion?: {
404
644
  size: WorkbenchSize;
405
645
  reason: string;
@@ -424,6 +664,7 @@ export type Bot = {
424
664
  live: {
425
665
  runsNow: number;
426
666
  runsToday: number;
667
+ needsAttention?: number;
427
668
  } | null;
428
669
  model: {
429
670
  id: string;
@@ -459,7 +700,7 @@ export type BotReadinessIssue = {
459
700
  message: string;
460
701
  };
461
702
  /** Partial update. Nested objects replace the stored value for that key. */
462
- export type BotConfiguration = Pick<Bot, "name" | "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">;
463
704
  export type BotPatch = Partial<BotConfiguration>;
464
705
  export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
465
706
  kind: z.ZodLiteral<"app">;
@@ -480,6 +721,7 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
480
721
  id: string;
481
722
  enabled: boolean;
482
723
  name: string;
724
+ variables: Record<string, unknown>;
483
725
  subscriptionId: string;
484
726
  label: string;
485
727
  providerKey: string;
@@ -488,7 +730,6 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
488
730
  customerField: string;
489
731
  instruction: string;
490
732
  answerTo: "webhook" | "none";
491
- variables: Record<string, unknown>;
492
733
  }, {
493
734
  kind: "app";
494
735
  id: string;
@@ -520,11 +761,11 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
520
761
  tenantId: string;
521
762
  enabled: boolean;
522
763
  name: string;
764
+ variables: Record<string, unknown>;
523
765
  runsAs: "none" | "field";
524
766
  customerField: string;
525
767
  instruction: string;
526
768
  answerTo: "webhook" | "none";
527
- variables: Record<string, unknown>;
528
769
  }, {
529
770
  kind: "webhook";
530
771
  id: string;
@@ -561,10 +802,10 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
561
802
  tenantId: string;
562
803
  enabled: boolean;
563
804
  name: string;
805
+ variables: Record<string, unknown>;
564
806
  runsAs: "one" | "none";
565
807
  instruction: string;
566
808
  answerTo: "webhook" | "none";
567
- variables: Record<string, unknown>;
568
809
  repeat: "once" | "repeat";
569
810
  days: number[];
570
811
  time: string;
@@ -597,6 +838,9 @@ export type BotTriggerState = {
597
838
  webhookUrl: string | null;
598
839
  };
599
840
  export type ModelOption = {
841
+ capabilities?: ModelCapabilities;
842
+ contextTokens?: number;
843
+ description?: string;
600
844
  id: string;
601
845
  name: string;
602
846
  provider: string;
@@ -678,6 +922,7 @@ export type BotBinding = {
678
922
  key: string;
679
923
  };
680
924
  export type BotRunInput = {
925
+ attachments?: string[];
681
926
  runId?: string;
682
927
  conversationId?: string;
683
928
  message: string;
@@ -685,8 +930,61 @@ export type BotRunInput = {
685
930
  revision?: number;
686
931
  dataMode?: TestDataMode;
687
932
  customerSessionId?: string;
933
+ /** Hosted connection completion destination on the project's configured return origin. */
934
+ connectionReturnUrl?: string;
935
+ };
936
+ export type BotCapabilityFact = {
937
+ id: string;
938
+ status: 'enabled' | 'disabled' | 'sample';
939
+ owner: 'project_owner' | 'customer';
940
+ account?: 'project' | 'customer';
941
+ };
942
+ /** Configuration facts are safe to disclose without granting tool execution. */
943
+ export declare function botCapabilityFacts(config: BotConfiguration, sample?: boolean): BotCapabilityFact[];
944
+ export type BotConnectionAction = {
945
+ kind: 'connection';
946
+ id: string;
947
+ providerKey: string;
948
+ providerName?: string;
949
+ providerIconUrl?: string;
950
+ owner: 'customer' | 'project_owner';
951
+ status: string;
952
+ expiresAt: string;
953
+ action: {
954
+ kind: 'open_url';
955
+ url: string;
956
+ } | null;
957
+ intent?: 'connect' | 'reconnect';
958
+ canResume?: boolean;
959
+ };
960
+ export type BotWaitingOperation = BotConnectionAction | {
961
+ kind: 'execution';
962
+ id: string;
688
963
  };
964
+ export declare const botRequirementSchema: z.ZodObject<{
965
+ capabilityId: z.ZodString;
966
+ code: z.ZodEnum<["bot_not_configured", "bot_capability_disabled", "bot_sample_mode", "bot_owner_connection_required", "provider_not_found", "provider_planned", "provider_blocked"]>;
967
+ owner: z.ZodEnum<["project_owner", "stacklink"]>;
968
+ nextAction: z.ZodEnum<["configure_bot", "repair_connection", "use_live_data", "contact_administrator", "unavailable"]>;
969
+ }, "strict", z.ZodTypeAny, {
970
+ code: "bot_not_configured" | "bot_capability_disabled" | "bot_sample_mode" | "bot_owner_connection_required" | "provider_not_found" | "provider_planned" | "provider_blocked";
971
+ capabilityId: string;
972
+ owner: "project_owner" | "stacklink";
973
+ nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator";
974
+ }, {
975
+ code: "bot_not_configured" | "bot_capability_disabled" | "bot_sample_mode" | "bot_owner_connection_required" | "provider_not_found" | "provider_planned" | "provider_blocked";
976
+ capabilityId: string;
977
+ owner: "project_owner" | "stacklink";
978
+ nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator";
979
+ }>;
980
+ export type BotRequirement = z.infer<typeof botRequirementSchema>;
689
981
  export type BotRun = {
982
+ resumeCount?: number;
983
+ attachments?: BotAttachment[];
984
+ outputs?: BotOutputFile[];
985
+ coverage?: FileCoverage[];
986
+ citations?: FileCitation[];
987
+ updates?: BotProgressUpdate[];
690
988
  channel: string;
691
989
  dataMode: TestDataMode;
692
990
  callerKey: string;
@@ -706,7 +1004,10 @@ export type BotRun = {
706
1004
  createdAt: string;
707
1005
  completedAt: string | null;
708
1006
  platformSessionId: string | null;
709
- waitingOperation: unknown;
1007
+ waitingOperation: BotWaitingOperation | null;
1008
+ connection?: BotConnectionAction | null;
1009
+ capabilities?: BotCapabilityFact[];
1010
+ requirements?: BotRequirement[];
710
1011
  /** Server projection of the accepted snapshot and durable execution records. */
711
1012
  display?: BotRunDisplay;
712
1013
  };
@@ -791,12 +1092,12 @@ export declare const botBindingSchema: z.ZodObject<{
791
1092
  }, "strict", z.ZodTypeAny, {
792
1093
  path: string[];
793
1094
  source: "variable" | "context" | "model" | "identity";
794
- target: "path" | "query" | "header" | "body";
1095
+ target: "body" | "path" | "query" | "header";
795
1096
  key: string;
796
1097
  }, {
797
1098
  path: string[];
798
1099
  source: "variable" | "context" | "model" | "identity";
799
- target: "path" | "query" | "header" | "body";
1100
+ target: "body" | "path" | "query" | "header";
800
1101
  key: string;
801
1102
  }>;
802
1103
  export declare const botApiCallSchema: z.ZodObject<{
@@ -824,36 +1125,36 @@ export declare const botApiCallSchema: z.ZodObject<{
824
1125
  }, "strict", z.ZodTypeAny, {
825
1126
  path: string[];
826
1127
  source: "variable" | "context" | "model" | "identity";
827
- target: "path" | "query" | "header" | "body";
1128
+ target: "body" | "path" | "query" | "header";
828
1129
  key: string;
829
1130
  }, {
830
1131
  path: string[];
831
1132
  source: "variable" | "context" | "model" | "identity";
832
- target: "path" | "query" | "header" | "body";
1133
+ target: "body" | "path" | "query" | "header";
833
1134
  key: string;
834
1135
  }>, "many">>;
835
1136
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
836
1137
  sample: z.ZodOptional<z.ZodUnknown>;
837
1138
  }, "strict", z.ZodTypeAny, {
1139
+ headers: Record<string, string>;
1140
+ body: string;
838
1141
  path: string;
839
1142
  id: string;
840
1143
  name: string;
841
1144
  query: Record<string, string>;
842
- body: string;
843
1145
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
844
- bodyType: "json" | "form" | "xml" | "gql";
845
- readAs: "text" | "json" | "auto" | "xml";
1146
+ bodyType: "json" | "xml" | "form" | "gql";
1147
+ readAs: "json" | "xml" | "text" | "auto";
846
1148
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
847
1149
  summary: string;
848
1150
  latencyMs: number | null;
849
1151
  visibleFields: string[];
850
1152
  effects: "read" | "write" | "unclassified";
851
1153
  permission: "allow" | "ask" | "block";
852
- headers: Record<string, string>;
853
1154
  bindings: {
854
1155
  path: string[];
855
1156
  source: "variable" | "context" | "model" | "identity";
856
- target: "path" | "query" | "header" | "body";
1157
+ target: "body" | "path" | "query" | "header";
857
1158
  key: string;
858
1159
  }[];
859
1160
  sample?: unknown;
@@ -864,23 +1165,23 @@ export declare const botApiCallSchema: z.ZodObject<{
864
1165
  id: string;
865
1166
  name: string;
866
1167
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
867
- bodyType: "json" | "form" | "xml" | "gql";
868
- readAs: "text" | "json" | "auto" | "xml";
1168
+ bodyType: "json" | "xml" | "form" | "gql";
1169
+ readAs: "json" | "xml" | "text" | "auto";
869
1170
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
870
1171
  summary: string;
871
1172
  latencyMs: number | null;
872
1173
  visibleFields: string[];
873
1174
  effects: "read" | "write" | "unclassified";
1175
+ headers?: Record<string, string> | undefined;
1176
+ body?: string | undefined;
874
1177
  sample?: unknown;
875
1178
  query?: Record<string, string> | undefined;
876
- body?: string | undefined;
877
1179
  permission?: "allow" | "ask" | "block" | undefined;
878
1180
  inputSchema?: Record<string, unknown> | undefined;
879
- headers?: Record<string, string> | undefined;
880
1181
  bindings?: {
881
1182
  path: string[];
882
1183
  source: "variable" | "context" | "model" | "identity";
883
- target: "path" | "query" | "header" | "body";
1184
+ target: "body" | "path" | "query" | "header";
884
1185
  key: string;
885
1186
  }[] | undefined;
886
1187
  responseSchema?: Record<string, unknown> | undefined;
@@ -920,36 +1221,36 @@ export declare const botApiSchema: z.ZodObject<{
920
1221
  }, "strict", z.ZodTypeAny, {
921
1222
  path: string[];
922
1223
  source: "variable" | "context" | "model" | "identity";
923
- target: "path" | "query" | "header" | "body";
1224
+ target: "body" | "path" | "query" | "header";
924
1225
  key: string;
925
1226
  }, {
926
1227
  path: string[];
927
1228
  source: "variable" | "context" | "model" | "identity";
928
- target: "path" | "query" | "header" | "body";
1229
+ target: "body" | "path" | "query" | "header";
929
1230
  key: string;
930
1231
  }>, "many">>;
931
1232
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
932
1233
  sample: z.ZodOptional<z.ZodUnknown>;
933
1234
  }, "strict", z.ZodTypeAny, {
1235
+ headers: Record<string, string>;
1236
+ body: string;
934
1237
  path: string;
935
1238
  id: string;
936
1239
  name: string;
937
1240
  query: Record<string, string>;
938
- body: string;
939
1241
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
940
- bodyType: "json" | "form" | "xml" | "gql";
941
- readAs: "text" | "json" | "auto" | "xml";
1242
+ bodyType: "json" | "xml" | "form" | "gql";
1243
+ readAs: "json" | "xml" | "text" | "auto";
942
1244
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
943
1245
  summary: string;
944
1246
  latencyMs: number | null;
945
1247
  visibleFields: string[];
946
1248
  effects: "read" | "write" | "unclassified";
947
1249
  permission: "allow" | "ask" | "block";
948
- headers: Record<string, string>;
949
1250
  bindings: {
950
1251
  path: string[];
951
1252
  source: "variable" | "context" | "model" | "identity";
952
- target: "path" | "query" | "header" | "body";
1253
+ target: "body" | "path" | "query" | "header";
953
1254
  key: string;
954
1255
  }[];
955
1256
  sample?: unknown;
@@ -960,23 +1261,23 @@ export declare const botApiSchema: z.ZodObject<{
960
1261
  id: string;
961
1262
  name: string;
962
1263
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
963
- bodyType: "json" | "form" | "xml" | "gql";
964
- readAs: "text" | "json" | "auto" | "xml";
1264
+ bodyType: "json" | "xml" | "form" | "gql";
1265
+ readAs: "json" | "xml" | "text" | "auto";
965
1266
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
966
1267
  summary: string;
967
1268
  latencyMs: number | null;
968
1269
  visibleFields: string[];
969
1270
  effects: "read" | "write" | "unclassified";
1271
+ headers?: Record<string, string> | undefined;
1272
+ body?: string | undefined;
970
1273
  sample?: unknown;
971
1274
  query?: Record<string, string> | undefined;
972
- body?: string | undefined;
973
1275
  permission?: "allow" | "ask" | "block" | undefined;
974
1276
  inputSchema?: Record<string, unknown> | undefined;
975
- headers?: Record<string, string> | undefined;
976
1277
  bindings?: {
977
1278
  path: string[];
978
1279
  source: "variable" | "context" | "model" | "identity";
979
- target: "path" | "query" | "header" | "body";
1280
+ target: "body" | "path" | "query" | "header";
980
1281
  key: string;
981
1282
  }[] | undefined;
982
1283
  responseSchema?: Record<string, unknown> | undefined;
@@ -990,25 +1291,25 @@ export declare const botApiSchema: z.ZodObject<{
990
1291
  auth: "one" | "each" | "oauth" | "none";
991
1292
  sendCustomerIdentity: boolean;
992
1293
  calls: {
1294
+ headers: Record<string, string>;
1295
+ body: string;
993
1296
  path: string;
994
1297
  id: string;
995
1298
  name: string;
996
1299
  query: Record<string, string>;
997
- body: string;
998
1300
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
999
- bodyType: "json" | "form" | "xml" | "gql";
1000
- readAs: "text" | "json" | "auto" | "xml";
1301
+ bodyType: "json" | "xml" | "form" | "gql";
1302
+ readAs: "json" | "xml" | "text" | "auto";
1001
1303
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1002
1304
  summary: string;
1003
1305
  latencyMs: number | null;
1004
1306
  visibleFields: string[];
1005
1307
  effects: "read" | "write" | "unclassified";
1006
1308
  permission: "allow" | "ask" | "block";
1007
- headers: Record<string, string>;
1008
1309
  bindings: {
1009
1310
  path: string[];
1010
1311
  source: "variable" | "context" | "model" | "identity";
1011
- target: "path" | "query" | "header" | "body";
1312
+ target: "body" | "path" | "query" | "header";
1012
1313
  key: string;
1013
1314
  }[];
1014
1315
  sample?: unknown;
@@ -1030,23 +1331,23 @@ export declare const botApiSchema: z.ZodObject<{
1030
1331
  id: string;
1031
1332
  name: string;
1032
1333
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1033
- bodyType: "json" | "form" | "xml" | "gql";
1034
- readAs: "text" | "json" | "auto" | "xml";
1334
+ bodyType: "json" | "xml" | "form" | "gql";
1335
+ readAs: "json" | "xml" | "text" | "auto";
1035
1336
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1036
1337
  summary: string;
1037
1338
  latencyMs: number | null;
1038
1339
  visibleFields: string[];
1039
1340
  effects: "read" | "write" | "unclassified";
1341
+ headers?: Record<string, string> | undefined;
1342
+ body?: string | undefined;
1040
1343
  sample?: unknown;
1041
1344
  query?: Record<string, string> | undefined;
1042
- body?: string | undefined;
1043
1345
  permission?: "allow" | "ask" | "block" | undefined;
1044
1346
  inputSchema?: Record<string, unknown> | undefined;
1045
- headers?: Record<string, string> | undefined;
1046
1347
  bindings?: {
1047
1348
  path: string[];
1048
1349
  source: "variable" | "context" | "model" | "identity";
1049
- target: "path" | "query" | "header" | "body";
1350
+ target: "body" | "path" | "query" | "header";
1050
1351
  key: string;
1051
1352
  }[] | undefined;
1052
1353
  responseSchema?: Record<string, unknown> | undefined;
@@ -1056,6 +1357,20 @@ export declare const botApiSchema: z.ZodObject<{
1056
1357
  }>;
1057
1358
  export declare const botConfigurationSchema: z.ZodObject<{
1058
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
+ }>>;
1373
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1059
1374
  triggers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1060
1375
  kind: z.ZodLiteral<"app">;
1061
1376
  subscriptionId: z.ZodString;
@@ -1075,6 +1390,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1075
1390
  id: string;
1076
1391
  enabled: boolean;
1077
1392
  name: string;
1393
+ variables: Record<string, unknown>;
1078
1394
  subscriptionId: string;
1079
1395
  label: string;
1080
1396
  providerKey: string;
@@ -1083,7 +1399,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
1083
1399
  customerField: string;
1084
1400
  instruction: string;
1085
1401
  answerTo: "webhook" | "none";
1086
- variables: Record<string, unknown>;
1087
1402
  }, {
1088
1403
  kind: "app";
1089
1404
  id: string;
@@ -1115,11 +1430,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
1115
1430
  tenantId: string;
1116
1431
  enabled: boolean;
1117
1432
  name: string;
1433
+ variables: Record<string, unknown>;
1118
1434
  runsAs: "none" | "field";
1119
1435
  customerField: string;
1120
1436
  instruction: string;
1121
1437
  answerTo: "webhook" | "none";
1122
- variables: Record<string, unknown>;
1123
1438
  }, {
1124
1439
  kind: "webhook";
1125
1440
  id: string;
@@ -1156,10 +1471,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
1156
1471
  tenantId: string;
1157
1472
  enabled: boolean;
1158
1473
  name: string;
1474
+ variables: Record<string, unknown>;
1159
1475
  runsAs: "one" | "none";
1160
1476
  instruction: string;
1161
1477
  answerTo: "webhook" | "none";
1162
- variables: Record<string, unknown>;
1163
1478
  repeat: "once" | "repeat";
1164
1479
  days: number[];
1165
1480
  time: string;
@@ -1185,13 +1500,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
1185
1500
  }>]>, "many">>;
1186
1501
  model: z.ZodObject<{
1187
1502
  id: z.ZodString;
1188
- effort: z.ZodEnum<["low", "medium", "high"]>;
1503
+ effort: z.ZodEnum<["low", "medium", "high", "xhigh"]>;
1189
1504
  }, "strict", z.ZodTypeAny, {
1190
1505
  id: string;
1191
- effort: "low" | "medium" | "high";
1506
+ effort: "low" | "medium" | "high" | "xhigh";
1192
1507
  }, {
1193
1508
  id: string;
1194
- effort: "low" | "medium" | "high";
1509
+ effort: "low" | "medium" | "high" | "xhigh";
1195
1510
  }>;
1196
1511
  instructions: z.ZodObject<{
1197
1512
  text: z.ZodString;
@@ -1416,36 +1731,36 @@ export declare const botConfigurationSchema: z.ZodObject<{
1416
1731
  }, "strict", z.ZodTypeAny, {
1417
1732
  path: string[];
1418
1733
  source: "variable" | "context" | "model" | "identity";
1419
- target: "path" | "query" | "header" | "body";
1734
+ target: "body" | "path" | "query" | "header";
1420
1735
  key: string;
1421
1736
  }, {
1422
1737
  path: string[];
1423
1738
  source: "variable" | "context" | "model" | "identity";
1424
- target: "path" | "query" | "header" | "body";
1739
+ target: "body" | "path" | "query" | "header";
1425
1740
  key: string;
1426
1741
  }>, "many">>;
1427
1742
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1428
1743
  sample: z.ZodOptional<z.ZodUnknown>;
1429
1744
  }, "strict", z.ZodTypeAny, {
1745
+ headers: Record<string, string>;
1746
+ body: string;
1430
1747
  path: string;
1431
1748
  id: string;
1432
1749
  name: string;
1433
1750
  query: Record<string, string>;
1434
- body: string;
1435
1751
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1436
- bodyType: "json" | "form" | "xml" | "gql";
1437
- readAs: "text" | "json" | "auto" | "xml";
1752
+ bodyType: "json" | "xml" | "form" | "gql";
1753
+ readAs: "json" | "xml" | "text" | "auto";
1438
1754
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1439
1755
  summary: string;
1440
1756
  latencyMs: number | null;
1441
1757
  visibleFields: string[];
1442
1758
  effects: "read" | "write" | "unclassified";
1443
1759
  permission: "allow" | "ask" | "block";
1444
- headers: Record<string, string>;
1445
1760
  bindings: {
1446
1761
  path: string[];
1447
1762
  source: "variable" | "context" | "model" | "identity";
1448
- target: "path" | "query" | "header" | "body";
1763
+ target: "body" | "path" | "query" | "header";
1449
1764
  key: string;
1450
1765
  }[];
1451
1766
  sample?: unknown;
@@ -1456,23 +1771,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
1456
1771
  id: string;
1457
1772
  name: string;
1458
1773
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1459
- bodyType: "json" | "form" | "xml" | "gql";
1460
- readAs: "text" | "json" | "auto" | "xml";
1774
+ bodyType: "json" | "xml" | "form" | "gql";
1775
+ readAs: "json" | "xml" | "text" | "auto";
1461
1776
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1462
1777
  summary: string;
1463
1778
  latencyMs: number | null;
1464
1779
  visibleFields: string[];
1465
1780
  effects: "read" | "write" | "unclassified";
1781
+ headers?: Record<string, string> | undefined;
1782
+ body?: string | undefined;
1466
1783
  sample?: unknown;
1467
1784
  query?: Record<string, string> | undefined;
1468
- body?: string | undefined;
1469
1785
  permission?: "allow" | "ask" | "block" | undefined;
1470
1786
  inputSchema?: Record<string, unknown> | undefined;
1471
- headers?: Record<string, string> | undefined;
1472
1787
  bindings?: {
1473
1788
  path: string[];
1474
1789
  source: "variable" | "context" | "model" | "identity";
1475
- target: "path" | "query" | "header" | "body";
1790
+ target: "body" | "path" | "query" | "header";
1476
1791
  key: string;
1477
1792
  }[] | undefined;
1478
1793
  responseSchema?: Record<string, unknown> | undefined;
@@ -1486,25 +1801,25 @@ export declare const botConfigurationSchema: z.ZodObject<{
1486
1801
  auth: "one" | "each" | "oauth" | "none";
1487
1802
  sendCustomerIdentity: boolean;
1488
1803
  calls: {
1804
+ headers: Record<string, string>;
1805
+ body: string;
1489
1806
  path: string;
1490
1807
  id: string;
1491
1808
  name: string;
1492
1809
  query: Record<string, string>;
1493
- body: string;
1494
1810
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1495
- bodyType: "json" | "form" | "xml" | "gql";
1496
- readAs: "text" | "json" | "auto" | "xml";
1811
+ bodyType: "json" | "xml" | "form" | "gql";
1812
+ readAs: "json" | "xml" | "text" | "auto";
1497
1813
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1498
1814
  summary: string;
1499
1815
  latencyMs: number | null;
1500
1816
  visibleFields: string[];
1501
1817
  effects: "read" | "write" | "unclassified";
1502
1818
  permission: "allow" | "ask" | "block";
1503
- headers: Record<string, string>;
1504
1819
  bindings: {
1505
1820
  path: string[];
1506
1821
  source: "variable" | "context" | "model" | "identity";
1507
- target: "path" | "query" | "header" | "body";
1822
+ target: "body" | "path" | "query" | "header";
1508
1823
  key: string;
1509
1824
  }[];
1510
1825
  sample?: unknown;
@@ -1526,23 +1841,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
1526
1841
  id: string;
1527
1842
  name: string;
1528
1843
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1529
- bodyType: "json" | "form" | "xml" | "gql";
1530
- readAs: "text" | "json" | "auto" | "xml";
1844
+ bodyType: "json" | "xml" | "form" | "gql";
1845
+ readAs: "json" | "xml" | "text" | "auto";
1531
1846
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1532
1847
  summary: string;
1533
1848
  latencyMs: number | null;
1534
1849
  visibleFields: string[];
1535
1850
  effects: "read" | "write" | "unclassified";
1851
+ headers?: Record<string, string> | undefined;
1852
+ body?: string | undefined;
1536
1853
  sample?: unknown;
1537
1854
  query?: Record<string, string> | undefined;
1538
- body?: string | undefined;
1539
1855
  permission?: "allow" | "ask" | "block" | undefined;
1540
1856
  inputSchema?: Record<string, unknown> | undefined;
1541
- headers?: Record<string, string> | undefined;
1542
1857
  bindings?: {
1543
1858
  path: string[];
1544
1859
  source: "variable" | "context" | "model" | "identity";
1545
- target: "path" | "query" | "header" | "body";
1860
+ target: "body" | "path" | "query" | "header";
1546
1861
  key: string;
1547
1862
  }[] | undefined;
1548
1863
  responseSchema?: Record<string, unknown> | undefined;
@@ -1624,15 +1939,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
1624
1939
  rule: z.ZodEnum<["allow", "ask", "block"]>;
1625
1940
  tools: z.ZodArray<z.ZodString, "many">;
1626
1941
  }, "strict", z.ZodTypeAny, {
1942
+ tools: string[];
1627
1943
  name: "Read" | "Change" | "Delete";
1628
1944
  count: number;
1629
1945
  rule: "allow" | "ask" | "block";
1630
- tools: string[];
1631
1946
  }, {
1947
+ tools: string[];
1632
1948
  name: "Read" | "Change" | "Delete";
1633
1949
  count: number;
1634
1950
  rule: "allow" | "ask" | "block";
1635
- tools: string[];
1636
1951
  }>, "many">;
1637
1952
  }, "strict", z.ZodTypeAny, {
1638
1953
  status: "connecting" | "connected";
@@ -1647,10 +1962,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
1647
1962
  outputSchema?: Record<string, unknown> | undefined;
1648
1963
  }[];
1649
1964
  groups: {
1965
+ tools: string[];
1650
1966
  name: "Read" | "Change" | "Delete";
1651
1967
  count: number;
1652
1968
  rule: "allow" | "ask" | "block";
1653
- tools: string[];
1654
1969
  }[];
1655
1970
  credentialId?: string | undefined;
1656
1971
  }, {
@@ -1660,10 +1975,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
1660
1975
  url: string;
1661
1976
  toolCount: number;
1662
1977
  groups: {
1978
+ tools: string[];
1663
1979
  name: "Read" | "Change" | "Delete";
1664
1980
  count: number;
1665
1981
  rule: "allow" | "ask" | "block";
1666
- tools: string[];
1667
1982
  }[];
1668
1983
  credentialId?: string | undefined;
1669
1984
  definitions?: {
@@ -1728,15 +2043,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
1728
2043
  detail: string;
1729
2044
  syncedLabel: string;
1730
2045
  error?: string | undefined;
2046
+ pages?: {
2047
+ done: number;
2048
+ total: number;
2049
+ } | undefined;
1731
2050
  url?: string | undefined;
1732
2051
  connectedSource?: {
1733
2052
  accountId: string;
1734
2053
  resourceId: string;
1735
2054
  } | undefined;
1736
- pages?: {
1737
- done: number;
1738
- total: number;
1739
- } | undefined;
1740
2055
  progress?: {
1741
2056
  done: number;
1742
2057
  total: number;
@@ -1751,16 +2066,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
1751
2066
  detail: string;
1752
2067
  syncedLabel: string;
1753
2068
  error?: string | undefined;
2069
+ pages?: {
2070
+ done: number;
2071
+ total: number;
2072
+ } | undefined;
1754
2073
  url?: string | undefined;
1755
2074
  scope?: "customer" | "project" | undefined;
1756
2075
  connectedSource?: {
1757
2076
  accountId: string;
1758
2077
  resourceId: string;
1759
2078
  } | undefined;
1760
- pages?: {
1761
- done: number;
1762
- total: number;
1763
- } | undefined;
1764
2079
  progress?: {
1765
2080
  done: number;
1766
2081
  total: number;
@@ -1791,15 +2106,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
1791
2106
  detail: string;
1792
2107
  syncedLabel: string;
1793
2108
  error?: string | undefined;
2109
+ pages?: {
2110
+ done: number;
2111
+ total: number;
2112
+ } | undefined;
1794
2113
  url?: string | undefined;
1795
2114
  connectedSource?: {
1796
2115
  accountId: string;
1797
2116
  resourceId: string;
1798
2117
  } | undefined;
1799
- pages?: {
1800
- done: number;
1801
- total: number;
1802
- } | undefined;
1803
2118
  progress?: {
1804
2119
  done: number;
1805
2120
  total: number;
@@ -1819,25 +2134,25 @@ export declare const botConfigurationSchema: z.ZodObject<{
1819
2134
  auth: "one" | "each" | "oauth" | "none";
1820
2135
  sendCustomerIdentity: boolean;
1821
2136
  calls: {
2137
+ headers: Record<string, string>;
2138
+ body: string;
1822
2139
  path: string;
1823
2140
  id: string;
1824
2141
  name: string;
1825
2142
  query: Record<string, string>;
1826
- body: string;
1827
2143
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1828
- bodyType: "json" | "form" | "xml" | "gql";
1829
- readAs: "text" | "json" | "auto" | "xml";
2144
+ bodyType: "json" | "xml" | "form" | "gql";
2145
+ readAs: "json" | "xml" | "text" | "auto";
1830
2146
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1831
2147
  summary: string;
1832
2148
  latencyMs: number | null;
1833
2149
  visibleFields: string[];
1834
2150
  effects: "read" | "write" | "unclassified";
1835
2151
  permission: "allow" | "ask" | "block";
1836
- headers: Record<string, string>;
1837
2152
  bindings: {
1838
2153
  path: string[];
1839
2154
  source: "variable" | "context" | "model" | "identity";
1840
- target: "path" | "query" | "header" | "body";
2155
+ target: "body" | "path" | "query" | "header";
1841
2156
  key: string;
1842
2157
  }[];
1843
2158
  sample?: unknown;
@@ -1873,10 +2188,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
1873
2188
  outputSchema?: Record<string, unknown> | undefined;
1874
2189
  }[];
1875
2190
  groups: {
2191
+ tools: string[];
1876
2192
  name: "Read" | "Change" | "Delete";
1877
2193
  count: number;
1878
2194
  rule: "allow" | "ask" | "block";
1879
- tools: string[];
1880
2195
  }[];
1881
2196
  credentialId?: string | undefined;
1882
2197
  }[];
@@ -1894,16 +2209,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
1894
2209
  detail: string;
1895
2210
  syncedLabel: string;
1896
2211
  error?: string | undefined;
2212
+ pages?: {
2213
+ done: number;
2214
+ total: number;
2215
+ } | undefined;
1897
2216
  url?: string | undefined;
1898
2217
  scope?: "customer" | "project" | undefined;
1899
2218
  connectedSource?: {
1900
2219
  accountId: string;
1901
2220
  resourceId: string;
1902
2221
  } | undefined;
1903
- pages?: {
1904
- done: number;
1905
- total: number;
1906
- } | undefined;
1907
2222
  progress?: {
1908
2223
  done: number;
1909
2224
  total: number;
@@ -1924,23 +2239,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
1924
2239
  id: string;
1925
2240
  name: string;
1926
2241
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1927
- bodyType: "json" | "form" | "xml" | "gql";
1928
- readAs: "text" | "json" | "auto" | "xml";
2242
+ bodyType: "json" | "xml" | "form" | "gql";
2243
+ readAs: "json" | "xml" | "text" | "auto";
1929
2244
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1930
2245
  summary: string;
1931
2246
  latencyMs: number | null;
1932
2247
  visibleFields: string[];
1933
2248
  effects: "read" | "write" | "unclassified";
2249
+ headers?: Record<string, string> | undefined;
2250
+ body?: string | undefined;
1934
2251
  sample?: unknown;
1935
2252
  query?: Record<string, string> | undefined;
1936
- body?: string | undefined;
1937
2253
  permission?: "allow" | "ask" | "block" | undefined;
1938
2254
  inputSchema?: Record<string, unknown> | undefined;
1939
- headers?: Record<string, string> | undefined;
1940
2255
  bindings?: {
1941
2256
  path: string[];
1942
2257
  source: "variable" | "context" | "model" | "identity";
1943
- target: "path" | "query" | "header" | "body";
2258
+ target: "body" | "path" | "query" | "header";
1944
2259
  key: string;
1945
2260
  }[] | undefined;
1946
2261
  responseSchema?: Record<string, unknown> | undefined;
@@ -1968,10 +2283,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
1968
2283
  url: string;
1969
2284
  toolCount: number;
1970
2285
  groups: {
2286
+ tools: string[];
1971
2287
  name: "Read" | "Change" | "Delete";
1972
2288
  count: number;
1973
2289
  rule: "allow" | "ask" | "block";
1974
- tools: string[];
1975
2290
  }[];
1976
2291
  credentialId?: string | undefined;
1977
2292
  definitions?: {
@@ -2001,18 +2316,18 @@ export declare const botConfigurationSchema: z.ZodObject<{
2001
2316
  description: z.ZodString;
2002
2317
  }, "strict", z.ZodTypeAny, {
2003
2318
  type: "Text" | "Number" | "Yes or no" | "One of…";
2319
+ required: boolean;
2004
2320
  name: string;
2005
2321
  description: string;
2006
- required: boolean;
2007
2322
  defaultValue: string;
2008
2323
  usedIn: ("instructions" | "api" | "run_plan")[];
2009
2324
  chipNote: string;
2010
2325
  values?: string[] | undefined;
2011
2326
  }, {
2012
2327
  type: "Text" | "Number" | "Yes or no" | "One of…";
2328
+ required: boolean;
2013
2329
  name: string;
2014
2330
  description: string;
2015
- required: boolean;
2016
2331
  defaultValue: string;
2017
2332
  usedIn: ("instructions" | "api" | "run_plan")[];
2018
2333
  chipNote: string;
@@ -2032,20 +2347,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
2032
2347
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2033
2348
  items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2034
2349
  }, "strict", z.ZodTypeAny, {
2035
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
2350
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
2036
2351
  id: string;
2352
+ required: boolean;
2037
2353
  name: string;
2038
2354
  description: string;
2039
- required: boolean;
2040
2355
  level: number;
2041
2356
  values?: string[] | undefined;
2042
2357
  items?: Record<string, unknown> | undefined;
2043
2358
  }, {
2044
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
2359
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
2045
2360
  id: string;
2361
+ required: boolean;
2046
2362
  name: string;
2047
2363
  description: string;
2048
- required: boolean;
2049
2364
  level: number;
2050
2365
  values?: string[] | undefined;
2051
2366
  items?: Record<string, unknown> | undefined;
@@ -2053,31 +2368,31 @@ export declare const botConfigurationSchema: z.ZodObject<{
2053
2368
  schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2054
2369
  }, "strict", z.ZodTypeAny, {
2055
2370
  shape: {
2056
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
2371
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
2057
2372
  id: string;
2373
+ required: boolean;
2058
2374
  name: string;
2059
2375
  description: string;
2060
- required: boolean;
2061
2376
  level: number;
2062
2377
  values?: string[] | undefined;
2063
2378
  items?: Record<string, unknown> | undefined;
2064
2379
  }[];
2065
- format: "text" | "json";
2380
+ format: "json" | "text";
2066
2381
  delivery: "stream" | "once" | "webhook";
2067
2382
  webhookUrl: string;
2068
2383
  schema?: Record<string, unknown> | undefined;
2069
2384
  }, {
2070
2385
  shape: {
2071
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
2386
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
2072
2387
  id: string;
2388
+ required: boolean;
2073
2389
  name: string;
2074
2390
  description: string;
2075
- required: boolean;
2076
2391
  level: number;
2077
2392
  values?: string[] | undefined;
2078
2393
  items?: Record<string, unknown> | undefined;
2079
2394
  }[];
2080
- format: "text" | "json";
2395
+ format: "json" | "text";
2081
2396
  delivery: "stream" | "once" | "webhook";
2082
2397
  webhookUrl: string;
2083
2398
  schema?: Record<string, unknown> | undefined;
@@ -2107,24 +2422,24 @@ export declare const botConfigurationSchema: z.ZodObject<{
2107
2422
  kind: "workbench" | "mcp" | "app";
2108
2423
  id: string;
2109
2424
  name: string;
2425
+ capabilityId: string;
2110
2426
  bindings: {
2111
2427
  path: string[];
2112
2428
  source: "message" | "variable" | "context";
2113
2429
  target: string[];
2114
2430
  }[];
2115
- capabilityId: string;
2116
2431
  toolKey: string;
2117
2432
  input: Record<string, unknown>;
2118
2433
  }, {
2119
2434
  kind: "workbench" | "mcp" | "app";
2120
2435
  id: string;
2121
2436
  name: string;
2437
+ capabilityId: string;
2122
2438
  bindings: {
2123
2439
  path: string[];
2124
2440
  source: "message" | "variable" | "context";
2125
2441
  target: string[];
2126
2442
  }[];
2127
- capabilityId: string;
2128
2443
  toolKey: string;
2129
2444
  input: Record<string, unknown>;
2130
2445
  }>, "many">>;
@@ -2134,40 +2449,40 @@ export declare const botConfigurationSchema: z.ZodObject<{
2134
2449
  stopOnFail: z.ZodArray<z.ZodString, "many">;
2135
2450
  stepLimit: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number, number | null>;
2136
2451
  }, "strict", z.ZodTypeAny, {
2452
+ off: string[];
2137
2453
  before: string[];
2138
2454
  after: string[];
2139
2455
  preparations: {
2140
2456
  kind: "workbench" | "mcp" | "app";
2141
2457
  id: string;
2142
2458
  name: string;
2459
+ capabilityId: string;
2143
2460
  bindings: {
2144
2461
  path: string[];
2145
2462
  source: "message" | "variable" | "context";
2146
2463
  target: string[];
2147
2464
  }[];
2148
- capabilityId: string;
2149
2465
  toolKey: string;
2150
2466
  input: Record<string, unknown>;
2151
2467
  }[];
2152
- off: string[];
2153
2468
  stopOnFail: string[];
2154
2469
  stepLimit: number;
2155
2470
  }, {
2471
+ off: string[];
2156
2472
  before: string[];
2157
2473
  after: string[];
2158
- off: string[];
2159
2474
  stopOnFail: string[];
2160
2475
  stepLimit: number | null;
2161
2476
  preparations?: {
2162
2477
  kind: "workbench" | "mcp" | "app";
2163
2478
  id: string;
2164
2479
  name: string;
2480
+ capabilityId: string;
2165
2481
  bindings: {
2166
2482
  path: string[];
2167
2483
  source: "message" | "variable" | "context";
2168
2484
  target: string[];
2169
2485
  }[];
2170
- capabilityId: string;
2171
2486
  toolKey: string;
2172
2487
  input: Record<string, unknown>;
2173
2488
  }[] | undefined;
@@ -2183,6 +2498,21 @@ export declare const botConfigurationSchema: z.ZodObject<{
2183
2498
  languages: string[];
2184
2499
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2185
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
+ };
2186
2516
  instructions: {
2187
2517
  text: string;
2188
2518
  editedAt: string | null;
@@ -2197,15 +2527,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
2197
2527
  detail: string;
2198
2528
  syncedLabel: string;
2199
2529
  error?: string | undefined;
2530
+ pages?: {
2531
+ done: number;
2532
+ total: number;
2533
+ } | undefined;
2200
2534
  url?: string | undefined;
2201
2535
  connectedSource?: {
2202
2536
  accountId: string;
2203
2537
  resourceId: string;
2204
2538
  } | undefined;
2205
- pages?: {
2206
- done: number;
2207
- total: number;
2208
- } | undefined;
2209
2539
  progress?: {
2210
2540
  done: number;
2211
2541
  total: number;
@@ -2225,25 +2555,25 @@ export declare const botConfigurationSchema: z.ZodObject<{
2225
2555
  auth: "one" | "each" | "oauth" | "none";
2226
2556
  sendCustomerIdentity: boolean;
2227
2557
  calls: {
2558
+ headers: Record<string, string>;
2559
+ body: string;
2228
2560
  path: string;
2229
2561
  id: string;
2230
2562
  name: string;
2231
2563
  query: Record<string, string>;
2232
- body: string;
2233
2564
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2234
- bodyType: "json" | "form" | "xml" | "gql";
2235
- readAs: "text" | "json" | "auto" | "xml";
2565
+ bodyType: "json" | "xml" | "form" | "gql";
2566
+ readAs: "json" | "xml" | "text" | "auto";
2236
2567
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2237
2568
  summary: string;
2238
2569
  latencyMs: number | null;
2239
2570
  visibleFields: string[];
2240
2571
  effects: "read" | "write" | "unclassified";
2241
2572
  permission: "allow" | "ask" | "block";
2242
- headers: Record<string, string>;
2243
2573
  bindings: {
2244
2574
  path: string[];
2245
2575
  source: "variable" | "context" | "model" | "identity";
2246
- target: "path" | "query" | "header" | "body";
2576
+ target: "body" | "path" | "query" | "header";
2247
2577
  key: string;
2248
2578
  }[];
2249
2579
  sample?: unknown;
@@ -2279,10 +2609,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
2279
2609
  outputSchema?: Record<string, unknown> | undefined;
2280
2610
  }[];
2281
2611
  groups: {
2612
+ tools: string[];
2282
2613
  name: "Read" | "Change" | "Delete";
2283
2614
  count: number;
2284
2615
  rule: "allow" | "ask" | "block";
2285
- tools: string[];
2286
2616
  }[];
2287
2617
  credentialId?: string | undefined;
2288
2618
  }[];
@@ -2306,18 +2636,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2306
2636
  };
2307
2637
  model: {
2308
2638
  id: string;
2309
- effort: "low" | "medium" | "high";
2639
+ effort: "low" | "medium" | "high" | "xhigh";
2310
2640
  };
2311
- variables: {
2312
- type: "Text" | "Number" | "Yes or no" | "One of…";
2313
- name: string;
2314
- description: string;
2315
- required: boolean;
2316
- defaultValue: string;
2317
- usedIn: ("instructions" | "api" | "run_plan")[];
2318
- chipNote: string;
2319
- values?: string[] | undefined;
2320
- }[];
2321
2641
  skills: {
2322
2642
  id: string;
2323
2643
  name: string;
@@ -2347,37 +2667,37 @@ export declare const botConfigurationSchema: z.ZodObject<{
2347
2667
  }[];
2348
2668
  answer: {
2349
2669
  shape: {
2350
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
2670
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
2351
2671
  id: string;
2672
+ required: boolean;
2352
2673
  name: string;
2353
2674
  description: string;
2354
- required: boolean;
2355
2675
  level: number;
2356
2676
  values?: string[] | undefined;
2357
2677
  items?: Record<string, unknown> | undefined;
2358
2678
  }[];
2359
- format: "text" | "json";
2679
+ format: "json" | "text";
2360
2680
  delivery: "stream" | "once" | "webhook";
2361
2681
  webhookUrl: string;
2362
2682
  schema?: Record<string, unknown> | undefined;
2363
2683
  };
2364
2684
  runPlan: {
2685
+ off: string[];
2365
2686
  before: string[];
2366
2687
  after: string[];
2367
2688
  preparations: {
2368
2689
  kind: "workbench" | "mcp" | "app";
2369
2690
  id: string;
2370
2691
  name: string;
2692
+ capabilityId: string;
2371
2693
  bindings: {
2372
2694
  path: string[];
2373
2695
  source: "message" | "variable" | "context";
2374
2696
  target: string[];
2375
2697
  }[];
2376
- capabilityId: string;
2377
2698
  toolKey: string;
2378
2699
  input: Record<string, unknown>;
2379
2700
  }[];
2380
- off: string[];
2381
2701
  stopOnFail: string[];
2382
2702
  stepLimit: number;
2383
2703
  };
@@ -2386,6 +2706,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2386
2706
  id: string;
2387
2707
  enabled: boolean;
2388
2708
  name: string;
2709
+ variables: Record<string, unknown>;
2389
2710
  subscriptionId: string;
2390
2711
  label: string;
2391
2712
  providerKey: string;
@@ -2394,18 +2715,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
2394
2715
  customerField: string;
2395
2716
  instruction: string;
2396
2717
  answerTo: "webhook" | "none";
2397
- variables: Record<string, unknown>;
2398
2718
  } | {
2399
2719
  kind: "webhook";
2400
2720
  id: string;
2401
2721
  tenantId: string;
2402
2722
  enabled: boolean;
2403
2723
  name: string;
2724
+ variables: Record<string, unknown>;
2404
2725
  runsAs: "none" | "field";
2405
2726
  customerField: string;
2406
2727
  instruction: string;
2407
2728
  answerTo: "webhook" | "none";
2408
- variables: Record<string, unknown>;
2409
2729
  } | {
2410
2730
  every: "week" | "day" | "hour";
2411
2731
  kind: "schedule";
@@ -2414,16 +2734,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
2414
2734
  tenantId: string;
2415
2735
  enabled: boolean;
2416
2736
  name: string;
2737
+ variables: Record<string, unknown>;
2417
2738
  runsAs: "one" | "none";
2418
2739
  instruction: string;
2419
2740
  answerTo: "webhook" | "none";
2420
- variables: Record<string, unknown>;
2421
2741
  repeat: "once" | "repeat";
2422
2742
  days: number[];
2423
2743
  time: string;
2424
2744
  timezone: string;
2425
2745
  customerId: string;
2426
2746
  })[];
2747
+ timezone?: string | null | undefined;
2427
2748
  }, {
2428
2749
  name: string;
2429
2750
  workbench: {
@@ -2435,6 +2756,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
2435
2756
  languages: string[];
2436
2757
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2437
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
+ }[];
2438
2769
  instructions: {
2439
2770
  text: string;
2440
2771
  editedAt: string | null;
@@ -2448,16 +2779,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
2448
2779
  detail: string;
2449
2780
  syncedLabel: string;
2450
2781
  error?: string | undefined;
2782
+ pages?: {
2783
+ done: number;
2784
+ total: number;
2785
+ } | undefined;
2451
2786
  url?: string | undefined;
2452
2787
  scope?: "customer" | "project" | undefined;
2453
2788
  connectedSource?: {
2454
2789
  accountId: string;
2455
2790
  resourceId: string;
2456
2791
  } | undefined;
2457
- pages?: {
2458
- done: number;
2459
- total: number;
2460
- } | undefined;
2461
2792
  progress?: {
2462
2793
  done: number;
2463
2794
  total: number;
@@ -2478,23 +2809,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
2478
2809
  id: string;
2479
2810
  name: string;
2480
2811
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2481
- bodyType: "json" | "form" | "xml" | "gql";
2482
- readAs: "text" | "json" | "auto" | "xml";
2812
+ bodyType: "json" | "xml" | "form" | "gql";
2813
+ readAs: "json" | "xml" | "text" | "auto";
2483
2814
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2484
2815
  summary: string;
2485
2816
  latencyMs: number | null;
2486
2817
  visibleFields: string[];
2487
2818
  effects: "read" | "write" | "unclassified";
2819
+ headers?: Record<string, string> | undefined;
2820
+ body?: string | undefined;
2488
2821
  sample?: unknown;
2489
2822
  query?: Record<string, string> | undefined;
2490
- body?: string | undefined;
2491
2823
  permission?: "allow" | "ask" | "block" | undefined;
2492
2824
  inputSchema?: Record<string, unknown> | undefined;
2493
- headers?: Record<string, string> | undefined;
2494
2825
  bindings?: {
2495
2826
  path: string[];
2496
2827
  source: "variable" | "context" | "model" | "identity";
2497
- target: "path" | "query" | "header" | "body";
2828
+ target: "body" | "path" | "query" | "header";
2498
2829
  key: string;
2499
2830
  }[] | undefined;
2500
2831
  responseSchema?: Record<string, unknown> | undefined;
@@ -2522,10 +2853,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
2522
2853
  url: string;
2523
2854
  toolCount: number;
2524
2855
  groups: {
2856
+ tools: string[];
2525
2857
  name: "Read" | "Change" | "Delete";
2526
2858
  count: number;
2527
2859
  rule: "allow" | "ask" | "block";
2528
- tools: string[];
2529
2860
  }[];
2530
2861
  credentialId?: string | undefined;
2531
2862
  definitions?: {
@@ -2558,18 +2889,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2558
2889
  };
2559
2890
  model: {
2560
2891
  id: string;
2561
- effort: "low" | "medium" | "high";
2892
+ effort: "low" | "medium" | "high" | "xhigh";
2562
2893
  };
2563
- variables: {
2564
- type: "Text" | "Number" | "Yes or no" | "One of…";
2565
- name: string;
2566
- description: string;
2567
- required: boolean;
2568
- defaultValue: string;
2569
- usedIn: ("instructions" | "api" | "run_plan")[];
2570
- chipNote: string;
2571
- values?: string[] | undefined;
2572
- }[];
2573
2894
  skills: {
2574
2895
  id: string;
2575
2896
  name: string;
@@ -2599,40 +2920,46 @@ export declare const botConfigurationSchema: z.ZodObject<{
2599
2920
  }[];
2600
2921
  answer: {
2601
2922
  shape: {
2602
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
2923
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
2603
2924
  id: string;
2925
+ required: boolean;
2604
2926
  name: string;
2605
2927
  description: string;
2606
- required: boolean;
2607
2928
  level: number;
2608
2929
  values?: string[] | undefined;
2609
2930
  items?: Record<string, unknown> | undefined;
2610
2931
  }[];
2611
- format: "text" | "json";
2932
+ format: "json" | "text";
2612
2933
  delivery: "stream" | "once" | "webhook";
2613
2934
  webhookUrl: string;
2614
2935
  schema?: Record<string, unknown> | undefined;
2615
2936
  };
2616
2937
  runPlan: {
2938
+ off: string[];
2617
2939
  before: string[];
2618
2940
  after: string[];
2619
- off: string[];
2620
2941
  stopOnFail: string[];
2621
2942
  stepLimit: number | null;
2622
2943
  preparations?: {
2623
2944
  kind: "workbench" | "mcp" | "app";
2624
2945
  id: string;
2625
2946
  name: string;
2947
+ capabilityId: string;
2626
2948
  bindings: {
2627
2949
  path: string[];
2628
2950
  source: "message" | "variable" | "context";
2629
2951
  target: string[];
2630
2952
  }[];
2631
- capabilityId: string;
2632
2953
  toolKey: string;
2633
2954
  input: Record<string, unknown>;
2634
2955
  }[] | undefined;
2635
2956
  };
2957
+ files?: {
2958
+ enabled: boolean;
2959
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
2960
+ bigSpreadsheets: "workbench" | "preview";
2961
+ } | undefined;
2962
+ timezone?: string | null | undefined;
2636
2963
  triggers?: ({
2637
2964
  kind: "app";
2638
2965
  id: string;
@@ -2679,6 +3006,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
2679
3006
  }>;
2680
3007
  export declare const botPatchSchema: z.ZodObject<{
2681
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
+ }>>>;
3022
+ timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
2682
3023
  triggers: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2683
3024
  kind: z.ZodLiteral<"app">;
2684
3025
  subscriptionId: z.ZodString;
@@ -2698,6 +3039,7 @@ export declare const botPatchSchema: z.ZodObject<{
2698
3039
  id: string;
2699
3040
  enabled: boolean;
2700
3041
  name: string;
3042
+ variables: Record<string, unknown>;
2701
3043
  subscriptionId: string;
2702
3044
  label: string;
2703
3045
  providerKey: string;
@@ -2706,7 +3048,6 @@ export declare const botPatchSchema: z.ZodObject<{
2706
3048
  customerField: string;
2707
3049
  instruction: string;
2708
3050
  answerTo: "webhook" | "none";
2709
- variables: Record<string, unknown>;
2710
3051
  }, {
2711
3052
  kind: "app";
2712
3053
  id: string;
@@ -2738,11 +3079,11 @@ export declare const botPatchSchema: z.ZodObject<{
2738
3079
  tenantId: string;
2739
3080
  enabled: boolean;
2740
3081
  name: string;
3082
+ variables: Record<string, unknown>;
2741
3083
  runsAs: "none" | "field";
2742
3084
  customerField: string;
2743
3085
  instruction: string;
2744
3086
  answerTo: "webhook" | "none";
2745
- variables: Record<string, unknown>;
2746
3087
  }, {
2747
3088
  kind: "webhook";
2748
3089
  id: string;
@@ -2779,10 +3120,10 @@ export declare const botPatchSchema: z.ZodObject<{
2779
3120
  tenantId: string;
2780
3121
  enabled: boolean;
2781
3122
  name: string;
3123
+ variables: Record<string, unknown>;
2782
3124
  runsAs: "one" | "none";
2783
3125
  instruction: string;
2784
3126
  answerTo: "webhook" | "none";
2785
- variables: Record<string, unknown>;
2786
3127
  repeat: "once" | "repeat";
2787
3128
  days: number[];
2788
3129
  time: string;
@@ -2808,13 +3149,13 @@ export declare const botPatchSchema: z.ZodObject<{
2808
3149
  }>]>, "many">>>;
2809
3150
  model: z.ZodOptional<z.ZodObject<{
2810
3151
  id: z.ZodString;
2811
- effort: z.ZodEnum<["low", "medium", "high"]>;
3152
+ effort: z.ZodEnum<["low", "medium", "high", "xhigh"]>;
2812
3153
  }, "strict", z.ZodTypeAny, {
2813
3154
  id: string;
2814
- effort: "low" | "medium" | "high";
3155
+ effort: "low" | "medium" | "high" | "xhigh";
2815
3156
  }, {
2816
3157
  id: string;
2817
- effort: "low" | "medium" | "high";
3158
+ effort: "low" | "medium" | "high" | "xhigh";
2818
3159
  }>>;
2819
3160
  instructions: z.ZodOptional<z.ZodObject<{
2820
3161
  text: z.ZodString;
@@ -3039,36 +3380,36 @@ export declare const botPatchSchema: z.ZodObject<{
3039
3380
  }, "strict", z.ZodTypeAny, {
3040
3381
  path: string[];
3041
3382
  source: "variable" | "context" | "model" | "identity";
3042
- target: "path" | "query" | "header" | "body";
3383
+ target: "body" | "path" | "query" | "header";
3043
3384
  key: string;
3044
3385
  }, {
3045
3386
  path: string[];
3046
3387
  source: "variable" | "context" | "model" | "identity";
3047
- target: "path" | "query" | "header" | "body";
3388
+ target: "body" | "path" | "query" | "header";
3048
3389
  key: string;
3049
3390
  }>, "many">>;
3050
3391
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3051
3392
  sample: z.ZodOptional<z.ZodUnknown>;
3052
3393
  }, "strict", z.ZodTypeAny, {
3394
+ headers: Record<string, string>;
3395
+ body: string;
3053
3396
  path: string;
3054
3397
  id: string;
3055
3398
  name: string;
3056
3399
  query: Record<string, string>;
3057
- body: string;
3058
3400
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3059
- bodyType: "json" | "form" | "xml" | "gql";
3060
- readAs: "text" | "json" | "auto" | "xml";
3401
+ bodyType: "json" | "xml" | "form" | "gql";
3402
+ readAs: "json" | "xml" | "text" | "auto";
3061
3403
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3062
3404
  summary: string;
3063
3405
  latencyMs: number | null;
3064
3406
  visibleFields: string[];
3065
3407
  effects: "read" | "write" | "unclassified";
3066
3408
  permission: "allow" | "ask" | "block";
3067
- headers: Record<string, string>;
3068
3409
  bindings: {
3069
3410
  path: string[];
3070
3411
  source: "variable" | "context" | "model" | "identity";
3071
- target: "path" | "query" | "header" | "body";
3412
+ target: "body" | "path" | "query" | "header";
3072
3413
  key: string;
3073
3414
  }[];
3074
3415
  sample?: unknown;
@@ -3079,23 +3420,23 @@ export declare const botPatchSchema: z.ZodObject<{
3079
3420
  id: string;
3080
3421
  name: string;
3081
3422
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3082
- bodyType: "json" | "form" | "xml" | "gql";
3083
- readAs: "text" | "json" | "auto" | "xml";
3423
+ bodyType: "json" | "xml" | "form" | "gql";
3424
+ readAs: "json" | "xml" | "text" | "auto";
3084
3425
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3085
3426
  summary: string;
3086
3427
  latencyMs: number | null;
3087
3428
  visibleFields: string[];
3088
3429
  effects: "read" | "write" | "unclassified";
3430
+ headers?: Record<string, string> | undefined;
3431
+ body?: string | undefined;
3089
3432
  sample?: unknown;
3090
3433
  query?: Record<string, string> | undefined;
3091
- body?: string | undefined;
3092
3434
  permission?: "allow" | "ask" | "block" | undefined;
3093
3435
  inputSchema?: Record<string, unknown> | undefined;
3094
- headers?: Record<string, string> | undefined;
3095
3436
  bindings?: {
3096
3437
  path: string[];
3097
3438
  source: "variable" | "context" | "model" | "identity";
3098
- target: "path" | "query" | "header" | "body";
3439
+ target: "body" | "path" | "query" | "header";
3099
3440
  key: string;
3100
3441
  }[] | undefined;
3101
3442
  responseSchema?: Record<string, unknown> | undefined;
@@ -3109,25 +3450,25 @@ export declare const botPatchSchema: z.ZodObject<{
3109
3450
  auth: "one" | "each" | "oauth" | "none";
3110
3451
  sendCustomerIdentity: boolean;
3111
3452
  calls: {
3453
+ headers: Record<string, string>;
3454
+ body: string;
3112
3455
  path: string;
3113
3456
  id: string;
3114
3457
  name: string;
3115
3458
  query: Record<string, string>;
3116
- body: string;
3117
3459
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3118
- bodyType: "json" | "form" | "xml" | "gql";
3119
- readAs: "text" | "json" | "auto" | "xml";
3460
+ bodyType: "json" | "xml" | "form" | "gql";
3461
+ readAs: "json" | "xml" | "text" | "auto";
3120
3462
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3121
3463
  summary: string;
3122
3464
  latencyMs: number | null;
3123
3465
  visibleFields: string[];
3124
3466
  effects: "read" | "write" | "unclassified";
3125
3467
  permission: "allow" | "ask" | "block";
3126
- headers: Record<string, string>;
3127
3468
  bindings: {
3128
3469
  path: string[];
3129
3470
  source: "variable" | "context" | "model" | "identity";
3130
- target: "path" | "query" | "header" | "body";
3471
+ target: "body" | "path" | "query" | "header";
3131
3472
  key: string;
3132
3473
  }[];
3133
3474
  sample?: unknown;
@@ -3149,23 +3490,23 @@ export declare const botPatchSchema: z.ZodObject<{
3149
3490
  id: string;
3150
3491
  name: string;
3151
3492
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3152
- bodyType: "json" | "form" | "xml" | "gql";
3153
- readAs: "text" | "json" | "auto" | "xml";
3493
+ bodyType: "json" | "xml" | "form" | "gql";
3494
+ readAs: "json" | "xml" | "text" | "auto";
3154
3495
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3155
3496
  summary: string;
3156
3497
  latencyMs: number | null;
3157
3498
  visibleFields: string[];
3158
3499
  effects: "read" | "write" | "unclassified";
3500
+ headers?: Record<string, string> | undefined;
3501
+ body?: string | undefined;
3159
3502
  sample?: unknown;
3160
3503
  query?: Record<string, string> | undefined;
3161
- body?: string | undefined;
3162
3504
  permission?: "allow" | "ask" | "block" | undefined;
3163
3505
  inputSchema?: Record<string, unknown> | undefined;
3164
- headers?: Record<string, string> | undefined;
3165
3506
  bindings?: {
3166
3507
  path: string[];
3167
3508
  source: "variable" | "context" | "model" | "identity";
3168
- target: "path" | "query" | "header" | "body";
3509
+ target: "body" | "path" | "query" | "header";
3169
3510
  key: string;
3170
3511
  }[] | undefined;
3171
3512
  responseSchema?: Record<string, unknown> | undefined;
@@ -3247,15 +3588,15 @@ export declare const botPatchSchema: z.ZodObject<{
3247
3588
  rule: z.ZodEnum<["allow", "ask", "block"]>;
3248
3589
  tools: z.ZodArray<z.ZodString, "many">;
3249
3590
  }, "strict", z.ZodTypeAny, {
3591
+ tools: string[];
3250
3592
  name: "Read" | "Change" | "Delete";
3251
3593
  count: number;
3252
3594
  rule: "allow" | "ask" | "block";
3253
- tools: string[];
3254
3595
  }, {
3596
+ tools: string[];
3255
3597
  name: "Read" | "Change" | "Delete";
3256
3598
  count: number;
3257
3599
  rule: "allow" | "ask" | "block";
3258
- tools: string[];
3259
3600
  }>, "many">;
3260
3601
  }, "strict", z.ZodTypeAny, {
3261
3602
  status: "connecting" | "connected";
@@ -3270,10 +3611,10 @@ export declare const botPatchSchema: z.ZodObject<{
3270
3611
  outputSchema?: Record<string, unknown> | undefined;
3271
3612
  }[];
3272
3613
  groups: {
3614
+ tools: string[];
3273
3615
  name: "Read" | "Change" | "Delete";
3274
3616
  count: number;
3275
3617
  rule: "allow" | "ask" | "block";
3276
- tools: string[];
3277
3618
  }[];
3278
3619
  credentialId?: string | undefined;
3279
3620
  }, {
@@ -3283,10 +3624,10 @@ export declare const botPatchSchema: z.ZodObject<{
3283
3624
  url: string;
3284
3625
  toolCount: number;
3285
3626
  groups: {
3627
+ tools: string[];
3286
3628
  name: "Read" | "Change" | "Delete";
3287
3629
  count: number;
3288
3630
  rule: "allow" | "ask" | "block";
3289
- tools: string[];
3290
3631
  }[];
3291
3632
  credentialId?: string | undefined;
3292
3633
  definitions?: {
@@ -3351,15 +3692,15 @@ export declare const botPatchSchema: z.ZodObject<{
3351
3692
  detail: string;
3352
3693
  syncedLabel: string;
3353
3694
  error?: string | undefined;
3695
+ pages?: {
3696
+ done: number;
3697
+ total: number;
3698
+ } | undefined;
3354
3699
  url?: string | undefined;
3355
3700
  connectedSource?: {
3356
3701
  accountId: string;
3357
3702
  resourceId: string;
3358
3703
  } | undefined;
3359
- pages?: {
3360
- done: number;
3361
- total: number;
3362
- } | undefined;
3363
3704
  progress?: {
3364
3705
  done: number;
3365
3706
  total: number;
@@ -3374,16 +3715,16 @@ export declare const botPatchSchema: z.ZodObject<{
3374
3715
  detail: string;
3375
3716
  syncedLabel: string;
3376
3717
  error?: string | undefined;
3718
+ pages?: {
3719
+ done: number;
3720
+ total: number;
3721
+ } | undefined;
3377
3722
  url?: string | undefined;
3378
3723
  scope?: "customer" | "project" | undefined;
3379
3724
  connectedSource?: {
3380
3725
  accountId: string;
3381
3726
  resourceId: string;
3382
3727
  } | undefined;
3383
- pages?: {
3384
- done: number;
3385
- total: number;
3386
- } | undefined;
3387
3728
  progress?: {
3388
3729
  done: number;
3389
3730
  total: number;
@@ -3414,15 +3755,15 @@ export declare const botPatchSchema: z.ZodObject<{
3414
3755
  detail: string;
3415
3756
  syncedLabel: string;
3416
3757
  error?: string | undefined;
3758
+ pages?: {
3759
+ done: number;
3760
+ total: number;
3761
+ } | undefined;
3417
3762
  url?: string | undefined;
3418
3763
  connectedSource?: {
3419
3764
  accountId: string;
3420
3765
  resourceId: string;
3421
3766
  } | undefined;
3422
- pages?: {
3423
- done: number;
3424
- total: number;
3425
- } | undefined;
3426
3767
  progress?: {
3427
3768
  done: number;
3428
3769
  total: number;
@@ -3442,25 +3783,25 @@ export declare const botPatchSchema: z.ZodObject<{
3442
3783
  auth: "one" | "each" | "oauth" | "none";
3443
3784
  sendCustomerIdentity: boolean;
3444
3785
  calls: {
3786
+ headers: Record<string, string>;
3787
+ body: string;
3445
3788
  path: string;
3446
3789
  id: string;
3447
3790
  name: string;
3448
3791
  query: Record<string, string>;
3449
- body: string;
3450
3792
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3451
- bodyType: "json" | "form" | "xml" | "gql";
3452
- readAs: "text" | "json" | "auto" | "xml";
3793
+ bodyType: "json" | "xml" | "form" | "gql";
3794
+ readAs: "json" | "xml" | "text" | "auto";
3453
3795
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3454
3796
  summary: string;
3455
3797
  latencyMs: number | null;
3456
3798
  visibleFields: string[];
3457
3799
  effects: "read" | "write" | "unclassified";
3458
3800
  permission: "allow" | "ask" | "block";
3459
- headers: Record<string, string>;
3460
3801
  bindings: {
3461
3802
  path: string[];
3462
3803
  source: "variable" | "context" | "model" | "identity";
3463
- target: "path" | "query" | "header" | "body";
3804
+ target: "body" | "path" | "query" | "header";
3464
3805
  key: string;
3465
3806
  }[];
3466
3807
  sample?: unknown;
@@ -3496,10 +3837,10 @@ export declare const botPatchSchema: z.ZodObject<{
3496
3837
  outputSchema?: Record<string, unknown> | undefined;
3497
3838
  }[];
3498
3839
  groups: {
3840
+ tools: string[];
3499
3841
  name: "Read" | "Change" | "Delete";
3500
3842
  count: number;
3501
3843
  rule: "allow" | "ask" | "block";
3502
- tools: string[];
3503
3844
  }[];
3504
3845
  credentialId?: string | undefined;
3505
3846
  }[];
@@ -3517,16 +3858,16 @@ export declare const botPatchSchema: z.ZodObject<{
3517
3858
  detail: string;
3518
3859
  syncedLabel: string;
3519
3860
  error?: string | undefined;
3861
+ pages?: {
3862
+ done: number;
3863
+ total: number;
3864
+ } | undefined;
3520
3865
  url?: string | undefined;
3521
3866
  scope?: "customer" | "project" | undefined;
3522
3867
  connectedSource?: {
3523
3868
  accountId: string;
3524
3869
  resourceId: string;
3525
3870
  } | undefined;
3526
- pages?: {
3527
- done: number;
3528
- total: number;
3529
- } | undefined;
3530
3871
  progress?: {
3531
3872
  done: number;
3532
3873
  total: number;
@@ -3547,23 +3888,23 @@ export declare const botPatchSchema: z.ZodObject<{
3547
3888
  id: string;
3548
3889
  name: string;
3549
3890
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3550
- bodyType: "json" | "form" | "xml" | "gql";
3551
- readAs: "text" | "json" | "auto" | "xml";
3891
+ bodyType: "json" | "xml" | "form" | "gql";
3892
+ readAs: "json" | "xml" | "text" | "auto";
3552
3893
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3553
3894
  summary: string;
3554
3895
  latencyMs: number | null;
3555
3896
  visibleFields: string[];
3556
3897
  effects: "read" | "write" | "unclassified";
3898
+ headers?: Record<string, string> | undefined;
3899
+ body?: string | undefined;
3557
3900
  sample?: unknown;
3558
3901
  query?: Record<string, string> | undefined;
3559
- body?: string | undefined;
3560
3902
  permission?: "allow" | "ask" | "block" | undefined;
3561
3903
  inputSchema?: Record<string, unknown> | undefined;
3562
- headers?: Record<string, string> | undefined;
3563
3904
  bindings?: {
3564
3905
  path: string[];
3565
3906
  source: "variable" | "context" | "model" | "identity";
3566
- target: "path" | "query" | "header" | "body";
3907
+ target: "body" | "path" | "query" | "header";
3567
3908
  key: string;
3568
3909
  }[] | undefined;
3569
3910
  responseSchema?: Record<string, unknown> | undefined;
@@ -3591,10 +3932,10 @@ export declare const botPatchSchema: z.ZodObject<{
3591
3932
  url: string;
3592
3933
  toolCount: number;
3593
3934
  groups: {
3935
+ tools: string[];
3594
3936
  name: "Read" | "Change" | "Delete";
3595
3937
  count: number;
3596
3938
  rule: "allow" | "ask" | "block";
3597
- tools: string[];
3598
3939
  }[];
3599
3940
  credentialId?: string | undefined;
3600
3941
  definitions?: {
@@ -3624,18 +3965,18 @@ export declare const botPatchSchema: z.ZodObject<{
3624
3965
  description: z.ZodString;
3625
3966
  }, "strict", z.ZodTypeAny, {
3626
3967
  type: "Text" | "Number" | "Yes or no" | "One of…";
3968
+ required: boolean;
3627
3969
  name: string;
3628
3970
  description: string;
3629
- required: boolean;
3630
3971
  defaultValue: string;
3631
3972
  usedIn: ("instructions" | "api" | "run_plan")[];
3632
3973
  chipNote: string;
3633
3974
  values?: string[] | undefined;
3634
3975
  }, {
3635
3976
  type: "Text" | "Number" | "Yes or no" | "One of…";
3977
+ required: boolean;
3636
3978
  name: string;
3637
3979
  description: string;
3638
- required: boolean;
3639
3980
  defaultValue: string;
3640
3981
  usedIn: ("instructions" | "api" | "run_plan")[];
3641
3982
  chipNote: string;
@@ -3655,20 +3996,20 @@ export declare const botPatchSchema: z.ZodObject<{
3655
3996
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3656
3997
  items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3657
3998
  }, "strict", z.ZodTypeAny, {
3658
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
3999
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3659
4000
  id: string;
4001
+ required: boolean;
3660
4002
  name: string;
3661
4003
  description: string;
3662
- required: boolean;
3663
4004
  level: number;
3664
4005
  values?: string[] | undefined;
3665
4006
  items?: Record<string, unknown> | undefined;
3666
4007
  }, {
3667
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
4008
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3668
4009
  id: string;
4010
+ required: boolean;
3669
4011
  name: string;
3670
4012
  description: string;
3671
- required: boolean;
3672
4013
  level: number;
3673
4014
  values?: string[] | undefined;
3674
4015
  items?: Record<string, unknown> | undefined;
@@ -3676,31 +4017,31 @@ export declare const botPatchSchema: z.ZodObject<{
3676
4017
  schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3677
4018
  }, "strict", z.ZodTypeAny, {
3678
4019
  shape: {
3679
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
4020
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3680
4021
  id: string;
4022
+ required: boolean;
3681
4023
  name: string;
3682
4024
  description: string;
3683
- required: boolean;
3684
4025
  level: number;
3685
4026
  values?: string[] | undefined;
3686
4027
  items?: Record<string, unknown> | undefined;
3687
4028
  }[];
3688
- format: "text" | "json";
4029
+ format: "json" | "text";
3689
4030
  delivery: "stream" | "once" | "webhook";
3690
4031
  webhookUrl: string;
3691
4032
  schema?: Record<string, unknown> | undefined;
3692
4033
  }, {
3693
4034
  shape: {
3694
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
4035
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3695
4036
  id: string;
4037
+ required: boolean;
3696
4038
  name: string;
3697
4039
  description: string;
3698
- required: boolean;
3699
4040
  level: number;
3700
4041
  values?: string[] | undefined;
3701
4042
  items?: Record<string, unknown> | undefined;
3702
4043
  }[];
3703
- format: "text" | "json";
4044
+ format: "json" | "text";
3704
4045
  delivery: "stream" | "once" | "webhook";
3705
4046
  webhookUrl: string;
3706
4047
  schema?: Record<string, unknown> | undefined;
@@ -3730,24 +4071,24 @@ export declare const botPatchSchema: z.ZodObject<{
3730
4071
  kind: "workbench" | "mcp" | "app";
3731
4072
  id: string;
3732
4073
  name: string;
4074
+ capabilityId: string;
3733
4075
  bindings: {
3734
4076
  path: string[];
3735
4077
  source: "message" | "variable" | "context";
3736
4078
  target: string[];
3737
4079
  }[];
3738
- capabilityId: string;
3739
4080
  toolKey: string;
3740
4081
  input: Record<string, unknown>;
3741
4082
  }, {
3742
4083
  kind: "workbench" | "mcp" | "app";
3743
4084
  id: string;
3744
4085
  name: string;
4086
+ capabilityId: string;
3745
4087
  bindings: {
3746
4088
  path: string[];
3747
4089
  source: "message" | "variable" | "context";
3748
4090
  target: string[];
3749
4091
  }[];
3750
- capabilityId: string;
3751
4092
  toolKey: string;
3752
4093
  input: Record<string, unknown>;
3753
4094
  }>, "many">>;
@@ -3757,40 +4098,40 @@ export declare const botPatchSchema: z.ZodObject<{
3757
4098
  stopOnFail: z.ZodArray<z.ZodString, "many">;
3758
4099
  stepLimit: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number, number | null>;
3759
4100
  }, "strict", z.ZodTypeAny, {
4101
+ off: string[];
3760
4102
  before: string[];
3761
4103
  after: string[];
3762
4104
  preparations: {
3763
4105
  kind: "workbench" | "mcp" | "app";
3764
4106
  id: string;
3765
4107
  name: string;
4108
+ capabilityId: string;
3766
4109
  bindings: {
3767
4110
  path: string[];
3768
4111
  source: "message" | "variable" | "context";
3769
4112
  target: string[];
3770
4113
  }[];
3771
- capabilityId: string;
3772
4114
  toolKey: string;
3773
4115
  input: Record<string, unknown>;
3774
4116
  }[];
3775
- off: string[];
3776
4117
  stopOnFail: string[];
3777
4118
  stepLimit: number;
3778
4119
  }, {
4120
+ off: string[];
3779
4121
  before: string[];
3780
4122
  after: string[];
3781
- off: string[];
3782
4123
  stopOnFail: string[];
3783
4124
  stepLimit: number | null;
3784
4125
  preparations?: {
3785
4126
  kind: "workbench" | "mcp" | "app";
3786
4127
  id: string;
3787
4128
  name: string;
4129
+ capabilityId: string;
3788
4130
  bindings: {
3789
4131
  path: string[];
3790
4132
  source: "message" | "variable" | "context";
3791
4133
  target: string[];
3792
4134
  }[];
3793
- capabilityId: string;
3794
4135
  toolKey: string;
3795
4136
  input: Record<string, unknown>;
3796
4137
  }[] | undefined;
@@ -3806,6 +4147,21 @@ export declare const botPatchSchema: z.ZodObject<{
3806
4147
  languages: string[];
3807
4148
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
3808
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;
3809
4165
  instructions?: {
3810
4166
  text: string;
3811
4167
  editedAt: string | null;
@@ -3820,15 +4176,15 @@ export declare const botPatchSchema: z.ZodObject<{
3820
4176
  detail: string;
3821
4177
  syncedLabel: string;
3822
4178
  error?: string | undefined;
4179
+ pages?: {
4180
+ done: number;
4181
+ total: number;
4182
+ } | undefined;
3823
4183
  url?: string | undefined;
3824
4184
  connectedSource?: {
3825
4185
  accountId: string;
3826
4186
  resourceId: string;
3827
4187
  } | undefined;
3828
- pages?: {
3829
- done: number;
3830
- total: number;
3831
- } | undefined;
3832
4188
  progress?: {
3833
4189
  done: number;
3834
4190
  total: number;
@@ -3848,25 +4204,25 @@ export declare const botPatchSchema: z.ZodObject<{
3848
4204
  auth: "one" | "each" | "oauth" | "none";
3849
4205
  sendCustomerIdentity: boolean;
3850
4206
  calls: {
4207
+ headers: Record<string, string>;
4208
+ body: string;
3851
4209
  path: string;
3852
4210
  id: string;
3853
4211
  name: string;
3854
4212
  query: Record<string, string>;
3855
- body: string;
3856
4213
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3857
- bodyType: "json" | "form" | "xml" | "gql";
3858
- readAs: "text" | "json" | "auto" | "xml";
4214
+ bodyType: "json" | "xml" | "form" | "gql";
4215
+ readAs: "json" | "xml" | "text" | "auto";
3859
4216
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3860
4217
  summary: string;
3861
4218
  latencyMs: number | null;
3862
4219
  visibleFields: string[];
3863
4220
  effects: "read" | "write" | "unclassified";
3864
4221
  permission: "allow" | "ask" | "block";
3865
- headers: Record<string, string>;
3866
4222
  bindings: {
3867
4223
  path: string[];
3868
4224
  source: "variable" | "context" | "model" | "identity";
3869
- target: "path" | "query" | "header" | "body";
4225
+ target: "body" | "path" | "query" | "header";
3870
4226
  key: string;
3871
4227
  }[];
3872
4228
  sample?: unknown;
@@ -3902,10 +4258,10 @@ export declare const botPatchSchema: z.ZodObject<{
3902
4258
  outputSchema?: Record<string, unknown> | undefined;
3903
4259
  }[];
3904
4260
  groups: {
4261
+ tools: string[];
3905
4262
  name: "Read" | "Change" | "Delete";
3906
4263
  count: number;
3907
4264
  rule: "allow" | "ask" | "block";
3908
- tools: string[];
3909
4265
  }[];
3910
4266
  credentialId?: string | undefined;
3911
4267
  }[];
@@ -3929,18 +4285,9 @@ export declare const botPatchSchema: z.ZodObject<{
3929
4285
  } | undefined;
3930
4286
  model?: {
3931
4287
  id: string;
3932
- effort: "low" | "medium" | "high";
4288
+ effort: "low" | "medium" | "high" | "xhigh";
3933
4289
  } | undefined;
3934
- variables?: {
3935
- type: "Text" | "Number" | "Yes or no" | "One of…";
3936
- name: string;
3937
- description: string;
3938
- required: boolean;
3939
- defaultValue: string;
3940
- usedIn: ("instructions" | "api" | "run_plan")[];
3941
- chipNote: string;
3942
- values?: string[] | undefined;
3943
- }[] | undefined;
4290
+ timezone?: string | null | undefined;
3944
4291
  skills?: {
3945
4292
  id: string;
3946
4293
  name: string;
@@ -3970,37 +4317,37 @@ export declare const botPatchSchema: z.ZodObject<{
3970
4317
  }[] | undefined;
3971
4318
  answer?: {
3972
4319
  shape: {
3973
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
4320
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3974
4321
  id: string;
4322
+ required: boolean;
3975
4323
  name: string;
3976
4324
  description: string;
3977
- required: boolean;
3978
4325
  level: number;
3979
4326
  values?: string[] | undefined;
3980
4327
  items?: Record<string, unknown> | undefined;
3981
4328
  }[];
3982
- format: "text" | "json";
4329
+ format: "json" | "text";
3983
4330
  delivery: "stream" | "once" | "webhook";
3984
4331
  webhookUrl: string;
3985
4332
  schema?: Record<string, unknown> | undefined;
3986
4333
  } | undefined;
3987
4334
  runPlan?: {
4335
+ off: string[];
3988
4336
  before: string[];
3989
4337
  after: string[];
3990
4338
  preparations: {
3991
4339
  kind: "workbench" | "mcp" | "app";
3992
4340
  id: string;
3993
4341
  name: string;
4342
+ capabilityId: string;
3994
4343
  bindings: {
3995
4344
  path: string[];
3996
4345
  source: "message" | "variable" | "context";
3997
4346
  target: string[];
3998
4347
  }[];
3999
- capabilityId: string;
4000
4348
  toolKey: string;
4001
4349
  input: Record<string, unknown>;
4002
4350
  }[];
4003
- off: string[];
4004
4351
  stopOnFail: string[];
4005
4352
  stepLimit: number;
4006
4353
  } | undefined;
@@ -4009,6 +4356,7 @@ export declare const botPatchSchema: z.ZodObject<{
4009
4356
  id: string;
4010
4357
  enabled: boolean;
4011
4358
  name: string;
4359
+ variables: Record<string, unknown>;
4012
4360
  subscriptionId: string;
4013
4361
  label: string;
4014
4362
  providerKey: string;
@@ -4017,18 +4365,17 @@ export declare const botPatchSchema: z.ZodObject<{
4017
4365
  customerField: string;
4018
4366
  instruction: string;
4019
4367
  answerTo: "webhook" | "none";
4020
- variables: Record<string, unknown>;
4021
4368
  } | {
4022
4369
  kind: "webhook";
4023
4370
  id: string;
4024
4371
  tenantId: string;
4025
4372
  enabled: boolean;
4026
4373
  name: string;
4374
+ variables: Record<string, unknown>;
4027
4375
  runsAs: "none" | "field";
4028
4376
  customerField: string;
4029
4377
  instruction: string;
4030
4378
  answerTo: "webhook" | "none";
4031
- variables: Record<string, unknown>;
4032
4379
  } | {
4033
4380
  every: "week" | "day" | "hour";
4034
4381
  kind: "schedule";
@@ -4037,10 +4384,10 @@ export declare const botPatchSchema: z.ZodObject<{
4037
4384
  tenantId: string;
4038
4385
  enabled: boolean;
4039
4386
  name: string;
4387
+ variables: Record<string, unknown>;
4040
4388
  runsAs: "one" | "none";
4041
4389
  instruction: string;
4042
4390
  answerTo: "webhook" | "none";
4043
- variables: Record<string, unknown>;
4044
4391
  repeat: "once" | "repeat";
4045
4392
  days: number[];
4046
4393
  time: string;
@@ -4058,6 +4405,21 @@ export declare const botPatchSchema: z.ZodObject<{
4058
4405
  languages: string[];
4059
4406
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4060
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;
4061
4423
  instructions?: {
4062
4424
  text: string;
4063
4425
  editedAt: string | null;
@@ -4071,16 +4433,16 @@ export declare const botPatchSchema: z.ZodObject<{
4071
4433
  detail: string;
4072
4434
  syncedLabel: string;
4073
4435
  error?: string | undefined;
4436
+ pages?: {
4437
+ done: number;
4438
+ total: number;
4439
+ } | undefined;
4074
4440
  url?: string | undefined;
4075
4441
  scope?: "customer" | "project" | undefined;
4076
4442
  connectedSource?: {
4077
4443
  accountId: string;
4078
4444
  resourceId: string;
4079
4445
  } | undefined;
4080
- pages?: {
4081
- done: number;
4082
- total: number;
4083
- } | undefined;
4084
4446
  progress?: {
4085
4447
  done: number;
4086
4448
  total: number;
@@ -4101,23 +4463,23 @@ export declare const botPatchSchema: z.ZodObject<{
4101
4463
  id: string;
4102
4464
  name: string;
4103
4465
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4104
- bodyType: "json" | "form" | "xml" | "gql";
4105
- readAs: "text" | "json" | "auto" | "xml";
4466
+ bodyType: "json" | "xml" | "form" | "gql";
4467
+ readAs: "json" | "xml" | "text" | "auto";
4106
4468
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4107
4469
  summary: string;
4108
4470
  latencyMs: number | null;
4109
4471
  visibleFields: string[];
4110
4472
  effects: "read" | "write" | "unclassified";
4473
+ headers?: Record<string, string> | undefined;
4474
+ body?: string | undefined;
4111
4475
  sample?: unknown;
4112
4476
  query?: Record<string, string> | undefined;
4113
- body?: string | undefined;
4114
4477
  permission?: "allow" | "ask" | "block" | undefined;
4115
4478
  inputSchema?: Record<string, unknown> | undefined;
4116
- headers?: Record<string, string> | undefined;
4117
4479
  bindings?: {
4118
4480
  path: string[];
4119
4481
  source: "variable" | "context" | "model" | "identity";
4120
- target: "path" | "query" | "header" | "body";
4482
+ target: "body" | "path" | "query" | "header";
4121
4483
  key: string;
4122
4484
  }[] | undefined;
4123
4485
  responseSchema?: Record<string, unknown> | undefined;
@@ -4145,10 +4507,10 @@ export declare const botPatchSchema: z.ZodObject<{
4145
4507
  url: string;
4146
4508
  toolCount: number;
4147
4509
  groups: {
4510
+ tools: string[];
4148
4511
  name: "Read" | "Change" | "Delete";
4149
4512
  count: number;
4150
4513
  rule: "allow" | "ask" | "block";
4151
- tools: string[];
4152
4514
  }[];
4153
4515
  credentialId?: string | undefined;
4154
4516
  definitions?: {
@@ -4181,18 +4543,9 @@ export declare const botPatchSchema: z.ZodObject<{
4181
4543
  } | undefined;
4182
4544
  model?: {
4183
4545
  id: string;
4184
- effort: "low" | "medium" | "high";
4546
+ effort: "low" | "medium" | "high" | "xhigh";
4185
4547
  } | undefined;
4186
- variables?: {
4187
- type: "Text" | "Number" | "Yes or no" | "One of…";
4188
- name: string;
4189
- description: string;
4190
- required: boolean;
4191
- defaultValue: string;
4192
- usedIn: ("instructions" | "api" | "run_plan")[];
4193
- chipNote: string;
4194
- values?: string[] | undefined;
4195
- }[] | undefined;
4548
+ timezone?: string | null | undefined;
4196
4549
  skills?: {
4197
4550
  id: string;
4198
4551
  name: string;
@@ -4222,36 +4575,36 @@ export declare const botPatchSchema: z.ZodObject<{
4222
4575
  }[] | undefined;
4223
4576
  answer?: {
4224
4577
  shape: {
4225
- type: "number" | "date" | "text" | "bool" | "enum" | "list" | "group";
4578
+ type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
4226
4579
  id: string;
4580
+ required: boolean;
4227
4581
  name: string;
4228
4582
  description: string;
4229
- required: boolean;
4230
4583
  level: number;
4231
4584
  values?: string[] | undefined;
4232
4585
  items?: Record<string, unknown> | undefined;
4233
4586
  }[];
4234
- format: "text" | "json";
4587
+ format: "json" | "text";
4235
4588
  delivery: "stream" | "once" | "webhook";
4236
4589
  webhookUrl: string;
4237
4590
  schema?: Record<string, unknown> | undefined;
4238
4591
  } | undefined;
4239
4592
  runPlan?: {
4593
+ off: string[];
4240
4594
  before: string[];
4241
4595
  after: string[];
4242
- off: string[];
4243
4596
  stopOnFail: string[];
4244
4597
  stepLimit: number | null;
4245
4598
  preparations?: {
4246
4599
  kind: "workbench" | "mcp" | "app";
4247
4600
  id: string;
4248
4601
  name: string;
4602
+ capabilityId: string;
4249
4603
  bindings: {
4250
4604
  path: string[];
4251
4605
  source: "message" | "variable" | "context";
4252
4606
  target: string[];
4253
4607
  }[];
4254
- capabilityId: string;
4255
4608
  toolKey: string;
4256
4609
  input: Record<string, unknown>;
4257
4610
  }[] | undefined;
@@ -4301,6 +4654,7 @@ export declare const botPatchSchema: z.ZodObject<{
4301
4654
  })[] | undefined;
4302
4655
  }>;
4303
4656
  export declare const botRunInputSchema: z.ZodObject<{
4657
+ attachments: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4304
4658
  runId: z.ZodOptional<z.ZodString>;
4305
4659
  conversationId: z.ZodOptional<z.ZodString>;
4306
4660
  message: z.ZodString;
@@ -4308,22 +4662,27 @@ export declare const botRunInputSchema: z.ZodObject<{
4308
4662
  revision: z.ZodOptional<z.ZodNumber>;
4309
4663
  dataMode: z.ZodDefault<z.ZodEnum<["sample", "live"]>>;
4310
4664
  customerSessionId: z.ZodOptional<z.ZodString>;
4665
+ connectionReturnUrl: z.ZodOptional<z.ZodString>;
4311
4666
  }, "strict", z.ZodTypeAny, {
4312
4667
  message: string;
4313
4668
  variables: Record<string, unknown>;
4669
+ attachments: string[];
4314
4670
  dataMode: "sample" | "live";
4315
4671
  revision?: number | undefined;
4316
- runId?: string | undefined;
4317
4672
  conversationId?: string | undefined;
4673
+ runId?: string | undefined;
4318
4674
  customerSessionId?: string | undefined;
4675
+ connectionReturnUrl?: string | undefined;
4319
4676
  }, {
4320
4677
  message: string;
4321
4678
  revision?: number | undefined;
4322
- variables?: Record<string, unknown> | undefined;
4323
- runId?: string | undefined;
4324
4679
  conversationId?: string | undefined;
4680
+ runId?: string | undefined;
4681
+ variables?: Record<string, unknown> | undefined;
4682
+ attachments?: string[] | undefined;
4325
4683
  dataMode?: "sample" | "live" | undefined;
4326
4684
  customerSessionId?: string | undefined;
4685
+ connectionReturnUrl?: string | undefined;
4327
4686
  }>;
4328
4687
  export declare function defaultBotConfiguration(name: string): BotConfiguration;
4329
4688
  /** Infer only structural JSON types; values are never classified by their text. */